/* Shared by every sample page: the "made-up company" banner, the sample library, and the fix-plan reading layout.
   Loaded after baseline.css or scan.css, so it reuses their colour variables. */

/* Sample banner: plain, always visible at the top, never hides the report */
.samplebar { background: var(--gold); color: var(--aubergine); font-size: 15px; line-height: 1.4; }
.samplebar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.samplebar p { margin: 0; }
.samplebar b { font: 800 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--aubergine); color: var(--gold-pale); padding: 5px 9px; border-radius: 999px; margin-right: 8px; white-space: nowrap; }
.samplebar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.samplebar a { color: var(--aubergine); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.brand a, a.brand { color: inherit; text-decoration: none; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--panel); color: var(--aubergine); padding: 8px 12px; border-radius: 6px; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* Next and previous sample, plus the call to action at the foot of each report */
.nextup { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--aubergine); color: var(--cream); border-radius: 12px; padding: 22px 24px; border-left: 5px solid var(--gold); }
.nextup h2 { font-size: 1.3rem; color: var(--gold-pale); }
.nextup p { color: #E4D6E0; margin-top: 6px; font-size: 16px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; font: 800 15.5px/1 var(--display); padding: 13px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.btn.gold { background: var(--gold); color: var(--aubergine); }
.btn.ghost { border: 1.5px solid var(--gold-pale); color: var(--cream); }
.btn.dark { background: var(--aubergine); color: var(--cream); }
.btn.line { border: 1.5px solid var(--plum); color: var(--plum); }
.btn:hover { filter: brightness(1.06); }

/* Library page */
.lib-cover h1 { max-width: 22ch; }
.lib-intro { background: var(--panel); border: 1px solid var(--line); border-top: 0; padding: 26px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.lib-intro p { font-size: 18px; }
.lib-intro .who { background: var(--plum-soft); border-radius: 10px; padding: 16px 18px; font-size: 16px; }
.lib-intro .who b { display: block; font: 800 1.1rem/1.2 var(--display); color: var(--aubergine); margin-bottom: 4px; }
.reports { display: grid; gap: 18px; }
.rep { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rep .peek { background: linear-gradient(160deg, var(--aubergine) 0%, #3A1B3C 70%, var(--plum) 100%); padding: 20px; display: grid; align-content: center; gap: 10px; border-right: 4px solid var(--gold); }
.rep .peek .n { font: 800 3.2rem/.9 var(--display); color: var(--gold); }
.rep .peek .mini { background: var(--paper); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.rep .body { padding: 22px 24px; }
.rep .body h3 { font-size: 1.4rem; line-height: 1.15; margin-top: 6px; }
.rep .body p { margin-top: 8px; color: var(--muted); }
.rep ul { margin: 12px 0 16px; padding-left: 20px; }
.rep li { margin: 5px 0; }
.rep li::marker { color: var(--gold-deep); }
.m-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.m-board i { display: block; font: 800 15px/1.1 var(--display); font-style: normal; border-radius: 6px; padding: 10px 8px; }
.m-board i small { display: block; font: 600 11px/1.2 var(--body); margin-top: 3px; }
.m-win { background: var(--aubergine); color: var(--gold-pale); }
.m-win small { color: #E4D6E0; }
.m-leak { background: repeating-linear-gradient(135deg, var(--bad-soft) 0 7px, #fff 7px 14px); color: var(--bad); border: 1px solid #EBC9C4; }
.m-leak small { color: var(--ink); }
.m-lines { display: grid; gap: 7px; }
.m-lines span { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; font: 600 12.5px/1.25 var(--body); color: var(--ink); }
.m-lines span::before { content: attr(data-n); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--aubergine); color: var(--gold-pale); font: 800 10.5px/1 var(--display); }
.m-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.m-grid i { aspect-ratio: 1; border-radius: 50%; }
.m-grid .y { background: var(--aubergine); }
.m-grid .n { background: #fff; border: 1.5px solid #DCCFD9; }
.m-cap { font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rule { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 16px; }
.rule b { display: block; font: 800 1.05rem/1.2 var(--display); color: var(--aubergine); }
.rule span { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }
.honest { margin-top: 18px; background: var(--warn-soft); border: 1px solid #EAD3A6; border-radius: 10px; padding: 16px 18px; font-size: 16px; }

/* Fix plan: a reading page */
.doc { max-width: 780px; }
.doc .prose p { font-size: 18px; line-height: 1.6; margin-top: 14px; }
.doc .prose p:first-child { margin-top: 0; }
.doc .bigline { font: 800 clamp(1.4rem, 3.4vw, 1.9rem)/1.2 var(--display); color: var(--aubergine); letter-spacing: -.01em; }
.doc .bigline em { font-style: normal; color: var(--bad); }
.gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: gap; }
.gaps > li { counter-increment: gap; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.gaps > li::before { content: counter(gap); width: 40px; height: 40px; border-radius: 50%; background: var(--aubergine); color: var(--gold-pale); display: grid; place-items: center; font: 800 1.15rem/1 var(--display); }
.gaps h3 { font-size: 1.15rem; line-height: 1.25; }
.gaps p { font-size: 16.5px; margin-top: 6px; }
.vs-line { margin-top: 10px; background: #FCFAF7; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 15.5px; }
.vs-line .t { font-weight: 700; color: var(--bad); }
.vs-line .y { font-weight: 700; color: var(--aubergine); margin-left: 8px; }
.why-list { display: grid; gap: 14px; }
.why-list .card h3 { font-size: 1.1rem; }
.why-list .card p { font-size: 16.5px; margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(st, decimal-leading-zero); font: 800 1.35rem/1.2 var(--display); color: var(--gold); }
.steps b { display: block; font: 700 1.05rem/1.3 var(--display); }
.steps span { display: block; font-size: 16px; color: var(--muted); margin-top: 3px; }
.steps em { font: 500 11.5px/1.2 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); background: var(--plum-soft); border-radius: 999px; padding: 5px 9px; white-space: nowrap; margin-top: 2px; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ways .card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ways ul { margin: 0; padding-left: 18px; font-size: 16px; }
.ways li { margin: 6px 0; }
.ways .dark { background: var(--aubergine); color: var(--cream); border-color: var(--aubergine); }
.ways .dark h3 { color: var(--gold-pale); }
.ways .dark li::marker { color: var(--gold-pale); }
.ways .dark .note { color: #D9C8D6; }
.srcs { font-size: 15.5px; color: var(--muted); }
.srcs h3 { font-size: 1rem; color: var(--ink); margin: 16px 0 6px; }
.srcs ul { margin: 0; padding-left: 20px; }
.srcs li { margin: 5px 0; }

/* "Where you get this report": ties each sample to a plan on the site */
.getit { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; padding: 20px 24px; }
.getit h2 { font-size: 1.35rem; margin-top: 6px; }
.getit p { margin-top: 8px; font-size: 16.5px; max-width: 72ch; }
.getit p a { color: var(--plum); font-weight: 700; text-underline-offset: 3px; }
.getit .btns { margin-top: 14px; }

@media (max-width: 860px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep { grid-template-columns: minmax(0, 1fr); }
  .rep .peek { border-right: 0; border-bottom: 4px solid var(--gold); grid-template-columns: auto minmax(0, 1fr); align-items: center; }
}
@media (max-width: 760px) {
  .lib-intro, .ways, .nextup { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .steps em { grid-column: 2; justify-self: start; }
  .gaps > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rep .peek { grid-template-columns: minmax(0, 1fr); }
  .rep .peek .n { font-size: 2.4rem; }
}
@media (max-width: 600px) {
  .today { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .today .tag { justify-self: start; }
}
@media (max-width: 480px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .samplebar { font-size: 14.5px; }
}
@media print {
  .samplebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .samplebar nav, .nextup .btns, .skip { display: none; }
  .nextup, .gaps > li, .steps li, .ways .card, .rep, .rule { break-inside: avoid; }
}
