/* GLN Member FAQ — GLN Design System (../design-system/project). Light theme, with a dark theme that follows the device setting unless the reader picks Light or Dark in the theme switch. */
:root{
  color-scheme:light;
  --ink-muted-light:#3a4c68;
  --navy:#0a1e3f;--blue:#206296;--sky:#bcdbf7;--gold:#eac250;--cream:#fffaf5;--white:#fff;
  --ink-muted:#3a4c68;--line:#dce6f0;--sky-wash:#eef5fc;--slot-dash:#a9c6e3;
  --page:var(--cream);--surface:var(--white);--field:var(--white);--ink:var(--navy);--link:var(--blue);
  --solid:var(--navy);--on-solid:var(--white);--solid-hover:var(--blue);--on-solid-muted:var(--sky);
  --frame:var(--navy);--rule:var(--sky);--note-bg:var(--sky);--note-ink:var(--navy);
  --warn-bg:var(--navy);--warn-ink:var(--white);--warn-icon-bg:var(--white);--warn-icon-ink:var(--navy);--warn-link:var(--sky);
  --radius-sm:10px;--radius-md:20px;--radius-lg:28px;--radius-signature:110px;--radius-note:90px;--radius-pill:999px;
  --shadow-card:0 12px 30px -18px rgba(10,30,63,.35);
  --font-sans:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --chevron-open:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e3f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e3f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
picture{display:contents}
html{scroll-behavior:smooth;scrollbar-color:var(--slot-dash) var(--page)}
body{margin:0;background:var(--page);color:var(--ink);font:16px/1.55 var(--font-sans);-webkit-font-smoothing:antialiased;caret-color:var(--blue)}
::selection{background:var(--sky);color:var(--navy)}
button,input{font:inherit}
a{color:var(--link);text-underline-offset:3px}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header */
.site-header{height:84px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(20px,5vw,64px);background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.brand{display:flex;gap:16px;align-items:center;color:var(--ink);text-decoration:none}
.brand img{display:block;width:auto;height:54px}
.brand span{padding-left:16px;border-left:1px solid var(--line)}
.brand strong{font-size:18px;font-weight:900}
.header-actions{display:flex;align-items:center;gap:8px}
.guide-link,.login-link{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:12px;font-size:15px;font-weight:700;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.guide-link{border:1px solid var(--ink);color:var(--ink);background:var(--surface)}
.guide-link:hover{background:var(--sky-wash);color:var(--ink)}
.login-link{border:1px solid var(--solid);background:var(--solid);color:var(--on-solid)}
.login-link:hover{border-color:var(--solid-hover);background:var(--solid-hover);color:var(--on-solid)}

/* Hero: title panel with the signature corner */
main{min-height:calc(100vh - 160px)}
.hero{position:relative;overflow:hidden;max-width:1180px;margin:32px auto 0;padding:56px clamp(26px,6vw,72px) 60px;border-radius:var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-signature);color:var(--white);background:linear-gradient(115deg,var(--navy) 55%,var(--blue))}
.hero-copy,.search,.popular{position:relative;z-index:1}
.hero h1{margin:0;font-size:clamp(38px,5.4vw,56px);font-weight:900;line-height:1.05;letter-spacing:-.01em}
.hero-copy p{max-width:60ch;margin:14px 0 30px;color:var(--sky);font-size:18px;line-height:1.5}
.search{max-width:760px;display:flex;align-items:center;gap:12px;padding:8px 10px 8px 18px;border-radius:var(--radius-sm);background:var(--field);color:var(--ink-muted)}
.search svg{width:20px;height:20px;color:var(--link)}
.search input{width:100%;min-width:0;padding:10px 0;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px}
.search input::placeholder{color:var(--ink-muted);opacity:1}
.search kbd{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;color:var(--ink-muted);background:var(--sky-wash);font:700 13px var(--font-sans)}
.search:focus-within{outline:3px solid var(--gold);outline-offset:3px}
.popular{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;color:var(--sky);font-size:14px}
.popular button{border:1px solid rgba(188,219,247,.35);border-radius:var(--radius-pill);padding:6px 14px;color:var(--white);background:rgba(188,219,247,.08);cursor:pointer;transition:background .2s}
.popular button:hover{background:rgba(188,219,247,.22)}

/* Topics + answers */
.faq-shell{max-width:1180px;margin:0 auto;padding:56px 30px 72px;display:grid;grid-template-columns:250px minmax(0,1fr);gap:56px}
.categories{align-self:start;position:sticky;top:112px;display:grid;gap:2px}
.category-button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:0;border-radius:12px;text-align:left;background:transparent;color:var(--ink);font-size:15px;cursor:pointer;transition:background .2s}
.category-button:hover{background:var(--sky-wash)}
.category-button.active{background:var(--solid);color:var(--on-solid);font-weight:700}
.category-icon{display:none}
.category-count{margin-left:auto;color:var(--ink-muted);font-size:13px;font-variant-numeric:tabular-nums}
.category-button.active .category-count{color:var(--on-solid-muted)}
.result-heading{display:flex;justify-content:space-between;align-items:end;gap:18px}
.result-heading h2{margin:0;font-size:clamp(28px,3.4vw,40px);font-weight:900;line-height:1.1;letter-spacing:-.01em;text-wrap:balance}
.expand-button{padding:9px 16px;border:1px solid var(--ink);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .2s}
.expand-button:hover{background:var(--sky-wash)}
.result-count{margin:8px 0 24px;color:var(--ink-muted);font-size:14px;font-variant-numeric:tabular-nums}
.faq-list{display:grid;gap:10px}
.faq-item{scroll-margin-top:110px;border:1px solid var(--line);border-radius:18px;background:var(--surface);transition:box-shadow .25s,border-color .25s}
.faq-item[open]{border-color:var(--sky);box-shadow:var(--shadow-card)}
.faq-item summary{list-style:none;display:flex;align-items:center;gap:16px;padding:18px 20px 18px 24px;cursor:pointer;font-size:17px;font-weight:700;line-height:1.4;border-radius:18px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{color:var(--link)}
.faq-item summary:after{content:"";flex:none;width:32px;height:32px;margin-left:auto;border-radius:50%;background:var(--sky-wash) var(--chevron) center/18px no-repeat;transition:transform .25s cubic-bezier(.2,.8,.2,1),background-color .2s}
.faq-item[open] summary:after{background-color:var(--gold);background-image:var(--chevron-open);transform:rotate(180deg)}
.answer{padding:0 24px 22px;color:var(--ink-muted);max-width:75ch}
.answer p{margin:0 0 10px}
.answer strong,.answer b{color:var(--ink)}
.answer.image-only{max-width:none;padding:0 20px 22px}
.faq-answer-image{display:block;width:min(100%,640px);height:auto;margin:0 auto;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--white)}
.question-tag{display:inline-block;margin-top:10px;padding:3px 10px;border-radius:var(--radius-pill);background:var(--sky-wash);color:var(--link);font-size:12px;font-weight:700}

/* Share */
.answer-actions{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.share-feedback{color:var(--ink-muted);font-size:13px}
.share-toggle{display:inline-flex;align-items:center;gap:10px;padding:5px 18px 5px 5px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 6px 16px -12px rgba(10,30,63,.5);transition:border-color .2s,background .2s,box-shadow .2s}
.share-badge{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--gold);transition:transform .2s}
.share-badge svg{width:17px;height:17px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.share-toggle:hover,.share-toggle[aria-expanded="true"]{border-color:var(--link);background:var(--sky-wash);box-shadow:0 8px 20px -12px rgba(10,30,63,.6)}
.share-toggle:hover .share-badge,.share-toggle[aria-expanded="true"] .share-badge{transform:rotate(-12deg) scale(1.06)}
.share-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.share-toggle:disabled{cursor:wait;opacity:.75}
.share-menu{position:absolute;z-index:6;right:0;top:calc(100% + 8px);width:200px;padding:6px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);box-shadow:0 18px 40px -16px rgba(10,30,63,.4)}
.share-menu[hidden]{display:none}
.share-option{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:14px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer}
.share-option:hover{background:var(--sky-wash)}
.share-icon{display:grid;place-items:center;width:30px;height:30px;min-width:30px;border-radius:9px}
.share-icon img{display:block;width:17px;height:17px}
.download-icon{background:var(--navy);color:var(--white);font-size:18px;font-weight:900;line-height:1}
.link-icon{background:var(--blue)}
.link-icon img,.whatsapp-icon img{filter:brightness(0) invert(1)}
.whatsapp-icon{background:#25d366}

/* Empty state */
.empty-state{text-align:center;padding:64px 24px;border:2px dashed var(--slot-dash);border-radius:var(--radius-md);background:var(--sky-wash)}
.empty-state>span{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 14px;border-radius:50%;color:var(--on-solid);background:var(--solid);font-size:24px;font-weight:900}
.empty-state h3{margin:0;font-size:22px;font-weight:900}
.empty-state p{margin:6px 0 18px;color:var(--ink-muted)}
.empty-state button{border:0;border-radius:12px;padding:10px 16px;color:var(--on-solid);background:var(--solid);font-weight:700;cursor:pointer}
.empty-state button:hover{background:var(--solid-hover)}

/* Support */
.support-card{max-width:1120px;margin:0 auto 72px;padding:36px 40px;display:flex;align-items:center;justify-content:space-between;gap:28px;border:1px solid var(--line);border-radius:var(--radius-lg);background:linear-gradient(110deg,var(--page),var(--surface))}
.support-card h2{margin:0;font-size:28px;font-weight:900}
.support-card p{max-width:60ch;margin:8px 0 0;color:var(--ink-muted)}
.support-card a{display:inline-flex;align-items:center;gap:8px;padding:13px 20px;border-radius:12px;color:var(--on-solid);background:var(--solid);font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s}
.support-card a:hover{background:var(--solid-hover);color:var(--on-solid)}

footer{display:flex;justify-content:space-between;gap:30px;margin:0 max(24px,calc((100vw - 1120px)/2));padding:22px 0 30px;border-top:2px solid var(--rule);color:var(--ink-muted);font-size:14px}
footer p{margin:0}

@media(max-width:860px){
  .site-header{height:70px;padding:0 18px}
  .brand img{height:42px}
  .hero{margin:16px 16px 0;padding:40px 24px 44px;border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 72px}
  .hero-copy p{font-size:16px}
  .search kbd{display:none}
  .faq-shell{padding:32px 16px 52px;grid-template-columns:1fr;gap:22px}
  .categories{position:static;display:flex;overflow:auto;margin:0 -16px;padding:0 16px 6px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
  .category-button{width:auto;min-width:max-content;border:1px solid var(--line);background:var(--surface)}
  .category-count{display:none}
  .support-card{margin:0 16px 48px;padding:28px 24px;flex-direction:column;align-items:flex-start;border-radius:var(--radius-lg)}
  .support-card a{width:100%;justify-content:center}
  footer{margin:0 16px;flex-direction:column;gap:6px}
}
/* Small screens: one quiet text link, one solid button, one icon button, all 40px tall and on
   one line. The labels shorten so nothing wraps; the full names return at 621px. */
.label-short{display:none}
@media(max-width:620px){
  .brand span{display:none}
  .header-actions{gap:4px}
  .label-long{display:none}
  .label-short{display:inline}
  .guide-link,.login-link{height:40px;padding:0 12px;font-size:14px;white-space:nowrap}
  .guide-link{border-color:transparent;background:transparent}
  .login-link{margin-left:4px}
  .header-actions .theme-trigger{width:40px;height:40px}
}
@media(max-width:520px){.hero{margin:12px 12px 0;padding:26px 20px 24px;border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 56px}.hero h1{font-size:30px}.hero-copy p{margin:8px 0 18px;font-size:15px}.popular{display:none}.result-heading{display:block}.expand-button{margin-top:14px}.faq-item summary{padding:16px 16px 16px 18px;font-size:16px}.answer{padding:0 18px 18px}.answer.image-only{padding:0 10px 12px}.answer-actions{flex-direction:column;align-items:flex-end}.share-feedback{align-self:flex-start}.share-menu{width:100%}.share-toggle{align-self:flex-end}}
@media(max-width:360px){.site-header{gap:8px;padding:0 12px}.brand img{height:36px}.guide-link,.login-link{padding:0 10px}}
@media print{.site-header,.search,.popular,.categories,.expand-button,.support-card,.answer-actions{display:none!important}.hero{margin:0;padding:24px;color:var(--navy);background:none}.hero-copy p{color:var(--ink-muted)}.faq-shell{display:block;padding:20px}.faq-item{break-inside:avoid;box-shadow:none}.faq-item:not([open])>.answer{display:block}}
/* Dark theme: follows the device setting (as the sign-in hub does). Values from the
   GLN member app dark theme (apps/member/src/styles/companion/net-gln.css).
   Brand colours (navy, gold, sky) stay fixed: the tag and the key note do not change. */
/* Theme switch (assets/theme.js), one per page in the header. Same recipe as the Guide's
   site switcher: wash track, solid selected pill. At 860px and below one header button
   switches straight between light and dark on each tap (no menu). */
.theme-switch{position:relative;flex:none}
.theme-switch:empty{display:none}
.theme-trigger{display:none;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);cursor:pointer}
.theme-trigger:hover{background:var(--sky-wash)}
.theme-options{display:flex;gap:4px;padding:4px;border-radius:var(--radius-sm);background:var(--sky-wash)}
.theme-title,.theme-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.theme-options [role="radio"]{display:grid;place-items:center;width:38px;height:37px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ink);font:inherit;cursor:pointer;transition:background .2s,color .2s}
.theme-options [role="radio"]:hover{background:var(--surface)}
.theme-options [role="radio"][aria-checked="true"]{background:var(--solid);color:var(--on-solid)}
.theme-switch svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:860px){
  .theme-trigger{display:grid}
  .theme-options{display:none}
}
.theme-instant,.theme-instant *,.theme-instant *:before,.theme-instant *:after{transition:none!important}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --page:#071325;--surface:#102646;--field:#0f1d33;--ink:#eaf2fb;--ink-muted:#a7bcd8;--link:#5a9bd6;
    --line:rgba(188,219,247,.12);--sky-wash:#1a3a5c;--slot-dash:#3d5f86;
    --solid:var(--sky);--on-solid:var(--navy);--solid-hover:#eaf2fb;--on-solid-muted:var(--ink-muted-light);
    --frame:#5a9bd6;--rule:rgba(188,219,247,.25);--note-bg:#1a3a5c;--note-ink:#eaf2fb;
    --warn-bg:#eaf2fb;--warn-ink:var(--navy);--warn-icon-bg:var(--navy);--warn-icon-ink:var(--white);--warn-link:var(--blue);
    --shadow-card:0 12px 30px -18px rgba(0,0,0,.6);
    --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcdbf7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .hero{box-shadow:inset 0 0 0 1px rgba(188,219,247,.18)}
  :root:not([data-theme="light"]) .search{box-shadow:inset 0 0 0 1px rgba(188,219,247,.3)}
  :root:not([data-theme="light"]) .category-button.active .category-count{color:var(--ink-muted-light)}
}
/* Chosen in the theme switch: the same dark values, applied whatever the device says. */
:root[data-theme="dark"]{
    color-scheme:dark;
    --page:#071325;--surface:#102646;--field:#0f1d33;--ink:#eaf2fb;--ink-muted:#a7bcd8;--link:#5a9bd6;
    --line:rgba(188,219,247,.12);--sky-wash:#1a3a5c;--slot-dash:#3d5f86;
    --solid:var(--sky);--on-solid:var(--navy);--solid-hover:#eaf2fb;--on-solid-muted:var(--ink-muted-light);
    --frame:#5a9bd6;--rule:rgba(188,219,247,.25);--note-bg:#1a3a5c;--note-ink:#eaf2fb;
    --warn-bg:#eaf2fb;--warn-ink:var(--navy);--warn-icon-bg:var(--navy);--warn-icon-ink:var(--white);--warn-link:var(--blue);
    --shadow-card:0 12px 30px -18px rgba(0,0,0,.6);
    --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcdbf7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
:root[data-theme="dark"] .hero{box-shadow:inset 0 0 0 1px rgba(188,219,247,.18)}
:root[data-theme="dark"] .search{box-shadow:inset 0 0 0 1px rgba(188,219,247,.3)}
:root[data-theme="dark"] .category-button.active .category-count{color:var(--ink-muted-light)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Desktop header controls (861px and up): one pill dock. Round theme buttons with a gold
   selected state, a thin divider, the Guide as a quiet text link with a gold underline,
   and Member login as a solid pill whose arrow sits in a gold circle. */
@media(min-width:861px){
  .header-actions{gap:6px;padding:5px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--sky-wash)}
  .theme-options{gap:2px;padding:0;border-radius:var(--radius-pill);background:transparent}
  .theme-options [role="radio"]{width:36px;height:36px;border-radius:50%}
  .theme-options [role="radio"]:hover{background:var(--surface)}
  .theme-options [role="radio"][aria-checked="true"]{background:var(--gold);color:var(--navy);box-shadow:0 4px 10px -6px rgba(10,30,63,.6)}
  .theme-switch svg{width:18px;height:18px}
  .guide-link{position:relative;height:36px;margin-left:6px;padding:0 14px;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--ink)}
  .guide-link:before{content:"";position:absolute;left:-7px;top:9px;bottom:9px;width:1px;background:var(--rule)}
  .guide-link:after{content:"";position:absolute;left:14px;right:14px;bottom:6px;height:2px;border-radius:2px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .2s}
  .guide-link:hover{background:transparent}
  .guide-link:hover:after{transform:scaleX(1)}
  .login-link{height:36px;padding:0 4px 0 16px;gap:10px;border:0;border-radius:var(--radius-pill)}
  .login-link svg{box-sizing:border-box;width:28px;height:28px;padding:6px;border-radius:50%;background:var(--gold);stroke:var(--navy);stroke-width:2.6;transition:transform .2s}
  .login-link:hover svg{transform:rotate(45deg)}
  .guide-link:focus-visible,.login-link:focus-visible,.theme-options [role="radio"]:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
}
