:root {
  --bg: #f5f6f4; --panel: #ffffff; --fg: #1d2326; --muted: #5d686d; --line: #d9dedd;
  --accent: #b4530f; --accent-ink: #8f400a; --chip: #eef0ee;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: -0.01em; margin: 0; }

.top { border-bottom: 1px solid var(--line); background: var(--panel); }
.top .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand .dim { color: var(--muted); font-weight: 500; }
.mark { width: 26px; height: 26px; border-radius: 6px; background: var(--fg); color: #fff; display: grid; place-items: center; font: 700 14px "Barlow Semi Condensed", sans-serif; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); }

.intro { padding: 48px 0 28px; }
.eyebrow { font: 500 11.5px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.intro h1 { font-size: 46px; line-height: 1; }
.lede { max-width: 620px; color: var(--muted); font-size: 16.5px; margin: 14px 0 0; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 40px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 20px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #b9c1bf; box-shadow: 0 6px 20px rgba(29,35,38,.07); transform: translateY(-1px); }
.card-link { position: absolute; inset: 0; border-radius: 10px; z-index: 1; }
.card h2 { font-size: 24px; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font: 500 11px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: #f7ebe1; padding: 3px 8px; border-radius: 4px; }
.date { font-size: 12.5px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 12.5px; background: var(--chip); border-radius: 4px; padding: 3px 8px; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 600; }
.go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); }
.actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.actions .go { margin: 0; padding: 0; }
.dl { position: relative; z-index: 2; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; background: var(--panel); }
.dl:hover { border-color: var(--fg); }
.foot { color: var(--muted); font-size: 13px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); }

/* report pages */
.report { max-width: 860px; padding: 40px 24px 48px; }
.report h1 { font-size: 40px; line-height: 1.05; }
.report h2 { font-size: 25px; margin: 36px 0 8px; }
.report .meta { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.report p, .report li { max-width: 72ch; }
.tbl { width: 100%; overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; font: 500 11.5px "IBM Plex Mono", monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 14px 16px; }

/* thin bar injected above existing tools */
.rbar { position: sticky; top: 0; z-index: 1000; background: #1d2326; color: #e8ecea; font: 500 13px/1 "IBM Plex Sans", system-ui, sans-serif; }
.rbar .rbar-in { padding: 0 16px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rbar a { color: #e8ecea; text-decoration: none; }
.rbar a:hover { color: #fff; text-decoration: underline; }
.rbar .rdl { border: 1px solid rgba(255,255,255,.3); border-radius: 5px; padding: 5px 10px; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .intro h1 { font-size: 36px; }
  .wrap { padding: 0 16px; }
  .report { padding: 28px 16px 40px; }
}
@media print { .rbar, .top { display: none; } }
