/* The pages beyond home: occasions, guides and comparisons. They stand on home's site.css (its paper, room, type,
   buttons and objects) and add only their own frames. */

/* ---------- One frame for every block, the same as home's chapters ---------- */
.crumbs, .pg-hero, .pg-head, .pg-row, .pg-steps, .pg-shelf, .pg-more, .pg-close, .art, .pg-faq, .pg-table, .pg-say, .edge {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--g));
  margin: 0 auto;
  padding: clamp(40px, 4.6vw, 72px) var(--g);
  contain: layout;
}
.pg-faq { padding-top: clamp(40px, 4.6vw, 72px); }

/* The breadcrumb sits under the header, where home's garland would hang. */
.crumbs { padding-top: max(92px, calc(env(safe-area-inset-top) + 74px)); padding-bottom: 0; font-size: 15px; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: rgba(29, 24, 19, 0.3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(193, 18, 31, 0.5); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- The first screen: what it is, in the occasion's own object ---------- */
.pg-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 104px); align-items: center; padding-top: clamp(24px, 3vw, 44px); }
.pg h1 { font: 400 clamp(44px, 6.4vw, 92px)/0.98 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.pg-dek { margin-top: 24px; max-width: 40ch; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.45; }
.pg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.pg-act span { font-size: 15px; color: var(--ink-2); }
.pg-hero-art { justify-self: center; width: min(100%, 560px); }
.pg-hero-art .hcard, .pg-row .hcard { grid-area: auto; width: 100%; }
.pg-hero-art .pg-santa, .pg-row .pg-santa { width: 100%; }
.pg-hero-art .el-stage { margin-top: 0; }

/* ---------- A claim and its object, side by side; every other one turns ---------- */
.pg-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: 'words obj'; gap: 40px clamp(32px, 6vw, 104px); align-items: center; }
.pg-row.mirror { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: 'obj words'; }
.pg-row-words { grid-area: words; }
.pg-row h2, .pg-steps h2 { font-size: clamp(36px, 3.9vw, 60px); }
.pg-row-words p { margin-top: 20px; max-width: 40ch; font-size: clamp(18px, 1.3vw, 20px); }
.pg-row-words p + p { margin-top: 14px; }
.pg-obj { grid-area: obj; justify-self: center; width: min(100%, 600px); }
.pg-obj .grp { width: 100%; }
.pg-obj .ticket-wrap { margin: 0 auto; }
.pg-obj .order { flex-wrap: wrap; }
.pg-obj .o-cap { margin-top: 26px; }

/* The Secret Santa stub is the snow paper's blue, not White Elephant's plum. */
.t-stub[data-stub='santa'] { background: #12305c; }
.t-stub[data-stub='santa'] b { background: #0c2142; }

/* ---------- Steps: red italic numerals in the margin ---------- */
.pg-steps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 104px); align-items: start; }
.pg-steps > div p { margin-top: 18px; max-width: 32ch; font-size: 17px; color: var(--ink-2); }
.steps { counter-reset: step; display: grid; gap: 26px; }
.steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); counter-increment: step; }
.steps > li::before { content: counter(step); font: italic 400 40px/0.9 var(--serif); color: var(--red); }
.steps b { display: block; font: 400 clamp(22px, 1.8vw, 26px)/1.2 var(--serif); }
.steps p { margin-top: 6px; max-width: 58ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Index pages: a shelf of links, each with its paper ---------- */
.pg-head { padding-top: clamp(24px, 3vw, 44px); padding-bottom: 0; }
.pg-head .pg-dek { max-width: 46ch; }
.shelf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.shelf-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; height: 100%; padding: 18px 22px 18px 18px; border-radius: 22px; background: var(--card); text-decoration: none; transition: transform 300ms var(--out); }
.shelf-list a:hover { transform: translateY(-3px); }
.shelf-list a:active { transform: translateY(0) scale(0.99); transition-duration: 120ms; }
.shelf-art img { width: 64px; height: 72px; border-radius: 8px; object-fit: cover; object-position: top right; }
.shelf-art.round img { height: 64px; border-radius: 50%; }
.shelf-words b { display: block; font: 400 clamp(22px, 1.7vw, 25px)/1.15 var(--serif); text-wrap: balance; }
.shelf-words span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.pg-more h2 { margin-bottom: 28px; font-size: clamp(32px, 3.4vw, 48px); }

/* ---------- A guide: the article on the left, its object kept in view on the right ---------- */
.art { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 104px); align-items: start; padding-top: clamp(24px, 3vw, 44px); }
.art-side { position: sticky; top: 32px; justify-self: center; width: min(100%, 460px); }
.art-side .hcard { grid-area: auto; width: 100%; }
.art-side .el-stage { margin-top: 0; }
.art-side.still { position: static; align-self: center; }
.art-side figcaption.art-cap { margin-top: 16px; font-size: 15px; color: var(--ink-2); text-align: center; }
.art-body > p, .art-body > ul, .art-body > ol, .art-body > h2, .art-body > .short, .art-body > .how, .art-body > .note-line { max-width: 680px; }
.art-body > p { margin-top: 18px; font-size: 19px; line-height: 1.62; }
.art-body > p.pg-dek { margin-top: 24px; font-size: clamp(20px, 1.5vw, 23px); line-height: 1.45; }
.art-body h2 { margin-top: clamp(48px, 5vw, 68px); font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.art-body h3 { margin-top: 30px; font: 400 25px/1.2 var(--serif); }
.art-body > ul, .art-body > ol { margin-top: 18px; display: grid; gap: 12px; font-size: 19px; line-height: 1.55; }
.art-body > ul > li { position: relative; padding-left: 26px; }
.art-body > ul > li::before { content: ''; position: absolute; left: 2px; top: 0.78em; width: 12px; height: 2px; border-radius: 1px; background: var(--red); }
.art-body > ol.steps { gap: 22px; margin-top: 26px; }
.art-body b { font-weight: 600; }
.art-body .steps b { font-weight: 400; }
.art-body a { text-decoration-color: rgba(193, 18, 31, 0.5); text-underline-offset: 3px; }
.art-body a:hover { text-decoration-color: var(--red); }
.updated { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* The short version: what to take away, on a card, before the long one. */
.short { margin-top: 34px; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--card); }
.short h2 { margin: 0; font-size: clamp(26px, 2.2vw, 32px); }
.short ul { display: grid; gap: 10px; margin-top: 14px; font-size: 18px; line-height: 1.5; }
.short li { position: relative; padding-left: 24px; }
.short li::before { content: ''; position: absolute; left: 2px; top: 0.75em; width: 11px; height: 2px; border-radius: 1px; background: var(--red); }

/* How Ribbon does it: one block, near the end, never a pitch in every paragraph. */
.how { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: clamp(44px, 4.6vw, 60px); padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--card); }
.how img { width: 64px; height: 64px; border-radius: 15px; }
.how h2 { margin: 0; font-size: clamp(26px, 2.2vw, 32px); }
.how p { margin-top: 10px; font-size: 18px; line-height: 1.55; }
.how .btn { margin-top: 18px; }

/* ---------- A comparison: the table, then the reasons ---------- */
.pg-table { padding-top: clamp(24px, 3vw, 40px); padding-bottom: 0; }
.pg-table h2 { margin-bottom: 22px; font-size: clamp(30px, 3vw, 42px); }
.art-cmp + .pg-table + .art { padding-top: 0; }
.edge + .pg-table { padding-top: clamp(64px, 7vw, 104px); }
.cmp-wrap { overflow-x: auto; margin: 0 calc(var(--g) * -1); padding: 0 var(--g); scrollbar-width: none; }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.cmp caption { padding-bottom: 14px; text-align: left; font-size: 15px; color: var(--ink-2); }
.cmp th, .cmp td { padding: 16px 18px 16px 0; text-align: left; vertical-align: top; }
.cmp thead th { padding-bottom: 12px; font: 400 clamp(22px, 1.9vw, 27px)/1.1 var(--serif); }
.cmp thead th:first-child { width: 22%; }
.cmp td { width: 39%; }
.cmp tbody th { font-weight: 600; }
.cmp tbody tr { border-top: 1px solid rgba(29, 24, 19, 0.12); } /* taste-skill-ignore: hairline rows between a table's answers, Ribbon's own list rule */
.cmp td.us { color: var(--ink); }
/* Where Ribbon is plainly ahead, its answer is marked like a highlighter on the page, not a badge. */
.cmp td.ahead > span { display: block; margin: -10px 0 -10px -14px; padding: 10px 14px; border-radius: 14px; background: rgba(193, 18, 31, 0.075); }

/* What Ribbon does that the other app doesn't: the house rules ticket's red italic numerals, two then three. */
.art-cmp + .edge { padding-top: clamp(16px, 2vw, 28px); padding-bottom: 0; }
.edge h2 { max-width: 22ch; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.edge ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px clamp(24px, 3vw, 44px); margin-top: clamp(24px, 2.6vw, 36px); counter-reset: edge; }
.edge li { grid-column: span 2; padding-top: 18px; border-top: 1px solid rgba(29, 24, 19, 0.14); counter-increment: edge; } /* taste-skill-ignore: the ticket's ruled lines */
.edge li:nth-child(-n + 2) { grid-column: span 3; }
.edge li::before { content: counter(edge); display: block; font: italic 400 clamp(34px, 3vw, 44px)/1 var(--serif); color: var(--red); }
.edge h3 { margin-top: 10px; font: 400 clamp(24px, 2vw, 29px)/1.12 var(--serif); }
.edge li:nth-child(-n + 2) h3 { font-size: clamp(28px, 2.5vw, 36px); }
.edge p { margin-top: 10px; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.js .edge li { opacity: 0; transform: translateY(22px); }
.js .edge li.in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--out); }
.js .edge li:nth-child(2).in { transition-delay: 70ms; }
.js .edge li:nth-child(4).in { transition-delay: 70ms; }
.js .edge li:nth-child(5).in { transition-delay: 140ms; }
@media (max-width: 900px) {
  .edge ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edge li, .edge li:nth-child(-n + 2) { grid-column: auto; }
  .edge li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .edge ol { grid-template-columns: 1fr; gap: 24px; }
  .edge li:nth-child(-n + 2) h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .edge li, .js .edge li.in { transform: none; transition: opacity 300ms ease; }
}
.cmp td { color: var(--ink-2); }
.cmp .yes { color: var(--ink); }
.sources { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sources a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- The close: the icon, one line and the button ---------- */
.pg-close { display: grid; justify-items: center; text-align: center; padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.pg-close-art img { width: clamp(88px, 8vw, 112px); height: auto; border-radius: 24%; }
.pg-close h2 { margin-top: 28px; }
.pg-close p { margin-top: 16px; max-width: 36ch; font-size: clamp(18px, 1.3vw, 20px); color: var(--ink-2); }
.pg-close .btn { margin-top: 28px; }

/* A sentence set large, between two blocks: the page's one statement. */
.pg-say p { max-width: 24ch; font: 400 clamp(24px, 3vw, 36px)/1.2 var(--serif); letter-spacing: -0.01em; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .pg-hero, .pg-row, .pg-row.mirror, .pg-steps, .art { grid-template-columns: 1fr; }
  .pg-row, .pg-row.mirror { grid-template-areas: 'words' 'obj'; }
  .pg-hero-art { width: min(100%, 520px); }
  .art-side { position: static; width: min(100%, 440px); }
}
@media (max-width: 640px) {
  .crumbs { font-size: 14px; }
  .pg-dek { margin-top: 18px; }
  .pg-act { margin-top: 26px; }
  .steps > li { grid-template-columns: 44px minmax(0, 1fr); }
  .steps > li::before { font-size: 34px; }
  .art-body > p, .art-body > ul, .art-body > ol { font-size: 18px; }
  .how { grid-template-columns: 1fr; }
  .how img { width: 56px; height: 56px; }
  .shelf-list a { grid-template-columns: 56px minmax(0, 1fr); padding: 16px 18px 16px 16px; }
  .shelf-art img { width: 56px; height: 64px; }
  .shelf-art.round img { height: 56px; }
  /* The table becomes one card per row: the feature, then each app's answer under its name. */
  .cmp-wrap { overflow: visible; margin: 0; padding: 0; }
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tbody tr { padding: 16px 0 18px; }
  .cmp th, .cmp td { padding: 0; }
  .cmp tbody th { font: 400 22px/1.15 var(--serif); }
  .cmp td { margin-top: 10px; }
  .cmp td::before { content: attr(data-who); display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
  .art-side.still { width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  .shelf-list a, .shelf-list a:hover { transform: none; transition: none; }
}

/* ---------- Small objects the pages show that home tells another way ---------- */
/* A gift chat: paper bubbles for the others, red satin for yours. */
.pchat { display: grid; gap: 18px; width: 100%; padding: clamp(18px, 2vw, 26px); border-radius: 28px; background: rgba(255, 252, 246, 0.72); }
.pchat-head { display: grid; gap: 2px; }
.pchat-head b { font: 400 clamp(26px, 2.2vw, 31px)/1.05 var(--serif); }
.pchat-head i { font: italic 400 18px/1.2 var(--serif); color: var(--red); }
.pchat-msgs { display: grid; gap: 10px; }
.pchat-msgs li { display: grid; grid-template-columns: 32px minmax(0, auto); gap: 8px; align-items: end; justify-content: start; }
.pchat-msgs li img { width: 32px; height: 32px; border-radius: 50%; }
.pchat-msgs p { max-width: 30ch; padding: 9px 14px 10px; border-radius: 20px 20px 20px 6px; background: var(--card); font-size: 16px; line-height: 1.35; }
.pchat-msgs small { display: block; font-size: 13px; color: var(--ink-2); }
.pchat-msgs .mine { grid-template-columns: minmax(0, auto); justify-content: end; }
.pchat-msgs .mine p { border-radius: 20px 20px 6px 20px; background: var(--red) url('img/satin.webp') 0 0 / 100% 100%; color: var(--cream); }

/* White Elephant's Your gift. */
.yourgift { width: 100%; padding: clamp(18px, 2vw, 26px); border-radius: 28px; background: var(--card); }
.yourgift figcaption { font: 400 clamp(26px, 2.2vw, 31px)/1 var(--serif); }
.yourgift > div { display: grid; grid-template-columns: clamp(84px, 9vw, 112px) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 16px; }
.yourgift img { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; }
.yourgift b { display: block; font: 400 clamp(22px, 1.8vw, 26px)/1.15 var(--serif); }
.yourgift span { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.yourgift i { display: block; margin-top: 8px; font: italic 400 17px/1.2 var(--serif); color: var(--red); }

/* Who buys for whom: a ring of faces, the mended link in red satin. */
.chain { display: flex; justify-content: center; margin-top: 16px; }
.chain li { position: relative; display: grid; justify-items: center; gap: 8px; padding: 0 clamp(9px, 1.4vw, 20px); font-size: 15px; color: var(--ink-2); }
.chain li:not(:last-child)::after { content: '→'; position: absolute; right: -0.4em; top: calc(clamp(46px, 4.6vw, 62px) / 2 - 12px); font: italic 400 24px/1 var(--serif); color: rgba(29, 24, 19, 0.35); }
.chain img { width: clamp(46px, 4.6vw, 62px); height: clamp(46px, 4.6vw, 62px); border-radius: 50%; }
.chain .mended img { outline: 3px solid var(--red); outline-offset: 3px; }
.chain .mended span { color: var(--red); font: italic 400 17px/1 var(--serif); }

/* Gifts you got. */
.got .mt-from { display: block; margin-top: 2px; font: italic 400 16px/1.2 var(--serif); color: var(--red); }
.pg-obj .got { padding: clamp(18px, 2vw, 26px); border-radius: 28px; background: var(--card); margin-top: 0; }
.pg-from { font: italic 400 clamp(20px, 1.6vw, 23px)/1.15 var(--serif); color: var(--ink); }
.pg-obj > .o-cap:first-child { margin-top: 0; }
.shelf-art img[src*='shelf-'] { object-fit: contain; object-position: center; }
.shelf-art img[src*='icon'] { height: 64px; border-radius: 15px; }

/* ---------- An index page's shelf: each link wears its paper, cropped to the figure ---------- */
.shelf-list.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.shelf-list.big a { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; border-radius: 26px; align-content: start; }
.shelf-paper img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: right 30%; }
.shelf-paper img[src*='gift-'] { object-position: center; }
.shelf-list.big .shelf-words { padding: 18px 22px 22px; }

/* ---------- Arrivals: each block rises once as it comes into view ---------- */
.js :is(.art-body > *, .shelf-list > li, .steps > li, .cmp tbody tr, .pg-obj, .pg-hero-art, .qs details, .art-side) { opacity: 0; transform: translateY(22px); }
.js :is(.art-body > *, .shelf-list > li, .steps > li, .cmp tbody tr, .pg-obj, .pg-hero-art, .qs details, .art-side).in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--out); }
.js :is(.shelf-list > li, .steps > li, .qs details, .cmp tbody tr):nth-child(2).in { transition-delay: 70ms; }
.js :is(.shelf-list > li, .steps > li, .qs details, .cmp tbody tr):nth-child(3).in { transition-delay: 140ms; }
.js :is(.shelf-list > li, .steps > li, .qs details, .cmp tbody tr):nth-child(4).in { transition-delay: 210ms; }
.js .pg-hero-art.in { transition-delay: 160ms; }

/* The close is home's invite, without the name field. */
.pg-ask { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(40px, 4vw, 64px); }
.pg-ask .ask-words > p { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .js :is(.art-body > *, .shelf-list > li, .steps > li, .cmp tbody tr, .pg-obj, .pg-hero-art, .qs details, .art-side) { transform: none; transition: opacity 300ms ease; }
}

/* A figure inside an article. */
.art-body > .art-fig { max-width: 680px; margin-top: 28px; }
.art-fig .mini { margin-top: 0; }
.art-fig figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* A comparison's two picks, side by side on cards. */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: calc(var(--max) + 2 * var(--g)); margin: 0 auto; padding: clamp(40px, 4.6vw, 72px) var(--g) 0; }
.pick { padding: clamp(22px, 2.4vw, 34px); border-radius: 26px; background: var(--card); }
.pick h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; }
.pick ul { display: grid; gap: 12px; margin-top: 18px; font-size: 18px; line-height: 1.5; }
.pick li { position: relative; padding-left: 24px; }
.pick li::before { content: ''; position: absolute; left: 2px; top: 0.75em; width: 11px; height: 2px; border-radius: 1px; background: var(--red); }
.picks + .art { padding-top: clamp(24px, 3vw, 44px); }
.js .pick { opacity: 0; transform: translateY(22px); }
.js .pick.in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--out); }
.js .pick.ours.in { transition-delay: 90ms; }

/* An index page's head, with its object beside the words. */
.pg-head.with-art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 104px); align-items: center; padding-bottom: clamp(24px, 3vw, 40px); }
.pg-head-art { justify-self: center; width: min(100%, 340px); }

@media (max-width: 900px) {
  .picks, .pg-head.with-art { grid-template-columns: 1fr; }
  .pg-head-art { width: min(100%, 280px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .pick, .js .pick.in { transform: none; transition: opacity 300ms ease; }
}

/* ---------- Support, terms and privacy: the guides' column, drawn by the worker in the site's frame ---------- */
.doc-body h2 { margin-top: clamp(40px, 4vw, 56px); font-size: clamp(27px, 2.4vw, 34px); scroll-margin-top: 28px; }
/* The floating header comes over the page's top when you scroll up, so what's pinned there steps down under it. */
@media (min-width: 901px) {
  .doc-body h2 { scroll-margin-top: 96px; }
  .art-side:not(.still) { transition: transform 420ms var(--out); }
  body.bar .art-side:not(.still) { transform: translateY(var(--bar-h, 64px)); }
}
.doc-body > p, .doc-body > ul { font-size: 17.5px; line-height: 1.62; }
.doc-body > p.pg-dek { font-size: clamp(20px, 1.5vw, 23px); line-height: 1.45; }
.doc-body > ul { gap: 14px; }
.doc-toc { align-self: start; justify-self: end; width: min(100%, 300px); padding-top: 10px; }
.toc-h { font: 400 24px/1.1 var(--serif); }
.doc-toc ol { position: relative; display: grid; gap: 0; margin-top: 16px; font-size: 15px; counter-reset: toc; box-shadow: inset 1px 0 rgba(29, 24, 19, 0.12); } /* taste-skill-ignore: the contents' spine */
.doc-toc li { counter-increment: toc; }
.doc-toc a { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 7px 0 7px 18px; color: var(--ink-2); text-decoration: none; transition: color 200ms ease; }
.doc-toc a::before { content: counter(toc); font: italic 400 17px/1.2 var(--serif); color: var(--red); }
.doc-toc a::after { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 1px; background: var(--red); transform: scaleY(0); transition: transform 320ms var(--out); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current] { color: var(--ink); font-weight: 500; }
.doc-toc a[aria-current]::after { transform: none; }
.doc-faq dt { margin-top: 26px; text-wrap: balance; font: 400 clamp(22px, 1.8vw, 26px)/1.2 var(--serif); }
.doc-faq dt:first-child { margin-top: 18px; }
.doc-faq dd { margin: 8px 0 0; max-width: 62ch; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.doc-faq a { text-decoration-color: rgba(193, 18, 31, 0.5); text-underline-offset: 3px; }
.write { align-self: start; width: min(100%, 470px); padding: clamp(24px, 2.6vw, 36px); border-radius: 26px; background: var(--card); }
.write h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; scroll-margin-top: 28px; }
.form { display: grid; gap: 16px; margin-top: 22px; }
.form label { display: grid; gap: 7px; }
.form label span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(29, 24, 19, 0.16); border-radius: 14px; background: #fff; color: var(--ink); font: 17px/1.4 var(--sans); resize: vertical; transition: border-color 200ms ease, box-shadow 200ms ease; } /* taste-skill-ignore: a field's own edge */
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.16); } /* taste-skill-ignore: a focused field's ring */
.form .btn { justify-self: start; margin-top: 4px; border: 0; cursor: pointer; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: the honeypot, kept off screen */
.problem { color: var(--red); font-weight: 600; }
.sent { margin-top: 18px; font: italic 400 26px/1.3 var(--serif); }
@media (max-width: 900px) {
  .doc-toc { display: none; }
  .write { justify-self: stretch; width: auto; }
}
