/* Plum Pages: guides in the website's own design (Paper "Landing · chosen" p-11-0 and the interview run
   sheet p-14-0; G1 on p-17-0). Dark all the way down, like getplumjobs.com. Article first: the question,
   the answer, then calm prose sections (house rules: supabase/functions/_shared/pages/WRITING.md).
   Phone first: 16px gutters; text column 680px, centred. One mascot Plum per page, in the sunrise head. */
:root {
  --ground: #17181A; --surface: #232427; --surface-2: #2B2C30; --ink: #F2F3F4;
  --body: rgba(242, 243, 244, .80); --muted: rgba(242, 243, 244, .58); --faint: rgba(242, 243, 244, .42);
  --line: rgba(242, 243, 244, .10); --line-soft: rgba(242, 243, 244, .06);
  --pink: #C98FBA; --plum: #883776; --btn: #90417F; --wash: rgba(136, 55, 118, .20); --wash-line: rgba(201, 143, 186, .32);
  --ref: #FBE38E; --urgent: #FF8F8F; --open: #66C39F; --warn: #E8C98A;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/28px Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: anywhere; }
a { color: inherit; }
.pg { max-width: 680px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 28px; }
.pg > *, .card > *, .group > * { min-width: 0; } /* scrollers (chips) must not widen the page */
strong { font-weight: 650; color: var(--ink); }
mark.hl { background: none; color: var(--pink); }
.eyebrow { color: var(--pink); font: 500 11px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Top bar: the website's (logo mark + wordmark, Guides, Get Plum). The mark is the logo, not the mascot. */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar .word { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; font-size: 18px; line-height: 22px; text-decoration: none; }
.topbar .word svg { width: 26px; height: 26px; display: block; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: rgba(242, 243, 244, .72); font-weight: 500; font-size: 14px; line-height: 20px; text-decoration: none; }
.topbar nav a.get { background: #F2F3F4; color: #17181A; font-weight: 600; border-radius: 8px; padding: 8px 14px; }

/* Draft banner */
.draft { background: var(--ref); color: #17181A; font-weight: 600; font-size: 13px; line-height: 18px; border-radius: 10px; padding: 8px 12px; }

/* Sunrise head: eyebrow, the question as a big title, then the answer card with Plum rising behind it. */
.sun { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.sun-text { display: flex; flex-direction: column; gap: 12px; }
.sun-eyebrow { color: var(--pink); font: 500 11px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sun h1 { margin: 0; color: var(--ink); font-weight: 800; font-size: 34px; line-height: 38px; letter-spacing: -.035em; text-wrap: balance; }
.sun h1 mark.hl { color: var(--pink); }
.sun-facts { color: var(--muted); font-size: 14px; line-height: 20px; }
.sun-rise { position: relative; display: flex; flex-direction: column; padding-top: 72px; }
.sun-plum { position: absolute; right: 20px; top: -15px; width: 116px; height: 116px; }
.sun-plum svg { display: block; width: 100%; height: 100%; }
.bar { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.bar .eyebrow { color: var(--pink); }
.bar-text { color: var(--ink); font-weight: 500; font-size: 18px; line-height: 27px; }

/* Buttons: the website's (#90417F, radius 10). */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 10px;
  background: var(--btn); color: #fff; font-weight: 600; font-size: 16px; line-height: 20px; text-decoration: none; }
.btn.dark, .btn.light { background: var(--btn); color: #fff; }
.link { color: var(--pink); font-weight: 600; font-size: 15px; line-height: 20px; text-decoration: none; }

/* Sections: open article text, no box. */
.sec { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.sec > h2 { margin: 0; color: var(--ink); font-weight: 750; font-size: 24px; line-height: 30px; letter-spacing: -.02em; text-wrap: balance; }
.prose p { margin: 0; color: var(--body); font-size: 17px; line-height: 28px; }
.prose p + p { margin-top: 14px; }

/* Card: a raised surface for things that are objects (a job, a STARR answer, a checklist, the FAQ). */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.card :is(h1,h2) { margin: 0; color: var(--ink); font-weight: 750; font-size: 22px; line-height: 28px; letter-spacing: -.02em; }
.num { display: none; }

/* Steps: a numbered list, like the run sheet. */
.steps { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.steps li { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.steps li:first-child { border-top: 0; }
.steps b { flex: 0 0 20px; color: var(--faint); font-weight: 500; font-size: 14px; line-height: 22px; }
.steps span { color: var(--ink); font-weight: 500; font-size: 16px; line-height: 22px; }

/* Callout: a quiet rule, not a box. */
.callout { border-left: 3px solid var(--pink); padding: 2px 0 2px 16px; display: flex; flex-direction: column; gap: 4px; }
.callout .t { color: var(--pink); font: 500 11px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.callout p { margin: 0; color: var(--ink); font-size: 16px; line-height: 25px; }
.callout.warning { border-left-color: var(--warn); } .callout.warning .t { color: var(--warn); }

/* CTA: the one ask, at the end. */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.cta :is(h2,h3) { margin: 0; color: var(--ink); font-weight: 800; font-size: 24px; line-height: 29px; letter-spacing: -.03em; }
.cta p { margin: 0; color: var(--body); font-size: 16px; line-height: 25px; }
.cta .btn { width: 100%; height: 52px; font-size: 17px; }

/* Job anchor */
.anchor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state { color: var(--open); font: 500 12px/16px var(--mono); }
.state.closed { color: var(--muted); }
.anchor :is(h2,h3) { margin: 0; color: var(--ink); font-weight: 750; letter-spacing: -.02em; font-size: 20px; line-height: 26px; }
.sec .anchor { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.anchor .meta { color: var(--muted); font-size: 14px; line-height: 20px; margin: 0; }
.facts { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.facts div { display: flex; gap: 12px; }
.facts dt { flex: 0 0 64px; color: var(--faint); font: 500 11px/20px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 20px; }
.facts dd.pay { font-weight: 600; } .facts dd.urgent { color: var(--urgent); font-weight: 600; }
.ref { display: inline-block; background: var(--ref); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 13px; line-height: 18px; color: #17181A; }
.tests { background: var(--wash); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tests > b { color: var(--pink); font-weight: 600; font-size: 13px; line-height: 16px; }
.tests div { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 14px; line-height: 18px; }
.tag { flex: 0 0 88px; color: var(--pink); font: 500 10px/12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.actions { display: flex; align-items: center; gap: 18px; }

/* Job list: the website's quiet list (title, org line, mono closing date on the right). */
.list-head { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.list-head .eyebrow { color: var(--pink); }
.list-head :is(h1,h2,h3) { margin: 0; color: var(--ink); font-weight: 800; font-size: 30px; line-height: 34px; letter-spacing: -.04em; }
.list-head :is(h1,h2,h3) mark.hl { color: var(--ink); }
.list-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--ink); font-weight: 500; font-size: 14px; line-height: 16px; text-decoration: none; }
.chip span { color: var(--muted); } .chip.on { background: var(--wash); border-color: var(--pink); color: #fff; font-weight: 600; }
.group { display: flex; flex-direction: column; gap: 0; scroll-margin-top: 16px; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
.group-h :is(h3,h4) { margin: 0; color: var(--ink); font-weight: 700; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
.group-h span { color: var(--pink); font: 500 12px/16px var(--mono); }
.job { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job .ref { font-size: 12px; line-height: 16px; padding: 1px 7px; }
.job .pay { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 18px; }
.job :is(h3,h4,h5) { margin: 0; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 23px; letter-spacing: -.01em; }
.job .org { color: var(--muted); font-size: 14px; line-height: 20px; }
.lead { border-left: 2px solid var(--pink); padding-left: 10px; display: flex; flex-direction: column; gap: 2px; }
.lead small { color: var(--pink); font: 500 10px/12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lead span { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 21px; }
.iv { align-self: flex-start; background: var(--wash); color: var(--ink); border-radius: 6px; padding: 4px 8px; font-weight: 600; font-size: 13px; line-height: 16px; }
.job-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; font: 500 12px/16px var(--mono); }
.job-foot .when { color: var(--muted); } .job-foot .when.soon { color: var(--pink); }
.job-foot .go { color: var(--pink); font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 14px; }
.more { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more p { margin: 0; color: var(--body); font-size: 15px; line-height: 21px; }
details.more { display: block; } details.more summary { cursor: pointer; color: var(--pink); font-weight: 600; font-size: 15px; list-style: none; }
details.more[open] > div { display: flex; flex-direction: column; margin-top: 4px; }

/* say_this: the question, what to say (blanks in pink), the worked answer, why. Open text, no dashed boxes. */
.sub { margin: 0; color: var(--ink); font-weight: 700; font-size: 19px; line-height: 25px; letter-spacing: -.01em; }
.say, .star, .scale, .check { display: flex; flex-direction: column; }
.say { gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.star, .scale { gap: 14px; } .check { gap: 4px; }
.say .k { color: var(--muted); font-size: 14px; line-height: 20px; }
.say .q { margin: 0; color: var(--ink); font-weight: 700; font-size: 20px; line-height: 27px; letter-spacing: -.015em; }
.lbl { color: var(--pink); font-weight: 700; font-size: 13px; line-height: 18px; }
.say .tpl, .say .worked { display: flex; flex-direction: column; gap: 4px; }
.say .tpl p, .say .worked p { margin: 0; color: var(--ink); font-size: 17px; line-height: 27px; }
.say .tpl i { font-style: normal; color: var(--pink); font-weight: 600; }
.say .worked { background: var(--wash); border-radius: 12px; padding: 14px; }
.say .why { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; } .say .why b { color: var(--ink); font-weight: 600; }

/* STARR answer */
.star-h { display: flex; flex-direction: column; gap: 6px; }
.star-h h3, .star-h h2 { margin: 0; color: var(--ink); font-weight: 750; font-size: 20px; line-height: 26px; letter-spacing: -.02em; }
.weights { display: flex; flex-direction: column; gap: 6px; }
.weights .bar8 { display: flex; gap: 3px; height: 6px; }
.weights .bar8 span:nth-child(1) { background: rgba(201, 143, 186, .45); border-radius: 3px 0 0 3px; }
.weights .bar8 span:nth-child(2) { background: var(--pink); }
.weights .bar8 span:nth-child(3) { background: var(--plum); border-radius: 0 3px 3px 0; }
.weights .wl { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font: 500 11px/16px var(--mono); }
.weights .wl b { color: var(--pink); font-weight: 600; }
.segs { display: flex; flex-direction: column; gap: 14px; }
.seg { display: flex; gap: 12px; }
.seg > b { flex: 0 0 22px; color: var(--pink); font-weight: 800; font-size: 18px; line-height: 26px; }
.seg p { margin: 0; color: var(--body); font-size: 16px; line-height: 26px; }
.seg.a p { color: var(--ink); }
.seg.refl { background: var(--wash); border-radius: 12px; padding: 12px; } .seg.refl p { color: var(--ink); }

/* Scale */
.scale-h { display: flex; align-items: baseline; justify-content: flex-end; color: var(--pink); font: 500 12px/16px var(--mono); }
.scale .bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 120px; border-bottom: 1px solid var(--muted); }
.scale .bars span { flex: 1 1 0; background: var(--surface-2); border-radius: 4px 4px 0 0; } .scale .bars span.on { background: var(--btn); }
.scale .bars i { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); }
.scale ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.scale ol li { flex: 1 1 0; text-align: center; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 18px; } .scale ol li.pass { color: var(--pink); }
.scale dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 22px; color: var(--body); }
.scale dl div { display: flex; gap: 10px; } .scale dt { flex: 0 0 16px; font-weight: 700; color: var(--ink); } .scale dd { margin: 0; }
.scale .note { margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }

/* Checklist */
.check-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.check-h h2, .check-h h3 { margin: 0; color: var(--ink); font-weight: 750; font-size: 20px; line-height: 26px; letter-spacing: -.02em; }
.check-h span { color: var(--muted); font: 500 12px/16px var(--mono); white-space: nowrap; }
.check label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; color: var(--ink); font-size: 16px; line-height: 24px; }
.check label:last-child { border-bottom: 0; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--pink); border-radius: 6px; cursor: pointer;
  background: center / 12px 12px no-repeat; }
.check input:checked { background-color: var(--btn); border-color: var(--btn); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:checked + span { color: var(--muted); text-decoration: line-through 1px; }
.check input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Stat, quote, persona, question list, FAQ */
.stat { padding: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.stat b { color: var(--ink); font-weight: 800; font-size: 64px; line-height: 60px; letter-spacing: -.06em; }
.stat p { margin: 0; color: var(--ink); font-weight: 600; font-size: 18px; line-height: 25px; }
.stat small { color: var(--muted); font: 500 11px/16px var(--mono); }
.quote { margin: 0; border-left: 3px solid var(--pink); padding: 2px 0 2px 16px; display: flex; flex-direction: column; gap: 10px; }
.quote p { margin: 0; color: var(--ink); font-weight: 600; font-size: 20px; line-height: 29px; letter-spacing: -.01em; }
.quote cite { color: var(--muted); font-style: normal; font-size: 14px; line-height: 20px; }
.persona-h { display: flex; align-items: center; gap: 14px; }
.initial { flex: 0 0 48px; height: 48px; border-radius: 999px; background: var(--wash); color: var(--pink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.persona :is(h2,h3) { font-size: 20px; } .example { color: var(--muted); font: 500 10px/12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.persona .sum { color: var(--muted); font-size: 14px; line-height: 20px; margin: 0; }
.persona .pq { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 26px; margin: 0; }
.tl { display: flex; gap: 4px; height: 22px; } .tl span { display: flex; align-items: center; padding: 0 8px; border-radius: 11px; font-weight: 600; font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl .past { background: rgba(201, 143, 186, .45); color: #fff; } .tl .gap { background: var(--surface-2); color: var(--muted); } .tl .now { background: var(--btn); color: #fff; justify-content: center; }
.tl-years { display: flex; justify-content: space-between; color: var(--muted); font: 500 11px/14px var(--mono); }
.tl-marks { color: var(--pink); font-size: 14px; line-height: 20px; }
.ql { gap: 4px; } .ql-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; }
.ql-h :is(h2,h3) { font-size: 20px; } .ql-h span { color: var(--pink); font: 500 12px/16px var(--mono); white-space: nowrap; }
.ql article { border-top: 1px solid var(--line-soft); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.ql article p { margin: 0; } .ql .qq { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 25px; }
.ql .lf { color: var(--body); font-size: 15px; line-height: 23px; } .ql .lf b { color: var(--pink); font-weight: 600; }
.faq :is(h2,h3) { margin: 0; padding: 0 0 8px; color: var(--ink); font-weight: 750; font-size: 24px; line-height: 30px; letter-spacing: -.02em; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; } .faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pink); font-weight: 500; font-size: 20px; flex: 0 0 16px; } .faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--body); font-size: 16px; line-height: 26px; }
.card.faq { background: transparent; border: 0; padding: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.foot .eyebrow { color: var(--muted); padding-top: 12px; }
.foot p { margin: 0; color: var(--body); font-size: 14px; line-height: 21px; }
.foot p a { color: var(--ink); }
.foot .sig { color: var(--muted); font-size: 13px; line-height: 18px; }

/* Index (/pages) */
a.idx { text-decoration: none; color: inherit; gap: 8px; } a.idx:hover { border-color: var(--wash-line); }
.idx :is(h2,h3) { font-size: 20px; } .idx p { margin: 0; color: var(--body); font-size: 15px; line-height: 22px; }

@media (min-width: 840px) {
  .pg { padding-top: 28px; gap: 32px; }
  .sun h1 { font-size: 48px; line-height: 52px; }
  .sun-plum { width: 136px; height: 136px; top: -18px; } .sun-rise { padding-top: 84px; }
}
.more .note, details.more .note { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
