/* ==========================================================================
   Dos Rios Partners: Overview, the firm on one sheet
   One engraved sheet of the two-rivers map carries every layer the site
   draws, laid down together, with a title cartouche and a reference table
   set into the empty country of the engraving the way an engraver set them,
   and the firm itself in the sheet's lower margin. On screen the sheet lies
   by night on the dark table of the site; it can be turned to the original
   engraving by day, which is also how it prints, on one Letter page.
   Map units are the 1400 x 1000 engraving (assets/img/night-towns.jpg).
   Round 37: brought back from r31 as the Firm Overview (firm-overview/),
   under r36's bar and over its footer; the team's hometown layers are gone,
   the team is the five in order, and the fund column adds the target size.
   ========================================================================== */

.drp-overview { background: var(--night-deep); }

/* ---------- the sheet's two editions: night (screen) and day (as printed) ---------- */
.ov-sheet {
  --ov-ground: #0E1F35;
  --ov-text: #E9F0F4;
  --ov-soft: #C3D1DC;
  --ov-rule: rgba(183, 211, 226, 0.2);
  --ov-frame: rgba(220, 238, 248, 0.42);
  --ov-river: #DCEEF8;
  --ov-region: rgba(220, 238, 248, 0.6);
  --ov-region-fill: rgba(183, 211, 226, 0.075);
  --ov-arc: #DDBE84;
  --ov-ring: #CFDAE3;
  --ov-lamp: #B7D3E2;
  --ov-home: #FFFFFF;
  --ov-plate-bg: rgba(9, 21, 38, 0.86);
  --ov-label-shadow: 0 0 6px #091526, 0 0 2px #091526, 0 1px 1px #091526;
}
.ov-sheet.is-day {
  --ov-ground: #ECF0F1;
  --ov-text: #102E56;
  --ov-soft: #4D5D6C;
  --ov-rule: rgba(16, 46, 86, 0.18);
  --ov-frame: rgba(16, 46, 86, 0.5);
  --ov-river: #7FB2D0;
  --ov-region: rgba(16, 46, 86, 0.55);
  --ov-region-fill: rgba(16, 46, 86, 0.035);
  --ov-arc: #7D5C1F;
  --ov-ring: #102E56;
  --ov-lamp: #2C5A85;
  --ov-home: #102E56;
  --ov-plate-bg: rgba(236, 240, 241, 0.93);
  --ov-label-shadow: 0 0 5px #DCE4E8, 0 0 2px #DCE4E8, 0 1px 1px #DCE4E8;
}

/* ---------- the table and the sheet ---------- */
.ov {
  position: relative;
  padding: calc(var(--header-h) + 46px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(ellipse 70% 52% at 50% 34%, rgba(37, 66, 102, 0.42), rgba(9, 21, 38, 0) 72%),
    var(--night-deep);
  color: var(--ov-text);
}
.ov-sheet {
  position: relative;
  box-sizing: border-box;
  width: min(calc(100% - 2 * var(--gutter)), max(900px, calc((100vh - 214px) * 1.4)), 1240px);
  margin: 0 auto;
  padding: 14px 14px 30px;
  background: var(--ov-ground);
  border: 1px solid rgba(183, 211, 226, 0.22);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(0, 0, 0, 0.25);
  color: var(--ov-text);
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* the neatline: a double rule around the plate */
.ov-plate {
  position: relative;
  padding: 5px;
  border: 1px solid var(--ov-frame);
  transition: border-color 0.6s ease;
}
.ov-map {
  position: relative;
  margin: 0;
  aspect-ratio: 1400 / 1000;
  overflow: hidden;
  background: #0E1F35;
  outline: 1px solid var(--ov-frame);
  outline-offset: 0;
}
.ov-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.7s ease;
}
.ov-day { opacity: 0; }
.is-day .ov-day { opacity: 1; }
.is-day .ov-night { opacity: 0; }

/* ---------- the layers ---------- */
.ov-layers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ov-layers path, .ov-layers circle, .ov-layers ellipse, .ov-layers rect { vector-effect: non-scaling-stroke; }

.rg-glow { fill: none; stroke: var(--ov-river); stroke-width: 7; opacity: 0.16; }
.rg-fill { fill: var(--ov-region-fill); stroke: none; }
.rg-line { fill: none; stroke: var(--ov-region); stroke-width: 1.3; stroke-linejoin: round; }
.is-day .rg-glow { opacity: 0; }

.rv-glow { fill: none; stroke: var(--ov-river); stroke-width: 8; opacity: 0.4; stroke-linecap: round; }
.rv-line { fill: none; stroke: var(--ov-river); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* the engraving by day carries its own pale blue rivers */
.is-day .ov-river { opacity: 0; }

.ov-tline {
  fill: none;
  stroke: var(--ov-lamp);
  stroke-width: 1.4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.3s ease;
}
.ov-tline.is-hot { stroke-dashoffset: 0; opacity: 0.95; }

.arc-glow { fill: none; stroke: var(--ov-arc); stroke-width: 5; opacity: 0.35; }
.arc-line { fill: none; stroke: var(--ov-arc); stroke-width: 1.6; }
.is-day .arc-glow { opacity: 0; }
.is-day .arc-line { stroke-width: 1.8; }

.ov-site .halo { fill: var(--ov-arc); opacity: 0.2; }
.ov-site .dot { fill: var(--ov-arc); stroke: #091526; stroke-width: 1; }
.is-day .ov-site .dot { stroke: #ECF0F1; }

.ov-home { pointer-events: none; }
.ov-home .halo { fill: var(--ov-home); opacity: 0.12; }
.ov-home .ring { fill: none; stroke: var(--ov-home); stroke-width: 1.6; }
.ov-home .dot { fill: var(--ov-home); }

.ov-ring .ring { fill: none; stroke: var(--ov-ring); stroke-width: 1.3; }
.ov-ring .pip { fill: var(--ov-ring); }
.ov-ring .hit, .ov-lamp .hit { fill: transparent; }
.ov-ring .edge-arrow, .ov-lamp .edge-arrow { fill: none; stroke: var(--ov-ring); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ov-lamp .edge-arrow { stroke: var(--ov-lamp); stroke-dasharray: 3 3; }
.ov-lamp .lamp { fill: var(--ov-lamp); stroke: #091526; stroke-width: 0.8; }
.ov-lamp.is-founder .lamp { fill: none; stroke: var(--ov-lamp); stroke-width: 1.3; }
.is-day .ov-lamp .lamp { stroke: #ECF0F1; }
.is-day .ov-lamp.is-founder .lamp { stroke: var(--ov-lamp); }
/* every line, the team's and the founders', runs from where that person grew up to Austin */
.ov-tie { fill: none; stroke: var(--ov-lamp); stroke-width: 1.1; stroke-linecap: round; opacity: 0.6; transition: opacity 0.35s ease; }
.ov-tie.is-founder { stroke-dasharray: 3 3; opacity: 0.5; }
.ov-sheet.has-focus .ov-tie:not(.is-hot) { opacity: 0.12; }
.ov-tie.is-hot { opacity: 1; stroke-width: 1.8; }

.ov-ring, .ov-lamp, .ov-arc, .ov-site, .ov-region, .ov-river, .ov-home {
  transition: opacity 0.35s ease;
}
.ov-ring > g, .ov-lamp > g { transition: opacity 0.35s ease; }
.ov-ring, .ov-lamp { cursor: pointer; }

/* pointing at one name dims the rest of the sheet */
.ov-sheet.has-focus .ov-arc:not(.is-hot),
.ov-sheet.has-focus .ov-site:not(.is-hot),
.ov-sheet.has-focus .ov-ring:not(.is-hot),
.ov-sheet.has-focus .ov-lamp:not(.is-hot) { opacity: 0.22; }
.ov-sheet.has-focus .ov-label.l-site:not(.is-hot) { opacity: 0.35; }
.ov-arc.is-hot .arc-line { stroke-width: 2.6; }
.ov-arc.is-hot .arc-glow { opacity: 0.6; }
.ov-ring.is-hot .ring { stroke-width: 2.2; }
.ov-site.is-hot .halo { opacity: 0.38; }

/* ---------- the lettering ---------- */
.ov-letters { position: absolute; inset: 0; pointer-events: none; }
.ov-letters > * {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  white-space: nowrap;
  text-shadow: var(--ov-label-shadow);
  transition: opacity 0.35s ease, color 0.6s ease;
}
.ov-state {
  transform: translate(-50%, -50%);
  font: italic 400 clamp(11px, 1.02vw, 15px)/1 var(--serif);
  letter-spacing: 0.12em;
  color: var(--ov-region);
}
.ov-rivername {
  font: italic 400 clamp(13px, 1.3vw, 18px)/1 var(--serif);
  color: var(--ov-river);
}
.rn-west { transform: translate(-100%, -50%); }
.rn-east { transform: translate(-100%, -50%); }
.is-day .ov-rivername { color: #2F6F96; }

.ov-label, .ov-probe {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--ov-text);
  text-decoration: none;
  font: 600 clamp(11px, 0.98vw, 13.5px)/1.2 var(--sans);
}
.ov-label { pointer-events: auto; }
.ov-label i, .ov-probe i {
  font: italic 400 clamp(11px, 0.98vw, 13.5px)/1.2 var(--serif);
  color: var(--ov-soft);
}
.ov-label:hover b, .ov-label:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.l-home { transform: translate(calc(-100% - 15px), -62%); text-align: right; }
.l-site.is-above { transform: translate(-50%, calc(-100% - 13px)); text-align: center; align-items: center; }
.l-site.is-below { transform: translate(-50%, 13px); text-align: center; align-items: center; }
.l-site.is-right { transform: translate(14px, -18%); }
.l-site.is-above-left { transform: translate(calc(-100% + 6px), calc(-100% - 13px)); text-align: right; align-items: flex-end; }

.ov-probe {
  transform: translate(16px, -50%);
  padding: 6px 10px 7px;
  background: var(--ov-plate-bg);
  border: 1px solid var(--ov-rule);
  text-shadow: none;
  z-index: 2;
}
.ov-probe.is-left { transform: translate(calc(-100% - 16px), -50%); text-align: right; }
.ov-probe[hidden] { display: none; }

/* ---------- the title cartouche and the reference table ---------- */
.ov-title, .ov-ref {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  background: var(--ov-plate-bg);
  border: 1px solid var(--ov-frame);
  box-shadow: inset 0 0 0 4px var(--ov-plate-bg), inset 0 0 0 5px var(--ov-rule);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}
/* the title sits in the empty north-west of the engraving, clear of the region
   (map x < 560, y < 300); the reference in the north-east, clear of the river */
.ov-title {
  top: calc(5px + 2.4%);
  left: calc(5px + 1.8%);
  width: 38%;
  padding: clamp(14px, 1.5vw, 20px) clamp(12px, 1.4vw, 20px) clamp(13px, 1.4vw, 18px);
  text-align: center;
}
.ov-title h1 {
  margin: 0;
  font: 400 clamp(26px, 2.75vw, 40px)/1.05 var(--display);
  color: var(--ov-text);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.ov-tag {
  position: relative;
  margin: 10px 0 0;
  padding-top: 10px;
  font: italic 400 clamp(13px, 1.1vw, 16.5px)/1.35 var(--serif);
  color: var(--ov-river);
  white-space: nowrap;
}
.ov-tag:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  margin-left: -32px;
  border-top: 1px solid var(--ov-frame);
}
.is-day .ov-tag { color: #2C5A85; }

.ov-ref {
  top: calc(5px + 2.4%);
  right: calc(5px + 1.8%);
  width: 28.5%;
  max-width: 300px;
  padding: 12px 14px 11px;
}
.ov-ref-h {
  margin: 0 0 5px;
  font: italic 400 15px/1.2 var(--serif);
  color: var(--ov-text);
}
.ov-ref ul { list-style: none; margin: 0; padding: 0; }
.ov-ref li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2.5px 0;
  font: 400 clamp(11px, 0.86vw, 12.5px)/1.3 var(--sans);
  color: var(--ov-soft);
}
.is-day .ov-ref .ref-towns { display: none; }

/* ---------- keys, shared by the reference table and the margin ---------- */
.ov-key {
  position: relative;
  flex: none;
  display: inline-block;
  width: 22px;
  height: 12px;
}
.ov-key:before, .ov-key:after { content: ""; position: absolute; box-sizing: border-box; }
.key-river:before { left: 0; right: 0; top: 5px; height: 2px; border-radius: 2px; background: var(--ov-river); box-shadow: 0 0 6px var(--ov-river); }
.is-day .key-river:before { box-shadow: none; height: 3px; }
.key-region:before { left: 3px; right: 3px; top: 1px; bottom: 1px; border: 1px solid var(--ov-region); background: var(--ov-region-fill); }
.key-home:before { left: 5px; top: 0; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ov-home); }
.key-home:after { left: 9px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ov-home); }
.key-arc:before { left: 0; right: 0; top: 2px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ov-arc); border-bottom-color: transparent; border-left-color: transparent; border-right-color: transparent; }
.key-ring:before { left: 3px; top: 1px; width: 16px; height: 10px; border-radius: 50%; border: 1.3px solid var(--ov-ring); transform: rotate(-8deg); }
.key-ring:after { left: 10px; top: 5px; width: 3px; height: 3px; border-radius: 50%; background: var(--ov-ring); }
.key-lamp:before { left: 7px; top: 2px; width: 8px; height: 8px; background: var(--ov-lamp); transform: rotate(45deg); }
.key-lamp.is-founder:before { background: none; border: 1.3px solid var(--ov-lamp); }
.key-edge svg { display: block; width: 22px; height: 12px; fill: none; stroke: var(--ov-ring); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.key-town:before {
  left: 0; right: 0; top: 0; bottom: 0;
  background:
    radial-gradient(circle at 4px 8px, #FFE2A8 0 1.6px, rgba(255, 210, 140, 0) 3.5px),
    radial-gradient(circle at 11px 4px, #FFE2A8 0 1.6px, rgba(255, 210, 140, 0) 3.5px),
    radial-gradient(circle at 18px 9px, #FFE2A8 0 1.3px, rgba(255, 210, 140, 0) 3px);
}

/* ---------- the imprint line and the tools ---------- */
.ov-imprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 2px 0;
}
.ov-edition { flex: 1 1 340px; max-width: 37em; margin: 0; font: italic 400 15.5px/1.45 var(--serif); color: var(--ov-soft); }
.ed-day, .ed-print { display: none; }
.is-day .ed-day { display: inline; }
.is-day .ed-night { display: none; }
.ov-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ov-mode { display: inline-flex; border: 1px solid var(--ov-frame); }
.ov-mode button, .ov-print {
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ov-text);
  font: 500 13.5px/1 var(--sans);
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.ov-mode button + button { border-left: 1px solid var(--ov-frame); }
.ov-mode button[aria-pressed="true"] { background: var(--ov-text); color: var(--ov-ground); }
.ov-print { border: 1px solid var(--ov-frame); }
.ov-mode button:hover, .ov-print:hover { background: rgba(183, 211, 226, 0.14); }
.is-day .ov-mode button:hover, .is-day .ov-print:hover { background: rgba(16, 46, 86, 0.08); }
.ov-mode button[aria-pressed="true"]:hover { background: var(--ov-text); }
.ov-mode button:focus-visible, .ov-print:focus-visible, .ov-sheet a:focus-visible { outline: 2px solid var(--ov-river); outline-offset: 2px; }
.is-day .ov-mode button:focus-visible, .is-day .ov-print:focus-visible, .is-day.ov-sheet a:focus-visible { outline-color: #102E56; }
html:not(.ov-js) .ov-tools { display: none; }

/* ---------- the margin: the firm in words ---------- */
.ov-margin {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  grid-template-areas: "fund active team" "hist hist hist";
  grid-template-rows: auto auto;
  gap: 0 clamp(28px, 3.4vw, 48px);
  margin-top: 22px;
  padding: 30px 8px 0;
  border-top: 1px solid var(--ov-frame);
  box-shadow: inset 0 4px 0 -3px var(--ov-rule);
}
.ov-col h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ov-rule);
  font: 400 22px/1.2 var(--serif);
  color: var(--ov-text);
}
.ov-col a { color: inherit; text-decoration: none; }
.ov-sheet .ov-col a:hover .co-name,
.ov-sheet .ov-col a:hover .pp-name,
.ov-sheet .ov-col a:hover .hi-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.ov-reg { margin: 0; }
.ov-reg > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ov-rule);
}
.ov-reg dt { font: 400 13px/1.45 var(--sans); color: var(--ov-soft); }
.ov-reg dd { margin: 0; font: 400 14.5px/1.45 var(--sans); color: var(--ov-text); }
.ov-reg .is-size dd span { display: block; }
.ov-reg .is-size dd span + span { margin-top: 4px; }
.ov-print-logo { display: none; }

.ov-more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; }
.ov-sheet .ov-more a {
  font: 500 14px/1.4 var(--sans);
  color: var(--ov-text);
  border-bottom: 1px solid var(--ov-frame);
  padding-bottom: 2px;
}
.ov-sheet .ov-more a:hover { border-bottom-color: var(--ov-text); }

.ov-cos, .ov-people, .ov-hist { list-style: none; margin: 0; padding: 0; }
.ov-cos li { padding: 12px 0 13px; border-bottom: 1px solid var(--ov-rule); transition: background-color 0.3s ease; }
.ov-cos a, .ov-people a { display: flex; flex-direction: column; gap: 2px; }
.co-name, .pp-name, .hi-name { font: 400 19px/1.25 var(--serif); color: var(--ov-text); }
.co-place { font: italic 400 15px/1.35 var(--serif); color: var(--ov-arc); }
.co-what { margin: 5px 0 0; font: 400 13.5px/1.5 var(--sans); color: var(--ov-soft); }

.ov-people li { padding: 10px 0 11px; border-bottom: 1px solid var(--ov-rule); }
.pp-title { font: 400 13.5px/1.4 var(--sans); color: var(--ov-soft); }
.ov-founders { display: flex; gap: 10px; align-items: baseline; margin: 12px 0 0; font: 400 14px/1.5 var(--sans); color: var(--ov-soft); }
.ov-founders .ov-key { top: 1px; }
.ov-sheet .ov-founders a { color: var(--ov-text); border-bottom: 1px solid var(--ov-frame); }

.ov-fund { grid-area: fund; }
.ov-active { grid-area: active; }
.ov-team { grid-area: team; }
.ov-reach { grid-area: reach; padding-top: 30px; }
.ov-history { grid-area: hist; padding-top: 44px; }
.ov-addr { margin: 10px 0 0; font: normal 400 14.5px/1.5 var(--sans); color: var(--ov-text); }
.ov-main { margin: 8px 0 0; font: 400 14.5px/1.6 var(--sans); color: var(--ov-text); }
.ov-route { margin: 14px 0 4px; font: italic 400 15px/1.45 var(--serif); color: var(--ov-soft); }
.ov-person { display: flex; flex-direction: column; margin: 10px 0 0; font: 400 14px/1.55 var(--sans); }
.ov-person .pp-name { font-size: 17px; }
.ov-sheet .ov-main a, .ov-sheet .ov-person a { color: var(--ov-text); border-bottom: 1px solid var(--ov-frame); align-self: flex-start; }

.ov-hist-note { margin: 8px 0 12px; max-width: 46em; font: 400 14px/1.5 var(--sans); color: var(--ov-soft); }
.ov-hist { columns: 4; column-gap: clamp(24px, 3vw, 40px); }
.ov-hist li { break-inside: avoid; border-bottom: 1px solid var(--ov-rule); }
.ov-hist a { display: flex; flex-direction: column; padding: 9px 0 10px; }
.hi-name { font-size: 17px; }
.hi-place { font: 400 12.5px/1.4 var(--sans); color: var(--ov-soft); }

/* the margin answers the map, and the map the margin */
.ov-cos li.is-hot .co-name, .ov-people li.is-hot .pp-name, .ov-hist li.is-hot .hi-name { color: var(--ov-arc); }
.ov-people li.is-hot .pp-name, .ov-founders a.is-hot { color: var(--ov-lamp); }
.ov-hist li.is-hot .hi-name { color: var(--ov-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- one pass of light, when the page first opens (overview.js) ----------
   The sheet is complete from the first frame; light runs once down each river
   from source to mouth, then out along the four lines from Austin. */
.rv-pulse, .arc-pulse {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 60 1100;
  stroke-dashoffset: 60;
  opacity: 0;
}
.rv-pulse { stroke: #FFFFFF; stroke-width: 3.4; }
.arc-pulse { stroke: #FFF1D2; stroke-width: 2.6; stroke-dasharray: 90 1100; stroke-dashoffset: 90; }
.ov-sheet.is-lit .rv-pulse { animation: ov-run 2.8s cubic-bezier(0.42, 0, 0.3, 1) 0.35s 1 both; }
.ov-sheet.is-lit .r-east .rv-pulse { animation-delay: 0.85s; }
.ov-sheet.is-lit .arc-pulse { animation: ov-run-arc 1.5s cubic-bezier(0.4, 0, 0.25, 1) calc(2.7s + var(--i) * 0.18s) 1 both; }
.ov-sheet.is-lit .ov-site .halo { animation: ov-glow 1.2s ease calc(3.9s + var(--i) * 0.18s) 1 both; }
.is-day .rv-pulse, .is-day .arc-pulse { display: none; }
@keyframes ov-run {
  0% { stroke-dashoffset: 60; opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}
@keyframes ov-run-arc {
  0% { stroke-dashoffset: 90; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}
@keyframes ov-glow {
  0%, 100% { opacity: 0.2; }
  40% { opacity: 0.55; }
}

/* ---------- middle widths: the cartouche and the reference leave the plate ---------- */
@media only screen and (max-width: 999px) {
  .ov { padding-top: calc(var(--header-h) + 24px); }
  .ov-sheet { width: calc(100% - 2 * var(--gutter)); padding: 12px 12px 26px; }
  .ov-plate { display: flex; flex-direction: column; }
  .ov-title, .ov-ref { position: static; width: auto; box-shadow: none; border: 0; background: none; }
  .ov-title { order: -1; padding: 12px 8px 22px; }
  .ov-ref { padding: 14px 6px 4px; }
  .ov-ref ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .ov-margin {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "fund active" "team team" "hist hist";
    grid-template-rows: auto auto auto;
  }
  .ov-team { padding-top: 44px; }
  .ov-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3.4vw, 48px); }
  .ov-hist { columns: 3; }
}
@media only screen and (max-width: 699px) {
  .ov-sheet { width: calc(100% - 24px); padding: 8px 8px 22px; }
  .ov-plate { padding: 3px; }
  .ov-title h1 { font-size: 34px; }
  .ov-state, .ov-rivername { display: none; }
  .ov-label, .ov-label i { font-size: 10.5px; }
  .ov-label i { display: none; }
  .l-home { transform: translate(calc(-100% - 9px), -50%); }
  .l-site.is-above, .l-site.is-above-left { transform: translate(-50%, calc(-100% - 8px)); }
  .l-site.is-above-left { transform: translate(calc(-100% + 4px), calc(-100% - 8px)); }
  .l-site.is-below { transform: translate(-50%, 8px); }
  .l-site.is-right { transform: translate(9px, -30%); }
  .ov-ref ul { grid-template-columns: minmax(0, 1fr); }
  .ov-imprint { padding: 12px 4px 0; }
  .ov-tools { width: 100%; justify-content: space-between; }
  .ov-margin { display: block; padding: 24px 6px 0; }
  .ov-col + .ov-col { margin-top: 0; padding-top: 36px; }
  .ov-reg > div { grid-template-columns: 84px minmax(0, 1fr); }
  .ov-hist { columns: 2; column-gap: 18px; }
  .hi-name { font-size: 16px; }
}
@media only screen and (max-width: 359px) {
  .ov-hist { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ov-sheet, .ov-sheet * { transition: none !important; animation: none !important; }
}

/* ---------- print: the sheet by day, on one Letter page ---------- */
@page { size: letter portrait; margin: 0.38in; }
@media print {
  html, html body.drp-overview { background: #fff !important; }
  .drp-overview .header, .drp-overview .footer, .drp-overview .mi-panel, .drp-overview .skip, .drp-overview .cue { display: none !important; }
  .ov-sheet .ov-print-logo { display: block; width: 1.25in; height: auto; margin: 0 auto 6px; }
  .ov { padding: 0 !important; background: none !important; }
  html body .ov-sheet {
    --ov-ground: #fff;
    --ov-text: #102E56;
    --ov-soft: #45525F;
    --ov-rule: rgba(16, 46, 86, 0.22);
    --ov-frame: #102E56;
    --ov-river: #5E9CC2;
    --ov-region: rgba(16, 46, 86, 0.7);
    --ov-region-fill: rgba(16, 46, 86, 0.04);
    --ov-arc: #7D5C1F;
    --ov-ring: #102E56;
    --ov-lamp: #2C5A85;
    --ov-home: #102E56;
    --ov-plate-bg: #fff;
    width: 100% !important;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    zoom: 0.86;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  html body .ov-sheet * { color: inherit !important; }
  html body .ov-sheet, html body .ov-sheet * { transition: none !important; animation: none !important; }
  .ov-sheet .ov-imprint { display: none !important; }
  html body .ov-sheet a:after { content: none !important; }
  .ov-sheet .ov-night { display: none !important; }
  .ov-sheet .ov-day { opacity: 1 !important; }
  .ov-sheet .ov-river, .ov-sheet .rg-glow, .ov-sheet .arc-glow, .ov-sheet .ov-site .halo, .ov-sheet .ov-home .halo { display: none !important; }
  .ov-sheet .ov-map { background: #fff !important; outline-color: #102E56; }
  .ov-sheet .rg-fill { fill: rgba(16, 46, 86, 0.04); }
  .ov-sheet .ov-site .dot { stroke: #fff; }
  .ov-sheet .rv-pulse, .ov-sheet .arc-pulse { display: none !important; }
  .ov-sheet .ov-arc, .ov-sheet .ov-site, .ov-sheet .ov-ring, .ov-sheet .ov-lamp, .ov-sheet .ov-label { opacity: 1 !important; }
  .ov-sheet .ov-tline, .ov-sheet .ov-probe, .ov-tools, .ov-ref .ref-towns, .ov-more, .ov-hist-note { display: none !important; }
  .ov-sheet .ov-letters > * { text-shadow: 0 0 3px #fff, 0 0 1px #fff !important; }
  .ov-sheet .ov-state { color: rgba(16, 46, 86, 0.75) !important; font-size: 8pt; }
  .ov-sheet .ov-rivername { color: #2F6F96 !important; font-size: 9pt; }
  .ov-sheet .ov-label, .ov-sheet .ov-label i { font-size: 7.5pt; }
  .ov-sheet .ov-label.l-site i { color: #7D5C1F !important; }
  .ov-sheet .ov-label.l-site b { color: #102E56 !important; }
  .ov-plate { display: block; padding: 3px; }
  .ov-sheet .ov-title, .ov-sheet .ov-ref {
    position: absolute; background: #fff !important; border: 1px solid #102E56;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 3.6px rgba(16, 46, 86, 0.4);
  }
  .ov-sheet .ov-title { order: 0; top: 2.6%; left: 2%; width: 37%; padding: 11px 13px 10px; }
  .ov-sheet .ov-title h1 { font-size: 21pt; margin-bottom: 3px; }
  .ov-sheet .ov-tag { font-size: 10pt; color: #2C5A85 !important; }
  .ov-sheet .ov-tag { margin-top: 5px; padding-top: 5px; }
  .ov-sheet .ov-ref { top: 2.6%; right: 2%; width: 25%; padding: 7px 9px; }
  .ov-sheet .ov-ref-h { font-size: 9pt; margin-bottom: 3px; }
  .ov-sheet .ov-ref ul { display: block; }
  .ov-sheet .ov-ref li { font-size: 6.8pt; padding: 1px 0; gap: 6px; }
  .ov-sheet .ov-key { transform: scale(0.8); }
  .ov-imprint { padding: 4px 0 0; }
  .ov-edition { font-size: 8pt; }
  .ov-sheet .ed-night, .ov-sheet .ed-day { display: none !important; }
  .ov-sheet .ed-print { display: inline; }
  .ov-margin {
    display: grid !important;
    grid-template-columns: 1.4fr 1.2fr 0.9fr;
    grid-template-areas: "fund active team" "hist hist hist";
    grid-template-rows: auto auto;
    gap: 0 16px;
    margin-top: 10px;
    padding: 8px 0 0;
    border-top: 1px solid #102E56;
    box-shadow: none;
    break-inside: avoid;
  }
  .ov-team { padding-top: 0 !important; }
  .ov-people { display: block !important; }
  .ov-col { align-self: start; }
  .ov-history { padding-top: 10px !important; }
  .ov-col h2 { font-size: 10.5pt; padding-bottom: 3px; margin-bottom: 1px; gap: 5px; }
  .ov-reg > div { grid-template-columns: 58px minmax(0, 1fr); gap: 6px; padding: 3px 0; }
  .ov-reg dt { font-size: 7pt; }
  .ov-reg dd { font-size: 7.3pt; line-height: 1.32; }
  .ov-cos li { padding: 3px 0 4px; }
  .co-name, .pp-name { font-size: 9.5pt; }
  .co-place { font-size: 8pt; }
  .co-what { font-size: 6.8pt; line-height: 1.32; margin-top: 1px; }
  .ov-people li { padding: 3px 0; }
  .pp-title { font-size: 7pt; }
  .ov-founders, .ov-addr, .ov-main, .ov-person, .ov-route { font-size: 7.4pt; line-height: 1.4; margin-top: 4px; }
  .ov-person .pp-name { font-size: 8.5pt; }
  .ov-hist { columns: 6; column-gap: 10px; }
  .ov-hist a { padding: 2px 0 3px; }
  .hi-name { font-size: 7.8pt; }
  .hi-place { font-size: 6.8pt; }
}

/* ==========================================================================
   Round 40 (Joseph's items 12, 13 and 17): one heading style, one body style
   and one label style on screen, with more room between rows. The map key,
   the night/day switch and the correspondence block are gone; the sheet keeps
   its default night state on screen and prints by day as before.
   ========================================================================== */
@media screen {
  /* heading */
  .ov-col h2 { margin: 0 0 4px; padding-bottom: 14px; font: 400 24px/1.2 var(--serif); }
  /* body */
  .ov-reg dd, .co-what, .ov-hist-note, .ov-edition, .ov-tag,
  .co-name, .pp-name, .hi-name, .ov-person .pp-name {
    font: 400 17px/1.5 var(--sans);
    color: var(--ov-text);
    letter-spacing: 0;
  }
  .co-name, .pp-name, .hi-name { font-weight: 600; }
  .ov-tag { white-space: normal; }
  .ov-edition { max-width: none; }
  .ov-sheet .ov-more a { font: 500 16px/1.4 var(--sans); }
  .ov-print { font: 500 15px/1 var(--sans); padding: 12px 16px; }
  /* label */
  .ov-reg dt, .co-place, .pp-title, .hi-place {
    font: 400 14px/1.45 var(--sans);
    font-style: normal;
    color: var(--ov-soft);
    letter-spacing: 0;
    text-transform: none;
  }
  .ov-label, .ov-probe { font: 600 13.5px/1.25 var(--sans); }
  .ov-label i, .ov-probe i { font: 400 13px/1.25 var(--sans); color: var(--ov-soft); }
  .ov-state { font: 500 13px/1 var(--sans); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; }

  /* room between rows */
  .ov-reg > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0 15px; }
  .ov-reg .is-size dd span + span { margin-top: 8px; }
  .ov-cos li { padding: 15px 0 17px; }
  .ov-cos a, .ov-people a { gap: 3px; }
  .co-what { margin-top: 8px; }
  .ov-people li { padding: 15px 0 16px; }
  .ov-margin { padding-top: 36px; }
  .ov-history { padding-top: 52px; }
  .ov-hist-note { margin: 12px 0 16px; }
  .ov-hist a { gap: 3px; padding: 13px 0 14px; }
  .ov-more { margin-top: 20px; }
}
@media screen and (max-width: 699px) {
  .ov-people { display: block; }
  .ov-label, .ov-label i { font-size: 11px; }
  .hi-name { font-size: 16px; }
}
