/* dualocc.au: "Planning document" design language.
   Steel blue on white, square corners, condensed headings, ruled tables, numbered clauses. */
:root {
  --steel: #243b53;        /* headings, rules, dark bands; 11.5:1 on white */
  --steel-deep: #182a3c;
  --ink: #1d2733;
  --ink-soft: #4a5868;     /* 7.3:1 on white */
  --paper: #ffffff;
  --panel: #f1f4f7;
  --line: #cfd8e1;
  --link: #1f5f8b;         /* 6.8:1 on white */
  --signal: #b8d4ea;       /* accents on steel */
  --font-head: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1140px;
  --measure: 70ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.03rem/1.7 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--steel-deep); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--steel); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.4em 0 .6em; padding-top: .5em; border-top: 2px solid var(--steel); }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: .45em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }

/* masthead */
.masthead { background: var(--steel); color: #fff; }
.masthead-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; min-height: 60px; padding-block: 10px; }
.masthead-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; text-decoration: none; display: flex; gap: 10px; align-items: center; }
.masthead-mark { font-family: var(--font-mono); font-size: .8rem; border: 1px solid var(--signal); color: var(--signal); padding: 2px 6px; }
.masthead-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .92rem; }
.masthead-nav a { color: var(--signal); text-decoration: none; }
.masthead-nav a:hover { color: #fff; text-decoration: underline; }

/* document head */
.doc-head { background: var(--panel); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 72px) 0 28px; }
.kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .9em; }
.doc-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 .4em; max-width: 22ch; }
.dek { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 62ch; margin: 0 0 1.4em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9rem; color: var(--ink-soft); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* figures: ruled cells like a schedule */
.figures-wrap { padding-top: 32px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--steel); }
.figures li { margin: 0; padding: 18px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.fig-num { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--steel); font-weight: 700; }
.fig-label { font-size: .93rem; color: var(--ink-soft); }
.note { font-size: .9rem; color: var(--ink-soft); }

/* article */
.article { display: grid; gap: 40px; padding-block: 44px 24px; }
@media (min-width: 960px) { .article { grid-template-columns: 230px minmax(0, 1fr); } }
.toc { font-size: .92rem; }
@media (min-width: 960px) { .toc { position: sticky; top: 20px; align-self: start; border-left: 2px solid var(--steel); padding-left: 14px; } }
.toc-title { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .6em; }
.toc ol { padding-left: 1.7em; margin: 0; }
.prose { max-width: var(--measure); min-width: 0; }
.prose > h2:first-child { margin-top: 0; }

.callout { border: 1px solid var(--steel); border-left-width: 6px; padding: 16px 20px; margin: 1.6em 0; background: var(--panel); }
.callout-title { font-family: var(--font-head); font-weight: 700; color: var(--steel); margin-bottom: .3em; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption { text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--steel); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
thead th { background: var(--steel); color: #fff; border-color: var(--steel); }
tbody th { background: var(--panel); font-weight: 600; }
table.data { background: var(--paper); }

.sources { font-size: .9rem; padding-left: 1.2em; }
.cards { display: grid; gap: 12px; margin: 1em 0 0; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-top: 3px solid var(--steel); padding: 14px 16px; }
.card h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.card p { font-size: .92rem; margin: 0; }

/* author */
.author { display: grid; grid-template-columns: 88px 1fr; gap: 18px; border: 1px solid var(--line); padding: 18px; margin-top: 2.6em; }
.author img { width: 88px; height: 88px; object-fit: cover; }
.author-name { font-family: var(--font-head); font-weight: 700; color: var(--steel); margin: 0 0 .3em; font-size: 1.1rem; }
.author p { font-size: .93rem; }
.author-links { margin: 0; font-size: .88rem; }
@media (max-width: 520px) { .author { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 0; margin-top: 40px; }
.faq h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.faq-list { max-width: 840px; border-top: 2px solid var(--steel); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; background: transparent; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--steel); font-size: 1.05rem; }
.faq details p { margin: .8em 0 0; }
.byline { margin-top: 22px; font-size: .9rem; color: var(--ink-soft); }

/* CTA */
.cta { background: var(--steel); color: #fff; padding: 56px 0; }
.cta h2 { color: #fff; margin-top: 0; border-top: 0; padding-top: 0; }
.cta p { color: #dbe6f0; max-width: 62ch; }
.cta .note { color: #c3d3e2; }
.btn { display: inline-block; padding: 12px 20px; font-weight: 600; text-decoration: none; margin: 6px 10px 6px 0; }
.btn-solid { background: #fff; color: var(--steel); }
.btn-solid:hover { background: var(--signal); color: var(--steel-deep); }
.btn-line { border: 2px solid #fff; color: #fff; }
.btn-line:hover { color: var(--signal); border-color: var(--signal); }

/* colophon */
.colophon { background: var(--steel-deep); color: #d2dde8; padding: 44px 0; font-size: .9rem; }
.colophon a { color: var(--signal); }
.colophon-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .colophon-grid { grid-template-columns: 1fr 2fr 1fr; } }
.colophon-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; }
.colophon-label { font: 500 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #9fb3c6; }
.colophon-meta { font-family: var(--font-mono); }
@media (min-width: 860px) { .colophon-meta { text-align: right; } }
.colophon p { margin: 0 0 .7em; }

/* reader offer card (markup: src/partials/offer.html, behaviour: /assets/js/offer.js) */
.offer { position: fixed; right: 20px; bottom: 20px; width: min(340px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border: 1px solid var(--steel); border-radius: 0; box-shadow: 0 12px 44px rgba(11, 32, 53, .18); padding: 20px 20px 18px; z-index: 50; font-size: .92rem; }
.offer[hidden] { display: none; }
.offer.in { animation: offer-up .35s ease both; }
@keyframes offer-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .offer.in { animation: none; } }
.offer-lbl { font: 500 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.offer-h { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--ink); margin: 0 0 8px; }
.offer-pitch { margin: 0 0 12px; color: var(--ink-soft); }
.offer-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--ink-soft); font: 400 1.2rem/1 inherit; cursor: pointer; padding: 6px 8px; }
.offer-x:hover { color: var(--ink); }
.offer-btn { display: inline-block; background: var(--steel); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 0; }
.offer-btn:hover { opacity: .9; color: #fff; }
.offer-cta { margin: 0 0 9px; }
.offer-alt { margin: 0; font-size: .84rem; }
@media (max-width: 520px) { .offer { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; } }
