/* GLN Member Guide — 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;
  --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:16px/1.55 var(--font-sans);-webkit-font-smoothing:antialiased;caret-color:var(--blue)}
::selection{background:var(--sky);color:var(--navy)}
a{color:var(--link);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--ink)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
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:112px;height:auto;flex:none}
.brand strong{font-size:17px;font-weight:900;line-height:1.2;padding-left:14px;border-left:1px solid var(--line)}
.site-switcher{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 14px;padding:4px;border-radius:var(--radius-sm);background:var(--sky-wash)}
.site-switcher a{padding:9px 6px;border-radius:10px;color:var(--ink-muted);font-size:13px;font-weight:700;text-align:center;text-decoration:none;transition:background .2s,color .2s}
.site-switcher a:hover{color:var(--ink);background:var(--surface)}
.site-switcher a.active{color:var(--on-solid);background:var(--solid)}
.search{display:flex;gap:10px;align-items:center;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--page);margin-bottom:12px;color:var(--ink-muted);transition:border-color .2s}
.search:focus-within{border-color:var(--blue);outline:3px solid var(--gold);outline-offset:2px}
.search svg{width:18px;height:18px}
.search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:15px}
.search input::placeholder{color:var(--ink-muted);opacity:1}
.group{margin:22px 12px 6px;color:var(--ink-muted);font-size:12px;font-weight:700;letter-spacing:.1em}
.nav-link{width:100%;display:block;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;text-align:left;padding:8px 12px;border-radius:12px;cursor:pointer;transition:background .2s}
.nav-link:hover{background:var(--sky-wash)}
.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:14px;font-weight:700;color:var(--ink)}
.network-title span{margin-right:6px;color:var(--ink-muted);font-size:12px;letter-spacing:.1em}
.topbar-logo{display:none;width:88px;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:9px 16px;border-radius:12px;background:var(--solid);color:var(--on-solid);font-size:14px;font-weight:700;text-decoration:none;transition:background .2s}
.faq-shortcut:hover{background:var(--solid-hover);color:var(--on-solid)}
#menu{display:none;flex:none;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer}

/* Article */
article{max-width:940px;margin:auto;padding:44px clamp(20px,4vw,48px) 40px}
.page-head{position:relative;overflow:hidden;padding:34px 48px 40px 52px;border-radius:var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-signature);background:linear-gradient(115deg,var(--navy) 55%,var(--blue));color:var(--white)}
.tag{display:inline-block;padding:7px 16px;border-radius:var(--radius-pill);background:var(--gold);color:var(--navy);font-size:12px;font-weight:900;letter-spacing:.1em;line-height:1.2}
article h1{position:relative;margin:16px 0 10px;font-size:clamp(32px,4.6vw,44px);font-weight:900;line-height:1.08;letter-spacing:-.01em;text-wrap:balance}
article p.lead{position:relative;max-width:62ch;margin:0;color:var(--sky);font-size:18px;line-height:1.5}
article h2{font-size:24px;font-weight:700;line-height:1.25;margin:48px 0 12px;text-wrap:balance}
article h3{font-size:19px;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(--ink)}
article ol,article ul{padding-left:22px}
article li{margin:7px 0}
article li::marker{color:var(--link);font-weight:700}
article img{display:block;width:100%;max-height:620px;object-fit:contain;object-position:top;background:var(--white);cursor:zoom-in}
/* Screenshots sit straight on the page: no card around them, so the image gets the full
   column width (most felt on phones). A hairline edge keeps white screens off a white page. */
article figure{margin:24px 0}
article figure img{border:1px solid var(--line);border-radius:var(--radius-sm)}
article figcaption{padding:8px 2px 0;color:var(--ink-muted);font-size:14px;line-height:1.45}
article .hero-shot{margin:28px 0 8px}
article > img{margin:28px 0;border:1px solid var(--line);border-radius:var(--radius-md)}

.note{position:relative;margin:26px 0;padding:18px 22px 18px 70px;min-height:68px;border-radius:var(--radius-md);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(--navy) 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") center/18px no-repeat}
.note.key{background:var(--gold);color:var(--navy);border-radius:var(--radius-md) var(--radius-md) var(--radius-note) var(--radius-md);padding-right:48px}
.note.key:before{content:"i";display:grid;place-items:center;background-image:none;color:var(--gold);font-size:20px;font-weight:900;line-height:1}
.note.warning{background:var(--warn-bg);color:var(--warn-ink)}
.note.warning:before{content:"!";display:grid;place-items:center;background:var(--warn-icon-bg);color:var(--warn-icon-ink);font-size:20px;font-weight:900;line-height:1}
.note.warning a,.note.warning strong,.note.warning b{color:var(--warn-ink)}
.note.warning a{color:var(--warn-link)}
.note.key a,.note.key strong,.note.key b{color:var(--navy)}
.note strong{font-weight:700}

.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-md)}
.steps .step-number{float:left;display:grid;place-items:center;width:44px;height:44px;margin:-4px 14px 6px 0;border-radius:16px 16px 16px 5px;background:var(--solid);color:var(--on-solid);font-weight:900;font-size:20px}
.steps h3{min-height:40px;display:flex;align-items:center}
.steps section > p,.steps section > ul{color:var(--ink-muted)}
.steps section b{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(--sky-wash);border-radius:var(--radius-sm)}
.login-entry img{width:160px;max-height:none;margin:0;border-radius:6px}
.login-entry span{color:var(--ink-muted)}

/* 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;border:1px solid var(--ink);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
footer button svg{width:18px;height:18px}
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:2px 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-lg);background:var(--surface);color:var(--ink);box-shadow:0 30px 80px -20px rgba(10,30,63,.6)}
.image-viewer::backdrop{background:rgba(10,30,63,.82);backdrop-filter:blur(4px)}
.image-viewer[open]{display:flex;flex-direction:column}
.image-viewer-stage{order:1;flex:1;min-height:0}
.image-viewer img{display:block;width:100%;height:100%;object-fit:contain;background:var(--page);border-radius:var(--radius-sm)}
.image-viewer-tools{display:none}
.image-viewer p{order:2;flex:none;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(--sky-wash);color:var(--ink);cursor:pointer}
.image-viewer-close:hover{background:var(--slot-dash)}
/* Phones and tablets: a bottom sheet with a grab handle. The screenshot opens fitted to the
   width; tap it (or Zoom in) to enlarge it where you tapped and pan in any direction. */
@media(max-width:860px){
  .image-viewer{top:auto;bottom:0;width:100vw;height:auto;max-width:none;max-height:92dvh;margin:0;padding:0;border-radius:26px 26px 0 0;background:var(--surface);box-shadow:0 -20px 60px -20px rgba(10,30,63,.6)}
  .image-viewer:before{content:"";position:absolute;left:50%;top:10px;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:var(--line)}
  .image-viewer p{order:0;height:auto;margin:0;padding:30px 70px 14px 20px;text-align:left;color:var(--ink);font-size:17px;font-weight:900;white-space:normal;line-height:1.25}
  .image-viewer-close{top:22px;right:16px;width:40px;height:40px}
  .image-viewer-stage{position:relative;flex:0 1 auto;max-height:64dvh;margin:0 12px;overflow:auto;border-radius:16px;background:var(--sky-wash) radial-gradient(var(--slot-dash) 1.2px,transparent 1.3px) 0 0/16px 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .image-viewer img{width:calc(100% - 24px);height:auto;max-width:none;margin:12px;object-fit:fill;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 30px -18px rgba(10,30,63,.6);cursor:zoom-in;transition:width .25s ease}
  .image-viewer.is-zoomed img{width:260%;cursor:zoom-out}
  .image-viewer.is-zoomed .image-viewer-stage{height:64dvh}
  .image-viewer-tools{order:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px calc(16px + env(safe-area-inset-bottom))}
  .image-viewer-hint{display:block;color:var(--ink-muted);font-size:13px;font-weight:700}
  .image-viewer-zoom{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px 0 12px;border:0;border-radius:var(--radius-pill);background:var(--solid);color:var(--on-solid);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
  .image-viewer-zoom svg{width:20px;height:20px}
  .image-viewer-zoom[aria-pressed="true"]{background:var(--gold);color:var(--navy)}
  .image-viewer[open]{animation:viewer-in .25s ease-out}
  .image-viewer::backdrop{background:rgba(10,30,63,.6);backdrop-filter:blur(2px)}
  @keyframes viewer-in{from{transform:translateY(100%)}to{transform:none}}
}

.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(10,30,63,.45)}
  .scrim.open{display:block;position:fixed;inset:0;background:rgba(10,30,63,.5);z-index:2}
  main{margin-left:0}
  #menu{display:grid}
  .topbar-logo{display:block}
  .page-head{padding:28px 26px 32px;border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 72px}
}
@media(max-width:520px){
  .topbar{gap:12px}
  .topbar-actions{gap:8px}
  .faq-shortcut{white-space:nowrap}
  .network-title,.page-count{display:none}
  .note{padding:16px 18px 16px 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}
}
/* 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. */
@media(max-width:360px){.topbar{gap:8px;padding:0 14px}.topbar-logo{width:80px}.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 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:34px;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);
    
  }
  :root:not([data-theme="light"]) .page-head{box-shadow:inset 0 0 0 1px rgba(188,219,247,.18)}
}
/* 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);
    
  }
:root[data-theme="dark"] .page-head{box-shadow:inset 0 0 0 1px rgba(188,219,247,.18)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
