/* Bhoral: the parts. Hero and river map, registrations strip, programmes, figures, stories, ledger, forms pages. Phone first. */

/* ---- Hero: the river ---- */

.hero {
  background: var(--river);
  color: var(--on-river);
}

.hero-stage {
  display: flex;
  flex-direction: column;
}

.hero-text {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.hero h1 {
  color: var(--on-river);
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.4rem);
  max-width: 15ch;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--on-river);
  max-width: 40ch;
  margin-bottom: 1.4rem;
}

.hero-csr {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--on-river);
  padding: 0.5rem 0;
}

.hero-map {
  order: 3;
}

.hero-legend {
  order: 2;
  font-family: var(--sans);
  font-size: 0.92rem;
  padding-bottom: 0.5rem;
}

.legend {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: none;
}

.lg {
  flex: none;
  width: 1.4rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  margin-top: 0.15rem;
}

.lg-open {
  color: var(--gold);
}

.lg-shut {
  color: var(--ink-2);
}

.lg-boat {
  border-top: 3px dashed var(--gold);
  height: 0;
  margin-top: 0.7rem;
}

.lg-flood {
  background: rgba(201, 214, 224, 0.3);
  border-radius: 2px;
}

.legend-paper .lg-open {
  color: var(--red);
}

.legend-paper .lg-boat {
  border-top-color: var(--line);
}

.legend-paper .lg-flood {
  background: #b9cbd9;
}

.legend-more {
  color: var(--gold);
  font-weight: 600;
}

/* The map itself. One SVG lies down (wide screens), one stands up (phones). */

.rv {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--sans);
}

.rv-wide {
  display: none;
}

.rv-bed {
  fill: none;
  stroke: var(--river-2);
  stroke-width: 74;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rv-flood {
  fill: none;
  stroke: rgba(201, 214, 224, 0.2);
  stroke-width: 170;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rv-braid {
  fill: none;
  stroke: var(--river-3);
  stroke-width: 4;
  stroke-linejoin: round;
}

.rv-main {
  fill: none;
  stroke: #4f84ad;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rv-char {
  fill: var(--on-river);
  opacity: 0.32;
}

.rv-town {
  fill: var(--on-river-2);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rv-boat {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 9 7;
  stroke-linejoin: round;
}

.rv-stop {
  fill: var(--river);
  stroke: var(--gold);
  stroke-width: 2.5;
}

.pl-hit {
  fill: transparent;
}

.pl-roof,
.pl-legs {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-box {
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 2;
}

.pl-flood .pl-box {
  fill: var(--river);
}

.pl-gone {
  opacity: 0.35;
}

.pl:hover .pl-box,
.pl:hover .pl-roof,
.pl:hover .pl-legs {
  stroke: #fff;
}

.pl:hover .pl-box {
  fill: #fff;
}

/* The map on paper (the Libraries page): the same drawing, on a river-blue plate. */
.map-band {
  background: var(--river);
  padding: 1rem 0 0.5rem;
  color: var(--on-river);
}

.map-band .legend-paper .lg-open {
  color: var(--gold);
}

.map-band .legend-paper .lg-boat {
  border-top-color: var(--gold);
}

.map-band .legend-paper .lg-flood {
  background: rgba(201, 214, 224, 0.3);
}

.map-band .legend-paper .lg-shut {
  color: var(--on-river-2);
}

.wrap-wide {
  max-width: 110rem;
  margin: 0 auto;
}

/* Counted figures along the foot of the hero. */

.hero-figs {
  background: var(--river);
  border-top: 1px solid var(--river-3);
  padding: 1.25rem 0 1.75rem;
}

.hero-figs-list {
  display: grid;
  gap: 1.25rem;
}

.fig p {
  margin: 0;
}

.fig-n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}

.fig-what {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0.25rem 0 0.35rem !important;
}

.fig-src {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.fig-note {
  font-style: italic;
}

.fig-big .fig-n {
  color: var(--gold);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
}

.fig-big .fig-what {
  color: var(--on-river);
}

.fig-big .fig-src {
  color: var(--on-river-2);
}

/* ---- Registrations strip ---- */

.regs {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.regs-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.regs-title a {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.regs-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

.regs-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}

.regs-kind {
  font-size: 0.85rem;
  color: var(--ink-2);
  grid-column: 1 / -1;
}

.regs-no {
  font-weight: 600;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.regs-valid {
  grid-column: 1;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.regs-check {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.9rem;
  white-space: nowrap;
  align-self: center;
}

.regs-fcra .regs-no {
  font-weight: 500;
}

/* ---- Bands and page heads ---- */

.band {
  padding: 3rem 0;
}

.band-tight {
  padding: 2rem 0;
}

.band + .band {
  border-top: 1px solid var(--rule);
}

.band-counted {
  background: var(--paper-2);
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.band-head p {
  margin-bottom: 0;
}

.more {
  font-family: var(--sans);
  font-weight: 600;
  white-space: nowrap;
}

.page-head {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.lede {
  font-size: 1.2rem;
  max-width: 52ch;
}

.narrow {
  max-width: 46rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--sans);
  font-weight: 500;
  margin-top: 0.5rem;
}

.toc a {
  padding: 0.35rem 0;
}

.h2-like {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
}

.bullets {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.bullets li {
  margin-bottom: 0.4rem;
}

.notes {
  font-size: 1rem;
}

.cell-note {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ---- Steps ---- */

.steps {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--river);
  border-radius: 50%;
  color: var(--river);
  font-weight: 700;
  font-size: 1rem;
  vertical-align: middle;
}

.step-title {
  font-size: 1.1rem;
  margin: 0.2rem 0 0.25rem;
}

.steps p {
  margin: 0;
}

/* ---- Programmes: a numbered register, not cards ---- */

.progs {
  border-top: 2px solid var(--ink);
}

.prog {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.prog-no {
  font-weight: 600;
  color: var(--red);
  font-size: 1.05rem;
  padding-top: 0.2rem;
}

.prog-draw {
  display: none;
  color: var(--river);
}

.prog-text h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.prog-text h3 a {
  color: var(--ink);
  text-decoration-color: var(--rule);
}

.prog-text p {
  margin-bottom: 0.3rem;
}

.prog-fig {
  grid-column: 2;
  padding-top: 0.5rem;
}

.prog-fig .fig-n {
  font-size: 1.6rem;
  color: var(--river);
}

.prog-head-draw {
  display: none;
  color: var(--river);
}

.facts {
  margin: 0 0 1.5rem;
  border-top: 2px solid var(--ink);
}

.facts div {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-2);
}

.facts dd {
  margin: 0;
}

.h3 {
  font-size: 1.3rem;
}

/* ---- Figures ---- */

.figs {
  display: grid;
  gap: 1.5rem;
}

.figs li {
  border-top: 2px solid var(--river);
  padding-top: 0.75rem;
}

.figs .fig-n {
  color: var(--river);
}

/* ---- Stories ---- */

.stories {
  display: grid;
  gap: 2rem;
}

.story img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 0.9rem;
  background: var(--paper-2);
}

.story h3 {
  font-size: 1.35rem;
}

.story h3 a {
  color: var(--ink);
}

.story-fig {
  margin: 1.5rem auto;
}

.story-fig figcaption {
  margin-top: 0.4rem;
}

.pull {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--red);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
}

.consent-line {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ---- Ledger tables: money, registrations, places, figures ---- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.table-scroll:focus-visible {
  outline-offset: 2px;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.98rem;
  border-top: 2px solid var(--ink);
}

.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ledger tbody th {
  font-weight: 500;
}

.ledger tfoot th,
.ledger tfoot td {
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.ledger .r {
  text-align: right;
  padding-right: 0;
  padding-left: 0.75rem;
  white-space: nowrap;
}

.reg-table td.num {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.reg-table {
  min-width: 46rem;
}

.places {
  min-width: 36rem;
}

.figs-table {
  min-width: 44rem;
}

.fig-cell {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--river);
}

.row-shut th,
.row-shut td {
  color: var(--ink-2);
}

.ledger-cols {
  display: grid;
  gap: 2rem;
}

.ledger-col h3 {
  font-size: 1.3rem;
}

.ledger-in h3::before,
.ledger-out h3::before {
  display: inline-block;
  font-family: var(--sans);
  margin-right: 0.4rem;
  color: var(--red);
}

.ledger-in h3::before {
  content: "↓";
}

.ledger-out h3::before {
  content: "↑";
}

.bar {
  display: inline-block;
  vertical-align: middle;
  width: calc(var(--w) * 0.6);
  max-width: 3.6rem;
  height: 0.5rem;
  margin-right: 0.4rem;
  background: var(--river);
}

.ledger-out .bar {
  background: var(--red);
}

.pay {
  max-width: 36rem;
}

.slabs {
  margin-top: 2rem;
}

/* ---- People ---- */

.people {
  border-top: 2px solid var(--ink);
}

.people li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
}

.person-name {
  font-weight: 600;
}

.person-role {
  font-family: var(--sans);
  font-size: 0.92rem;
}

.person-about {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* ---- Ways to help: one red door, two plain ones ---- */

.help {
  display: grid;
  gap: 1.25rem;
}

.help li {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.help li.help-give {
  border-top: 4px solid var(--red);
  background: var(--paper-2);
  padding: 1.25rem;
}

.help h3 {
  font-size: 1.5rem;
}

.closing {
  padding: 3rem 0 0;
  text-align: left;
}

/* ---- Donate ---- */

.pay-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.pay-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--river);
  padding: 1.1rem 1.25rem;
}

.pay-big {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

.bank {
  margin: 0 0 0.75rem;
}

.bank div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}

.bank dt {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.bank dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.keep {
  border-left: 4px solid var(--red);
  padding: 0.75rem 1rem;
  background: var(--paper-2);
  max-width: 60ch;
}

.pan-note {
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
}

.uses {
  border-top: 2px solid var(--ink);
}

.uses li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.2rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.uses-n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--river);
}

.uses .source {
  grid-column: 2;
}

/* ---- Volunteer roles and CSR projects ---- */

.roles,
.csrs {
  display: grid;
  gap: 1.5rem;
}

.role,
.csr {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.role-head h3 {
  margin: 0;
}

.role-state {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--river);
}

.role-closed .role-state {
  color: var(--ink-2);
}

.role-closed h3 {
  color: var(--ink-2);
}

.role-facts {
  margin: 0.75rem 0;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.role-facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.3rem 0;
}

.role-facts dt {
  color: var(--ink-2);
}

.role-facts dd {
  margin: 0;
}

.role-code {
  font-family: var(--sans);
  background: var(--paper-2);
  padding: 0.6rem 0.8rem;
}

/* ---- Reports ---- */

.reports {
  border-top: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}

.reports li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.15rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.rep-year {
  font-weight: 700;
  grid-row: span 3;
}

.rep-kind {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rep-title {
  font-weight: 600;
}

.stops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--sans);
}

.stops .num {
  font-weight: 700;
  color: var(--red);
}

.prog-fig-img {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.prog-fig-img img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
}

.prog-fig-img figcaption {
  margin-top: 0.4rem;
}

/* On the river the red focus ring would vanish (1.5 : 1); gold reads at 6.2 : 1. */
.hero :focus-visible,
.hero-figs :focus-visible,
.map-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}
