/* Lanka Vitals: colours from the Sri Lanka flag (maroon, saffron, teal), warm-neutral ground. */
:root {
  --maroon: #8d153a; --saffron: #d97706; --teal: #00675e; --gold: #c99a06; --ink: #1f1a17;
  --muted: #6b625c; --line: #e4ddd6; --panel: #ffffff; --ground: #f7f4f1; --soft: #f3ece6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink);
       font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }

.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .bar { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap;
            align-items: baseline; gap: 6px 28px; }
.brand { font-family: "Source Serif 4", Georgia, serif; font-size: 24px; color: var(--maroon);
         text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.asof { color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-bottom-color: var(--maroon); color: var(--maroon); }

h2.sec { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 22px; margin: 28px 0 12px;
         padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.lede { color: var(--muted); margin: -4px 0 14px; max-width: 75ch; line-height: 1.5; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px;
         background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tile { background: var(--panel); padding: 12px 16px; }
.tile .k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 600; margin: 2px 0;
           font-variant-numeric: tabular-nums; }
.tile .v small { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.tile .f { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile .f b { color: var(--ink); font-weight: 500; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 8px; min-width: 0; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.card .note { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px 24px; align-items: end; }
@media (max-width: 760px) { .controls { grid-template-columns: 1fr; } .nav { margin-left: 0; } }
.lab { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.radio label { margin-right: 18px; font-size: 14px; }
.btn { background: var(--maroon); color: #fff; border: 0; border-radius: 4px; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.btn:hover { background: #6f0f2d; }

table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--panel); }
table.t th { font-size: 12px; color: var(--muted); font-weight: 500; text-align: right; padding: 6px 8px;
             border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.t td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; white-space: normal; }
table.t td.m { color: var(--muted); font-size: 13px; }
table.t tr:hover td { background: var(--soft); }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }

.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 18px; border: 2px solid; }
.pill.out { color: var(--saffron); background: #fdf1e3; }
.pill.in { color: var(--teal); background: #e3f3f1; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 20px; margin: 0; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }

.foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.foot a { color: var(--maroon); }

/* Dash controls in the palette */
input[type=radio], input[type=checkbox] { accent-color: var(--maroon); }
.rc-slider-track, .rc-slider-track-1 { background-color: var(--maroon) !important; }
.rc-slider-handle { border-color: var(--maroon) !important; background-color: var(--maroon) !important; }
.rc-slider-handle:focus, .rc-slider-handle:hover { box-shadow: 0 0 0 4px rgba(141,21,58,.18) !important; }
.rc-slider-dot-active { border-color: var(--maroon) !important; }

.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.radio.sw label { font-size: 13px; margin-right: 12px; color: var(--muted); }
