/* Shared styles for Higika's support, legal and guide pages. Same tokens as the homepage. */
:root { --bg: #F7F5F3; --ink: #141414; --text: #1A1A1A; --muted: #586258; --green: #2E5A27; --green-dark: #1F4119; --line: #D5D9CF; --tint: #EEF3EC;
  --serif: "Instrument Serif", "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* Navbar: matches the original Higika header. Transparent over the hero, solid once you scroll. */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: #F7F5F3; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.site-header.scrolled { background: #F8F7F2; border-bottom-color: #D5D9CF; }
.site-header .bar {
  max-width: 1100px; margin-inline: auto; height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
}
section[id] { scroll-margin-top: 4.25rem; }
details[id] { scroll-margin-top: 6rem; }
.nav-logo { display: block; flex: none; line-height: 0; }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 1.25rem; }
@media (min-width: 1000px) { .nav-links { display: flex; } }
.nav-links a { position: relative; font: 500 11px/1.2 "Inter", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #586258; text-decoration: none; padding-block: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover { color: #1A1A1A; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #1A1A1A; }
.nav-cta { font: 600 9px/1 "Inter", system-ui, sans-serif; letter-spacing: .13em; text-transform: uppercase; color: #304632; text-decoration: none; border: 1px solid #71816D; padding: 9px 13px; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.nav-cta:hover { background: #2E5A27; border-color: #2E5A27; color: #FFFFFF; }
@media (max-width: 559px) { .nav-cta { font-size: 10px; padding: 10px 12px; } }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Mobile menu: hamburger below 1000px, panel drops down under the bar */
.nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #71816D; background: transparent; cursor: pointer; }
.nav-toggle:hover { border-color: #2E5A27; }
.nav-toggle .burger { display: block; position: relative; width: 18px; height: 11px; }
.nav-toggle .burger i { display: block; position: absolute; left: 0; right: 0; height: 1px; background: #304632; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle .burger i:nth-child(1) { top: 0; }
.nav-toggle .burger i:nth-child(2) { top: 5px; }
.nav-toggle .burger i:nth-child(3) { top: 10px; }
.menu-open .nav-toggle .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .nav-toggle .burger i:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle, .mobile-menu { display: none !important; } }

.site-header.menu-open { background: #F8F7F2; border-bottom-color: #D5D9CF; }
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  background: #F8F7F2; border-bottom: 1px solid #D5D9CF;
  transition: grid-template-rows .3s ease, opacity .25s ease, visibility 0s linear .3s;
}
.menu-open .mobile-menu { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .3s ease, opacity .25s ease, visibility 0s; }
.mobile-menu > nav { overflow: hidden; min-height: 0; }
.mobile-menu ul { list-style: none; margin: 0; padding: .25rem max(24px, env(safe-area-inset-right, 0px)) 1.25rem max(24px, env(safe-area-inset-left, 0px)); max-width: 1100px; margin-inline: auto; }
.mobile-menu li a { display: flex; align-items: center; min-height: 52px; padding-left: .9rem; border-bottom: 1px solid #E4E6DF; box-shadow: inset 2px 0 0 transparent; font: 500 12px/1.2 "Inter", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #586258; text-decoration: none; transition: color .2s, box-shadow .2s; }
.mobile-menu li a:hover, .mobile-menu li a.active { color: #1A1A1A; box-shadow: inset 2px 0 0 #2E5A27; }
.mobile-menu .menu-cta { display: flex; align-items: center; justify-content: center; margin-top: 1.1rem; min-height: 52px; background: #2E5A27; color: #FFFFFF; text-decoration: none; font: 500 12px/1 "Inter", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.mobile-menu .menu-cta:hover { background: #1F4119; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.5rem; line-height: 1; }
.brand svg { width: 20px; height: 20px; color: var(--green); flex: none; }


/* Footer in the Base44 look */
.site-footer { background: #F7F5F3; border-top: 1px solid #2E5A27; font-family: "Inter", system-ui, sans-serif; color: #1A1A1A; }
.ft-wrap { max-width: 1100px; margin-inline: auto; padding: 4.5rem max(24px, env(safe-area-inset-right, 0px)) 4rem max(24px, env(safe-area-inset-left, 0px)); }
.ft-cols { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .ft-cols { grid-template-columns: 1fr 1fr 1fr; gap: 0; } .ft-col { border-left: 1px solid #2E5A27; padding-left: 3.25rem; } }
.ft-logo img { height: 36px; width: auto; display: block; }
.ft-brand p { margin-top: 1.4rem; max-width: 17rem; font-size: .9375rem; line-height: 1.6; }
.ft-x { margin-top: 1.4rem; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #2E5A27; color: #2E5A27; transition: background-color .2s, color .2s; }
.ft-x svg { width: 16px; height: 16px; fill: currentColor; }
.ft-x:hover { background: #2E5A27; color: #FFFFFF; }
.ft-col h4 { margin: .25rem 0 1.4rem; font: 500 11px/1.4 "Inter", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #2E5A27; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.ft-col a { font-size: .9375rem; color: #1A1A1A; text-decoration: none; }
.ft-col a:hover { color: #2E5A27; text-decoration: underline; text-underline-offset: 3px; }
.ft-copy { margin-top: 3.25rem; padding-top: 2.5rem; border-top: 1px solid #2E5A27; font-size: .8125rem; }

/* Page layout */
.pg { padding: clamp(3rem, 2rem + 4vw, 5.5rem) max(24px, env(safe-area-inset-right, 0px)) clamp(4rem, 3rem + 4vw, 7rem) max(24px, env(safe-area-inset-left, 0px)); }
.pg-inner { max-width: 46rem; margin-inline: auto; }
.pg-wide { max-width: 1100px; margin-inline: auto; }
.pg-back { display: inline-flex; align-items: center; gap: .45rem; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.pg-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.pg-back:hover { color: var(--green); }
.pg-back:hover svg { transform: translateX(-3px); }
.pg-head { margin-top: 2.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--green); }
.pg-eyebrow { margin: 0; font: 500 11px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.pg-head h1 { margin: 1rem 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: 0; color: var(--ink); text-wrap: balance; }
.pg-lede { margin: 1.25rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--text); max-width: 40rem; }
.pg-meta { margin: 1.25rem 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.prose { padding-top: .5rem; }
.prose h2 { margin: 3rem 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.prose h3 { margin: 1.75rem 0 0; font: 600 1rem/1.4 var(--sans); color: var(--ink); }
.prose p { margin: .85rem 0 0; font-size: 1rem; line-height: 1.75; }
.prose ul { margin: .85rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.4rem; line-height: 1.65; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--green); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .note { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: #FFFFFF; font-size: .9rem; color: var(--muted); }

/* Boxes and grids (support page, related reading) */
.box-grid { display: grid; gap: 0; border: 1px solid var(--green); margin-top: 2rem; }
@media (min-width: 760px) { .box-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .box-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.box { padding: 1.75rem; min-width: 0; }
.box + .box { border-top: 1px solid var(--green); }
@media (min-width: 760px) { .box-grid.cols-3 .box + .box, .box-grid.cols-2 .box + .box { border-top: 0; border-left: 1px solid var(--green); } }
.box .k { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.box .v { margin-top: .6rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.box .v a { color: var(--ink); text-decoration-color: var(--green); }
.box p { margin: .7rem 0 0; font-size: .9375rem; line-height: 1.6; }
.box.featured { background: var(--tint); }
.tag { display: inline-block; font: 500 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF; background: var(--green); padding: 7px 10px; }
.box h3 { margin: 1rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--ink); }

.copy-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.1rem; border: 1px solid var(--green); background: transparent; color: var(--green); font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-line:hover { background: var(--green); color: #FFFFFF; }
.btn-solid { background: var(--green); color: #FFFFFF; }
.btn-solid:hover { background: var(--green-dark); border-color: var(--green-dark); color: #FFFFFF; }

.related { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--green); }
.related h2 { margin: 1rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; color: var(--ink); }
.rel-grid { margin-top: 1.75rem; display: grid; gap: 20px; }
@media (min-width: 700px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-card { display: flex; flex-direction: column; gap: .75rem; padding: 24px; border: 1px solid var(--green); color: var(--text); text-decoration: none; transition: background-color .2s; min-width: 0; }
.rel-card span:first-child { font: 400 1.35rem/1.3 var(--serif); color: var(--ink); transition: color .2s; }
.rel-card span:last-child { font-size: .875rem; line-height: 1.6; }
.rel-card:hover { background: var(--tint); color: var(--text); }
.rel-card:hover span:first-child { color: var(--green); }

.cta-band { margin-top: 4rem; padding: 2.5rem 1.75rem; border: 1px solid var(--green); background: #FFFFFF; text-align: center; }
.cta-band h2 { margin: .75rem auto 0; max-width: 22ch; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.1; color: var(--ink); }
.cta-band p { margin: .9rem auto 0; max-width: 34rem; font-size: .9875rem; }
.cta-band .btn-line { margin-top: 1.5rem; padding: 1.1rem 1.6rem; }
