/* H/L AI Readiness Audit: the tool's shared stylesheet (Jive Mind DESIGN). The fonts, the
   tokens and the base type and components the tool's pages build on (web/hl_web adds
   site.css on top), and the checklist handout, on screen and on one letter page. The
   report page and its PDFs are report-ui's (D125) and carry their own styles. Source Serif
   4 headlines (Regular or Light, never bold), Libre Franklin for everything else.
   Asphalt Gray is never text (1.9:1 on white); it's for quiet borders only. No decorative
   shapes anywhere: blue fields carry the logo and type only. Print sizes never go below
   9 pt (tests/test_report.py checks). */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/source-serif-4-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/libre-franklin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/libre-franklin-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #001BEB;      /* Momentum Blue */
  --ink: #1C1C1C;       /* Mass Black */
  --white: #FFFFFF;
  --asphalt: #BBBCBC;   /* Asphalt Gray: borders only */
  --skyward: #DDE5ED;   /* Skyward Blue: the only background tint */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Libre Franklin", Arial, sans-serif;
  --maxw: 1280px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); overflow-wrap: break-word;
  background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; line-height: 1.15; }
p, ul, ol, dl, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Paths, patterns and ids stay in Libre Franklin: no system fonts, so every PDF embeds
   only the two brand families. */
code { font-family: var(--sans); font-weight: 500; overflow-wrap: anywhere; }
.url { overflow-wrap: anywhere; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s8); }
.measure { max-width: 65ch; }
section { padding: var(--s8) 0; }
section.tint { background: var(--skyward); }
section + section:not(.tint):not(.flags):not(.scorecard) { border-top: 1px solid var(--ink); }
.section-head { margin-bottom: var(--s6); }
.section-head h2 { font-size: 40px; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.eyebrow.light { color: var(--white); }
h3.sub, h5.sub { font-family: var(--sans); font-weight: 500; font-size: 19px; margin: var(--s6) 0 var(--s3); letter-spacing: 0; }
.note { font-size: 15px; margin-top: var(--s3); max-width: 80ch; }

/* Skip link and sticky top bar (web only) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { left: var(--s4); top: var(--s4); }
.topbar { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid var(--ink); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s8); display: flex; align-items: center; gap: var(--s5); }
.topbar .brand { display: flex; align-items: center; gap: var(--s4); color: var(--ink); white-space: nowrap; margin-right: auto; font-size: 15px; font-weight: 700; }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand .logo { height: 32px; flex: none; }
.topbar nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.topbar nav a { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); padding: var(--s2); transition: color 0.25s ease, background-color 0.25s ease; }
.topbar nav a:hover { color: var(--blue); text-decoration: none; background: var(--skyward); }
@media screen and (max-width: 1100px) { .topbar nav { display: none; } }

/* Hero: full-bleed Momentum Blue, logo and type only */
.hero { background: var(--blue); color: var(--white); }
.hero .wrap { padding-top: var(--s7); padding-bottom: var(--s7); }
.logo { display: block; height: 48px; width: auto; }
.hero .logo { margin-bottom: var(--s6); }

.hero h1 { font-size: 64px; font-weight: 300; line-height: 1.05; margin-top: var(--s3); overflow-wrap: anywhere; }

.btn { display: inline-block; font-weight: 700; font-size: 15px; padding: var(--s3) var(--s4); border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.hero .btn { border-color: var(--white); color: var(--blue); }
.hero .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* The label on a card: what kind of thing it names */
.card .kind { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Tags: pills, status without color alone */
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
  padding: var(--s1) var(--s3); border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }

.tag-quiet { background: var(--white); color: var(--ink); border-color: var(--asphalt); }

details > summary { cursor: pointer; font-weight: 700; font-size: 15px; }

/* Screenshots: what people see and what AI sees (the progress page) */
.shots { display: grid; grid-template-columns: 1fr 1fr 0.42fr; gap: var(--s5); align-items: start; }
.shot img { border: 1px solid var(--ink); width: 100%; }
.shot figcaption { font-size: 15px; margin-top: var(--s2); font-weight: 500; }
.shot .missing { border: 1px solid var(--ink); background: var(--skyward); padding: var(--s5); font-size: 15px; aspect-ratio: 16 / 10; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: var(--s2); }
th, td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--ink); }
thead th { font-weight: 700; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 500; }

/* Shared with the tool's progress page */
.layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5); }
.card { background: var(--white); border: 1px solid var(--ink); padding: var(--s6); }

footer.site-footer { background: var(--ink); color: var(--white); padding: var(--s6) 0; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; align-items: center; }
footer.site-footer .footer-logo .logo { height: 40px; }
footer.site-footer p { font-size: 15px; max-width: 80ch; }

@media screen and (max-width: 900px) {
  .wrap, .topbar-inner { padding-left: var(--s4); padding-right: var(--s4); }
  section { padding: var(--s7) 0; }
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 32px; }

  .shots { grid-template-columns: 1fr; }
}

/* Anchors land below the sticky top bar. */
[id] { scroll-margin-top: 80px; }

/* ------------------------------------------------------------------ print */

@page { size: letter; margin: 0.5in 0.5in 0.6in;
  @bottom-left { content: "H/L"; font-family: "Libre Franklin", Arial, sans-serif; font-weight: 700; font-size: 9pt; color: #1C1C1C; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font-family: "Libre Franklin", Arial, sans-serif; font-size: 9pt; color: #1C1C1C; } }
@page onepager { size: letter; margin: 0.5in;
  @bottom-left { content: none; } @bottom-right { content: none; } }

@media print {
  body { font-size: 10pt; line-height: 1.4; }
  .skip, .topbar { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  section { padding: 0.24in 0; }
  section.tint { padding-left: 0.2in; padding-right: 0.2in; }
  .section-head { margin-bottom: 0.12in; break-inside: avoid; break-after: avoid; }
  h2, h3, h4, h5, .eyebrow { break-after: avoid; }
  .section-head h2 { font-size: 20pt; }
  h3.sub, h5.sub { font-size: 11pt; margin-top: 0.16in; }

  .eyebrow, caption, .card .kind { font-size: 9pt; }
  .hero .wrap { padding: 0.35in; }
  .hero .logo { height: 0.45in; margin-bottom: 0.25in; }
  .hero h1 { font-size: 30pt; }
  .note, .shot figcaption, .shot .missing, table { font-size: 9pt; }
  .tag { font-size: 9pt; padding: 1pt 6pt; }
  details > summary { list-style: none; font-size: 9pt; }
  details > summary::-webkit-details-marker { display: none; }
  .shots { gap: 0.15in; }

  /* Cards and small blocks never split; long tables split between rows, headers repeat. */
  figure, .card { break-inside: avoid; }
  caption { break-after: avoid; }
  tr, li { break-inside: avoid; }
  thead { display: table-header-group; }
  th, td { padding: 3pt 5pt; }
  .layers { grid-template-columns: repeat(3, 1fr); gap: 0.12in; }
  .card { padding: 0.15in; }
  footer.site-footer { padding: 0.2in; }
  footer.site-footer p { font-size: 9pt; }
  footer.site-footer .footer-logo .logo { height: 0.3in; }
}

/* ------------------------------------------------------------------ checklist handout */

body.onepager { font-size: 10pt; line-height: 1.35; page: onepager; }
.op-head { background: var(--blue); color: var(--white); padding: 0.22in 0.28in; display: flex; gap: 0.25in; align-items: center; }
.op-head .logo { height: 0.55in; flex: none; }
.op-head .eyebrow { font-size: 9pt; }
.op-head h1 { font-size: 22pt; font-weight: 300; margin-top: 2pt; line-height: 1.1;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-head p { font-size: 9.5pt; margin-top: 3pt; overflow-wrap: anywhere; }

body.onepager section { padding: 0; border-top: 0; }
.op-section { margin-top: 0.16in; }
.op-section h2 { font-family: var(--sans); font-weight: 700; font-size: 9pt; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3pt; }

.op-more { font-size: 9pt; margin-top: 4pt; }
/* The checklist handout (B123): its blue head, numbered items with the owner on the
   right, then a QR code to the tool and the footer. */
.handout-items { list-style: none; padding: 0; margin-top: 0.12in; }
.handout-items li { display: grid; grid-template-columns: 0.32in minmax(0, 1fr) auto; gap: 0.12in; padding: 7pt 0; border-bottom: 1px solid var(--asphalt); align-items: start; }
.handout-items h2 { font-family: var(--sans); font-weight: 700; font-size: 11pt; line-height: 1.3; }
.handout-items p { font-size: 9.5pt; margin-top: 2pt; }
.handout-items .tag { font-size: 9pt; padding: 1pt 5pt; }
.handout .op-num { font-family: var(--serif); font-weight: 300; font-size: 18pt; color: var(--blue); line-height: 1; }
.handout-qr .op-qr-body { display: grid; grid-template-columns: 1.2in minmax(0, 1fr); gap: 0.18in; align-items: center; margin-top: 6pt; }
.handout-qr .op-qr-body svg { display: block; width: 1.2in; height: 1.2in; }
.handout-qr .op-qr-body p { font-size: 9.5pt; }
.handout-qr .url { font-weight: 700; margin-top: 4pt; overflow-wrap: anywhere; }
.handout .op-head h1 { -webkit-line-clamp: unset; overflow: visible; }
/* /checklist on a phone: the usual 16 px gutter, the owner under the item. */
@media screen and (max-width: 640px) {
  body.handout { margin: 16px auto; padding: 0 16px; }
  .handout .op-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .handout-items li { grid-template-columns: 28px minmax(0, 1fr); }
  .handout-items .tag { grid-column: 2; justify-self: start; }
  .handout .op-foot { flex-direction: column; }
}

.op-foot { margin-top: 0.16in; border-top: 1px solid var(--ink); padding-top: 5pt; font-size: 9pt; display: flex; justify-content: space-between; gap: 0.2in; }
.op-foot p { overflow-wrap: anywhere; }

@media screen { body.onepager { max-width: 8.5in; margin: 0.5in auto; padding: 0 0.5in; } }
