/* Optional segmented controls. Native radios remain usable without JavaScript. */
.gh-segmented {
  --gh-seg-accent:var(--gh-forest,#10312b); --gh-seg-active-ink:#fff;
  --gh-seg-ink:var(--gh-forest,#10312b); --gh-seg-surface:#eeefe9;
  --gh-seg-height:48px; --gh-seg-label-padding:22px; --gh-seg-radius:999px;
  --gh-seg-duration:260ms; --gh-seg-inset:4px;
  display:inline-block; min-inline-size:0; max-width:100%; margin:0; padding:0; border:0;
  color:var(--gh-seg-ink); font-family:var(--gh-sans,Montserrat,sans-serif); vertical-align:middle;
}
.gh-segmented--forest { --gh-seg-accent:var(--gh-forest,#10312b); }
.gh-segmented--grove { --gh-seg-accent:var(--gh-grove,#295135); }
.gh-segmented--water { --gh-seg-accent:var(--gh-water,#007da5); }
.gh-segmented--lime { --gh-seg-accent:var(--gh-lime,#a1d184); --gh-seg-active-ink:var(--gh-forest,#10312b); }
.gh-segmented--mint { --gh-seg-accent:var(--gh-mint,#45c2b1); --gh-seg-active-ink:var(--gh-forest,#10312b); }
.gh-segmented--sky { --gh-seg-accent:var(--gh-sky,#6bc4e8); --gh-seg-active-ink:var(--gh-forest,#10312b); }
.gh-segmented--yellow { --gh-seg-accent:var(--gh-yellow,#e3e28d); --gh-seg-active-ink:var(--gh-forest,#10312b); }
.gh-segmented--sand { --gh-seg-accent:var(--gh-sand,#eade98); --gh-seg-active-ink:var(--gh-forest,#10312b); }
.gh-segmented [hidden], .gh-segmented-pagination [hidden], .gh-seg-scenes [hidden] { display:none !important; }
.gh-segmented__track { position:relative; display:flex; gap:2px; max-width:100%; padding:var(--gh-seg-inset); border-radius:var(--gh-seg-radius); background:var(--gh-seg-surface); overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; isolation:isolate; }
.gh-segmented__track::-webkit-scrollbar { display:none; }
.gh-segmented__option { position:relative; z-index:1; display:flex; flex:1 0 auto; min-width:44px; margin:0; cursor:pointer; }
.gh-segmented__input { position:absolute; width:1px; height:1px; padding:0; margin:-1px; border:0; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.gh-segmented__label { position:relative; display:flex; justify-content:center; align-items:center; gap:9px; width:100%; min-height:max(44px,var(--gh-seg-height)); padding:10px var(--gh-seg-label-padding); border-radius:var(--gh-seg-radius); color:var(--gh-seg-ink); font:600 .82rem/1.35 var(--gh-sans,Montserrat,sans-serif); white-space:nowrap; user-select:none; -webkit-tap-highlight-color:transparent; }
.gh-segmented__label svg { flex:none; }
.gh-segmented__input:not(:checked):not(:disabled) + .gh-segmented__label:hover { background:rgba(16,49,43,.06); }
.gh-segmented__input:checked + .gh-segmented__label { color:var(--gh-seg-active-ink); background:var(--gh-seg-accent); }
.gh-segmented__input:focus-visible + .gh-segmented__label { outline:2px solid currentColor; outline-offset:-4px; }
.gh-segmented__input:disabled + .gh-segmented__label { opacity:.4; cursor:not-allowed; }
.gh-segmented__indicator { position:absolute; z-index:0; inset-block:var(--gh-seg-inset); left:0; width:0; border-radius:var(--gh-seg-radius); background:var(--gh-seg-accent); pointer-events:none; }
.is-seg-enhanced .gh-segmented__input:checked + .gh-segmented__label { background:transparent; }
.is-seg-animated .gh-segmented__indicator { transition:transform var(--gh-seg-duration) cubic-bezier(.2,.7,.2,1),width var(--gh-seg-duration) cubic-bezier(.2,.7,.2,1); }
.gh-segmented--soft { --gh-seg-radius:16px; --gh-seg-surface:#f2f2ec; --gh-seg-inset:5px; }
.gh-segmented--soft .gh-segmented__indicator { box-shadow:0 3px 9px #10312b1c; }
.gh-segmented--square { --gh-seg-radius:9px; --gh-seg-inset:4px; }
.gh-segmented--outline { --gh-seg-surface:transparent; --gh-seg-active-ink:var(--gh-seg-ink); }
.gh-segmented--outline .gh-segmented__track { box-shadow:inset 0 0 0 1px #10312b29; }
.gh-segmented--outline .gh-segmented__indicator { background:transparent; box-shadow:inset 0 0 0 1.5px var(--gh-seg-accent); }
.gh-segmented--outline .gh-segmented__input:checked + .gh-segmented__label { background:transparent; box-shadow:inset 0 0 0 1.5px var(--gh-seg-accent); }
.gh-segmented--outline.is-seg-enhanced .gh-segmented__input:checked + .gh-segmented__label, .is-seg-enhanced .gh-segmented--outline .gh-segmented__input:checked + .gh-segmented__label { box-shadow:none; }
.gh-segmented--line { --gh-seg-radius:0px; --gh-seg-surface:transparent; --gh-seg-active-ink:var(--gh-seg-ink); --gh-seg-inset:0px; }
.gh-segmented--line .gh-segmented__track { box-shadow:inset 0 -1px #10312b24; }
.gh-segmented--line .gh-segmented__label { padding-bottom:14px; }
.gh-segmented--line .gh-segmented__indicator { top:auto; bottom:0; height:3px; background:var(--gh-seg-accent); }
.gh-segmented--line .gh-segmented__input:checked + .gh-segmented__label { background:transparent; box-shadow:inset 0 -3px var(--gh-seg-accent); }
.gh-segmented--line.is-seg-enhanced .gh-segmented__input:checked + .gh-segmented__label, .is-seg-enhanced .gh-segmented--line .gh-segmented__input:checked + .gh-segmented__label { box-shadow:none; }
.gh-segmented--glass { --gh-seg-ink:#fff; --gh-seg-surface:#1d4038; }
.gh-segmented--glass .gh-segmented__track { box-shadow:inset 0 0 0 1px #ffffff26; }
.gh-segmented--glass .gh-segmented__input:not(:checked):not(:disabled) + .gh-segmented__label:hover { background:#ffffff12; }
@supports (backdrop-filter:blur(16px)) { .gh-segmented--glass { --gh-seg-surface:#ffffff12; }.gh-segmented--glass .gh-segmented__track { backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); } }
.gh-segmented--compact { --gh-seg-height:44px; --gh-seg-label-padding:16px; }
.gh-segmented-pagination { display:flex; align-items:center; gap:10px; width:max-content; max-width:100%; min-width:0; margin:0; }
.gh-segmented-pagination > .gh-segmented { flex:0 1 auto; min-width:0; }
.gh-segmented-pagination__arrow { display:flex; align-items:center; justify-content:center; flex:0 0 48px; width:48px; height:48px; padding:0; border:0; border-radius:50%; color:var(--gh-forest,#10312b); background:#eeefe9; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.gh-segmented-pagination__arrow svg { transition:transform 180ms ease; }
.gh-segmented-pagination__arrow:not(:disabled):hover { color:var(--gh-white,#fff); background:var(--gh-forest,#10312b); }
.gh-segmented-pagination__arrow[data-seg-next]:not(:disabled):hover svg { transform:translateX(2px); }.gh-segmented-pagination__arrow[data-seg-prev]:not(:disabled):hover svg { transform:translateX(-2px); }
.gh-segmented-pagination__arrow:disabled { opacity:.35; cursor:default; }
.gh-segmented-pagination__arrow:focus-visible { outline:2px solid var(--gh-forest,#10312b); outline-offset:3px; }
.gh-segmented-pagination--joined { gap:4px; padding:4px; border-radius:16px; background:#eeefe9; }
.gh-segmented-pagination--joined .gh-segmented__track { background:transparent; padding:0; }.gh-segmented-pagination--joined .gh-segmented { --gh-seg-inset:0px; }
.gh-segmented-pagination--joined .gh-segmented-pagination__arrow { border-radius:10px; background:transparent; }.gh-segmented-pagination--joined .gh-segmented-pagination__arrow:not(:disabled):hover { background:var(--gh-forest,#10312b); }
.gh-segmented-pagination--minimal .gh-segmented-pagination__arrow { background:transparent; }.gh-segmented-pagination--minimal .gh-segmented-pagination__arrow:not(:disabled):hover { color:var(--gh-forest,#10312b); background:#10312b0d; }
/* Library-only presentation. No selectors change other components. */
.gh-segmented-library { margin-top:5rem; }.gh-segmented-library :is(h3,h4) { color:var(--gh-forest); }
.gh-seg-library-heading { max-width:720px; margin-bottom:2rem; }.gh-seg-library-heading h3 { margin:.75rem 0 1rem; font:400 clamp(2.5rem,4vw,4.5rem)/1.05 var(--gh-serif); letter-spacing:-.045em; }
.gh-seg-library-heading p,.gh-seg-subheading p { color:var(--gh-muted); line-height:1.7; }.gh-seg-jump { display:inline-block; margin-top:.5rem; font-size:.85rem; border-bottom:1px solid var(--gh-line); }
.gh-seg-feature { display:grid; grid-template-columns:1fr 1.2fr; align-items:center; gap:2rem; padding:clamp(24px,4vw,56px); border-radius:24px; background:radial-gradient(ellipse at 80% 10%,#295135 0%,transparent 70%),var(--gh-forest); color:#fff; }
.gh-seg-feature .gh-eyebrow { color:var(--gh-lime); }.gh-seg-feature h4 { color:#fff; font:400 clamp(2rem,3vw,3.5rem)/1.08 var(--gh-serif); letter-spacing:-.04em; }.gh-seg-feature p { color:#d9e2db; font-size:.9rem; line-height:1.7; margin:1rem 0 0; }
.gh-seg-feature__control { display:grid; justify-items:center; min-width:0; gap:1rem; }.gh-seg-feature__note { color:#d9e2db; font-size:.7rem; text-align:center; }
.gh-seg-subheading { margin:4rem 0 1.5rem; scroll-margin-top:7rem; }.gh-seg-subheading h3 { font:400 clamp(1.8rem,3vw,2.8rem)/1.15 var(--gh-serif); letter-spacing:-.035em; margin-bottom:.65rem; }
.gh-seg-designs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.gh-seg-example { min-width:0; border:1px solid var(--gh-line); border-radius:20px; overflow:hidden; background:var(--gh-white); }
.gh-seg-example > header { padding:24px 24px 0; }.gh-seg-example h4 { font:400 1.7rem/1.2 var(--gh-serif); margin:0 0 .65rem; }.gh-seg-example header p { color:var(--gh-muted); font-size:.8rem; line-height:1.7; margin:0; }
.gh-seg-example__surface { display:flex; align-items:center; justify-content:center; padding:28px 20px; min-height:124px; min-width:0; }
.gh-seg-example .gh-code { margin:0; border-radius:0; border-width:1px 0 0; }.gh-seg-example .gh-code code { max-height:320px; }
.gh-seg-example--dark .gh-seg-example__surface { margin:20px 16px; padding:28px 12px; border-radius:14px; background:radial-gradient(ellipse at top right,#295135,transparent),var(--gh-forest); }
.gh-seg-palette { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.gh-seg-palette article { min-width:0; padding:20px; border-radius:16px; border:1px solid var(--gh-line); background:var(--gh-white); }
.gh-seg-palette header { display:flex; align-items:center; gap:12px; margin-bottom:18px; }.gh-seg-palette h4 { font:600 .8rem/1.4 var(--gh-sans); margin:0 0 4px; }.gh-seg-palette small { font-size:.64rem; color:var(--gh-muted); overflow-wrap:anywhere; }.gh-seg-swatch { width:28px; height:28px; border-radius:50%; flex:none; }
.gh-seg-palette .gh-segmented { display:block; }.gh-seg-palette .gh-segmented__option { flex:1 0 0; }
.gh-seg-scene-example { border-radius:24px; overflow:hidden; background:var(--gh-cream); border:1px solid var(--gh-line); }.gh-seg-scenes__panel { position:relative; margin:0; }.gh-seg-scenes__panel img { display:block; width:100%; height:clamp(220px,32vw,400px); object-fit:cover; }
.gh-seg-scenes__panel figcaption { display:flex; align-items:baseline; gap:16px; padding:20px 24px; color:var(--gh-forest); background:var(--gh-white); }.gh-seg-scenes__panel figcaption span { font-size:.7rem; white-space:nowrap; }.gh-seg-scenes__panel strong { font:400 clamp(1.3rem,2.8vw,2rem)/1.2 var(--gh-serif); }
.gh-seg-scene-example__navigation { display:grid; justify-items:center; gap:14px; padding:24px 12px; }.gh-seg-scene-example__navigation p { max-width:46ch; text-align:center; margin:0; font-size:.7rem; color:var(--gh-muted); line-height:1.6; }
@media (max-width:760px) { .gh-seg-designs,.gh-seg-palette,.gh-seg-feature { grid-template-columns:1fr; }.gh-seg-feature__control { justify-items:start; }.gh-seg-feature__note { text-align:left; }.gh-segmented { --gh-seg-label-padding:16px; }.gh-seg-palette article { padding:16px; }.gh-seg-example__surface { padding:24px 12px; }.gh-segmented-pagination { gap:6px; }.gh-segmented-pagination .gh-segmented { --gh-seg-label-padding:12px; }.gh-segmented-pagination--joined { gap:0; } }
@media (prefers-reduced-motion:reduce) { .gh-segmented__indicator,.gh-segmented-pagination__arrow svg { transition:none !important; } }
