/* SewCraft website. The materials of a sewing table: unbleached linen, indigo ink, pincushion red, tape-measure
   mustard, kraft paper and chalk. One stylesheet for the home page, the help centre and the privacy policy. */

:root {
  --linen: #e6dcc8;
  --linen-deep: #dcd0b8;
  --paper: #fbf8f1;
  --ink: #283657;
  --ink-soft: rgba(40, 54, 87, 0.76);
  --ink-faint: rgba(40, 54, 87, 0.16);
  --red: #c0473b;
  --thread: #9b3b30;
  --mustard: #e2b23f;
  --kraft: #c9a36b;
  --kraft-ink: #3c2b1b;
  --sage: #8da287;
  --studio: #1d2436;
  --studio-2: #263048;
  --cream: #f6efe2;
  --text: "Gill Sans", "Gill Sans MT", Seravek, "Segoe UI", system-ui, sans-serif;
  --numerals: "DIN Condensed", "DIN Alternate", "Arial Narrow", var(--text);
  --hand: "Bradley Hand", "Segoe Print", "Comic Neue", cursive;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --shadow-paper: 0 1px 2px rgba(60, 43, 27, 0.2), 0 10px 28px rgba(60, 43, 27, 0.13);
  --shadow-lift: 0 2px 4px rgba(60, 43, 27, 0.2), 0 18px 40px rgba(60, 43, 27, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 100, 70, 0.07) 0 1px, transparent 1px 3px);
  font: 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--thread); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.1; }
h3 { font-size: 23px; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-soft); }
.hand { font-family: var(--hand); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 34em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- header and footer */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(230, 220, 200, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(40, 54, 87, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.wordmark { display: block; flex: none; transform: rotate(-1.2deg); }
.wordmark img { width: 148px; height: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom: 1.5px dashed var(--red); color: var(--ink); }
.store-chip {
  flex: none; font-size: 15px; font-weight: 600; color: var(--paper); background: var(--ink);
  padding: 9px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.store-chip:hover { color: var(--paper); background: #1e2944; }
@media (max-width: 900px) {
  .site-nav .home-only { display: none; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 14px; height: 62px; }
  .wordmark img { width: 120px; }
  .store-chip { display: none; }
  .site-nav { gap: 18px; }
}

.site-footer { margin-top: 40px; padding: 56px 0 64px; border-top: 1px dashed rgba(40, 54, 87, 0.28); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.site-footer p { font-size: 16px; color: var(--ink-soft); margin: 0 0 6px; }
.site-footer nav { display: flex; gap: 22px; font-size: 16px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--text);
  padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--paper); box-shadow: 0 2px 4px rgba(60, 43, 27, 0.28); }
.btn-primary:hover { color: var(--paper); background: #ad3d32; }
.btn-quiet { background: transparent; color: var(--ink); padding: 15px 4px; border-bottom: 1.5px dashed var(--ink-faint); border-radius: 0; }
.btn-quiet:hover { color: var(--ink); border-bottom-color: var(--red); }
.btn .button-icon { width: 18px; height: 18px; flex: none; }
.soon {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 11px 22px; border-radius: 14px;
  background: var(--ink); color: var(--paper); line-height: 1.15;
}
.soon small { font-size: 13px; opacity: 0.78; }
.soon strong { font-size: 18px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; margin: 30px 0 18px; }

/* ---------------------------------------------------------------- sewing-table details */

.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 32%, #f3a79e 0 18%, var(--red) 40%, #7e2a22 100%);
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.35); }
.pin::after { content: ""; position: absolute; left: 7px; top: 10px; width: 1.4px; height: 12px;
  background: linear-gradient(#cfd4da, #8b929b); transform: rotate(-24deg); transform-origin: top; }
.pin.gold { background: radial-gradient(circle at 35% 32%, #fff1c7 0 18%, var(--mustard) 42%, #8c6514 100%); }

.slip { background: var(--paper); box-shadow: var(--shadow-paper); border-radius: 3px; }
.note-tag {
  position: relative; display: inline-block; padding: 12px 18px 12px 40px; background: var(--kraft); color: var(--kraft-ink);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); filter: drop-shadow(1px 3px 4px rgba(60, 43, 27, 0.3));
}
.note-tag::before { content: ""; position: absolute; left: 14px; top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--linen); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }

/* ---------------------------------------------------------------- home: hero */

.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: min(86vh, 760px); }
.hero-copy { position: relative; z-index: 2; padding: 56px 0; }
.hero-copy h1 { max-width: 9.5em; }
.hero-copy .lede { margin-top: 24px; max-width: 27em; }
.hero-copy .fine { font-size: 15px; color: var(--ink-soft); }
.hero-scene { position: relative; margin: 0 calc(-1 * var(--gutter)) 0 0; height: min(84vh, 720px); }
/* The cloth fades into the table at its edges, so the scene has no hard frame. */
.hero-scene canvas { width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(62% 64% at 58% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(62% 64% at 58% 50%, #000 58%, transparent 100%); }
.hero-note { position: absolute; left: 6%; bottom: 10%; transform: rotate(-3deg); font-family: var(--hand); font-weight: 700;
  font-size: 18px; line-height: 1.25; max-width: 15em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px 0 8px; }
  .hero-scene { height: 62vh; min-height: 380px; margin: 0 calc(-1 * var(--gutter)); }
  .hero-scene canvas { -webkit-mask-image: radial-gradient(72% 60% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(72% 60% at 50% 50%, #000 60%, transparent 100%); }
  .hero-note { left: 5%; bottom: 7%; font-size: 16px; }
}

/* ---------------------------------------------------------------- home: sections */

.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; }

/* How you sew: a sticky stage with the steps scrolling past it */
.how-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); }
.how-stage { position: sticky; top: 96px; height: min(76vh, 640px); margin: 0; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 40% 30%, #efe6d4 0%, var(--linen-deep) 70%); box-shadow: inset 0 0 0 1px rgba(40, 54, 87, 0.08); }
.how-stage canvas { width: 100%; height: 100%; display: block; }
.how-steps { padding: 4vh 0 10vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.38; transition: opacity 0.4s ease; }
.step.is-active { opacity: 1; }
.step h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 14px 0 12px; }
.step p { max-width: 26em; }
.step-number {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 26px/1 var(--numerals);
  color: var(--red); border: 2px dashed currentColor; padding-top: 3px;
}
.step.is-active .step-number { color: var(--paper); background: var(--red); border-style: solid; border-color: var(--red); }
.drives { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 16px; color: var(--ink-soft); }
.drives b { color: var(--ink); font-weight: 600; }

.pedal-hud { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: end; gap: 14px; opacity: 0; transition: opacity 0.3s; }
.how-stage[data-mode="sew"] .pedal-hud { opacity: 1; }
.pedal { width: 74px; height: 96px; border-radius: 16px; background: linear-gradient(#2a2d33, #121418); border: 2px solid #c9a54a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); transform-origin: 50% 100%; transform: perspective(300px) rotateX(calc(var(--press, 0) * 24deg));
  background-image: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.08) 9px 11px), linear-gradient(#2a2d33, #121418); }
.speed { background: rgba(29, 36, 54, 0.82); color: var(--cream); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.speed b { font: 22px/1 var(--numerals); color: var(--mustard); margin-right: 5px; }
.stage-hint { position: absolute; left: 22px; top: 20px; right: 22px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { top: 64px; height: 42vh; z-index: 2; border-radius: 14px; }
  .step { min-height: 52vh; padding: 28px 2px; }
}

/* The machines, in a dark studio with the tape measure along the bottom */
.studio { background: var(--studio); color: var(--cream); position: relative; overflow: hidden;
  background-image: radial-gradient(90% 60% at 30% 0%, rgba(226, 178, 63, 0.10), transparent 70%); }
.studio a { color: var(--mustard); }
.studio .section-head p { color: rgba(246, 239, 226, 0.82); }
.timeline { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; padding: 10px 0 0; }
.timeline::-webkit-scrollbar { display: none; }
.timeline.is-dragging { cursor: grabbing; }
/* Without JavaScript the photos simply sit in a row; with it they're pinned along the tape by year. */
.timeline-track { position: relative; display: flex; gap: 28px; padding: 18px var(--gutter) 40px; width: max-content; }
.print { position: relative; width: 272px; margin: 0; transform: rotate(var(--tilt, 0deg));
  transition: transform 0.7s cubic-bezier(.2, 1.4, .4, 1) var(--delay, 0s), opacity 0.45s ease var(--delay, 0s); }
.js .timeline-track { display: block; padding: 0; }
.js .print { position: absolute; }
.print .photo { background: var(--paper); padding: 9px 9px 0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 18px 34px rgba(0, 0, 0, 0.3); }
.print img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.print .caption { color: var(--ink); padding: 10px 6px 14px; }
.print .caption h3 { font-size: 21px; display: flex; align-items: baseline; gap: 10px; }
.print .caption .year { font: 22px/1 var(--numerals); color: var(--red); }
.print .caption .drive { font-size: 14px; color: var(--ink-soft); margin: 2px 0 6px; }
.print .caption p { font-size: 15px; line-height: 1.45; margin: 0; }
.print .pin { top: -6px; left: 50%; }
.thread { position: absolute; width: 0; border-left: 1.5px dashed rgba(226, 178, 63, 0.7); transform-origin: top; z-index: 0;
  transition: opacity 0.6s ease var(--delay, 0s); }
.js .timeline:not(.is-seen) .thread { opacity: 0; }
.print { z-index: 1; }
.tape { position: absolute; left: 0; bottom: 0; height: 64px; background: var(--mustard); color: #3d2e0e;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.15) inset, 0 6px 16px rgba(0, 0, 0, 0.4); transform-origin: left; }
.tape svg { display: block; height: 100%; }
.timeline-hint { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: rgba(246, 239, 226, 0.7); }
.timeline-hint svg { width: 34px; height: 12px; }
.js .timeline:not(.is-seen) .tape { transform: scaleX(0); }
.js .timeline:not(.is-seen) .print { opacity: 0; transform: translateY(-40px) rotate(calc(var(--tilt, 0deg) * 4)); }
.timeline .tape { transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.tape text { font-family: var(--numerals); }

#name-svg text { font: 700 150px "Arial Rounded MT Bold", "Avenir Next", "Helvetica Neue", Arial, sans-serif; letter-spacing: 3px; }
.school-seam svg.seam { z-index: 2; pointer-events: none; }

/* Today's stitch */
.today-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.today-figure { position: relative; margin: 0; }
.today-figure svg.swatch { width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(60, 43, 27, 0.28)); }
.score-tag { position: absolute; right: -2%; top: 6%; transform: rotate(3deg); min-width: 190px; }
.score-tag .pct { font: 54px/1 var(--numerals); display: block; }
.score-tag .stars { font-size: 22px; letter-spacing: 3px; }
.score-tag .stars span { display: inline-block; opacity: 0.22; transform: scale(0.6); transition: opacity 0.25s, transform 0.4s cubic-bezier(.2, 1.8, .4, 1); }
.score-tag .stars span.on { opacity: 1; transform: none; }
.score-tag .clock { font-size: 14px; display: block; margin-top: 4px; }
.share-slip { position: absolute; left: 4%; bottom: -8%; padding: 16px 20px; font-size: 15px; line-height: 1.5; transform: rotate(-2deg);
  opacity: 0; translate: 0 16px; transition: opacity 0.5s, translate 0.6s cubic-bezier(.2, 1.2, .4, 1); max-width: 300px; }
.share-slip.on { opacity: 1; translate: 0 0; }
.share-slip .grid span { opacity: 0; transition: opacity 0.2s; }
.share-slip .grid span.on { opacity: 1; }
.replay { margin-top: 10px; font: 600 15px var(--text); background: none; border: 0; color: var(--thread); cursor: pointer; padding: 6px 0;
  border-bottom: 1.5px dashed currentColor; }
@media (max-width: 900px) {
  .today-grid { grid-template-columns: 1fr; }
  .share-slip { position: relative; left: 0; bottom: 0; margin-top: -30px; }
  .score-tag { right: 0; top: -2%; }
}

/* Sewing school: lessons along a seam */
.school-seam { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; padding-top: 34px; }
.school-seam svg.seam { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 70px; overflow: visible; }
.lesson { position: relative; padding: 70px 18px 20px; }
.lesson:nth-child(odd) { transform: rotate(-0.6deg); }
.lesson:nth-child(even) { transform: rotate(0.5deg); }
.lesson h3 { font-size: 19px; margin-bottom: 6px; }
.lesson p { font-size: 15px; line-height: 1.45; margin: 0; color: var(--ink-soft); }
.lesson .marker { position: absolute; top: 16px; left: 18px; width: 40px; height: 40px; }
.marker .chalk { fill: none; stroke: rgba(40, 54, 87, 0.45); stroke-width: 2; stroke-dasharray: 4 3; }
.marker .num { font: 21px var(--numerals); fill: var(--ink); }
.marker .button { transform-origin: 20px 20px; transform: scale(0.2); opacity: 0; transition: transform 0.45s cubic-bezier(.2, 1.8, .4, 1), opacity 0.2s; }
.lesson.is-sewn .marker .button { transform: none; opacity: 1; }
.lesson.is-sewn .marker .num, .lesson.is-sewn .marker .chalk { opacity: 0; transition: opacity 0.2s; }
@media (max-width: 980px) { .school-seam { grid-template-columns: repeat(2, minmax(0, 1fr)); } .school-seam svg.seam { display: none; } }
@media (max-width: 560px) { .school-seam { grid-template-columns: 1fr; } }

/* Your own: a name chalked and sewn, and a little video */
.yours-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.name-card { padding: 26px 26px 18px; }
.name-field { display: flex; align-items: center; gap: 8px; font-size: 20px; padding: 12px 16px; background: #fff; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(40, 54, 87, 0.15); min-height: 52px; }
.name-field .caret { width: 2px; height: 24px; background: var(--red); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.name-card svg { width: 100%; height: auto; margin-top: 18px; border-radius: 6px; }
.phone { position: relative; width: min(100%, 240px); aspect-ratio: 9 / 19.5; border-radius: 36px; padding: 9px; background: #12161f;
  box-shadow: 0 2px 0 #343b4a inset, var(--shadow-lift); margin: 0 auto; }
.phone canvas { width: 100%; height: 100%; border-radius: 28px; display: block; background: #f3ede0; }
.video-note { max-width: 240px; margin: 22px auto 0; }
.phone .rec { position: absolute; left: 22px; right: 22px; bottom: 30px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.phone .rec i { position: absolute; inset: 0 auto 0 0; background: var(--mustard); border-radius: 2px; width: var(--progress, 0%); }
@media (max-width: 900px) { .yours-grid { grid-template-columns: 1fr; } }

/* The last word */
.get { text-align: left; }
.get .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.get .big-label { width: clamp(220px, 26vw, 340px); transform: rotate(-2deg); filter: drop-shadow(0 10px 18px rgba(60, 43, 27, 0.3)); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .get .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- help centre and documents */

.doc-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px); }
.doc-hero p { margin-top: 16px; }
.finder { position: relative; max-width: 520px; margin-top: 28px; }
.finder input { width: 100%; font: 18px var(--text); color: var(--ink); padding: 15px 18px 15px 48px; border-radius: 12px; border: 0;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgba(40, 54, 87, 0.18), var(--shadow-paper); }
.finder input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.finder svg { position: absolute; left: 17px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--ink-soft); }
.finder-empty { display: none; margin-top: 20px; }
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 100px; font-size: 15.5px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 0 -14px; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: rgba(251, 248, 241, 0.6); }
.toc a.is-current { color: var(--ink); background: var(--paper); border-left-color: var(--red); box-shadow: var(--shadow-paper); }
.article { padding: 40px 0 48px; border-top: 1px dashed rgba(40, 54, 87, 0.22); display: grid; grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px 44px; align-items: start; }
.article:first-child { border-top: 0; padding-top: 4px; }
.article > .body { min-width: 0; }
.article h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 14px; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article p, .article li { max-width: 36em; }
.article ol, .article ul { padding-left: 22px; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.article .shots { display: grid; gap: 22px; position: sticky; top: 100px; }
.article.is-hidden, .toc li.is-hidden { display: none; }
.screen { margin: 0; }
.screen img { border-radius: 26px; border: 7px solid #141924; box-shadow: var(--shadow-lift); background: #141924; }
.screen figcaption { font-size: 14px; line-height: 1.4; color: var(--ink-soft); margin-top: 10px; }
.drive-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 16.5px; }
.drive-table th, .drive-table td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top; border-bottom: 1px solid rgba(40, 54, 87, 0.12); }
.drive-table th { font-weight: 600; white-space: nowrap; }
.tip { background: var(--paper); border-left: 3px solid var(--mustard); padding: 14px 18px; border-radius: 4px; margin: 18px 0; font-size: 16.5px; box-shadow: var(--shadow-paper); }
.faq details { background: var(--paper); border-radius: 10px; box-shadow: var(--shadow-paper); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 6px; }
.patches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 22px; }
.patches li { margin: 0; font-size: 16px; }
.patches b { display: block; }
@media (max-width: 1080px) { .article { grid-template-columns: 1fr; } .article .shots { position: static; grid-template-columns: repeat(auto-fill, minmax(170px, 210px)); } }
@media (max-width: 820px) {
  .help-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 0; }
  .toc a { border-left: 0; background: rgba(251, 248, 241, 0.6); padding: 6px 12px; }
}

.document { max-width: 760px; padding-bottom: 40px; }
.document h2 { font-size: 26px; margin: 40px 0 10px; }
.document .stamp { font-size: 15px; color: var(--ink-soft); }

.lost { min-height: 60vh; display: grid; align-content: center; }

/* ---------------------------------------------------------------- motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .timeline:not(.is-seen) .tape, .js .timeline:not(.is-seen) .print { transform: none; opacity: 1; }
}
