.reservoir-detail { --rd-muted: #526f6d; }
.rd-breadcrumb { display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:12px; color:var(--rd-muted); margin:0 0 26px; }
.rd-breadcrumb a { color:var(--teal); text-decoration:none; font-weight:700; }
.rd-breadcrumb a:hover { text-decoration:underline; }
.rd-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:26px; }
.rd-heading h1 { margin:0; font-size:clamp(34px,4.5vw,58px); letter-spacing:-.05em; line-height:1.1; overflow-wrap:anywhere; }
.rd-heading p:not(.eyebrow) { color:var(--rd-muted); line-height:1.6; margin:12px 0 0; font-size:14px; }
.rd-outline { display:inline-flex; align-items:center; gap:22px; border:1px solid #b7cdc4; border-radius:12px; padding:12px 16px; color:var(--teal); text-decoration:none; font-size:12px; font-weight:700; flex-shrink:0; transition:background .2s,transform .2s; }
.rd-outline:hover { background:var(--mint); transform:translateY(-2px); }
.rd-overview { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); gap:18px; margin-bottom:24px; }
.rd-current { display:grid; grid-template-columns:minmax(0,1fr) 200px; align-items:center; gap:24px; padding:30px; background:linear-gradient(125deg,#fff 35%,#eaf5ee); overflow:hidden; }
.rd-current .eyebrow { color:var(--teal); }
.rd-main-value { margin:16px 0 4px; font-family:Manrope,system-ui,sans-serif; font-size:clamp(40px,4.7vw,64px); line-height:1.1; letter-spacing:-.06em; font-weight:800; }
.rd-main-value>small { font-size:26px; color:var(--teal); margin-left:5px; }
.rd-no-value { display:block; font-size:28px; letter-spacing:-.03em; }
.rd-cut { font-size:13px; color:var(--rd-muted); margin:12px 0 16px; }
.rd-tag { display:inline-block; font-size:11px; font-weight:700; line-height:1.5; color:#69511d; background:#f7ebc9; border:1px solid #e4d395; padding:6px 10px; border-radius:7px; margin-bottom:8px; }
.rd-source { font-size:12px; line-height:1.6; color:var(--rd-muted); max-width:260px; margin:8px 0; }
.rd-freshness { font-size:11px; color:var(--rd-muted); margin:8px 0 12px; }
.reservoir-detail .rd-text-link { color:var(--teal); font-size:12px; font-weight:700; text-underline-offset:3px; }
.rd-gauge { margin:0; width:100%; }
.rd-tank { position:relative; isolation:isolate; height:216px; width:186px; margin:auto; background:#edf5f0; border:1px solid #a9cbbf; border-radius:18px 18px 64px 64px; overflow:hidden; box-shadow:inset 0 0 0 6px #ffffff6e,0 18px 32px #32695b12; }
.rd-tank-empty { background:repeating-linear-gradient(135deg,#e9eeeb 0 9px,#f7f9f7 9px 18px); }
.rd-water { position:absolute; inset:auto 0 0; height:var(--fill); background:linear-gradient(180deg,#179788d9,#0b6765); z-index:2; overflow:hidden; animation:rd-fill 1.4s cubic-bezier(.2,.7,.2,1) both; }
.rd-wave { position:absolute; top:-12px; left:-50%; width:200%; height:27px; background:#95ddbcaa; border-radius:45% 48% 44% 50%; animation:rd-wave 2s ease-in-out 2; }
.rd-wave-back { top:-19px; left:-70%; background:#dcf3da99; animation-direction:reverse; }
.rd-water-shine { position:absolute; inset:18px 18px 18px auto; width:6px; border-radius:8px; background:#ffffff18; }
.rd-mountains { position:absolute; bottom:26px; width:100%; color:#b2cbbd; z-index:1; }
.rd-tank-lines { position:absolute; inset:17px 12px 17px 38px; z-index:3; border-top:1px dashed #173b3d55; border-bottom:1px solid #ffffff66; background:linear-gradient(transparent 49.5%,#ffffff55 49.5%,#ffffff55 50%,transparent 50%); }
.rd-tank>span { position:absolute; left:9px; z-index:4; font-size:10px; font-weight:700; color:#173b3d; background:#f0f7edd9; padding:0 3px; border-radius:3px; }
.rd-tank-ref { top:10px; }.rd-tank-mid { top:calc(50% - 7px); }.rd-tank>.rd-tank-zero { bottom:14px; left:32px; }
.rd-gauge figcaption { margin:15px -3px 0; text-align:center; font-size:10px; line-height:1.6; color:var(--rd-muted); }
.rd-side { display:grid; gap:14px; }
.rd-changes { padding:22px; }.rd-changes h2 { font-size:16px; }
.rd-change { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.rd-change div { display:grid; gap:5px; }.rd-change span { font-size:12px; }.rd-change div small { font-size:10px; color:var(--rd-muted); }
.rd-change>strong { font-size:21px; white-space:nowrap; }.rd-change>strong small { font-size:11px; font-weight:500; }
.rd-changes>p { color:var(--rd-muted); font-size:10px; line-height:1.6; margin:12px 0 0; }
.rd-cut-form { padding:18px 22px; }.rd-cut-form>label { font-size:12px; font-weight:700; }
.rd-cut-form>div { display:flex; gap:8px; margin-top:10px; }.rd-cut-form input { flex:1; min-width:0; }
.rd-cut-form>a { display:block; font-size:11px; color:var(--teal); margin-top:12px; }
.reservoir-detail input[type=date] { border:1px solid #c6d8ce; border-radius:8px; padding:10px; color:var(--ink); background:white; font:500 12px 'DM Sans',system-ui,sans-serif; min-width:0; }
.rd-history { padding:26px; margin-bottom:18px; scroll-margin-top:24px; }
.rd-description { font-size:12px; color:var(--rd-muted); line-height:1.7; max-width:780px; margin:0 0 22px; }
.rd-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; padding-bottom:22px; border-bottom:1px solid var(--line); }
.rd-filters label { display:grid; gap:6px; font-size:11px; color:var(--rd-muted); font-weight:700; }
.rd-filters .button { min-height:37px; }.rd-ranges { display:flex; flex-wrap:wrap; gap:5px; margin-left:auto; }
.rd-ranges button { padding:10px 11px; border:1px solid #c6d8ce; border-radius:8px; color:var(--teal); background:white; font:600 11px 'DM Sans',system-ui,sans-serif; cursor:pointer; }
.rd-ranges button:hover,.rd-ranges button[aria-pressed=true] { background:var(--teal); border-color:var(--teal); color:white; }
.rd-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:22px 0 24px; }
.rd-stat-grid>div { display:grid; align-content:start; gap:7px; padding:0 16px; border-left:1px solid var(--line); }
.rd-stat-grid>div:first-child { padding-left:0; border:0; }.rd-stat-grid span { font-size:11px; color:var(--rd-muted); }.rd-stat-grid strong { font-size:25px; letter-spacing:-.04em; }
.rd-stat-grid strong small { font-size:12px; font-weight:500; }.rd-stat-grid>div>small { font-size:10px; color:var(--rd-muted); line-height:1.5; }
.rd-chart-legend { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; font-size:11px; color:var(--rd-muted); margin-bottom:10px; }
.rd-chart-legend span { display:flex; gap:8px; align-items:center; }.rd-chart-legend i { width:16px; height:3px; background:var(--teal-2); }.rd-chart-legend .rd-ref-line { height:0; background:transparent; border-top:2px dashed #94a79a; }
.rd-chart-wrap { position:relative; min-height:220px; }
#rd-chart { display:block; width:100%; height:auto; min-height:220px; overflow:visible; touch-action:pan-y; }
#rd-chart text { font-family:'DM Sans',system-ui,sans-serif; font-size:12px; fill:var(--rd-muted); }
.rd-series { stroke-dasharray:1; stroke-dashoffset:0; animation:rd-draw 1.25s ease-out both; }
.rd-chart-empty { position:absolute; inset:0; margin:0; display:grid; align-content:center; text-align:center; background:#ffffffdc; color:var(--rd-muted); font-size:13px; line-height:1.8; }
.rd-chart-empty[hidden],.rd-explorer[hidden],#rd-point-link[hidden] { display:none; }
.rd-explorer { display:grid; grid-template-columns:minmax(0,1fr) minmax(225px,.55fr); align-items:center; gap:28px; padding:18px 20px; background:#f0f7f2; border:1px solid #d9e8de; border-radius:12px; }
.rd-day-control { display:grid; gap:10px; }.rd-day-control label { font-size:12px; font-weight:700; display:flex; justify-content:space-between; }.rd-day-control input { width:100%; margin:0; accent-color:var(--teal); cursor:pointer; min-height:24px; }
.rd-day-control small { font-size:10px; color:var(--rd-muted); line-height:1.5; }
.rd-readout { display:grid; gap:4px; border-left:1px solid #c6d8ce; padding-left:24px; min-height:86px; align-content:center; }
.rd-readout>span { font-size:11px; color:var(--rd-muted); }.rd-readout strong { font-size:24px; }.rd-readout>small { font-size:11px; color:var(--rd-muted); line-height:1.5; }.rd-readout>a { margin-top:3px; }
.rd-chart-note { font-size:11px; color:var(--rd-muted); line-height:1.7; margin:16px 0 0; }
.rd-explain { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.rd-chapter { display:block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--teal); margin-bottom:15px; }
.rd-explain h2 { font-size:17px; }.rd-explain p { font-size:12px; line-height:1.8; color:var(--rd-muted); margin:12px 0; }
.rd-readings th { font-size:11px; }.rd-readings td { font-size:12px; }.rd-readings td a { text-underline-offset:3px; }
.rd-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:22px; padding:18px; font-size:12px; }
.rd-pagination a { color:var(--teal); font-weight:700; }.rd-pagination span { color:var(--rd-muted); }
.rd-enter { animation:rd-enter .65s ease-out both; }.rd-changes.rd-enter { animation-delay:.1s; }.rd-history.rd-enter { animation-delay:.15s; }
@keyframes rd-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes rd-fill { from { height:0; } to { height:var(--fill); } }
@keyframes rd-wave { 0%,100% { transform:translateX(-4%) rotate(-2deg); } 50% { transform:translateX(8%) rotate(2deg); } }
@keyframes rd-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@media(max-width:1200px) { .rd-current { grid-template-columns:minmax(0,1fr) 158px; gap:16px; padding:24px; }.rd-tank { width:148px; height:194px; }.rd-main-value { font-size:44px; }.rd-ranges { margin-left:0; } }
@media(max-width:760px) { .rd-overview { grid-template-columns:1fr; }.rd-current { grid-template-columns:minmax(0,1fr) 180px; }.rd-tank { width:166px; height:208px; }.rd-side { grid-template-columns:1fr 1fr; align-items:start; }.rd-heading { align-items:flex-start; }.rd-heading .rd-outline { display:none; }.rd-stat-grid { grid-template-columns:1fr 1fr; row-gap:22px; }.rd-stat-grid>div:nth-child(3) { padding-left:0; border:0; }.rd-explain { grid-template-columns:1fr; } }
@media(max-width:500px) { .rd-heading h1 { font-size:38px; }.rd-current { padding:22px 18px; grid-template-columns:minmax(0,1fr) 116px; gap:10px; }.rd-main-value { font-size:38px; }.rd-main-value>small { font-size:19px; }.rd-current .eyebrow { font-size:9px; }.rd-tank { width:110px; height:172px; border-radius:14px 14px 42px 42px; }.rd-gauge figcaption { font-size:9px; }.rd-side { grid-template-columns:1fr; }.rd-history { padding:20px 16px; }.rd-history .panel-head { align-items:flex-start; flex-direction:column; gap:12px; }.rd-filters label { flex:1; }.rd-filters input { width:100%; }.rd-filters>.button { width:100%; }.rd-ranges { width:100%; }.rd-ranges button { flex:1; padding:10px 8px; }.rd-explorer { grid-template-columns:1fr; gap:16px; padding:16px; }.rd-readout { border-left:0; border-top:1px solid #c6d8ce; padding:14px 0 0; }.rd-stat-grid strong { font-size:23px; }.rd-chart-legend { font-size:10px; }.rd-chart-wrap,#rd-chart { min-height:190px; }.rd-readings .panel-head { flex-direction:column; align-items:flex-start; gap:8px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }.reservoir-detail * { animation:none!important; transition:none!important; }.rd-outline:hover { transform:none; } }
