/* Our Special Village — the inside of a guide (Taylor, 2026-09-29: "It's a lot of info, so I
   just want it to be palatable").

   Loaded on every guide right after shell.css. Everything here is scoped under .guide-content,
   so nothing outside a guide's reading area changes. No words, links or hooks are touched:
   every change is how the existing pieces look.

   The reading desk, piece by piece:
   - the fine print that opens a guide is a small slip of paper;
   - "Bottom line" and other gold callouts are cards pinned to the page with a brass pin;
   - "Read this first" / "Important" (mist callouts) are notes taped down at the corners;
   - navy callouts are a dusk card with a few stars;
   - numbered steps are a trail of stepping stones, the first stone lit (that's the thing to do);
   - resource cards are index cards with a round "visit" knob and a tear-off ticket stub
     holding the phone number;
   - question lists are a notepad with tick boxes; plain numbered lists are small stones;
   - sources are a library catalogue card, footnoted;
   - the open chapter carries a ribbon bookmark.
   Motion only where it means something (the bookmark drops into the page you open, the trail
   fills as you walk it, a tick box stamps when you hover a question) and never with
   prefers-reduced-motion. Nothing is hidden when JavaScript is off. */

.guide-content {
  --g-pin: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--gold) 34%, #a8791f 100%);
  --g-pin-shadow: 0 5px 6px -2px rgba(0, 0, 0, .35);
  --g-note-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 20px 30px -22px rgba(60, 40, 10, .55);
  --g-tape: linear-gradient(180deg, rgba(240, 226, 184, .92), rgba(228, 210, 160, .88));
  --g-rule: #e9dfc7;
  --g-index-red: rgba(169, 84, 47, .38);
}

/* ================= reading type inside chapters ================= */
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div) {
  font-size: 17.5px;
  line-height: 1.72;
}
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div) > p { color: var(--text); }
.guide-content .guide-sections .accordion-body > h2:not(.sr-only) { font-size: clamp(23px, 2.4vw, 27px); margin: 6px 0 12px; color: var(--navy); }
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div) > h3 {
  position: relative;
  margin: 1.9em 0 .55em;
  padding-bottom: 10px;
  font-size: clamp(19.5px, 2vw, 22px);
  line-height: 1.3;
  color: var(--navy);
}
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div) > h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0 60%, transparent 60% 72%, var(--gold) 72%);
}
.guide-content .guide-sections :is(.accordion-body, .care-section) > h3:first-child,
.guide-content .guide-sections .accordion-body > h2.sr-only + h3 { margin-top: .3em; }

/* bulleted lists: small gold seeds, bold lead-ins in navy */
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div, .callout) ul:not([class]) {
  list-style: none; padding-left: 0; margin: .4em 0 1.2em;
}
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div, .callout) ul:not([class]) > li {
  position: relative; padding-left: 30px; margin-bottom: .7em;
}
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div, .callout) ul:not([class]) > li::before {
  content: ""; position: absolute; left: 7px; top: .66em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3.5px var(--gold-soft);
}
.guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div) ul:not([class]) > li > strong:first-child {
  font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 1.03em;
}

/* plain numbered lists: stepping stones joined by a dotted path */
.guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) {
  list-style: none; counter-reset: g-stone; padding-left: 0; margin: .6em 0 1.3em; position: relative;
}
.guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) > li {
  counter-increment: g-stone; position: relative; padding: 4px 0 14px 50px; margin: 0;
}
.guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) > li::before {
  content: counter(g-stone); position: absolute; left: 0; top: 0; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: 0 0 0 2px #e5cf9a, 0 3px 6px -3px rgba(60, 40, 10, .4);
  font: 600 15px/1 var(--f-display); color: var(--navy);
}
.guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) > li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 0; border-left: 2px dotted #d9c28c;
}

/* in "What to do now", the first stone is lit: that's where to start */
.guide-content #do-now ol:not([class]) > li:first-child::before,
.guide-content .guide-sections > h2#do-now + ol:not([class]) > li:first-child::before {
  background: #fff3cf; box-shadow: 0 0 0 2px var(--gold), 0 0 18px 4px rgba(247, 206, 120, .7);
}

/* bold links stay bold; phone numbers carry a small phone so they read as "call" */
.guide-content a[href^="tel:"]:not(.btn) { white-space: nowrap; }
.guide-content a[href^="tel:"]::before {
  content: ""; display: inline-block; width: .92em; height: .92em; margin-right: .28em; vertical-align: -.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* statements set apart (blockquotes): a warm slip with a gold edge */
.guide-content .guide-sections blockquote {
  position: relative; margin: 1.6em 0; padding: 18px 24px 18px 26px;
  background: var(--gold-soft); border-radius: 6px 20px 20px 6px; border-left: 5px solid var(--gold);
  font-size: 17.5px; line-height: 1.62; color: var(--navy);
}
.guide-content .guide-sections blockquote > :last-child { margin-bottom: 0; }

/* small print inside a guide */
.guide-content .guide-sections .note {
  position: relative; padding: 2px 0 2px 16px; border-left: 3px solid #e5cf9a; font-size: 15px; line-height: 1.6; color: var(--muted);
}

/* ================= the fine print that opens a guide: a small slip ================= */
.guide-content .guide-sections > p:first-child {
  position: relative; margin: 0 0 22px; padding: 14px 18px 14px 50px;
  background: var(--paper); border: 1px dashed #dcc995; border-radius: 12px;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}
.guide-content .guide-sections > p:first-child::before {
  content: "i" / ""; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark);
  font: 700 14px/1 var(--f-display);
}

/* section headings that sit between chapters ("What to do now") get a small pennant */
.guide-content .guide-sections > h2 { position: relative; padding-left: 34px; font-size: clamp(25px, 2.6vw, 30px); }
.guide-content .guide-sections > h2::before {
  content: ""; position: absolute; left: 2px; top: .22em; width: 22px; height: 26px; background: var(--brick);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

/* ================= callouts ================= */
.guide-content .callout {
  position: relative; overflow: visible;
  margin: 30px 0 26px; padding: 30px clamp(20px, 3.4vw, 32px) 24px;
  border: 0; border-radius: 6px;
  box-shadow: var(--g-note-shadow);
}
.guide-content .callout > :is(h2, h3, h4, .callout-title, .callout-h):first-child {
  margin: 0 0 8px; font-family: var(--f-hand); font-weight: 400; letter-spacing: 0; line-height: 1.1;
  font-size: clamp(25px, 2.6vw, 29px);
}
.guide-content .callout p { font-size: 17px; line-height: 1.65; }
.guide-content .callout p:last-child { margin-bottom: 0; }

/* gold: a card pinned to the page (Bottom line, The mistake we see most, …) */
.guide-content .callout:not(.callout--mist):not(.callout--navy) {
  background: linear-gradient(180deg, #fff9e8, #fdf1d3);
}
.guide-content .callout:not(.callout--mist):not(.callout--navy)::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: var(--g-pin); box-shadow: var(--g-pin-shadow); z-index: 2;
}
.guide-content .callout:not(.callout--mist):not(.callout--navy)::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 30px; height: 30px;
  background: linear-gradient(135deg, #efd9a0 50%, var(--paper) 50%); border-radius: 0 0 6px 0;
  box-shadow: -2px -2px 4px -2px rgba(60, 40, 10, .2);
}
.guide-content .callout:not(.callout--mist):not(.callout--navy) > :is(h2, h3, h4, .callout-title, .callout-h):first-child { color: var(--gold-dark); }
/* The bottom line: the summary of the whole guide, so it's the biggest note on the board */
.guide-content .callout:has(> #bottom-line) { padding-top: 36px; }
.guide-content .callout:has(> #bottom-line) > #bottom-line {
  display: inline-block; font-size: clamp(29px, 3vw, 34px); padding-bottom: 4px;
  background: linear-gradient(transparent 72%, rgba(215, 164, 62, .38) 72% 92%, transparent 92%);
}
.guide-content .callout:has(> #bottom-line) p { font-size: 18px; color: var(--navy); }

/* mist: a note taped down at two corners (Read this first, Important) */
.guide-content .callout--mist {
  background: linear-gradient(180deg, #f5f7fb, #eef2f8);
}
.guide-content .callout--mist::before,
.guide-content .callout--mist::after {
  content: ""; position: absolute; top: -9px; width: 86px; height: 24px; background: var(--g-tape);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .12); z-index: 2;
}
.guide-content .callout--mist::before { left: -14px; rotate: -32deg; top: 2px; }
.guide-content .callout--mist::after { right: -14px; rotate: 32deg; top: 2px; }
.guide-content .callout--mist > :is(h2, h3, h4, .callout-title, .callout-h):first-child { color: var(--blue-ink); }

/* navy: a dusk card */
.guide-content .callout--navy {
  color: #efe9da; border-radius: 26px; padding-top: 32px; overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 9% 20%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 24% 76%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 41% 14%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 58% 34%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 69% 86%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 92% 58%, rgba(255,255,255,.6), transparent),
    radial-gradient(520px 260px at 88% 0%, rgba(247, 206, 120, .18), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lift);
}
.guide-content .callout--navy::before {
  content: ""; position: absolute; top: 20px; right: 24px; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fffaf0, #efe2c2 60%, #d9c79c);
  box-shadow: 0 0 40px 10px rgba(247, 226, 176, .22);
}
.guide-content .callout--navy > :is(h2, h3, h4, .callout-title, .callout-h):first-child { color: #f3d78e; padding-right: 56px; }
.guide-content .callout--navy :is(p, li) { color: #efe9da; }
.guide-content .callout--navy :is(strong, em) { color: #fff; }
.guide-content .callout--navy a:not(.btn) { color: #f6dc9a; }
.guide-content .callout--navy a:not(.btn):hover { color: #fff; }

/* the short notes at the top of a guide hang a touch crooked, like real paper */
.guide-content .guide-sections > div.callout:not(.callout--navy) { rotate: -.35deg; }
.guide-content .guide-sections > div.callout--mist { rotate: .3deg; }

/* a letter to copy (IEP request letter) is a sheet of writing paper inside the pinned card */
.guide-content .callout .card {
  position: relative; background: #fffefb; border: 1px solid #eadfc6; border-radius: 3px; box-shadow: 0 10px 20px -16px rgba(60, 40, 10, .5);
  padding: 22px 22px 18px 42px; font-size: 16.5px;
  background-image: linear-gradient(90deg, transparent 28px, var(--g-index-red) 28px 30px, transparent 30px);
}

/* ================= numbered steps: a trail of stepping stones ================= */
.guide-content ol.steps {
  --stone: 52px;
  position: relative; counter-reset: step; display: grid; gap: 18px;
  padding: 6px 0 6px calc(var(--stone) + 22px); margin: 18px 0 26px;
}
.guide-content ol.steps::before {
  content: ""; position: absolute; left: calc(var(--stone) / 2 - 11px); top: 30px; bottom: 30px; width: 22px; border-radius: 22px;
  background: #f4e5bd; box-shadow: inset 0 0 0 4px #e8d39f;
}
.guide-content ol.steps > li {
  position: relative; margin: 0; padding: 18px 22px 18px; border: 0; border-radius: 18px;
  background: var(--paper); box-shadow: var(--shadow);
}
.guide-content ol.steps > li::before {
  content: counter(step); position: absolute; left: calc(-1 * (var(--stone) + 22px)); top: 12px; z-index: 1;
  width: var(--stone); height: var(--stone); border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--navy); font: 600 22px/1 var(--f-display);
  box-shadow: 0 6px 12px -6px rgba(60, 40, 10, .45), 0 0 0 4px var(--cream), 0 0 0 7px var(--c, var(--gold));
}
.guide-content ol.steps > li:nth-child(4n+2) { --c: var(--blue); }
.guide-content ol.steps > li:nth-child(4n+3) { --c: var(--sage); }
.guide-content ol.steps > li:nth-child(4n+4) { --c: var(--brick); }
/* the first stone is lit: that's the thing to do today */
.guide-content ol.steps > li:first-child { box-shadow: 0 0 0 2px rgba(215, 164, 62, .55), var(--shadow-lift); }
.guide-content ol.steps > li:first-child::before {
  background: #fff3cf;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--gold), 0 0 26px 8px rgba(247, 206, 120, .65);
}
.guide-content ol.steps > li > h3 { margin: 0 0 6px; font-size: clamp(18.5px, 1.9vw, 20.5px); line-height: 1.3; color: var(--navy); }
.guide-content ol.steps > li > h3::after { display: none; }
.guide-content ol.steps > li p { font-size: 16.5px; line-height: 1.65; }
.guide-content ol.steps > li p:last-child { margin-bottom: 0; }
/* steps inside a taped note (TEIS pathway) sit on the note, not on the chapter */
.guide-content .callout ol.steps > li { background: #fffefb; }

/* ================= resource cards: index cards with a visit knob and a ticket stub ================= */
.guide-content .res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; margin: 18px 0 26px; }
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) {
  --c: var(--gold);
  position: relative; display: flex; flex-direction: column;
  padding: 24px 22px 18px; border: 1px solid #ecdfc2; border-radius: 4px 4px 16px 4px;
  background: #fff; box-shadow: 0 1px 0 #efe4cb, 0 16px 26px -20px rgba(60, 40, 10, .55);
  transition: translate .35s var(--spring), box-shadow .35s var(--ease), rotate .35s var(--spring);
}
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card)::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 7px; border-radius: 4px 4px 0 0; background: var(--c);
}
.guide-content .res-list > .res-card:nth-child(4n+2), .guide-content .grid-2 > .card:nth-child(2) { --c: var(--blue); }
.guide-content .res-list > .res-card:nth-child(4n+3) { --c: var(--sage); }
.guide-content .res-list > .res-card:nth-child(4n+4) { --c: var(--brick); }
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) h3 {
  margin: 0 0 12px; padding: 0 0 10px; font-size: 19px; line-height: 1.3;
  border-bottom: 2px solid var(--g-index-red);
}
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) h3::after { display: none; }
.guide-content .grid-2 > .card h3 { margin-top: 12px !important; }
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) p { font-size: 16px; line-height: 1.6; }
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) > :last-child { margin-bottom: 0; }

/* the title is the way in: the whole card opens it, and a round knob says so */
.guide-content .res-list .res-card h3, .guide-content .res-card h3:has(a) { padding-right: 52px; }
.guide-content .res-card h3 a { color: var(--navy); }
.guide-content .res-card h3 a:hover { color: var(--gold-ink); text-decoration: none; }
.guide-content .res-card h3 a svg { display: none; }
.guide-content .res-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.guide-content .res-card h3 a::after {
  content: "\2192" / ""; position: absolute; top: 18px; right: 16px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--navy); font: 600 19px/1 var(--f-display);
  box-shadow: inset 0 0 0 2px rgba(215, 164, 62, .45);
  transition: background-color .3s var(--ease), translate .35s var(--spring);
}
.guide-content .res-card h3 a[target="_blank"]::after { content: "\2197" / ""; }
.guide-content .res-card :is(p, .res-meta) a { position: relative; z-index: 2; }
.guide-content .res-card:hover { box-shadow: 0 1px 0 #efe4cb, 0 24px 34px -22px rgba(60, 40, 10, .6); }
.guide-content .res-card:hover h3 a::after { background: var(--gold); }
.guide-content .res-card:focus-within { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.guide-content .res-card h3 a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .guide-content .res-card:hover { translate: 0 -4px; rotate: -.4deg; }
  .guide-content .res-card:hover h3 a::after { translate: 3px -3px; }
}

/* the phone number lives on a tear-off stub */
.guide-content .res-card .res-meta {
  position: relative; margin: auto -22px -18px; padding: 12px 22px 14px;
  border-top: 2px dashed #e2d3ae; border-radius: 0 0 16px 4px;
  background: #fbf3de; font-size: 15px; font-weight: 700; color: var(--muted);
}
.guide-content .res-card > .res-meta.res-meta { margin-top: auto; margin-bottom: -18px; }
.guide-content .res-card > .res-meta:not(:last-child) { margin-bottom: 0; }
.guide-content .res-card .res-meta::before,
.guide-content .res-card .res-meta::after {
  content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px #e2d3ae;
}
.guide-content .res-card .res-meta::before { left: -10px; clip-path: inset(0 0 0 50%); }
.guide-content .res-card .res-meta::after { right: -10px; clip-path: inset(0 50% 0 0); }
.guide-content .res-card > p:not(.res-meta):nth-last-child(2) { margin-bottom: 16px; }
.guide-content .res-meta a[href^="tel:"] {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; margin: 2px 0; border-radius: 999px;
  background: var(--navy); color: var(--paper); font-weight: 700; box-shadow: 0 3px 0 var(--navy-deep);
  transition: translate .2s var(--ease), box-shadow .2s var(--ease);
}
.guide-content .res-meta a[href^="tel:"]:hover { color: var(--paper); background: var(--navy-soft); }
.guide-content .res-meta a[href^="tel:"]:active { translate: 0 2px; box-shadow: 0 1px 0 var(--navy-deep); }

/* ================= question lists: a notepad with tick boxes ================= */
.guide-content ul.checklist {
  position: relative; list-style: none; margin: 10px 0 18px; padding: 20px 20px 12px 58px;
  background: #fffdf5; border: 1px solid #ecdfc2; border-radius: 6px;
  box-shadow: 0 16px 24px -20px rgba(60, 40, 10, .5);
  background-image: linear-gradient(90deg, transparent 44px, var(--g-index-red) 44px 46px, transparent 46px);
}
.guide-content ul.checklist > li {
  position: relative; margin: 0; padding: 10px 0 10px; border-bottom: 1px solid #e4eaf3; font-size: 16.5px; line-height: 1.55;
}
.guide-content ul.checklist > li:last-child { border-bottom: 0; }
.guide-content ul.checklist > li::before {
  content: ""; position: absolute; left: -42px; top: 12px; width: 20px; height: 20px; border-radius: 4px;
  border: 2px solid var(--blue-ink); background: #fff; rotate: -3deg;
}
.guide-content ul.checklist > li:nth-child(even)::before { rotate: 2deg; }
.guide-content ul.checklist + .btn { margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .guide-content ul.checklist > li::after {
    content: ""; position: absolute; left: -37px; top: 13px; width: 8px; height: 14px; border: solid var(--sage);
    border-width: 0 3px 3px 0; rotate: 40deg; opacity: 0; scale: 1.6; transition: opacity .25s var(--ease), scale .3s var(--spring);
  }
  .guide-content ul.checklist > li:hover::after { opacity: 1; scale: 1; }
}

/* ================= the open chapter carries a ribbon bookmark ================= */
.guide-content.gr-on .guide-sections > details.gr-chapter { position: relative; }
.guide-content .guide-sections > details.gr-chapter::before {
  content: ""; position: absolute; top: -1px; right: 72px; z-index: 2; width: 16px; height: 0;
  background: var(--brick); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  transition: height .45s var(--spring);
}
.guide-content .guide-sections > details.gr-chapter[open]::before { height: 40px; }
.guide-content .guide-sections > details.gr-chapter > summary { border-radius: 20px; }
.guide-content .guide-sections > details.gr-chapter[open] > summary { padding-right: 110px; }
@media (prefers-reduced-motion: reduce) {
  .guide-content .guide-sections > details.gr-chapter::before { transition: none; }
}
/* the Next button reads as the way on */
.guide-content .gr-next { border-top-style: dashed; }

/* ================= sources: a library catalogue card ================= */
.guide-content details.guide-sources,
.guide-content section.care-accordion.guide-sources {
  position: relative; margin-top: 34px; border: 1px solid #e3d6b6; border-radius: 6px; box-shadow: 0 16px 26px -22px rgba(60, 40, 10, .5);
  background:
    linear-gradient(180deg, transparent 0 62px, rgba(169, 84, 47, .3) 62px 64px, transparent 64px) 0 0 / 100% 100% no-repeat,
    #fbf6e8;
  overflow: visible;
}
.guide-content details.guide-sources:not([open]) { background: #fbf6e8; }
/* the hole a catalogue card hangs from in the drawer */
.guide-content details.guide-sources[open]::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--cream); box-shadow: inset 0 2px 3px rgba(60, 40, 10, .3);
}
.guide-content details.guide-sources[open] > .accordion-body { padding-bottom: 38px; }
.guide-content details.guide-sources > summary { font-size: 17px; min-height: 62px; }
.guide-content .guide-sources .accordion-body { font-size: 15.5px; line-height: 1.65; color: var(--text); padding-top: 12px; }
.guide-content :is(.evidence-sources, .source-list) {
  list-style: none; counter-reset: g-src; margin: 12px 0 16px; padding: 0;
}
.guide-content :is(.evidence-sources, .source-list) > li {
  counter-increment: g-src; position: relative; margin: 0; padding: 9px 0 9px 38px; border-bottom: 1px dotted #d9c9a2;
  font-size: 15px; line-height: 1.55; overflow-wrap: anywhere;
}
.guide-content :is(.evidence-sources, .source-list) > li:last-child { border-bottom: 0; }
.guide-content :is(.evidence-sources, .source-list) > li::before {
  content: counter(g-src); position: absolute; left: 0; top: 9px; width: 26px; height: 22px; border-radius: 4px;
  display: grid; place-items: center; background: #efe4c8; color: var(--gold-dark); font: 700 12.5px/1 var(--f-display);
}
.guide-content .review-actions { padding-top: 14px; margin-top: 16px; border-top: 1px dashed #d9c9a2; }

/* ================= the choosing-care series ================= */
.guide-content .care-section.care-short {
  position: relative; border-radius: 6px; padding: 30px clamp(20px, 3.4vw, 32px) 24px; box-shadow: var(--g-note-shadow);
  background: linear-gradient(180deg, #f5f7fb, #eef2f8);
  rotate: .3deg;
}
.guide-content .care-section.care-short::before,
.guide-content .care-section.care-short::after {
  content: ""; position: absolute; top: 2px; width: 86px; height: 24px; background: var(--g-tape); box-shadow: 0 1px 2px rgba(60, 40, 10, .12);
}
.guide-content .care-section.care-short::before { left: -14px; rotate: -32deg; }
.guide-content .care-section.care-short::after { right: -14px; rotate: 32deg; }
.guide-content .care-section.care-short > h2:first-child { font-family: var(--f-hand); font-weight: 400; color: var(--blue-ink); font-size: clamp(27px, 2.8vw, 32px); letter-spacing: 0; margin-top: 0; }

.guide-content .care-section:not(.care-short):not(.care-questions) > h2 { position: relative; padding-left: 34px; }
.guide-content .care-section:not(.care-short):not(.care-questions) > h2::before {
  content: ""; position: absolute; left: 2px; top: .2em; width: 20px; height: 24px; background: var(--c, var(--gold));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}
.guide-content .care-section:nth-of-type(4n+2) { --c: var(--blue); }
.guide-content .care-section:nth-of-type(4n+3) { --c: var(--sage); }
.guide-content .care-section:nth-of-type(4n+4) { --c: var(--brick); }

.guide-content .care-accordion:not(.guide-sources) { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.guide-content .care-accordion > h2 > button { min-height: 60px; align-items: center; font-family: var(--f-display); font-weight: 600; color: var(--navy); }
.guide-content .care-accordion > h2 > button::after {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft);
  font-size: 22px; line-height: 1; color: var(--navy);
}
.guide-content .care-accordion > h2 > button[aria-expanded="true"]::after { background: var(--gold); }

.guide-content .care-section.care-questions {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(24px, 4vw, 40px); color: #efe9da;
  background:
    radial-gradient(1.5px 1.5px at 9% 14%, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 38% 8%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.5px 1.5px at 66% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 94% 44%, rgba(255,255,255,.55), transparent),
    radial-gradient(620px 300px at 88% 0%, rgba(247, 206, 120, .16), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lift);
}
.guide-content .care-section.care-questions > h2 { color: var(--paper); }
.guide-content .care-section.care-questions ol { counter-reset: g-q; list-style: none; }
.guide-content .care-section.care-questions ol > li {
  counter-increment: g-q; position: relative; padding: 16px 16px 16px 58px; border-radius: 14px;
  background: rgba(255, 252, 245, .07); box-shadow: inset 0 0 0 1px rgba(239, 233, 218, .14); color: #efe9da;
}
.guide-content .care-section.care-questions ol > li::before {
  content: counter(g-q); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: #f3d78e; color: var(--navy); font: 600 15px/1 var(--f-display);
}
.guide-content .care-section.care-questions a:not(.btn) { color: #f6dc9a; }

/* ================= tables (plain ones; the special guides style their own) ================= */
.guide-content .guide-sections table:not([class]) {
  display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; margin: 18px 0 24px;
  border: 1px solid #e3d6b6; border-radius: 14px; background: var(--paper); font-size: 15.5px;
}
.guide-content .guide-sections table:not([class]) :is(th, td) { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #efe6d0; min-width: 9em; }
.guide-content .guide-sections table:not([class]) thead th { background: var(--gold-soft); color: var(--navy); font-family: var(--f-display); font-weight: 600; }
.guide-content .guide-sections table:not([class]) tbody tr:nth-child(even) { background: #fdf8ec; }

/* ================= phones ================= */
@media (max-width: 560px) {
  .guide-content .guide-sections :is(.accordion-body, .care-section, .care-accordion > div) { font-size: 17px; }
  .guide-content .callout { padding: 28px 18px 20px; margin-inline: 2px; }
  .guide-content .callout--mist::before, .guide-content .callout--mist::after,
  .guide-content .care-section.care-short::before, .guide-content .care-section.care-short::after { width: 66px; height: 20px; }
  .guide-content .callout--mist::before, .guide-content .care-section.care-short::before { left: -8px; }
  .guide-content .callout--mist::after, .guide-content .care-section.care-short::after { right: -8px; }
  /* phones: the path runs down the left edge and each stone sits on the corner of its card */
  .guide-content ol.steps { --stone: 38px; padding-left: 20px; gap: 26px; padding-top: 16px; }
  .guide-content ol.steps::before { left: 3px; width: 12px; top: 20px; bottom: 20px; box-shadow: inset 0 0 0 3px #e8d39f; }
  .guide-content ol.steps > li { padding: 16px 16px 16px 30px; }
  .guide-content ol.steps > li::before { left: -30px; top: -14px; font-size: 17px; box-shadow: 0 6px 12px -6px rgba(60, 40, 10, .45), 0 0 0 3px var(--cream), 0 0 0 5.5px var(--c, var(--gold)); }
  .guide-content ol.steps > li:first-child::before { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5.5px var(--gold), 0 0 22px 6px rgba(247, 206, 120, .65); }
  .guide-content ol.steps > li > h3 { padding-left: 0; }
  .guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) > li { padding-left: 42px; }
  .guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) > li::before { width: 30px; height: 30px; font-size: 14px; }
  .guide-content .guide-sections :is(.accordion-body, .care-section:not(.care-questions), .care-accordion > div, .callout:not(.callout--navy)) ol:not([class]) > li:not(:last-child)::after { left: 14px; top: 32px; }
  .guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) { padding: 22px 18px 16px; }
  .guide-content .res-card .res-meta { margin-inline: -18px; padding-inline: 18px; }
  .guide-content .res-card > .res-meta.res-meta { margin-bottom: -16px; }
  .guide-content ul.checklist { padding: 14px 14px 8px 50px; background-image: linear-gradient(90deg, transparent 38px, var(--g-index-red) 38px 40px, transparent 40px); }
  .guide-content ul.checklist > li::before { left: -38px; }
  .guide-content ul.checklist > li::after { left: -33px; }
  .guide-content .guide-sections blockquote { padding: 16px 16px 16px 18px; font-size: 16.5px; }
  .guide-content .guide-sections > details.gr-chapter::before { right: 62px; }
  .guide-content .guide-sections > details.gr-chapter[open] > summary { padding-right: 96px; }
}

/* ================= meaningful motion ================= */
@media (prefers-reduced-motion: no-preference) {
  /* the trail fills in as you walk down it (browsers with scroll-driven animation only) */
  @supports (animation-timeline: view()) {
    .guide-content ol.steps::after {
      content: ""; position: absolute; left: calc(var(--stone) / 2 - 5px); top: 34px; bottom: 34px; width: 10px; border-radius: 10px;
      background: linear-gradient(180deg, #f0c768, #e2b04f); transform-origin: top;
      animation: g-trail linear both; animation-timeline: view(); animation-range: entry 60% cover 60%;
    }
    @keyframes g-trail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @media (max-width: 560px) { .guide-content ol.steps::after { left: 6px; width: 6px; top: 22px; bottom: 22px; } }
    /* each stone settles into place as it comes into view */
    .guide-content ol.steps > li::before { animation: g-stone linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    @keyframes g-stone { from { scale: .6; opacity: .3; } to { scale: 1; opacity: 1; } }
  }
  /* a pinned card swings once on its pin as it arrives */
  .guide-content .guide-sections > div.callout:not(.callout--mist):not(.callout--navy) { transform-origin: 50% -10px; animation: g-pinned 1.1s .2s var(--ease) both; }
  @keyframes g-pinned { 0% { transform: translateY(-14px) rotate(-3deg); opacity: 0; } 55% { transform: translateY(0) rotate(1.4deg); opacity: 1; } 80% { transform: rotate(-.6deg); } 100% { transform: none; } }
  /* a taped note is pressed flat */
  .guide-content .guide-sections > div.callout--mist { animation: g-taped .8s .1s var(--ease) both; }
  @keyframes g-taped { from { transform: translateY(-8px) scale(1.015); opacity: 0; box-shadow: 0 30px 40px -24px rgba(60, 40, 10, .5); } to { transform: none; opacity: 1; } }
}

@media print {
  .guide-content .callout, .guide-content .guide-sections > div.callout { rotate: none; box-shadow: none; border: 1px solid #ccc; }
  .guide-content .callout--navy { background: #fff; color: #000; }
  .guide-content .callout--navy :is(p, li, strong, em, a, h2, h3) { color: #000 !important; }
  .guide-content .res-card h3 a::before, .guide-content .res-card h3 a::after { display: none; }
  .guide-content ol.steps::after { display: none; }
}

/* the catalogue card's "Written by" / "Reviewed" labels */
.guide-content .guide-sources dl dt { margin-top: 8px; font: 800 12.5px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide-content .guide-sources dl dd { margin: 3px 0 10px; }
.guide-content :is(.res-card, .accordion-body > .card, .grid-2 > .card) > .pill { align-self: flex-start; }
