/* The public pages beside the home page (site/pages/): guides, the examples page, race pages. Loaded after style.css,
   whose desk, players, prices, ticks, steps and teal end band these pages reuse. */

/* ---------- Header: the brand goes home, three links, the button ---------- */
.bar-nav { display: flex; gap: 28px; margin: 0 30px 0 auto; font-weight: 700; font-size: 16px; }
.bar-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.bar-nav a:hover, .bar-nav a[aria-current] { border-bottom-color: var(--marker); }
@media (max-width: 700px) {
  .bar-inner.has-nav { height: auto; flex-wrap: wrap; padding-top: 10px; }
  .bar-nav { order: 3; width: 100%; margin: 8px 0 0; padding: 5px 0 3px; justify-content: center; gap: 26px; border-top: 1px solid var(--line); font-size: 15px; }
}

/* ---------- The top of a page: where you are, the headline, a standfirst ---------- */
.page-head { padding-top: 40px; }
.crumb { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: inherit; }
.crumb span::before { content: "›"; margin: 0 8px; color: #b5a688; }
.page-head h1 { font-size: clamp(31px, 4.4vw, 50px); max-width: 18em; text-wrap: balance; }
.page-head .lede { margin: 18px 0 0; max-width: 36em; }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); }
.fict { display: inline-block; padding: 1px 9px; border: 1.5px dashed #b5a688; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Guide: the article beside a rail that stays in view ---------- */
.guide-cols {
  display: grid; grid-template-columns: minmax(0, 700px) 300px; grid-template-areas: "answer rail" "prose rail";
  gap: 40px 72px; justify-content: space-between; align-items: start; margin-top: 44px;
}
.answer { grid-area: answer; position: relative; padding: 30px 28px 24px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 0 #0000000d, 0 14px 30px -18px #3b2c1480; font-size: 19px; }
.answer-tag { position: absolute; left: 22px; top: -15px; padding: 3px 14px 2px; background: var(--sticky); font-family: var(--hand); font-size: 20px; line-height: 1.2; transform: rotate(-2deg); box-shadow: 0 6px 10px -8px #3b2c1480; }
.answer > * + * { margin-top: 14px; }
.answer .prices { max-width: none; margin-top: 18px; }
.answer .prices-note { margin: 10px 0 0; }
.prose { grid-area: prose; }
.rail { grid-area: rail; position: sticky; top: 92px; display: grid; gap: 26px; }
.toc-title { font-family: var(--hand); font-size: 21px; color: #8a5a22; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15.5px; line-height: 1.3; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 700; border-left-color: var(--marker); }
.rail-order { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.rail-from { color: var(--muted); font-size: 15.5px; }
.rail-from b { color: var(--ink); font-size: 26px; letter-spacing: -.01em; }
.rail-order .sum-ticks { margin: 10px 0 18px; }
.rail-order .btn { display: block; text-align: center; font-size: 17px; padding: 14px 16px; }
@media (max-width: 1000px) {
  .guide-cols { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .rail { display: contents; }
  .answer { order: 1; } .toc { order: 2; } .prose { order: 3; } .rail-order { order: 4; }
  .toc { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .toc ol { border: 0; columns: 2; column-gap: 28px; }
  .toc a { padding-left: 0; border: 0; break-inside: avoid; }
  .rail-order { max-width: 420px; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } .answer { padding: 28px 18px 20px; font-size: 18px; } .rail-order { max-width: none; } }

/* ---------- The article's text and its blocks ---------- */
.prose { font-size: 18.5px; line-height: 1.65; color: #332f29; }
.prose > * + * { margin-top: 1.1em; }
.prose > h2 { font-size: clamp(25px, 3vw, 31px); margin-top: 2.1em; color: var(--ink); scroll-margin-top: 92px; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.7em; color: var(--ink); }
.prose > h2 + *, .prose > h3 + * { margin-top: .7em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose > figure, .prose > .tbl-wrap, .prose > .cta-strip, .prose > .note, .prose > .made-row { margin-top: 1.7em; margin-bottom: 1.7em; }
/* a buying fact worth finding again: highlighter over the words */
mark { padding: 0 .16em; border-radius: 3px; background: linear-gradient(transparent 10%, #f7da63d9 10%, #f7da63d9 90%, transparent 90%); color: inherit; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* a table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.4; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tbl thead th { border-top: 0; background: var(--card); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tbl tbody th { font-weight: 800; white-space: nowrap; }
.tbl .hl { background: #eaf2ef; }
.tbl thead .hl { color: var(--teal); }

/* a script: its length on a sticky dot; per line the time, the words, and what is on screen in handwriting */
.script { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 14px 30px -22px #3b2c1480; }
.script-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); line-height: 1.3; }
.script-len { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sticky); font-family: var(--hand); font-size: 21px; transform: rotate(-6deg); box-shadow: 0 6px 12px -8px #3b2c1480; }
.script-head b { display: block; font-size: 19px; color: var(--ink); }
.script-head small { color: var(--muted); font-size: 14.5px; }
.script-rows { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 36%); }
.script-rows > * { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
.script-th { padding-top: 7px !important; padding-bottom: 7px !important; background: var(--card); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.script time { font-size: 14px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 15px; white-space: nowrap; }
.script .say { font-size: 17.5px; line-height: 1.5; }
.script p.see { background: #fbf6ea; border-left: 1px solid var(--line); font-family: var(--hand); font-size: 18px; line-height: 1.2; color: #8a5a22; }
.script-foot { margin: 0; padding: 10px 18px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .script-rows { grid-template-columns: 62px minmax(0, 1fr); }
  .script-rows > * { padding: 10px 12px; }
  .script-th.see { display: none; }
  .script p.see { grid-column: 2; border: 0; padding-top: 0; background: none; }
  .script p.see::before { content: "on screen: "; font-family: var(--body); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}

/* a sticky note in the text */
.note { max-width: 30em; padding: 16px 20px 18px; background: var(--sticky); transform: rotate(-.7deg); box-shadow: 0 10px 16px -12px #3b2c1480; font-size: 17px; line-height: 1.5; color: var(--ink); }
.note b:first-child { display: block; font-family: var(--hand); font-size: 23px; font-weight: 400; line-height: 1.2; }

/* numbered steps */
.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 20px; }
.steps li { position: relative; counter-increment: st; padding-left: 56px; margin: 0; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sticky); font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--ink); }
.steps b { display: block; font-size: 19px; color: var(--ink); }

/* a sample ad in the text */
.embed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 22px; border-radius: 18px; background: var(--desk); }
.embed.tall { grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: center; }
.embed .stage, .embed .stage.tall { width: 100%; min-width: 0; margin: 0; }
.embed .play { width: 56px; height: 56px; }
.embed .play::after { left: 23px; top: 17px; border-width: 11px 0 11px 18px; }
.embed figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 16.5px; line-height: 1.45; }
.embed figcaption b { font-size: 21px; margin-top: 8px; color: var(--ink); }
.embed figcaption small { color: var(--muted); font-size: 14.5px; }
.embed figcaption a { font-weight: 800; margin-top: 8px; }
@media (max-width: 560px) { .embed.tall { grid-template-columns: 1fr; } .embed.tall .stage { width: min(100%, 220px); margin: 0 auto; } .embed { padding: 18px 16px; } }

/* the sample order inside an article: narrower than on the home page */
.prose > .made-row { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 190px); gap: 10px 14px; padding: 26px 20px 18px; border-radius: 18px; background: var(--desk); }
.prose .made-row .stage.tall { width: 100%; min-width: 0; margin: 0; }
.prose .made-row .sample-tag { font-size: 20px; }
@media (max-width: 860px) { .prose > .made-row { grid-template-columns: minmax(0, 1fr); } }

/* the order button in the text */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 26px; border-radius: 18px; background: var(--teal); color: #fff; }
.cta-strip p { flex: 1 1 16em; line-height: 1.35; }
.cta-strip b { display: block; font-size: 21px; }
.cta-strip span { color: #d9e7e3; font-size: 16px; }

/* ---------- Privacy and terms: one column of text ---------- */
.legal .prose { max-width: 700px; margin-top: 40px; }

/* ---------- Cards to other pages ---------- */
.related { padding-top: 88px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-link { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 20px; border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 #0000000d, 0 14px 30px -18px #3b2c1480; transition: transform .12s ease; }
.card-link:hover { transform: translateY(-3px) rotate(-.4deg); }
.card-link small { font-family: var(--hand); font-size: 19px; color: #8a5a22; }
.card-link b { font-size: 19.5px; line-height: 1.25; text-wrap: balance; }
.card-link span { margin-top: auto; padding-top: 12px; color: var(--teal); font-weight: 800; font-size: 15.5px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- The footer's list of pages, under the last button ---------- */
.foot-links { text-align: left; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 28px 72px; margin-top: 44px; padding-top: 34px; border-top: 1px solid #ffffff2e; }
.foot-links b { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a9cbc5; }
.foot-links a { display: block; padding: 3px 0; color: #fff; text-decoration: none; font-size: 15.5px; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-links { grid-template-columns: 1fr; justify-content: stretch; } }

/* ---------- Examples: one row per ad, the player on alternating sides ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.jump a:hover { border-color: var(--teal); }
.jump img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.jump small { color: var(--muted); font-weight: 400; }
.case { --pw: 300px; display: grid; grid-template-columns: minmax(0, var(--pw)) minmax(0, 1fr); gap: 32px 72px; align-items: center; padding-top: 96px; scroll-margin-top: 0; }
.case.wide { --pw: 580px; gap: 32px 56px; }
.case.flip { grid-template-columns: minmax(0, 1fr) minmax(0, var(--pw)); }
.case.flip .case-play { order: 2; }
.case .stage, .case .stage.tall { width: 100%; min-width: 0; margin: 0; }
.case-kicker { font-family: var(--hand); font-size: 22px; line-height: 1.2; color: #8a5a22; }
.case h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 4px 0 10px; text-wrap: balance; }
.case-lede { margin-top: 12px; color: #3b3630; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 20px 0 0; padding: 14px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.sent { margin-top: 20px; }
.sent-title { font-family: var(--hand); font-size: 20px; color: #8a5a22; }
.sent-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.sent-print, .sent-clip { flex: none; margin: 0; width: 82px; padding: 4px 4px 12px; background: #fff; box-shadow: 0 8px 16px -10px #3b2c1488, 0 1px 2px #0002; }
.sent-print:nth-child(odd) { transform: rotate(-3deg); } .sent-print:nth-child(even) { transform: rotate(2.5deg); }
.sent-print img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; }
.sent-clip { position: relative; width: 52px; padding: 0; border: 3px solid #1d1c1a; border-radius: 10px; overflow: hidden; transform: rotate(4deg); }
.sent-clip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.sent-clip .play-mini { width: 22px; height: 22px; top: 50%; } .sent-clip .play-mini::after { left: 8px; top: 6px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.sent-note { flex: none; width: 104px; padding: 8px 8px 10px; background: var(--sticky); font-family: var(--hand); font-size: 15px; line-height: 1.1; transform: rotate(3deg); box-shadow: 0 8px 14px -10px #3b2c1480; }
.sent-note span { display: block; }
.transcript { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.transcript summary { padding: 12px 16px; font-weight: 800; cursor: pointer; }
.transcript summary::marker { color: var(--marker); }
.transcript > div { padding: 2px 16px 14px; display: grid; gap: 8px; font-size: 16.5px; color: #3b3630; }
.case .cta-row { margin-top: 24px; }
@media (max-width: 860px) {
  .case, .case.wide, .case.flip { grid-template-columns: minmax(0, 1fr); padding-top: 68px; }
  .case.flip .case-play { order: 0; }
  .case:not(.wide) .case-play { width: min(100%, 280px); justify-self: center; }
}
@media (max-width: 560px) { .sent-row { gap: 9px; } .sent-print { width: 62px; } .sent-clip { width: 42px; } .sent-note { width: 88px; font-size: 13.5px; } }

/* what to send, on the desk */
.send { background: var(--desk); margin-top: 96px; }
.send-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px 64px; align-items: center; }
.send h2 { margin-bottom: 12px; }
@media (max-width: 860px) { .send-row { grid-template-columns: 1fr; } .send { margin-top: 68px; } }

/* the styles: three phones in a row, each named */
.styles > h2 { margin-bottom: 10px; }
.styles .sub { color: var(--muted); max-width: 36em; }
.styles-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.styles-row figure { margin: 0; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; align-items: center; }
.styles-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 5px solid #1d1c1a; border-radius: 18px; box-shadow: 0 18px 34px -16px #3b2c14aa; }
.styles-row figure:nth-child(odd) img { transform: rotate(-3deg); } .styles-row figure:nth-child(even) img { transform: rotate(3deg); }
.styles-row b { display: block; font-family: var(--hand); font-weight: 400; font-size: 26px; line-height: 1.1; }
.styles-row span { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (max-width: 960px) { .styles-row { grid-template-columns: 1fr; gap: 26px; max-width: 460px; } }

/* ---------- Race pages ---------- */
.svc-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 300px); }
.svc-hero .kicker { margin-bottom: 10px; color: #8a5a22; }
.svc-hero h1 { font-size: clamp(34px, 5vw, 58px); text-wrap: balance; }
.svc-sample { text-align: center; }
.svc-sample .stage, .svc-sample .stage.tall { width: 100%; min-width: 0; margin: 0; }
.svc-sample .sample-tag { margin-bottom: 4px; }
@media (max-width: 860px) { .svc-hero { grid-template-columns: 1fr; } .svc-sample { width: min(100%, 280px); justify-self: center; } }

/* two kinds of video, each with the notes it would be made from */
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 24px; }
.idea { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 22px; align-items: center; padding: 30px 26px 28px 30px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 0 #0000000d, 0 14px 30px -18px #3b2c1480; }
.idea .idea-n { font-family: var(--hand); font-size: 20px; color: #8a5a22; }
.idea h2 { font-size: clamp(23px, 2.5vw, 28px); margin: 2px 0 10px; text-wrap: balance; }
.idea p { color: #3b3630; font-size: 17px; }
.idea-len { margin-top: 14px; } .idea-len .tag { margin: 0; }
.idea .idea-notes { padding: 10px 10px 14px; background: var(--sticky); font-family: var(--hand); font-size: 16.5px; line-height: 1.1; color: var(--ink); transform: rotate(3deg); box-shadow: 0 10px 16px -10px #3b2c1480; }
.idea:nth-child(even) .idea-notes { transform: rotate(-2.5deg); background: var(--sticky-2); }
.idea-notes span { display: block; } .idea-notes span + span { margin-top: 5px; }
@media (max-width: 960px) { .ideas { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .idea { grid-template-columns: 1fr; padding: 24px 20px; } .idea .idea-notes { width: 150px; justify-self: end; } }

/* what you can send: a camera roll */
.use { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px 64px; align-items: center; }
.use h2 { margin-bottom: 12px; }
.roll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; width: min(100%, 400px); justify-self: center; }
.roll figure { margin: 0; }
.roll img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 12px; box-shadow: 0 10px 20px -14px #3b2c1488; }
.roll figcaption { margin-top: 5px; font-family: var(--hand); font-size: 17px; line-height: 1.1; text-align: center; color: #8a5a22; }
@media (max-width: 860px) { .use { grid-template-columns: 1fr; } }

.made-fict { text-align: center; margin-top: 22px; }
.service-page .made h2 { margin-bottom: 14px; }
.made-lede { max-width: 40em; margin: 0 auto 40px; text-align: center; color: #3b3630; }
.made-script { max-width: 760px; margin: 0 auto; }
.svc-hero.wide { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 48px; }
@media (max-width: 860px) { .svc-hero.wide { grid-template-columns: 1fr; } .svc-hero.wide .svc-sample { width: 100%; } }
.service-page .made, .service-page .how { margin-top: 80px; }
