/* richardstockley.com
   Brand: teal #62c0bf, orange #ee7e32, Raleway for text, Gochi Hand for the handwritten headings.
   All styles live here: the site's content-security-policy doesn't allow inline styles. */

@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("/fonts/gochi-hand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --teal: #62c0bf;
  --teal-dark: #62c0bf;      /* teal used for text and small controls. Kept at the brand teal; #3a8f8e reads better on white */
  --orange: #ee7e32;
  --orange-dark: #ee7e32;    /* orange used for link text. Kept at the brand orange; #c25a12 reads better on white */
  --ink: #333333;
  --text: #666666;
  --line: #e2e2e2;
  --grey: #f4f4f4;
  --white: #ffffff;
  --header-h: 80px;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
body.is-post { background: var(--grey); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0 0 0.4em; }
h1, h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { width: 80%; max-width: 1080px; margin-inline: auto; }
.icon { width: 24px; height: 24px; fill: currentColor; display: block; }
.hand { font-family: var(--hand); font-weight: 400; color: var(--white); text-shadow: 0.08em 0.08em 0.12em rgba(0, 0, 0, 0.45); }
.centred { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 500 18px/1.4 var(--sans); padding: 8px 18px; border: 2px solid var(--white); border-radius: 3px; color: var(--white); background: var(--orange); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); cursor: pointer; text-decoration: none; transition: filter 0.15s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn--orange { background: var(--orange); }
.btn--teal { background: var(--teal-dark); }
.btn--outline { background: transparent; box-shadow: none; }
.btn--outline-dark { background: transparent; box-shadow: none; color: var(--ink); border-color: var(--ink); font-size: 15px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--teal); box-shadow: var(--shadow); view-transition-name: site-header; }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; }
.logo { display: flex; margin-right: 28px; }
.logo img { width: 50px; height: 50px; display: block; }
.site-nav { display: flex; align-items: center; }
.site-nav a { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 12px; line-height: 1.6; }
.site-nav a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.18); }
.site-nav a[aria-current="page"] { background: var(--orange); }
.site-search { display: flex; align-items: center; gap: 4px; flex: 0 1 520px; }
.site-search input { flex: 1; min-width: 0; font: 500 17px var(--sans); color: var(--ink); background: rgba(255, 255, 255, 0.35); border: 0; border-radius: 3px; padding: 10px 12px; }
.site-search input::placeholder { color: var(--ink); opacity: 0.8; }
.search-toggle { margin-inline: 14px 6px; }
.menu-toggle { display: none; }
.header-connect { font-size: 18px; }
.site-header.is-searching .site-nav, .site-header.is-searching .search-toggle, .site-header.is-searching .header-connect, .site-header.is-searching .menu-toggle, .site-header.is-searching .logo { display: none; }

/* ---------- Banner ---------- */
.hero { position: relative; width: 80%; max-width: 1080px; margin-inline: auto; min-height: 414px; background: var(--teal); overflow: hidden; display: flex; align-items: flex-start; }
.hero-text { position: relative; z-index: 1; padding: 28px 20px 40px; }
.hero-name { font-family: var(--hand); font-weight: 400; font-size: clamp(52px, 8.4vw, 96px); line-height: 1.15; color: var(--white); margin: 0 0 12px; text-shadow: 0.07em 0.07em 0.1em rgba(0, 0, 0, 0.45); }
.hero-pillars { font-size: clamp(20px, 3vw, 33px); font-weight: 400; text-transform: uppercase; color: var(--white); margin: 0 0 34px; word-spacing: 0.25em; }
.hero-pillars a { color: var(--white); }
.hero-portrait { position: absolute; right: 0; top: 0; bottom: 0; }
.hero-portrait img { height: 100%; width: auto; max-width: none; display: block; }

/* ---------- Page sections ---------- */
.hero-line { max-width: 34em; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--ink); margin: -14px 0 28px; }

/* Home page: the three offers, and the feature band */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 14px; }
.offer { display: flex; flex-direction: column; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14); }
.offer-head { background: var(--ink); padding: 18px 22px 16px; border-top: 6px solid var(--teal); }
.offer-kicker { font-family: var(--hand); font-size: 36px; line-height: 1; color: var(--teal); margin: 0 0 8px; }
.offer h3 { font-size: 18px; color: var(--white); margin: 0; min-height: 2.5em; }
.offer-body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; }
.offer-body p { margin: 0 0 10px; }
.offer strong { color: var(--ink); }
/* Pinned to the foot of the card, so the three buttons line up whatever the length of the text. */
.offer-body .offer-action { margin: auto 0 0; padding-top: 8px; }
.offers--2 { grid-template-columns: repeat(2, 1fr); }
/* Cards in a row share their rows, so every heading panel is the same height. */
@supports (grid-template-rows: subgrid) {
  .offers > .offer { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  .offers > .offer h3 { min-height: 0; }
}
.offer-head h2 { font-family: var(--hand); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--teal); margin: 0; }
.offer-head .offer-kicker:last-child { margin-bottom: 0; }
.offer-body > p:last-child { margin-bottom: 0; }
.offer-body ul { margin: 0 0 12px; padding-left: 20px; }
.offer-body li { margin: 2px 0; }

/* Series pages: a dark heading panel, then each article as a numbered row with its picture. */
.series-head { background: var(--ink); border-top: 5px solid var(--teal); border-radius: 6px; padding: 20px 26px 22px; margin: 4px 0 24px; }
.series-head .feature-kicker { margin-bottom: 6px; }
.series-head h2 { color: var(--white); font-size: clamp(22px, 3vw, 30px); margin: 0; }
.page--series blockquote { max-width: 44em; font-size: 19px; color: var(--ink); }
.series-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.series-entry { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); background: var(--white); border: 2px solid var(--teal); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18); }
.series-entry--plain { grid-template-columns: 1fr; }
.series-entry-image { background: var(--teal); min-height: 100%; aspect-ratio: 16 / 9; }
.series-entry-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.series-number { position: absolute; top: 0; left: 0; z-index: 1; margin: 0; background: var(--ink); color: var(--teal); font-family: var(--hand); font-size: 28px; line-height: 1; padding: 9px 14px 7px; border-bottom-right-radius: 6px; }
.series-entry--plain .series-number { position: static; justify-self: start; }
.series-entry-body { padding: 18px 24px 20px; align-self: center; }
.series-entry-title { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.series-entry-title a { color: var(--ink); text-decoration: none; }
.series-entry-title a::after { content: ""; position: absolute; inset: 0; }
.series-entry:hover .series-entry-title a, .series-entry-title a:focus-visible { text-decoration: underline; }
.series-entry:hover { border-color: var(--ink); }
.series-entry:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.series-entry-title a:focus-visible { outline: none; }
.series-entry-body p { margin: 0; }
.series-entry-body p + p { margin-top: 8px; }
.series-next h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 32px); }
.feature blockquote { color: #e8e8e8; }
.feature-more { margin: 14px 0 0; }
.feature-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; }
.feature-split > div { display: flex; flex-direction: column; }
.feature-split .feature-actions { margin-top: auto; padding-top: 22px; }

/* Service pages: a larger title, a readable line length, and the key facts beside the opening text. */
.page-title { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 0.5em; }
.measure > p, .intro-prose > p { max-width: 46em; }
.feature a:not(.btn) { color: var(--teal); text-decoration: underline; }
.videos h3 { font-size: 18px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "lead card" "prose card"; gap: 0 56px; align-items: start; }
.intro-lead { grid-area: lead; max-width: none; }
.intro-card { grid-area: card; }
.intro-prose { grid-area: prose; }
.intro-prose blockquote { margin: 18px 0 0; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: var(--ink); max-width: 30em; margin: 0 0 20px; }
.feature { background: var(--ink); color: #e8e8e8; padding-block: 44px; }
.feature h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 4px; }
.feature-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 700; color: var(--teal); margin: 0 0 8px; }
.feature-line { font-family: var(--hand); font-size: clamp(30px, 5vw, 50px); line-height: 1.15; color: var(--teal); margin: 0 0 18px; }
.feature p { max-width: 46em; }
.feature strong { color: var(--white); }
.feature-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 8px 40px; margin-top: 20px; }
.feature-pair h3 { font-family: var(--hand); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--teal); margin: 0 0 4px; }
.feature .feature-pair h3 a { color: var(--teal); text-decoration: none; }
.feature .feature-pair h3 a:hover, .feature .feature-pair h3 a:focus-visible { text-decoration: underline; }
.feature-pair p { margin: 0; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 0; }
/* Questions and answers on a page */
.faq section { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; color: var(--ink); }
.faq details[open] summary { margin-bottom: 8px; }
.band { padding-block: 26px; }
.band--tint { background: linear-gradient(180deg, #f1f7f7, #e7f1f1); }
.band--angled { padding-block: 70px; clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%); margin-block: 10px; }
.band--angled h2 { text-align: center; }
.cols-3, .cols-2 { display: grid; gap: 10px 5.5%; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-2--centred { align-items: center; }
.page--plain { padding-block: 40px; }
.page.listing { padding-block: 40px; }
blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--teal); }
.meta { font-size: 14px; }

.accordions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 5.5%; align-items: start; }
.accordion-column { display: grid; gap: 10px; }
.accordion { border: 1px solid var(--line); background: var(--grey); padding: 14px 20px; }
.accordion summary { cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink); }
.accordion[open] { background: var(--white); }
.accordion p, .accordion ul { margin: 12px 0 0; }
.accordion ul { padding-left: 20px; }
.accordion li { margin: 4px 0; }

.tiles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.tiles li { background: var(--ink); color: var(--white); border-top: 6px solid var(--teal); border-radius: 6px; text-align: center; padding: 16px 8px 14px; display: flex; flex-direction: column; justify-content: center; line-height: 1.4; }
.tiles strong { display: block; font-family: var(--hand); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--teal); margin-top: 4px; }

/* Accreditations. Every box is the same width and height whatever its wording: side by side
   where there is room, one under another on a phone. Two boxes don't stretch across the page. */
.badges { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.badges:not(:has(li:nth-child(3))) { max-width: 776px; }
.badges li { display: flex; }
.badge { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-wrap: balance; background: var(--white); border: 2px solid var(--teal); border-radius: 6px; padding: 20px 18px 16px; color: var(--ink); font-weight: 700; text-decoration: none; }
.badge img { height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.badge span { font-size: 15px; line-height: 1.4; }
a.badge:hover, a.badge:focus-visible { border-color: var(--ink); }

.channels { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.channels li { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 6px; padding: 16px 18px; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1); }
.channel-name { font-weight: 700; }

/* ---------- Videos ---------- */
.video { position: relative; }
.video-play { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: var(--teal); color: var(--white); font: 700 15px/1.3 var(--sans); padding: 12px; cursor: pointer; }
.video-play:hover { background: var(--teal-dark); }
.icon--play { width: 64px; height: 64px; background: var(--orange); border-radius: 50%; padding: 14px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; display: block; }
.video-note { font-size: 13px; margin: 6px 0 0; }

/* ---------- Cards, grid and slider ---------- */
.card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--teal); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18); }
.card-image { display: block; aspect-ratio: 16 / 9; background: var(--teal); }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 18px; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-meta { font-size: 15px; margin: 0 0 8px; }
.card-excerpt { margin: 0 0 12px; }
.read-more { margin-top: auto; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.more-wrap { text-align: center; margin: 30px 0 0; }

.slider { position: relative; margin: 18px -44px 0; padding: 0 44px; }
.slider-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 22px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > .card { flex: 0 0 calc((100% - 60px) / 3); scroll-snap-align: start; }
.slider-btn { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; background: none; color: var(--teal-dark); cursor: pointer; padding: 0; }
.slider-btn .icon { width: 40px; height: 40px; }
.slider-btn--prev { left: 0; }
.slider-btn--next { right: 0; }

/* ---------- Topic filter ---------- */
.filter { margin-top: 10px; }
.filter-panel { border: 1px solid var(--line); border-radius: 6px; padding: 12px 18px; }
.filter-panel summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.filter-panel h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font: 500 14px/1.4 var(--sans); color: var(--ink); background: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip:hover { border-color: var(--teal-dark); text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.chip-count { opacity: 0.75; font-size: 12px; }
.filter-status { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.filter-status:empty { display: none; }
.filter-clear { margin-top: 12px; }

/* ---------- Listings and search ---------- */
.listing-row { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.listing-row:not(:has(.listing-image)) { grid-template-columns: 1fr; }
.listing-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 4px; }
.listing-title { font-size: 22px; }
.listing-title a { color: var(--ink); }
.listing-meta { font-size: 15px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; }
.pagination-count { font-size: 14px; }
.search-form { display: flex; gap: 10px; margin: 10px 0 20px; }
.search-form input { flex: 1; min-width: 0; font: 500 17px var(--sans); color: var(--ink); border: 1px solid #999; border-radius: 3px; padding: 10px 12px; }
.search-status { font-weight: 700; color: var(--ink); }
mark { background: #fde4d1; color: inherit; padding: 0 2px; }

/* ---------- Posts ---------- */
.post-head { padding-top: 36px; }
.post-title { text-align: center; text-transform: uppercase; font-weight: 700; font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.post-meta { text-align: center; }
.post-meta a { color: var(--text); }
.post-image { display: block; width: 100%; margin-top: 18px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 24%; gap: 0 3%; align-items: start; }
.post-layout--single { grid-template-columns: minmax(0, 1fr); }
.post-main { background: var(--white); padding: 40px 34px; min-width: 0; }
.prose { max-width: 760px; margin-inline: auto; }
.page--plain .prose { margin-inline: 0; }
.prose h2 { margin-top: 1.5em; font-size: 24px; }
.prose h3 { margin-top: 1.3em; }
.prose img { display: block; margin: 1.5em auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; text-align: center; }
.prose a { text-decoration: underline; }
.prose li { margin-bottom: 0.5em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.prose details summary { cursor: pointer; color: var(--ink); }
.prose details[open] summary { margin-bottom: 8px; }
.toc, .prose .toc { border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 6px; background: var(--white); padding: 14px 20px 16px; margin-bottom: 1.8em; }
.toc summary { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--ink); cursor: pointer; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.toc li { margin: 0 0 4px; }
.prose .toc a { color: var(--ink); text-decoration: none; }
.prose .toc a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
/* An article's podcast episodes and videos: cards two to a row, each with a label on a dark strip. */
.prose .media-cards { list-style: none; margin: 1.2em 0 2em; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.podcast, .video-card { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; margin: 0; background: var(--white); border: 2px solid var(--teal); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18); }
.podcast:hover { border-color: var(--ink); }
.podcast:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.prose .media-label { margin: 0; background: var(--ink); color: var(--teal); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; line-height: 1.5; padding: 10px 16px 9px; }
.podcast-cover { background: var(--ink); }
.prose .podcast-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; }
.podcast-body { display: flex; flex-direction: column; padding: 16px 18px 18px; }
.prose .podcast-body p { margin: 0; font-size: 15px; line-height: 1.6; }
.prose .podcast-body .podcast-action { margin-top: auto; padding-top: 16px; }
.prose .podcast-action .btn { text-decoration: none; }
.podcast-action .btn::after { content: ""; position: absolute; inset: 0; }
.podcast-action .btn:focus-visible { outline: none; }
.video-card .video-play, .video-card .video iframe { border-radius: 0; }
.prose .video-card h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; padding: 14px 16px; }
.video-card .video { align-self: end; }
.prose .video-card .video-note { margin: 0; padding: 8px 16px 12px; }
/* An article's opening line, its place in a series, and who wrote it. */
.prose .standfirst { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink); }
.prose .standfirst em { font-style: normal; }
.post-series { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto 24px; background: var(--ink); color: var(--white); border-radius: 6px; padding: 10px 18px; }
.post-series:hover { text-decoration: none; }
.post-series-number { font-family: var(--hand); font-size: 36px; line-height: 1; color: var(--teal); padding-top: 4px; }
.post-series-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post-series-part { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--teal); }
.post-series-name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.post-series-go { font-size: 15px; color: var(--teal); text-decoration: underline; white-space: nowrap; }
.post-series:hover .post-series-name { text-decoration: underline; }
.post-author { max-width: 760px; margin: 30px auto 0; background: var(--ink); color: #e8e8e8; border-top: 5px solid var(--teal); border-radius: 6px; padding: 22px 26px 24px; }
.post-author .feature-kicker { margin-bottom: 2px; }
.post-author-name { font-family: var(--hand); font-size: 34px; line-height: 1.15; color: var(--teal); margin: 0 0 8px; }
.post-author p { margin: 0 0 12px; }
.post-author-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.post-author .post-author-links { margin-bottom: 0; }
.post-author-links a { color: var(--teal); text-decoration: underline; font-weight: 600; }
.neighbours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 40px auto 24px; }
.neighbour { display: flex; flex-direction: column; color: var(--text); background: var(--white); border: 2px solid var(--teal); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18); }
.neighbour:hover { text-decoration: none; border-color: var(--ink); }
.neighbour:hover .neighbour-title { text-decoration: underline; }
.neighbour--next:only-child { grid-column: 2; }
.neighbours-title { max-width: 760px; margin: 40px auto 0; }
.neighbours-title + .neighbours { margin-top: 16px; }
.neighbour-label { background: var(--ink); color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 2px; padding: 10px 16px 9px; }
.neighbour--next .neighbour-label { text-align: right; }
.neighbour-title { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); padding: 14px 16px 0; }
.neighbour img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.neighbour-excerpt { font-size: 14px; line-height: 1.5; padding: 8px 16px 0; }
.neighbour > :last-child { padding-bottom: 16px; }
.neighbour > .neighbour-label:last-child, .neighbour > img:last-child { padding-bottom: 9px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.share-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--ink); margin-right: 4px; }
.share-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 4px; background: var(--teal-dark); color: var(--white); cursor: pointer; }
.share-link:hover { background: var(--orange-dark); }
.share-status { font-size: 14px; }
.comments { max-width: 760px; margin: 44px auto 0; padding-top: 28px; border-top: 3px solid var(--teal); }
.comments h3 { margin-top: 30px; }
.comments-note { font-style: italic; }
.comment { border-bottom: 1px solid var(--line); padding: 16px 0 4px; }
.comment-meta { margin-bottom: 6px; font-size: 15px; }
.comment-meta strong { color: var(--ink); }
.comment p { overflow-wrap: anywhere; }
.comment-badge { display: inline-block; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.comment-reply, .comment-replying button { font: 700 14px var(--sans); color: var(--orange-dark); background: none; border: 0; padding: 0; margin: 0 0 12px; cursor: pointer; text-decoration: underline; }
.comment-replies { margin-left: 28px; padding-left: 18px; border-left: 3px solid var(--teal); }
.comment-replies:empty { display: none; }
.comment-replies .comment:last-child { border-bottom: 0; }
.comment-replying { background: var(--grey); border-left: 5px solid var(--teal); padding: 8px 12px; font-weight: 700; color: var(--ink); }
.comment-replying button { margin: 0 0 0 8px; }
.comment-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.comment-form .field { margin-bottom: 18px; }
.comment-form input, .comment-form textarea { width: 100%; font: 500 16px/1.5 var(--sans); color: var(--ink); background: #eeeeee; border: 1px solid #cccccc; border-radius: 0; padding: 12px 14px; }
.comment-form textarea { resize: vertical; display: block; }
.comment-form input[aria-invalid="true"], .comment-form textarea[aria-invalid="true"] { border: 2px solid var(--ink); }
.comment-form .field-error { color: var(--ink); }
.comment-form .form-note, .comment-form .form-note a { color: var(--text); }
.comment-status, .comment-thanks { font-weight: 700; color: var(--ink); margin: 14px 0 0; }
.comment-status--error { background: var(--grey); border-left: 5px solid var(--orange); padding: 10px 12px; }
.moderation { padding-block: 50px; }
.post-aside { padding: 34px 0 20px; text-align: center; }
.post-aside h2 { text-transform: uppercase; font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--white); background: var(--ink); border-top: 5px solid var(--teal); border-radius: 6px; padding: 12px 10px 11px; margin-bottom: 14px; }
.aside-item { display: block; color: var(--ink); margin-bottom: 22px; font-weight: 700; line-height: 1.35; }
.aside-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.post-recent { padding: 40px 0 50px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; }
.footer-connect { background-color: var(--teal); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 7px); clip-path: polygon(0 170px, 100% 0, 100% 100%, 0 100%); margin-top: -20px; padding: 0 0 90px; color: var(--white); }
.footer-connect-inner { width: 80%; max-width: 1080px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 5%; align-items: center; }
.connect-card { background: var(--orange); border: 22px solid var(--white); box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25); padding: 60px 38px 50px; margin-top: 190px; scroll-margin-top: calc(var(--header-h) + 20px); }
.connect-card h2 { font-size: 32px; margin-bottom: 26px; }
.connect-more { text-align: center; padding-top: 170px; }
.connect-more h2 { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.3; margin-bottom: 30px; }
.connect-more h3 { color: var(--white); font-weight: 500; }
.connect-more .btn { margin: 8px 0 20px; }
.follow { font-size: 15px; max-width: 420px; margin-inline: auto; }
.social { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 20px 0 26px; padding: 0; }
.social-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 4px; color: var(--white); background: var(--ink); }
.social-link .icon { width: 20px; height: 20px; }
.social-link--linkedin { background: #0a66c2; }
.social-link--bluesky { background: #1185fe; }
.social-link--youtube { background: #ff0000; }
.social-link--tiktok { background: #000000; }
.social-link:hover { filter: brightness(1.15); }

.field { margin-bottom: 26px; }
.contact-form input, .contact-form textarea { width: 100%; font: 500 15px/1.5 var(--sans); color: var(--ink); background: #eeeeee; border: 1px solid #dddddd; border-radius: 0; padding: 14px 16px; }
.contact-form textarea { resize: vertical; display: block; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border: 2px solid var(--ink); }
.field-error { margin: 6px 0 0; color: var(--white); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box { margin-bottom: 14px; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--white); margin: 18px 0 0; }
.form-note a { color: var(--white); text-decoration: underline; }
.form-status, .form-thanks { color: var(--white); font-weight: 700; margin: 14px 0 0; }
.form-status--error { background: var(--white); color: var(--ink); padding: 10px 12px; }

.footer-links { background: var(--ink); color: #d5d5d5; padding: 44px 0 26px; }
.footer-nav { width: 80%; max-width: 1080px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-nav h2 { color: var(--white); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.footer-nav a { display: block; color: #d5d5d5; padding: 3px 0; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { width: 80%; max-width: 1080px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid #555; font-size: 14px; }
.footer-legal a { color: #d5d5d5; text-decoration: underline; }

.call-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; background: var(--orange); color: var(--white); font: 700 14px/1 Arial, sans-serif; padding: 16px 30px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.call-fab:hover { text-decoration: none; filter: brightness(1.08); }
.to-top { position: fixed; right: 0; bottom: 110px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(0, 0, 0, 0.4); color: var(--white); border-radius: 5px 0 0 5px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .logo { margin-right: 0; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--teal); box-shadow: var(--shadow); padding: 8px 10%; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .search-toggle { margin-inline: 0; }
  .header-inner { justify-content: space-between; padding: 0 10%; }
  .site-header.is-searching .header-inner { padding: 0 16px; }
  .site-search { flex: 1; }
  .cols-3, .cols-2, .accordions, .card-grid, .offers, .offers--2 { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; grid-template-areas: "lead" "card" "prose"; }
  .feature-pair { grid-template-columns: 1fr; gap: 16px; }
  .post-series { gap: 14px; padding: 10px 16px; }
  .post-series-go { font-size: 0; text-decoration: none; }
  .post-series-go::after { content: "\2192"; font-size: 22px; }
  .prose .media-cards { grid-template-columns: 1fr; gap: 18px; }
  .video-card { grid-row: auto; grid-template-rows: auto; }
  .podcast { grid-row: auto; grid-template-rows: auto; grid-template-columns: 110px minmax(0, 1fr); grid-template-areas: "part part" "cover action" "words words"; align-items: center; }
  .podcast .media-label { grid-area: part; }
  .podcast-cover { grid-area: cover; margin: 14px 0 0 14px; border-radius: 4px; overflow: hidden; }
  .podcast-body { display: contents; }
  .prose .podcast-body p { grid-area: words; padding: 12px 14px 16px; }
  .prose .podcast-body .podcast-action { grid-area: action; margin: 0; padding: 14px 12px 0 14px; }
  .prose .podcast-action .btn { white-space: nowrap; font-size: 16px; padding: 10px 14px; }
  .series-entry { grid-template-columns: 1fr; }
  .series-entry-image { min-height: 0; }
  .series-head { padding: 16px 18px 18px; }
  .feature-split { grid-template-columns: 1fr; }
  .intro-card { margin: 4px 0 22px; }
  .offer h3 { min-height: 0; }
  .card-grid { gap: 24px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .slider-track > .card { flex-basis: calc((100% - 30px) / 2); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { display: none; }
  .footer-connect { clip-path: polygon(0 90px, 100% 0, 100% 100%, 0 100%); }
  .footer-connect-inner { grid-template-columns: 1fr; }
  .connect-card { margin-top: 130px; }
  .connect-more { padding-top: 40px; }
  .hero { min-height: 330px; }
  .hero-portrait { opacity: 0.9; }
  .hero-text { max-width: 60%; }
  .hero-pillars { white-space: nowrap; }
}
@media (max-width: 767px) {
  .hero-portrait { display: none; }
  .hero-text { max-width: none; }
  .hero-name { font-size: clamp(56px, 17vw, 96px); }
}
@media (max-width: 640px) {
  .wrap, .hero, .footer-connect-inner, .footer-nav, .footer-legal { width: 88%; }
  .hero { min-height: 280px; }
  .hero-pillars { font-size: 16px; word-spacing: 0.1em; white-space: nowrap; margin-bottom: 24px; }
  .slider { margin-inline: -18px; padding-inline: 26px; }
  .slider-track > .card { flex-basis: 100%; }
  .slider-btn, .slider-btn .icon { width: 28px; height: 28px; }
  .listing-row, .neighbours, .footer-nav { grid-template-columns: 1fr; }
  .neighbour--next:only-child { grid-column: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: 1fr; gap: 14px; }
  .post-main { padding: 26px 18px; }
  .connect-card { border-width: 12px; padding: 36px 22px; }
  .search-form { flex-direction: column; }
  .call-fab { right: 12px; bottom: 12px; padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .site-footer, .call-fab, .to-top, .slider, .share, .hero { display: none; }
}
