/* First Fix site styles. Brand: charcoal #1B1E23, off-white #F5F4F0, amber #F2A33A (one accent), red #E5484D for wrong. */

:root {
  --charcoal: #1B1E23;
  --charcoal-2: #23272E;
  --line-dark: #3A3E45;
  --paper: #F5F4F0;
  --white: #FFFFFF;
  --line: #E3E1DB;
  --line-soft: #ECEAE4;
  --ink: #1B1E23;
  --ink-2: #2B2F35;
  --muted: #5C6066;
  --muted-light: #B9BDC4;
  --soft-light: #D5D8DD;
  --amber: #F2A33A;
  --amber-ink: #B8731A;
  --red: #E5484D;
  --display: Montserrat, Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: var(--ink); }
a:hover { color: var(--amber-ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; margin-top: 8px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 16px; }
.between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.dark { background: var(--charcoal); color: var(--white); }
.dark a { color: var(--white); }
.dark a:hover { color: var(--amber); }
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); font-size: 15px; margin-top: 14px; }
.small { font-size: 13px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.eyebrow.light { color: var(--muted-light); }
.rule { display: block; width: 36px; height: 4px; background: var(--amber); margin-bottom: 12px; }
.eyebrow .rule { width: 28px; margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--soft-light); max-width: 620px; margin-top: 16px; }
.lead-dark { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin-top: 12px; }
.h-display { font-size: 36px; font-weight: 800; }
.h-display.small { font-size: 26px; }
.h-display a { text-decoration: none; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; display: inline-block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body); line-height: 1.2; min-height: 44px; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F7B45A; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: #5A5F68; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-2); color: var(--white); }
.btn.block { justify-content: center; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* header */
.site-header { background: var(--charcoal); color: var(--white); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-icon svg { width: 40px; height: 40px; }
.brand-word { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tag { background: var(--amber); color: var(--ink); font-family: var(--display); font-size: 11px; font-weight: 800; line-height: 1; padding: 5px 6px 4px; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav .btn { padding: 11px 18px; font-size: 15px; border-bottom: none; min-height: 40px; }

/* hero */
.hero .wrap { padding-top: 72px; padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--charcoal-2); overflow: hidden; }
.thumb-large { border-radius: 6px; outline: 1px solid var(--line-dark); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb .badge { position: absolute; left: 12px; top: 12px; }
.duration { position: absolute; right: 10px; bottom: 10px; background: var(--charcoal); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 7px; border-radius: 3px; }
.badge { display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 5px 7px; line-height: 1; }
.badge-amber { background: var(--amber); color: var(--ink); }
.badge-white { background: var(--white); color: var(--ink); }
.badge-dark { background: var(--charcoal); color: var(--white); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.play svg { width: 26px; height: 26px; margin-left: 3px; }

/* proof row */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof .wrap { padding-top: 56px; padding-bottom: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.proof h2 { font-size: 22px; margin: 0 0 10px; }
.proof p { color: #4D5259; }

/* series and cards */
.series-section .wrap, .list-section .wrap, .materials-teaser .wrap { padding-top: 64px; padding-bottom: 72px; }
.section-head { align-items: flex-end; margin-bottom: 28px; margin-top: 8px; }
.cards { gap: 24px; margin-bottom: 48px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--ink); min-width: 0; }
a.card:hover { border-color: #C9C6BD; color: var(--ink); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-body p { font-size: 15px; color: #4D5259; }
.card.pad { padding: 20px; gap: 10px; }
.thumb-planned { background: var(--charcoal); background-image: linear-gradient(to top, #4B4A3B 0 40%, transparent 40%); }
.thumb-planned::after { content: ""; position: absolute; left: 0; right: 0; top: 58.5%; height: 1.5%; background: var(--amber); }

/* materials teaser */
.materials-teaser { background: var(--white); border-top: 1px solid var(--line); }
.materials-teaser .btn { margin-top: 24px; }
.panel-dark { background: var(--charcoal); color: var(--white); border-radius: 6px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.panel-title { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--amber); }
.panel-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.panel-row:last-child { border-bottom: none; padding-bottom: 0; }
.panel-dark .panel-row span { color: var(--soft-light); }
.panel-dark .panel-row strong { white-space: nowrap; }

/* video page */
.video-top .wrap { padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted-light); }
.crumbs a { color: var(--muted-light); text-decoration: none; }
.crumbs span:last-child { color: var(--white); }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--charcoal-2); border-radius: 6px; overflow: hidden; outline: 1px solid var(--line-dark); }
.player img, .player iframe, .player .thumb-img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player .badge, .player .duration { display: none; }
.play-btn { width: 84px; height: 84px; }
.player-pending { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--charcoal); color: var(--muted-light); font-size: 14px; padding: 8px 12px; border-radius: 3px; white-space: nowrap; }
.video-title { align-items: flex-start; gap: 24px; }
.video-title h1 { font-size: clamp(28px, 3.5vw, 40px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted-light); margin-top: 10px; }
.video-body .wrap, .materials-body .wrap { padding-top: 48px; padding-bottom: 72px; }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col { flex: 1 1 300px; min-width: 0; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.two-col.reverse .side-col { order: -1; max-width: 380px; }
.main-col h2 { margin-top: 24px; }
.chapters, .steps { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.chapters li { border-bottom: 1px solid var(--line-soft); }
.chapters li:last-child { border-bottom: none; }
.chapters li > a, .chapters li > .ch { display: flex; gap: 20px; padding: 13px 18px; text-decoration: none; }
.chapters time { font-weight: 600; min-width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); counter-increment: step; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--amber-ink); }
.steps li:last-child { border-bottom: none; }
.steps li span { color: #4D5259; font-size: 15px; }
.article { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.article h2 { font-size: 24px; margin-top: 20px; color: var(--ink); }
.article h3 { font-size: 19px; margin-top: 8px; }
.article ul, .article ol { margin: 0; padding-left: 22px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article blockquote { margin: 0; padding: 12px 18px; border-left: 4px solid var(--amber); background: var(--white); }
.sources { display: flex; flex-direction: column; gap: 12px; }
.source { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; }
.source .claim { font-weight: 600; margin-bottom: 4px; }
.source .cite, td.cite { font-size: 14px; color: var(--muted); line-height: 1.5; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.faq p { padding: 0 0 16px; color: var(--ink-2); }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.bullets li { padding-left: 18px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--amber); }
.ad-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* materials page */
.materials-top .wrap { padding-top: 40px; padding-bottom: 48px; align-items: flex-end; }
.materials-top h1 { font-size: clamp(28px, 3.5vw, 44px); margin-top: 12px; }
.materials-top .lead { font-size: 17px; }
.calc label { font-weight: 600; display: block; margin-bottom: 8px; }
.stepper { display: flex; gap: 8px; }
.stepper button { width: 48px; height: 48px; background: var(--charcoal); color: var(--white); border: none; border-radius: 4px; font-size: 22px; cursor: pointer; font-family: var(--body); }
.stepper input { flex: 1 1 60px; min-width: 0; height: 48px; border: 1px solid #C9C6BD; border-radius: 4px; font-size: 20px; font-weight: 600; text-align: center; font-family: var(--body); color: var(--ink); background: var(--white); }
.assumptions { border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.assumptions .panel-row { border-bottom: none; padding: 0; }
.assumptions .panel-row span { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); }
.tile-num { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; color: var(--amber); }
.tile-sub { font-size: 14px; color: var(--soft-light); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
table.materials { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.materials th { text-align: left; padding: 12px 16px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
table.materials td { padding: 14px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.materials .check { width: 40px; }
table.materials .num { text-align: right; font-weight: 600; white-space: nowrap; }
table.materials input[type="checkbox"], .tools input[type="checkbox"] { width: 20px; height: 20px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 8px 16px; }
.tool { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.print-only { display: none; }

/* pages */
.page-top .wrap { padding-top: 48px; padding-bottom: 56px; }
.link-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.link-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; text-decoration: none; }

/* footer */
.site-footer { background: var(--charcoal); color: var(--muted-light); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.site-footer .row { align-items: flex-start; gap: 40px; }
.footer-brand { flex: 1 1 360px; min-width: 0; }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 480px; margin-top: 14px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: var(--muted-light); text-decoration: none; font-size: 15px; padding: 2px 0; }
.footer-cols a:hover { color: var(--white); }
.footer-cols .eyebrow { color: var(--white); margin-bottom: 0; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .tiles { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .two-col.reverse .side-col { order: 0; max-width: none; }
  .side-col { max-width: none; }
  .tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav .btn { width: 100%; justify-content: center; }
  .h-display { font-size: 30px; }
}

/* print: the materials list is meant to be printed */
@media print {
  .site-header, .site-footer, .no-print, .stepper button, .tiles, .crumbs { display: none !important; }
  .dark { background: none !important; color: #000 !important; }
  .dark .lead, .dark a { color: #000 !important; }
  .print-only { display: block; }
  .two-col { display: block; }
  .card, .table-wrap, .panel-dark { border: 1px solid #999; box-shadow: none; }
  .stepper input { border: 1px solid #999; }
  body { font-size: 12pt; background: #fff; }
}
