/* The four topic hubs (Adults & transition, ADHD, Complex bodies, Paying for it) — rebuild 2026-09-29.
   A hub is a crossroads in the village: a signpost asks "What brings you here?" and each answer is a
   plank you can take; the hub's principle is a note pinned beside it. The guides stand in one
   bookcase under a brass label; choosing a plank pulls the matching books forward off the shelf,
   ribbon out, with a hang-tag. Crisis numbers are a plain card taped up where you can find them;
   the fine print lives in manila folders. The funding hub reads as a money map: three stepping
   stones, eight envelopes, stacked papers, and the one folder to start this week.
   Every selector is scoped to body.p-hub. Behaviour stays in js/hub-paths.js (hooks unchanged). */

.p-hub { --wood-a: #c99a45; --wood-b: #9d7128; --plank-a: #fbf3dd; --plank-b: #f0dfb1; --manila: #f1dcaa; --manila-b: #e5c98a; }
.p-hub main :is(h1, h2, h3) { color: var(--navy); }
.p-hub main a { text-decoration: none; }
.p-hub .container { max-width: 1200px; padding-inline: clamp(16px, 4vw, 40px); }
.p-hub main > section:not(.page-head):not(.community-links) { position: relative; }

/* ======================= the crossroads: signpost + pinned note ======================= */
.p-hub .hub-way { padding: clamp(18px, 3vw, 40px) 0 clamp(40px, 5vw, 72px); }
.p-hub .hub-way-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: 1100px;
}
.p-hub .hub-signpost { grid-column: 1; grid-row: 1; min-width: 0; }
.p-hub .hub-note { grid-column: 2; grid-row: 1; }

/* the pinned note */
.p-hub .hub-note {
  position: relative;
  margin-top: 64px;
  padding: clamp(34px, 3.4vw, 42px) clamp(22px, 2.6vw, 32px) clamp(26px, 3vw, 34px);
  border-radius: 6px;
  background: #fbf0cf;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 34px -22px rgba(60, 40, 10, .55);
  rotate: 1.4deg;
  transform-origin: 50% -10px;
}
.p-hub .hub-note::after { /* the turned-up corner */
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 34px; height: 34px;
  border-radius: 0 0 6px 0;
  background: linear-gradient(135deg, #efdba6 50%, var(--cream) 50%);
  box-shadow: -2px -2px 3px rgba(60, 40, 10, .08);
}
.p-hub .hub-pin {
  position: absolute;
  top: -12px; left: 50%;
  width: 26px; height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--brick) 32% 100%);
  box-shadow: 0 5px 6px -2px rgba(0, 0, 0, .35);
}
.p-hub .hub-note h2,
.p-hub .hub-note .callout-title {
  margin: 0 0 10px;
  font: 400 clamp(27px, 2.5vw, 32px)/1.1 var(--f-hand);
  color: var(--navy);
}
.p-hub .hub-note p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.p-hub .hub-note--list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.p-hub .hub-note--list li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text);
  border-top: 1px dashed rgba(122, 91, 19, .3);
}
.p-hub .hub-note--list li:first-child { border-top: 0; }
.p-hub .hub-note--list li::before { /* a hand-drawn tick */
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 12px; height: 7px;
  border-left: 3px solid var(--sage);
  border-bottom: 3px solid var(--sage);
  rotate: -45deg;
}

/* the signpost */
.p-hub .hub-paths {
  position: relative;
  margin: 0;
  padding: 0 0 0 4px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.p-hub .hub-paths .path-q { /* the sign at the top of the post */
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0 0 18px;
  padding: 12px 26px 10px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 5px var(--wood-a), inset 0 0 0 7px var(--wood-b), 0 14px 20px -12px rgba(60, 40, 10, .5);
  font: 400 clamp(30px, 3vw, 40px)/1.05 var(--f-hand);
  color: var(--navy);
  rotate: -1.5deg;
}
.p-hub .hub-paths .path-buttons {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 0 0 0 40px;
}
.p-hub .hub-paths .path-buttons::before { /* the post */
  content: "";
  position: absolute;
  left: 12px; top: -44px; bottom: -34px;
  width: 16px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, var(--wood-a), #b78734 55%, var(--wood-b));
  box-shadow: 4px 8px 10px -6px rgba(60, 40, 10, .45);
}
.p-hub .hub-paths .path-buttons::after { /* where the post meets the ground */
  content: "";
  position: absolute;
  left: -2px; bottom: -40px;
  width: 44px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 60, 10, .28), transparent);
}
.p-hub .hub-paths .path-btn { /* a plank on the post, pointing the way */
  --tilt: -.8deg;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 46px 12px 40px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: 600 17px/1.3 var(--f-display);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  rotate: var(--tilt);
  filter: drop-shadow(0 6px 5px rgba(60, 40, 10, .22));
}
.p-hub .hub-paths .path-btn:nth-child(2n) { --tilt: .7deg; }
.p-hub .hub-paths .path-btn:nth-child(3n) { --tilt: -.3deg; }
.p-hub .hub-paths .path-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(157, 113, 40, .07) 9px 10px),
    linear-gradient(180deg, var(--plank-a), var(--plank-b));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  transition: background .3s var(--ease);
}
.p-hub .hub-paths .path-btn::after { /* the nail holding the plank; a tick once chosen */
  content: "";
  position: absolute;
  left: 13px; top: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d8c290, #7a5b13);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--f-body);
  color: var(--paper);
}
.p-hub .hub-paths .path-btn:hover::before { background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(157, 113, 40, .08) 9px 10px), linear-gradient(180deg, #fff8e6, #f5e3b2); }
.p-hub .hub-paths .path-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.p-hub .hub-paths .path-btn[aria-pressed="true"] { rotate: 0deg; translate: 10px 0; }
.p-hub .hub-paths .path-btn[aria-pressed="true"]::before { background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(122, 91, 19, .08) 9px 10px), linear-gradient(180deg, #f5d27e, #e3b04b); }
.p-hub .hub-paths .path-btn[aria-pressed="true"]::after {
  content: "\2713";
  left: 9px;
  width: 22px; height: 22px;
  margin-top: -11px;
  background: var(--navy);
}
@media (prefers-reduced-motion: no-preference) {
  .p-hub .hub-paths .path-btn { transition: rotate .45s var(--spring), translate .45s var(--spring), filter .3s var(--ease); }
  .p-hub .hub-paths .path-btn:hover { rotate: 0deg; translate: 5px 0; filter: drop-shadow(0 9px 7px rgba(60, 40, 10, .26)); }
  .p-hub .hub-paths .path-btn[aria-pressed="true"]:hover { translate: 10px 0; }
  /* the chosen plank swings level on its nail */
  .p-hub .hub-paths .path-btn[aria-pressed="true"] { animation: hub-swing .7s var(--ease); transform-origin: 18px 50%; }
  .p-hub .hub-paths .path-q { animation: hub-sign 1s .2s var(--ease) both; transform-origin: 50% 0; }
}
@keyframes hub-swing { 0% { rotate: -5deg; } 45% { rotate: 2.5deg; } 75% { rotate: -1deg; } 100% { rotate: 0deg; } }
@keyframes hub-sign { 0% { transform: rotate(-4deg); } 50% { transform: rotate(2deg); } 100% { transform: none; } }

.p-hub .hub-paths .path-note {
  margin: 40px 0 0;
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.p-hub .hub-paths .path-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 6px 0 0 4px;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--paper);
  font: 600 15px var(--f-display);
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}
.p-hub .hub-paths .path-reset[hidden] { display: none; }
.p-hub .hub-paths .path-reset:hover { background: var(--gold-soft); }
.p-hub .hub-paths .path-viewing {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--gold-soft);
  font: 600 15.5px/1.45 var(--f-body);
  color: var(--navy);
}

/* ======================= the bookcase ======================= */
.p-hub .hub-library { padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 84px); }
.p-hub .hub-case {
  position: relative;
  padding: clamp(64px, 6vw, 84px) clamp(22px, 3.2vw, 44px) clamp(40px, 4vw, 52px);
  border-radius: 26px 26px 12px 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(157, 113, 40, .05) 58px 60px),
    linear-gradient(180deg, #f1e3c1, #ead9b1);
  box-shadow: inset 0 0 0 14px var(--wood-a), inset 0 0 0 17px var(--wood-b), inset 0 22px 34px 6px rgba(90, 60, 10, .22), var(--shadow);
}
.p-hub .hub-case::after { /* the plinth the bookcase stands on */
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -14px;
  height: 14px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, var(--wood-b), #7e5a1f);
  z-index: -1;
}
.p-hub .hub-case-label { /* a brass label plate */
  position: absolute;
  top: 0; left: 50%;
  translate: -50% -42%;
  z-index: 3;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 11px 36px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8e2a3, #dcb055 55%, #c9983e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(122, 91, 19, .3), 0 10px 16px -8px rgba(60, 40, 10, .55);
  font: 700 clamp(19px, 2vw, 24px)/1.2 var(--f-display);
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}
.p-hub .hub-case-label::before,
.p-hub .hub-case-label::after { /* two screws */
  content: "";
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4cf, #8a6a22);
  box-shadow: inset 0 0 0 1px rgba(90, 60, 10, .35);
}
.p-hub .hub-case-label::before { left: 13px; }
.p-hub .hub-case-label::after { right: 13px; }

.p-hub .hub-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 60px 26px !important;
  max-width: none;
  margin: 0;
  padding: 0 0 12px;
}
.p-hub .hub-cards > .card {
  --c: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px 22px 20px 38px;
  border: 1px solid rgba(29, 44, 76, .08);
  border-radius: 6px 16px 16px 6px;
  outline: 0;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 16px 22px -16px rgba(60, 40, 10, .55);
}
.p-hub .hub-cards > .card:nth-child(4n+2) { --c: var(--blue); }
.p-hub .hub-cards > .card:nth-child(4n+3) { --c: var(--brick); }
.p-hub .hub-cards > .card:nth-child(4n+4) { --c: var(--sage); }
.p-hub .hub-cards > .card::before { /* the spine, with two gilt bands */
  width: 18px;
  background:
    linear-gradient(180deg, transparent 18px, rgba(255, 236, 180, .55) 18px 20px, transparent 20px 26px, rgba(255, 236, 180, .55) 26px 28px, transparent 28px),
    var(--c);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, .14);
}
.p-hub .hub-cards > .card::after { left: -16px; right: -16px; bottom: -26px; height: 13px; } /* the shelf */
.p-hub .hub-cards > .card h3 { position: static; margin: 0 0 8px; padding-right: 24px; font-size: 20px; line-height: 1.22; color: var(--navy); }
.p-hub .hub-cards > .card h3::before { /* ribbon bookmark */
  content: "";
  position: absolute;
  top: -1px; right: 20px;
  width: 14px; height: 32px;
  background: var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transition: height .35s var(--spring);
}
.p-hub .hub-cards > .card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.p-hub .hub-cards > .card .more-link { margin-top: auto; padding-top: 14px; font: 600 16px var(--f-display); color: var(--navy); }

/* the overview stands out: a wider book with a gilt-framed cover */
.p-hub .hub-cards > .card[href$="/start-here"] {
  grid-column: span 2;
  padding: 30px 32px 26px 48px;
  background: linear-gradient(180deg, #fffaf0, #fbf1d6);
  box-shadow: inset 0 0 0 9px #fffaf0, inset 0 0 0 10.5px rgba(215, 164, 62, .7), 0 1px 0 rgba(0, 0, 0, .04), 0 18px 26px -16px rgba(60, 40, 10, .6);
}
.p-hub .hub-cards > .card[href$="/start-here"]::before { width: 24px; }
.p-hub .hub-cards > .card[href$="/start-here"] h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; max-width: 22ch; }
.p-hub .hub-cards > .card[href$="/start-here"] p { font-size: 17.5px; max-width: 46ch; }
.p-hub .hub-cards > .card[href$="/start-here"] h3::before { width: 18px; height: 44px; right: 30px; }

/* the directory is the library's catalogue card, not another book */
.p-hub .hub-cards > .card[href^="/resources/directory"] {
  padding: 58px 22px 34px;
  border-radius: 6px;
  background-color: #fffdf6;
  background-image:
    linear-gradient(180deg, transparent 0 44px, rgba(169, 84, 47, .5) 44px 46px, transparent 46px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(143, 165, 198, .3) 27px 28px);
  background-position: 0 0, 0 50px;
}
.p-hub .hub-cards > .card[href^="/resources/directory"]::before { /* the rod hole */
  left: 50%; top: auto; bottom: 10px;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 2px 3px rgba(60, 40, 10, .25);
}
.p-hub .hub-cards > .card[href^="/resources/directory"] h3::before { display: none; }
.p-hub .hub-cards > .card[href^="/resources/directory"] h3 { position: relative; }
.p-hub .hub-cards > .card[href^="/resources/directory"]::marker { content: none; }
.p-hub .hub-cards > .card[href^="/resources/directory"] > h3:first-child::after,
.p-hub .hub-cards > .card[href^="/resources/directory"] > .hub-rec + h3::after { /* catalogue tab */
  content: "";
  position: absolute;
  left: 0; top: -44px;
  width: 64px; height: 12px;
  border-radius: 3px;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(122, 91, 19, .25);
}
.p-hub.hub--complex-bodies .hub-cards > .card[href^="/resources/directory"] { grid-column: span 2; }

/* choosing a plank pulls the matching books forward, ribbon out, with a hang-tag */
.p-hub .hub-cards > .card .hub-rec {
  position: absolute;
  top: -15px; left: 34px;
  z-index: 2;
  margin: 0;
  padding: 5px 14px 5px 26px;
  border-radius: 4px 999px 999px 4px;
  background: var(--gold);
  box-shadow: 0 6px 10px -6px rgba(60, 40, 10, .6);
  font: 700 12.5px/1.2 var(--f-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.p-hub .hub-cards > .card .hub-rec::before { /* the tag's eyelet */
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(60, 40, 10, .4);
}
.p-hub .hub-cards > .card.is-recommended {
  outline: 0;
  border-color: rgba(215, 164, 62, .7);
  box-shadow: 0 0 0 3px rgba(215, 164, 62, .45), 0 24px 30px -18px rgba(60, 40, 10, .6);
}
.p-hub .hub-cards > .card[href$="/start-here"].is-recommended {
  box-shadow: inset 0 0 0 9px #fffaf0, inset 0 0 0 10.5px rgba(215, 164, 62, .7), 0 0 0 3px rgba(215, 164, 62, .45), 0 24px 30px -18px rgba(60, 40, 10, .6);
}
.p-hub .hub-cards > .card.is-recommended h3::before { height: 50px; background: var(--gold-deep); }
/* the rest stay on the shelf, quieter but fully readable */
.p-hub .hub-cards:has(.is-recommended) > .card:not(.is-recommended) { background-color: #faf5e8; box-shadow: 0 10px 14px -12px rgba(60, 40, 10, .4); }
.p-hub .hub-cards:has(.is-recommended) > .card:not(.is-recommended)::before { filter: saturate(.45); }
.p-hub .hub-cards:has(.is-recommended) > .card[href^="/resources/directory"]:not(.is-recommended)::before { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .p-hub .hub-cards > .card.is-recommended { animation: hub-pull .7s var(--spring) both; }
  .p-hub .hub-cards > .card.is-recommended:nth-child(2) { animation-delay: .06s; }
  .p-hub .hub-cards > .card.is-recommended:nth-child(3) { animation-delay: .12s; }
  .p-hub .hub-cards > .card.is-recommended:nth-child(4) { animation-delay: .18s; }
  .p-hub .hub-cards > .card.is-recommended:nth-child(5) { animation-delay: .24s; }
  .p-hub .hub-cards > .card.is-recommended:nth-child(n+6) { animation-delay: .3s; }
  .p-hub .hub-cards > .card .hub-rec { animation: hub-tag .8s .35s var(--ease) both; transform-origin: 0 50%; }
}
@keyframes hub-pull { 0% { transform: translateY(0); } 35% { transform: translateY(-16px) rotate(-1.6deg); } 100% { transform: none; } }
@keyframes hub-tag { 0% { transform: rotate(-14deg); opacity: 0; } 50% { transform: rotate(5deg); opacity: 1; } 100% { transform: none; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .p-hub .hub-cards > .card:hover { translate: 0 -9px; rotate: -1.2deg; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 26px 32px -18px rgba(60, 40, 10, .6); }
  .p-hub .hub-cards > .card[href$="/start-here"]:hover { rotate: -.5deg; box-shadow: inset 0 0 0 9px #fffaf0, inset 0 0 0 10.5px rgba(215, 164, 62, .7), 0 26px 32px -18px rgba(60, 40, 10, .6); }
  .p-hub .hub-cards > .card:hover h3::before { height: 48px; }
}
.p-hub .hub-cards > .card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }

/* ======================= help: the taped-up card and the folders ======================= */
.p-hub .hub-help { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.p-hub .hub-help-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: 1100px;
}
.p-hub .hub-help-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* crisis numbers: a plain card taped where you'll find it — clear, calm, quick */
.p-hub .hub-crisis {
  position: relative;
  display: block;
  margin: 12px 0 0;
  padding: clamp(28px, 3vw, 36px) clamp(22px, 2.6vw, 30px) clamp(24px, 2.6vw, 30px);
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: inset 0 6px 0 var(--brick), 0 1px 0 rgba(0, 0, 0, .04), 0 22px 32px -22px rgba(60, 40, 10, .55);
  rotate: -.8deg;
}
.p-hub .hub-crisis::before { /* a strip of tape */
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 96px; height: 26px;
  margin-left: -48px;
  background: rgba(243, 229, 192, .9);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .18);
  rotate: 3deg;
}
.p-hub .hub-crisis h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 28px); }
.p-hub .hub-crisis p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--text); }
.p-hub .hub-crisis .card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; padding: 0; }
.p-hub .hub-crisis .btn { justify-content: center; min-height: 52px; font-size: 17px; }
.p-hub .hub-crisis .btn[href="tel:911"] { background: var(--brick); border-color: var(--brick); color: #fff; box-shadow: 0 4px 0 var(--brick-ink); }
.p-hub .hub-crisis .btn[href="tel:911"]:hover { background: var(--brick-ink); }
.p-hub .hub-crisis .btn[href="/crisis"] { grid-column: 1 / -1; }

/* the folders */
.p-hub .hub-files { display: grid; gap: 34px; padding-top: 18px; }
.p-hub .hub-files details.accordion,
.p-hub details.accordion.money-tips {
  position: relative;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 4px 16px 16px 16px;
  background: linear-gradient(180deg, var(--manila), #ecd39b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 24px -18px rgba(60, 40, 10, .6);
}
.p-hub .hub-files details.accordion::before,
.p-hub details.accordion.money-tips::before { /* the folder tab */
  content: "";
  position: absolute;
  left: 0; bottom: 100%;
  width: min(46%, 230px); height: 16px;
  border-radius: 10px 14px 0 0;
  background: var(--manila);
}
.p-hub .hub-files details.accordion > summary,
.p-hub details.accordion.money-tips > summary {
  min-height: 64px;
  padding: 16px 22px;
  border-radius: 4px 16px 16px 16px;
  font: 600 18.5px/1.3 var(--f-display);
  color: var(--navy);
}
.p-hub .hub-files details.accordion > summary::after,
.p-hub details.accordion.money-tips > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 252, 245, .75);
  font: 500 24px/1 var(--f-display);
  color: var(--navy);
  transform: none;
}
.p-hub .hub-files details.accordion[open] > summary::after,
.p-hub details.accordion.money-tips[open] > summary::after { content: "\2212"; background: var(--paper); }
.p-hub .hub-files details.accordion > summary:hover::after,
.p-hub details.accordion.money-tips > summary:hover::after { background: var(--paper); }
.p-hub .hub-files .accordion-body,
.p-hub .money-tips .accordion-body { /* the paper inside the folder */
  margin: 0 10px 10px;
  padding: 22px clamp(18px, 2.4vw, 28px) 24px;
  border-radius: 6px 6px 12px 12px;
  background: var(--paper);
  box-shadow: 0 -2px 6px rgba(60, 40, 10, .08);
  font-size: 16.5px;
  line-height: 1.6;
}
.p-hub .hub-files .accordion-body ul { padding-left: 1.1rem; }
.p-hub .hub-files .accordion-body li { margin-bottom: 10px; }
.p-hub .hub-files .accordion-body a:not(.btn) { color: var(--blue-ink); font-weight: 700; overflow-wrap: anywhere; }
.p-hub .hub-files .accordion-body a:not(.btn):hover { color: var(--navy); }
.p-hub .hub-files .accordion-body h3 { margin: 22px 0 8px; font-size: 19px; }
.p-hub .hub-files .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .p-hub .hub-files details[open] > .accordion-body,
  .p-hub .money-tips[open] > .accordion-body { animation: hub-slide .45s var(--ease); }
}
@keyframes hub-slide { from { opacity: 0; transform: translateY(-10px); } }

/* ======================= the funding hub: a money map ======================= */
.p-hub .hub-way--money .container { max-width: 1100px; }
.p-hub .funding-roadmap { margin: 0 0 clamp(36px, 4vw, 52px); text-align: center; }
.p-hub .funding-roadmap > h2 { margin: 0 0 clamp(24px, 3vw, 36px); font-size: clamp(30px, 3.6vw, 44px); }
.p-hub .money-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-hub .money-steps::before { /* the dashed path between the stones */
  content: "";
  position: absolute;
  left: 16%; right: 16%; top: 40px;
  border-top: 4px dashed rgba(157, 113, 40, .45);
}
.p-hub .money-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 8px;
}
.p-hub .money-step .step-number { /* a stepping stone */
  display: grid;
  place-items: center;
  width: 80px; height: 80px;
  margin: 0 0 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff6dc, #f3e5c0 60%, #e9d19a);
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 9px var(--gold), 0 14px 20px -10px rgba(60, 40, 10, .5);
  font: 400 42px/1 var(--f-hand);
  color: var(--navy);
}
.p-hub .money-step:nth-child(2) .step-number { box-shadow: 0 0 0 6px var(--cream), 0 0 0 9px var(--blue), 0 14px 20px -10px rgba(60, 40, 10, .5); background: radial-gradient(circle at 38% 32%, #fff, var(--blue-soft) 60%, #cdd8ea); }
.p-hub .money-step:nth-child(3) .step-number { box-shadow: 0 0 0 6px var(--cream), 0 0 0 9px var(--sage), 0 14px 20px -10px rgba(60, 40, 10, .5); background: radial-gradient(circle at 38% 32%, #fff, var(--sage-soft) 60%, #d5dcc6); }
.p-hub .money-step strong { font: 600 clamp(20px, 2vw, 23px)/1.2 var(--f-display); color: var(--navy); }
.p-hub .money-step > span:last-child { max-width: 26ch; font-size: 16.5px; line-height: 1.5; color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .p-hub .money-step .step-number { animation: hub-stone .6s var(--spring) both; }
  .p-hub .money-step:nth-child(2) .step-number { animation-delay: .18s; }
  .p-hub .money-step:nth-child(3) .step-number { animation-delay: .36s; }
}
@keyframes hub-stone { from { transform: translateY(14px) scale(.8); opacity: 0; } }
.p-hub details.accordion.money-tips { max-width: 760px; margin: 18px auto 0; }

/* eight envelopes */
.p-hub .hub-library--money .section-head { max-width: 760px; margin: 0 auto clamp(30px, 3.6vw, 46px); text-align: center; }
.p-hub .hub-library--money .section-head h2 { margin: 4px 0 10px; font-size: clamp(30px, 3.6vw, 44px); }
.p-hub .hub-library--money .section-head .lede { margin: 0; font-size: 18px; color: var(--text); }
.p-hub .hub-library--money .eyebrow { font: 400 26px/1 var(--f-hand); letter-spacing: 0; text-transform: none; color: var(--gold-dark); }
.p-hub .funding-paths { counter-reset: env; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; align-items: start; }
.p-hub .funding-paths .listing-card {
  --stamp: var(--gold);
  counter-increment: env;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 16px 24px -18px rgba(60, 40, 10, .6);
}
.p-hub .funding-paths .listing-card:nth-child(4n+2) { --stamp: var(--blue); }
.p-hub .funding-paths .listing-card:nth-child(4n+3) { --stamp: var(--brick); }
.p-hub .funding-paths .listing-card:nth-child(4n+4) { --stamp: var(--sage); }
.p-hub .funding-paths .listing-card::before { /* the envelope flap */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 30px;
  background: linear-gradient(180deg, #f5ead0, #efe1bd);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}
.p-hub .funding-paths .listing-card > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 30px 20px 18px 22px;
  list-style: none;
  cursor: pointer;
}
.p-hub .funding-paths .listing-card > summary::-webkit-details-marker { display: none; }
.p-hub .funding-paths .listing-card > summary > span { display: grid; gap: 4px; min-width: 0; }
.p-hub .funding-paths .listing-title { font: 600 20px/1.2 var(--f-display); color: var(--navy); }
.p-hub .funding-paths .listing-meta { font-size: 15.5px; line-height: 1.45; color: var(--text); }
.p-hub .funding-paths .listing-card > summary::after { /* a postage stamp, numbered, that turns to show it is open */
  content: counter(env) / "";
  display: grid;
  place-items: center;
  width: 46px; height: 54px;
  border-radius: 3px;
  background: var(--stamp);
  box-shadow: inset 0 0 0 7px rgba(255, 253, 246, .92);
  -webkit-mask: radial-gradient(circle 3px at 4px 4px, #0000 96%, #000) -4px -4px / 8px 8px, linear-gradient(#000 0 0) center / calc(100% - 7px) calc(100% - 7px) no-repeat;
  mask: radial-gradient(circle 3px at 4px 4px, #0000 96%, #000) -4px -4px / 8px 8px, linear-gradient(#000 0 0) center / calc(100% - 7px) calc(100% - 7px) no-repeat;
  font: 400 26px/1 var(--f-hand);
  color: var(--navy);
  rotate: 4deg;
  transition: rotate .4s var(--spring);
}
.p-hub .funding-paths .listing-card:nth-child(4n+3) > summary::after { color: #fff; }
.p-hub .funding-paths .listing-card[open] > summary::after { rotate: -8deg; }
.p-hub .funding-paths .listing-card > summary:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: 8px; }
.p-hub .funding-paths .listing-body {
  margin: 0 12px 12px;
  padding: 18px 18px 20px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 -1px 0 rgba(122, 91, 19, .15), 0 4px 10px -6px rgba(60, 40, 10, .3);
  font-size: 16.5px;
  line-height: 1.6;
}
.p-hub .funding-paths .listing-body p { margin: 0 0 14px; color: var(--text); }
.p-hub .funding-paths .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  /* opening an envelope slides the letter out */
  .p-hub .funding-paths .listing-card[open] > .listing-body { animation: hub-letter .5s var(--spring); }
  .p-hub .funding-paths .listing-card { transition: translate .35s var(--spring), box-shadow .35s var(--ease); }
}
@keyframes hub-letter { from { opacity: 0; transform: translateY(-16px); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .p-hub .funding-paths .listing-card:not([open]):hover { translate: 0 -4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 22px 28px -18px rgba(60, 40, 10, .6); }
  .p-hub .funding-paths .listing-card:not([open]):hover > summary::after { rotate: -3deg; }
}

/* stacked papers: how families combine help */
.p-hub .hub-stack .container { max-width: 1100px; }
.p-hub .hub-stack > .container > h2 { margin: 0 0 clamp(26px, 3vw, 40px); font-size: clamp(30px, 3.6vw, 44px); text-align: center; }
.p-hub .funding-examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; margin: 0 0 clamp(52px, 6vw, 80px); padding: 12px 6px 0; isolation: isolate; }
.p-hub .stack-card {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 16px -12px rgba(60, 40, 10, .5);
}
.p-hub .stack-card::before,
.p-hub .stack-card::after { /* the two papers underneath: one plus one */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  box-shadow: 0 8px 14px -10px rgba(60, 40, 10, .45);
}
.p-hub .stack-card::before { background: var(--gold-soft); rotate: -3.5deg; translate: -4px 6px; }
.p-hub .stack-card::after { background: var(--blue-soft); rotate: 2.5deg; translate: 5px 3px; }
.p-hub .stack-card:nth-child(2)::before { background: var(--sage-soft); }
.p-hub .stack-card:nth-child(3)::after { background: var(--brick-soft); }
.p-hub .stack-card h3 { position: relative; margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.p-hub .stack-card p { position: relative; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .p-hub .stack-card::before, .p-hub .stack-card::after { transition: rotate .45s var(--spring), translate .45s var(--spring); }
  /* hovering fans the stack so you can see there is more than one paper */
  .p-hub .stack-card:hover::before { rotate: -7deg; translate: -12px 8px; }
  .p-hub .stack-card:hover::after { rotate: 6deg; translate: 12px 4px; }
}

/* the one folder to start this week */
.p-hub .funding-first-step {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 14px;
}
.p-hub .funding-first-step::before { /* folder back with its tab */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px 18px 18px 18px;
  background: linear-gradient(180deg, var(--manila-b), #d9b977);
  box-shadow: 0 22px 32px -22px rgba(60, 40, 10, .6);
}
.p-hub .funding-first-step::after {
  content: "";
  position: absolute;
  left: 0; bottom: 100%;
  width: 38%; height: 18px;
  border-radius: 10px 16px 0 0;
  background: var(--manila-b);
}
.p-hub .folder-sheet {
  position: relative;
  z-index: 1;
  margin: -14px 18px 0;
  padding: clamp(28px, 3.4vw, 40px) clamp(22px, 3.4vw, 40px) clamp(24px, 3vw, 32px);
  border-radius: 4px;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(143, 165, 198, .22) 31px 32px),
    var(--paper);
  background-position: 0 14px;
  box-shadow: 0 -2px 8px rgba(60, 40, 10, .1);
  rotate: -.6deg;
}
.p-hub .folder-sheet h2 { margin: 0 0 10px; font: 400 clamp(30px, 3.2vw, 38px)/1.1 var(--f-hand); color: var(--navy); }
.p-hub .folder-sheet p { margin: 0 0 20px; font-size: 18px; line-height: 1.65; color: var(--text); }
.p-hub .folder-sheet .card-actions { padding: 0; }
.p-hub .folder-sheet .btn { min-height: 48px; }
@media (prefers-reduced-motion: no-preference) {
  .p-hub .folder-sheet { transition: translate .45s var(--spring), rotate .45s var(--spring); }
  .p-hub .funding-first-step:hover .folder-sheet { translate: 0 -10px; rotate: 0deg; }
}

/* ======================= widths ======================= */
@media (max-width: 1023px) {
  .p-hub .hub-way-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .p-hub .hub-note { grid-column: 1; grid-row: 1; margin-top: 12px; }
  .p-hub .hub-signpost { grid-row: 2; }
  .p-hub .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-hub.hub--complex-bodies .hub-cards > .card[href^="/resources/directory"] { grid-column: auto; }
  .p-hub .hub-help-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .p-hub .funding-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
}
@media (max-width: 719px) {
  .p-hub .hub-cards { grid-template-columns: minmax(0, 1fr); gap: 50px !important; }
  .p-hub .hub-cards > .card[href$="/start-here"] { grid-column: auto; padding: 26px 22px 22px 42px; }
  .p-hub .hub-cards > .card[href$="/start-here"] h3 { font-size: 24px; }
  .p-hub .hub-cards > .card[href$="/start-here"] p { font-size: 16.5px; }
  .p-hub .hub-case { padding: 66px 22px 36px; border-radius: 20px 20px 10px 10px; box-shadow: inset 0 0 0 10px var(--wood-a), inset 0 0 0 12px var(--wood-b), inset 0 18px 28px 4px rgba(90, 60, 10, .2), var(--shadow); }
  .p-hub .hub-cards > .card::after { left: -12px; right: -12px; }
  .p-hub .hub-case-label { white-space: normal; width: max-content; max-width: calc(100% - 24px); padding: 10px 30px; font-size: 18px; }
  .p-hub .funding-paths { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .p-hub .money-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; text-align: left; }
  .p-hub .money-steps::before { left: 38px; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 4px dashed rgba(157, 113, 40, .45); }
  .p-hub .money-step { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 18px; row-gap: 2px; align-items: start; padding: 0; }
  .p-hub .money-step .step-number { grid-row: 1 / span 2; margin: 0; }
  .p-hub .money-step strong { padding-top: 14px; }
  .p-hub .money-step > span:last-child { max-width: none; }
  .p-hub .funding-roadmap { text-align: left; }
  .p-hub .funding-examples { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-inline: 10px; }
  .p-hub .folder-sheet { margin-inline: 10px; }
}
@media (max-width: 480px) {
  .p-hub .hub-paths .path-q { font-size: 30px; padding: 10px 20px 8px; }
  .p-hub .hub-paths .path-buttons { padding-left: 30px; }
  .p-hub .hub-paths .path-buttons::before { left: 7px; width: 13px; }
  .p-hub .hub-paths .path-buttons::after { left: -6px; }
  .p-hub .hub-paths .path-btn { padding: 12px 36px 12px 36px; font-size: 16px; }
  .p-hub .hub-paths .path-btn::before { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); }
  .p-hub .hub-paths .path-btn[aria-pressed="true"] { translate: 4px 0; }
  .p-hub .hub-case { padding-inline: 18px; }
  .p-hub .hub-cards > .card { padding: 22px 18px 18px 34px; }
  .p-hub .hub-crisis .card-actions { grid-template-columns: 1fr; }
  .p-hub .hub-files details.accordion > summary, .p-hub details.accordion.money-tips > summary { font-size: 17px; padding: 14px 16px; }
  .p-hub .hub-files .accordion-body, .p-hub .money-tips .accordion-body { margin-inline: 6px; padding-inline: 16px; }
  .p-hub .funding-paths .listing-card > summary { padding: 30px 16px 16px 18px; }
}
@media (max-width: 359px) {
  .p-hub .hub-case { padding-inline: 14px; }
  .p-hub .hub-cards > .card::after { left: -8px; right: -8px; }
  .p-hub .hub-paths .path-btn { padding-right: 30px; font-size: 15.5px; }
}
@media print {
  .p-hub .hub-paths .path-buttons::before, .p-hub .hub-paths .path-buttons::after, .p-hub .hub-pin, .p-hub .hub-crisis::before { display: none; }
  .p-hub .hub-note, .p-hub .hub-crisis, .p-hub .folder-sheet { rotate: none; }
}

/* rows of books share one shelf height; links are never underlined */
.p-hub .hub-cards { align-items: stretch; }
.p-hub .hub-cards > .card { height: auto; }
.p-hub main .more-link, .p-hub main .more-link:hover { text-decoration: none; }
.p-hub .hub-library { padding-top: clamp(28px, 3vw, 44px); }

/* the stamp sits in its own column, never over the words, and never turns upside down */
.p-hub .funding-paths .listing-card > summary::after,
.p-hub .funding-paths .listing-card[open] > summary::after { position: static; top: auto; right: auto; transform: none; }
