/* Business Beaker data exchange: the whole of app.businessbeaker.com.

   The brand as the course uses it (BRAND-SOURCE-OF-TRUTH/BRAND-SPEC.md section 2, in the "bright" look Samuel picked
   on 2026-10-01 for the lessons): white ground, a cool light grey for raised bands, navy for text and the monogram,
   gold-tan for accents, Plus Jakarta Sans throughout with heavy tight titles, and Playfair Display only for the
   Business Beaker wordmark. One stylesheet for every page of the exchange. */

:root {
  --bg: #ffffff;
  --alt: #f2f5f9;
  --cream: #faf6f0;
  --navy: #1a2e40;
  --navy-hi: #24405a;
  --gold: #c59b6d;
  --gold-deep: #8c6a43;
  --body: #2f3542;
  --muted: #5d6472;
  --line: #e5e9ef;
  --line-2: #eef1f5;
  --good: #2e7d4f;
  --good-tint: #e8f3ec;
  --warn: #9a5b12;
  --warn-tint: #fbf1e3;
  --shadow: 0 1px 2px rgba(26, 46, 64, 0.05), 0 8px 24px rgba(26, 46, 64, 0.06);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding-inline: 24px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0; }
.brand span { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid #e7d7c4; border-radius: 999px; padding: 3px 9px; margin-left: 4px; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: 10px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.grow { flex: 1; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px/1.2 var(--sans); padding: 12px 20px; border-radius: 12px; border: 1.5px solid var(--navy); background: var(--navy); color: #ffffff; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; }
.btn:hover { background: var(--navy-hi); border-color: var(--navy-hi); }
.btn.line { background: transparent; color: var(--navy); }
.btn.line:hover { background: var(--alt); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- type ---- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
h1, h2, h3 { color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 60ch; }
.p { margin: 12px 0 0; color: var(--muted); max-width: 64ch; }
.small { font-size: 13px; color: var(--muted); }

/* ---- sections ---- */
.hero { padding-block: 72px 64px; }
.heroGrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.band { padding-block: 72px; }
.band.alt { background: var(--alt); }
.band.cream { background: var(--cream); }
.band.navy { background: var(--navy); color: #dfe6ee; }
.band.navy h2, .band.navy h3 { color: #ffffff; }
.band.navy .eyebrow { color: var(--gold); }
.band.navy .p { color: #c6d1dc; }
.sectionHead { max-width: 720px; margin-bottom: 34px; }

.statStrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 28px; border-block: 1px solid var(--line); }
.statStrip b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.statStrip span { font-size: 13px; color: var(--muted); }

/* ---- cards ---- */
.card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.cardPad { padding: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.dataset { display: flex; flex-direction: column; gap: 14px; padding: 26px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.dataset:hover { border-color: var(--gold); transform: translateY(-2px); }
.dataset .kind { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.dataset p { margin: 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--body); background: var(--alt); border-radius: 999px; padding: 5px 11px; }
.chip b { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.more { font-weight: 700; color: var(--navy); font-size: 14px; }

.spec { padding: 6px 22px; }
.spec dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.spec dt, .spec dd { padding: 12px 0; border-top: 1px solid var(--line-2); margin: 0; }
.spec dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-right: 22px; }
.spec dd { color: var(--navy); font-weight: 600; font-size: 15px; }
.spec dt:first-of-type, .spec dd:first-of-type { border-top: 0; }
.specTitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.specTitle b { color: var(--navy); font-size: 15px; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.navy { background: var(--alt); color: var(--navy); }

.feature { padding: 24px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--cream); color: var(--gold-deep); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.band.navy .step { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.band.navy .step::before { background: var(--gold); color: var(--navy); }
.band.navy .step p { color: #c6d1dc; }

/* ---- dataset page ---- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.listingHead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: start; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff; }
.toc a:hover { border-color: var(--gold); }
.block { padding-block: 48px; border-top: 1px solid var(--line); }
.block h2 { font-size: 28px; }
.tablewrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--alt); white-space: nowrap; }
td { padding: 13px 18px; border-top: 1px solid var(--line-2); vertical-align: top; color: var(--body); }
tr:first-child td { border-top: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td code, .code { font-family: var(--mono); font-size: 13px; color: var(--navy); background: var(--alt); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.share { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; min-width: 90px; margin-top: 8px; }
.share span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.bullets { margin: 18px 0 0; padding-left: 20px; color: var(--body); }
.bullets li { margin-bottom: 8px; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--cream); border: 1px solid #efe3d3; color: var(--body); font-size: 15px; }

/* ---- forms ---- */
.formCard { padding: 28px; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label.f { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--navy); }
label.f small { font-weight: 500; color: var(--muted); }
.f input, .f select, .f textarea { font: 15px/1.4 var(--sans); color: var(--body); background: #ffffff; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px; width: 100%; }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 155, 109, 0.22); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 9px; }
legend { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--body); cursor: pointer; }
.choice input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formError { color: #9b2c2c; background: #fbeaea; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0; }
.done { padding: 28px; border-left: 4px solid var(--good); }
.done h3 { font-size: 22px; }
.ref { font-family: var(--mono); font-size: 14px; background: var(--alt); border-radius: 8px; padding: 10px 12px; margin-top: 12px; overflow-wrap: anywhere; }

/* ---- status page ---- */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 32px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.on::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(197, 155, 109, 0.22); }
.timeline li.ok::before { background: var(--good); }
.timeline b { color: var(--navy); }

/* ---- admin ---- */
.queue { display: grid; gap: 14px; margin-top: 18px; }
.req { padding: 20px; display: grid; gap: 10px; }
.reqHead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reqHead b { color: var(--navy); font-size: 16px; }
.reqMeta { font-size: 13px; color: var(--muted); }
.reqBody { font-size: 14.5px; white-space: pre-wrap; color: var(--body); }
.reqActs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reqActs input { flex: 1 1 260px; font: 14px var(--sans); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding-block: 30px 44px; background: #ffffff; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--navy); }

@media (max-width: 980px) {
  .heroGrid, .listingHead { grid-template-columns: minmax(0, 1fr); }
  .grid3, .grid4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statStrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .grid2, .grid3, .grid4, .steps, .row2, .choices { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 44px 40px; }
  .band { padding-block: 52px; }
  .brand span { display: none; }
  .top .btn { padding: 9px 12px; font-size: 13px; }
  .spec dl { grid-template-columns: minmax(0, 1fr); }
  .spec dt { padding-bottom: 0; border-top: 1px solid var(--line-2); }
  .spec dd { border-top: 0; padding-top: 4px; }
}
