/* GLSN Member Guide — 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);
  --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;
  --frame:var(--blue);--rule:var(--line);
  --note-bg:var(--ice);--note-ink:var(--blue);--note-icon-bg:var(--blue);
  --warn-bg:var(--white);--warn-ink:var(--charcoal);--warn-line: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;
  --check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --sidebar:296px;
}
*{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)}
a{color:var(--link);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--heading);text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;box-shadow:0 0 0 2px var(--blue)}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Sidebar */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:26px 18px 32px;background:var(--surface);border-right:1px solid var(--line);overflow:auto;z-index:3;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.brand{display:flex;align-items:center;gap:14px;padding:0 8px 22px}
.brand-logo{display:block;width:118px;height:auto;flex:none}
.brand strong{font-size:17px;font-weight:700;line-height:1.2;padding-left:14px;border-left:1px solid var(--line);color:var(--heading)}
.site-switcher{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 14px;padding:4px;border-radius:var(--radius-sm);background:var(--wash)}
.site-switcher a{padding:9px 6px 7px;border-radius:6px;color:var(--heading);font-size:14px;font-weight:600;text-align:center;text-decoration:none;transition:background .2s,color .2s}
.site-switcher a:hover{background:var(--surface)}
.site-switcher a.active{color:var(--on-solid);background:var(--solid);font-weight:700}
.search{display:flex;gap:10px;align-items:center;padding:11px 14px 9px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--field);margin-bottom:12px;color:var(--ink-muted);transition:border-color .2s}
.search:focus-within{border-color:var(--blue);outline:3px solid var(--yellow);outline-offset:2px}
.search svg{width:18px;height:18px;margin-top:-2px}
.search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:16px}
.search input::placeholder{color:var(--ink-muted);opacity:.85}
.group{margin:22px 12px 6px;color:var(--ink-muted);font-size:12px;font-weight:700;letter-spacing:.14em}
.nav-link{width:100%;display:block;border:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;text-align:left;padding:8px 12px 6px;border-radius:var(--radius-sm);cursor:pointer;transition:background .2s}
.nav-link:hover{background:var(--wash);color:var(--heading)}
.nav-link.active{background:var(--solid);color:var(--on-solid);font-weight:700}
.nav-link.hidden{display:none}

/* Top bar */
main{margin-left:var(--sidebar);min-height:100vh}
.topbar{height:68px;display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:0 clamp(20px,5vw,64px);border-bottom:1px solid var(--line);background:var(--page);position:sticky;top:0;z-index:2}
.network-title{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:700;color:var(--heading)}
.network-title span{margin-right:6px;color:var(--ink-muted);font-size:12px;letter-spacing:.14em}
.topbar-logo{display:none;width:92px;height:auto;flex:none}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:18px}
.page-count{color:var(--ink-muted);font-size:14px;font-variant-numeric:tabular-nums}
.faq-shortcut{padding:10px 16px 8px;border-radius:var(--radius-sm);background:var(--primary);color:var(--on-primary);font-size:15px;font-weight:700;text-decoration:none;transition:background .2s}
.faq-shortcut:hover{background:var(--primary-hover);color:var(--on-primary);text-decoration:none}
#menu{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}

/* Article */
article{max-width:940px;margin:auto;padding:44px clamp(20px,4vw,48px) 40px}
.page-head{position:relative;overflow:hidden;padding:34px 64px 40px 48px;border-radius:var(--radius-sm) var(--radius-signature) var(--radius-sm) var(--radius-sm);background:var(--blue);color:var(--white)}
.tag{display:inline-block;padding:7px 16px 5px;border-radius:var(--radius-pill);background:var(--yellow);color:var(--blue);font-size:13px;font-weight:700;letter-spacing:.12em;line-height:1.2}
article h1{position:relative;margin:16px 0 10px;color:var(--white);font-size:clamp(32px,4.6vw,42px);font-weight:700;line-height:1.05;letter-spacing:-.01em;text-wrap:balance}
article p.lead{position:relative;max-width:62ch;margin:0;color:var(--ice);font-size:18px;line-height:1.5}
article h2{color:var(--heading);font-size:25px;font-weight:700;line-height:1.2;margin:48px 0 12px;text-wrap:balance}
article h3{color:var(--heading);font-size:20px;font-weight:700;line-height:1.3;margin:0 0 6px}
article p,article li{max-width:70ch}
article p{color:var(--ink)}
article b,article strong{font-weight:700;color:var(--heading)}
article ol,article ul{padding-left:22px}
article li{margin:7px 0}
article li::marker{color:var(--red);font-weight:700}
article img{display:block;width:100%;max-height:620px;object-fit:contain;object-position:top;background:var(--white);cursor:zoom-in}
article figure{margin:26px 0;padding:12px;background:var(--surface);border:2px solid var(--frame);border-radius:var(--radius-sm)}
article figure img{border-radius:4px}
article figcaption{padding:10px 6px 2px;color:var(--ink-muted);font-size:14px;line-height:1.45}
article .hero-shot{margin:28px 0 8px}
article > img{margin:28px 0;border:2px solid var(--frame);border-radius:var(--radius-sm)}

/* Notes: plain (check), key (yellow, i), warning (red !) — fixed icons, never swapped */
.note{position:relative;margin:26px 0;padding:18px 22px 16px 70px;min-height:68px;border-radius:var(--radius-sm);background:var(--note-bg);color:var(--note-ink)}
.note:before{content:"";position:absolute;left:18px;top:16px;width:36px;height:36px;border-radius:50%;background:var(--note-icon-bg) var(--check) center/18px no-repeat}
.note strong{font-weight:700}
.note.key{background:var(--yellow);color:var(--blue);border-radius:var(--radius-sm) var(--radius-leaf) var(--radius-sm) var(--radius-sm);padding-right:48px}
.note.key:before{content:"i";display:grid;place-items:center;padding-top:3px;background:var(--blue);color:var(--yellow);font-size:21px;font-weight:700;line-height:1}
.note.key a,.note.key strong,.note.key b{color:var(--blue)}
.note.warning{background:var(--warn-bg);color:var(--warn-ink);border:1px solid var(--warn-line)}
.note.warning:before{content:"!";display:grid;place-items:center;padding-top:3px;background:var(--red);color:var(--white);font-size:21px;font-weight:700;line-height:1}
.note.warning strong,.note.warning b{color:var(--heading)}

.steps{display:grid;gap:18px;margin-top:22px}
.steps section{padding:26px 26px 10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm)}
.steps .step-number{float:left;display:grid;place-items:center;width:44px;height:44px;margin:-4px 14px 6px 0;padding-top:3px;border-radius:var(--radius-sm);background:var(--red);color:var(--white);font-weight:700;font-size:22px}
.steps h3{min-height:40px;display:flex;align-items:center}
.steps section > p,.steps section > ul{color:var(--ink)}
.steps figure{clear:both;margin:20px 0 14px}

.login-entry{display:flex;align-items:center;gap:16px;margin:16px 0;padding:14px 16px;background:var(--wash);border-radius:var(--radius-sm)}
.login-entry img{width:160px;max-height:none;margin:0;border-radius:4px}
.login-entry span{color:var(--ink)}

/* Pager */
footer{max-width:940px;margin:auto;padding:24px clamp(20px,4vw,48px) 56px;display:flex;justify-content:space-between;gap:16px}
footer button{display:inline-flex;align-items:center;gap:8px;padding:12px 18px 10px;border:1px solid var(--heading);border-radius:var(--radius-sm);background:var(--surface);color:var(--heading);font:inherit;font-size:16px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
footer button svg{width:18px;height:18px;margin-top:-2px}
footer button:hover:not(:disabled){border-color:var(--solid);background:var(--solid);color:var(--on-solid)}
footer button:disabled{border-color:var(--line);color:var(--slot-dash);cursor:default}
main > footer{border-top:1px solid var(--rule)}

/* Screenshot viewer */
.image-viewer{width:min(96vw,1500px);height:min(94vh,980px);padding:58px 18px 18px;border:0;border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);box-shadow:0 30px 80px -20px rgba(8,26,48,.6)}
.image-viewer::backdrop{background:rgba(8,26,48,.82);backdrop-filter:blur(4px)}
.image-viewer img{display:block;width:100%;height:calc(100% - 34px);object-fit:contain;background:var(--page);border-radius:4px}
.image-viewer p{height:26px;margin:8px 42px 0;text-align:center;color:var(--ink-muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.image-viewer-close{position:absolute;top:12px;right:14px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:var(--wash);color:var(--heading);cursor:pointer}
.image-viewer-close:hover{background:var(--slot-dash)}

.scrim{display:none}
@media(max-width:860px){
  .sidebar{transform:translateX(-102%);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
  .sidebar.open{transform:none;box-shadow:12px 0 40px -16px rgba(8,26,48,.45)}
  .scrim.open{display:block;position:fixed;inset:0;background:rgba(8,26,48,.5);z-index:2}
  main{margin-left:0}
  #menu{display:grid}
  .topbar-logo{display:block}
  .page-head{padding:28px 40px 32px 26px;border-radius:var(--radius-sm) 64px var(--radius-sm) var(--radius-sm)}
}
@media(max-width:520px){
  .network-title,.page-count{display:none}
  .topbar{gap:12px}
  .topbar-actions{gap:8px}
  .faq-shortcut{white-space:nowrap}
  .note{padding:16px 18px 14px 64px}
  .note:before{left:16px}
  article{padding-top:24px}
  article h1{font-size:30px}
  article p.lead{font-size:16px}
  .steps section{padding:20px 18px 6px}
  .login-entry{align-items:flex-start;flex-direction:column}
  footer button{padding:11px 14px 9px}
}
@media(max-width:360px){.faq-shortcut{white-space:normal;padding:8px 12px 6px;line-height:1.15;text-align:center}}
/* 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:34px;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: blue title panels, red step tiles, the yellow tag and key note. */
@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);--wash:#16365e;--slot-dash:#6f8aa3;
    --solid:var(--ice);--on-solid:var(--blue);--solid-hover:var(--white);--on-solid-muted:var(--blue);
    --frame:#5b80b2;--rule:rgba(190,225,247,.16);
    --note-bg:#16365e;--note-ink:#e6f4fb;--note-icon-bg:var(--ice);
    --warn-bg:var(--surface);--warn-ink:#e6f4fb;--warn-line:rgba(190,225,247,.16);
    --shadow-card:0 12px 28px -18px rgba(0,0,0,.6);
    --check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234777' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) ::selection{background:#16365e;color:#e6f4fb}
  :root:not([data-theme="light"]) .page-head{box-shadow:inset 0 0 0 1px rgba(190,225,247,.16)}
}
/* 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);--wash:#16365e;--slot-dash:#6f8aa3;
    --solid:var(--ice);--on-solid:var(--blue);--solid-hover:var(--white);--on-solid-muted:var(--blue);
    --frame:#5b80b2;--rule:rgba(190,225,247,.16);
    --note-bg:#16365e;--note-ink:#e6f4fb;--note-icon-bg:var(--ice);
    --warn-bg:var(--surface);--warn-ink:#e6f4fb;--warn-line:rgba(190,225,247,.16);
    --shadow-card:0 12px 28px -18px rgba(0,0,0,.6);
    --check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234777' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
:root[data-theme="dark"] ::selection{background:#16365e;color:#e6f4fb}
:root[data-theme="dark"] .page-head{box-shadow:inset 0 0 0 1px rgba(190,225,247,.16)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
