/* AD Report # 11 · Forecast (PKI - 1 x AD Integrated CA)
 * Hand-written for this report (not generated by Build-ReportStyles.ps1), in the Forecast style of Reports # 1 and # 7:
 * deep slate, cream type, orange panel bands, pill controls, Jost. Dark only.
 * Built from the earlier Swiss editorial sheet: the layout rules are kept and restyled; the Forecast rules are at the end.
 * --red is a failure, --amb a warning or "30 days or less", --ok the colour of what is fine, --accent the orange. */
@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@500;700&display=swap");
:root {
  --bg: #142026; --surface: #1A2A31; --well: #22323A; --track: #2C3A3F; --line: #2C3A3F; --rule: #3B4A50;
  --tx: #F3EBDD; --tx2: #E2D9C9; --mut: #B9B2A4;
  --red: #EC6A5C; --amb: #F0B94A; --amb-tx: #F0B94A; --ok: #5AA3A6; --blue: #6F9AE0; --accent: #E07A45; --on-accent: #142026; --on-red: #10181C;
  --shadow: rgba(0, 0, 0, 0.5); --radius: 22px;
  --font: "Jost", Futura, "Century Gothic", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 14px; line-height: 1.4; }
a { color: var(--tx); text-decoration: none; }
a:hover { color: var(--red); }
a.u { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.u:hover { text-decoration-color: var(--red); }
.mono, code { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.narrow { font-family: var(--font); }
.wrap { max-width: 1400px; margin: 0 auto; padding: 24px 24px 56px; display: flex; flex-direction: column; gap: 30px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* masthead */
.mast { display: flex; flex-direction: column; gap: 14px; }
.mast-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.mast-left { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 36px; }
.brand { display: flex; flex-direction: column; }
.brand .crumb { font-family: var(--font); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; }
.brand .crumb a { color: var(--mut); }
.brand .crumb a:hover { color: var(--red); }
.brand b { font-weight: 700; font-size: 34px; line-height: 0.95; letter-spacing: -0.02em; }
.brand b a { color: inherit; }
.brand small { font-family: var(--font); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.pages { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 700; font-size: 14px; }
.pages a { padding: 10px 0 3px; border-bottom: 3px solid transparent; }
.pages a[aria-current="page"] { border-bottom-color: var(--red); }
.mast-tools { display: flex; align-items: center; gap: 16px; }
.rev { font-family: var(--font); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
  min-height: 36px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.rule6 { height: 6px; background: var(--tx); }

/* the page title */
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
h1.title { margin: 0; font-weight: 700; font-size: clamp(64px, 10vw, 140px); line-height: 0.8; letter-spacing: -0.05em; }
.lede { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.4; font-weight: 500; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; border-top: 1px solid var(--tx); border-bottom: 1px solid var(--tx); padding: 12px 0; }
.strip > div { display: flex; flex-direction: column; min-width: 0; }
.strip span { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.lab, .strip small, .kvlist small { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }

/* section heads: a 2px rule with a short red bar under it */
.sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 12px; }
.sec-head { display: flex; flex-direction: column; gap: 5px; border-top: 2px solid var(--tx); }
.sec-head::before { content: ""; width: 44px; height: 5px; background: var(--red); }
.sec-head > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; }
.sec-head h2 { margin: 0; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.sec-head.sm::before { width: 40px; }
.sec-head.sm h2 { font-size: 20px; }
.sec-head .note { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
h3 { margin: 6px 0 0; font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.note { font-size: 12px; color: var(--mut); margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 40px 56px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } .wrap { padding: 16px 16px 40px; } }
#main { display: flex; flex-direction: column; gap: 34px; }

/* scores */
.scores { display: flex; flex-direction: column; gap: 8px; }
.scores-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
.score { display: flex; align-items: flex-end; gap: 10px; }
.score .v { font-weight: 700; font-size: 120px; line-height: 0.78; letter-spacing: -0.05em; }
.score .g { display: flex; flex-direction: column; padding-bottom: 4px; }
.score .g b { font-weight: 700; font-size: 34px; line-height: 1; }
.score.small .v { font-size: 56px; line-height: 0.8; letter-spacing: -0.04em; }
.score.small .g { padding-bottom: 0; }
.score.small .g b { font-size: 20px; }
.score.bad .v, .score.bad .g b { color: var(--red); }
svg.ticks { width: 100%; height: auto; display: block; }
.tickrow { display: flex; flex-direction: column; gap: 3px; }
.tick-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tick-lab b { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fig { border-top: 3px solid var(--tx); padding-top: 6px; display: flex; flex-direction: column; min-width: 0; }
.fig .v { font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.fig .sub, .sub { font-size: 12px; color: var(--mut); }
.fig a:hover .v { color: var(--red); }
.c-red { color: var(--red); } .c-amb { color: var(--amb-tx); } .c-mut { color: var(--mut); } .c-ink { color: var(--tx); }

/* the CA hierarchy, numbered like a magazine list */
.cas { display: flex; flex-direction: column; }
.ca { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ca .n { font-weight: 700; font-size: 44px; line-height: 0.9; letter-spacing: -0.04em; }
.ca .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kicker { font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.ca .nm { font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.ca .facts { font-size: 13px; font-weight: 500; }
.kvlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 4px; }
.kvlist > div { display: flex; flex-direction: column; min-width: 0; }
.kvlist span { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .kvlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tplrow { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 6px; font-size: 13px; }
.tplrow a { font-weight: 700; }
.tplrow span.n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mut); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; align-items: center; }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; display: inline-block; flex: none; background: var(--tx); }
.sw.red { background: var(--red); } .sw.amb { background: var(--amb); } .sw.grey { background: var(--line); } .sw.hollow { background: transparent; box-shadow: inset 0 0 0 1px var(--tx); }

/* the chain of trust on the Overview (Report 10's Hierarchy graphic, in ink and red) */
.chain { display: grid; grid-template-columns: minmax(230px, 1fr) 84px minmax(250px, 1.1fr) 84px minmax(330px, 1.5fr); align-items: center; padding: 14px 0 4px; }
.node-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.node { box-shadow: inset 0 0 0 2px var(--tx); border-top: 6px solid var(--tx); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.node .n-t { font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.node .n-d { display: flex; flex-direction: column; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--tx2); }
.n-flag { display: flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wire { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); align-self: center; margin-top: -24px; }
.wire i { width: 100%; height: 0; border-top: 2px solid var(--tx); position: relative; }
.wire i::after { content: ""; position: absolute; right: -1px; top: -6px; border: 5px solid transparent; border-left: 8px solid var(--tx); border-right: 0; }
.fan { border-left: 2px solid var(--tx); display: flex; flex-direction: column; gap: 6px; padding: 2px 0; align-self: center; }
.fan > div { display: flex; align-items: center; }
.fan i { width: 16px; border-top: 2px solid var(--tx); flex: none; }
.fan a { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(110px, auto); gap: 10px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 6px 0 6px 10px; font-size: 13px; min-width: 0; }
.fan a:hover b { color: var(--red); }
.fan b { font-weight: 700; overflow-wrap: anywhere; }
.fan .cnt { text-align: right; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--tx); }
.fan a > span:last-child { font-size: 12px; }
@media (max-width: 1100px) {
  .chain { grid-template-columns: minmax(0, 1fr); }
  .wire, .fan { margin-top: 0; }
  .wire { flex-direction: row; justify-content: flex-start; height: 44px; padding-left: 24px; gap: 10px; }
  .wire i { width: 0; height: 100%; border-top: 0; border-left: 2px solid var(--tx); order: -1; }
  .wire i::after { right: auto; left: -7px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 8px solid var(--tx); border-bottom: 0; }
}

/* charts */
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { font-family: var(--font); font-size: 10px; fill: var(--tx); }
svg.chart text.v { font-weight: 700; }
svg.chart line.g { stroke: var(--track); }
svg.chart rect[data-tip]:hover, svg.chart circle[data-tip]:hover { opacity: 0.75; }
svg.chart circle[data-tip] { cursor: default; }
.bar-life { display: flex; align-items: center; gap: 10px; }
.bar-life svg { width: 160px; height: 10px; flex: none; display: block; }
.bar-life b { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 5px; }
.stack .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stack .top b { font-weight: 700; }
.stack .top span { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.stack svg { width: 100%; height: 18px; display: block; }

/* needs attention: a ruled list in two columns */
.attn { list-style: none; margin: 0; padding: 0; columns: 2 520px; column-gap: 56px; }
.attn li { break-inside: avoid; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.attn li[data-tip] { cursor: pointer; }
.attn li[data-tip]:hover b, .attn li[data-tip]:focus-visible b { color: var(--red); }
.attn .w { display: flex; align-items: flex-start; gap: 5px; padding-top: 2px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.attn .w .sw { margin-top: 2px; }
.attn .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attn .t span { color: var(--mut); overflow-wrap: anywhere; }

/* tables: ruled, 3px rule under the head; search, filters and CSV above, a paged footer below (as in Report 3) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dt { gap: 8px; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tools-row .search { flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; gap: 8px; box-shadow: inset 0 0 0 1px var(--tx); padding: 0 10px; min-height: 40px; color: var(--mut); }
.tools-row .search:focus-within { box-shadow: inset 0 0 0 2px var(--red); }
.tools-row .search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 13px var(--font); color: var(--tx); padding: 8px 0; outline: none; }
.tools-row .pick select { font: 600 12px var(--font); color: var(--tx); background: var(--bg); border: 0; box-shadow: inset 0 0 0 1px var(--tx); padding: 0 10px; min-height: 40px; border-radius: 0; cursor: pointer; }
.tools-row .pick select:focus { outline: 2px solid var(--red); outline-offset: 0; }
.csv { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); letter-spacing: 0.04em; color: var(--tx); background: transparent; border: 0; box-shadow: inset 0 0 0 2px var(--tx); padding: 0 12px; min-height: 36px; cursor: pointer; }
.csv:hover { color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 2px; }
.pager .range { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); }
.pager .pg-right { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.pager .pages { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 8px; border: 0; background: transparent; font: 600 13px var(--font); color: var(--tx); cursor: pointer; }
.pager button:hover { color: var(--red); }
.pager button[aria-current="page"] { background: var(--tx); color: var(--bg); }
.pager button.edge { font-family: var(--font); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.pager button.edge[disabled] { color: var(--mut); opacity: 0.45; cursor: default; }
.pager .gap { color: var(--mut); padding: 0 4px; }
.pg-size { display: inline-flex; align-items: center; gap: 0; box-shadow: inset 0 0 0 1px var(--tx); }
.pager .pg-size button { min-width: 0; height: 34px; padding: 0 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.pager .pg-size button[aria-pressed="true"] { background: var(--tx); color: var(--bg); }
.pg-sel select { appearance: none; -webkit-appearance: none; height: 34px; border: 0; border-radius: 0; background: transparent; padding: 0 22px 0 10px; font: 600 12px var(--font); color: var(--tx); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 11px center, right 7px center; background-size: 4px 4px; background-repeat: no-repeat; }
.pg-sel select:hover { color: var(--red); }
.pg-sel.on select { background-color: var(--tx); color: var(--bg); }
.pg-sel select option { color: var(--tx); background: var(--bg); }
@media (max-width: 560px) { .pager .pg-right { justify-content: flex-start; margin-left: 0; } .csv { margin-left: 0; } }
table.t th.ctr, table.t td.ctr { text-align: center; }
table.t td.ink { color: var(--tx); }
.tscroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx);
  padding: 6px 12px 6px 0; border-bottom: 3px solid var(--tx); white-space: nowrap; background: var(--bg); }
table.t th + th, table.t td + td { padding-left: 12px; }
table.t th.s { cursor: pointer; }
table.t th.s:hover { color: var(--red); }
table.t th[aria-sort="ascending"]::after { content: " ↑"; color: var(--red); }
table.t th[aria-sort="descending"]::after { content: " ↓"; color: var(--red); }
table.t td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.n, table.t th.n { text-align: right; }
table.t td.n { font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
table.t td.m { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
table.t td.b { font-weight: 700; }
table.t td.lab { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); }
table.t td.wrapc { word-break: break-all; }
table.t tbody tr:hover td { background: var(--well); }
table.t tfoot td { border-bottom: 3px solid var(--tx); font-weight: 800; }
.more { align-self: flex-start; font: 600 12px var(--font); color: var(--tx); background: transparent; border: 0; box-shadow: inset 0 0 0 2px var(--tx); padding: 0 14px; min-height: 36px; cursor: pointer; }
.more:hover { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }

/* status words with a square */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 9px; height: 9px; display: inline-block; flex: none; background: var(--tx); }
.st.bad { color: var(--red); } .st.bad::before { background: var(--red); }
.st.warn::before { background: var(--amb); }
.st.off { color: var(--mut); } .st.off::before { background: var(--line); }
.src { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--mut); }
.src.live { box-shadow: inset 0 0 0 1px var(--tx); color: var(--tx); }
.escbox { display: inline-block; width: 11px; height: 11px; background: var(--tx); }
.escbox.bad { background: var(--red); }

/* DC matrix on Secure Ports */
.dcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 18px; }
.dcgrid > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.dcgrid .nm { display: flex; flex-direction: column; min-width: 0; }
.dcgrid .nm b { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; }
.dcgrid .nm b.bad { color: var(--red); }
.dcgrid .nm span { font-size: 11px; color: var(--mut); }
.sq { display: flex; gap: 3px; }
.sq i { width: 10px; height: 14px; display: block; }
.sq i.p { background: var(--tx); } .sq i.f { background: var(--red); } .sq i.u { box-shadow: inset 0 0 0 1px var(--tx); }

/* key / value (CA side by side, template detail) */
.kv { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); font-size: 13px; }
.kv > div { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); padding-top: 10px; }
.kv > div:nth-child(even) { font-weight: 600; }
.kv .m { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; word-break: break-all; }
table.t.side th.cah { font-family: var(--font); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-transform: none; }

/* footer */
.foot { border-top: 6px solid var(--tx); padding-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 12px; }
.foot .fsrc { font-weight: 600; }
.loading { color: var(--mut); padding: 40px 0; font-weight: 600; }
.err { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); padding: 12px 14px; font-weight: 600; }

/* pop-up cards (data-tip), editorial: a black frame, ruled rows */
.tt { border-bottom: 1px dotted var(--mut); cursor: default; }
.tt:hover, .tt:focus-visible { color: var(--red); border-bottom-color: var(--red); }
[data-tip] { cursor: default; }
a[data-tip], .attn li[data-tip] { cursor: pointer; }
.pki-tip { position: fixed; z-index: 60; width: 360px; max-width: calc(100vw - 16px); padding: 12px 14px; background: var(--bg); box-shadow: 0 0 0 2px var(--tx), 0 18px 44px var(--shadow);
  font-family: var(--font); font-size: 13px; line-height: 1.4; color: var(--tx); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.12s; }
.pki-tip.on { opacity: 1; visibility: visible; }
.pki-tip .hd { display: flex; align-items: center; gap: 8px; border-bottom: 3px solid var(--tx); padding-bottom: 6px; }
.pki-tip .hd b { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; line-height: 1.2; }
.pki-tip .chip { margin-left: auto; flex: none; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pki-tip .dot { flex: none; width: 9px; height: 9px; display: inline-block; background: var(--tx); }
.pki-tip .dot.warn { background: var(--amb); } .pki-tip .dot.bad { background: var(--red); } .pki-tip .dot.off { background: var(--line); }
.pki-tip .chip.bad { color: var(--red); } .pki-tip .chip.off { color: var(--mut); }
.pki-tip .loc { display: flex; align-items: center; gap: 6px; color: var(--mut); font-weight: 600; margin: 6px 0 8px; }
.pki-tip .loc img { width: 18px; height: 13px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.pki-tip .ctx { margin: 0 0 8px; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pki-tip .ctx small, .pki-tip .sec { display: block; color: var(--mut); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pki-tip .ctx div, .pki-tip .why div { display: flex; gap: 7px; align-items: flex-start; font-weight: 600; }
.pki-tip .why { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.pki-tip .why .dot, .pki-tip .ctx .dot, .pki-tip .tl .dot { margin-top: 5px; width: 7px; height: 7px; }
.pki-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 0; }
.pki-tip dt, .pki-tip dd { padding: 3px 0; border-bottom: 1px solid var(--line); }
.pki-tip dt { color: var(--mut); }
.pki-tip dd { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.pki-tip .sec { margin: 6px 0 3px; }
.pki-tip .tls { display: flex; flex-direction: column; gap: 2px; }
.pki-tip .tl { display: flex; gap: 7px; align-items: flex-start; min-width: 0; }
.pki-tip .tl b { flex: none; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pki-tip .tl .tl-s { min-width: 0; margin-left: auto; padding-left: 8px; color: var(--mut); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pki-tip .txt { margin: 6px 0 0; color: var(--tx2); overflow-wrap: anywhere; }
.pki-tip .more { margin-top: 4px; color: var(--mut); font-weight: 600; box-shadow: none; padding: 0; min-height: 0; }
.pki-tip .foot { margin-top: 8px; padding-top: 6px; border-top: 3px solid var(--tx); color: var(--red); font-weight: 700; font-size: 12px; }

/* ================= Forecast ================= */
body { font-size: 15px; line-height: 1.5; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--amb); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* top bar: brand line, then page pills */
.mast { gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mast-row { align-items: baseline; }
.brand { margin: 0; display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tx); }
.brand a { color: var(--accent); }
.rev { font-family: var(--font); font-size: 12px; letter-spacing: .12em; color: var(--mut); }
.pages { gap: 6px; font-weight: 500; font-size: 14px; }
.pages a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 999px; }
.pages a:hover { border-color: var(--accent); color: var(--accent); }
.pages a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pages a.home { border-color: var(--tx); }

/* the page title and lede */
h1.title { font-weight: 600; font-size: clamp(56px, 8vw, 110px); line-height: .9; letter-spacing: -0.03em; }
.lede { max-width: 620px; color: var(--tx2); font-weight: 400; font-size: 18px; }
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.lab, .strip small, .kvlist small { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ok); }

/* sections: panels with an orange band across the top */
#main { gap: 28px; }
#main section.sec, #main .grid2 > .sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 24px; gap: 14px; overflow: hidden; }
#main .grid2 > .sec:not(:has(> .sec-head:first-child)) { padding-top: 24px; }
.grid2 { gap: 28px; }
.sec-head { margin: 0 -24px; padding: 12px 24px; border-top: 0; background: var(--accent); color: var(--on-accent); }
.sec-head::before { display: none; }
.sec-head h2, .sec-head.sm h2 { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sec-head .note { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: none; color: rgba(20, 32, 38, .75); }
.sec-head a { color: var(--on-accent); text-decoration: underline; }
h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ok); }
@media (max-width: 640px) { #main section.sec, #main .grid2 > .sec { padding: 0 16px 18px; } .sec-head { margin: 0 -16px; padding: 11px 16px; } }

/* scores and figures */
.score .v { font-weight: 700; color: var(--ok); }
.score .g b { color: var(--ok); }
.score.bad .v, .score.bad .g b { color: var(--red); }
.fig { border-top: 0; padding-top: 0; }
.fig .v { font-weight: 700; }
.fig a:hover .v { color: var(--accent); }
.c-red { color: var(--red); } .c-amb { color: var(--amb); }

/* the CA list and the chain of trust */
.ca { border-bottom-color: var(--line); }
.ca .n { color: var(--accent); font-weight: 700; }
.kicker { color: var(--ok); font-weight: 600; letter-spacing: .16em; }
.node { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--rule); border-top: 0; border-radius: 16px; overflow: hidden; padding-top: 0; }
.node::before { content: ""; display: block; height: 6px; margin: 0 -16px 6px; background: var(--accent); }
.wire i, .fan i { border-top-color: var(--rule); }
.wire i::after { border-left-color: var(--rule); }
.fan { border-left-color: var(--rule); }
.fan a:hover b { color: var(--accent); }
@media (max-width: 1100px) { .wire i { border-left-color: var(--rule); } .wire i::after { border-top-color: var(--rule); } }

/* status marks: teal for fine */
.sw, .escbox, .st::before, .sq i.p, .pki-tip .dot { background: var(--ok); }
.sw.red, .escbox.bad, .st.bad::before, .sq i.f, .pki-tip .dot.bad { background: var(--red); }
.sw.amb, .st.warn::before, .pki-tip .dot.warn { background: var(--amb); }
.sw.grey, .st.off::before, .pki-tip .dot.off { background: var(--rule); }
.sw.hollow, .sq i.u { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tx); }
.sw { border-radius: 3px; } .st::before { border-radius: 3px; } .escbox { border-radius: 3px; } .sq i { border-radius: 2px; }
.src { border-radius: 999px; padding: 1px 8px; box-shadow: inset 0 0 0 1px var(--rule); }
.src.live { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.attn li { border-bottom-color: var(--line); }
.attn li[data-tip]:hover b, .attn li[data-tip]:focus-visible b { color: var(--accent); }

/* tables: pill controls, a light rule under the head */
.tools-row .search { box-shadow: inset 0 0 0 1.5px var(--tx); border-radius: 999px; padding: 0 16px; }
.tools-row .search:focus-within { box-shadow: inset 0 0 0 2px var(--amb); }
.tools-row .search input { font: 400 14px var(--font); }
.tools-row .pick select { font: 500 13px var(--font); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--rule); border-radius: 999px; padding: 0 16px; }
.csv, .more { border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--tx); font: 600 13px var(--font); padding: 0 16px; }
.csv:hover, .more:hover { color: var(--amb); box-shadow: inset 0 0 0 1.5px var(--amb); }
.pager .range { font-size: 13px; letter-spacing: .02em; text-transform: none; }
.pager button { border-radius: 999px; font: 600 13px var(--font); }
.pager button:hover { color: var(--accent); }
.pager button[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.pager button.edge { font-size: 13px; letter-spacing: .02em; text-transform: none; }
.pg-size { box-shadow: inset 0 0 0 1.5px var(--rule); border-radius: 999px; overflow: hidden; }
.pager .pg-size button { border-radius: 999px; }
.pager .pg-size button[aria-pressed="true"], .pg-sel.on select { background: var(--accent); color: var(--on-accent); }
.pg-sel select { font: 600 12px var(--font); border-radius: 999px; }
.pg-sel select:hover { color: var(--accent); }
.pg-sel select option { background: var(--surface); color: var(--tx); }
table.t th { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--mut); border-bottom: 1.5px solid var(--rule); background: transparent; padding-top: 10px; padding-bottom: 10px; }
table.t th.s:hover { color: var(--tx); }
table.t th[aria-sort="ascending"]::after, table.t th[aria-sort="descending"]::after { color: var(--accent); }
table.t td { border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
table.t td.n { font-family: var(--font); font-variant-numeric: tabular-nums; }
table.t td.lab { color: var(--mut); }
table.t tbody tr:hover td { background: rgba(243, 235, 221, .04); }
table.t tfoot td { border-bottom: 1.5px solid var(--rule); font-weight: 700; }
table.t.side th.cah { font-weight: 700; font-size: 20px; color: var(--tx); }
.kv > div { border-bottom-color: var(--line); }
.kv > div:nth-child(odd) { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--mut); }
.dcgrid > div { border-bottom-color: var(--line); }
.dcgrid .nm b.bad { color: var(--red); }

/* footer, errors */
.foot { border-top: 1px solid var(--rule); padding-top: 14px; color: var(--mut); font-size: 13px; }
.err { box-shadow: inset 0 0 0 2px var(--red); border-radius: 14px; }

/* pop-up cards: cream, dark text, rounded */
.pki-tip { --tx: #142026; --tx2: #2A3A40; --mut: #5A635F; --line: #D9D0BF; --red: #B83A2E; --amb: #B97A00; --ok: #2F7A7D;
  background: #F3EBDD; color: #142026; border-radius: 14px; box-shadow: 0 18px 44px var(--shadow); }
.pki-tip .hd { border-bottom: 1.5px solid #142026; }
.pki-tip .foot { border-top: 1.5px solid #142026; color: #A94A1C; }
/* a section inside a section (a template's permissions) is not a panel of its own */
#main .sec .grid2 > .sec { background: transparent; border: 0; border-radius: 0; padding: 0; }
