/* AD Report # 7: Quest RMAD in the Forecast style (the same look as Report # 1: deep slate, cream type,
   orange panel bands, pill controls, Jost). Hand-written for this report's own runtime; not built by
   Build-ReportStyles.ps1. One page, dark only. */
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --bg: #142026; --surface: #1A2A31; --well: #22323A; --grid: #2C3A3F; --rule: #3B4A50; --mid: #3A4A50;
  --ink: #F3EBDD; --ink-2: #E2D9C9; --muted: #B9B2A4; --orange: #E07A45; --on-orange: #142026;
  --teal: #5AA3A6; --blue: #6F9AE0; --red: #EC6A5C; --gold: #F0B94A; --plum: #B892E8; --link: #7CC3C6;
  --good: var(--teal); --warn: var(--gold); --bad: var(--red); --none: #3A4A50;
  --c1: var(--teal); --c2: var(--orange); --c3: var(--blue); --c4: var(--plum); --c5: var(--gold);
  --font: "Jost", Futura, "Century Gothic", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body.fc-locked { overflow: hidden; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--orange); color: var(--on-orange); }
button, input, select { font: inherit; color: inherit; }
code, .m { font-family: var(--mono); font-size: 12.5px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.fc-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .fc-wrap { padding: 0 16px; } }

/* ---------- top bar: brand and section pills, stays in view ---------- */
.fc-top { position: sticky; top: 0; z-index: 20; background: rgba(20, 32, 38, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--grid); }
.fc-top .fc-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: 10px; }
.fc-brand { color: var(--ink); }
.fc-brand a { color: var(--orange); text-decoration: none; }
.fc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.fc-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.fc-nav a:hover { border-color: var(--orange); color: var(--orange); }
.fc-nav a.fc-home { background: var(--orange); border-color: var(--orange); color: var(--on-orange); font-weight: 600; }
.fc-nav a.fc-home:hover { background: #EA8C5A; color: var(--on-orange); }
@media (max-width: 900px) { .fc-top { position: static; } .fc-nav { margin-left: 0; } }

/* ---------- headline ---------- */
main.fc-wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 32px; padding-bottom: 64px; }
.fc-hero { display: flex; flex-direction: column; gap: 12px; }
.fc-hero h1 { margin: 0; max-width: 1000px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.pos { color: var(--teal); } .wrn { color: var(--gold); } .neg { color: var(--red); }
.fc-lede { margin: 0; max-width: 860px; font-size: 18px; color: var(--ink-2); }
.fc-meta, .fc-note, .fc-intro { margin: 0; font-size: 13.5px; color: var(--muted); }
.fc-intro { font-size: 14.5px; }
.fc-stack { display: flex; height: 22px; max-width: 1000px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: var(--well); }
.fc-stack i { display: block; height: 100%; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.fc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fc-legend b { color: var(--ink); font-weight: 600; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.fc-legend .ln { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.ok { --s: var(--good); } .warn { --s: var(--warn); } .error { --s: var(--bad); } .none { --s: var(--none); } .info { --s: var(--blue); }
.fc-stack i, .sw { background: var(--s, var(--none)); }
.sw.syn { background: repeating-linear-gradient(45deg, var(--well) 0 3px, var(--rule) 3px 6px); }
.sw.fsmo { background: transparent; box-shadow: inset 0 0 0 2.5px var(--gold); }

/* ---------- summary numbers ---------- */
.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 28px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fc-stat p { margin: 0; }
.fc-num { margin-top: 2px !important; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.fc-num small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.fc-sub { font-size: 13px; color: var(--muted); }

/* ---------- panels: an orange band across the top ---------- */
.fc-panel { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.fc-panel > h2 { margin: 0; padding: 12px 24px; background: var(--orange); color: var(--on-orange); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.fc-panel > h2 small { font-size: inherit; letter-spacing: .08em; font-weight: 500; color: rgba(20, 32, 38, .72); text-transform: none; }
.fc-panel.alert > h2 { background: var(--red); }
.fc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 600px) { .fc-body { padding: 18px 16px 20px; } .fc-panel > h2 { padding: 11px 16px; } }
.fc-h3 { margin: 12px 0 0; font-size: 17px; font-weight: 700; }
.fc-h3:first-child { margin-top: 0; }
.fc-h3 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.fc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 28px; align-items: start; }

/* ---------- DC tiles ---------- */
.fc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fc-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px 12px; border: 0; border-radius: 16px; text-align: left; cursor: pointer; min-height: 150px;
  background: var(--s); color: #10181C; transition: transform .12s; }
.fc-tile:hover { transform: translateY(-2px); }
.fc-tile.none { color: var(--ink); }
.fc-tile.fsmo { outline: 3px solid var(--gold); outline-offset: 3px; }
.fc-tile .g { font-size: 34px; font-weight: 700; line-height: 1; }
.fc-tile .nm { margin-top: 6px; font-size: 17px; font-weight: 700; }
.fc-tile .sc { font-size: 13px; font-weight: 500; }
.fc-tile .fc-strip { margin-top: auto; padding-top: 10px; }
.fc-strip { display: flex; gap: 2px; width: 100%; }
.fc-strip i { flex: 1; height: 12px; border-radius: 2px; background: var(--s); box-shadow: 0 0 0 1px rgba(16, 24, 28, .35); }
.fc-strip i.syn { opacity: .55; }
.fc-tile .fc-strip i.ok { background: #10181C; opacity: .28; }

/* ---------- grids of days ---------- */
.fc-matrix { overflow-x: auto; }
.fc-matrix table { border-collapse: separate; border-spacing: 3px; min-width: 760px; width: 100%; font-size: 11.5px; }
.fc-matrix th { font-weight: 500; color: var(--muted); text-align: center; line-height: 1.2; }
.fc-matrix th.n { text-align: left; white-space: nowrap; padding-right: 8px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.fc-matrix td { height: 30px; min-width: 22px; border-radius: 4px; background: var(--s, var(--none)); color: #10181C; text-align: center; font-weight: 600; }
.fc-matrix td.none { color: var(--ink); }
.fc-matrix td.syn { background-image: repeating-linear-gradient(45deg, rgba(20, 32, 38, .32) 0 3px, transparent 3px 7px); }

/* ---------- charts ---------- */
.fc-chart { overflow-x: auto; }
.fc-chart svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--font); }

/* ---------- tables ---------- */
.fc-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 13.5px; color: var(--muted); }
.fc-filters label { display: inline-flex; align-items: center; gap: 8px; }
.fc-filters select, .fc-size select { min-height: 36px; padding: 0 30px 0 14px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F3EBDD' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px; }
.fc-filters select:hover, .fc-size select:hover { border-color: var(--orange); }
.fc-filters input[type=search] { min-height: 36px; width: 220px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); }
.fc-filters input[type=search]::placeholder { color: var(--muted); }
.fc-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.fc-tw { overflow-x: auto; }
table.fc-t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.fc-t th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--rule); white-space: nowrap; }
.fc-t th[data-sort] { cursor: pointer; user-select: none; }
.fc-t th[data-sort]:hover { color: var(--ink); }
.fc-arrow { margin-left: 6px; color: var(--orange); font-size: 10px; opacity: .55; letter-spacing: 0; }
.fc-t th[aria-sort="ascending"] .fc-arrow, .fc-t th[aria-sort="descending"] .fc-arrow { opacity: 1; }
.fc-t td { padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; white-space: nowrap; }
.fc-t td.wrap { white-space: normal; min-width: 240px; }
.fc-t .r { text-align: right; }
/* figures in the body font with even-width digits; only paths stay in the code font */
.fc-t .m { font-family: var(--font); font-size: inherit; }
.fc-t td.wrap.m { font-family: var(--mono); font-size: 12px; }
.fc-t tbody tr:hover > td { background: rgba(243, 235, 221, .03); }
.fc-t tr.fc-x { cursor: pointer; }
.fc-t tr.fc-x > td:first-child::before { content: '›'; display: inline-block; width: 14px; color: var(--orange); font-weight: 700; transition: transform .15s; }
.fc-t tr.fc-x[aria-expanded="true"] > td:first-child::before { transform: rotate(90deg); }
.fc-t tr.fc-x[aria-expanded="true"] > td { background: var(--well); }
.fc-t tr.fc-detail > td { background: var(--bg); padding: 12px 16px 16px; white-space: normal; }
.fc-inner { font-size: 13px; }
.fc-empty { color: var(--muted); text-align: center; padding: 24px !important; }
/* pages */
.fc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: 13.5px; color: var(--muted); }
.fc-range b { color: var(--ink); font-weight: 600; }
.fc-pgr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fc-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fc-pages button { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1.5px solid transparent; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.fc-pages button:hover:not([disabled]) { border-color: var(--orange); color: var(--orange); }
.fc-pages button[aria-current="page"] { background: var(--orange); color: var(--on-orange); }
.fc-pages button[disabled] { color: var(--rule); cursor: default; }
.fc-gap { padding: 0 4px; }
.fc-size { display: inline-flex; align-items: center; gap: 8px; }
.fc-all { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.fc-all:hover { border-color: var(--gold); color: var(--gold); }
.fc-all[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- pills and small marks ---------- */
.fc-pill { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--s, var(--none)); color: #10181C; }
.fc-pill.none { color: var(--ink); }
.fc-syn { color: var(--muted); font-size: 12.5px; }
.fc-live { color: var(--teal); font-size: 12.5px; font-weight: 600; }
a.dcl { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
a.dcl:hover { color: var(--orange); }

/* ---------- collections side by side ---------- */
.fc-cmp th[scope="row"] { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); white-space: normal; min-width: 220px; border-bottom: 1px solid var(--grid); }
.fc-cmp td { white-space: normal; }
.fc-cmp thead th { font-size: 13px; color: var(--ink); }
.fc-cmp .fc-grp th { padding-top: 22px; color: var(--teal); }
.fc-cmp tr.fc-diff > * { background: rgba(240, 185, 74, .07); }
.fc-dmark { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--gold); color: #10181C; }
.fc-cmp.only-diff tr.fc-same { display: none; }

/* ---------- pop-ups ---------- */
.tip { position: fixed; z-index: 100; max-width: 340px; padding: 10px 13px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.45; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.tip b { font-weight: 700; }

/* ---------- the side panel for one DC ---------- */
.fc-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 16, 19, .6); }
.fc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(640px, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-left: 1px solid var(--rule);
  padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; outline: none; }
@media (max-width: 600px) { .fc-drawer { padding: 18px 16px 40px; } }
.fc-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fc-dhead h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.fc-dhead p { margin: 6px 0 0; color: var(--muted); }
.fc-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.fc-close:hover { border-color: var(--orange); color: var(--orange); }
.fc-grade { display: flex; align-items: center; gap: 16px; }
.fc-grade .g { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--s); color: #10181C; font-size: 36px; font-weight: 700; }
.fc-grade p { margin: 6px 0 0; color: var(--ink-2); }
.fc-pn { display: flex; justify-content: space-between; gap: 10px; }
.fc-pn a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.fc-pn a:hover { border-color: var(--orange); color: var(--orange); }
.fc-dsec { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--grid); }
.fc-dl { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; margin: 0; font-size: 14px; }
.fc-dl dt, .fc-dl dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--grid); }
.fc-dl dt { color: var(--muted); }
.fc-bars { display: flex; flex-direction: column; gap: 8px; }
.fc-bar { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 10px; font-size: 13.5px; }
.fc-bar > span:last-child { text-align: right; color: var(--muted); }
.fc-bar i { display: block; height: 10px; border-radius: 999px; background: var(--well); overflow: hidden; }
.fc-bar i b { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
.fc-bar.total { font-weight: 700; }
.fc-bar.total i b { background: var(--orange); }
.fc-bar.total > span:last-child { color: var(--ink); }
.fc-brk td { padding: 6px 0; }
.fc-drawer .fc-matrix table { min-width: 560px; }
.fc-attn { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.fc-attn li { padding: 8px 12px; border-radius: 10px; background: var(--surface); border-left: 0; }
.fc-attn li b { display: block; color: var(--s, var(--ink)); }
details summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
details pre { overflow: auto; font: 12px/1.5 var(--mono); color: var(--ink-2); background: var(--surface); padding: 12px; border-radius: 12px; }

/* ---------- about, errors ---------- */
.fc-about { padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; max-width: 900px; }
.fc-about h2 { margin-bottom: 8px; }
.fc-about p { margin: 0 0 8px; }
.fc-err { max-width: 720px; margin: 64px auto; padding: 0 24px; }
