/* PRF tab = the Rainfall Dashboard's grower profile (RN-0004, 2026-10-09).
   Every rule is scoped under .prf-dash so nothing leaks into the rest of the portal.
   Values are lifted from prf-estimator/dashboard/index.html (inline styles + helmet CSS):
   warm-ledger cream canvas, dark-green PRF stat cards, navy table heads, and the status
   palette Final #2f7d4f · Estimated #f0c419 (ink #8a6a00) · Live #f28c1e (ink #b4560c) ·
   Rain hit #bc4a40. Italic = not official yet (Estimated / Live / Upcoming), Final upright.
   Layout is container-query driven: the portal is full width, so the dashboard's
   viewport breakpoints are re-expressed as widths of the panel itself. */

.prf-dash {
  --pd-bg: var(--ec-paper); --pd-card: #f7f5ef; --pd-line: #e0dccf; --pd-frame: #ddd6c4;
  --pd-ink: #26261f; --pd-muted: #8a8678; --pd-muted2: #7c7869; --pd-faint: #a6a294;
  --pd-green: var(--ec-prf); --pd-green-line: var(--ec-af-border); --pd-sage: var(--ec-af-label); --pd-sage2: #8fa383;
  --pd-final: #2f7d4f; --pd-est: #f0c419; --pd-est-ink: #8a6a00; --pd-live: #f28c1e; --pd-live-ink: #b4560c;
  --pd-alert: #bc4a40; --pd-alert-ink: #a8403a; --pd-navy: var(--ec-navy); --pd-head: #12497e;
  container: pdash / inline-size;
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--pd-ink);
  background: var(--pd-bg);
  border: 1px solid #e3dfd3;
  border-radius: 14px;
  margin: 0.2rem 0 1.4rem;
  -webkit-font-smoothing: antialiased;
}
.prf-dash * { box-sizing: border-box; }
.prf-dash .num { font-variant-numeric: tabular-nums; }
.prf-dash .it { font-style: italic; }
/* undo the portal's global table chrome (uppercase sticky navy th, row hover) inside the canvas */
.prf-dash thead th { position: static; text-transform: none; letter-spacing: normal; }
.prf-dash tbody tr:hover { background: transparent; }
.prf-dash .pos { color: var(--pd-final); }
.prf-dash .neg { color: var(--pd-alert); }

.prf-dash .pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding: 30px 40px 56px; }
.prf-dash .pd-main { min-width: 0; container: pdmain / inline-size; }
/* finished-year / all-time views: one column, same canvas + header */
.prf-dash .pd-solo { padding: 30px 40px 40px; min-width: 0; }

/* ---------------------------------------------------------------- header + hero */
.prf-dash .pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 18px; }
.prf-dash .pd-id { min-width: 0; }
.prf-dash .pd-name { font-size: 29px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0; color: var(--pd-ink); }
.prf-dash .pd-entity { font-size: 14.5px; color: var(--pd-muted2); font-weight: 500; margin-top: 4px; }
.prf-dash .pd-chips { display: flex; align-items: center; gap: 9px; margin-top: 8px; flex-wrap: wrap; }
.prf-dash .pd-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.02em; padding: 2px 8px 2px 4px; border-radius: 6px; background: var(--ec-af-tint); color: var(--pd-green); }
.prf-dash .pd-chip img { width: 14px; height: 14px; border-radius: 50%; }
.prf-dash .pd-asof { font-size: 11px; font-weight: 600; color: var(--pd-muted); }
.prf-dash .pd-seg { display: inline-flex; flex-wrap: wrap; background: #e8e4da; border: 1px solid #d2cdc1; border-radius: 9px; padding: 3px; gap: 2px; margin-top: 12px; }
.prf-dash .pd-segbtn { padding: 6px 15px; border: none; border-radius: 7px; font: 700 12.5px "Work Sans", system-ui, sans-serif; cursor: pointer; background: transparent; color: var(--pd-muted); min-height: 30px; }
.prf-dash .pd-segbtn:hover { color: var(--pd-ink); }
.prf-dash .pd-segbtn.on { background: #fff; color: var(--pd-green); box-shadow: 0 1px 2px rgba(0,0,0,0.09); }
.prf-dash .pd-segbtn:focus-visible { outline: 2px solid var(--pd-navy); outline-offset: 1px; }
.prf-dash .pd-hero { text-align: right; min-width: 240px; }
.prf-dash .pd-hero-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--pd-muted); font-weight: 700; }
.prf-dash .pd-hero-net { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.prf-dash .pd-hero-rec { font-size: 12.5px; color: var(--pd-muted2); font-weight: 500; margin-top: 2px; }
.prf-dash .pd-meter { position: relative; height: 6px; border-radius: 4px; background: #e6e2d6; margin: 9px 0 0 auto; width: 220px; }
.prf-dash .pd-meter-fill { height: 100%; border-radius: 4px; background: var(--pd-alert); }
.prf-dash .pd-meter-fill.pos { background: var(--pd-final); }
.prf-dash .pd-meter-fill.flat { background: var(--pd-muted); }
.prf-dash .pd-hero-net.flat { color: var(--pd-ink, #1f2933); }
.prf-dash .pd-meter-tick { position: absolute; top: -2px; left: 50%; width: 1.5px; height: 10px; background: var(--pd-muted); border-radius: 1px; }
.prf-dash .pd-hero-est { font-size: 11.5px; color: var(--pd-est-ink); font-weight: 600; margin-top: 7px; font-style: italic; }
.prf-dash .pd-hero-remain { font-size: 11.5px; color: var(--pd-muted); font-weight: 600; margin-top: 7px; font-style: italic; }
.prf-dash .pd-note { font-size: 12px; color: var(--pd-muted2); margin: -6px 0 14px; }

/* ------------------------------------------------- where things stand (kept, McLane) */
.prf-dash .pd-wts { background: var(--pd-card); border: 1px solid var(--pd-line); border-left: 3px solid var(--ec-gold); border-radius: 10px; padding: 14px 20px 15px; margin: 4px 0 22px; }
.prf-dash .pd-wts-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: #8a5f04; font-weight: 700; margin-bottom: 7px; }
.prf-dash .pd-wts-body { font-size: 14.5px; line-height: 1.6; color: #3a3a30; margin: 0; max-width: 130ch; }
.prf-dash .pd-wts-max { font-size: 13.5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0d6bd; color: #4a4636; }

/* ------------------------------------------------------------------ stat cards */
.prf-dash .pd-kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.prf-dash .pd-k { background: var(--pd-green); border: 1px solid var(--pd-green-line); border-radius: 12px; padding: 11px 14px 12px; color: #fff; min-width: 0; }
.prf-dash .pd-k-fe { border: 4px solid #f2c230; padding: 8px 11px 9px; box-shadow: 0 0 0 1px rgba(242, 194, 48, 0.35); }   /* RN-0009: unmistakably "estimates" */
.prf-dash .pd-k-live { border: 4px solid #f08a1c; padding: 8px 11px 9px; box-shadow: 0 0 0 1px rgba(240, 138, 28, 0.35); }  /* RN-0009: unmistakably "live" */
.prf-dash .pd-k-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pd-sage); font-weight: 700; }
.prf-dash .pd-k-big { font-size: 21px; font-weight: 800; margin-top: 2px; line-height: 1.15; color: #fff; }
.prf-dash .pd-k-acres { font-size: 10.5px; color: var(--pd-sage); font-weight: 600; margin-top: 3px; }
.prf-dash .pd-k-pair { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: flex-end; margin-top: 3px; }
.prf-dash .pd-k-base { align-items: baseline; }
.prf-dash .pd-k-r { text-align: right; }
.prf-dash .pd-k-fig { font-size: 18px; font-weight: 800; line-height: 1.15; color: #fff; }
.prf-dash .pd-k-fig.pos { color: #4ade80; }
.prf-dash .pd-k-fig.neg { color: #f87171; }
.prf-dash .pd-k-fig.live { color: #f39a2b; }
.prf-dash .pd-k-max { font-size: 14px; font-weight: 800; color: #e9dcc6; line-height: 1.15; }
.prf-dash .pd-k-sub { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pd-sage2); font-weight: 700; margin-top: 2px; }
.prf-dash .pd-curline { margin: -14px 0 22px; font-size: 11.5px; font-style: italic; color: #7a6a55; line-height: 1.5; }
.prf-dash .pd-curtag { font-weight: 800; color: var(--pd-live-ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; margin-right: 8px; font-style: normal; }
.prf-dash .pd-cl-pos { color: var(--pd-final); font-weight: 800; }
.prf-dash .pd-cl-neg { color: var(--pd-alert); font-weight: 800; }
.prf-dash .pd-cl-zero { color: var(--pd-muted2); font-weight: 800; }

/* ----------------------------------------------------------- coverage by interval */
.prf-dash .pd-sechead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.prf-dash .pd-h { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--pd-ink); }
.prf-dash .pd-h-big { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.prf-dash .pd-h-sub { font-size: 12px; font-weight: 500; color: var(--pd-muted); letter-spacing: 0; }
.prf-dash .pd-h-big .pd-h-sub { font-size: 11px; font-weight: 600; margin-left: 4px; }
.prf-dash .pd-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--pd-muted2); font-weight: 600; }
.prf-dash .pd-legend > span { display: flex; align-items: center; gap: 5px; }
.prf-dash .pd-sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.prf-dash .pd-sw.st-Final { background: var(--pd-final); }
.prf-dash .pd-sw.st-Estimated { background: var(--pd-est); }
.prf-dash .pd-sw.st-Live { background: var(--pd-live); }
.prf-dash .pd-sw.st-Alert { background: var(--pd-alert); }
.prf-dash .pd-strip { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.prf-dash .pd-cell { border-radius: 10px; padding: 9px 10px; min-height: 96px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.prf-dash .pd-cell-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.prf-dash .pd-cell-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; }
.prf-dash .pd-cell-prot { font-size: 9px; font-weight: 700; opacity: 0.6; }
.prf-dash .pd-cell-dollar { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 0; color: #1f2419; white-space: nowrap; }
.prf-dash .pd-cell-rain { font-size: 10px; font-weight: 700; margin-top: 4px; }
.prf-dash .pd-cell-meta { font-size: 9.5px; font-weight: 600; margin-top: 2px; }
.prf-dash .pd-cell.st-Final { background: #edf3ed; border: 1.5px solid var(--pd-final); }
.prf-dash .pd-cell.st-Final .pd-cell-rain, .prf-dash .pd-cell.st-Final .pd-cell-meta { color: #6c7a67; }
.prf-dash .pd-cell.st-Estimated { background: #fff5c2; border: 1.5px solid var(--pd-est); }
.prf-dash .pd-cell.st-Estimated .pd-cell-rain, .prf-dash .pd-cell.st-Estimated .pd-cell-meta { color: #7d6200; }
.prf-dash .pd-cell.st-Live { background: #ffe5c4; border: 1.5px solid var(--pd-live); }
.prf-dash .pd-cell.st-Live .pd-cell-rain, .prf-dash .pd-cell.st-Live .pd-cell-meta { color: #9a4e08; }
.prf-dash .pd-cell.st-Alert { background: #f9e6e3; border: 1.5px solid var(--pd-alert); }
.prf-dash .pd-cell.st-Alert .pd-cell-dollar, .prf-dash .pd-cell.st-Alert .pd-cell-rain, .prf-dash .pd-cell.st-Alert .pd-cell-meta { color: var(--pd-alert-ink); }
.prf-dash .pd-cell.st-Pending { background: #f4f2ec; border: 1px solid #d2cdc1; }
.prf-dash .pd-cell.st-Pending .pd-cell-dollar { color: var(--pd-faint); }
.prf-dash .pd-cell.st-Pending .pd-cell-rain { color: var(--pd-muted); font-weight: 600; }
.prf-dash .pd-cell.st-Pending .pd-cell-meta { color: var(--pd-faint); }
.prf-dash .pd-cell.st-None { background: #f4f2ec; border: 1px solid #e6e2d6; }
.prf-dash .pd-cell.st-None .pd-cell-dollar { font-size: 12px; font-weight: 600; color: var(--pd-faint); margin-top: 14px; white-space: normal; letter-spacing: 0; }

/* ------------------------------------------------- where it's coming from (county) */
.prf-dash .pd-county { margin-top: 26px; }
.prf-dash .pd-caps { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pd-muted); font-weight: 700; margin: 0 0 10px; }
.prf-dash .pd-caps-sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--pd-faint); }
.prf-dash .pd-cobox, .prf-dash .pd-hbox { border: 1px solid var(--pd-frame); border-radius: 8px; background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prf-dash .pd-cotbl { table-layout: fixed; border-collapse: collapse; border-style: hidden; width: 100%; min-width: 1120px; font-variant-numeric: tabular-nums; }
.prf-dash .pd-cotbl th, .prf-dash .pd-cotbl td { padding: 5px 6px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--pd-frame); }
.prf-dash .pd-cotbl .ivh { background: var(--pd-head); color: #eaf2fa; font-size: 10px; font-weight: 700; text-align: center; padding: 6px 4px; border-color: #2b5c8e; }
.prf-dash .pd-cotbl .ivh.coc-county, .prf-dash .pd-cotbl .ivh.coc-fe { background: #ece7d8; color: #6b6656; border-color: var(--pd-frame); letter-spacing: 0.04em; }
.prf-dash .pd-cotbl .ivh.coc-fe { color: var(--pd-final); }
.prf-dash .pd-cotbl th.coc-county { width: 86px; }
.prf-dash .pd-cotbl th.coc-fe { width: 72px; }
.prf-dash .pd-cotbl .rlab { text-align: left; background: #f6f3ea; font-size: 11.5px; font-weight: 700; color: var(--pd-ink); }
.prf-dash .pd-cotbl .rlab .st { font-size: 8.5px; font-weight: 800; color: var(--pd-muted); letter-spacing: 0.05em; margin-left: 3px; }
.prf-dash .pd-cotbl td.cocell { font-size: 11.5px; font-weight: 700; }
.prf-dash .pd-cotbl td .sub { display: block; font-size: 8.5px; font-weight: 600; color: var(--pd-muted); }
.prf-dash .pd-cotbl tr.cotot td, .prf-dash .pd-cotbl tr.cotot th { background: #f6f3ea; font-weight: 800; font-size: 11.5px; }
.prf-dash .pd-cotbl .co-blank { color: #c9c4b6; background: #fcfbf7; text-align: center; }
.prf-dash .pd-cotbl tr.cotot .co-blank { background: #f6f3ea; }
.prf-dash .pd-cotbl .co-Final { color: var(--pd-final); background: #eef5ef; }
.prf-dash .pd-cotbl .co-Estimated { color: var(--pd-est-ink); background: #fff5c2; }
.prf-dash .pd-cotbl .co-Live { color: var(--pd-live-ink); background: #ffe5c4; }
.prf-dash .pd-cotbl .co-Alert { color: var(--pd-alert-ink); background: #f9e6e3; }
.prf-dash .pd-cotbl .co-Upcoming { color: var(--pd-muted); background: #faf8f2; }
.prf-dash .pd-cotbl td.zero { color: #9a9686; }
.prf-dash .pd-cotbl tr.cotot .co-Final, .prf-dash .pd-cotbl tr.cotot .co-Estimated, .prf-dash .pd-cotbl tr.cotot .co-Live,
.prf-dash .pd-cotbl tr.cotot .co-Alert, .prf-dash .pd-cotbl tr.cotot .co-Upcoming { background: #f6f3ea; }
.prf-dash .pd-cotbl .co-fe { color: var(--pd-final); font-weight: 800; }
.prf-dash .pd-liveline { margin: 9px 0 0; font-size: 11.5px; font-weight: 600; color: #7a5a30; font-style: italic; line-height: 1.5; }
.prf-dash .pd-liveline strong { font-weight: 800; color: var(--pd-live-ink); }
.prf-dash .pd-livetag { font-weight: 800; color: var(--pd-live-ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; margin-right: 7px; font-style: normal; }

/* ---------------------------------------------------------------- policy history */
.prf-dash .pd-hist { margin-top: 40px; padding-top: 24px; border-top: 5px solid var(--ec-navy); }   /* RN-0007: hard line between this year and past years */
.prf-dash .pd-hist .pd-h { margin-bottom: 10px; }
.prf-dash .pd-hist .pd-caps { margin: 14px 0 6px; font-size: 10.5px; }
.prf-dash .pd-htbl { border-collapse: collapse; border-style: hidden; width: 100%; font-variant-numeric: tabular-nums; }
.prf-dash .pd-htbl th, .prf-dash .pd-htbl td { padding: 6px 9px; text-align: right; white-space: nowrap; border: 1px solid var(--pd-frame); font-size: 12px; }
.prf-dash .pd-htbl .ivh { background: var(--pd-head); color: #eaf2fa; font-size: 10px; font-weight: 700; text-align: center; padding: 7px 6px; border-color: #2b5c8e; text-transform: uppercase; letter-spacing: 0.05em; }
.prf-dash .pd-htbl .ivh.yr { background: #ece7d8; color: #6b6656; border-color: var(--pd-frame); text-align: left; }
.prf-dash .pd-htbl th.yr { text-align: left; background: #f6f3ea; font-weight: 800; color: var(--pd-ink); }
.prf-dash .pd-htbl td.strong { font-weight: 800; }
.prf-dash .pd-htbl tr.htot td, .prf-dash .pd-htbl tr.htot th { background: #dfe9f3; color: var(--pd-navy); font-weight: 800; border-top: 2px solid #9db4ca; }
.prf-dash .pd-htbl tr.htot td.pos { color: var(--pd-final); }
.prf-dash .pd-htbl tr.htot td.neg { color: var(--pd-alert); }
.prf-dash .hmat td, .prf-dash .hmat th { padding: 5px 7px; font-size: 11px; }
.prf-dash .hmat td.blank { color: #c6c2b4; font-weight: 500; }
.prf-dash .hmat th.yr.sub { padding-left: 22px; font-weight: 600; color: #5c5848; }
.prf-dash .hmat tr.hsub td, .prf-dash .hmat tr.hsub th { background: #f3efe4; font-weight: 800; border-top: 2px solid #cfc8b4; border-bottom: 2px solid #cfc8b4; }

/* ------------------------------------------------------------ big rainfall events */
.prf-dash .pd-rail { background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 12px; padding: 16px 18px; position: sticky; top: 16px; }
.prf-dash .pd-rail-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--pd-muted); font-weight: 800; margin: 0; }
.prf-dash .pd-rail-sub { font-size: 9.5px; color: var(--pd-faint); font-weight: 500; margin: 3px 0 12px; }
.prf-dash .pd-rail-note { font-size: 10.5px; color: var(--pd-muted2); margin: -4px 0 12px; font-style: italic; }
.prf-dash .pd-rail-none { font-size: 11.5px; color: var(--pd-faint); font-weight: 500; }
.prf-dash .pd-rail-foot { font-size: 10px; color: var(--pd-faint); margin: 4px 0 0; line-height: 1.45; }
.prf-dash .pd-rg { margin-bottom: 14px; }
.prf-dash .pd-rg-head { border-left: 3px solid #d2cdc1; padding-left: 9px; }
.prf-dash .pd-rg-head.st-Final { border-left-color: var(--pd-final); }
.prf-dash .pd-rg-head.st-Estimated { border-left-color: var(--pd-est); }
.prf-dash .pd-rg-head.st-Live { border-left-color: var(--pd-live); }
.prf-dash .pd-rg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prf-dash .pd-rg-title { font-size: 12.5px; font-weight: 800; }
.prf-dash .pd-rg-max { font-size: 10px; font-weight: 700; color: var(--pd-muted); }
.prf-dash .pd-rg-sub { font-size: 10px; font-weight: 600; color: var(--pd-muted); }
.prf-dash .pd-ev { display: flex; align-items: baseline; gap: 6px; padding: 4px 0 0 12px; font-size: 11px; }
.prf-dash .pd-ev span { white-space: nowrap; }
.prf-dash .pd-ev .d { font-weight: 700; color: #3a3a30; }
.prf-dash .pd-ev .r { color: var(--pd-muted2); }
.prf-dash .pd-ev .x { font-weight: 700; color: var(--pd-alert); margin-left: auto; }
.prf-dash .pd-ev .a { color: #3a3a30; }
.prf-dash .pd-ev-st { padding: 1px 0 0 24px; font-size: 9.5px; color: var(--pd-muted); }
.prf-dash .pd-ev-now .r { font-weight: 600; }
.prf-dash .pd-ev-now .n { font-weight: 800; margin-left: auto; color: var(--pd-faint); }
.prf-dash .pd-ev-now .n.st-Final { color: var(--pd-final); }
.prf-dash .pd-ev-now .n.st-Estimated { color: var(--pd-est-ink); }
.prf-dash .pd-ev-now .n.st-Live { color: var(--pd-live-ink); }

/* Kept portal sections (Rain Outlook, leases) inside the dashboard canvas */
.prf-dash .pd-main > .outlook { margin-top: 34px; }
.prf-dash .pd-main > .section-head { margin-top: 2rem; }

/* ------------------------------------------------------------------ layout modes */
/* Aligned mode (the dashboard's >=1860px rule, re-expressed as the main column's own
   width): the strip gets side margins so each card sits over its county-matrix column
   (98 = 3 half-gap + 94 county th + 1 wrapper border; 84 = 1 + 80 Final+Est th + 3). */
@container pdmain (min-width: 1110px) {
  .prf-dash .pd-strip { margin: 0 84px 0 98px; }
  .prf-dash .pd-cell-dollar { font-size: 13px; letter-spacing: -0.03em; }
  .prf-dash .pd-cotbl { min-width: 0; }
  .prf-dash .pd-cotbl th.coc-county { width: 94px; }
  .prf-dash .pd-cotbl th.coc-fe { width: 80px; }
}
@container pdmain (min-width: 1300px) { .prf-dash .pd-cell-dollar { font-size: 15px; } }
@container pdmain (min-width: 1450px) { .prf-dash .pd-cell-dollar { font-size: 16px; letter-spacing: -0.02em; } }
/* scroll mode on laptops (1366-1600): 11 cards in one row are ~80-95px - step the dollar down
   so "$106,068" never clips */
@container pdmain (min-width: 901px) and (max-width: 1109px) { .prf-dash .pd-cell-dollar { font-size: 14px; letter-spacing: -0.03em; } }
/* narrow main column: the 11 cards wrap instead of crushing */
@container pdmain (max-width: 900px) { .prf-dash .pd-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container pdmain (max-width: 600px) {
  .prf-dash .pd-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prf-dash .pd-kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .prf-dash .pd-k { padding: 11px 12px; overflow: hidden; }
  .prf-dash .pd-name { font-size: 23px; }
  .prf-dash .pd-head { flex-direction: column; gap: 14px; }
  .prf-dash .pd-hero { text-align: left; min-width: 0; width: 100%; }
  .prf-dash .pd-meter { margin-left: 0; }
  .prf-dash .pd-wts { padding: 12px 14px 13px; }
  .prf-dash .pd-wts-body { font-size: 14px; }
  .prf-dash .pd-wts-max { font-size: 13px; }
}
/* the rail drops under the main column when the panel is narrow (the dashboard's <=1023px) */
@container pdash (max-width: 1000px) {
  .prf-dash .pd-grid { display: block; padding: 18px 16px 26px; }
  .prf-dash .pd-rail { position: static; margin-top: 22px; }
  .prf-dash .pd-solo { padding: 18px 16px 26px; }
}
@container pdash (max-width: 520px) {
  .prf-dash .pd-grid, .prf-dash .pd-solo { padding: 14px 13px 24px; }
  .prf-dash .pd-name { font-size: 23px; }
}
@media (pointer: coarse) { .prf-dash .pd-segbtn { min-height: 44px; } }
.prf-dash .pd-tilehelp { font-size: 12px; line-height: 1.5; color: #3f3d35; margin: 10px 0 4px; max-width: 1100px; }
.prf-dash .pd-print {
  margin-top: 10px; font: 600 12.5px var(--font-ui, sans-serif); color: var(--ec-navy); background: #fff;
  border: 1px solid #c9d3df; border-radius: 7px; padding: 6px 12px; cursor: pointer;
}
.prf-dash .pd-print:hover { background: #eef3f8; }
@media print {
  @page { size: landscape; margin: 0.4in; }
  .prf-dash { border: none; background: #fff; zoom: 0.78; }
  .prf-dash .pd-print, .prf-dash .pd-seg, .review-pill, #staffBar { display: none !important; }
  .prf-dash .pd-k, .prf-dash .pd-cell { break-inside: avoid; }
  .prf-dash, .prf-dash .pd-grid, .prf-dash .pd-rail, #panel-prf { break-inside: auto !important; break-before: auto !important; }
  .prf-dash .pd-grid { display: block; padding: 12px 8px 20px; }
  /* Print = the statement only, like the Rainfall Dashboard's print: no rain-events
     rail, no Rain Outlook maps (forecasts aren't part of a coverage statement). */
  .prf-dash .pd-rail, #panel-prf .outlook { display: none !important; }
  .prf-dash .pd-cotbl, .prf-dash .pd-hist table, .prf-dash .pd-k { break-inside: avoid; }
  /* the site footer keeps its compliance text but prints small + light (no navy page) */
  body:has(#panel-prf.print-target) footer.site { background: #fff !important; padding: 6px 0 0 !important; margin: 0 !important; border-top: 1px solid #ccc; }
  body:has(#panel-prf.print-target) main, body:has(#panel-prf.print-target) .tab-panel.print-target, body:has(#panel-prf.print-target) .app { min-height: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .prf-dash .pd-grid, .prf-dash .pd-solo { padding-bottom: 6px !important; }
  body:has(#panel-prf.print-target) footer.site * { color: #555 !important; font-size: 7.5px !important; line-height: 1.3 !important; }
  body:has(#panel-prf.print-target) footer.site .foot-brand, body:has(#panel-prf.print-target) footer.site .foot-links { display: none !important; }
  body:has(#panel-prf.print-target) footer.site p { margin: 2px 0 !important; }
  .prf-dash .pd-rail { position: static; }
  .prf-dash .pd-k, .prf-dash .pd-cell, .prf-dash .pd-cotbl td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- PRF data-as-of + print statement (2026-10-09, McLane) ---- */
.prf-dash .pd-asof { color: var(--pd-muted2); text-decoration: none; }
.prf-dash .pd-asof strong { color: #26261f; }
.prf-dash .pd-asof:hover { text-decoration: underline; }
.prf-dash .pd-about { margin-top: 34px; padding: 18px 20px 16px; border: 1px solid #d8d3c4; border-radius: 10px; background: #fbfaf6; scroll-margin-top: 90px; }
.prf-dash .pd-about .pd-h { margin: 0 0 10px; }
.prf-dash .pd-about-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.prf-dash .pd-about-list dt { font-weight: 700; color: #26261f; }
.prf-dash .pd-about-list dd { margin: 0; color: #3f3d35; }
.prf-dash .pd-about-legal { font-size: 12px; line-height: 1.55; color: #4a473e; margin: 0; padding-top: 10px; border-top: 1px dashed #d8d3c4; }
@media (max-width: 640px) { .prf-dash .pd-about-list { grid-template-columns: 1fr; } .prf-dash .pd-about-list dd { margin-bottom: 6px; } }
/* app bar: PRF dates replace the market "quotes refreshed" stamp while the PRF tab is open */
#prfAsOf { display: none; }
body:has(#panel-prf.active) #prfAsOf { display: block; }
body:has(#panel-prf.active) #asOf { display: none; }
.prf-dash .pd-printhead { display: none; }
@media print {
  body:has(#panel-prf.print-target) header.appbar,
  body:has(#panel-prf.print-target) .foot-portal-note { display: none !important; }
  /* the equal-opportunity line is a required compliance block - it always prints */
  body:has(#panel-prf.print-target) .foot-bottom { display: flex !important; margin-top: 4px !important; }
  .prf-dash .pd-printhead {
    display: flex !important; align-items: center; justify-content: space-between; gap: 20px;
    background: var(--ec-navy) !important; color: #fff; padding: 12px 18px; border-bottom: 3px solid var(--ec-gold);
    margin: 0 0 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .prf-dash .pd-printlogo { height: 34px; width: auto; }
  .prf-dash .pd-printright { text-align: right; }
  .prf-dash .pd-printname { font-size: 18px; font-weight: 800; color: #fff; }
  .prf-dash .pd-printsub { font-size: 10.5px; color: #dce4ec; margin-top: 2px; }
  /* readable table headers (the app-wide print rule paints every th navy) */
  .prf-dash thead th, .prf-dash thead th * { color: #fff !important; }
  .prf-dash .pd-county, .prf-dash .pd-hist, .prf-dash .pd-about { break-inside: avoid; }
  .prf-dash .pd-about { background: #fff; margin-top: 16px; }
  .prf-dash .pd-asof { display: none; }
}

/* ---- RN-0014 (2026-10-21, McLane): the four cards alone, on the Overview ----
   prf-dash.js cards(p) = .prf-dash.pd-cardsonly > .pd-main > .pd-kpi4. Same cards, same
   container queries (2-up under 600px of main column); no cream canvas, border or padding
   around them so they sit in the Overview's own flow. */
.prf-dash.pd-cardsonly { background: transparent; border: 0; border-radius: 0; margin: 0.3rem 0 1rem; }
.prf-dash.pd-cardsonly .pd-kpi4 { margin-bottom: 0; }
@media print { .prf-dash.pd-cardsonly { zoom: 1; } }

/* ---- RN-0015 (2026-11-03, McLane): a new crop year with nothing developed yet ----
   prf-dash.js renderFresh / cards(): calm and neutral - navy + sage, no green/red money, no
   meter, no orange "live" alarm. Tiles: "In progress" (rain so far, no $) / "Upcoming" / none. */
.prf-dash .pd-hero-fresh { min-width: 220px; }
.prf-dash .pd-hero-fresh-big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--pd-navy); margin-top: 2px; }
.prf-dash .pd-hero-fresh .pd-hero-remain { font-style: normal; }
.prf-dash .pd-wts-fresh { border-left-color: var(--pd-navy); }
.prf-dash .pd-wts-fresh .pd-wts-lbl { color: var(--pd-navy); }
.prf-dash .pd-wts-fresh .pd-wts-max { border-top-color: var(--pd-line); }
.prf-dash .pd-kpi-fresh .pd-k-big { font-size: 22px; }
.prf-dash .pd-kpi-fresh .pd-k-acres { font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.prf-dash .pd-sw.st-Fresh { background: #9cb3c9; }
.prf-dash .pd-sw.st-Pending { background: #d2cdc1; }
.prf-dash .pd-sw.st-None { background: #e6e2d6; }
.prf-dash .pd-cell.st-Fresh { background: #eef3f8; border: 1.5px solid #9cb3c9; }
.prf-dash .pd-cell.st-Fresh .pd-cell-dollar { font-size: 13px; color: var(--pd-navy); }
.prf-dash .pd-cell.st-Fresh .pd-cell-rain, .prf-dash .pd-cell.st-Fresh .pd-cell-meta { color: #4f6378; }
.prf-dash .pd-cov-fresh .pd-cell.st-Pending .pd-cell-dollar { font-size: 13px; color: var(--pd-muted); }
.prf-dash.pd-cardsonly .pd-cov-fresh { margin-top: 14px; }

/* RN-0028: tiny data-lag note under the PRF as-of chip */
.pd-lag { font-size: 11.5px; line-height: 1.35; color: #6b7280; margin-top: 4px; max-width: 640px; }
