@charset "UTF-8";
/* ==========================================================================
   UNGODLY RAVENFIELD — INSTALLATION GUIDE
   style.css
   by StixsworldHD (StixsmasterHD4k)

   Visual direction: a technical field manual for a game whose entire identity
   is blue against red on flat, overcast ground. The page is cool printed
   paper rather than a dark gamer shell, because this is a document you read
   while alt-tabbing out of Windows Explorer. Team blue marks everything you
   are meant to do; team red marks everything that will break the install.

   Contents
     01  Tokens
     02  Reset and base
     03  Typography
     04  Topbar
     05  Shell, sidebar, page
     06  Hero
     07  Callouts
     08  Steps
     09  Code
     10  Drop map  (signature component)
     11  Figures and lightbox
     12  Tables, specs, checklists
     13  Cards and chips
     14  Pager and footer
     15  Responsive
     16  Print and reduced motion
   ========================================================================== */


/* 01  TOKENS ============================================================== */

:root {
  /* Surfaces */
  --paper:        #e8edf3;
  --paper-deep:   #dbe3ec;
  --card:         #ffffff;
  --card-2:       #f3f7fb;
  --card-3:       #eaf0f7;

  /* Ink */
  --ink:          #101720;
  --ink-2:        #4b5a6b;
  --ink-3:        #7b8b9c;

  /* Rules */
  --rule:         #c7d3e0;
  --rule-soft:    #e0e8f1;

  /* Team blue — everything you are meant to do */
  --blue:         #1b47c4;
  --blue-deep:    #12308a;
  --blue-soft:    #5c7ee0;
  --blue-wash:    #e4eafb;

  /* Team red — everything that breaks the install */
  --red:          #c41e29;
  --red-wash:     #fbe3e4;

  /* Signal amber — read this before you click */
  --amber:        #945d00;
  --amber-wash:   #faeed6;

  /* Confirm green — this is what correct looks like */
  --green:        #10634a;
  --green-wash:   #dbefe5;

  /* Enhanced mod accent */
  --teal:         #0e6b87;
  --teal-wash:    #dcedf4;

  /* Type */
  --f-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* Metrics */
  --nav-w:     272px;
  --top-h:     62px;
  --page-w:    900px;
  --bleed-w:   1088px;
  --r-sm:      3px;
  --r-md:      5px;
  --r-lg:      8px;

  --shadow-1: 0 1px 2px rgba(16, 23, 32, .06), 0 2px 8px rgba(16, 23, 32, .05);
  --shadow-2: 0 2px 6px rgba(16, 23, 32, .08), 0 12px 32px rgba(16, 23, 32, .10);
  --shadow-3: 0 24px 70px rgba(6, 10, 16, .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --paper:        #0d131a;
  --paper-deep:   #080d13;
  --card:         #141c25;
  --card-2:       #1a232e;
  --card-3:       #202b37;

  --ink:          #e7eef6;
  --ink-2:        #9daec0;
  --ink-3:        #6d7e90;

  --rule:         #2a3541;
  --rule-soft:    #1f2832;

  --blue:         #7597ff;
  --blue-deep:    #a9bfff;
  --blue-soft:    #4a6bd0;
  --blue-wash:    #16213c;

  --red:          #ff7078;
  --red-wash:     #331a1c;

  --amber:        #e2a94f;
  --amber-wash:   #2c2415;

  --green:        #4fcc95;
  --green-wash:   #102e25;

  --teal:         #4fbedb;
  --teal-wash:    #102a33;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .28);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .40), 0 12px 32px rgba(0, 0, 0, .44);
  --shadow-3: 0 24px 70px rgba(0, 0, 0, .70);
}


/* 02  RESET AND BASE ====================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 22px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2.5px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--blue);
  color: #fff;
  padding: .7rem 1.15rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; color: #fff; }

::selection { background: var(--blue); color: #fff; }


/* 03  TYPOGRAPHY ========================================================== */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.014em;
  margin: 0 0 .55em;
  font-weight: 700;
}

.page h2 {
  font-size: clamp(1.42rem, 1.15rem + .95vw, 1.78rem);
  margin-top: 2.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  letter-spacing: -.02em;
}
.page h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.page h3 {
  font-size: 1.17rem;
  margin-top: 2.1rem;
  letter-spacing: -.008em;
}

.page h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  margin-top: 1.9rem;
  margin-bottom: .6rem;
}

.page p { margin: 0 0 1.1em; }
.page ul, .page ol { margin: 0 0 1.25em; padding-left: 1.3rem; }
.page li { margin-bottom: .45em; }
.page li > ul, .page li > ol { margin-top: .45em; margin-bottom: .3em; }

.page strong { font-weight: 600; color: var(--ink); }
.page em { font-style: italic; }

.lead {
  font-size: 1.09rem;
  color: var(--ink-2);
}

.anchored { position: relative; }
.anchor-link {
  margin-left: .45rem;
  color: var(--ink-3);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: .72em;
  opacity: 0;
  transition: opacity .16s var(--ease);
}
.anchored:hover .anchor-link,
.anchor-link:focus-visible { opacity: 1; }

kbd {
  font-family: var(--f-mono);
  font-size: .83em;
  font-weight: 600;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-bottom-width: 2.5px;
  border-radius: var(--r-sm);
  padding: .1em .45em;
  white-space: nowrap;
}

.page code {
  font-family: var(--f-mono);
  font-size: .875em;
  background: var(--card-3);
  border-radius: var(--r-sm);
  padding: .11em .36em;
  word-break: break-word;
}
.page pre code { background: none; padding: 0; font-size: inherit; }

code.path {
  color: var(--blue-deep);
  background: var(--blue-wash);
  font-weight: 500;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0;
}


/* 04  TOPBAR ============================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.4rem;
  max-width: 1560px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark { display: flex; }
.bm-bg { fill: var(--blue); }
.bm-fg { fill: #fff; }
.bm-bar { fill: var(--red); }

.brand-text { display: flex; flex-direction: column; line-height: 1.16; min-width: 0; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-sub {
  font-size: .68rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.topbar-link {
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: var(--r-md);
}
.topbar-link:hover { color: var(--ink); background: var(--card-3); }

.themetoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-left: .35rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.themetoggle:hover { color: var(--blue); border-color: var(--blue-soft); }
.tt-icon { display: none; }
[data-theme="light"] .tt-moon { display: flex; }
[data-theme="dark"]  .tt-sun  { display: flex; }

.navtoggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 600;
  padding: .42rem .7rem;
  cursor: pointer;
}
.navtoggle-bars { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.navtoggle-bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; }

.topbar-progress { height: 2px; background: transparent; }
.topbar-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width .1s linear;
}


/* 05  SHELL, SIDEBAR, PAGE ================================================ */

.shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  max-width: 1560px;
  margin: 0 auto;
  align-items: start;
}

.sidenav {
  position: sticky;
  top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.sidenav-inner { padding: 1.7rem 1.1rem 2.4rem 1.4rem; }

.sidenav-kicker {
  font-family: var(--f-mono);
  font-size: .69rem;
  line-height: 1.6;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .045em;
  margin: 0 0 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
}

.nav-chapter { margin-bottom: 1.45rem; }
.nav-chapter-title {
  font-family: var(--f-display);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ink-3);
  margin: 0 0 .5rem;
}

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0; }
.nav-item > a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .36rem .55rem .36rem .5rem;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink-2);
  font-size: .885rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-item > a:hover { background: var(--card-3); color: var(--ink); }

.nav-num {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-3);
  flex: none;
  font-variant-numeric: tabular-nums;
}
.nav-label { min-width: 0; }

.nav-item.is-here > a {
  background: var(--blue-wash);
  color: var(--blue-deep);
  font-weight: 600;
  border-left-color: var(--blue);
}
.nav-item.is-here .nav-num { color: var(--blue); }

.sidenav-foot {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-soft);
}
.sidenav-by { font-size: .78rem; color: var(--ink-2); margin: 0 0 .4rem; line-height: 1.5; }
.sidenav-by strong { color: var(--ink); }
.sidenav-updated {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--ink-3);
  margin: 0;
}

.navscrim { display: none; }

.main { min-width: 0; }
.page {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 2.6rem 1.6rem 3rem;
}


/* 06  HERO ================================================================ */

.hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.9rem;
  margin-bottom: 2.3rem;
  border-bottom: 2px solid var(--ink);
}

.hero-text { min-width: 0; flex: 1 1 auto; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-3);
  margin: 0 0 .85rem;
}
.hero-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.5rem;
  padding: 0 .4rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -.031em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

.hero-lede {
  font-size: 1.09rem;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 62ch;
}
.hero-lede p { margin: 0 0 .7em; }
.hero-lede p:last-child { margin-bottom: 0; }

.hero-meta {
  flex: none;
  width: 226px;
  font-family: var(--f-mono);
  font-size: .74rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: .85rem 1rem;
}
.hero-meta p { margin: 0 0 .45em; }
.hero-meta p:last-child { margin-bottom: 0; }
.hero-meta strong { color: var(--ink); font-weight: 600; }


/* 07  CALLOUTS ============================================================ */

.callout {
  display: flex;
  gap: .95rem;
  margin: 1.6rem 0;
  padding: 1.05rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  border-left-width: 3px;
  background: var(--card);
  font-size: .96rem;
}

.callout-mark {
  flex: none;
  width: 1.42rem; height: 1.42rem;
  margin-top: .1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.callout-body { min-width: 0; }
.callout-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 .3em;
  letter-spacing: -.008em;
}
.callout-body > p:last-child,
.callout-body > ul:last-child,
.callout-body > ol:last-child { margin-bottom: 0; }

.callout--note { border-left-color: var(--blue);  background: var(--blue-wash); }
.callout--note .callout-mark { background: var(--blue); }
.callout--note .callout-title { color: var(--blue-deep); }

.callout--tip { border-left-color: var(--teal); background: var(--teal-wash); }
.callout--tip .callout-mark { background: var(--teal); }
.callout--tip .callout-title { color: var(--teal); }

.callout--warn { border-left-color: var(--amber); background: var(--amber-wash); }
.callout--warn .callout-mark { background: var(--amber); }
.callout--warn .callout-title { color: var(--amber); }

.callout--stop { border-left-color: var(--red); background: var(--red-wash); }
.callout--stop .callout-mark { background: var(--red); }
.callout--stop .callout-title { color: var(--red); }

.callout--good { border-left-color: var(--green); background: var(--green-wash); }
.callout--good .callout-mark { background: var(--green); }
.callout--good .callout-title { color: var(--green); }


/* 08  STEPS =============================================================== */

.steps {
  counter-reset: stepnum;
  list-style: none;
  margin: 2.1rem 0 2.4rem;
  padding: 0;
}

.step {
  counter-increment: stepnum;
  position: relative;
  margin: 0 0 0 1.16rem;
  padding: 0 0 2.5rem 2.5rem;
  border-left: 2px solid var(--rule);
}
.step:last-child { border-left-color: transparent; padding-bottom: .4rem; }

.step::before {
  content: counter(stepnum, decimal-leading-zero);
  position: absolute;
  left: -1.17rem;
  top: -.18rem;
  width: 2.32rem; height: 2.32rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 600;
  border-radius: 50%;
  border: 3px solid var(--paper);
  font-variant-numeric: tabular-nums;
}

.step-head { margin-bottom: .75rem; padding-top: .06rem; }
.page .step-title {
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  letter-spacing: -.012em;
}
.step-sub {
  font-family: var(--f-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-3);
  margin: .3rem 0 0;
}
.step-body > *:last-child { margin-bottom: 0; }


/* 09  CODE ================================================================ */

.code {
  margin: 1.3rem 0 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card-2);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem .5rem .42rem .9rem;
  background: var(--card-3);
  border-bottom: 1px solid var(--rule);
}

.code-label {
  font-family: var(--f-mono);
  font-size: .71rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-3);
}

.code-copy {
  flex: none;
  font-family: var(--f-body);
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: .22rem .6rem;
  cursor: pointer;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
.code-copy:hover { color: var(--blue); border-color: var(--blue-soft); }
.code-copy.is-done { color: var(--green); border-color: var(--green); }

.code pre {
  margin: 0;
  padding: .95rem 1.05rem;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: .845rem;
  line-height: 1.62;
  color: var(--ink);
  tab-size: 4;
}

.code--path pre { color: var(--blue-deep); font-weight: 500; }

.code--log { background: #0f151c; border-color: #26313d; }
.code--log .code-bar { background: #161f29; border-bottom-color: #26313d; }
.code--log .code-label { color: #7b8b9c; }
.code--log .code-copy { background: #1d2730; border-color: #2f3b48; color: #9daec0; }
.code--log pre { color: #d5e0ec; }


/* 10  DROP MAP  (signature component) ===================================== */

.dropmap {
  margin: 1.6rem 0 1.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.dropmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.2rem;
  padding: .62rem 1.05rem;
  background: var(--card-3);
  border-bottom: 1px solid var(--rule);
}

.dropmap-title {
  font-family: var(--f-display);
  font-size: .77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--ink-2);
}

.dropmap-legend { display: flex; flex-wrap: wrap; gap: .95rem; }
.lg {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  font-family: var(--f-mono);
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.lg::before {
  content: '';
  width: .58rem; height: .58rem;
  border-radius: 2px;
  background: var(--ink-3);
}
.lg--base::before { background: var(--rule); border: 1px solid var(--ink-3); }
.lg--add::before  { background: var(--blue); }
.lg--auto::before { background: var(--amber); }

.dropmap-body {
  padding: 1rem 1.15rem 1.1rem;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: .845rem;
  line-height: 1.5;
}

.dm-list { list-style: none; margin: 0; padding: 0; }
.dm-list:not(.dm-depth-0) {
  margin-left: .62rem;
  padding-left: 1.15rem;
  border-left: 1px solid var(--rule);
}

.dm-item { position: relative; margin: 0; }
.dm-list:not(.dm-depth-0) > .dm-item::before {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: .92em;
  width: .8rem; height: 1px;
  background: var(--rule);
}

.dm-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .5rem;
  padding: .19rem .45rem .19rem .3rem;
  border-radius: var(--r-sm);
  margin: .04rem 0;
}

.dm-icon { flex: none; color: var(--ink-3); font-size: .82em; }
.dm-name { color: var(--ink-2); white-space: nowrap; }

.dm-dir > .dm-row > .dm-name { font-weight: 600; color: var(--ink); }
.dm-dir > .dm-row > .dm-icon { color: var(--ink-2); }

.dm-tag {
  flex: none;
  font-family: var(--f-body);
  font-size: .655rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .075em;
  padding: .08rem .42rem;
  border-radius: 2px;
  color: #fff;
  white-space: nowrap;
  position: relative;
  top: -1px;
}
.dm-tag--add  { background: var(--blue); }
.dm-tag--auto { background: var(--amber); }

.dm-note {
  font-family: var(--f-body);
  font-size: .79rem;
  color: var(--ink-3);
  font-style: italic;
}

/* Highlight the rows that are the whole point of the diagram */
.dm-s-add > .dm-row {
  background: var(--blue-wash);
  box-shadow: inset 2px 0 0 var(--blue);
}
.dm-s-add > .dm-row > .dm-name { color: var(--blue-deep); font-weight: 600; }
.dm-s-add > .dm-row > .dm-icon { color: var(--blue); }

.dm-s-auto > .dm-row {
  background: var(--amber-wash);
  box-shadow: inset 2px 0 0 var(--amber);
}
.dm-s-auto > .dm-row > .dm-name { color: var(--amber); font-weight: 600; }
.dm-s-auto > .dm-row > .dm-icon { color: var(--amber); }


/* 11  FIGURES AND LIGHTBOX ================================================ */

.fig { margin: 1.7rem 0 2rem; }

.fig-frame {
  position: relative;
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card-2);
  box-shadow: var(--shadow-1);
  line-height: 0;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.fig-frame:hover { box-shadow: var(--shadow-2); border-color: var(--blue-soft); }
.fig-frame img { width: 100%; }

.fig-zoom {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(12, 18, 26, .84);
  color: #fff;
  font-family: var(--f-body);
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  padding: .38rem .6rem;
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.fig-frame:hover .fig-zoom,
.fig-frame:focus-visible .fig-zoom { opacity: 1; transform: none; }

.fig-kind {
  position: absolute;
  left: .6rem;
  top: .6rem;
  background: rgba(12, 18, 26, .78);
  color: #fff;
  font-family: var(--f-mono);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1;
  padding: .34rem .52rem;
  border-radius: var(--r-sm);
}

.fig-cap {
  margin-top: .7rem;
  font-size: .855rem;
  line-height: 1.56;
  color: var(--ink-2);
  padding-left: .85rem;
  border-left: 2px solid var(--rule);
}
.fig-cap-title {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
  font-size: .9rem;
}
.fig-cap code {
  font-size: .84em;
  background: var(--card-3);
}

.fig-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.7rem 0 2rem;
}
.fig-pair .fig { margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0 2.2rem;
}
.gallery .fig { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.4rem;
}
.lightbox[hidden] { display: none; }

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 16, .88);
  backdrop-filter: blur(3px);
  animation: lb-fade .18s var(--ease);
}

.lightbox-frame {
  position: relative;
  margin: 0;
  max-width: min(1800px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  animation: lb-rise .2s var(--ease);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  width: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  background: #0d131a;
}

.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.2rem;
  color: #dbe4ee;
  font-size: .86rem;
}
.lightbox-title { font-family: var(--f-display); font-weight: 600; }
.lightbox-actions { display: flex; gap: .5rem; }

.lightbox-btn {
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  color: #dbe4ee;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-sm);
  padding: .35rem .8rem;
  cursor: pointer;
  text-decoration: none;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .19); color: #fff; }

@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }


/* 12  TABLES, SPECS, CHECKLISTS =========================================== */

.table-wrap {
  margin: 1.5rem 0 1.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow-x: auto;
  background: var(--card);
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: .89rem;
  min-width: 480px;
}
.dtable th, .dtable td {
  text-align: left;
  padding: .68rem .95rem;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.dtable thead th {
  background: var(--card-3);
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: var(--card-2); }
.dtable td code { font-size: .84em; }
.dtable .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .yes { color: var(--green); font-weight: 600; }
.dtable .no  { color: var(--red); font-weight: 600; }

.specs {
  margin: 1.4rem 0 1.8rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  padding: .62rem 1.05rem;
  border-bottom: 1px solid var(--rule-soft);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  font-family: var(--f-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .075em;
  color: var(--ink-3);
  padding-top: .16rem;
}
.spec-row dd { margin: 0; font-size: .93rem; min-width: 0; }

.checklist { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .6rem .9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
  margin-bottom: .5rem;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.check-item:has(.check-box:checked) {
  background: var(--green-wash);
  border-color: var(--green);
}
.check-box {
  flex: none;
  width: 1.05rem; height: 1.05rem;
  margin-top: .28rem;
  accent-color: var(--green);
  cursor: pointer;
}
.check-item label { cursor: pointer; font-size: .93rem; min-width: 0; }
.check-item:has(.check-box:checked) label { color: var(--ink-2); }


/* 13  CARDS AND CHIPS ===================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .69rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .16rem .5rem;
  border-radius: 2px;
  background: var(--card-3);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}
.chip--blue  { background: var(--blue-wash);  color: var(--blue-deep); border-color: var(--blue-soft); }
.chip--red   { background: var(--red-wash);   color: var(--red);       border-color: var(--red); }
.chip--teal  { background: var(--teal-wash);  color: var(--teal);      border-color: var(--teal); }
.chip--green { background: var(--green-wash); color: var(--green);     border-color: var(--green); }
.chip--amber { background: var(--amber-wash); color: var(--amber);     border-color: var(--amber); }

.modgrid { display: grid; gap: .9rem; margin: 1.7rem 0 2.1rem; }

.modcard {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.05rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-3);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.modcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }

.modcard-key {
  flex: none;
  width: 2.85rem; height: 2.85rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: .93rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  background: var(--card-3);
  color: var(--ink-2);
}
.modcard-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.modcard-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.012em;
}
.modcard-ver {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.modcard-blurb { font-size: .88rem; color: var(--ink-2); margin-top: .28rem; line-height: 1.48; }
.modcard-go { flex: none; margin-left: auto; color: var(--ink-3); font-size: 1.2rem; }
.modcard:hover .modcard-go { color: var(--blue); }

.modcard--blue { border-left-color: var(--blue); }
.modcard--blue .modcard-key { background: var(--blue-wash); color: var(--blue-deep); border-color: var(--blue-soft); }
.modcard--red { border-left-color: var(--red); }
.modcard--red .modcard-key { background: var(--red-wash); color: var(--red); border-color: var(--red); }
.modcard--teal { border-left-color: var(--teal); }
.modcard--teal .modcard-key { background: var(--teal-wash); color: var(--teal); border-color: var(--teal); }

/* Download blocks */
.dlgrid { display: grid; gap: 1.15rem; margin: 1.8rem 0 2.2rem; }

.dlcard {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.dlcard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .8rem;
  padding: .9rem 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--card-2);
}
.dlcard-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -.012em;
}
.dlcard-file {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--ink-3);
  margin-left: auto;
}
.dlcard-body { padding: 1rem 1.15rem 1.15rem; }
.dlcard-body > p:last-of-type { margin-bottom: 1rem; }

.dlrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 600;
  padding: .58rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--blue-soft); color: var(--blue); }
.btn--big { font-size: .96rem; padding: .72rem 1.4rem; }

.hashline {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--f-mono);
  font-size: .705rem;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: break-all;
}
.hashline b { color: var(--ink-2); font-weight: 500; }

/* Two-column feature grid */
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 2rem;
}
.fcard {
  padding: 1.05rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.fcard h4 { margin-top: 0; color: var(--ink); font-size: .95rem; text-transform: none; letter-spacing: -.008em; font-family: var(--f-display); }
.fcard p { font-size: .89rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.fcard p + p { margin-top: .6em; }


/* 14  PAGER AND FOOTER ==================================================== */

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pager-link:hover { border-color: var(--blue-soft); background: var(--card-2); color: inherit; }
.pager-empty { border: 0; background: none; }
.pager-next { text-align: right; }

.pager-dir {
  font-family: var(--f-mono);
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--ink-3);
}
.pager-title { font-family: var(--f-display); font-weight: 600; font-size: 1rem; }

.sitefoot {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  margin-top: 3rem;
}
.sitefoot-inner {
  max-width: calc(var(--page-w) + 3.2rem);
  margin: 0 auto;
  padding: 2.6rem 1.6rem 1.6rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.sitefoot-col--wide { max-width: 46ch; }
.sitefoot-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 .7rem;
  letter-spacing: -.015em;
}
.sitefoot-note { font-size: .83rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 .7rem; }
.sitefoot-head {
  font-family: var(--f-display);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ink-3);
  margin: 0 0 .6rem;
}
.sitefoot-list { list-style: none; margin: 0; padding: 0; }
.sitefoot-list li { margin-bottom: .34rem; }
.sitefoot-list a { font-size: .855rem; color: var(--ink-2); text-decoration: none; }
.sitefoot-list a:hover { color: var(--blue); text-decoration: underline; }
.sitefoot-legal {
  max-width: calc(var(--page-w) + 3.2rem);
  margin: 0 auto;
  padding: 1.1rem 1.6rem 2.2rem;
  font-family: var(--f-mono);
  font-size: .705rem;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
}


/* 15  RESPONSIVE ========================================================== */

/* Let the wide components breathe on large monitors */
@media (min-width: 1500px) {
  .fig--full, .dropmap, .table-wrap, .gallery, .fig-pair {
    margin-left: calc((var(--page-w) - var(--bleed-w)) / 2);
    margin-right: calc((var(--page-w) - var(--bleed-w)) / 2);
  }
}

@media (max-width: 1080px) {
  .hero { flex-direction: column; gap: 1.4rem; }
  .hero-meta { width: 100%; }
  .sitefoot-inner { grid-template-columns: 1fr 1fr; }
  .sitefoot-col--wide { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 900px) {
  :root { --top-h: 56px; }

  .navtoggle { display: inline-flex; }
  .topbar-link { display: none; }

  .shell { grid-template-columns: minmax(0, 1fr); }

  .sidenav {
    position: fixed;
    top: var(--top-h);
    left: 0;
    width: min(310px, 84vw);
    height: calc(100dvh - var(--top-h));
    z-index: 95;
    transform: translateX(-102%);
    transition: transform .24s var(--ease);
    box-shadow: var(--shadow-2);
    background: var(--paper);
  }
  .sidenav.is-open { transform: none; }

  .navscrim {
    display: block;
    position: fixed;
    inset: var(--top-h) 0 0;
    background: rgba(8, 13, 19, .45);
    z-index: 94;
    animation: lb-fade .2s var(--ease);
  }
  .navscrim[hidden] { display: none; }

  .page { padding: 2rem 1.15rem 2.4rem; }
  .fig-pair { grid-template-columns: minmax(0, 1fr); }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: .18rem; }
  .step { padding-left: 1.85rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { text-align: left; }
  .sitefoot-inner { grid-template-columns: minmax(0, 1fr); }
  .dropmap-legend { width: 100%; }
  .dlcard-file { margin-left: 0; width: 100%; }
  .lightbox { padding: 1rem .7rem; }
  .lightbox-img { max-height: calc(100vh - 9rem); }
}


/* 16  PRINT AND REDUCED MOTION ============================================ */

@media print {
  .topbar, .sidenav, .navscrim, .pager, .themetoggle,
  .fig-zoom, .code-copy, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .shell { display: block; }
  .page { max-width: none; padding: 0; }
  .fig-frame { break-inside: avoid; }
  .step, .callout, .dropmap { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .sitefoot { background: none; border-top: 1px solid #999; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Scroll-reveal, used sparingly on figures only */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
