/* ===========================================================================
   Arvia user guide. Task-based: every section answers "how do I…", so the page
   is read by jumping, not top to bottom. Layout is a sticky contents rail plus
   one prose column — no cards, because a card grid implies the sections are
   peers you choose between, and these are steps you work through.
   =========================================================================== */

.guide-hero { padding-block: 64px 40px; border-bottom: 1px solid var(--line-soft); }
.guide-hero .crumb { font-size: 12px; color: var(--ink-dim); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px; }
.guide-hero h1 { font-family: var(--brand-sans); font-weight: 300; font-size: 46px;
  letter-spacing: -.01em; line-height: 1.1; margin-bottom: 16px; }
.guide-hero .lede { font-size: 15.5px; color: var(--ink-mid); max-width: 62ch; line-height: 1.8; }
.guide-hero .meta { margin-top: 22px; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim); }
.guide-hero .meta .amber { color: var(--amber); }

/* ---------- two-column shell ---------- */
.guide-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 56px;
  padding-block: 46px 90px; align-items: start; }

.guide-toc { position: sticky; top: 92px; font-size: 12.5px; }
.guide-toc .toc-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 14px; }
.guide-toc ol { list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin-bottom: 2px; }
.guide-toc a { display: block; color: var(--ink-mid); padding: 6px 10px 6px 30px;
  border-left: 2px solid transparent; border-radius: 0 6px 6px 0; position: relative;
  line-height: 1.5; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute;
  left: 9px; color: var(--ink-dim); font-size: 10.5px; top: 8px; }
.guide-toc a:hover { color: var(--ink); background: var(--panel); text-decoration: none;
  border-left-color: var(--amber); }

/* ---------- sections ---------- */
.guide-body > section { padding-bottom: 54px; margin-bottom: 54px;
  border-bottom: 1px solid var(--line-soft); }
.guide-body > section:last-child { border-bottom: 0; }
/* Sticky header is ~68px; without this an anchor jump buries the heading under it. */
.guide-body > section { scroll-margin-top: 88px; }

.guide-body h2 { font-family: var(--brand-sans); font-weight: 300; font-size: 30px;
  letter-spacing: -.01em; margin-bottom: 8px; }
.guide-body h3 { font-size: 14px; font-weight: 700; margin: 30px 0 10px; color: var(--ink); }
.guide-body p { color: var(--ink-mid); margin-bottom: 16px; max-width: 68ch; line-height: 1.85; }
.guide-body strong { color: var(--ink); font-weight: 500; }
.guide-body ul { margin: 0 0 18px 0; padding-left: 20px; color: var(--ink-mid); max-width: 68ch; }
.guide-body li { margin-bottom: 9px; line-height: 1.8; }

/* A UI label quoted from the app. Not <code> — this is a thing to click, not code. */
.ui { color: var(--ink); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 7px; font-size: 12.5px; white-space: nowrap; }

/* ---------- numbered steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0 26px; max-width: 68ch; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px;
  margin-bottom: 20px; color: var(--ink-mid); line-height: 1.8; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--amber); font-size: 12px; font-weight: 700;
  display: grid; place-items: center; }

/* ---------- figures ---------- */
figure { margin: 26px 0 30px; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); }
figure.narrow img { max-width: 460px; }
figure.tall img { max-width: 330px; }
figcaption { margin-top: 11px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.7;
  max-width: 68ch; }

/* ---------- callouts ---------- */
.note { border-left: 2px solid var(--amber); background: var(--panel);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 22px 0; max-width: 68ch; }
.note p { margin: 0; color: var(--ink-mid); font-size: 13.5px; }
.note .lbl { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 7px; }
.note.plain { border-left-color: var(--line); }
.note.plain .lbl { color: var(--ink-dim); }

/* ---------- small reference tables ---------- */
.guide-body table { width: 100%; max-width: 68ch; border-collapse: collapse; margin: 20px 0 26px;
  font-size: 13px; }
.guide-body th { text-align: left; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 400;
  padding: 0 14px 10px 0; border-bottom: 1px solid var(--line); }
.guide-body td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-mid); vertical-align: top; }
.guide-body td:first-child { color: var(--ink); white-space: nowrap; }

pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; margin: 18px 0 24px; max-width: 68ch;
  font-size: 12.5px; color: var(--ink-mid); line-height: 1.7; }

@media (max-width: 900px) {
  .guide-shell { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .guide-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .guide-toc ol { columns: 2; column-gap: 16px; }
  .guide-hero h1 { font-size: 34px; }
  figure.narrow img, figure.tall img { max-width: 100%; }
}


/* ===========================================================================
   Product-story guide redesign — 08/18/2026.
   Recovered from Dray-User-Guide.html — the name the product carried at the
   time — the single-file render built in a Cowork session that was lost
   before this reached the repo. It is an
   override layer: it targets the markup and section ids the guide page
   already has (#start ... #trouble) and changes no HTML. Appended last so
   the cascade lets it win.
   marker: product-guide-redesign
   =========================================================================== */

/* Product-story guide redesign — preserves the actual Arvia guide content and screenshots. */
:root{
  --guide-max:1280px;
  --guide-copy:720px;
}
/* clip, not hidden: overflow-x:hidden makes body a scroll container, and the
   anchor jump is then applied to a box that doesn't scroll — every link in
   the contents rail changed the URL and moved nothing (09/24/2026). */
body{overflow-x:clip}
.wrap{max-width:var(--guide-max)}
.guide-hero{
  /* Kelly 08/19/2026: the approved guide opens at 78vh with 140px of lead-in,
     which on a laptop is most of a screen of empty space before the title.
     Deliberate deviation, halved. The bottom-aligned composition and the
     glyph above the title are unchanged. */
  min-height:44vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding-block:72px 64px;
  border-bottom:0;
  position:relative;
}
.guide-hero:before{
  content:"";
  position:absolute;
  width:620px;height:620px;
  right:-170px;top:20px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(246,182,24,.11),rgba(246,182,24,0) 67%);
  pointer-events:none;
}
.guide-hero .crumb{margin-bottom:28px}
/* The mark and the title read as one block, with the sentence under both.
   Stacked, the title pushed the lede most of a screen down (Kelly,
   09/24/2026). */
.guide-id{
  display:flex;
  align-items:center;
  gap:26px;
  margin-bottom:28px;
}
.guide-id .product-glyph{flex:none;margin:0}
.guide-hero h1{
  font-family:var(--brand-sans);
  font-weight:300;
  font-size:clamp(38px,4.6vw,62px);
  line-height:1;
  letter-spacing:-.04em;
  max-width:14ch;
  margin:0;
}
@media(max-width:640px){
  .guide-id{flex-direction:column;align-items:flex-start;gap:18px}
  .guide-hero h1{max-width:none}
}
.guide-hero .lede{
  font-family:var(--brand-sans);
  font-size:clamp(17px,1.5vw,21px);
  font-weight:300;
  line-height:1.45;
  max-width:800px;
  color:#b9b9bf;
}
.guide-hero .meta{margin-top:34px}

.guide-shell{
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:64px;
  padding-block:0 100px;
  align-items:start;
}
/* A rail, not a bar. As a sticky horizontal strip this ran out of room at
   eleven entries and simply scrolled off the right edge at fourteen — the
   reader couldn't see where they were or what was left (Kelly, 09/24/2026).
   Down the side it holds any number, marks the section you're in, and fills
   space the page was wasting. */
.guide-toc{
  position:sticky;
  top:104px;
  z-index:20;
  align-self:start;
  padding:4px 0 0;
}
.guide-toc .toc-label{
  display:block;
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink-dim);
  padding-bottom:12px;
  margin-bottom:10px;
  border-bottom:1px solid var(--line-soft);
}
.guide-toc ol{display:flex;flex-direction:column;gap:1px;list-style:none;counter-reset:toc}
.guide-toc li{margin:0;counter-increment:toc}
.guide-toc a{
  display:block;
  position:relative;
  padding:6px 10px 6px 30px;
  border:0;
  border-radius:7px;
  color:var(--ink-dim);
  font-size:12px;
  line-height:1.45;
  letter-spacing:.01em;
}
.guide-toc a::before{
  content:counter(toc,decimal-leading-zero);
  position:absolute;
  left:9px;top:6px;
  font-size:10px;
  color:var(--line);
}
.guide-toc a:hover{background:var(--panel);color:var(--ink)}
.guide-toc a:hover::before{color:var(--amber-dim)}

.guide-body>section{
  position:relative;
  padding:78px 0 82px;
  margin:0;
  border-bottom:1px solid var(--line-soft);
  scroll-margin-top:120px;
}
.guide-body>section:first-child{padding-top:56px}
/* The full-bleed alternating band belonged to a single-column page; inside the
   rail layout it would tear the content column out of the grid. */
.guide-body>section:nth-child(even){
  margin:0;
  padding-left:0;
  padding-right:0;
  background:none;
}
/* The eyebrow over each section comes from the section itself — a
   data-step attribute in the markup. It used to be a list of Arvia's section
   IDs in this file, which meant a second product's guide either inherited the
   wrong label by ID collision or got none at all (09/24/2026). */
.guide-body>section[data-step]:before{
  content:attr(data-step);
  display:block;
  margin-bottom:24px;
  color:var(--amber);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.guide-body h2{
  font-family:var(--brand-sans);
  font-weight:300;
  font-size:clamp(30px,3.1vw,42px);
  line-height:1.1;
  letter-spacing:-.03em;
  max-width:850px;
  margin:0 0 20px;
}
.guide-body h3{
  font-family:var(--brand-sans);
  font-weight:500;
  font-size:19px;
  letter-spacing:-.01em;
  margin:34px 0 10px;
}
.guide-body p,.guide-body ul,.steps,.guide-body table,pre{
  max-width:var(--guide-copy);
}
.guide-body p{
  font-family:var(--brand-sans);
  font-size:15.5px;
  line-height:1.75;
  color:#a3a3ac;
  margin-bottom:16px;
}
.guide-body li{
  font-family:var(--brand-sans);
  font-size:17px;
  line-height:1.7;
}
.ui{
  font-family:var(--mono);
  font-size:12px;
  border-radius:6px;
  padding:3px 8px;
}
/* A long label ("System Settings → Privacy & Security") can't stay on one
   line on a phone — it ran off the screen. Let it wrap there. */
@media(max-width:560px){ .ui{ white-space:normal; } }
.steps{
  margin-top:34px;
  display:grid;
  gap:6px;
}
.steps>li{
  min-height:58px;
  padding:14px 16px 14px 62px;
  margin:0;
  border-top:1px solid var(--line-soft);
}
.steps>li::before{left:10px;top:14px}

/* Media is evidence, not decoration: big enough to read the thing it shows,
   small enough that a section still reads as a section. Kelly, 09/24/2026 —
   "images are far too big in the guide". */
figure{
  margin:30px 0 8px;
  width:min(720px,100%);
}
figure img,
figure video{
  width:100%;
  height:auto;
  max-width:100%;
  display:block;
  border-radius:12px;
  border:1px solid #2a2b31;
  background:var(--panel);
  box-shadow:0 22px 50px -26px rgba(0,0,0,.85);
}
/* A crop of one part of the window — shown at its own size, since it was cut
   at 2x precisely so it could be. */
figure.detail{width:min(560px,100%)}
/* A close-up cut from a 1x recording: shown at two-thirds of its pixels at
   most, so it stays sharp rather than being magnified back out. */
figure.closeup{width:min(560px,100%)}
figure.closeup.tall{width:min(372px,100%)}
figure.detail img{border-radius:10px}
/* The whole window, when the whole window is the point. */
figure.full{width:min(880px,100%)}
figure.narrow img{max-width:min(520px,100%)}
figure.tall img{max-width:min(440px,100%)}
figcaption{
  margin-top:16px;
  max-width:700px;
  font-size:12px;
  letter-spacing:.02em;
}
.note{
  margin:38px 0;
  max-width:760px;
  padding:22px 26px;
  border-radius:0 12px 12px 0;
}
.note p{font-family:var(--mono);font-size:13px;line-height:1.7}

#trouble h3{padding-top:24px;border-top:1px solid var(--line-soft);max-width:760px}

@media(max-width:760px){
  .wrap{padding-left:22px;padding-right:22px}
  .guide-hero{min-height:66vh;padding-block:100px 64px}
  .guide-hero h1{font-size:56px}
  .guide-hero .lede{font-size:20px}
  .guide-toc{
    top:64px;
    padding-left:16px;
    padding-right:16px;
  }
  .guide-body>section,
  #skipped,#license,#limits,#trouble{padding-top:88px;padding-bottom:92px}
  .guide-body>section:nth-child(even){
    padding-left:22px;padding-right:22px;
  }
  .guide-body h2{font-size:44px}
  .guide-body p{font-size:17px}
  figure{margin-top:44px}
}

/* ===========================================================================
   Arvia product glyph in the guide hero — 08/19/2026.
   The hero is a tall, bottom-aligned composition (min-height:78vh above), and
   the locked V2 mark is what anchors it. Without the glyph the hero reads as
   empty space rather than a deliberate opening.
   =========================================================================== */
.product-glyph {
  width: 108px;
  height: auto;
  display: block;
  margin: 0 0 30px;
}
@media (max-width: 720px) {
  .product-glyph { width: 84px; margin-bottom: 22px; }
}

/* ---------- guide on narrow screens ----------
   The redesign above redefines .guide-shell after the original 900px rule,
   so phones kept the desktop grid — a 200px rail beside a ~60px text column
   that ran off the screen. Restated last so it wins: one column, and the
   contents list sits above the text instead of beside it. */
@media (max-width:900px){
  .guide-shell{grid-template-columns:minmax(0,1fr);gap:28px}
  .guide-toc{position:static;border-bottom:1px solid var(--line);padding-bottom:20px}
  .guide-toc ol{display:block;columns:2;column-gap:16px}
}
@media (max-width:480px){
  .guide-toc ol{columns:1}
}
