/* GLSN Member FAQ — GLSN Design System (../design-system/project). Light theme, with a dark theme that follows the device setting. */
:root{
  color-scheme:light;
  /* Brand tokens (GLSN Brand Book p.7–8) */
  --blue:#234777;--red:#b11e39;--yellow:#fdcd07;--ice:#e1fbff;--paper:#f9f9f9;--charcoal:#424241;--white:#fff;
  --line:#dde3ea;--slot-dash:#8fb3cc;
  /* Semantic layer: components use these, the dark theme redefines them */
  --page:var(--paper);--surface:var(--white);--field:var(--white);
  --ink:var(--charcoal);--ink-muted:var(--charcoal);--heading:var(--blue);--link:var(--blue);
  --wash:var(--ice);--line-strong:var(--line);--line-open:var(--slot-dash);
  --solid:var(--blue);--on-solid:var(--white);--solid-hover:#16345c;--on-solid-muted:var(--ice);
  --primary:var(--red);--on-primary:var(--white);--primary-hover:#8a0d26;
  --rule:var(--line);
  --radius-sm:8px;--radius-signature:96px;--radius-leaf:40px;--radius-pill:999px;
  --shadow-card:0 12px 28px -18px rgba(35,71,119,.45);
  --font-sans:"League Spartan",Montserrat,"Helvetica Neue",Arial,sans-serif;
  --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234777' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chevron-open:var(--chevron);
}
*{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:17px/1.55 var(--font-sans);-webkit-font-smoothing:antialiased;caret-color:var(--blue)}
::selection{background:var(--ice);color:var(--blue)}
button,input{font:inherit}
a{color:var(--link);text-underline-offset:3px}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;box-shadow:0 0 0 2px var(--blue)}
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(--heading);text-decoration:none}
.brand img{display:block;width:auto;height:50px}
.brand span{padding-left:16px;border-left:1px solid var(--line)}
.brand strong{font-size:18px;font-weight:700}
.header-actions{display:flex;align-items:center;gap:8px}
.guide-link,.login-link{display:inline-flex;align-items:center;gap:6px;padding:11px 16px 9px;border-radius:var(--radius-sm);font-size:15px;font-weight:700;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.guide-link svg,.login-link svg{margin-top:-2px}
.guide-link{border:1px solid var(--heading);color:var(--heading);background:var(--surface)}
.guide-link:hover{background:var(--wash)}
.login-link{border:1px solid var(--primary);background:var(--primary);color:var(--on-primary)}
.login-link:hover{border-color:var(--primary-hover);background:var(--primary-hover);color:var(--on-primary)}

/* Hero: blue title panel with the one quarter-round corner (top-right) */
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-sm) var(--radius-signature) var(--radius-sm) var(--radius-sm);color:var(--white);background:var(--blue)}
.hero-copy,.search,.popular{position:relative;z-index:1}
.hero h1{margin:0;font-size:clamp(38px,5.4vw,54px);font-weight:700;line-height:1.02;letter-spacing:-.01em}
.hero-copy p{max-width:60ch;margin:14px 0 30px;color:var(--ice);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(--heading);margin-top:-2px}
.search input{width:100%;min-width:0;padding:11px 0 9px;border:0;outline:0;background:transparent;color:var(--ink);font-size:17px}
.search input::placeholder{color:var(--ink-muted);opacity:.85}
.search kbd{display:grid;place-items:center;width:30px;height:30px;padding-top:2px;border:1px solid var(--line-strong);border-radius:6px;color:var(--heading);background:var(--wash);font:700 14px var(--font-sans)}
.search:focus-within{outline:3px solid var(--yellow);outline-offset:3px}
.popular{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;color:var(--ice);font-size:15px}
.popular button{border:1px solid rgba(225,251,255,.4);border-radius:var(--radius-pill);padding:7px 14px 5px;color:var(--white);background:rgba(225,251,255,.08);cursor:pointer;transition:background .2s}
.popular button:hover{background:rgba(225,251,255,.2)}

/* 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 8px;border:0;border-radius:var(--radius-sm);text-align:left;background:transparent;color:var(--ink);font-size:16px;cursor:pointer;transition:background .2s}
.category-button:hover{background:var(--wash);color:var(--heading)}
.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:14px;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;color:var(--heading);font-size:clamp(30px,3.4vw,42px);font-weight:700;line-height:1.05;letter-spacing:-.01em;text-wrap:balance}
.expand-button{padding:10px 16px 8px;border:1px solid var(--heading);border-radius:var(--radius-sm);background:var(--surface);color:var(--heading);font-size:15px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .2s}
.expand-button:hover{background:var(--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:var(--radius-sm);background:var(--surface);transition:box-shadow .25s,border-color .25s}
.faq-item[open]{border-color:var(--line-open);box-shadow:var(--shadow-card)}
.faq-item summary{list-style:none;display:flex;align-items:center;gap:16px;padding:18px 20px 16px 24px;cursor:pointer;color:var(--heading);font-size:18px;font-weight:600;line-height:1.35;border-radius:var(--radius-sm)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.faq-item summary:after{content:"";flex:none;width:32px;height:32px;margin:-2px 0 0 auto;border-radius:50%;background:var(--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(--yellow);background-image:var(--chevron-open);transform:rotate(180deg)}
.answer{padding:0 24px 22px;color:var(--ink);max-width:75ch}
.answer p{margin:0 0 10px}
.answer strong,.answer b{color:var(--heading)}
.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:2px solid var(--blue);border-radius:var(--radius-sm);background:var(--white)}
.question-tag{display:inline-block;margin-top:10px;padding:4px 10px 2px;border-radius:var(--radius-pill);background:var(--wash);color:var(--heading);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:14px}
.share-toggle{display:inline-flex;align-items:center;gap:7px;padding:10px 14px 8px;border:1px solid var(--solid);border-radius:var(--radius-sm);background:var(--solid);color:var(--on-solid);font-size:15px;font-weight:700;cursor:pointer;transition:background .2s}
.share-toggle:hover,.share-toggle[aria-expanded="true"]{border-color:var(--solid-hover);background:var(--solid-hover)}
.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-strong);border-radius:var(--radius-sm);background:var(--surface);box-shadow:0 18px 40px -16px rgba(8,26,48,.4)}
.share-menu[hidden]{display:none}
.share-option{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px 7px;border:0;border-radius:6px;background:transparent;color:var(--heading);font-size:15px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer}
.share-option:hover{background:var(--wash)}
.share-icon{display:grid;place-items:center;width:30px;height:30px;min-width:30px;border-radius:50%}
.share-icon img{display:block;width:17px;height:17px}
.download-icon{background:var(--blue);color:var(--white);font-size:18px;font-weight:700;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-sm);background:var(--wash)}
.empty-state>span{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 14px;padding-top:3px;border-radius:50%;color:var(--white);background:var(--blue);font-size:26px;font-weight:700}
.empty-state h3{margin:0;color:var(--heading);font-size:24px;font-weight:700}
.empty-state p{margin:6px 0 18px;color:var(--ink)}
.empty-state button{border:0;border-radius:var(--radius-sm);padding:11px 16px 9px;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-sm);background:var(--surface)}
.support-card h2{margin:0;color:var(--heading);font-size:28px;font-weight:700}
.support-card p{max-width:60ch;margin:8px 0 0;color:var(--ink)}
.support-card strong{color:var(--heading)}
.support-card a{display:inline-flex;align-items:center;gap:8px;padding:14px 20px 12px;border-radius:var(--radius-sm);color:var(--on-primary);background:var(--primary);font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s}
.support-card a svg{margin-top:-2px}
.support-card a:hover{background:var(--primary-hover);color:var(--on-primary)}

footer{display:flex;justify-content:space-between;gap:30px;margin:0 max(24px,calc((100vw - 1120px)/2));padding:22px 0 30px;border-top:1px 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:40px}
  .hero{margin:16px 16px 0;padding:40px 24px 44px;border-radius:var(--radius-sm) 64px var(--radius-sm) var(--radius-sm)}
  .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-strong);background:var(--surface)}
  .category-count{display:none}
  .support-card{margin:0 16px 48px;padding:28px 24px;flex-direction:column;align-items:flex-start}
  .support-card a{width:100%;justify-content:center}
  footer{margin:0 16px;flex-direction:column;gap:6px}
}
@media(max-width:620px){.brand span{display:none}.guide-link,.login-link{padding:9px 11px 7px;font-size:14px}}
@media(max-width:520px){.hero{margin:12px 12px 0;padding:26px 20px 24px;border-radius:var(--radius-sm) 56px var(--radius-sm) var(--radius-sm)}.hero h1{font-size:32px}.hero-copy p{margin:8px 0 18px;font-size:16px}.popular{display:none}.result-heading{display:block}.expand-button{margin-top:14px}.faq-item summary{padding:16px 16px 14px 18px;font-size:17px}.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{width:100%;justify-content:center}}
@media(max-width:400px){.login-link svg{display:none}}
@media print{.site-header,.search,.popular,.categories,.expand-button,.support-card,.answer-actions{display:none!important}.hero{margin:0;padding:24px;color:var(--blue);background:none}.hero-copy p{color:var(--charcoal)}.faq-shell{display:block;padding:20px}.faq-item{break-inside:avoid;box-shadow:none}.faq-item:not([open])>.answer{display:block}}
/* 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 the options move into a
   small menu behind one header button, with their names written out. */
.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-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--heading);cursor:pointer}
.theme-trigger:hover,.theme-switch.is-open .theme-trigger{background:var(--wash)}
.theme-options{display:flex;gap:4px;padding:4px;border-radius:var(--radius-sm);background:var(--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(--heading);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-switch{position:static}
  .theme-trigger{display:grid}
  .theme-options{display:none;position:absolute;top:calc(100% + 6px);right:12px;z-index:20;width:248px;flex-direction:column;gap:2px;padding:6px;border:1px solid var(--line-strong);background:var(--surface);box-shadow:0 18px 36px -18px rgba(8,26,48,.45)}
  .theme-switch.is-open .theme-options{display:flex}
  .theme-title{position:static;width:auto;height:auto;clip:auto;padding:8px 10px 6px;color:var(--ink-muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
  .theme-options [role="radio"]{display:flex;align-items:center;gap:12px;width:100%;height:auto;min-height:52px;padding:8px 12px;text-align:left}
  .theme-options [role="radio"]:hover{background:var(--wash)}
  .theme-text{position:static;display:grid;gap:2px;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
  .theme-name{font-size:16px;font-weight:700;line-height:1.1}
  .theme-hint{color:var(--ink-muted);font-size:13px;line-height:1.25}
  [aria-checked="true"] .theme-hint{color:var(--on-solid-muted)}
}
.theme-instant,.theme-instant *,.theme-instant *:before,.theme-instant *:after{transition:none!important}
/* Dark theme: follows the device setting unless the reader picks Light or Dark in the theme switch (as the shared LNM sign-in page does). Values from the
   GLSN member app dark theme (apps/member/src/styles/companion/net-glsn.css).
   Brand colours stay fixed: the blue title panel, red buttons, the yellow open chevron. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --page:#081a30;--surface:#0e2b4e;--field:#0b2342;
    --ink:#e6f4fb;--ink-muted:#a6c0d4;--heading:#cfe0f5;--link:#cfe0f5;
    --line:rgba(190,225,247,.1);--line-strong:rgba(190,225,247,.16);--line-open:rgba(190,225,247,.3);--wash:#16365e;--slot-dash:#6f8aa3;
    --solid:var(--ice);--on-solid:var(--blue);--solid-hover:var(--white);--on-solid-muted:var(--blue);
    --rule:rgba(190,225,247,.16);
    --shadow-card:0 12px 28px -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='%23cfe0f5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --chevron-open:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234777' 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"]) ::selection{background:#16365e;color:#e6f4fb}
  :root:not([data-theme="light"]) .hero{box-shadow:inset 0 0 0 1px rgba(190,225,247,.16)}
  :root:not([data-theme="light"]) .search{box-shadow:inset 0 0 0 1px rgba(190,225,247,.3)}
  :root:not([data-theme="light"]) .faq-answer-image{border-color:#5b80b2}
}
/* Chosen in the theme switch: the same dark values, applied whatever the device says. */
:root[data-theme="dark"]{
    color-scheme:dark;
    --page:#081a30;--surface:#0e2b4e;--field:#0b2342;
    --ink:#e6f4fb;--ink-muted:#a6c0d4;--heading:#cfe0f5;--link:#cfe0f5;
    --line:rgba(190,225,247,.1);--line-strong:rgba(190,225,247,.16);--line-open:rgba(190,225,247,.3);--wash:#16365e;--slot-dash:#6f8aa3;
    --solid:var(--ice);--on-solid:var(--blue);--solid-hover:var(--white);--on-solid-muted:var(--blue);
    --rule:rgba(190,225,247,.16);
    --shadow-card:0 12px 28px -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='%23cfe0f5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --chevron-open:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234777' 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"] ::selection{background:#16365e;color:#e6f4fb}
:root[data-theme="dark"] .hero{box-shadow:inset 0 0 0 1px rgba(190,225,247,.16)}
:root[data-theme="dark"] .search{box-shadow:inset 0 0 0 1px rgba(190,225,247,.3)}
:root[data-theme="dark"] .faq-answer-image{border-color:#5b80b2}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
