/* Search pages on the brand kit (skills/marketing-html/kit/neptunian.css). A quiet page around real captures: every
   picture of the app is a recording, so this file holds no chat styles, by rule. site.css stays as it was for the parked
   pages. Wide screens set the words in one column and the app in a rail beside it; below 1100px the takes join the column. */
:root {
  --measure: 640px;
  --rail: 340px;
  --gutter: 72px;
  --wrap: calc(var(--measure) + var(--gutter) + var(--rail));
}

body { color: var(--np-ink); font: 400 18px/1.62 var(--np-type); letter-spacing: -0.006em; -webkit-text-size-adjust: 100%; }
a { color: var(--np-ink); text-decoration-color: color-mix(in srgb, var(--np-accent) 70%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--np-accent); }
img { max-width: 100%; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; box-sizing: content-box; }
.top .mark { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.top .mark img { width: 22px; height: 22px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--np-ink-soft); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--np-ink); }

main { max-width: var(--wrap); margin: 0 auto; padding: 8px 24px 72px; box-sizing: content-box; }
main.index { max-width: var(--measure); }

/* The lead: the answer first, the app beside it, all on the first screen of a laptop. */
.lead { display: grid; grid-template-columns: minmax(0, 1fr); }
.crumbs { margin: 14px 0 18px; font-size: 14px; color: var(--np-ink-quiet); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--np-ink); }
h1 { margin: 0 0 22px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 500; line-height: 1.03; letter-spacing: -0.045em; text-wrap: balance; }
.answer { margin: 0 0 18px; font-size: clamp(20px, 2.1vw, 23px); line-height: 1.42; letter-spacing: -0.016em; color: var(--np-ink); text-wrap: pretty; }
.answer strong { font-weight: 600; }
.meta { margin: 0 0 20px; font-size: 14px; color: var(--np-ink-quiet); }
.byline { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-block: 1px solid var(--np-line); font-size: 15px; line-height: 1.4; color: var(--np-ink-soft); text-decoration: none; }
.byline .faces { display: flex; flex: none; }
.byline .faces img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--np-ground); object-fit: cover; display: block; }
.byline .faces img + img { margin-left: -10px; }
.byline strong { color: var(--np-ink); font-weight: 500; }
.byline em { font-style: normal; color: var(--np-accent); white-space: nowrap; }

/* The article. */
.prose { max-width: var(--measure); display: flow-root; }
.prose p, .prose li { color: var(--np-ink-soft); }
.prose strong { color: var(--np-ink); font-weight: 600; }
.prose h2 { margin: 56px 0 14px; font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; color: var(--np-ink); text-wrap: balance; }
.prose h3 { margin: 30px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--np-ink); }
.prose > :first-child { margin-top: 44px; }
.prose ul { margin: 16px 0; padding: 0; list-style: none; }
.prose ul > li { position: relative; margin: 0 0 12px; padding-left: 20px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 9px; height: 1px; background: var(--np-accent); }
.prose ol { margin: 16px 0; padding: 0; list-style: none; counter-reset: step; }
.prose ol > li { position: relative; margin: 0 0 16px; padding-left: 34px; counter-increment: step; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; font-size: 18px; font-weight: 500; color: var(--np-accent); }
.note { font-size: 15px; color: var(--np-ink-quiet); }
.cite { white-space: nowrap; font-size: 0.78em; color: var(--np-ink-quiet); text-decoration: none; vertical-align: 0.12em; }
.cite:hover { color: var(--np-accent); }
code { font-size: 0.92em; color: var(--np-ink); }

/* A line pulled out of a section: words only, no box. */
.pull { margin: 26px 0; font-family: var(--np-inner); font-style: italic; font-size: 25px; line-height: 1.3; color: var(--np-accent); text-wrap: pretty; }

.copy { margin: 18px 0; border-top: 1px solid var(--np-line); }
.copy > div { padding: 14px 0; border-bottom: 1px solid var(--np-line); }
.copy b { display: block; margin-bottom: 2px; font-weight: 500; color: var(--np-ink); }
.copy span { color: var(--np-ink-soft); }

.tablewrap { overflow-x: auto; }
table { width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 16px; }
th, td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--np-line); }
th { font-weight: 500; font-size: 14px; color: var(--np-ink-quiet); }
td { color: var(--np-ink-soft); }
td:first-child { color: var(--np-ink); font-weight: 500; }
pre { margin: 18px 0; padding: 16px 0; border-block: 1px solid var(--np-line); white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.55 ui-monospace, Consolas, monospace; color: var(--np-ink); }

/* A real take. The rail on wide screens; in the column below that. */
.shot { margin: 30px 0; }
.take { position: relative; overflow: hidden; border-radius: 14px; background: #000; aspect-ratio: 780 / 1386; }
.take img, .take video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.take video { opacity: 0; transition: opacity 0.4s ease; }
.take video.on { opacity: 1; }
.shot figcaption { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--np-ink-soft); }
.shot details { margin-top: 6px; font-size: 14px; color: var(--np-ink-quiet); }
.shot summary { cursor: pointer; width: fit-content; }
.shot summary:hover { color: var(--np-ink); }
.said { margin: 10px 0 0; }
.said dt { margin-top: 8px; color: var(--np-ink-quiet); font-size: 13px; }
.said dd { margin: 0; color: var(--np-ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.said-inner { margin: 10px 0 0; font-family: var(--np-inner); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--np-accent); }

/* Several takes at once: side by side, and a swipe on a phone. */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots .shot { float: none; width: auto; margin: 0; }

/* Neptunian inside the article: a ruled line, never a card. */
.house { display: block; clear: none; margin: 40px 0; padding: 20px 0; border-block: 1px solid var(--np-line); text-decoration: none; }
.house .h { display: block; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; color: var(--np-ink); }
.house .t { display: block; margin: 6px 0 8px; font-size: 16px; line-height: 1.45; color: var(--np-ink-soft); }
.house .b { font-size: 15px; color: var(--np-accent); }

/* The end of the page. */
.end { clear: both; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; margin: 72px 0 0; padding: 40px 0; border-top: 1px solid var(--np-line); }
.end h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.end p { margin: 0 0 16px; color: var(--np-ink-soft); }
.end ul { margin: 0 0 22px; padding: 0; list-style: none; }
.end li { position: relative; margin: 0 0 8px; padding-left: 20px; color: var(--np-ink-soft); }
.end li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 9px; height: 1px; background: var(--np-accent); }
.go { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--np-ink); color: var(--np-ground); font-size: 17px; font-weight: 500; letter-spacing: -0.015em; text-decoration: none; }
.go:hover { background: var(--np-accent); }
.go:focus-visible, .byline:focus-visible, .house:focus-visible { outline: 2px solid var(--np-accent); outline-offset: 3px; }
.end .fine { margin: 12px 0 0; font-size: 14px; color: var(--np-ink-quiet); }
.end-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.end-figures img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; border-radius: 12px; background: #000; }

.related { margin: 48px 0 0; max-width: var(--measure); }
.related h2, .sources h2 { margin: 0 0 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.related ul { margin: 0; padding: 0; list-style: none; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--np-line); color: var(--np-ink-soft); }
.related .note { display: block; }
.sources { margin: 44px 0 0; max-width: var(--measure); font-size: 15px; line-height: 1.5; color: var(--np-ink-quiet); }
.sources p { margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 6px; scroll-margin-top: 16px; }
.sources a { color: var(--np-ink-soft); }

footer { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: var(--wrap); margin: 0 auto; padding: 26px 24px 40px; box-sizing: content-box; border-top: 1px solid var(--np-line); font-size: 14px; color: var(--np-ink-quiet); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--np-ink); }

/* The dry-texting tool. */
.tool { margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--np-line); }
.tool h2 { margin-top: 0; }
.tool fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.tool legend { margin-bottom: 10px; padding: 0; font-weight: 500; color: var(--np-ink); }
.tool fieldset label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 8px 8px 0; padding: 0 16px; border: 1px solid var(--np-line); border-radius: 999px; font-size: 15px; color: var(--np-ink-soft); cursor: pointer; }
.tool fieldset label:has(input:checked) { background: var(--np-ink); border-color: var(--np-ink); color: var(--np-ground); }
.tool input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool fieldset label:has(input:focus-visible) { outline: 2px solid var(--np-accent); outline-offset: 2px; }
.tool button, .tool label.file { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 500 15px/1 var(--np-type); letter-spacing: -0.01em; cursor: pointer; }
.tool button { border: 1px solid var(--np-line); background: var(--np-glass); color: var(--np-ink); }
.tool button:hover { background: var(--np-glass-hover); }
.tool label.file { background: var(--np-ink); color: var(--np-ground); }
.tool input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tool .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool .or { font-size: 15px; color: var(--np-ink-quiet); }
.tool textarea { width: 100%; min-height: 128px; margin: 14px 0 10px; padding: 12px 14px; border: 1px solid var(--np-line); border-radius: 12px; background: transparent; color: var(--np-ink); font: 14px/1.45 ui-monospace, Consolas, monospace; resize: vertical; box-sizing: border-box; }
#wc-quiz-out, #wc-out { margin: 18px 0 0; padding: 18px 0 2px; border-top: 1px solid var(--np-accent); }
#wc-quiz-out .verdict, #wc-out .verdict { margin: 0 0 6px; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; color: var(--np-ink); }

@media (min-width: 1100px) {
  .lead { grid-template-columns: minmax(0, var(--measure)) var(--rail); column-gap: var(--gutter); }
  .lead > * { grid-column: 1; }
  /* The take is taller than the words beside it, so it runs on past the lead. The article starts under the words, and
     the float in .prose::before keeps the rail clear until the take has ended. */
  .lead > .shot.hero { grid-column: 2; grid-row: 1 / span 6; margin: 14px 0 -240px; }
  .prose::before { content: ""; float: right; width: 1px; height: 240px; margin-right: calc(-1 * (var(--rail) + var(--gutter))); }
  .prose .shot:not(.shots .shot) { float: right; clear: right; width: var(--rail); margin: 8px calc(-1 * (var(--rail) + var(--gutter))) 28px 0; }
  /* A take belongs to its section: the next heading starts below it, and a row of takes never sits beside one. The first
     heading is left alone, so the space the hero runs into stays where it is. */
  .prose h2 ~ h2, .prose .shots { clear: right; }
  .prose .shots:not(.two) { clear: both; position: relative; width: var(--wrap); max-width: none; }
  .end { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: var(--gutter); }
}

/* Without the rail, the words keep their measure and a take stays the size of a phone. On a help-first page the steps
   come first: the take sits after the lead, showing its messages. */
@media (max-width: 1099px) {
  .lead { max-width: var(--measure); }
  .shot { max-width: 400px; }
  .shots .shot { max-width: none; }
  .lead > .shot.hero.compact { order: 9; margin-bottom: 0; }
  .shot.hero.compact .take { aspect-ratio: 4 / 5; }
  .shot.hero.compact .take img { object-position: 50% 100%; }
}

@media (max-width: 700px) {
  .top nav a:not(:last-child), .top nav.all { display: none; }
  .shots { display: flex; gap: 12px; margin-inline: -24px; padding: 0 24px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shots .shot { flex: 0 0 82%; scroll-snap-align: center; }
  .shots::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .top, main, footer { padding-inline: 16px; }
  .shots { margin-inline: -16px; padding-inline: 16px; }
  .byline { align-items: flex-start; }
  .pull { font-size: 22px; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; box-sizing: border-box; }
  table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--np-line); }
  table.stack td { padding: 3px 0; border: 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--np-ink-quiet); }
}

@media (prefers-reduced-motion: reduce) {
  .take video { display: none; }
}
