/* ============================================================
   Hyphen Publishing - technical dark stylesheet
   Blue-black field, cool white type, one luminous signal
   (electric blue running into cyan). The signal is spent on
   the "hyphens": the short bars that mark headings and cards,
   the call to action, and the prices. No JS required.
   ============================================================ */

:root {
  color-scheme: dark;

  --bg:        #05080f;   /* page */
  --bg-raise:  #0b1220;   /* panels, cards */
  --bg-raise2: #101a2e;   /* panel hover */
  --bg-sunk:   #03050a;   /* quote band, footer */

  --text:      #e9eefb;
  --text-soft: #94a1bc;

  --signal:    #22d3ff;   /* cyan */
  --signal-2:  #4f8cff;   /* electric blue */
  --signal-hi: #9eeeff;   /* hover */
  --on-signal: #03101c;   /* text set on the signal */
  --stop:      #ff6b6b;   /* hard stops only: rules, no originals back */
  --grad:      linear-gradient(90deg, var(--signal-2), var(--signal));

  --line:       rgba(128, 170, 255, 0.20);
  --line-faint: rgba(128, 170, 255, 0.10);
  --glow:       0 0 22px rgba(34, 211, 255, 0.45);
  /* The wide glows under panels and buttons. How far one reaches
     sideways is its blur plus its (negative) spread: 30px, 48px, 26px.
     See "Glows that fit" below before changing these. */
  --glow-card:   0 22px 70px -40px rgba(47, 107, 255, 0.95);
  --glow-plate:  0 34px 90px -42px rgba(47, 107, 255, 0.85);
  --glow-btn:    0 10px 34px -8px rgba(47, 107, 255, 0.75);
  --glow-btn-hi: 0 14px 40px -8px rgba(34, 211, 255, 0.7);
  --glow-lift:   0 18px 50px -24px rgba(34, 211, 255, 0.55);

  --radius:    14px;
  --radius-sm: 9px;

  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
          BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo,
          Consolas, "Liberation Mono", monospace;
  --measure: 64ch;
}

/* ---------- Reset & base ---------- */

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background:
    radial-gradient(60rem 34rem at 85% -8rem, rgba(79, 140, 255, 0.20), transparent 62%),
    radial-gradient(46rem 28rem at -6rem -4rem, rgba(34, 211, 255, 0.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.0938rem);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-hi); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--signal); color: var(--on-signal); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Glows that fit ---------- */

/* A glow that reaches past the page's side gutter is cut off at the
   edge of the screen, and one that reaches past the gap below its panel
   is cut off by the next panel. The gutter (.wrap) narrows with the
   screen -- 48px, then 4% of the width, then about 17px on a phone --
   so the glows are drawn tighter to match: each one ends inside the
   room it has. Keep blur + spread at or under the gutter. */
@media (max-width: 75em) {
  :root {
    --glow-card:  0 16px 56px -36px rgba(47, 107, 255, 0.95);
    --glow-plate: 0 26px 66px -38px rgba(47, 107, 255, 0.9);
  }
}
@media (max-width: 46em) {
  :root {
    --glow:        0 0 14px rgba(34, 211, 255, 0.5);
    --glow-card:   0 18px 44px -28px rgba(47, 107, 255, 1);
    --glow-plate:  0 20px 46px -30px rgba(47, 107, 255, 0.95);
    --glow-btn:    0 8px 22px -8px rgba(47, 107, 255, 0.8);
    --glow-btn-hi: 0 10px 24px -8px rgba(34, 211, 255, 0.75);
    --glow-lift:   0 12px 34px -20px rgba(34, 211, 255, 0.6);
  }
}

/* ---------- Utilities ---------- */

.wrap {
  max-width: 71rem;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}

.smallcaps {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-title {
  color: var(--signal);
  margin-bottom: 1.6rem;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  top: 0;
  z-index: 100;
  background: var(--signal);
  color: var(--on-signal);
  padding: 0.7em 1.4em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease;
}
.skip-link:focus {
  transform: translate(-50%, 0.75rem);
  color: var(--on-signal);
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  z-index: 20;                  /* its menus open over the page */
  background: rgba(5, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* the signal, as a hairline across the top of every page */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  padding-block: 1.05rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 2.1rem;
  height: auto;
  color: var(--signal);
  flex: none;
  filter: drop-shadow(0 0 10px rgba(34, 211, 255, 0.55));
}

.brand-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.25em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.7rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.4em 0.1em;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.site-nav ul { align-items: center; }

/* Products: a menu of its own -- Pricing, then a page a product */
.nav-sub { position: relative; }
.site-nav .nav-sub-toggle::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.22em) rotate(45deg);
  transition: transform 0.15s ease;
}
.nav-sub.is-open > .nav-sub-toggle::after { transform: translateY(0.05em) rotate(225deg); }
.site-nav .nav-sub.is-current > .nav-sub-toggle { color: var(--signal); border-bottom-color: var(--signal); }
.site-nav .nav-sub-list {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 60;
  min-width: 13.5rem;
  grid-template-columns: minmax(0, 1fr);   /* not the phone menu's grid */
  justify-content: stretch;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  text-align: left;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 211, 255, 0.08);
  transform: translateX(-50%);
}
/* the gap under Products, so a mouse moving down keeps the list open */
.site-nav .nav-sub-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}
.site-nav .nav-sub.is-open > .nav-sub-list { display: grid; gap: 0.1rem; }
@media (hover: hover) and (pointer: fine) {
  .site-nav .nav-sub:hover > .nav-sub-list { display: grid; gap: 0.1rem; }
}
.site-nav .nav-sub-list li { grid-column: auto; padding: 0; justify-self: stretch; }
.site-nav .nav-sub-list li:first-child {
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line-faint);
}
.site-nav .nav-sub-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav .nav-sub-list a:hover { color: var(--text); background: rgba(34, 211, 255, 0.1); }
.site-nav .nav-sub-list a[aria-current="page"] { color: var(--signal); background: rgba(34, 211, 255, 0.08); }

/* Sign up: the one filled item in the nav */
.site-nav a.nav-cta,
.site-nav a.nav-cta[aria-current="page"] {
  padding: 0.42em 1.05em;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-signal);
  font-weight: 700;
  box-shadow: 0 6px 22px -8px rgba(34, 211, 255, 0.8);
}
.site-nav a.nav-cta:hover { color: var(--on-signal); filter: brightness(1.12); }

/* The phone rules below are for the top row only (`>`): the Products
   list is a ul of li too, and with them it ran sideways off the screen.
   OWNER 2026-10-24: keep it a vertical list on a phone. */
@media (max-width: 40em) {
  .masthead-inner { justify-content: center; text-align: center; }
  .site-nav > ul { justify-content: center; gap: 0.3rem 1.2rem; }
  /* OWNER 2026-10-15: the arrow made Products sit out of line with the
     other links on a phone. Tapping Products still opens its list. */
  .site-nav .nav-sub-toggle::after { display: none; }
}

/* Narrow phones: page links on one row, the two account links paired below */
@media (max-width: 31em) {
  .site-nav > ul {
    display: grid;
    grid-template-columns: repeat(10, auto);
    gap: 0.5rem 0;
    justify-content: center;
  }
  /* five page links, two columns each; then the account pair, centred */
  .site-nav > ul > li { grid-column: span 2; padding-inline: 0.5rem; }
  .site-nav > ul > li:nth-child(6) { grid-column: 1 / span 5; justify-self: end; }
  .site-nav > ul > li:nth-child(7) { grid-column: 6 / span 5; justify-self: start; }
}

/* ---------- Section furniture ---------- */

.section { padding-block: clamp(2.8rem, 7vw, 5.2rem); }
.section--flush { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head::before,
.section-head::after {
  content: "";
  border-top: 1px solid var(--line);
}
.section-head .smallcaps { color: var(--signal); }

.lede {
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: var(--measure);
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  margin-top: 2rem;
}
.btn-row--center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  background: var(--grad);
  color: var(--on-signal);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(34, 211, 255, 0.35), var(--glow-btn);
  transition: box-shadow 140ms ease, transform 140ms ease, filter 140ms ease;
}
.btn:hover {
  color: var(--on-signal);
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(34, 211, 255, 0.6), var(--glow-btn-hi);
}

.btn-ghost {
  background: rgba(128, 170, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(34, 211, 255, 0.10);
  border-color: var(--signal);
  color: var(--text);
  filter: none;
  transform: none;
  box-shadow: none;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.6rem, 6vw, 4.6rem);
}
/* drafting grid, fading out away from the light */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 85% 95% at 75% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 95% at 75% 0%, #000 15%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  color: var(--signal);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
/* the hyphen */
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.6rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 0.5em;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plate {
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(160deg, var(--bg-raise2), var(--bg-raise)) padding-box,
    linear-gradient(140deg, rgba(79, 140, 255, 0.95), rgba(34, 211, 255, 0.15) 45%, rgba(34, 211, 255, 0.8)) border-box;
  box-shadow: var(--glow-plate);
}
.plate-inner {
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
}
.plate-inner img {
  width: min(15rem, 80%);
  filter: drop-shadow(0 0 22px rgba(34, 211, 255, 0.35));
}
.plate-caption {
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 52em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plate { max-width: 24rem; margin-inline: auto; }
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.5vw, 3.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
  margin-bottom: 0.8rem;
}
/* lit segment at the start of each rule */
.steps li::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 2.6rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.steps h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
  color: var(--text);
}
.steps p { color: var(--text-soft); margin: 0; }

@media (max-width: 52em) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Pull quote ---------- */

.pullquote {
  background:
    radial-gradient(40rem 16rem at 50% 0%, rgba(79, 140, 255, 0.14), transparent 70%),
    var(--bg-sunk);
  border-block: 1px solid var(--line);
}

.pullquote blockquote {
  margin: 0 auto;
  max-width: 46rem;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 4.8rem) 0;
  position: relative;
}
.pullquote blockquote::before {
  content: "\201C";
  display: block;
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.6;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
}
.pullquote blockquote p {
  font-size: clamp(1.3rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 0 0 1.4rem;
}
.pullquote figure { margin: 0; padding-bottom: clamp(3rem, 7vw, 4.8rem); text-align: center; }
.pullquote figcaption {
  color: var(--signal);
}
.pullquote figcaption::before { content: "\2014\00a0"; }

/* ---------- Services (home teaser + about) ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.services li {
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.5rem;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.services li:hover {
  border-color: rgba(34, 211, 255, 0.55);
  box-shadow: var(--glow-lift);
}
/* the hyphen */
.services li::before {
  content: "";
  position: absolute;
  top: -2px; left: 1.6rem;
  width: 2.6rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.services h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.45em;
}
.services p { color: var(--text-soft); margin: 0; }

@media (max-width: 52em) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Prose / article pages ---------- */

.page-title-block {
  padding-block: clamp(2.6rem, 6vw, 4.4rem) 0;
}
.page-title-block h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.032em;
}
.page-title-block .lede { margin-top: 0.4rem; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }

.dropcap { font-size: 1.08em; color: var(--text); }

.mission {
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--signal), var(--signal-2)) 1;
  margin: 0;
  padding: 0.4rem 0 0.4rem clamp(1.2rem, 3vw, 2rem);
  max-width: 50rem;
}
.mission p {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  margin: 0;
}

/* ---------- Pricing pipeline: the three steps of every order ---------- */

/* Each step links to its price card; a pipe with an arrowhead runs from
   one step to the next (across on a wide screen, down on a phone). */
.pipeline {
  --node: 3rem;
  --pipe-gap: clamp(1.4rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pipe-gap);
  list-style: none;
  margin: 0 0 clamp(2.3rem, 4.4vw, 3.3rem);
  padding: 0;
}
.pipeline li { position: relative; }
.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  left: calc(var(--node) + 0.8rem);
  right: calc(0.8rem - var(--pipe-gap));
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}
.pipeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 5px);
  right: calc(0.85rem - var(--pipe-gap));
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
  transform: rotate(45deg);
}
.pipeline-step {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}
.pipeline-num,
.rate-step {
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--bg-sunk);
  box-shadow: var(--glow);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--signal);
}
.pipeline-num {
  width: var(--node);
  height: var(--node);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}
.pipeline-name { font-size: 1.12rem; font-weight: 700; color: var(--text); }
.pipeline-about { color: var(--text-soft); font-size: 0.95rem; }
.pipeline-step:hover .pipeline-name { color: var(--signal-hi); }
.pipeline-step:hover .pipeline-num { background: rgba(34, 211, 255, 0.1); }

/* the step's number on its price card; a title that wraps stays beside it */
.rate-step {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.55rem;
  vertical-align: 0.12em;
  font-size: 0.8rem;
  box-shadow: none;
}
.rate-card > h2:has(> .rate-step) { display: flex; align-items: center; }
.rate-card[id^="step-"] { scroll-margin-top: 1.2rem; }

@media (max-width: 52em) {
  .pipeline { grid-template-columns: 1fr; --pipe-gap: 1.6rem; }
  .pipeline-step { grid-template-columns: var(--node) 1fr; column-gap: 1rem; row-gap: 0.15rem; }
  .pipeline-num { grid-row: span 2; margin-bottom: 0; }
  .pipeline-name { align-self: end; }
  .pipeline li:not(:last-child)::after {
    top: calc(var(--node) + 0.5rem);
    bottom: calc(0.55rem - var(--pipe-gap));
    left: calc(var(--node) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .pipeline li:not(:last-child)::before {
    top: auto;
    bottom: calc(0.6rem - var(--pipe-gap));
    left: calc(var(--node) / 2 - 5px);
    right: auto;
    transform: rotate(135deg);
  }
}

/* ---------- Pricing rate card ---------- */

.rate-card {
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--glow-card);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

/* The gap is as tall as the glow under the panel above, so the next
   panel does not cut that glow off. */
.rate-card + .rate-card { margin-top: clamp(2.3rem, 4.4vw, 3.3rem); }

.rate-card > h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}
.rate-note {
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

.rate-note--after { margin-top: 1.4rem; margin-bottom: 0; }
/* a hard stop on the rate card: "we will not return any originals" */
.rate-note--stop { color: var(--stop); font-weight: 600; }
.rate-note strong { color: var(--text); font-family: var(--mono); font-weight: 600; }

.rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.rate-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-block: 0.95rem;
}
.rate-list li + li { border-top: 1px solid var(--line-faint); }
/* the kinds of question a research level covers, on a line of their own
   under its row (OWNER 2026-10-18: "give example of classes of oroblem at
   each difficulty as bullets") */
.rate-list li.has-examples { flex-wrap: wrap; }
.rate-list .rate-examples {
  flex-basis: 100%;
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.rate-list .rate-examples li { display: list-item; padding-block: 0.08rem; }
.rate-list .rate-examples li + li { border-top: 0; }
@media (min-width: 34.0625em) {
  /* wrapping for the examples must not drop the price under the name:
     the name and its words shrink beside it, as on any other row */
  .rate-list li.has-examples > .rate-name { flex: 10 1 0; min-width: 0; }
}

.rate-name { font-weight: 600; white-space: nowrap; }

.rate-tag {
  display: inline-block;
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-signal);
  background: var(--signal);
  border-radius: 999px;
  padding: 0.25em 0.8em 0.2em;
  vertical-align: 0.14em;
  white-space: nowrap;
}

.rate-leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dashed var(--line);
  transform: translateY(-0.28em);
}

.rate-price { text-align: right; white-space: nowrap; }
.rate-price strong {
  font-family: var(--mono);
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--signal);
  text-shadow: 0 0 18px rgba(34, 211, 255, 0.45);
}
/* a price that is a link instead of an amount ("Contact us first") */
.rate-price strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.rate-price strong a:hover { filter: brightness(1.15); }
/* the unit an amount is charged by, on the same line: 8c/page, $1/hr */
.rate-price .unit {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
}
.rate-price .per {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
}
/* one line under a product's name saying what it is */
.rate-about {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-soft);
  white-space: normal;
}
/* the printer's word for it, beside the plain one */
.rate-aka {
  margin-left: 0.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-soft);
}

/* The price of a mailing as one sum: the envelope, plus each sheet.
   Side by side with the plus sign between them; stacked on a phone. */
.price-sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: stretch;
  gap: 0 1rem;
  margin: 0 0 2rem;
}
.price-part {
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
}
.price-part-title {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.price-part-title--loose { margin: 0 0 0.2rem; }
.price-part-title--next { margin-top: 2.2rem; }
.rate-note--tight { margin-bottom: 0.4rem; }
.price-plus {
  align-self: center;
  margin: 0;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--signal);
  text-shadow: 0 0 20px rgba(34, 211, 255, 0.5);
}
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.price-rows li + li { border-top: 1px solid var(--line-faint); }
/* one line under a part's rows: "Anything over 75 sheets ..." */
.price-part-note {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-faint);
  font-size: 0.84rem;
  color: var(--text-soft);
}
.price-what { font-weight: 600; }
.price-base { font-weight: 400; color: var(--text-soft); white-space: nowrap; }
.price-range {
  display: block;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-soft);
}
.price-figure,
.price-grid td {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--signal);
  text-shadow: 0 0 18px rgba(34, 211, 255, 0.45);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.price-grid { width: 100%; border-collapse: collapse; }
.price-grid th,
.price-grid td { padding: 0.7rem 0 0.7rem 0.9rem; text-align: right; }
.price-grid thead th {
  padding-top: 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-soft);
}
.price-grid tbody th { padding-left: 0; text-align: left; font-weight: 600; }
.price-grid tbody tr + tr > * { border-top: 1px solid var(--line-faint); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 46em) {
  .price-sum { grid-template-columns: minmax(0, 1fr); gap: 0.5rem 0; }
  .price-plus { justify-self: center; }
  .rate-aka { display: block; margin-left: 0; }
}

@media (max-width: 34em) {
  .rate-list li { flex-wrap: wrap; row-gap: 0.15rem; }
  .rate-leader { display: none; }
  /* a long line under a price must wrap, or the page scrolls sideways */
  .rate-price { margin-left: auto; max-width: 100%; white-space: normal; }
  .rate-price strong { white-space: nowrap; }
  .rate-name { white-space: normal; }
  /* "Contact us first" stays on its row, at the size of a unit; the name
     may take two lines before the link drops under it */
  .rate-row-link .rate-name { flex: 1 1 6.5rem; }
  .rate-row-link .rate-price strong { font-size: 0.864em; }
}

/* ---------- Notice panel (get started / from inside) ---------- */

.notice { max-width: 50rem; }
.notice-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  padding-left: calc(clamp(1.4rem, 3.5vw, 2.2rem) + 4px);
}
.notice-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--signal), var(--signal-2));
}
.notice-inner h2 { font-size: 1.3rem; margin-bottom: 0.4em; }
.notice-inner p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
}

.contact-card {
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
}
.contact-card h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--signal);
  margin-bottom: 1em;
}
.contact-card address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 0.8em;
}
.contact-card .big-link {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.3rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card p { color: var(--text-soft); }
.contact-card .lead-note { color: var(--text); }

/* ---------- Log in / Sign up ---------- */

.auth {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.6rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem);
}
.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 10%, transparent 70%);
}

.auth-card {
  width: min(100%, 27rem);
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(160deg, var(--bg-raise2), var(--bg-raise)) padding-box,
    linear-gradient(140deg, rgba(79, 140, 255, 0.95), rgba(34, 211, 255, 0.15) 45%, rgba(34, 211, 255, 0.8)) border-box;
  box-shadow: var(--glow-plate);
}
.auth-card h1 {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.1rem);
  margin-bottom: 0.35em;
}
.auth-lede { color: var(--text-soft); margin-bottom: 1.6rem; }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.95em;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:hover { border-color: rgba(128, 170, 255, 0.4); }
.field input:focus-visible {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.22);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg-sunk) inset;
  caret-color: var(--text);
}
.field .hint { font-size: 0.82rem; color: var(--text-soft); }

.form-error {
  margin: 0 0 1.2rem;
  padding: 0.7em 0.95em;
  border: 1px solid rgba(255, 122, 122, 0.55);
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 90, 0.10);
  color: #ffc2c2;
  font-size: 0.94rem;
}

/* The account pages show and hide panels with the hidden attribute;
   without this, any rule that sets display would bring them back. */
[hidden] { display: none !important; }

/* A product not released to this reader (portal/releases.py) is not shown:
   assets/releases.js marks <html data-hide="..."> for a visitor before the
   page is drawn, and site.js marks it again once it knows who is signed in.
   Every element about one product carries data-release="<product>"; the
   price page's shared heading carries both of its products and goes only
   when both do. A product added to the site needs its line here (a test
   checks). */
html[data-hide~="research"] [data-release="research"],
html[data-hide~="podcast"] [data-release="podcast"],
html[data-hide~="mtg"] [data-release="mtg"],
html[data-hide~="byod"] [data-release="byod"],
html[data-hide~="calendar"] [data-release="calendar"],
html[data-hide~="reentry"] [data-release="reentry"] { display: none !important; }
html[data-hide~="podcast"][data-hide~="mtg"] [data-release="podcast mtg"] { display: none !important; }

.form-note {
  margin: 0 0 1.2rem;
  padding: 0.7em 0.95em;
  border: 1px solid rgba(34, 211, 255, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.08);
  color: var(--text);
  font-size: 0.94rem;
}

/* A button that reads as a link (it does something; it goes nowhere). */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--signal-hi); }

.verify-note { margin: 1rem 0 0; color: var(--text-soft); min-height: 1.5em; }

/* Bot trap: off-screen for people, present for form-fillers. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Until the page knows whether you are logged in, the two account
   links in the menu wait out of sight (assets/site.js), so "Log in"
   never flashes at someone who is already in. */
html.auth-pending .site-nav .nav-auth,
html.auth-pending [data-when] { visibility: hidden; }

/* Log out is a button dressed as the menu links. */
.nav-form { margin: 0; }
.nav-button {
  padding: 0.4em 0.1em;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  cursor: pointer;
}
.nav-button:hover { color: var(--text); border-bottom-color: var(--line); }

button.btn { font-family: inherit; cursor: pointer; }
.btn--block { display: block; width: 100%; text-align: center; margin-top: 1.5rem; }
/* Pay with Bitcoin, under the card button (credits.html, OWNER 2026-11-14) */
.btn--block.credit-bitcoin { margin-top: 0.75rem; }

.auth-alt {
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.auth-alt--quiet { margin-top: 0.5rem; font-size: 0.86rem; }

/* ---------- Rules page ---------- */
/* Two kinds of rule, told apart by color: the hard stops carry the
   one warning hue on the site; the rest use the signal. */

.section-title--stop { color: var(--stop); }

.rule-ok { color: var(--text-soft); font-size: 0.95rem; }

/* Home-page pointer to the rules */
.rules-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  border: 1px solid rgba(255, 107, 107, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.rules-callout h2 { font-size: 1.3rem; margin: 0 0 0.3em; }
.rules-callout p { margin: 0; color: var(--text-soft); max-width: 46rem; }
.rules-callout .btn { flex: none; }

/* ---------- Account page: balance, orders and credits ---------- */

.balance-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-bottom: 1.4rem;
}
.balance-head h2 { font-size: 1.45rem; margin: 0; }
.balance-label { color: var(--text-soft); margin: 0 0 0.5rem; }
.balance-figure { text-align: right; }
.balance-amount {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--signal);
  text-shadow: 0 0 26px rgba(34, 211, 255, 0.45);
}
.balance-amount--owed { color: #ff9a9a; text-shadow: none; }

/* OWNER 2026-10-17: "clean single entries for each order with history
   expandable below" -- one line an order, opening on its history */
.entries { list-style: none; margin: 0; padding: 0; }
.entry { border-top: 1px solid var(--line-faint); }
.entry:first-child { border-top: 0; }
.entry--new { border: 1px solid rgba(34, 211, 255, 0.45); border-radius: var(--radius-sm); background: rgba(34, 211, 255, 0.05); }
.entry-head {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 0.7rem;
  width: 100%;
  padding: 0.85rem 0.2rem;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.entry--new .entry-head { padding-inline: 0.7rem; }
button.entry-head:hover .entry-title { color: var(--signal); }
/* a deposit, bonus or gift: nothing under it to open */
div.entry-head { cursor: default; }
.entry-head:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.entry-caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: translateY(-0.12rem) rotate(-45deg);
  transition: transform 0.15s ease;
}
[aria-expanded="true"] > .entry-caret { transform: translateY(-0.22rem) rotate(45deg); }
.entry-words { min-width: 0; }
.entry-title { display: block; font-weight: 600; }
.entry-meta { display: block; font-size: 0.84rem; color: var(--text-soft); font-variant-numeric: lining-nums tabular-nums; }
.entry-money { display: grid; justify-items: end; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.entry-figure { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.entry--open .entry-figure { color: var(--signal); }
.entry-figure--in { color: #6ff0b4; }
.entry-label { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-soft); }
.entry-small { font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; }
.entry-more { padding: 0 0.2rem 1.1rem 1.7rem; }
.entry--new .entry-more { padding-inline: 1.7rem 0.7rem; }
.entry-more .track { margin-top: 0.2rem; }
.entry-sub { margin: 0.9rem 0 0.3rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.entry-sums { display: grid; gap: 0.25rem; margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.entry-sums div { display: flex; justify-content: space-between; gap: 1rem; }
.entry-sums dt { font-weight: 600; }
.entry-sums dd { margin: 0; font-family: var(--mono); font-weight: 600; }

/* an order's history, under its entry */
.history { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; font-variant-numeric: lining-nums tabular-nums; }
.history li {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr) auto;
  gap: 0 0.8rem;
  padding: 0.35rem 0;
  border-top: 1px dashed var(--line-faint);
}
.history li:first-child { border-top: 0; }
.history-date { color: var(--text-soft); }
.history-shares { display: block; font-size: 0.8rem; color: var(--text-soft); }
.history-amount { font-family: var(--mono); text-align: right; white-space: nowrap; }
.history-amount--in { color: #6ff0b4; }
.history-amount--figure { color: var(--text-soft); }
@media (max-width: 34em) {
  .history li { grid-template-columns: minmax(0, 1fr) auto; }
  .history-date { grid-column: 1 / -1; font-size: 0.8rem; }
  .entry-more { padding-left: 0.2rem; }
}

@media (max-width: 34em) {
  .balance-figure { text-align: left; }
}

/* ---------- Buying credits ---------- */

/* On the customer's own credits: the nudge to buy and to give. */
.buy-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(128, 170, 255, 0.05);
}
.buy-prompt p { margin: 0; }
.buy-prompt-lead { font-weight: 600; }
.buy-prompt-offer { color: var(--text-soft); font-size: 0.94rem; }
/* The buttons keep to one row where there is room and wrap where there
   is not; they never push past the edge of the panel. */
.buy-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* The people a customer supports. About each balance the page knows one
   thing, below 25 credits or not, and says it as a pill. The warning
   hue appears here and on the hard-stop rules, nowhere else. */
.people { list-style: none; margin: 0; padding: 0; }
.people li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem 1.4rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line-faint);
}
.people p { margin: 0; }
.people-name { font-weight: 600; font-size: 1.08rem; }
.people-given { margin-top: 0.3rem; font-size: 0.86rem; color: var(--text-soft); }
.status {
  justify-self: start;
  padding: 0.3em 0.85em;
  border: 1px solid rgba(34, 211, 255, 0.4);
  border-radius: 999px;
  background: rgba(34, 211, 255, 0.07);
  font-size: 0.86rem;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.status--low {
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 90, 90, 0.09);
  color: #ffb3b3;
}
@media (max-width: 40em) {
  .people li { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .people .btn { justify-self: start; }
}

.credit-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: start;
}
.credit-grid .rate-card + .rate-card { margin-top: 0; }
/* Panels stacked one above the other stand as far apart as the glow
   under each one is tall (see "Glows that fit"). */
.credit-stack { display: grid; gap: clamp(2.3rem, 4.4vw, 3.3rem); min-width: 0; }
/* the bonus list sits in a narrow column: names wrap, no dotted leader */
.credit-grid .rate-list li { flex-wrap: wrap; row-gap: 0.15rem; }
.credit-grid .rate-leader { display: none; }
.credit-grid .rate-name { flex: 1 1 9rem; white-space: normal; }
.credit-grid .rate-price { margin-left: auto; }
@media (max-width: 52em) {
  .credit-grid { grid-template-columns: 1fr; row-gap: clamp(2.3rem, 4.4vw, 3.3rem); }
}

.field select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.95em;
}
.field select:focus-visible {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.22);
}

/* who the credits are for: the line under the picker, and the register
   number under a name on the balance card */
.credit-who {
  margin: 0 0 1.4rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--signal);
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.credit-who:empty { display: none; }
.balance-reg {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.3rem 0 1.4rem; }
.chip {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(128, 170, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 0.95em;
  cursor: pointer;
}
.chip:hover { border-color: var(--signal); background: rgba(34, 211, 255, 0.10); }

/* Buying: the amount buttons. The chosen one is lit; each wears the
   bonus it earns as a small tag on its top right corner. */
.field-label { margin: 0 0 0.75rem; font-size: 0.9rem; font-weight: 600; }
.chip-row--amounts { gap: 0.9rem 0.75rem; margin: 0 0 1.4rem; padding-top: 0.35rem; }
.chip-row--amounts .chip {
  position: relative;
  min-width: 4.4rem;
  padding: 0.6em 1.05em;
  font-size: 1rem;
  font-weight: 600;
}
.chip[aria-pressed="true"] {
  border-color: var(--signal);
  background: rgba(34, 211, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.14);
}
.chip-bonus {
  position: absolute;
  top: -0.62rem;
  right: -0.5rem;
  padding: 0.12em 0.5em;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-signal);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(34, 211, 255, 0.35);
}

.credit-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
}
.credit-figure {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.credit-figure--get { color: var(--signal); text-shadow: 0 0 22px rgba(34, 211, 255, 0.45); }
.credit-bonus { margin: 0.9rem 0 0; min-height: 1.6em; color: var(--text-soft); }

a.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
button.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* Waiting on the BOP lookup, which takes several seconds: a turning
   ring, a sweeping bar and a count of seconds. With reduced motion the
   ring and bar hold still and the count alone shows it is alive. */
.lookup-wait {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(34, 211, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.06);
}
.lookup-ring {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 3px solid rgba(128, 170, 255, 0.22);
  border-top-color: var(--signal);
  box-shadow: 0 0 18px rgba(34, 211, 255, 0.3);
  animation: lookup-spin 0.9s linear infinite;
}
.lookup-wait-words { flex: 1; min-width: 0; }
.lookup-wait p { margin: 0; }
.lookup-wait-lead { font-weight: 600; }
.lookup-wait-lead strong { font-family: var(--mono); }
.lookup-wait-note {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.lookup-bar {
  display: block;
  position: relative;
  overflow: hidden;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: rgba(128, 170, 255, 0.16);
}
.lookup-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  border-radius: 3px;
  background: var(--grad);
  animation: lookup-sweep 1.4s ease-in-out infinite;
}
@keyframes lookup-spin { to { transform: rotate(360deg); } }
@keyframes lookup-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}

/* the BOP's listing for the number, as the locator prints it */
.listing {
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
  animation: listing-in 0.35s ease-out;
}
.listing dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1.3rem;
  margin: 0;
}
.listing dt { color: var(--text-soft); font-size: 0.9rem; }
.listing dd { margin: 0; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
@keyframes listing-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* With "reduce motion" on, the page's other movement stops (the rule
   near the top of this file). The ring is the exception: it is the sign
   that the lookup is still running, so it keeps turning, slower. The
   sweeping bar becomes a still line. */
@media (prefers-reduced-motion: reduce) {
  .lookup-wait .lookup-ring,
  .flash .lookup-ring { animation: lookup-spin 1.6s linear infinite !important; }
  .lookup-bar::after { width: 100%; opacity: 0.45; }
}


/* the order page */
.field textarea {
  width: 100%;
  font: inherit;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.95em;
  resize: vertical;
}
.field textarea:hover { border-color: rgba(128, 170, 255, 0.4); }
.field textarea:focus-visible {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.22);
}
/* how hard the question looks, and what that usually costs */
.rating {
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem 1.1rem;
  border: 1px solid rgba(34, 211, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.06);
  animation: listing-in 0.35s ease-out;
}
.rating p { margin: 0; }
.rating-level {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--signal);
  text-shadow: 0 0 22px rgba(34, 211, 255, 0.45);
}
.rating-price { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
/* what the level means, under the rater's word on this question */
.rating-about { margin-top: 0.6rem !important; font-size: 0.86rem; color: var(--text-soft); }
.rating-why { margin-top: 0.35rem !important; color: var(--text-soft); }
.rating-note { margin-top: 0.7rem !important; font-size: 0.86rem; color: var(--text-soft); }
/* the steps of an order really are a sequence, so they are numbered --
   plainly, in one column: the home page's large numbers in three
   columns do not fit the narrow card beside the order */
.rate-card .steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.3rem;
  list-style: decimal;
}
.rate-card .steps li { border-top: 0; padding-top: 0; }
.rate-card .steps li::before,
.rate-card .steps li::after { content: none; }
.rate-card .steps li::marker { font-family: var(--mono); color: var(--signal); }

/* the gift shown back: nothing is filed until the giver says yes */
.confirm {
  margin: 0 0 0.4rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--signal);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.12);
}
.confirm-ask { margin: 0; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.confirm .btn-row { margin-top: 1rem; gap: 0.6rem; }

/* what happened to the gift just sent */
.give-status { margin: 0.9rem 0 0; min-height: 1.6em; color: var(--text); }
#give-notices .form-error { margin: 0.9rem 0 0; }
.rate-card > .form-error { margin: 0 0 1.4rem; }

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
.notfound .code {
  display: block;
  font-family: var(--mono);
  font-size: clamp(5rem, 3rem + 12vw, 9.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound .code::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
  margin: 1.6rem auto 0;
}
.notfound h1 { margin: 0; }
.notfound .notfound-title {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  margin-top: 1.6rem;
  letter-spacing: -0.02em;
}
.notfound p {
  color: var(--text-soft);
  max-width: 34rem;
  margin-inline: auto;
}

/* ---------- Footer ---------- */

.colophon {
  background: var(--bg-sunk);
  color: var(--text);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.colophon-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem 3.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.6rem;
}

.colophon-brand img { width: 8.5rem; }

.colophon nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.colophon .smallcaps { color: var(--text-soft); display: block; margin-bottom: 0.9rem; }

.colophon address { font-style: normal; line-height: 1.75; }

.colophon a { color: var(--text); text-decoration: none; }
.colophon a:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.colophon a:focus-visible { outline-color: var(--signal); }

.colophon-meta {
  border-top: 1px solid var(--line-faint);
  padding-block: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.colophon-meta p { margin: 0; }

/* ---------- After an action ---------- */

/* The sign that something just happened: an order placed. Across the
   top of the account page, read once. */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(34, 211, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(34, 211, 255, 0.08);
  box-shadow: var(--glow);
  animation: flash-in 0.4s ease-out;
}
.flash:focus { outline: none; }
.flash p { margin: 0; }
.flash-lead { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2em; }
.flash-mark {
  flex: none;
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--signal);
}
.flash-mark::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.42rem;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--on-signal);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
/* Credits paid for and still on their way: the turning ring in place of
   the tick, the tick's size. */
.flash .lookup-ring { width: 2rem; height: 2rem; }

/* Orders on their way: each with its four steps. */
.orders { list-style: none; margin: 0; padding: 0; }
.order { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--line-faint); }
.order:first-child { border-top: 0; padding-top: 0.2rem; }
.order:last-child { padding-bottom: 0.2rem; }
.order--new {
  margin: 0 -0.9rem;
  padding: 1.1rem 0.9rem 1.2rem;
  border: 1px solid rgba(34, 211, 255, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.05);
}
.order--new:first-child { margin-top: 0.7rem; padding-top: 1.1rem; }
.order--new + .order { border-top: 0; }
.order-title { font-size: 1.12rem; margin: 0; }
.order-meta {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.order-now { margin: 0; max-width: var(--measure); }
.order-letter { margin-top: 1rem; }
.order-note { margin: 0.6rem 0 0; min-height: 0; color: var(--text-soft); font-size: 0.9rem; }
.order-note:empty { display: none; }
.btn.is-waiting { cursor: progress; }
/* a Magic order's products, one a line */
.order-what { margin: 0.2rem 0 0; font-size: 0.92rem; white-space: pre-line; overflow-wrap: anywhere; }
/* a shipment: what is in its one envelope */
.order-parts { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; }
.order-parts li + li { margin-top: 0.2rem; }
.order-parts .order-what { display: inline; margin: 0; color: var(--text-soft); }
/* a cart bound as a book: the book's one PDF, opened from our upload service */
.book-file-meta { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--text-soft); font-variant-numeric: lining-nums tabular-nums; }

/* What would you like? -- and, for Magic cards, what kind. OWNER
   2026-10-14: "something more custom to the selection. maybe different
   icons?" Each choice is a tile with its own drawn icon on a badge; the
   chosen tile is lit, its badge filled with the signal, and it wears the
   hyphen. Laid out by the width of the order card, not the screen: the
   card is narrow beside the cart. */
#order { container-type: inline-size; }
.product-tiles,
.mtg-kinds { display: grid; gap: 0.7rem; margin: 0 0 1.4rem; }
@container (min-width: 27rem) {
  .product-tiles,
  .mtg-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* five Magic choices two across: the last one has the row to itself */
@container (min-width: 27rem) {
  .mtg-kinds > .mtg-kind:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.product-tile,
.mtg-kind {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.2rem;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: rgba(128, 170, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem 1rem;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.product-tile:hover,
.mtg-kind:hover { border-color: var(--signal); background: rgba(34, 211, 255, 0.08); }
.product-tile:focus-visible,
.mtg-kind:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.product-tile[aria-pressed="true"],
.mtg-kind[aria-pressed="true"] {
  border-color: var(--signal);
  background: rgba(34, 211, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.14);
}
/* the chosen one wears the hyphen */
.product-tile[aria-pressed="true"]::before,
.mtg-kind[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1rem;
  width: 2.2rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad);
}
.mtg-kind:disabled { cursor: not-allowed; opacity: 0.55; }
.product-icon,
.mtg-kind-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.45rem;
  border-radius: 11px;
  color: var(--signal);
  background: rgba(34, 211, 255, 0.08);
  border: 1px solid rgba(34, 211, 255, 0.3);
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.product-icon svg,
.mtg-kind-icon svg { width: 1.45rem; height: 1.45rem; }
.product-tile[aria-pressed="true"] .product-icon,
.mtg-kind[aria-pressed="true"] .mtg-kind-icon {
  color: var(--on-signal);
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(34, 211, 255, 0.45);
}
.product-name,
.mtg-kind-name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.product-about { font-size: 0.84rem; line-height: 1.4; color: var(--text-soft); }
.mtg-kind-size { font-family: var(--mono); font-size: 0.78rem; color: var(--signal); }
.mtg-kind-about { font-size: 0.84rem; line-height: 1.45; color: var(--text-soft); }
/* one choice a row on a narrow card (a phone): the icon beside the
   words, so the four of them stay short */
@container (max-width: 26.99rem) {
  .product-tile,
  .mtg-kind { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.85rem; padding: 0.8rem 0.9rem; }
  .product-icon { grid-row: 1 / span 2; margin-bottom: 0; }
  .mtg-kind-icon { grid-row: 1 / span 3; margin-bottom: 0; }
}

/* Magic cards: the choices above, a list to add from, and the cart. */
.mtg { container-type: inline-size; margin: 0 0 1.4rem; }

.mtg-search { margin-bottom: 0.8rem; }
.mtg-land-set { margin-bottom: 0.8rem; }

/* a box to type a set's name in, with what matches dropping below */
.combo { position: relative; }
.field .combo input { padding-right: 2.4rem; }
.combo-clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: -0.85rem;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-soft);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.combo-clear:hover { color: var(--text); background: rgba(128, 170, 255, 0.12); }
.combo-clear:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.combo-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--bg-raise);
  border: 1px solid var(--signal);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.85);
}
.combo-option {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.combo-option:hover,
.combo-option[aria-selected="true"] { background: rgba(34, 211, 255, 0.14); }
.combo-option--any { color: var(--signal); font-weight: 600; border-bottom: 1px solid var(--line-faint); }
.combo-none { padding: 0.5rem 0.85rem; font-size: 0.84rem; color: var(--text-soft); }

/* how many of each basic land, in one go */
.land-kit {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(34, 211, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.05);
}
.land-kit p { margin: 0; }
.land-kit-title { font-weight: 700; }
.land-kit-hint { margin-top: 0.15rem !important; font-size: 0.84rem; color: var(--text-soft); }
.land-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr));
  gap: 0.5rem 0.7rem;
  margin: 0.8rem 0 0.7rem;
}
.land-kit-type { display: grid; gap: 0.2rem; font-size: 0.84rem; font-weight: 600; }
.land-kit-type input {
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45em 0.6em;
}
.land-kit-type input:focus-visible { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.22); }
.land-kit-opts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-bottom: 0.8rem; }
.land-kit-add { padding: 0.6em 1.4em; font-size: 0.88rem; }
.land-kit-status { margin-top: 0.6rem !important; min-height: 1.2em; font-size: 0.86rem; }
.land-kit-status:empty { display: none; }

/* under a line of the cart: its tokens, its back faces */
.cart-line-options { flex: 1 0 100%; display: grid; gap: 0.3rem; margin-top: 0.15rem; }
.cart-line-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; cursor: pointer; }
/* the tick above the whole-set list (OWNER 2026-11-08: "add a checkbox to exclude duplicates") */
.mtg-no-dups { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0; font-size: 0.9rem; cursor: pointer; }
.mtg-no-dups input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--signal); }
.cart-line-check input { accent-color: var(--signal); width: 1rem; height: 1rem; }
.cart-line-add { justify-self: start; font-size: 0.84rem; text-align: left; }
.cart-line-add:disabled { color: var(--text-soft); text-decoration: none; cursor: progress; }
/* an offer of tokens glows softly on and off */
.cart-line-add--pulse { animation: offer-pulse 2.6s ease-in-out infinite; }
.cart-line-add--pulse:hover,
.cart-line-add--pulse:focus-visible { animation: none; text-shadow: 0 0 10px rgba(34, 211, 255, 0.6); }
@keyframes offer-pulse {
  0%, 100% { opacity: 0.78; text-shadow: 0 0 0 rgba(34, 211, 255, 0); }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(34, 211, 255, 0.65); }
}
/* nothing moves, it only brightens: kept, slower, where motion is
   turned down (the rule at the top stops every other animation) */
@media (prefers-reduced-motion: reduce) {
  .cart-line-add--pulse { animation: offer-pulse 4s ease-in-out infinite !important; }
  .cart-line-add--pulse:hover,
  .cart-line-add--pulse:focus-visible { animation: none !important; }
  .mtg-row-extra--pulse input { animation: tick-pulse 4s ease-in-out infinite !important; }
  .mtg-row-extra--pulse .mtg-row-extra-words { animation: words-pulse 4s ease-in-out infinite !important; }
  .mtg-row-extra--pulse:hover input,
  .mtg-row-extra--pulse:hover .mtg-row-extra-words,
  .mtg-row-extra--pulse input:focus-visible { animation: none !important; }
}
.cart-line-done { margin: 0; font-size: 0.82rem; color: var(--signal); }
.cart-say { margin: 0.6rem 0 0; font-size: 0.86rem; color: #ffb4b4; }
.field input[type="search"]::-webkit-search-cancel-button { filter: invert(0.7); }
.mtg-filters { margin: 0 0 0.8rem; }
.mtg-filters .chip { font-size: 0.82rem; }
.mtg-count { margin: 0 0 0.5rem; font-size: 0.86rem; color: var(--text-soft); }
.mtg-elsewhere { margin: -0.2rem 0 0.6rem; font-size: 0.86rem; color: var(--text-soft); }
.mtg-elsewhere .link-button { font-size: inherit; }

.mtg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line-faint);
}
.mtg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name side" "from side";
  column-gap: 1rem;
  align-items: center;
  width: 100%;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  border-top: 1px solid var(--line-faint);
  padding: 0.7rem 0.6rem;
  cursor: pointer;
}
.mtg-row:hover { background: rgba(34, 211, 255, 0.07); }
.mtg-row:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.mtg-row-name { grid-area: name; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mtg-row-from { grid-area: from; font-size: 0.84rem; color: var(--text-soft); overflow-wrap: anywhere; }
.mtg-row-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}
.mtg-row-tag {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--signal);
  border: 1px solid rgba(34, 211, 255, 0.35);
  border-radius: 999px;
  padding: 0 0.55em;
}
.mtg-row-size {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.mtg-row-price { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.mtg-row--big { cursor: not-allowed; }
.mtg-row--big:hover { background: none; }
.mtg-row--big .mtg-row-name { color: var(--text-soft); }
.mtg-row--big .mtg-row-price { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--text-soft); }
/* narrow: what it costs goes under the name, in one line */
@container (max-width: 27rem) {
  .mtg-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "from" "side"; }
  .mtg-row-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.7rem;
    margin-top: 0.3rem;
    text-align: left;
  }
}
.mtg-more { margin-top: 0.9rem; padding: 0.6em 1.2em; font-size: 0.86rem; }

/* a row's Add button: an outline until it is in the cart, then lit */
.mtg-row-add {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--signal);
  border: 1px solid rgba(34, 211, 255, 0.55);
  border-radius: 999px;
  padding: 0.12em 0.85em;
}
.mtg-row:hover .mtg-row-add { background: rgba(34, 211, 255, 0.12); }
.mtg-row.is-added { background: rgba(34, 211, 255, 0.06); }
.mtg-row.is-added .mtg-row-add {
  color: var(--on-signal);
  background: var(--grad);
  border-color: transparent;
}
.mtg-row--big .mtg-row-add {
  color: var(--text-soft);
  border-color: var(--line);
  font-weight: 400;
}
.mtg > .form-error { margin: 0; }

/* ---------- The podcast picker (assets/podcasts.js) ---------- */

/* The top shows of a category (or a search's), a tile each with its
   picture; a show opened lists its episodes as the Magic list lists
   decks; what is picked waits in a box under them. */
.pod { container-type: inline-size; margin: 0 0 1.4rem; }
.pod-cats { margin: 0 0 0.9rem; }
.pod-cats .chip { font-size: 0.82rem; white-space: nowrap; }
/* OWNER 2026-10-16: on a phone "i want a better way to interact with the
   filters ... just cant really see whats there". Wide, the chips
   themselves; narrow (a phone, and the order card on a desktop), one
   row saying which category is shown, which opens every category under
   it, as many to a row as fit, and closes on a pick. */
.pod-cat-toggle { display: none; }
@container (max-width: 34rem) {
  .pod-cat-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0 0 0.9rem;
    padding: 0.75rem 0.95rem;
    font: inherit;
    text-align: left;
    color: var(--text);
    background: rgba(128, 170, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .pod-cat-toggle:hover,
  .pod-cat-toggle[aria-expanded="true"] { border-color: rgba(34, 211, 255, 0.55); }
  .pod-cat-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
  .pod-cat-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
  }
  .pod-cat-now { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
  .pod-cat-caret {
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--signal);
    border-bottom: 2px solid var(--signal);
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 160ms ease;
  }
  .pod-cat-toggle[aria-expanded="true"] .pod-cat-caret { transform: translateY(0.12rem) rotate(-135deg); }
  /* open, the list hangs from the row as one piece */
  .pod-cat-toggle[aria-expanded="true"] {
    margin-bottom: 0;
    border-bottom-color: var(--line-faint);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .pod-cats { display: none; }
  .pod.cats-open .pod-cats {
    display: grid;
    /* two to a row on a phone, three in the order card on a desktop */
    grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 40%), 1fr));
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.55rem;
    background: var(--bg-sunk);
    border: 1px solid rgba(34, 211, 255, 0.55);
    border-top: 0;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
  .pod-cats .chip {
    font-family: var(--sans);
    font-size: 0.86rem;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    border-radius: 7px;
    padding: 0.5em 0.7em;
  }
}
.pod-shows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: 0.5rem;
}
.pod-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: rgba(128, 170, 255, 0.04);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
}
.pod-tile:hover { border-color: var(--signal); background: rgba(34, 211, 255, 0.07); }
.pod-tile:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.pod-tile-art {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-sunk);
}
.pod-tile-words { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.pod-tile-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pod-tile-by {
  font-size: 0.82rem;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pod-tile .mtg-row-tag { flex: none; }
.pod-back { font-size: 0.88rem; margin: 0 0 0.9rem; }
.pod-show-head { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 0.8rem; }
.pod-show-art {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-sunk);
}
.pod-show-name { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pod-show-by { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--text-soft); }
.pod-picked {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(34, 211, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.05);
}
.pod-picked .balance-label { margin: 0 0 0.4rem; }
/* a printed book of the open show's newest episodes (assets/podcasts.js) */
.pod-book {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(79, 140, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(79, 140, 255, 0.06);
}
.pod-book .balance-label { margin: 0 0 0.3rem; }
.pod-book-title { margin: 0 0 0.3rem; font-weight: 600; overflow-wrap: anywhere; }
.pod-book-sizes { margin: 0.1rem 0 0.5rem; }
.pod-book-what, .pod-book-price { margin: 0 0 0.45rem; font-size: 0.88rem; color: var(--text-soft); }
.pod-book-add { margin-top: 0.2rem; }
@media (max-width: 480px) { .pod-book-add { width: 100%; } }
.pod-picked-list { list-style: none; margin: 0; padding: 0; }
.pod-picked-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line-faint);
}
.pod-picked-line:first-child { border-top: 0; }
.pod-picked-ep { display: grid; gap: 0.1rem; min-width: 0; }
.pod-picked-title { font-weight: 600; overflow-wrap: anywhere; }
.pod-picked-meta { font-size: 0.82rem; color: var(--text-soft); }
.pod-picked-line .link-button { flex: none; font-size: 0.84rem; }
.pod-picked-sum { margin: 0.6rem 0 0; font-size: 0.9rem; }
.pod-picked-hold { margin: 0.3rem 0 0; font-size: 0.84rem; color: var(--text-soft); }
.pod-picked-other { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--text-soft); }
.pod-picked-other .link-button { font-size: inherit; }
.pod-describe { margin: 1rem 0 0; font-size: 0.88rem; }
.pod > .form-error { margin: 0.6rem 0 0; }

/* under a deck that has tokens: a tick to add them too */
.mtg-row-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  margin: 0;
  padding: 0 0.6rem 0.7rem;
  font-size: 0.84rem;
  cursor: pointer;
}
.mtg-row-extra input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--signal); }
.mtg-row-extra-size { font-family: var(--mono); font-size: 0.76rem; color: var(--text-soft); white-space: nowrap; }
.mtg-row-extra.is-off { color: var(--text-soft); cursor: not-allowed; }
/* not ticked yet: the box and its words glow softly on and off, in time
   with the cart's offers (the words keep their full strength) */
.mtg-row-extra--pulse input { animation: tick-pulse 2.6s ease-in-out infinite; border-radius: 3px; }
.mtg-row-extra--pulse .mtg-row-extra-words { animation: words-pulse 2.6s ease-in-out infinite; }
.mtg-row-extra--pulse:hover input,
.mtg-row-extra--pulse:hover .mtg-row-extra-words,
.mtg-row-extra--pulse input:focus-visible { animation: none; }
@keyframes tick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 255, 0); }
  50% { box-shadow: 0 0 8px 2px rgba(34, 211, 255, 0.55); }
}
@keyframes words-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(34, 211, 255, 0); }
  50% { text-shadow: 0 0 10px rgba(34, 211, 255, 0.6); }
}
.mtg-row-item.is-added > .mtg-row-extra { background: rgba(34, 211, 255, 0.06); }
.mtg-row-item > .mtg-row:has(+ .mtg-row-extra) { padding-bottom: 0.45rem; }

/* a deck's tokens, offered in a window when the deck is added */
.token-offer { width: min(40rem, calc(100vw - 2rem)); padding: 1.1rem 1.1rem 1rem; }
.token-offer-kicker { margin: 0; font-size: 0.84rem; font-weight: 600; color: var(--signal); overflow-wrap: anywhere; }
.token-offer-title { margin: 0.2rem 0 0.3rem; font-size: 1.3rem; line-height: 1.25; }
.token-offer-what { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--text-soft); }
.token-offer-pics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: 0.75rem 0.6rem;
  max-height: min(26rem, calc(100vh - 19rem));
  overflow-y: auto;
  margin: 0;
  padding: 0.15rem;
  list-style: none;
}
.token-offer-pic { display: grid; gap: 0.3rem; align-content: start; }
.token-offer-pic img,
.token-offer-blank {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 488 / 680;
  border-radius: 4.5% / 3.2%;
  background: var(--bg-sunk);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.token-offer-blank { display: grid; place-items: center; font-size: 0.72rem; color: var(--text-soft); }
.token-offer-name { font-size: 0.76rem; line-height: 1.3; color: var(--text-soft); overflow-wrap: anywhere; }
.token-offer-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.token-offer-actions .btn { flex: 1 1 11rem; padding: 0.7em 1.2em; }
.token-offer-later { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--text-soft); text-align: center; }

/* Single cards: the card's picture, what it is, and Add -- or, once in
   the cart, - and + for how many copies. */
.mtg-card {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 0.6rem 0.4rem;
  border-top: 1px solid var(--line-faint);
}
.mtg-card.is-added { background: rgba(34, 211, 255, 0.06); }
.mtg-card-pic {
  display: block;
  width: 3.6rem;
  height: auto;
  aspect-ratio: 146 / 204;
  border-radius: 4px;
  background: var(--bg-sunk);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.mtg-card-words { min-width: 0; }
.mtg-card-words p { margin: 0; }
.mtg-card-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mtg-card-type,
.mtg-card-from { font-size: 0.8rem; color: var(--text-soft); overflow-wrap: anywhere; }
.mtg-card-add {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--signal);
  background: none;
  border: 1px solid rgba(34, 211, 255, 0.55);
  border-radius: 999px;
  padding: 0.3em 1em;
  cursor: pointer;
}
.mtg-card-add:hover { background: rgba(34, 211, 255, 0.12); }
.mtg-card-add:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.mtg-card-add:disabled {
  color: var(--text-soft);
  border-color: var(--line);
  font-weight: 400;
  cursor: not-allowed;
}
/* how many, and Add -- or, once it is in the cart, how many and "In cart" */
.mtg-card-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.5rem;
}
.mtg-card-in { font-size: 0.78rem; font-weight: 700; color: var(--signal); white-space: nowrap; }
@container (max-width: 30rem) {
  .mtg-card { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .mtg-card-pic { width: 3.2rem; }
  .mtg-card-zoom { grid-row: span 2; }
  .mtg-card-buy { grid-column: 2; justify-content: flex-start; }
}
.stepper {
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid rgba(34, 211, 255, 0.55);
  border-radius: 999px;
  overflow: hidden;
}
.stepper-btn {
  font: inherit;
  font-weight: 700;
  width: 2rem;
  height: 1.9rem;
  color: var(--signal);
  background: none;
  border: 0;
  cursor: pointer;
}
.stepper-btn:hover { background: rgba(34, 211, 255, 0.12); }
.stepper-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.stepper-btn:disabled { color: var(--text-soft); opacity: 0.5; cursor: not-allowed; }
.stepper-count {
  min-width: 1.7rem;
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* the thumbnail is a button: it opens the card at full size */
.mtg-card-zoom {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 4px;
  cursor: zoom-in;
}
.mtg-card-zoom:hover .mtg-card-pic { box-shadow: 0 0 0 2px var(--signal), 0 2px 10px rgba(34, 211, 255, 0.35); }
.mtg-card-zoom:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* the card at full size, over the page */
body.has-dialog { overflow: hidden; }
.card-view {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1rem 1rem 1.1rem;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(34, 211, 255, 0.15);
}
.card-view::backdrop { background: rgba(3, 5, 10, 0.82); }
@supports (backdrop-filter: blur(4px)) {
  .card-view::backdrop { backdrop-filter: blur(4px); }
}
.card-view[open] { animation: listing-in 0.2s ease-out; }
.card-view-stage { position: relative; }
.card-view-pics { display: grid; justify-items: center; gap: 0.8rem; touch-action: pan-y; }
.card-view-pics img,
.mtg-card-pic { -webkit-user-drag: none; user-select: none; }
.mtg-card-zoom { touch-action: pan-y; }
/* the arrows beside the big picture, for a mouse; a finger swipes */
.card-view-step {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  padding: 0 0 0.15rem;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
  background: rgba(5, 8, 15, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.card-view-step:hover { border-color: var(--signal); color: var(--signal); }
.card-view-step:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.card-view-step:disabled { opacity: 0.25; cursor: default; }
.card-view-step--prev { left: 0.2rem; }
.card-view-step--next { right: 0.2rem; }
/* a new printing slides in from the side it was swiped from */
.card-view-pics.is-next .card-view-pic,
.mtg-card-pic.is-next { animation: printing-next 0.22s ease-out; }
.card-view-pics.is-prev .card-view-pic,
.mtg-card-pic.is-prev { animation: printing-prev 0.22s ease-out; }
@keyframes printing-next {
  from { opacity: 0.35; transform: translateX(14%); }
  to { opacity: 1; transform: none; }
}
@keyframes printing-prev {
  from { opacity: 0.35; transform: translateX(-14%); }
  to { opacity: 1; transform: none; }
}
.card-view-pics--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-view-pic {
  display: block;
  width: 100%;
  max-width: 21rem;
  height: auto;
  aspect-ratio: 488 / 680;
  border-radius: 4.5% / 3.2%;
  background: var(--bg-sunk);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.card-view-pics:not(.card-view-pics--two) .card-view-pic { max-height: max(14rem, calc(100vh - 28rem)); width: auto; max-width: 100%; }
.card-view-words { margin-top: 0.9rem; text-align: center; }
.card-view-words p { margin: 0; }
.card-view-name { font-size: 1.15rem; font-weight: 700; }
.card-view-type,
.card-view-from { font-size: 0.86rem; color: var(--text-soft); }
.card-view-pick {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-faint);
}
.card-view-pick .field { margin-bottom: 0.8rem; }
.card-view-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.card-view-buy .field-label { margin: 0; }
.card-view-add { margin-left: auto; padding: 0.65em 1.3em; }
.card-view-status { margin: 0.6rem 0 0; min-height: 1.2em; font-size: 0.86rem; color: #ffb4b4; }
.card-view-status:empty { display: none; }
.card-view-close { display: block; margin: 0.9rem auto 0; padding: 0.55em 1.6em; font-size: 0.86rem; }
.mtg-card-prints { margin-top: 0.15rem; font-size: 0.8rem; }

.cart-line { flex-wrap: wrap; }
.cart-line-words { flex: 1 1 9rem; }

/* The cart page (cart.html): the cart, and beside it on a wide screen
   the checkout, which stays in view while a long cart scrolls; on a
   phone the checkout comes under the cart. */
.order-side { align-self: stretch; align-content: start; }
.cart { scroll-margin-top: 1rem; }
.cart:focus { outline: none; }
.cart-page { align-items: start; }

/* The products page with none chosen: a tile a product, and Pricing */
.products-overview { display: grid; gap: clamp(2.3rem, 4.4vw, 3.3rem); container-type: inline-size; }
.products-overview .product-tiles { margin: 0; }
@container (min-width: 44rem) {
  .product-tiles--links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 62rem) {
  .product-tiles--links { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.product-tiles--links .product-tile { text-decoration: none; color: inherit; }
.order-visitor .btn-row { margin-top: 1rem; }
.cart-line-text { margin: 0.2rem 0 0.15rem; font-size: 0.88rem; line-height: 1.45; overflow-wrap: anywhere; }
.cart-sum.checkout-sum { margin: 0.9rem 0 1.3rem; padding: 0.85rem 0 0; border-top: 1px solid var(--line-faint); }
.cart-nothing .notice-inner { text-align: left; }
.cart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.cart-head h2 { margin: 0; }
.cart-count { font-family: var(--mono); font-size: 0.86rem; color: var(--signal); }
.cart-empty { margin: 0; color: var(--text-soft); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line-faint);
  animation: listing-in 0.3s ease-out;
}
.cart-line-words { flex: 1; min-width: 0; }
.cart-line p { margin: 0; }
.cart-line-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cart-line-meta { font-size: 0.8rem; color: var(--text-soft); overflow-wrap: anywhere; }
.cart-line-drop {
  flex: none;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2em 0.8em;
  cursor: pointer;
}
.cart-line-drop:hover { color: var(--text); border-color: var(--stop); }
.cart-sum {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
}
.cart-sum div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.cart-sum dt { font-size: 0.86rem; color: var(--text-soft); }
.cart-sum-soft { font-size: 0.78rem; opacity: 0.8; }
.cart-sum dd { margin: 0; text-align: right; font-size: 0.9rem; font-variant-numeric: lining-nums tabular-nums; }
.cart-total { margin-top: 0.25rem; }
.cart-total dt { color: var(--text); font-weight: 600; }
.cart-total dd {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--signal);
  text-shadow: 0 0 20px rgba(34, 211, 255, 0.4);
}
.cart-note { margin: 0.8rem 0 0; font-size: 0.86rem; color: var(--text-soft); }
/* OWNER 2026-10-16: "processing + pages for each item then shipping
   accumulation below", then "i do not like the separated cards in
   checkout unify them with description page numbers and price; for
   those with escrow just note the %". The cart is ONE card: every item
   a row -- what it is and its pages, its price on the right with a
   short note under it ("+25% held", "your limit") -- the shipping a row
   below them, then what is held and who it is for. */
.cart-one { max-width: 46rem; margin-inline: auto; }

/* OWNER 2026-10-17: "the cart is still too wordy id like nice concise
   items. you can hide detail under a clickable but i really just want
   column of description, page count sheet count price. cart should be
   segmented by type but it should be subtle segmentation". One grid for
   the header and every row (account.js cartRow): item, pages, sheets,
   price, and a small remove; a name with more to say opens it below. */
.cart-one { --cart-cols: minmax(0, 1fr) 3.4rem 3.6rem 6.4rem 1.9rem; }
.cart-cols,
.cart-row-main {
  display: grid;
  grid-template-columns: var(--cart-cols);
  column-gap: 0.6rem;
  align-items: baseline;
}
.cart-cols {
  margin-top: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.cart-cols span:nth-child(n+2) { text-align: right; }
.cart-row { border-bottom: 1px solid var(--line-faint); }
.cart-row-main { padding: 0.55rem 0; }
.cart-row-name {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  padding: 0;
  font: inherit;
  font-size: 0.94rem;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
}
button.cart-row-name { cursor: pointer; }
button.cart-row-name:hover .cart-row-label { color: var(--signal); }
button.cart-row-name:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
/* two lines at most while the row is shut; all of it open (a research
   letter's question is its name, not restated under it) */
.cart-row-label {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
button.cart-row-name[aria-expanded="true"] .cart-row-label {
  display: block;
  overflow: visible;
  -webkit-line-clamp: none;
  line-clamp: none;
}
.cart-row-caret {
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.1rem;
  border: solid var(--text-soft);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.12rem) rotate(-45deg);
  transition: transform 0.15s ease-out;
}
button.cart-row-name[aria-expanded="true"] .cart-row-caret { transform: translateY(-0.2rem) rotate(45deg); }
span.cart-row-name { padding-left: 0.95rem; }
.cart-row-num,
.cart-row-price {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.cart-row-num { font-size: 0.86rem; color: var(--text-soft); }
.cart-row-price { font-size: 0.92rem; font-weight: 600; }
.cart-row-drop {
  justify-self: end;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.cart-row-drop:hover { color: var(--text); border-color: var(--stop); }
.cart-row-drop:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cart-row-drop:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-row-drop--none { visibility: hidden; }
.cart-row-more { padding: 0 2.5rem 0.75rem 0.95rem; font-size: 0.84rem; color: var(--text-soft); }
.cart-row-detail { margin: 0 0 0.25rem; }
/* a research letter's clarifications, Q over A (OWNER 2026-10-17: "make
   the Q and A clarification clearer"): the asking soft, the answer bright,
   a lit rule down their side */
.cart-qa {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.1rem 0.45rem;
  margin: 0.1rem 0 0.5rem;
  padding: 0.3rem 0 0.3rem 0.6rem;
  border-left: 2px solid rgba(34, 211, 255, 0.45);
}
.cart-qa dt { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--signal); }
.cart-qa dd { margin: 0; overflow-wrap: anywhere; }
.cart-qa dd.cart-qa-a { color: var(--text); }
/* a gap between one question and the next */
.cart-qa dd.cart-qa-a + dt,
.cart-qa dd.cart-qa-a + dt + dd { margin-top: 0.4rem; }
.cart-row-options { display: grid; gap: 0.3rem; margin-top: 0.3rem; }
.cart-row-cards { list-style: none; margin: 0; padding: 0; }
.cart-row-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
  padding: 0.45rem 0;
  border-top: 1px dashed var(--line-faint);
}
.cart-row-card:first-child { border-top: 0; padding-top: 0; }
.cart-row-card-words { flex: 1 1 10rem; min-width: 0; }
.cart-row-card-name { margin: 0; color: var(--text); }
.cart-row-card .cart-line-options { flex-basis: 100%; }
/* the type of thing, quietly: a label over its rows */
.cart-row-group {
  padding: 0.9rem 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-faint);
}
.cart-one .cart-group-title { margin: 0.9rem 0 0; padding-bottom: 0.15rem; font-size: 0.68rem; border-bottom: 1px solid var(--line-faint); }
.cart-one .cart-group { margin-top: 0; }
/* the shipping: OWNER 2026-10-17 "remove the shipping label all together
   then integrate the shipping section in the your cart panel. remove the
   'in the envelope'" -- the cover letter and the envelope are rows of the
   cart under the subtotal, in its columns, with no heading or frame */
.cart-ship-area { margin: 0; }
/* OWNER 2026-10-17: "make the horizontal bar under the subtotal area more
   pronounced and reduce vertical dead space between cover letter and
   letter envelope" -- the subtotal's lit rule again under it, and the
   shipping rows set closer */
.cart-ship-area .cart-row:first-child { border-top: 2px solid rgba(34, 211, 255, 0.55); }
.cart-ship-area .cart-row-main { padding-block: 0.3rem; }
/* OWNER 2026-11-08: "ship orders as a lulu book instead of loose via
   letterstream" -- how the cart ships, chosen under its subtotal: two
   options side by side (one over the other on a phone), the chosen one
   lit; the shipping rows under it follow the choice */
.cart-ship-as { margin: 0.75rem 0 0.65rem; padding: 0; border: 0; min-width: 0; }
.cart-ship-as legend { padding: 0; margin-bottom: 0.4rem; }
.ship-as-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.ship-as-option {
  position: relative;
  display: block;
  padding: 0.55rem 0.75rem 0.6rem 2.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ship-as-option:hover { border-color: rgba(34, 211, 255, 0.45); }
.ship-as-option input {
  position: absolute;
  left: 0.8rem;
  top: 0.78rem;
  margin: 0;
  accent-color: var(--signal);
}
.ship-as-option:has(input:checked) {
  border-color: var(--signal);
  background: var(--bg-raise2);
  box-shadow: inset 0 0 0 1px var(--signal), var(--glow-lift);
}
.ship-as-option:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.ship-as-option:has(input:disabled) { cursor: default; opacity: 0.6; }
.ship-as-name { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.ship-as-about { display: block; margin-top: 0.12rem; font-size: 0.78rem; line-height: 1.35; color: var(--text-soft); }
@media (max-width: 40em) {
  .ship-as-options { grid-template-columns: minmax(0, 1fr); }
}
/* the title over the subtotal's column labels (the shipping had one too) */
.cart-ship-title {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.cart-row--total { border-top: 1px solid rgba(34, 211, 255, 0.35); }
.cart-row--total .cart-row-name,
.cart-row--total .cart-row-num { color: var(--text); font-weight: 700; }
.cart-row--total .cart-row-price { color: var(--signal); font-size: 1rem; }
/* OWNER 2026-10-17: "make the subtotal most distinct from rest of cart",
   then "actually integrate subtotal into the your cart box" -- no box of
   its own: the close of the items, under a lit rule, its title and
   larger figures in the items' columns */
.cart-subtotal {
  margin: 0.5rem 0 0;
  padding-top: 0.6rem;
  border-top: 2px solid rgba(34, 211, 255, 0.55);
}
/* its header as the shipping's: the title (.cart-ship-title) on the line
   of its Pages and Sheets labels */
.cart-subtotal-cols {
  margin-top: 0;
  padding-bottom: 0.3rem;
  border-bottom-color: rgba(34, 211, 255, 0.4);
}
.cart-subtotal-cols .cart-ship-title { margin: 0; }
.cart-subtotal .cart-row--total { border: 0; }
.cart-subtotal .cart-row-name { font-size: 1.04rem; }
.cart-subtotal .cart-row-num { font-size: 0.95rem; }
.cart-subtotal .cart-row-price { font-size: 1.22rem; text-shadow: 0 0 18px rgba(34, 211, 255, 0.5); }
/* OWNER 2026-10-17: "change 'Held from your credits now' to say 'Credits
   held for order' and make larger and blue" */
.cart-total--held { align-items: center; }
.cart-total--held dt { font-size: 1.12rem; font-weight: 700; color: var(--signal); }
.cart-total--held dd { font-size: 1.8rem; }
/* what the rows come to, added up, over what is held; why more is held */
.cart-total--comes dt { color: var(--text-soft); font-weight: 600; }
.cart-total--comes dd { font-size: 1.05rem; color: var(--text); text-shadow: none; }
.cart-held-why { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text-soft); }
.cart-held-why:empty { display: none; }
.cart-star { display: inline-block; width: 0; overflow: visible; }
@media (max-width: 40em) {
  .cart-one { --cart-cols: minmax(0, 1fr) 2.6rem 2.9rem 5.3rem 1.7rem; padding-inline: 1rem; }
  .cart-cols, .cart-row-main { column-gap: 0.4rem; }
  /* OWNER 2026-10-17, on a phone: "the descriptions in the carts are too
     compressed" -- the name had what the four number columns left, about
     three words wide. On a phone it takes the row beside the remove, and
     its pages, sheets and price sit on the line under it, under their
     column labels. */
  .cart-row-main { row-gap: 0.15rem; }
  .cart-row-name { grid-column: 1 / 5; grid-row: 1; }
  .cart-row-drop { grid-column: 5; grid-row: 1; }
  .cart-row-pages { grid-column: 2; grid-row: 2; }
  .cart-row-sheets { grid-column: 3; grid-row: 2; }
  .cart-row-price { grid-column: 4; grid-row: 2; }
  .cart-row-name { font-size: 0.88rem; }
  .cart-row-num { font-size: 0.8rem; }
  .cart-row-price { font-size: 0.86rem; }
  /* OWNER 2026-10-17: "can we put the sheet page number and price on the
     cover letter and envelope designation same line to reduce vertical
     space usage", then "do the same for number of items in subtotal" --
     their names are short: each on one line with its figures, the name
     running into the empty left of the Pages column (whose figure, a
     character or three, stays clear of it on the right) */
  .cart-ship-area .cart-row-name { grid-column: 1 / 3; padding-right: 0.8rem; }
  .cart-subtotal .cart-row-name { grid-column: 1 / 3; padding-right: 2rem; }
  .cart-ship-area .cart-row-pages, .cart-subtotal .cart-row-pages,
  .cart-ship-area .cart-row-sheets, .cart-subtotal .cart-row-sheets,
  .cart-ship-area .cart-row-price, .cart-subtotal .cart-row-price { grid-row: 1; }
  .cart-row-more { padding-right: 0.5rem; }
  /* a single card's name, its copies and its remove on one line */
  .cart-row-card-words { flex-basis: 8rem; }
}
.cart-group { margin-top: 1.2rem; }
.cart-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.cart-group-title .cart-count { flex: none; font-size: 0.78rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cart-line--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "words price" "words drop";
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.35rem;
}
.cart-line--row .cart-line-words { grid-area: words; }
.cart-line--row .cart-line-price { grid-area: price; }
.cart-line--row .cart-line-drop { grid-area: drop; justify-self: end; }
.cart-line-price { display: grid; justify-items: end; gap: 0.1rem; text-align: right; }
.cart-line-amount {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.cart-line-note { font-size: 0.74rem; color: var(--text-soft); white-space: nowrap; }
.cart-line--sum { border-top-style: dashed; }
/* OWNER 2026-10-17: "add a double horizontal line between the envelope
   line and credits held" -- a double rule closing the rows, over the
   total */
.cart-one .checkout-sum { margin: 0.4rem 0 0.2rem; border-top: 5px double rgba(34, 211, 255, 0.6); }
.cart-one .cart-note { margin-top: 0.3rem; }
.cart-balance { margin: 0.7rem 0 0; }
.cart-actions .order-actions { margin-top: 1.1rem; }
.cart-actions .btn--block { margin-top: 1rem; }

/* The cart at the top: at the end of the masthead (its top corner on a
   phone); pinned to the top corner of the screen once the masthead is
   scrolled away. */
.cart-top {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--signal);
  text-decoration: none;
  background: rgba(5, 8, 15, 0.6);
  border: 1px solid rgba(34, 211, 255, 0.45);
  border-radius: 999px;
}
.cart-top:hover { color: var(--text); border-color: var(--signal); background: rgba(34, 211, 255, 0.1); }
.cart-top:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cart-top-icon { position: relative; display: inline-flex; }
.cart-top-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.65rem;
  min-width: 1.1rem;
  padding: 0 0.28em;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-signal);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}
.cart-top-badge.is-bumped { animation: cart-bump 0.4s ease-out; }
.cart-top-text { padding-left: 0.2rem; }
.cart-top--pin {
  position: fixed;
  top: calc(0.7rem + env(safe-area-inset-top, 0px));
  right: calc(0.7rem + env(safe-area-inset-right, 0px));
  z-index: 45;
  background: rgba(5, 8, 15, 0.92);
  box-shadow: 0 10px 28px -10px rgba(47, 107, 255, 0.75), 0 0 0 1px rgba(34, 211, 255, 0.12);
  animation: cart-top-in 0.2s ease-out;
}
@supports (backdrop-filter: blur(6px)) {
  .cart-top--pin { background: rgba(5, 8, 15, 0.78); backdrop-filter: blur(8px); }
}
@keyframes cart-top-in {
  from { opacity: 0; transform: translateY(-0.6rem); }
  to { opacity: 1; transform: none; }
}
/* beside a wide masthead's nav, which stays on the right */
@media (min-width: 40.01em) {
  .masthead-inner > .cart-top:not([hidden]) { margin-left: -0.8rem; }
  .masthead-inner > .site-nav { margin-left: auto; }
}
/* a phone: the masthead is centred, so the cart takes its top corner */
@media (max-width: 40em) {
  .masthead .cart-top { position: absolute; top: 1rem; right: 1rem; }
}
@media (max-width: 24em) {
  .cart-top-text { display: none; }
  .cart-top { padding: 0.45rem 0.7rem; }
}

/* While browsing with the cart out of sight: a bar across the bottom of
   the screen with how many items, the price, and the way to the cart. */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 15, 0.94);
  border-top: 1px solid rgba(34, 211, 255, 0.4);
  box-shadow: 0 -10px 30px -12px rgba(47, 107, 255, 0.6);
  animation: cart-bar-in 0.25s ease-out;
}
@supports (backdrop-filter: blur(6px)) {
  .cart-bar { background: rgba(5, 8, 15, 0.82); backdrop-filter: blur(8px); }
}
.cart-bar-inner { display: flex; align-items: center; gap: 0.9rem; }
.cart-bar-icon { position: relative; flex: none; display: inline-flex; color: var(--signal); }
.cart-bar-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.6rem;
  min-width: 1.15rem;
  padding: 0 0.3em;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-signal);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}
.cart-bar-badge.is-bumped { animation: cart-bump 0.4s ease-out; }
.cart-bar-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.cart-bar-go { flex: none; padding: 0.6em 1.1em; font-size: 0.86rem; }
body.has-cart-bar { padding-bottom: 4.6rem; }
@keyframes cart-bar-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* The four steps. A step behind is filled, the one the order is on is
   ringed, and while we are at work on it the ring breathes. */
.track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.2rem 0 1rem;
  padding: 0;
  max-width: 36rem;
}
.track li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  padding: 0 0.2rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text-soft);
}
.track li + li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--line);
}
.track li.is-done::before,
.track li.is-now::before { background: var(--grad); }
.track-dot {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(128, 170, 255, 0.45);
  border-radius: 50%;
  background: var(--bg-raise);
}
.track li.is-done .track-dot { border-color: var(--signal); background: var(--signal); }
.track li.is-now .track-dot {
  border-color: var(--signal);
  background: var(--bg-raise);
  box-shadow: 0 0 0 4px rgba(34, 211, 255, 0.18);
}
.track li.is-now .track-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--signal);
}
.track li.is-now.is-busy .track-dot { animation: track-breathe 1.8s ease-in-out infinite; }
.track li.is-done .track-label { color: var(--text); }
.track li.is-now .track-label { color: var(--text); font-weight: 700; }
@keyframes track-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.22); }
  50% { box-shadow: 0 0 0 9px rgba(34, 211, 255, 0); }
}
@media (max-width: 40em) {
  .order--new { margin-inline: -0.5rem; padding-inline: 0.5rem; }
  .track li { font-size: 0.76rem; }
}

/* ---------- Your own document: the upload and its check (account.js) ---------- */

.upload { margin-bottom: 1.1rem; }
.field input[type="file"] { padding: 0.6em 0.7em; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.35em 0.8em;
  margin-right: 0.8em;
  cursor: pointer;
}
.upload-declare {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  margin: 0 0 1rem;
  cursor: pointer;
}
.upload-declare input { accent-color: var(--signal); width: 1rem; height: 1rem; margin-top: 0.15rem; flex: none; }
.upload-reasons { margin: 0.4rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.upload-reasons li { margin: 0.2rem 0; }

/* How it prints: one side or both, pages on each side, the bound edge.
   Real radio buttons (arrow keys work), drawn as pills like the site's
   chips, each with a small picture of the printed sheet; the chosen one
   is lit. Below them, the front and the reverse drawn large (account.js
   sidesSvg): the sheets as they are held to read, the bound edge in
   cyan, and F and R on the front and the reverse. */
.print-layout { margin-bottom: 1.1rem; }
.print-choice { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.print-choice legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.print-choice .hint { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--text-soft); }
/* the scan of the file disagrees with the orientation chosen */
.print-choice .hint--differs { color: var(--signal); }
.print-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.print-opt { position: relative; cursor: pointer; }
.print-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.print-opt > span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.6rem;
  padding: 0.35em 0.9em 0.35em 0.55em;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(128, 170, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.print-opt-words { display: flex; flex-direction: column; }
.print-opt-words small { font-size: 0.76rem; color: var(--text-soft); }
.print-opt-art { display: flex; flex: none; }
.print-opt-art:empty { display: none; }
.print-opt--n > span { flex-direction: column; gap: 0.1rem; padding: 0.35em 0.6em; min-width: 3.4rem; }
.print-opt--n .print-opt-words { font-family: var(--mono); font-size: 0.95rem; align-items: center; }
.print-opt:hover > span { border-color: var(--signal); background: rgba(34, 211, 255, 0.10); }
.print-opt input:checked + span {
  border-color: var(--signal);
  background: rgba(34, 211, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(34, 211, 255, 0.14);
}
.print-opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

/* On the page: what was chosen, and the button that opens the wizard.
   Until the file has passed its check it is greyed out and the button
   can't be pressed (account.js). */
.print-wait {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}
.print-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(128, 170, 255, 0.04);
}
.print-summary-art { display: flex; flex: none; }
.print-summary-words { flex: 1 1 12rem; min-width: 0; }
.print-summary-words .field-label { margin: 0 0 0.2rem; }
.print-summary-text { margin: 0; font-size: 0.86rem; color: var(--text-soft); }
.print-summary-open { flex: none; }
.print-layout--waiting .print-summary { opacity: 0.4; filter: grayscale(1); }
.print-summary-open:disabled { cursor: not-allowed; }

/* The print wizard: one choice a step, then the review and Add to cart
   (OWNER 2026-10-16: "turn those options into a popup wizard"). Dressed
   like the card viewer. */
.print-wizard {
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1rem 1.1rem 1.1rem;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(34, 211, 255, 0.15);
}
.print-wizard::backdrop { background: rgba(3, 5, 10, 0.82); }
@supports (backdrop-filter: blur(4px)) {
  .print-wizard::backdrop { backdrop-filter: blur(4px); }
}
.print-wizard[open] { animation: listing-in 0.2s ease-out; }
.wiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.wiz-count { margin: 0; font-family: var(--mono); font-size: 0.78rem; color: var(--signal); letter-spacing: 0.04em; }
.wiz-title { margin: 0.15rem 0 0; font-size: 1.2rem; }
.wiz-close {
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.wiz-close:hover { color: var(--signal); border-color: var(--signal); }
.wiz-close:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.wiz-body .print-choice { margin-bottom: 0.9rem; }
.wiz-body .print-choice legend { font-size: 1rem; margin-bottom: 0.7rem; }
.wiz-review .field-label { margin-bottom: 0.5rem; }
.wiz-review-list { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.wiz-review-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.wiz-review-name { flex: 0 1 10rem; color: var(--text-soft); }
.wiz-review-value { flex: 1 1 6rem; }
.wiz-review-change { font-size: 0.84rem; margin-left: auto; }
.wiz-notes { margin: 0.4rem 0 0.8rem; }
.wiz-cost { margin: 0 0 0.6rem; font-size: 0.9rem; }
.wiz-status { margin: 0 0 0.6rem; font-size: 0.88rem; color: var(--signal); }
.wiz-status:empty { display: none; }
.wiz-foot { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 0.9rem; }

/* The research wizard (OWNER 2026-10-17): the question, anything sent with
   the answer, how hard it looks, the limit. Dressed as the print wizard. */
.ask-start { margin: 0 0 1.1rem; }
.ask-start-words { margin: 0 0 0.8rem; color: var(--text-soft); }
.ask-wizard .wiz-step > .field:last-child { margin-bottom: 0.4rem; }
.ask-wizard textarea { min-height: 9rem; }
.ask-attach .print-opt { flex: 1 1 14rem; }
.ask-attach .print-opt > span { height: 100%; padding-left: 0.75em; }
/* more than one can be ticked: a box to tick on each */
.ask-attach .print-opt > span::before {
  content: "";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bg);
  border: 1.5px solid var(--text-soft);
  border-radius: 4px;
}
.ask-attach .print-opt input:checked + span::before {
  content: "\2713";
  background: var(--signal);
  border-color: var(--signal);
}
.ask-more { margin: 0.9rem 0 0.5rem; }
.ask-wizard .lookup-wait { margin: 0 0 1rem; }
.ask-wizard .rating { margin-bottom: 0.8rem; }
/* the rater's own questions, when it needs to know more */
.ask-clarify {
  margin: 0 0 0.8rem;
  padding: 0.9rem 1rem 0.3rem;
  border: 1px solid rgba(34, 211, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 255, 0.06);
  animation: listing-in 0.35s ease-out;
}
.ask-clarify-lead { margin: 0.2rem 0 0.8rem; font-size: 0.9rem; color: var(--text-soft); }
.ask-clarify .field label { font-weight: 600; }
.ask-clarify textarea { min-height: 3.6rem; }
.ask-effort-note { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--signal); }
.ask-effort-note:empty { display: none; }
/* what a research letter holds, under its rating (OWNER 2026-10-17:
   "remove the customers ability to set a limit") */
.ask-hold { margin: 0.6rem 0; font-size: 0.9rem; color: var(--text); }
.ask-hold:empty { display: none; }
.wiz-foot .btn:disabled { visibility: hidden; }

/* The calendar maker (OWNER 2026-10-24: "build a wizard for the website"):
   five steps, dressed as the research wizard (assets/calendars.js). */
.cal-lede { margin: 0 0 0.8rem; }
.cal-row { display: flex; flex-wrap: wrap; gap: 0 0.8rem; }
.cal-row > .field { flex: 1 1 8rem; min-width: 0; margin-bottom: 0.8rem; }
.cal-range { margin: 0 0 0.6rem; font-family: var(--mono); font-size: 0.86rem; color: var(--signal); }
.cal-range:empty { display: none; }
.cal-wizard textarea { min-height: 4.5rem; }
.cal-tz { margin-top: 0.9rem; }
.cal-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: -0.4rem 0 1rem; }
.cal-chip {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.3em 0.75em;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.cal-chip:hover { color: var(--signal); border-color: var(--signal); }
.cal-chip:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cal-facts, .cal-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 0.9rem;
  margin: 0.9rem 0;
  font-size: 0.86rem;
}
.cal-facts dt, .cal-summary dt { color: var(--text-soft); }
.cal-facts dd, .cal-summary dd { margin: 0; overflow-wrap: anywhere; }
.cal-warn { color: var(--signal-hi); }
.cal-product-note { margin: 0.6rem 0 0; font-size: 0.88rem; }
.cal-product-note:empty { display: none; }
.cal-price { margin: 0.4rem 0 0.6rem; font-size: 0.9rem; }
.cal-price > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line-faint);
}
.cal-price dt { color: var(--text-soft); }
.cal-price dd { margin: 0; font-family: var(--mono); white-space: nowrap; }
.cal-price .cal-price-total { border-bottom: 0; border-top: 1px solid var(--line); font-weight: 700; }
.cal-price .cal-price-total dt { color: var(--text); }
@media (max-width: 30em) {
  .cal-facts, .cal-summary { grid-template-columns: 1fr; gap: 0.1rem; }
  .cal-facts dd, .cal-summary dd { margin-bottom: 0.45rem; }
}

/* The reentry brief wizard (assets/reentry.js; OWNER 2026-10-24/25): the
   navigator's questions in the calendar maker's dress, then the book's
   paper. (No brief before the book is ordered: OWNER 2026-11-27.) */
.rrn-picked { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; min-height: 1.9rem; align-items: center; }
.rrn-picked .hint { margin: 0; }
.rrn-offenses { display: grid; gap: 0.5rem; margin-bottom: 0.4rem; }
.rrn-group { border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 8, 15, 0.35); }
.rrn-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}
.rrn-group > summary:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; border-radius: 12px; }
.rrn-group-count { font-family: var(--mono); font-size: 0.8rem; color: var(--text-soft); }
.rrn-offense { padding: 0.5rem 0.8rem; border-top: 1px solid var(--line-faint); }
.rrn-check { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; font-size: 0.9rem; }
.rrn-check input { margin-top: 0.2rem; flex: none; accent-color: var(--signal); }
.rrn-check span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.rrn-check small { font-family: var(--mono); font-size: 0.74rem; color: var(--text-soft); }
.rrn-age { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: center; margin: 0.45rem 0 0 1.6rem; font-size: 0.84rem; color: var(--text-soft); }
.rrn-age select { max-width: 100%; }
.rrn-age[hidden], .rrn-group[hidden], .rrn-offense[hidden] { display: none; }
.rrn-radios { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.rrn-radios label { display: flex; gap: 0.45rem; align-items: center; cursor: pointer; }
.rrn-radios input { accent-color: var(--signal); }
.rrn-date { margin-top: 0.4rem; }
.rrn-weights { display: grid; gap: 0.55rem; }
.rrn-slider { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.3rem 0.8rem; font-size: 0.9rem; }
.rrn-slider input { flex: 1 1 11rem; max-width: 18rem; accent-color: var(--signal); }
.rrn-wizard #rrn-papers .print-opt { flex: 1 1 14rem; }
.rrn-wizard #rrn-papers .print-opt > span { width: 100%; box-sizing: border-box; }

.print-preview {
  margin: 0.2rem 0 0;
  padding: 0.8rem 0.9rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(128, 170, 255, 0.04);
}
.print-preview-art { display: flex; justify-content: center; }
.print-preview-art svg { max-width: 100%; height: auto; }
.print-preview-words { margin: 0.55rem 0 0; font-size: 0.84rem; color: var(--text-soft); text-align: center; }

/* the drawing itself */
.pv-paper { fill: rgba(232, 240, 255, 0.92); stroke: rgba(128, 170, 255, 0.55); stroke-width: 0.8; }
.pv-paper--blank { fill: rgba(128, 170, 255, 0.05); stroke-dasharray: 3 2.5; }
.pv-page { fill: none; stroke: rgba(40, 60, 100, 0.35); stroke-width: 0.5; }
.pv-line { fill: rgba(40, 60, 100, 0.42); }
.pv-line--head { fill: rgba(20, 35, 70, 0.8); }
/* printed in colour: the lines in colour (no pink, no tan) */
.pv-ink-0 { fill: #d93b3b; }
.pv-ink-1 { fill: #1f7ae0; }
.pv-ink-2 { fill: #2e9e5b; }
.pv-ink-3 { fill: #e0a21f; }
.pv-bind { fill: var(--signal); }
.pv-ring { fill: none; stroke: var(--signal); stroke-width: 1.2; }
.pv-turn, .pv-turn-head { fill: none; stroke: var(--text-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pv--mini .pv-turn, .pv--mini .pv-turn-head { stroke-width: 1; }
.pv-label { fill: var(--text-soft); font-family: var(--mono); font-size: 9px; text-anchor: middle; }
/* F the front, R the reverse: a capital laid over each sheet, upright with its pages;
   a paper-coloured halo keeps it clear of the lines underneath */
.pv-letter {
  fill: #12305f;
  font-family: var(--sans);
  font-weight: 800;
  text-anchor: middle;
  stroke: rgba(232, 240, 255, 0.92);
  stroke-width: 2;
  stroke-linejoin: round;
  paint-order: stroke;
}
.pv--mini .pv-letter { stroke-width: 1.1; }
/* the bound edge, named along it: long for a portrait sheet, short for a landscape one */
.pv-edge { fill: var(--signal); font-family: var(--mono); font-size: 6.5px; font-weight: 600; letter-spacing: 0.04em; text-anchor: middle; }
.pv-edge--side { dominant-baseline: central; }

/* The rules as a short list: one line each, opened for the detail
   (native details/summary, so no script). Same bars as the rule cards:
   the stop color for the hard lines, the signal for the rest. */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
}
.rule-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding-left: 4px;
}
.rule-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--signal), var(--signal-2));
}
.rule-item--stop { border-color: rgba(255, 107, 107, 0.38); }
.rule-item--stop::before { background: var(--stop); }
.rule-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  font-size: 1.02rem;
}
.rule-item summary::-webkit-details-marker { display: none; }
.rule-item summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--signal);
}
.rule-item[open] summary::after { content: "\2212"; }
.rule-item--stop summary { color: #ffd0d0; }
.rule-item--stop summary::after { color: var(--stop); }
.rule-item summary:hover { background: rgba(128, 170, 255, 0.05); }
.rule-item summary:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.rule-detail { padding: 0 1.1rem 1rem; }
.rule-detail p { margin: 0 0 0.6em; }
.rule-detail p:last-child { margin-bottom: 0; }

/* Zero tolerance: the one rule shown open, above the list. */
.rule-zero {
  position: relative;
  overflow: hidden;
  max-width: 52rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.09), var(--bg-raise));
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem 1.1rem calc(1.2rem + 4px);
}
.rule-zero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stop);
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.55);
}
.rule-zero h3 { color: #ffd0d0; font-size: 1.15rem; margin: 0 0 0.45em; }
.rule-zero p { margin: 0 0 0.6em; }
.rule-zero p:last-child { margin-bottom: 0; }

/* A rule shown open, in the list's colors (Your own documents). */
.rule-open {
  position: relative;
  overflow: hidden;
  max-width: 52rem;
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem 1.1rem calc(1.2rem + 4px);
}
.rule-open::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--signal), var(--signal-2));
}
.rule-open h3 { font-size: 1.05rem; margin: 0 0 0.45em; }
.rule-open p { margin: 0 0 0.6em; }
.rule-open p:last-child { margin-bottom: 0; }

/* Added to your cart: a notice that comes down at the top of the screen
   (account.js cartNotice; OWNER 2026-10-17: "some popup or clear notice
   that it was added"). */
.cart-notice {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(30rem, calc(100vw - 2rem));
  padding: 0.7rem 0.75rem 0.7rem 0.85rem;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-raise2), var(--bg-raise));
  border: 1px solid var(--signal);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85), 0 0 0 3px rgba(34, 211, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -140%);
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.25s;
}
.cart-notice.is-in {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.cart-notice-tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #05080f;
  background: var(--signal);
  font-weight: 800;
}
.cart-notice-words { flex: 1 1 auto; min-width: 0; }
.cart-notice-title { margin: 0; font-weight: 700; }
.cart-notice-what {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-notice-go { flex: none; padding: 0.45em 0.9em; font-size: 0.88rem; }
.cart-notice-close {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.cart-notice-close:hover { color: var(--signal); border-color: var(--signal); }
.cart-notice-close:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cart-notice, .cart-notice.is-in { transition: none; }
}

