/* =========================================================================
   Devon Family Hubs Guide
   Design tokens are taken from the live site's global kit; every measurement
   in this file was read off the rendered page, not guessed.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1A1A1A;
  --navy: #001F4C;
  --green: #42A678;
  --purple: #5F53A0;
  --grey: #8C9396;
  --yellow: #E6C143;
  --red: #D2423B;
  --page-bg: #FDFBF9;
  --white: #FFFFFF;
  --hairline: #D3D5D6;
  --card-line: #EAF1F3;
  --sidebar-line: #EDE6EF;
  --sidebar-active: #F3E8E3;
  --footer-bar: #EFF5F6;
  --container: 1280px;
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 38vh; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--navy);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1; color: var(--ink); }
p { margin: 0 0 14.4px; }
ul, ol { margin: 0 0 14.4px; padding-left: 24px; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.section { padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 500; line-height: 1;
  padding: 12px 24px; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .8s, color .8s;
}
.btn--green { background: var(--green); color: #fff; fill: #fff; }
.btn--green:hover, .btn--green:focus { background: var(--purple); color: #fff; }

/* ---------- Header ---------- */
.site-header__bar {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding-inline: var(--gutter);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 20px;
}
.site-header__logo img { width: 100%; max-width: 200px; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex; flex-direction: column; justify-content: center;
  padding-inline: var(--gutter);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right,
    rgba(148, 164, 190, .84) 20%, rgba(120, 132, 150, .7) 40%, rgba(150, 134, 135, 0) 84%);
}
.hero__inner { padding: 120px 0 80px; }
.hero__copy { width: 100%; }
.hero__title, .hero__intro { width: 640px; max-width: 100%; }
.hero__title {
  font-size: 50px; font-weight: 600; line-height: 1; color: #121212;
  padding-bottom: 30px;
}
.hero__intro { font-size: 18px; font-weight: 400; line-height: 1.3; color: #121212; }
.hero__foot { display: flex; align-items: center; gap: 30px; padding-top: 20px; flex-wrap: wrap; }
.breadcrumb {
  flex: 0 1 auto; min-width: 0; margin: 0;
  font-size: 15.3px; line-height: 23.4px; color: var(--navy);
}
.breadcrumb > span { display: flex; flex-wrap: wrap; gap: 12px; }
.breadcrumb a { font-size: 18px; font-weight: 500; line-height: 23.4px; color: var(--navy); }
.breadcrumb__sep { padding: 0; }


/* ---------- Guide layout ---------- */
.guide { padding-inline: var(--gutter); }
.guide__inner { display: flex; padding-block: 80px; }
.guide__inner > * { min-width: 0; }
.guide__aside { width: 375px; flex: 0 0 375px; margin-right: 30px; }
.guide__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Chapter sidebar ---------- */
.chapters {
  position: sticky; top: 40px;
  border: 1px solid var(--sidebar-line); border-radius: 10px;
  background: transparent; overflow: hidden;
}
.chapter__head { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 20px; border-top: 1px solid #ECE5EE; }
.chapters > .chapter:first-child > .chapter__head { border-top: 0; }
.chapter.is-current > .chapter__head { background: var(--sidebar-active); }
.chapters > .chapter:first-child.is-current > .chapter__head { border-radius: 10px 10px 0 0; }
.chapter__tick { flex: 0 0 23px; width: 23px; height: 23px; line-height: 0; }
.chapter__tick svg { width: 23px; height: 23px; fill: var(--grey); display: block; }
.chapter.is-current .chapter__tick svg { fill: var(--green); }
.chapter__title { flex: 1 1 auto; margin: 0; font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 400; line-height: 1.3; }
.chapter__title a { color: var(--green); }
.chapter__title a:hover { color: var(--navy); }
.chapter__toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.chapter__toggle svg { fill: var(--navy); transition: transform .25s ease; }
.chapter__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.chapter__title { width: 300px; padding-right: 26px; }
.chapter__sections { list-style: none; margin: 0; padding: 20px 20px 20px 30px; }
.chapter:not(.is-current) .chapter__sections { padding-top: 0; }
.chapter__sections li { position: relative; padding-left: 20px; margin-bottom: 13px; line-height: 22.1px; }
.chapter__sections li:last-child { margin-bottom: 0; }
.chapter__sections li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 8px; height: 8px; border-radius: 50%; background: #CDC5CF;
}
.chapter__sections a { font-size: 17px; font-weight: 400; line-height: 22px; color: var(--navy); }
.chapter__sections a:hover { color: var(--green); }

/* ---------- Article body ---------- */
.guide__body > h2:first-child,
.page-title { font-size: 40px; font-weight: 600; line-height: 1; color: var(--navy); }
.section-title { margin-top: 50px; font-size: 32px; font-weight: 600; line-height: 1; color: var(--navy); scroll-margin-top: 30px; }
.spectrum + .section-title { margin-top: 60px; }
/* Spacing utilities — the original page builder carried hand-set margins on
   individual blocks; these reproduce them without inline styles. */
.pull-up { margin-top: -20px; }
.mt-0 { margin-top: 0; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mt-65 { margin-top: 65px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.push-20 { margin-top: 20px; }
.guide__body h3 { font-size: 22px; font-weight: 600; line-height: 1; color: var(--navy); }
.prose ul, .prose ol { padding-left: 40px; }
.prose ul:last-child, .prose ol:last-child { margin-bottom: 0; }
.spacer { height: 0; }
.lh-14, .lh-14 p, .lh-14 li { line-height: 1.4; }
.lh-15, .lh-15 p, .lh-15 li { line-height: 1.5; }
.prose a { color: var(--navy); font-size: 18px; font-weight: 500; line-height: 1; text-decoration: none; }
.prose a:hover { color: var(--green); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 15px; }
.stack--lg { gap: 40px; }
.media { border-radius: 10px; overflow: hidden; }
.media picture { display: block; }
.media img { width: 100%; display: block; }
.media video { width: 100%; display: block; border-radius: 0; }
.media--square { border-radius: 0; }

/* ---------- Callout boxes ---------- */
.callout {
  display: flex; gap: 15px; align-items: flex-start;
  background: #FAF0E8; border-radius: 10px; padding: 20px; margin-bottom: 20px;
}
.callout__icon { flex: 0 0 25px; color: var(--yellow); font-size: 0; }
.callout__icon svg { display: block; }
.callout p { margin: 0; }
.tintbox { display: flex; flex-direction: column; gap: 20px; background: #FAF0E8; border-radius: 10px; padding: 20px; }
.tintbox--lg { padding: 40px; }
.tintbox h4 { font-size: 22px; font-weight: 600; line-height: 1; color: var(--navy); }
.tintbox a { color: var(--green); font-size: 18px; font-weight: 500; line-height: 18px; }
.tintbox a:hover { color: var(--navy); }
.fw-500 { font-weight: 500; }
.link-green { color: var(--green) !important; }
.link-green:hover { color: var(--navy) !important; }

/* ---------- Yes / No quiz ---------- */
.quiz { background: #FAF0E8; border-radius: 10px; padding: 10px 12.5px; margin-bottom: 10px; }
.quiz__row {
  display: flex; align-items: flex-start; gap: 20px; padding: 10px 7.5px;
}
.quiz__row + .quiz__row { border-top: 1px solid #E3DFDF; }
.quiz__label { flex: 0 1 80%; padding-bottom: 10px; font-size: 18px; font-weight: 400; line-height: 23.4px; color: var(--navy); }
.quiz__options { display: flex; flex: 0 1 45%; gap: 10px; height: 23.4px; justify-content: flex-end; align-items: center; align-self: center; }
.quiz__option { display: inline-flex; }
.quiz__option label {
  display: inline-block; background: #F9F9F9; border: 1px solid #ddd; border-radius: 50px;
  padding: 8px 22px; font-size: 14px; font-weight: 500; line-height: 18.2px; color: var(--navy); cursor: pointer;
  transition: all .3s ease;
}
.quiz__option label:hover { background: #f1f1f1; }
.quiz__option input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz__option input[value="Yes"]:checked + label { background: #ef4444; border-color: #ef4444; color: #fff; }
.quiz__option input[value="No"]:checked + label { background: var(--green); border-color: var(--green); color: #fff; }
.quiz__option input:focus-visible + label { outline: 2px solid var(--purple); outline-offset: 2px; }
.quiz__message {
  margin: 0; padding: 10px 20px;
  background: var(--green); color: #fff; border-radius: 10px;
  font-size: 18px; font-weight: 400; line-height: 23.4px;
}
.quiz__message:empty { display: none; }

/* ---------- Score (0-5) quiz ---------- */
.scorequiz { background: #FAF0E8; border-radius: 10px; padding: 20px 12.5px 10px; }
.scorequiz__row { display: flex; align-items: center; gap: 20px; padding: 10px 7.5px; }
.scorequiz__row + .scorequiz__row { border-top: 1px solid #E3DFDF; }
.scorequiz__label { flex: 1 1 auto; padding: 10px 0; font-size: 18px; line-height: 23.4px; color: var(--navy); }
.scorequiz__control { flex: 0 0 250px; max-width: 250px; margin-left: auto; align-self: center; }
.scorequiz__note { margin: 30px 0 0; padding: 0 7.5px 10px; font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--navy); }

.rangeslider { position: relative; height: 60px; }
.rangeslider__bubble,
.rangeslider__end {
  position: absolute; top: 0; height: 15px; padding: 1px 3px;
  font-size: 10px; line-height: 13px; border-radius: 4px; white-space: nowrap;
}
.rangeslider__end { background: #E1E4E9; color: #999; }
.rangeslider__end--min { left: 0; }
.rangeslider__end--max { right: 0; }
.rangeslider__bubble { background: #ED5565; color: #fff; padding: 1px 5px; transform: translateX(-50%); }
.rangeslider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  position: absolute; top: 25px; left: 0; width: 100%; height: 12px; margin: 0;
  background: #E1E4E9; border-radius: 4px; outline: none; cursor: pointer;
}
.rangeslider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 10px; height: 18px;
  background: #ED5565; border-radius: 3px; cursor: pointer;
}
.rangeslider input[type="range"]::-moz-range-thumb {
  width: 10px; height: 18px; background: #ED5565; border: 0; border-radius: 3px; cursor: pointer;
}
.rangeslider__scale {
  position: absolute; top: 40px; left: 8px; right: 8px; height: 20px;
  display: flex; justify-content: space-between;
}
.rangeslider__scale span {
  position: relative; width: 1px; font-size: 10px; color: #999;
}
.rangeslider__scale span::before { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 8px; background: #E1E4E9; }
.rangeslider__scale span i { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-style: normal; }

/* ---------- Media blocks ---------- */
.audio-card {
  background: #F4F6F9; border-radius: 12px; padding: 30px 25px 23px;
}
.audio-card__row { display: flex; gap: 20px; align-items: stretch; }
.audio-card__cover { position: relative; flex: 0 0 242px; max-width: 242px; overflow: hidden; }
.audio-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audio-card__cover::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.audio-card__play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 50px; height: 50px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .5); border: 0; border-radius: 100%; cursor: pointer;
  transition: background-color .3s;
}
.audio-card__play:hover { background: rgba(255, 255, 255, .8); }
.audio-card__play img { width: 17px; height: 17px; }
.audio-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.audio-card__body h2 { font-size: 26px; font-weight: 600; line-height: 1; color: var(--ink); }
.audio-card__body p { margin-top: 10px; }
.audio-card audio { width: 100%; margin-top: 26px; }

.split { display: flex; gap: 35px; align-items: center; background: #FAF0E8; border-radius: 10px; padding: 20px; }
.split--stretch { align-items: stretch; }
.split--brain { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--brain > * { min-width: 0; }
.split--brain .split__media img { border-radius: 10px; }
.split--plain { background: transparent; padding: 0; }
.split--media-first { flex-direction: row-reverse; }
.split__media, .split__body { flex: 1 1 0; min-width: 0; }
.split__media picture { display: block; height: 100%; }
.split__media img { width: 100%; height: auto; }
.split--stretch .split__media, .split--stretch .split__media img { height: 100%; }
.imagerow { display: flex; gap: 0; }
.imagerow img { flex: 1 1 0; min-width: 0; object-fit: cover; }

/* ---------- Previous / next chapter pager ---------- */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 40px 150px;
  border-top: 1px solid var(--sidebar-line); margin-top: 40px; padding-top: 40px;
}
.pager__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--purple); }
.pager__link svg { fill: currentColor; }
.pager__link--next { margin-left: auto; }
.pager__link:hover { color: var(--green); }

/* ---------- Toolkit promo ----------
   Sits above the support banner on the last three chapters. The section colour
   is the same #FAF0E8 the tintboxes and quizzes use, and the illustration was
   generated on that exact colour so its wash dissolves into the panel with no
   cut-out and no edge. If the image is ever replaced, it must be generated on
   #FAF0E8 too, or it will sit in a visible box. */
.toolkit-promo { background: #FAF0E8; padding-block: 60px; padding-inline: var(--gutter); }
.toolkit-promo__inner {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 40px; align-items: center;
}
.toolkit-promo__media { min-width: 0; }
.toolkit-promo__media img { display: block; width: 100%; height: auto; }
.toolkit-promo__copy { min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.toolkit-promo__copy h2 { font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.toolkit-promo__copy p { margin: 0; font-size: 18px; line-height: 1.4; color: var(--navy); }
.toolkit-promo__privacy { font-weight: 500; }
.toolkit-promo .btn { margin-top: 4px; }

@media (max-width: 991px) {
  .toolkit-promo__inner { gap: 30px; }
  .toolkit-promo__copy h2 { font-size: 32px; }
}
@media (max-width: 767px) {
  /* Stacked, picture first — it is what says "this is a thing you can use". */
  .toolkit-promo { padding-block: 40px; }
  .toolkit-promo__inner { grid-template-columns: 1fr; gap: 24px; }
  .toolkit-promo__copy h2 { font-size: 28px; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 100px var(--gutter);
  background-image: url('../img/cta-banner.jpg');
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}
.cta-banner__copy { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
.cta-banner h2 { font-size: 32px; font-weight: 600; line-height: 1; color: var(--navy); }
.cta-banner .btn { align-self: flex-start; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer__top { background: var(--white); padding: 80px var(--gutter) 20px; }
.site-footer__inner {
  width: 100%; max-width: 1000px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center;
  padding-bottom: 10px;
}
.site-footer__logo img { width: 220px; max-width: 100%; }
.site-footer__nav { width: 392px; max-width: 100%; margin-left: auto; }
.site-footer__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: center;
}
.site-footer__nav li { margin-inline: 8px; }
.site-footer__nav li + li { border-left: 1px solid var(--hairline); padding-left: 15px; }
.site-footer__nav a {
  display: block; padding: 16px 0;
  font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--navy);
}
.site-footer__nav a:hover { color: var(--green); }
/* The original marks the page you are on in green, the same way the chapter
   sidebar does. Worth keeping: these two links are the only navigation in the
   footer, and on the policy pages one of them is where you already are. */
.site-footer__nav a[aria-current="page"] { color: var(--green); }
.site-footer__bar { background: var(--footer-bar); padding: 20px var(--gutter); }
.site-footer__bar p { margin: 0; text-align: center; font-size: 16px; line-height: 1.3; color: var(--grey); }

/* =========================================================================
   Widget rhythm — sibling blocks sit 20px apart, as on the original.
   ========================================================================= */
.widgets { display: flex; flex-direction: column; gap: 20px; }
.widgets > * { margin: 0; }

/* =========================================================================
   Home page
   ========================================================================= */
.home-intro { background: var(--white); padding-block: 80px; }
.home-intro__title { text-align: center; padding-bottom: 60px; }
.home-intro__title h1 { font-size: 42px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.home-intro__note p { font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--navy); }
.home-intro__heading { padding-bottom: 20px; font-size: 32px; font-weight: 700; line-height: 1; color: var(--navy); }

.about-cards { display: flex; gap: 20px; align-items: stretch; }
.about-card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--page-bg); border: 1px solid var(--hairline); border-radius: 10px; padding: 20px;
}
.about-card__head { display: flex; align-items: flex-start; gap: 15px; min-height: 55px; }
.about-card__icon { flex: 0 0 50px; width: 50px; height: 50px; color: var(--navy); }
.about-card__icon svg { width: 50px; height: 50px; display: block; }
.about-card__title { margin: 0; padding-top: 8px; font-size: 24px; font-weight: 500; line-height: 1.3; color: var(--navy); }
.about-card__body { font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--navy); }

.home-cta {
  background-image: url('../img/hero-resolutions.jpg');
  background-position: 20% 50%; background-repeat: no-repeat; background-size: cover;
  padding-block: 100px;
}
.home-cta__box {
  position: relative; isolation: isolate;
  width: 750px; max-width: 100%;
  display: flex; flex-direction: column; gap: 20px;
  background: rgba(120, 132, 150, .619); border-radius: 5px; padding: 40px 30px;
  text-align: center;
}
/* The original lays a second panel over the tint: #141414 at 93% alpha, the
   whole overlay then at 50% opacity. Both layers are needed to hit its colour. */
.home-cta__box::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 20, 20, .929); opacity: .5; border-radius: 5px;
}
.home-cta__box h2 { font-size: 32px; font-weight: 600; line-height: 1; color: #fff; }
.home-cta__box p { font-size: 18px; font-weight: 400; line-height: 1.4; color: #fff; }

.home-guide { padding-block: 80px; }
.home-guide__heading { padding-bottom: 20px; font-size: 38px; font-weight: 700; line-height: 1; color: var(--navy); }
.guide-cards { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: stretch; }
.guide-card {
  flex: 0 1 calc((100% - 60px) / 3); min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border: 1px solid var(--card-line); border-radius: 5px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, .09); padding: 20px;
}
.guide-card__media { text-align: center; }
.guide-card__media picture { display: block; }
.guide-card__media img { width: 336px; max-width: 100%; height: auto; aspect-ratio: 336 / 225; object-fit: cover; margin-inline: auto; }
.guide-card__title { margin: 0; text-align: center; font-size: 22px; font-weight: 500; line-height: 1.3; }
.guide-card__title a { color: var(--grey); }
.guide-card__title a:hover { color: var(--green); }
.guide-card__blurb { text-align: center; font-size: 18px; font-weight: 300; line-height: 1.2; color: var(--grey); }
.guide-card__more { margin-top: auto; padding-top: 10px; text-align: center; }
.learn-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 500; line-height: 1; color: var(--purple);
}
.learn-more:hover { color: var(--green); }

/* =========================================================================
   Cookie notice + preference centre
   ========================================================================= */
.cookie-notice {
  position: fixed; bottom: 40px; left: 40px; width: 440px; max-width: calc(100vw - 20px);
  z-index: 9999999; border-radius: 6px; box-sizing: border-box;
}
.cookie-notice__bar {
  background: #fff; border: 1px solid #f4f4f4; padding: 20px 26px;
  box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, .3); border-radius: 6px;
}
.cookie-notice__title { margin: 0 0 12px; color: #212121; font-weight: 700; font-size: 18px; line-height: 24px; }
.cookie-notice__des { color: #212121; font-size: 14px; line-height: 24px; font-weight: 400; }
.cookie-notice__des p { margin: 0; font-size: 14px; }
.cookie-notice__buttons { display: flex; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.cookie-btn {
  flex: auto; max-width: 100%; font-size: 14px; font-family: inherit; line-height: 24px;
  padding: 8px; font-weight: 500; margin: 0 8px 0 0; border-radius: 2px; cursor: pointer; text-align: center;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn:hover { opacity: .8; }
.cookie-btn--outline { color: #79B949; background: transparent; border: 2px solid #79B949; }
.cookie-btn--solid { background: #79B949; color: #fff; border: 2px solid #79B949; }

/* On a narrow phone the original's bar stops being a floating card and
   becomes a full-width sheet along the bottom edge, with its two buttons
   stacked full width and "Allow all cookies" moved to the top. Ours kept the
   440px card, which at 390px hung 20px off the right edge and put the solid
   button under the accessibility badge. Breakpoint measured off the original. */
@media (max-width: 440px) {
  .cookie-notice { left: 0; bottom: 0; width: 100%; max-width: none; }
  .cookie-notice__bar { padding: 20px 0; }
  .cookie-notice__title, .cookie-notice__des, .cookie-notice__buttons { padding-inline: 24px; }
  .cookie-notice__buttons { flex-direction: column-reverse; gap: 10px; }
  .cookie-btn { width: 100%; margin: 0; }
}

.cookie-modal { position: fixed; inset: 0; z-index: 99999999; display: grid; place-items: center; }
.cookie-modal[hidden], .cookie-notice[hidden] { display: none; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.cookie-modal__panel {
  position: relative; width: 845px; max-width: calc(100vw - 32px); max-height: 90vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 6px; box-shadow: 0 32px 68px 0 rgba(0, 0, 0, .3);
}
.cookie-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid #f4f4f4;
}
.cookie-modal__title { font-size: 18px; font-weight: 700; color: #212121; line-height: 24px; }
.cookie-modal__close {
  width: 24px; height: 24px; display: grid; place-items: center;
  background: none; border: 0; color: #9a9a9a; cursor: pointer; padding: 0; line-height: 0;
}
.cookie-modal__close:hover { color: #555; }
.cookie-modal__body { padding: 0 24px; overflow-y: auto; color: #212121; }
.cookie-modal__intro { padding: 12px 0; font-size: 14px; line-height: 24px; }
.cookie-modal__intro p { font-size: 14px; margin: 0 0 8px; }
.cookie-showmore {
  display: inline-block; font-size: 14px; line-height: 24px; color: #1863dc;
  background: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer; padding: 0;
}
.cookie-showmore:hover { text-decoration: underline; }
.cookie-accordion { border-bottom: 1px solid #f4f4f4; padding: 16px 0; }
.cookie-accordion__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-accordion__btn {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 700; color: #212121;
  background: none; border: 0; border-radius: 3px; cursor: pointer; padding: 0; text-align: left;
}
.cookie-accordion__chevron {
  flex: 0 0 auto; width: 7px; height: 7px;
  border-top: 1.6px solid #212121; border-right: 1.6px solid #212121;
  transform: rotate(45deg); transition: transform .2s;
}
.cookie-accordion__btn[aria-expanded="true"] .cookie-accordion__chevron { transform: rotate(135deg); }
.cookie-accordion__des, .cookie-accordion__panel { padding-left: 19px; }
.cookie-accordion__always { font-size: 14px; font-weight: 600; color: #008000; }
.cookie-accordion__des { margin-top: 10px; font-size: 14px; line-height: 24px; }
.cookie-accordion__des p { font-size: 14px; margin: 0; }
.cookie-accordion__panel { margin-top: 10px; font-size: 14px; color: #212121; }
.cookie-modal__foot { display: flex; gap: 0; padding: 22px 24px; border-top: 1px solid #f4f4f4; }

/* =========================================================================
   Accessibility toolbar
   ========================================================================= */
.a11y { position: fixed; top: 0; right: 0; height: 100%; z-index: 9999999; }
.a11y__toggle {
  position: absolute; right: 10px; bottom: 40px; width: 48px; height: 48px;
  padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  line-height: 0; transition: transform .2s;
}
.a11y__toggle img { width: 48px; height: 48px; display: block; border-radius: 50%; }
.a11y__toggle:hover { transform: scale(1.06); }
.a11y.is-open .a11y__toggle { right: 210px; }
.a11y__panel {
  position: absolute; top: 0; right: 0; width: 200px; height: 100%;
  background: #fff; box-shadow: -2px 0 12px rgba(0, 0, 0, .18); overflow-y: auto;
}
.a11y__panel[hidden] { display: none; }

.a11y__close {
  display: block; width: 184px; margin: 10px 8px; height: 34px;
  background: #216073; color: #fff; border: 0; border-radius: 3px; font-size: 15px; cursor: pointer;
}
.a11y__inner { padding: 0 10px; }
.a11y__module { padding-bottom: 9.6px; }
.a11y__module-title { font-size: 18px; color: #000; line-height: 23px; margin-bottom: 7px; }
.a11y__row { display: flex; gap: 14px; margin-bottom: 11px; }
.a11y__btn {
  flex: 1 1 auto; background: #232323; color: #fff; border: 1px solid #fff; border-radius: 3px;
  font-size: 15px; padding: 5px 0; cursor: pointer; height: 35px;
}
.a11y__btn--wide { display: block; width: 100%; margin-bottom: 11px; }
.a11y__contrast { list-style: none; margin: 0 0 11px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.a11y__swatch { width: 100%; aspect-ratio: 1; border: 1px solid #ccc; border-radius: 3px; cursor: pointer; font-size: 0; }
.a11y__swatch--black { background: #000; }
.a11y__swatch--white { background: #fff; }
.a11y__swatch--green { background: #0a5c36; }
.a11y__swatch--blue { background: #10457e; }
.a11y__swatch--red { background: #8b1a1a; }
.a11y__swatch--orange { background: #b35309; }
.a11y__swatch--yellow { background: #7a6300; }
.a11y__swatch--navi { background: #001f4c; }

/* Contrast presets set by the toolbar. */
html[data-contrast] body { background: var(--contrast-bg) !important; }
html[data-contrast] body, html[data-contrast] p, html[data-contrast] li,
html[data-contrast] h1, html[data-contrast] h2, html[data-contrast] h3,
html[data-contrast] h4, html[data-contrast] h5, html[data-contrast] h6,
html[data-contrast] span, html[data-contrast] div, html[data-contrast] td, html[data-contrast] th { color: var(--contrast-fg) !important; }
html[data-contrast] a, html[data-contrast] a * { color: var(--contrast-link) !important; }
html[data-contrast] section, html[data-contrast] header, html[data-contrast] footer,
html[data-contrast] .site-header__bar, html[data-contrast] .site-footer__top,
html[data-contrast] .site-footer__bar { background: var(--contrast-bg) !important; }
html[data-contrast="black"] { --contrast-bg: #000; --contrast-fg: #fff; --contrast-link: #ffd400; }
html[data-contrast="white"] { --contrast-bg: #fff; --contrast-fg: #000; --contrast-link: #0033a0; }
html[data-contrast="green"] { --contrast-bg: #000; --contrast-fg: #00ff41; --contrast-link: #7dff9a; }
html[data-contrast="blue"] { --contrast-bg: #000; --contrast-fg: #7ec8ff; --contrast-link: #ffffff; }
html[data-contrast="red"] { --contrast-bg: #000; --contrast-fg: #ff6b6b; --contrast-link: #ffd400; }
html[data-contrast="orange"] { --contrast-bg: #000; --contrast-fg: #ffa94d; --contrast-link: #ffe066; }
html[data-contrast="yellow"] { --contrast-bg: #000; --contrast-fg: #ffe066; --contrast-link: #ffffff; }
html[data-contrast="navi"] { --contrast-bg: #001f4c; --contrast-fg: #ffffff; --contrast-link: #ffd400; }

/* =========================================================================
   The relationship-spectrum diagram
   ========================================================================= */
.spectrum-static { display: none; }
.spectrum { position: relative; display: flex; flex-direction: column; gap: 20px; }
.spectrum__controls { position: relative; height: 20px; }
.spectrum__nav {
  position: absolute; top: 200px; width: 68px; height: 42px;
  display: grid; place-items: center;
  background: var(--green); color: #fff; border: 0; cursor: pointer; z-index: 2;
  transition: background-color .3s;
}
.spectrum__nav:hover { background: var(--purple); }
.spectrum__nav--prev { left: 0; }
.spectrum__nav { opacity: 0; transition: opacity .5s, background-color .3s; }
.spectrum:hover .spectrum__nav, .spectrum__nav:focus-visible { opacity: 1; }
/* Improvement on the original: touch devices have no hover, so the scroll
   controls stay visible there instead of leaving the diagram looking clipped. */
@media (hover: none) {
  .spectrum__nav { opacity: .92; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
}
.spectrum__nav--next { right: 0; }
.spectrum__scroller { overflow-x: auto; scrollbar-width: thin; cursor: grab; }
.spectrum__scroller.dragging { cursor: grabbing; scroll-behavior: auto; }
/* The three bands divide the diagram's width into equal thirds. Width and
   offset were two hardcoded numbers that disagreed (770px wide, stepped 715px),
   so the bands sat 18px out by the second and 37px out by the third. Both are
   derived from one variable now so they cannot drift apart again. */
.spectrum__inner { --spectrum-w: 2200px; width: var(--spectrum-w); display: flex; flex-direction: column; gap: 20px; }
.spectrum__bands { display: flex; flex-direction: column; }
.spectrum__bandrow { display: flex; }
.spectrum__band { width: calc(var(--spectrum-w) / 3); padding: 5px; }
.spectrum__band h4 { font-size: 16px; font-weight: 500; line-height: 1; color: #fff; text-align: center; }
.spectrum__columns { display: grid; grid-template-columns: repeat(6, 350px); gap: 20px; }
.spectrum__col { display: flex; flex-direction: column; gap: 20px; }
.spectrum__bubble {
  width: 400px; height: 150px; margin-left: -50px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; border-radius: 50%;
}
.spectrum__col:first-child .spectrum__bubble { width: 350px; margin-left: 0; }
.spectrum__bubble h5 { width: 100%; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center; }
.spectrum__body { display: flex; flex-direction: column; }
.spectrum__heading { font-size: 17px; font-weight: 600; line-height: 1.3; color: #140025; }
.spectrum__body p { font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--navy); }
.spectrum__action { padding-top: 20px; }
.spectrum__action h4 { font-size: 17px; font-weight: 600; line-height: 1.3; color: #0672B3; }
.spectrum__action p { color: #0672B3; }

/* =========================================================================
   Mobile chapter navigation (replaces the sidebar below 1024px)
   ========================================================================= */
.chapters-toggle { display: none; }
.chapters-toggle__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 12px 20px 12px 16px;
  background: var(--green); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 20px; font-weight: 400; line-height: 1.3; text-align: left;
}
.chapters-toggle__dots { display: flex; flex-direction: column; gap: 5px; }
.chapters-toggle__dots span { width: 4px; height: 4px; background: #fff; border-radius: 100%; }
.chapters-toggle__btn[aria-expanded="true"] .chapters-toggle__dots { transform: rotate(90deg); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1199px) {
  .hero { min-height: 440px; }
  .hero__inner { padding: 100px 0 70px; }
  .hero__title { font-size: 45px; padding-bottom: 24px; }
  .guide__aside { width: 320px; flex-basis: 320px; }
  .chapter__title { width: auto; }
  .guide-cards { gap: 20px; }
  .guide-card { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 1023px) {
  .hero__title { font-size: 40px; }
  /* Below the tablet breakpoint the original puts 18px under the card's head,
     on top of the body's 20px gap. */
  .support-card__head { margin-bottom: 18px; }
  .guide__inner { flex-direction: column; padding-block: 60px; }
  .guide__aside { width: 100%; flex-basis: auto; margin-right: 0; margin-bottom: 30px; }
  .chapters-toggle { display: block; }
  .chapters { position: static; border: 0; border-radius: 0; }
  .chapters[hidden] { display: none; }
  .chapters { border: 1px solid var(--sidebar-line); border-radius: 10px; margin-top: 12px; }
  .spectrum__nav { opacity: 1; }
}

@media (max-width: 991px) {
  .hero { min-height: 400px; }
  .hero__inner { padding: 80px 0 60px; }
  .hero__title { font-size: 35px; padding-bottom: 20px; }
  .hero__foot { padding-top: 16px; }
  .about-cards { flex-wrap: wrap; }
  .about-card { flex-basis: calc(50% - 10px); }
  .about-card__head { min-height: 50px; }
  .about-card__icon { flex-basis: 40px; width: 40px; height: 40px; }
  .about-card__icon svg { width: 40px; height: 40px; }
  /* Keeps the base 8px top offset: the original's heading carries an 8px top
     margin at every width, which sits the title text 8px down against the
     icon. Zeroing it here lifted every card title. */
  .about-card__title { font-size: 20px; line-height: 1.3; }
  .guide-card { flex-basis: calc(50% - 10px); }
  .cta-banner { padding-block: 90px; }
  .home-cta { background-position: 50% 50%; }
  .home-intro, .home-guide { padding-block: 60px; }
  .home-intro__title h1 { font-size: 34px; line-height: 1.2; }
  .home-intro__heading { font-size: 24px; text-align: center; }
  .home-guide__heading { font-size: 32px; }
  .home-cta__box h2 { font-size: 32px; }
  .page-title, .guide__body > h2:first-child { font-size: 30px; }
  .section-title { font-size: 28px; margin-top: 40px; }
  .audio-card__body h2 { font-size: 24px; }
  .cta-banner h2 { font-size: 28px; }
}

@media (max-width: 767px) {
  .hero { min-height: 360px; }
  .hero__inner { padding: 70px 0 50px; }
  .hero__title { font-size: 32px; }
  .page-title, .guide__body > h2:first-child { font-size: 28px; }
  .section-title { font-size: 26px; margin-top: 35px; }
  .page-the-relationship-spectrum .section-title { font-size: 30px; }
  /* One heading the page builder sized individually: it holds 28px on a phone
     where every other section title on the page drops to 26px. */
  .section-title--28 { font-size: 28px; }
  .cta-banner h2 { font-size: 26px; }
  .site-header__logo { flex: 1 1 0; min-width: 0; }
  .site-header__actions { flex: 1 1 0; }
  .site-header__logo img { width: 100%; }
  .breadcrumb { display: none; }
  /* Every page but this one marks the breadcrumb elementor-hidden-mobile. */
  .page-resolutions-and-moving-forward .breadcrumb { display: block; }
  .page-resolutions-and-moving-forward .hero__title { font-size: 35px; }
  .about-card, .guide-card { flex-basis: 100%; }
  .about-cards { flex-direction: column; }
  .split { flex-direction: column; }
  .cta-banner { padding-block: 80px; background-position: 70% 50%; }
  .home-cta { background-position: 80% 50%; }
  .cta-banner__copy { padding: 40px; background: rgba(20, 20, 20, .5); border-radius: 5px; }
  .cta-banner h2 { color: #fff; }
  .pager { gap: 30px 100px; }
  .quiz__label { flex-basis: 55%; }
  .quiz__options { flex-basis: 55%; }
  .site-footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
  .site-footer__nav { width: auto; margin: 0; }
  .site-footer__nav ul { justify-content: flex-start; }
  .site-footer__nav li { margin-inline: 0; }
  .site-footer__nav li + li { margin-left: 10px; padding-left: 12px; }
  .site-footer__nav a { padding: 10px 0; }
  .site-footer__bar p { font-size: 14px; }
  /* The original keeps the footer logo at its full 220px on a phone. */
  .home-cta { padding-block: 60px; }
  .home-cta__box { padding: 40px 20px; }

}

@media (max-width: 575px) {
  .quiz__row, .scorequiz__row { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 16px; }
  .quiz__label { width: 100%; flex-basis: auto; padding-bottom: 4px; }
  .quiz__options { width: 100%; flex-basis: auto; height: auto; justify-content: flex-start; align-self: flex-start; }
  .scorequiz__label { width: 100%; }
  .scorequiz__control { flex-basis: auto; width: 250px; max-width: 100%; }
  .cta-banner__copy { padding: 34px 24px; }
  .pager { gap: 20px 50px; }
  .spectrum__nav { top: 120px; }
  .spectrum__scroller { scroll-snap-type: x proximity; }
  .spectrum__col { scroll-snap-align: center; }
}

.chapter__sections a.is-active { color: var(--green); }
.chapter__sections a span { color: inherit; }

/* ---------- Two-column tip grid ---------- */
.tipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tipgrid__item { padding: 16px; min-width: 0; text-align: center; background: #F3E8E3; border-radius: 8px; }
.tipgrid__item h3 { margin: 8px 0 12px; font-size: 20px; font-weight: 600; line-height: 1; color: var(--navy); }
.tipgrid__item p { margin: 0; font-size: 18px; line-height: 1.3; color: var(--navy); }
@media (max-width: 991px) {
  .split--brain { grid-template-columns: 1fr; gap: 20px; }
  .tintbox--lg { padding: 20px; }
}
@media (max-width: 767px) { .tipgrid { grid-template-columns: 1fr; } }

/* ---------- Support link cards ---------- */
.support-cards { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.support-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--card-line); border-radius: 5px; padding: 20px;
}
.support-card__body { flex: 1 1 auto; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.support-card__head { display: flex; align-items: flex-start; gap: 15px; }
.support-card__icon { flex: 0 0 30px; width: 30px; height: 30px; color: var(--green); }
.support-card__icon svg { width: 30px; height: 30px; display: block; }
.support-card__head h3 { font-size: 23px; font-weight: 500; line-height: 1.3; color: var(--navy); }
.support-card__meta { color: #3F4446; }

.support-card__meta a { color: var(--navy); font-size: 18px; font-weight: 500; line-height: 18px; }
.support-card__meta a:hover { color: var(--green); }
.support-card .btn { flex: 0 0 auto; border-radius: 3px; }
@media (max-width: 767px) {
  .support-card { flex-direction: column; align-items: stretch; }
  .support-card .btn { align-self: flex-start; }
}

/* ---------- Three-column tip grid (conclusion) ---------- */
.tipgrid--3 { grid-template-columns: repeat(3, 1fr); padding-bottom: 10px; }
.btn--block { display: flex; width: 100%; padding: 15px 20px; border-radius: 3px; }
@media (max-width: 991px) {
  .tipgrid--3 { grid-template-columns: 1fr 1fr; }
  .tipgrid--3 .tipgrid__item h3 { font-size: 18px; }
}
@media (max-width: 767px) { .tipgrid--3 { grid-template-columns: 1fr; } }

/* ---------- Policy pages ---------- */
/* The privacy page is the one hero the original leaves un-tinted — and its
   responsive rules don't match that page either, so it keeps full-size
   metrics all the way down to a phone. Both quirks are reproduced. */
.hero--policy { background-position: 50% 50%; min-height: 500px; }
.hero--policy::before { display: none; }
.hero--policy .hero__inner { padding: 180px 0 60px; }
.hero--policy .hero__title { font-size: 50px; padding-bottom: 30px; }
.hero--policy .hero__inner { padding: 180px 0 60px; }
.hero--policy .hero__title { font-weight: 700; color: var(--navy); }
.hero--bold { background-position: 50% 50%; }
.hero--bold .hero__title { font-weight: 700; }

.policy { padding-inline: var(--gutter); }
.policy__inner { max-width: 800px; padding-block: 80px; }
.policy h4 {
  margin: 8px 0 20px; font-family: 'Inter', sans-serif;
  font-size: 32px; font-weight: 700; line-height: 0.9; color: var(--ink);
}
.policy h5, .policy h6 { margin: 0 0 14.4px; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink); }
.policy h6 { font-size: 22px; font-weight: 400; line-height: 1; }
.policy ul, .policy ol { padding-left: 40px; }

.policy a { color: var(--navy); font-size: 18px; font-weight: 500; line-height: 1; }
.policy a:hover { color: var(--green); }
@media (max-width: 1199px) { .policy h4 { font-size: 30px; } .hero--policy .hero__inner { padding: 150px 0 60px; } }
@media (max-width: 991px) { .policy h4 { font-size: 25px; } .policy__inner { padding-block: 60px; } .hero--policy .hero__inner { padding: 120px 0 50px; } }
@media (max-width: 767px) { .policy h4 { font-size: 20px; margin-bottom: 16px; } .hero--policy .hero__inner { padding: 100px 0 40px; } }

/* ---------- Get Support page ---------- */
.support__inner { padding-block: 80px; display: flex; flex-direction: column; gap: 20px; }
.support__intro { display: flex; flex-direction: column; gap: 20px; }
.support__intro h2 { font-size: 38px; font-weight: 700; line-height: 1; color: var(--navy); }
.support__intro p { width: 800px; max-width: 100%; }
.conclusion-thanks { line-height: 1.3; color: var(--ink); }
@media (max-width: 991px) {
  .support__inner { padding-block: 60px; }
  .support__intro h2 { font-size: 32px; }
  /* The original tightens the card head below the tablet breakpoint: a smaller
     icon, an 8px gap and the title centred against it. Keeping the desktop
     values cost the heading 12px of width, which wrapped it onto a third line. */
  .support-card__head { gap: 8px; align-items: center; }
  .support-card__icon { flex: 0 0 25px; width: 25px; height: 25px; }
  .support-card__icon svg { width: 25px; height: 25px; }
  /* The opening-hours text steps down here, though the link it follows does
     not. At 18px "0800 538 5458 (Mon - Fri 10am - 4pm)" is three pixels too
     wide for the card and breaks onto a second line. */
  .support-card__meta { font-size: 16px; line-height: 20.8px; }
}

/* =========================================================================
   Mobile hardening — improvements on the original build.
   The original served one desktop layout scaled down; these rules fix the
   places where that overflowed or left targets too small to hit reliably.
   ========================================================================= */

/* Nothing may push the page sideways. NB: no overflow-x:hidden on html/body —
   that would break the sticky chapter sidebar. The overflow sources are fixed
   at source instead. */
.prose a, .policy a, .support-card__meta a, .tintbox a { overflow-wrap: anywhere; }

/* Comfortable tap targets (WCAG 2.2 target size). The hit area is grown with a
   pseudo-element so the visual layout stays exactly as designed. Inline links
   inside a paragraph are exempt and are deliberately left alone. */
.learn-more, .pager__link { position: relative; }
.learn-more::after, .pager__link::after { content: ''; position: absolute; inset: -12px -10px; }
.chapters-toggle__btn { min-height: 48px; }
.a11y__toggle { min-width: 48px; min-height: 48px; }

@media (max-width: 767px) {
  .audio-card { padding: 20px; }
  .audio-card__row { flex-direction: column; gap: 16px; }
  .audio-card__cover { flex: 0 0 auto; max-width: none; aspect-ratio: 242 / 168; }
  .audio-card audio { margin-top: 16px; }
  .support-card { padding: 16px; }
  .support-card .btn { align-self: flex-start; }
  .cta-banner__copy { align-items: flex-start; }
  .pager { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pager__link--next { margin-left: 0; }
  .imagerow { flex-direction: column; }
  .imagerow img { width: 100%; }
}

@media (max-width: 575px) {
  /* The original set a 250px minimum here, which forced a sideways scroll
     on 320-360px phones. */
  .scorequiz__control { min-width: 0; width: 100%; max-width: 250px; margin-left: 0; }
}

/* The range input's visible track is 12px; give the control a 24px hit area. */
.rangeslider input[type="range"] {
  height: 24px; padding-block: 6px; background-clip: content-box;
}
.rangeslider input[type="range"]::-webkit-slider-thumb { height: 22px; }
.rangeslider input[type="range"]::-moz-range-thumb { height: 22px; }

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Print
   The guide is something people will want on paper — a chapter handed to a
   parent, or a support page pinned up. Printing the screen layout would waste
   most of the page on navigation, so print gets its own treatment: one clean
   column, chrome removed, and the bits that carry meaning in colour (the
   spectrum bands, the tinted panels, a chosen quiz answer) kept legible.
   ========================================================================= */
@media print {
  @page { size: A4 portrait; margin: 14mm 12mm; }

  html { font-size: 100%; scroll-padding-top: 0; }
  body {
    background: #fff !important; color: #000;
    font-size: 11pt; line-height: 1.45;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }

  /* Screen chrome that means nothing on paper. Buttons go too — you can't
     press ink, and every external link already prints its URL beside it. */
  .site-header__actions, .chapters, .chapters-toggle, .pager, .cta-banner,
  .cookie-notice, .cookie-modal, .cookie-revisit, .a11y, .skip-link,
  .spectrum__controls, .spectrum-static, .site-footer__nav,
  .support-card .btn, .learn-more, .btn--block { display: none !important; }
  .support-card__body { padding: 0 !important; }
  .support-card { padding: 10pt 12pt !important; }

  /* One column, full width. */
  .container, .guide__inner, .policy__inner, .support__inner,
  .home-intro > .container, .home-guide > .container { max-width: 100% !important; width: auto !important; }
  .guide__inner { display: block !important; padding: 0 !important; }
  .guide__aside { display: none !important; }
  .guide__body { display: block !important; }
  .guide__body > * { margin-bottom: 12pt !important; }
  .guide, .section, .home-intro, .home-guide, .policy, .support { padding: 0 !important; }

  /* Masthead: the logo and the page title, once, at the top. */
  .site-header__bar { padding: 0 0 8pt !important; border-bottom: 1pt solid #999; }
  .site-header__logo img { width: 42mm !important; max-width: 42mm !important; }

  /* The hero becomes a heading block — the photo and its overlay just eat ink. */
  .hero { min-height: 0 !important; background: none !important; padding: 0 !important; }
  .hero::before { display: none !important; }
  .hero__inner { padding: 10pt 0 0 !important; }
  .hero__title { font-size: 22pt !important; color: #001F4C !important; padding-bottom: 6pt !important; }
  .hero__intro { font-size: 11pt !important; color: #000 !important; }
  .hero__foot, .breadcrumb { display: none !important; }

  /* Headings hold on to the text that follows them. */
  h1, h2, h3, h4, .page-title, .section-title {
    break-after: avoid; page-break-after: avoid; color: #001F4C !important;
  }
  .page-title { font-size: 19pt !important; margin-top: 0 !important; }
  .section-title { font-size: 15pt !important; margin-top: 14pt !important; }
  .guide__body h3, .tintbox h4 { font-size: 12.5pt !important; }
  p, li { orphans: 3; widows: 3; }

  /* Don't split a panel, card or quiz row across a page. */
  .tintbox, .callout, .tipgrid__item, .audio-card, .support-card, .about-card,
  .guide-card, .quiz__row, .scorequiz__row, .split, .media {
    break-inside: avoid; page-break-inside: avoid;
  }

  /* Images: sized for paper, never off the edge. */
  img, picture { max-width: 100% !important; height: auto !important; }
  .media img { max-height: 90mm; width: auto !important; margin-inline: auto; }
  .split { gap: 8mm !important; }
  .imagerow img { max-height: 45mm; }
  .guide-card__media img { max-height: 45mm; }

  /* Video and audio can't play on paper — show the still with a caption. */
  video { max-height: 80mm; width: auto !important; }
  audio { display: none !important; }
  .audio-card__play { display: none !important; }
  .audio-card::after {
    content: 'Audio recording — listen at ' attr(data-listen-at);
    display: block; margin-top: 4pt; font-size: 9pt; font-style: italic; color: #444;
  }

  /* Colour that carries meaning is kept; everything else goes white. */
  .tintbox, .callout, .quiz, .scorequiz, .tipgrid__item, .audio-card {
    background: #FAF0E8 !important; border: 0.5pt solid #E3DFDF;
  }
  .spectrum__bubble, .spectrum__band { print-color-adjust: exact; }
  .quiz__message { background: #42A678 !important; color: #fff !important; }

  /* The spectrum is a 2200px scroller on screen; on paper it lands sideways on
     its own page so the whole diagram is readable. */
  /* Move the whole diagram to the next page if it won't fit, rather than
     forcing a break (which left half a blank page) or letting the grid split
     and strand the tops of the bubbles at the foot of a page. */
  .spectrum { break-inside: avoid; page-break-inside: avoid; }
  .spectrum__scroller { overflow: visible !important; }
  .spectrum__inner { width: 100% !important; }
  .spectrum__columns {
    grid-template-columns: repeat(3, 1fr) !important; gap: 6mm !important;
    break-inside: avoid; page-break-inside: avoid;
  }
  .spectrum__bubble { width: 100% !important; margin-left: 0 !important; height: 26mm !important; }
  .spectrum__bands { display: none !important; }
  .spectrum__body p, .spectrum__heading { font-size: 9.5pt !important; }

  /* A quiz is worth printing as a worksheet: unanswered rows stay tickable,
     an answered one shows which was chosen. */
  .quiz__option label { border: 1pt solid #666 !important; background: #fff !important; color: #000 !important; }
  .quiz__option input:checked + label {
    background: #001F4C !important; color: #fff !important; border-color: #001F4C !important;
  }
  .rangeslider input[type="range"] { display: none !important; }
  .rangeslider::after {
    content: 'Score: ' attr(data-value) ' / 5';
    display: block; font-size: 10pt; font-weight: 600; color: #001F4C;
  }
  .rangeslider__bubble, .rangeslider__end, .rangeslider__scale { display: none !important; }
  .rangeslider { height: auto !important; }

  /* Links: on paper a URL is the only way to follow one. External only —
     printing the site's own internal paths is just noise. */
  .prose a[href^="http"]::after, .policy a[href^="http"]::after,
  .support-card__meta a[href^="http"]::after, .tintbox a[href^="http"]::after {
    content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; color: #333;
  }
  a { color: #001F4C !important; text-decoration: underline; }

  /* Footer: a single line saying where this came from. */
  .site-footer__top { padding: 8pt 0 0 !important; border-top: 1pt solid #999; }
  .site-footer__inner { display: block !important; padding: 0 !important; }
  .site-footer__logo { display: none !important; }
  .site-footer__bar { background: none !important; padding: 4pt 0 0 !important; }
  .site-footer__bar p { text-align: left !important; font-size: 9pt; color: #444 !important; }
  .site-footer::after {
    content: 'devonfamilyhubsguide.org.uk';
    display: block; margin-top: 2pt; font-size: 9pt; color: #444;
  }
}

/* ---------- Always-on cookie settings badge ----------
   The original keeps a small revisit badge bottom-left; this is the same idea
   at the size of the accessibility badge, mirrored to the opposite corner. */
.cookie-revisit {
  position: fixed; left: 10px; bottom: 40px; z-index: 9999998;
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform .2s, background-color .2s;
}
.cookie-revisit:hover { background: var(--purple); transform: scale(1.06); }
.cookie-revisit svg { display: block; }
@media print { .cookie-revisit { display: none !important; } }

/* Restated after the media queries so the privacy hero keeps its full-size
   metrics at every width, exactly as the original does. */
@media (max-width: 1199px) {
  .hero--policy { min-height: 500px; }
  .hero--policy .hero__inner { padding: 180px 0 60px; }
  .hero--policy .hero__title { font-size: 50px; padding-bottom: 30px; }
}
@media (max-width: 767px) {
  .hero--policy { min-height: 500px; }
  .hero--policy .hero__inner { padding: 180px 0 60px; }
  .hero--policy .hero__title { font-size: 50px; padding-bottom: 30px; }
}
/* The cookies hero holds its 50px title too, though its banner does shrink. */
@media (max-width: 1199px) { .hero--bold .hero__title { font-size: 50px; } }
@media (max-width: 767px)  { .hero--bold .hero__title { font-size: 50px; } }

/* ---------- Illustrations download page (/illustrations/) ---------- */
.illus { padding-block: 60px 80px; }
.illus__head { margin-bottom: 40px; }
.illus__title { margin-bottom: 16px; font-size: 44px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.illus__intro { margin-bottom: 24px; font-size: 20px; }
.illus__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px;
  margin: 0; padding: 0; list-style: none;
}
.illus__card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--card-line); }
.illus__thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #F7F1EA; }
.illus__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.illus__body { display: flex; flex: 1; flex-direction: column; padding: 16px 20px 20px; }
.illus__name { margin: 0 0 6px; font-weight: 500; line-height: 1.3; color: var(--navy); }
.illus__num { margin-right: 4px; font-weight: 600; color: var(--green); }
.illus__meta { margin: 0 0 16px; font-family: 'Inter', sans-serif; font-size: 15px; color: #4F585C; }
.illus__dl {
  align-self: flex-start; margin-top: auto; padding: 10px 20px;
  background: var(--navy); color: #fff; font-size: 16px; font-weight: 500; line-height: 1;
  transition: background-color .3s;
}
.illus__dl:hover, .illus__dl:focus { background: var(--purple); color: #fff; }
@media (max-width: 991px) {
  .illus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 600px) {
  .illus { padding-block: 40px 60px; }
  .illus__title { font-size: 32px; }
  .illus__intro { font-size: 18px; }
  .illus__grid { grid-template-columns: minmax(0, 1fr); }
  .illus__all { width: 100%; white-space: normal; }
}
