/* Risk management resources: shared styles.
   Colors and type match the ARC-CO / PLC calculator (web/template.html in arc-plc-calculator). */
:root{
  --brand:#7A0019; --brand-2:#FFCC33;
  --bg:#F6F4F2; --surface:#FFFFFF; --sunk:#EFEBE8; --fg:#231A1C; --muted:#64585B; --line:#DDD5D3;
  --gold-ink:#7A5A00; --gold-bg:#FFF4D1; --focus:#2F6FD6;
  --f-display:"Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body:"Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-read:"Source Serif 4", Georgia, "Times New Roman", serif;
  --r:10px; --maxw:1180px;
  color-scheme:only light;   /* always light, even when the visitor's device is in dark mode */
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--fg); font-family:var(--f-body); font-size:15px; line-height:1.55}
a{color:var(--brand)}
:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
[hidden]{display:none!important}

.brandbar{height:6px; background:linear-gradient(90deg,var(--brand) 0 78%,var(--brand-2) 78% 100%)}
.wrap{max-width:var(--maxw); margin:0 auto; padding:24px 20px 48px}

/* Site header */
.site-head{display:flex; align-items:center; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin-bottom:28px}
.wordmark{font-weight:800; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--brand); line-height:1.25; text-decoration:none}
.wordmark span{display:block; font-weight:600; color:var(--muted); letter-spacing:.04em}
.site-nav{display:flex; gap:18px; font-size:14px; font-weight:600}
.site-nav a{color:var(--muted); text-decoration:none; padding:4px 0; border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a[aria-current="page"]{color:var(--brand); border-bottom-color:var(--brand-2)}

h1,h2,h3{font-family:var(--f-display); text-wrap:balance}
.hero h1{font-weight:800; font-size:clamp(1.7rem,3.4vw,2.4rem); letter-spacing:-.01em; margin:0}
.hero p{color:var(--muted); margin:6px 0 0; max-width:62ch}
.section-label{font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:36px 0 12px}

/* Topic tabs */
.tabs{display:flex; gap:4px 22px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-top:36px}
.tab{font:inherit; font-size:15px; font-weight:600; color:var(--muted); background:none; border:none; border-bottom:3px solid transparent;
  padding:10px 0; margin-bottom:-1px; cursor:pointer}
.tab:hover{color:var(--fg)}
.tab[aria-selected="true"]{color:var(--brand); border-bottom-color:var(--brand-2)}
.topic-intro{margin:18px 0 16px}
.topic-intro h2{font-size:1.35rem; font-weight:700; margin:0}
.topic-intro p{color:var(--muted); margin:4px 0 0; max-width:70ch}

/* Cards */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px}
.card{display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden; color:inherit; text-decoration:none; transition:border-color .15s, transform .15s}
.card:hover{border-color:var(--brand); transform:translateY(-2px)}
.card .cover{aspect-ratio:16/9; width:100%; object-fit:cover; display:block; background:var(--sunk); border-bottom:1px solid var(--line)}
.card .body{padding:12px 14px 14px; display:flex; flex-direction:column; gap:6px; flex:1}
.card .meta{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted)}
.pill{font-size:11px; font-weight:700; letter-spacing:.03em; color:var(--gold-ink); background:var(--gold-bg); padding:2px 8px; border-radius:999px}
.card h3{font-size:1.02rem; font-weight:700; margin:0; line-height:1.3}
.card p{font-size:13.5px; color:var(--muted); margin:0}
.card .ext{margin-left:auto; font-size:12px}
.featured .card{border-top:3px solid var(--brand-2)}
.empty{color:var(--muted); background:var(--surface); border:1px dashed var(--line); border-radius:var(--r); padding:28px; text-align:center}

/* Footer and contact */
.site-foot{margin-top:48px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; color:var(--muted);
  display:flex; flex-wrap:wrap; gap:12px 40px; justify-content:space-between}
.site-foot p{margin:0}
.contact b{display:block; font-size:11px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px}
.contact a{font-weight:600}

/* Article and About pages */
.article-bar{background:var(--surface); border-bottom:1px solid var(--line)}
.article-bar .inner{max-width:var(--maxw); margin:0 auto; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:14px; font-weight:600}
.article-bar a{text-decoration:none}
.back::before{content:"\2190\00a0"}
.article{max-width:720px; margin:0 auto; padding:36px 20px 56px}
.article header h1{font-weight:800; font-size:clamp(1.7rem,3.6vw,2.4rem); line-height:1.15; letter-spacing:-.01em; margin:6px 0 8px}
.article .kicker{font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--brand)}
.article .dek{font-size:1.1rem; color:var(--muted); margin:0 0 10px}
.article .byline{font-size:13px; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:16px; margin-bottom:24px}
.prose{font-family:var(--f-read); font-size:18px; line-height:1.7}
.prose h2,.prose h3{font-family:var(--f-display); line-height:1.25; margin:2em 0 .5em}
.prose h2{font-size:1.4rem} .prose h3{font-size:1.15rem}
.prose img,.prose svg,.prose video{max-width:100%; height:auto}
.prose figure{margin:1.8em 0}
.prose figcaption{font-family:var(--f-body); font-size:13px; color:var(--muted); margin-top:6px}
.prose table{border-collapse:collapse; width:100%; font-family:var(--f-body); font-size:14px; margin:1.5em 0; display:block; overflow-x:auto}
.prose th,.prose td{border-bottom:1px solid var(--line); padding:6px 10px; text-align:left; vertical-align:top}
.prose th{background:var(--sunk)}
.prose blockquote{margin:1.5em 0; padding:2px 18px; border-left:4px solid var(--brand-2); color:var(--muted)}
.prose code{font-size:.85em; background:var(--sunk); padding:1px 5px; border-radius:4px}
.prose .footnotes{font-size:14px; color:var(--muted); border-top:1px solid var(--line); margin-top:3em}

@media print{
  .brandbar,.article-bar,.site-nav{display:none}
  body{background:#fff}
  .prose{font-size:11pt}
}
