/* --- MOBILE RESPONSIVE RULES (360PX TO 510PX) --- */


@media all and (min-width: 360px) and (max-width: 390px) {
  .floating-pack-menu {
    right: 10px;
    bottom: 10px;
  }

  .floating-pack-flip {
    width: 94px;
    height: 94px;
  }

  .floating-pack-face-front::after {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 4px 6px;
    font-size: 0.56rem;
    text-align: center;
  }

  .floating-pack-face-back {
    font-size: 0.78rem;
    padding: 7px;
  }

  /* --- INDEX PAGE: HEADER --- */
  /* Keep the top bar on one line at very small widths. Text can shrink and clip, actions stay visible. */
  .header-topbar-inner {
    max-width: 100%;
    width: 100%;
    font-size: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 8px;
    overflow: hidden;
  }

  .header-trust {
    /* Required for flex children so ellipsis can actually activate instead of forcing overflow. */
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: clip;
    font-size: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    pointer-events: none;
  }

  .header-trust::-webkit-scrollbar {
    display: none;
  }

  .header-topbar-actions {
    /* Prevent language toggle/actions from shrinking off-screen. */
    margin-left: 0;
    flex: 0 0 auto;
  }

  .header-lang {
    /* Compact language switch so Welsh/English labels fit within narrow screens. */
    margin-left: 0;
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1.1;
  }
  .header-main-inner {
    max-width: 100%;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 8px 8px;
  }

  .site-header + .element-header-spacer {
    margin-bottom: 100px;
  }

  .header-brand {
    gap: 7px;
    min-width: 0;
  }

  .header-brand img {
    width: 46px;
  }

  .brand-name {
    font-size: 13px;
    line-height: 1.1;
  }

  .brand-tagline {
    font-size: 7px;
    line-height: 1.2;
  }

  .nav-primary {
    display: none;
  }

  .header-actions {
    justify-self: end;
    gap: 6px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta-label {
    font-size: 10px;
    min-width: 0;
    max-width: 96px;
    height: 24px;
    padding: 0 7px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cta-toggle {
    height: 24px;
    width: 26px;
    padding: 0 6px;
  }

  .cta-toggle i {
    font-size: 13px;
    line-height: 1;
  }

  .cta-split .cta-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: min(86vw, 260px);
  }

  .testimonials-cta .cta-menu {
    right: 0;
  }

  .nav-drawer {
    padding: 12px 14px 18px;
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-drawer .nav-list {
    gap: 6px;
  }

  .nav-drawer a,
  .nav-drawer .nav-toggle-btn {
    font-size: clamp(1rem, 4.6vw, 1.2rem);
    padding: 8px 10px;
    border-radius: 10px;
  }

  .nav-drawer .submenu {
    margin-top: 4px;
    border-radius: 10px;
  }

  .nav-drawer .submenu li a,
  .nav-drawer .submenu .nav-toggle-btn {
    font-size: clamp(0.95rem, 4.2vw, 1.05rem);
    padding: 8px 10px;
  }

  .nav-toggle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .nav-toggle i {
    font-size: 16px;
    line-height: 1;
  }

  /* --- INDEX PAGE: HERO --- */
  .section-hero {
    padding: 58px 16px 30px;
  }

  .hero-wrap {
    gap: 22px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-anniversary-row {
    justify-content: center;
  }

  .hero-anniversary-seal {
    width: 88px;
    height: 88px;
    font-size: 0.8rem;
  }

  .hero-anniversary-ribbon {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .hero-media-main {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px 28px;
  }

  .hero-foil-stamp {
    top: 12px;
    right: 12px;
    font-size: 0.6rem;
    padding: 8px 12px;
  }

  .hero-polaroids {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 38%);
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    width: 100%;
    max-width: 340px;
    z-index: 4;
  }

  .hero-polaroid {
    padding: 6px;
    transform: rotate(-2deg);
  }

  .hero-polaroid:nth-child(2) {
    transform: rotate(3deg);
    margin-left: 0;
  }

  .hero-polaroid img {
    width: clamp(132px, 36vw, 146px);
    height: clamp(98px, 27vw, 108px);
  }

  .hero-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 118px;
  }

  .hero-strip-hint {
    top: -22px;
    font-size: 0.7rem;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
  }

  .hero-strip-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .hero-strip-btn {
    display: none;
  }

  .hero-strip-item {
    width: clamp(188px, 55vw, 250px);
  }

  .hero-accent-1 {
    width: clamp(90px, 30vw, 140px);
    opacity: 0.3;
    top: 12px;
    left: -10px;
  }

  /* --- SERVICES PAGE: HERO --- */
  .services-hero-section {
    padding-block: 10px 22px;
  }

  .services-hero-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-hero-copy {
    margin: 0;
    padding: 16px 14px 14px;
  }

  .services-hero-copy h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
    line-height: 1.08;
  }

  .services-hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .services-hero-lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .services-hero-points {
    margin-top: 12px;
    gap: 7px;
  }

  .services-hero-points li {
    font-size: 0.74rem;
    padding: 7px 10px;
  }

  .services-hero-jump {
    gap: 7px;
    margin-top: 12px;
  }

  .services-hero-jump a {
    font-size: 0.66rem;
    padding: 6px 10px;
  }

  .services-hero-media {
    margin: 0;
    padding: 12px 12px 10px;
    border-radius: 22px 16px 18px 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .services-hero-media::before {
    inset: 8px 8px 38px 8px;
    border-radius: 26px 18px 22px 18px;
  }

  .services-hero-image {
    aspect-ratio: 16 / 11;
  }

  .services-hero-media figcaption {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.64rem;
    padding: 6px 10px;
  }

  /* --- FUNDING PAGE: HERO --- */
  .funding-hero-section {
    padding-block: 10px 22px;
  }

  .funding-hero-shell {
    width: min(1240px, calc(100% - 28px));
  }

  .funding-hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .funding-hero-layout > article {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .funding-hero-layout h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.5rem);
    line-height: 1.08;
  }

  .funding-hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .funding-hero-lead,
  .funding-hero-info p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .funding-hero-info h2 {
    font-size: 1.2rem;
    line-height: 1.22;
  }

  .funding-hero-info h3 {
    font-size: 0.94rem;
  }

  .funding-hero-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .funding-hero-image {
    min-height: 88px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .funding-hero-image img {
    max-height: 54px;
  }

  .funding-hero-uls {
    height: 44px;
    margin-top: 8px;
  }

  .funding-hero-uls::after {
    height: 6px;
    width: calc(100% - 56px);
  }

  .funding-hero-uls::before {
    width: 34px;
    height: 34px;
  }

  /* --- FUNDING PAGE: 30 HOURS SECTION --- */
  .funding-30-card {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .funding-30-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .funding-30-card h2 {
    font-size: clamp(1.45rem, 7.2vw, 2.05rem);
    line-height: 1.14;
  }

  .funding-30-card > p,
  .funding-30-site ul,
  .funding-30-points li {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .funding-30-card h3 {
    font-size: 1.08rem;
    margin-top: 14px;
  }

  .funding-30-sites {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .funding-30-site {
    border-radius: 12px;
    padding: 11px;
  }

  /* --- FUNDING PAGE: WHY SECTION --- */
  .funding-why-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .funding-why-media,
  .funding-why-content {
    border-radius: 18px;
  }

  .funding-why-media img {
    min-height: 260px;
  }

  .funding-why-content {
    padding: 16px 14px;
  }

  .funding-why-content h2 {
    font-size: clamp(1.6rem, 8.1vw, 2.5rem);
    line-height: 1.08;
  }

  .funding-why-content p,
  .funding-why-points li {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .funding-why-content h3 {
    font-size: 1.08rem;
    margin-top: 14px;
  }

  .funding-why-points {
    gap: 8px;
  }

  /* --- FUNDING PAGE: CTA SECTION --- */
  .funding-cta-card {
    border-radius: 16px;
    padding: 16px 14px;
  }

  .funding-cta-card h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .funding-cta-card p {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .funding-cta-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .funding-cta-actions .element-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.78rem;
    padding-inline: 8px;
  }

  .services-glance {
    gap: 12px;
  }

  .services-glance-title span {
    min-height: 48px;
    padding: 9px 18px;
    font-size: clamp(1.15rem, 6.2vw, 1.45rem);
  }

  .services-glance-title span::before,
  .services-glance-title span::after {
    width: 12px;
    height: 12px;
    top: -6px;
  }

  .services-glance-title span::before {
    left: 12px;
  }

  .services-glance-title span::after {
    right: 12px;
  }

  .services-glance-intro {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .services-glance-subtitle {
    padding: 7px 11px 8px;
  }

  .services-glance-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-glance-card {
    padding: 14px;
  }

  .services-glance-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 7px;
  }

  .services-glance-tags li,
  .services-glance-links a {
    font-size: 0.72rem;
  }

  .services-glance-timeline {
    padding: 10px;
  }

  .services-glance-timeline p {
    font-size: 0.7rem;
  }

  .services-glance-timeline ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-glance-timeline li {
    font-size: 0.72rem;
  }

  .services-glance-availability {
    padding: 14px;
  }

  .services-glance-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .services-glance-actions .element-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.72rem;
    padding-inline: 6px;
  }

  .services-enquire-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .services-enquire-actions .element-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.72rem;
    padding-inline: 6px;
  }

  .services-site-head {
    gap: 6px;
    margin-bottom: 12px;
  }

  .services-site-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .services-site-head h2 {
    font-size: clamp(1.45rem, 7.6vw, 2.05rem);
  }

  .services-site-subtitle {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .services-site-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-site-card--parent,
  .services-site-photo,
  .services-site-card--benefits,
  #cwmdu-availability,
  #cwmdu-funding,
  #cwmdu-rates,
  #tan-availability,
  #tan-funding {
    grid-column: 1;
    grid-row: auto;
  }

  .services-site-age-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-site-card--benefits ul.services-site-benefit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #benefit-card-8,
  #tan-benefit-card-8 {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
    aspect-ratio: auto;
  }

  .services-site-benefit-cards li {
    padding: 10px 11px;
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .services-site-benefit-cards li i {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .services-site-carousel {
    padding: 0;
  }

  .services-site-carousel-stage {
    aspect-ratio: 16 / 11;
    min-height: 0;
    height: auto;
  }

  .services-site-carousel-caption {
    left: 8px;
    bottom: 8px;
    max-width: min(90%, calc(100% - 16px));
    font-size: 0.64rem;
    padding: 5px 8px;
  }

  .services-site-funding-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-site-funding-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .services-site-funding-logos img {
    max-height: 84px;
    padding: 8px 10px;
  }

  .services-site-rhythm {
    gap: 7px;
  }

  .services-site-rhythm li {
    font-size: 0.72rem;
    padding: 6px 9px;
  }

  .services-site-mini-gallery {
    display: none;
  }

  .services-site-mini-card {
    aspect-ratio: 5 / 3.8;
  }

  .services-site-mini-card figcaption {
    font-size: 0.62rem;
    padding: 4px 7px;
  }

  .services-faq {
    padding: 14px;
    border-radius: 18px;
  }

  .services-faq .element-faq-item summary {
    padding: 12px 44px 12px 12px;
    font-size: 0.95rem;
  }

  .services-faq .faq-answer {
    padding: 0 12px 12px;
  }

  .services-faq .faq-quickfacts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-faq .faq-chip {
    transform: none;
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .services-faq .faq-cta {
    padding: 12px;
  }

  .services-faq .faq-cta > p:first-child {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .services-faq .faq-cta-site {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .services-faq .faq-cta-contact-line {
    font-size: 0.78rem;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .services-faq .faq-cta-sep,
  .services-faq .faq-cta-link-text {
    display: none;
  }

  .services-faq .faq-cta-link {
    text-decoration: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(47, 79, 63, 0.22);
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    padding: 0;
  }

  .services-faq .faq-cta-link i {
    font-size: 0.9rem;
  }

  /* --- SCHOOL READINESS (EN + CY) --- */
  .school-readiness-hero {
    padding: 124px 0 48px;
  }

  .school-readiness-hero::before {
    right: -130px;
    top: 44px;
    width: min(78vw, 460px);
    opacity: 0.2;
  }

  .school-readiness-hero-wrap,
  .school-readiness-prep-wrap,
  .school-readiness-benefits-wrap {
    padding-inline: 14px;
  }

  .school-readiness-hero-wrap {
    gap: 20px;
  }

  .school-readiness-hero-kicker {
    font-size: clamp(1.5rem, 9vw, 2.1rem);
  }

  .school-readiness-hero-copy h1 {
    margin-top: 8px;
    font-size: clamp(1.85rem, 11vw, 2.5rem);
    line-height: 1.1;
  }

  .school-readiness-hero-copy p {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .school-readiness-hero-actions {
    margin-top: 16px;
  }

  .school-readiness-hero-actions .element-button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .school-readiness-image-stage {
    width: min(92vw, 340px);
    padding: 10px;
  }

  .school-readiness-image-stage img {
    border-width: 4px;
  }

  .school-readiness-prep {
    padding: 36px 0 44px;
  }

  .school-readiness-prep-kicker,
  .school-readiness-benefits-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .school-readiness-prep h2 {
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 9.4vw, 2.2rem);
    line-height: 1.15;
  }

  .school-readiness-prep-title {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    padding: 8px 10px;
    gap: 8px;
  }

  .school-readiness-prep-card {
    border-radius: 16px;
    padding: 12px 10px;
  }

  .school-readiness-prep-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .school-readiness-prep-card h3 {
    font-size: clamp(1.35rem, 6.1vw, 1.85rem);
    line-height: 1.12;
  }

  .school-readiness-prep-card p {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .school-readiness-prep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .school-readiness-benefits {
    padding: 36px 0 44px;
  }

  .school-readiness-benefits-heading {
    margin-bottom: 20px;
  }

  .school-readiness-benefits h2 {
    font-size: clamp(1.6rem, 9.1vw, 2.2rem);
    line-height: 1.14;
  }

  .school-readiness-benefits-badge {
    margin-top: 8px;
    font-size: clamp(1.2rem, 6.3vw, 1.65rem);
    padding: 8px 12px;
    border-radius: 14px;
  }

  .school-readiness-benefits-badge::before {
    border-radius: 14px;
  }

  .school-readiness-benefit-card {
    border-radius: 16px;
    padding: 12px 10px;
  }

  .school-readiness-benefit-icon {
    width: 46px;
    height: 46px;
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .school-readiness-benefit-card h3 {
    font-size: clamp(1.3rem, 5.9vw, 1.8rem);
    line-height: 1.14;
  }

  .school-readiness-benefit-card p,
  .school-readiness-benefits-summary p {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .school-readiness-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .school-readiness-benefits-grid .school-readiness-benefit-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    aspect-ratio: 5 / 4;
  }

  .school-readiness-benefits-summary {
    margin-top: 18px;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .school-readiness-benefits-summary p + p {
    margin-top: 10px;
  }

  .school-readiness-benefits-gallery {
    margin-top: 18px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-readiness-glass-card {
    border-radius: 14px;
    padding: 6px;
  }

  .school-readiness-glass-card img {
    border-radius: 10px;
    aspect-ratio: 5 / 4;
  }

  html[lang="cy"] .school-readiness-hero-copy h1 {
    font-size: clamp(1.72rem, 10vw, 2.3rem);
  }

  html[lang="cy"] .school-readiness-prep-card h3,
  html[lang="cy"] .school-readiness-benefit-card h3 {
    font-size: clamp(1.2rem, 5.4vw, 1.6rem);
  }

  html[lang="cy"] .school-readiness-prep-card p,
  html[lang="cy"] .school-readiness-benefit-card p,
  html[lang="cy"] .school-readiness-benefits-summary p {
    font-size: 0.84rem;
    line-height: 1.36;
  }

  html[lang="cy"] .services-glance-links a,
  html[lang="cy"] .services-glance-tags li {
    font-size: 0.68rem;
  }

  html[lang="cy"] .services-site-card-title-pill {
    font-size: 0.84rem;
  }

  html[lang="cy"] .services-site-benefit-cards li {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  html[lang="cy"] .services-faq .element-faq-item summary {
    font-size: 0.9rem;
  }

  #services-at-a-glance,
  #cwmdu-services,
  #tan-y-lan-services,
  #services-faqs,
  #cwmdu-parent-info,
  #cwmdu-availability,
  #cwmdu-funding,
  #cwmdu-rates,
  #tan-parent-info,
  #tan-availability,
  #tan-funding {
    scroll-margin-top: 126px;
  }

  /* --- INDEX PAGE: SECTION 1 (LOCATIONS) --- */
  .section1 {
    padding: 28px 18px;
    margin-top: 40px;
  }

  .element-locations-header.element-header h2 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    margin: 20px 0 8px;
  }

  .locations-title-badge {
    padding: 10px 22px;
  }

  .locations-title-underline {
    width: 240px;
    height: 24px;
    transform: translateX(18px);
  }

  .locations-title-subtitle {
    font-size: 1.1rem;
  }

  .locations-twin {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 14px auto 28px;
  }

  .location-twin-image iframe {
    height: 220px;
  }

  .location-tag {
    font-size: 0.85rem;
    padding: 5px 12px;
  }

  .location-twin-body {
    padding: 16px 18px 20px;
  }

  .location-twin-body h3 {
    font-size: 1.45rem;
  }

  .location-icon-row {
    gap: 8px 12px;
    font-size: 0.85rem;
  }

  .location-card-footer {
    flex-direction: column;
    align-items: stretch;
    margin: -12px 12px 0;
    gap: 12px;
  }

  .location-directions-card {
    width: fit-content;
    max-width: 100%;
    align-self: center;
    transform: none;
  }

  .location-directions-card .element-button {
    width: auto;
    justify-content: center;
  }

  .location-polaroid {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    transform: none;
  }

  .location-polaroid img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .location-hover-card {
    padding: 18px 18px 52px;
  }

  .location-hover-card p {
    font-size: 1rem;
  }

  .location-more-link {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }

  .element-card-setA {
    padding: 30px 6px;
  }

  .element-card-setA .layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .element-card-setA .element-card-light {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .element-card-setA .element-card-light:nth-child(2),
  .element-card-setA .element-card-light:nth-child(4) {
    transform: none;
  }

  .element-card-setA .element-card-light:hover {
    transform: none;
  }

  .element-card-setA .card-feature {
    gap: 8px;
  }

  .element-card-setA .card-feature-icon {
    width: 70px;
    height: 70px;
    padding: 0;
  }

  .element-card-setA .icon-playful {
    width: 64px;
    height: 64px;
  }

  .element-card-setA .card-feature-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .element-card-setA .card-feature-body h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.2;
    text-align: center;
  }

  .element-card-setA.feature-collapsible .layout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  .element-card-setA.feature-collapsible .element-card-light {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .element-card-setA.feature-collapsible .element-card-light.is-expanded {
    grid-column: 1 / -1;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .element-card-setA.feature-collapsible .element-card-light:not(.is-expanded) {
    padding: 8px 6px;
    border-radius: 12px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature {
    gap: 8px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-icon {
    width: 70px;
    height: 70px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .icon-playful {
    width: 64px;
    height: 64px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-body
    h3 {
    font-size: 1.12rem;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature {
    gap: 4px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature-icon {
    width: 44px;
    height: 44px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .icon-playful {
    width: 40px;
    height: 40px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature-body
    h3 {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .element-card-setA.feature-collapsible .card-feature-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 75, 59, 0.28);
    background: rgba(255, 255, 255, 0.9);
    color: #2d4b3b;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    min-height: 28px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature-toggle {
    font-size: 0.68rem;
    padding: 4px 8px;
    min-height: 24px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-toggle {
    display: none;
  }

  .element-card-setA.feature-collapsible .card-feature-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    width: 100%;
    text-align: left;
    transition:
      max-height 0.24s ease,
      opacity 0.2s ease;
  }

  .element-card-setA.feature-collapsible .card-feature-details p {
    margin: 0 0 7px;
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .element-card-setA.feature-collapsible .card-feature-details p:last-child {
    margin-bottom: 0;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-details {
    max-height: 640px;
    opacity: 1;
  }

  /* --- CONTACT PAGES (EN + CY): SECTION 1 + SECTION 2 ---
     Scoped to .contact-page so these mobile rules do not affect non-contact templates. */
  .contact-page .section1 .element-contact-information {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-page .section1 .element-contact-information-location,
  .contact-page .section1 .element-contact-information-inputForm {
    width: 100%;
    min-width: 0;
  }

  .contact-page .section1 .location-card-wrap {
    margin: 0;
  }

  .contact-page .section1 .location-card-main {
    border-radius: 16px;
    /* Clip map/image corners so embedded content follows card rounding. */
    overflow: hidden;
  }

  .contact-page .section1 .location-twin-image iframe {
    height: 220px;
  }

  .contact-page .section1 .location-twin-body {
    padding: 14px 14px 16px;
  }

  .contact-page .section1 .location-twin-body h3 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .contact-page .section1 .location-twin-body p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .contact-page .section1 .location-card-footer {
    margin: 10px 0 0;
    align-items: stretch;
  }

  .contact-page .section1 .location-directions-card .element-button {
    width: 100%;
    justify-content: center;
  }

  .contact-page .element-enquiry-form {
    max-width: 100%;
    padding: 18px 14px;
    border-radius: 12px;
  }

  .contact-page .element-enquiry-form h2 {
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .contact-page .element-enquiry-form .form-row {
    margin-bottom: 12px;
  }

  .contact-page .element-enquiry-form input,
  .contact-page .element-enquiry-form select {
    /* Larger touch targets improve usability on smaller devices. */
    min-height: 42px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .contact-page .element-enquiry-form .form-consent {
    gap: 8px;
  }

  .contact-page .element-enquiry-form .form-consent label {
    font-size: 13px;
    line-height: 1.4;
  }

  .contact-page .element-enquiry-form button {
    min-height: 44px;
    font-size: 15px;
  }

  .contact-page .section2 .element-faq {
    max-width: 100%;
  }

  .contact-page .section2 .element-faq > p {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .contact-page .section2 .element-faq h2 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  .contact-page .section2 .element-faq-intro {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .contact-page .section2 .faq-quickfacts {
    gap: 8px;
    margin-bottom: 16px;
  }

  .contact-page .section2 .faq-chip {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .contact-page .section2 .element-faq-item {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
  }

  .contact-page .section2 .element-faq-item summary {
    gap: 10px;
    font-size: clamp(1rem, 4.8vw, 1.2rem);
  }

  .contact-page .section2 .element-faq-item summary::after {
    margin-top: 0;
    font-size: 22px;
  }

  .contact-page .section2 .faq-answer {
    margin-top: 8px;
  }

  .contact-page .section2 .faq-answer p {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .contact-page .section2 .faq-cta {
    margin-top: 16px;
    padding: 14px;
  }

  .contact-page .section2 .faq-cta p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  html[lang="cy"] .contact-page .section2 .element-faq h2 {
    /* Slightly smaller scale for longer Welsh headings on compact screens. */
    font-size: clamp(1.55rem, 6.6vw, 1.95rem);
  }

  html[lang="cy"] .contact-page .section2 .element-faq-item summary {
    font-size: clamp(0.95rem, 4.4vw, 1.08rem);
  }

  .card-feature {
    gap: 10px;
  }

  .card-feature-body h3 {
    font-size: 1.4rem;
  }

  .card-feature-body p {
    font-size: 1rem;
  }

  /* --- INDEX PAGE: SECTION 2 --- */
  .section2 {
    padding: 34px 12px 42px;
  }

  .section2-inner {
    gap: 20px;
    padding: 0 4px;
  }

  .section2-kicker {
    align-self: center;
    margin-left: 0;
    padding: 8px 16px;
    font-size: 1.05rem;
    line-height: 1;
  }

  .section2-kicker::after {
    right: -9px;
    top: -6px;
    font-size: 0.68rem;
  }

  .section2-overview {
    grid-template-columns: 1fr;
    grid-template-areas:
      "features"
      "copy";
    gap: 18px;
  }

  .section2-overview-copy {
    gap: 16px;
  }

  .section2-intro h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    margin: 4px 0 8px;
    text-align: center;
  }

  .section2-intro p {
    font-size: 0.96rem;
    line-height: 1.55;
    text-align: center;
  }

  .section2-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section2-feature {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .section2-feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .section2-feature h3 {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .section2-feature p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section2-proof {
    gap: 18px;
  }

  .review-summary-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .section2-proof-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .section2-proof-kicker {
    font-size: 0.68rem;
    margin-bottom: 10px;
  }

  .section2-proof-card h3,
  .section2-reviews-intro h3 {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
    margin-bottom: 10px;
  }

  .section2-proof-card p,
  .section2-reviews-intro p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .section2-reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section2-video-row {
    justify-content: stretch;
  }

  .section2-video-card {
    padding: 10px 0 0;
    width: 100%;
  }

  .section2-video-frame {
    padding: 12px;
    gap: 12px;
    border-radius: 22px;
  }

  .section2-video-header {
    gap: 7px;
  }

  .section2-video-chip {
    font-size: 0.58rem;
    padding: 6px 9px;
    letter-spacing: 0.03em;
  }

  .section2-video-stage {
    padding: 14px 8px 34px;
    border-radius: 22px;
  }

  .section2-video-topper {
    gap: 6px;
    padding: 14px 10px 12px;
  }

  .section2-video-topper-line {
    max-width: 44px;
  }

  .section2-video-topper-sprig {
    width: 22px;
    height: 14px;
  }

  .section2-video-screen {
    aspect-ratio: 1 / 1.1;
    border-width: 6px;
    border-radius: 22px;
  }

  .section2-video-caption {
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .section2-video-caption p {
    font-size: 0.9rem;
  }

  .section2-video-caption span {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .section2-video-sun {
    width: 58px;
    height: 58px;
    left: 10px;
  }

  .section2-video-leaf {
    width: 28px;
    height: 68px;
  }

  .section2-video-leaf-left {
    left: -2px;
    bottom: 64px;
  }

  .section2-video-leaf-right {
    right: 0;
    bottom: 74px;
  }

  .section2-reviews {
    gap: 12px;
  }

  .section2-reviews-intro {
    padding: 0 2px;
  }

  .review-panel {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .review-summary {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .review-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .review-score-number {
    font-size: 2rem;
  }

  .review-count {
    font-size: 0.78rem;
  }

  .review-quote {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .review-quote p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .review-name {
    font-size: 0.82rem;
  }

  .section2-action {
    gap: 10px;
    padding-top: 0;
  }

  .section2-action-text {
    font-size: 0.96rem;
  }

  .section2-action .cta-split,
  .testimonials-story .testimonials-cta {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-story .testimonials-cta .cta-label {
    font-size: 15px;
    height: 36px;
    max-width: none;
    padding: 0 11px;
    line-height: 1;
  }

  .testimonials-story .testimonials-cta .cta-toggle {
    width: 33px;
    height: 36px;
    padding: 0 6px;
  }

  .testimonials-story .testimonials-cta .cta-toggle i {
    font-size: 12px;
    line-height: 1;
  }

  /* --- INDEX PAGE: SECTION 3 --- */
  .section3 {
    padding: 18px 14px;
  }

  .section3-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section3 .element-text-header {
    max-width: 100%;
    text-align: center;
  }

  .section3-hours {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .hours-card p {
    white-space: normal;
  }

  .section3 .layout-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section3 .element-card-setB {
    padding: 0;
  }

  .section3 .element-card-setB .element-card-light .utility-inline-flex {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .section3 .element-card-setB .card-icon-svg {
    align-self: center;
    margin-right: 0;
  }

  .section3 .element-card-setB h3 {
    font-size: 1.45rem;
    margin: 0;
    text-align: left;
  }

  .section3 .element-card-setB p {
    font-size: 0.98rem;
    text-align: left;
  }

  /* --- INDEX PAGE: SECTION 4 --- */
  .section4 {
    padding: 36px 16px 50px;
  }

  .section4-cards {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .facility-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .section4-title-blocks .title-main {
    font-size: 4rem;
  }

  .section4-title-blocks .title-blocks {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .section4-title-blocks .title-blocks span {
    width: clamp(26px, 7.2vw, 32px);
    height: clamp(34px, 9vw, 40px);
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
    padding: 0 2px;
  }

  .facility-card-body h3 {
    font-size: 2.625rem;
  }

  .facility-card-body h4 {
    font-size: 1.725rem;
    text-shadow: none;
  }

  .facility-media {
    padding: 12px;
  }

  .facility-media-inline {
    margin: 8px 0 80px;
  }

  .photo-carousel {
    grid-template-columns: 1fr;
  }

  .photo-carousel-btn {
    display: none;
  }

  .photo-carousel-hint {
    display: inline-flex;
  }

  .photo-carousel-track {
    grid-auto-columns: minmax(220px, 80vw);
    gap: 14px;
    padding: 10px 12%;
    scroll-padding-inline: 12%;
  }

  .photo-card img {
    height: 180px;
  }

  .facility-highlights {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 6px;
    padding: 10px 8px;
    align-items: start;
  }

  .facility-highlights .facility-highlight:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: clamp(170px, 62%, 220px);
  }

  .facility-highlight {
    padding: 20px 12px;
    min-height: 128px;
    gap: 6px;
    -webkit-mask-size: 100%;
    mask-size: 100%;
  }

  .facility-highlight .highlight-title {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .facility-highlight .highlight-text {
    margin-top: 0;
    font-size: 0.74rem;
    line-height: 1.28;
  }

  /* --- INDEX PAGE: SECTION 5 (TESTIMONIALS) --- */
  .testimonials-section {
    padding: 50px 16px;
    overflow-x: hidden;
  }

  .testimonials-kicker {
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    margin-bottom: 14px;
    padding: 10px 20px;
    letter-spacing: 0.12em;
    max-width: 100%;
    line-height: 1.1;
  }

  .kicker-text {
    gap: 8px;
  }

  .testimonials-kicker svg {
    width: 42px;
    height: 42px;
  }

  .kicker-tab {
    top: -10px;
    width: 70px;
    height: 22px;
  }

  .testimonials-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .testimonials-story {
    padding: 22px;
  }

  .testimonials-story h2 {
    font-size: 2rem;
  }

  .testimonials-title {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    max-width: 100%;
  }

  .video-filmstrip {
    padding: 12px 12px 20px;
    margin-bottom: 20px;
    overflow: hidden;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .filmstrip-track {
    grid-auto-columns: 156px;
    gap: 6px;
    padding: 6px 6px 12px;
  }

  .filmstrip-card {
    width: 156px;
    max-width: 156px;
  }

  .filmstrip-card img {
    height: 140px;
  }

  .filmstrip-label {
    width: 150px;
    font-size: 0.7rem;
  }

  /* --- INDEX PAGE: SECTION 6 (TRUST RIBBON) --- */
  .trust-ribbon {
    padding: 20px 18px;
  }

  .trust-logo-card {
    padding: 18px 20px;
    border-radius: 14px;
  }

  .trust-logo-card img {
    height: 79px;
    width: 121px;
    object-fit: contain;
  }

  .trust-logos-track {
    gap: 12px;
  }

  /* --- CWMDU ABOUT PAGE: SECTION 6 (TRUST RIBBON) --- */
  .location-trust-ribbon {
    padding: 20px 18px;
  }

  .location-trust-logo-card {
    padding: 18px 20px;
    border-radius: 14px;
  }

  .location-trust-logo-card img {
    height: 79px;
    width: 121px;
    object-fit: contain;
  }

  .location-trust-logos-track {
    gap: 12px;
  }

  /* --- CWMDU ABOUT PAGE: HERO + CONTENT SECTIONS --- */
  .location-hero {
    padding: 48px 18px 24px;
  }

  .location-hero-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .location-hero-anniversary {
    padding: 14px 16px;
  }

  .location-hero-anniversary-media {
    flex-wrap: nowrap;
  }

  .location-hero-anniversary-img {
    width: clamp(120px, 42vw, 150px);
  }

  .location-hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-overview {
    grid-template-columns: 1fr;
    padding: 40px 18px;
  }

  .location-overview-media::before {
    inset: -10%;
    background-size: 80%;
    opacity: 0.5;
  }

  .location-overview-content h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .location-care {
    gap: 20px;
    padding: 20px 0 40px;
  }

  .location-care-panel {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .location-care-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location-care-rooms-media,
  .location-clubs-grid {
    grid-template-columns: 1fr;
  }

  .location-expectations-media {
    grid-template-columns: 1fr;
  }

  .location-facilities {
    padding: 52px 18px;
  }

  .location-facilities-highlights {
    grid-template-columns: 1fr;
  }

  .location-facilities-video-title {
    left: 16px;
    bottom: 16px;
    font-size: 0.72rem;
  }

  .location-hero-badge {
    top: 14px;
    left: 14px;
    padding: 12px 14px;
  }

  .location-hero-highlights {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* --- GLOBAL: FOOTER --- */
  .footer-inner {
    padding: 40px 24px 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-brand-inner img {
    width: 90px;
  }

  .footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .footer-brand-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .footer-brand-copy .brand-name {
    font-size: 1.65rem;
    line-height: 1.05;
  }

  .footer-brand-copy .brand-tagline {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-col a {
    margin-bottom: 8px;
  }

  .footer-subsection {
    margin: 6px 0 10px;
  }

  /* --- MEET THE TEAM PAGE: HERO --- */
  .team-hero {
    overflow-x: hidden;
    grid-template-columns: 1fr;
    row-gap: 16px;
    column-gap: 0;
    padding: 40px 14px 26px;
  }

  .team-hero-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.15;
    white-space: normal;
  }

  html[lang="cy"] .team-hero-title {
    font-size: clamp(1.35rem, 6.1vw, 1.85rem);
    line-height: 1.2;
  }

  .team-hero-title-cutout {
    display: inline;
    padding: 4px 6px 5px 8px;
  }

  .team-hero-highlight {
    padding: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .team-hero-highlight::before {
    content: none;
  }

  .team-hero-highlight::after {
    bottom: 0.08em;
  }

  .team-hero-content {
    font-size: 0.96rem;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .team-hero-body {
    display: grid;
    gap: 12px;
  }

  .team-hero-tag {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    width: fit-content;
    max-width: 100%;
  }

  .team-hero-media {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
  }

  .team-hero-media img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 18px;
  }

  .team-hero-media::before {
    inset: 8px;
    border-radius: 18px;
  }

  .team-hero-ig {
    width: calc(100% - 30px);
    bottom: 10px;
    font-size: 0.57rem;
    padding: 6px 10px;
    line-height: 1.15;
  }

  .team-hero-highlights {
    order: 2;
    gap: 8px;
    margin-top: 0;
  }

  .team-hero-pill {
    font-size: 0.72rem;
    padding: 6px 9px;
    line-height: 1.2;
  }

  .team-hero-uls {
    height: 44px;
    margin-top: 4px;
  }

  .team-hero-uls::after {
    height: 6px;
    width: calc(100% - 58px);
  }

  .team-hero-uls::before {
    width: 34px;
    height: 34px;
  }

  /* --- MEET THE TEAM PAGE: STAFF MATRIX --- */
  .staff-matrix {
    padding: 32px 16px 48px;
    overflow-x: clip;
  }

  .staff-matrix-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
    transform: none;
    overflow-x: clip;
  }

  .staff-matrix-row > .staff-matrix-group {
    min-width: 0;
    overflow-x: clip;
  }

  .staff-matrix-row .ri-tabletFrame {
    max-width: 100%;
    height: auto;
    margin: 0;
    min-width: 0;
  }

  .staff-matrix h2 {
    margin-bottom: 18px;
    padding-left: 12px;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .staff-matrix h2::after {
    bottom: -8px;
  }

  .staff-matrix-group .ri-tabletFrame {
    max-width: 100%;
    max-height: none;
    padding: 24px 14px 14px;
    border-radius: 24px;
    margin: 0 auto;
    min-width: 0;
    overflow-x: clip;
  }

  .staff-matrix-group .ri-tabletFrame-title > h3 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    margin-bottom: 16px;
  }

  .staff-matrix-group .ri-tabletFrame-track {
    gap: 10px;
    padding-bottom: 2px;
    scroll-snap-type: none;
    min-width: 0;
    width: 100%;
  }

  .staff-matrix-group .ri-tabletFrame-track > .staff-card {
    flex: 0 0 min(76vw, 250px);
    min-width: min(76vw, 250px);
    max-height: 400px;
    padding: 12px;
  }

  .staff-matrix-group .ri-card-title {
    font-size: clamp(1.1rem, 4.2vw, 1.35rem);
    margin: 2px 0 14px;
  }

  .staff-matrix-group .ri-card-title--single-line {
    font-size: clamp(0.85rem, 3.8vw, 1.1rem);
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
  }

  .staff-matrix-group .ri-tabletFrame-track > .staff-card h4,
  .staff-matrix-group .ri-overlay-content .staff-card h4 {
    margin: 6px 0;
    font-size: 0.86rem;
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
    align-items: flex-start;
  }

  .staff-matrix-group .ri-tabletFrame-track .staff-photo {
    /* Expand image to card edges while keeping internal text padding below. */
    width: calc(100% + 24px);
    max-width: none;
    margin: -12px -12px 10px;
    border-radius: 14px 14px 0 0;
    height: 132px;
    object-fit: cover;
  }

  .staff-matrix-group .ri-tabletFrame-track .staff-name {
    font-size: 0.96rem;
  }

  .staff-matrix-group .ri-tabletFrame-track .staff-card p:not(.staff-name) {
    height: 58px;
    font-size: 0.88rem;
    line-height: 1.32;
  }

  .staff-matrix-group .ri-uls {
    height: 50px;
    margin-top: 8px;
    padding: 0 6px;
  }

  .staff-matrix-group .ri-uls::after {
    height: 6px;
    width: calc(100% - 68px);
    left: 6px;
  }

  .staff-matrix-group .ri-uls::before {
    width: 36px;
    height: 36px;
    right: 6px;
  }

  .staff-matrix-group .ri-overlay {
    inset: 10px;
    padding: 32px 20px 20px;
    border-radius: 20px;
  }

  .staff-matrix-group .ri-overlay-close {
    top: 10px;
    right: 12px;
  }

  .staff-matrix-group .ri-overlay-content .staff-photo {
    height: 240px;
  }

  .staff-matrix-group .ri-overlay-content .staff-card {
    padding: 14px;
  }

  /* --- STAFF MATRIX SUBSECTION: GROUP RI MOBILE 2x2 GRID (NO CAROUSEL) --- */
  .staff-matrix-group.group-ri .ri-tabletFrame {
    padding: 20px 12px 16px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    /* Let cards render naturally in grid without horizontal clipping behavior. */
    overflow: visible;
    padding: 0;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track > .staff-card {
    width: 100%;
    min-width: 0;
    min-height: 280px;
    max-height: none;
    padding: 10px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track .staff-photo {
    /* Match desktop card style: photo runs edge-to-edge across card top. */
    width: calc(100% + 20px);
    margin: -10px -10px 8px;
    height: 122px;
    border-radius: 12px 12px 0 0;
  }

  .staff-matrix-group.group-ri .ri-card-title {
    font-size: 0.72rem;
    margin: 0 0 8px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track > .staff-card h4 {
    font-size: 0.67rem;
    margin: 4px 0;
    padding: 3px 8px 3px 10px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track .staff-name {
    font-size: 0.82rem;
  }

  .staff-matrix-group.group-ri
    .ri-tabletFrame-track
    .staff-card
    p:not(.staff-name) {
    height: 64px;
    padding-right: 16px;
    /* Fixed excerpt height keeps all cards aligned in the 2-column grid. */
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .staff-matrix-group.group-ri
    .ri-tabletFrame-track
    .staff-card
    p:not(.staff-name)::after {
    /* Visual "..." fade to indicate clipped text without relying on JS truncation. */
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 45%);
  }

  .staff-matrix-group.group-ri .staff-read-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .staff-matrix-group.group-ri .ri-uls {
    display: none;
  }

  .careers-shell::before {
    width: 220px;
    height: 220px;
    top: 120px;
    right: -80px;
  }

  .careers-hero {
    padding-top: 28px;
  }

  .careers-hero p,
  .careers-join-copy p,
  .careers-callout p,
  .careers-process-copy p {
    font-size: 1.12rem;
  }

  .careers-values-grid,
  .careers-values-list {
    grid-template-columns: 1fr;
  }

  .careers-development-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .careers-development-card {
    min-height: 0;
  }

  .careers-development-intro,
  .careers-work-benefits-intro,
  .careers-values-intro {
    font-size: 1.08rem;
  }

  .careers-work-benefits-grid {
    grid-template-columns: 1fr;
  }

  .careers-value-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .careers-value-badge {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .careers-value-item h3 {
    font-size: clamp(2.2rem, 11vw, 3rem);
    line-height: 0.9;
  }

  .careers-values-section .layout-container {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 18px;
    padding-right: 18px;
  }

  .careers-apply-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .careers-process-step {
    grid-template-columns: 1fr;
  }
}

@media all and (min-width: 391px) and (max-width: 510px) {
  .floating-pack-menu {
    right: 10px;
    bottom: 10px;
  }

  .floating-pack-flip {
    width: 104px;
    height: 104px;
  }

  .floating-pack-face-front::after {
    left: 7px;
    right: 7px;
    bottom: 7px;
    padding: 4px 7px;
    font-size: 0.6rem;
    text-align: center;
  }

  .floating-pack-face-back {
    font-size: 0.84rem;
    padding: 8px;
  }

  /* --- INDEX PAGE: HEADER --- */
  /* Keep the top bar on one line at very small widths. Text can shrink and clip, actions stay visible. */
  .header-topbar-inner {
    max-width: 100%;
    width: 100%;
    font-size: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }

  .header-trust {
    /* Required for flex children so ellipsis can actually activate instead of forcing overflow. */
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .header-topbar-actions {
    /* Prevent language toggle/actions from shrinking off-screen. */
    margin-left: 0;
    flex: 0 0 auto;
  }

  .header-lang {
    /* Compact language switch so Welsh/English labels fit within narrow screens. */
    margin-left: 0;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.1;
  }
  .header-main-inner {
    max-width: 100%;
    width: 100%;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
  }

  .header-brand {
    gap: 10px;
  }

  .header-brand img {
    width: 56px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .nav-primary {
    display: none;
  }

  .header-actions {
    justify-self: end;
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta-label {
    font-size: 12px;
    min-width: 88px;
    height: 24px;
    padding: 0 10px;
    line-height: 1.1;
  }

  .cta-toggle {
    height: 24px;
    width: 24px;
  }

  .cta-split .cta-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: min(86vw, 260px);
  }

  .testimonials-cta .cta-menu {
    right: 0;
  }

  .nav-drawer {
    padding: 12px 14px 18px;
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-drawer .nav-list {
    gap: 6px;
  }

  .nav-drawer a,
  .nav-drawer .nav-toggle-btn {
    font-size: clamp(1rem, 4.6vw, 1.2rem);
    padding: 8px 10px;
    border-radius: 10px;
  }

  .nav-drawer .submenu {
    margin-top: 4px;
    border-radius: 10px;
  }

  .nav-drawer .submenu li a,
  .nav-drawer .submenu .nav-toggle-btn {
    font-size: clamp(0.95rem, 4.2vw, 1.05rem);
    padding: 8px 10px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  /* --- INDEX PAGE: HERO --- */
  .section-hero {
    padding: 90px 16px 30px;
  }

  .hero-wrap {
    gap: 22px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-anniversary-row {
    justify-content: center;
  }

  .hero-anniversary-seal {
    width: 88px;
    height: 88px;
    font-size: 0.8rem;
  }

  .hero-anniversary-ribbon {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .hero-media-main {
    width: 100%;
    max-width: 567px;
    padding: 10px 10px 36px;
  }

  .hero-foil-stamp {
    top: 12px;
    right: 12px;
    font-size: 0.6rem;
    padding: 8px 12px;
  }

  .hero-polaroids {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
  }

  .hero-polaroid {
    transform: rotate(-2deg);
  }

  .hero-polaroid:nth-child(2) {
    transform: rotate(3deg);
    margin-left: 0;
  }

  .hero-polaroid img {
    width: 173px;
    height: 130px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 140px;
  }

  .hero-strip-hint {
    top: -22px;
    font-size: 0.7rem;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
  }

  .hero-strip-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .hero-strip-btn {
    display: none;
  }

  .hero-strip-item {
    width: clamp(188px, 55vw, 250px);
  }

  .hero-accent-1 {
    width: clamp(90px, 30vw, 140px);
    opacity: 0.3;
    top: 12px;
    left: -10px;
  }

  /* --- SERVICES PAGE: HERO --- */
  .services-hero-section {
    padding-block: 10px 22px;
  }

  .services-hero-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-hero-copy {
    margin: 0;
    padding: 16px 14px 14px;
  }

  .services-hero-copy h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
    line-height: 1.08;
  }

  .services-hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .services-hero-lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .services-hero-points {
    margin-top: 12px;
    gap: 7px;
  }

  .services-hero-points li {
    font-size: 0.74rem;
    padding: 7px 10px;
  }

  .services-hero-jump {
    gap: 7px;
    margin-top: 12px;
  }

  .services-hero-jump a {
    font-size: 0.66rem;
    padding: 6px 10px;
  }

  .services-hero-media {
    margin: 0;
    padding: 12px 12px 10px;
    border-radius: 22px 16px 18px 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .services-hero-media::before {
    inset: 8px 8px 38px 8px;
    border-radius: 26px 18px 22px 18px;
  }

  .services-hero-image {
    aspect-ratio: 16 / 11;
  }

  .services-hero-media figcaption {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.64rem;
    padding: 6px 10px;
  }

  /* --- FUNDING PAGE: HERO --- */
  .funding-hero-section {
    padding-block: 10px 22px;
  }

  .funding-hero-shell {
    width: min(1240px, calc(100% - 28px));
  }

  .funding-hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .funding-hero-layout > article {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .funding-hero-layout h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.5rem);
    line-height: 1.08;
  }

  .funding-hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .funding-hero-lead,
  .funding-hero-info p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .funding-hero-info h2 {
    font-size: 1.2rem;
    line-height: 1.22;
  }

  .funding-hero-info h3 {
    font-size: 0.94rem;
  }

  .funding-hero-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .funding-hero-image {
    min-height: 88px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .funding-hero-image img {
    max-height: 54px;
  }

  .funding-hero-uls {
    height: 44px;
    margin-top: 8px;
  }

  .funding-hero-uls::after {
    height: 6px;
    width: calc(100% - 56px);
  }

  .funding-hero-uls::before {
    width: 34px;
    height: 34px;
  }

  /* --- FUNDING PAGE: 30 HOURS SECTION --- */
  .funding-30-card {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .funding-30-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .funding-30-card h2 {
    font-size: clamp(1.45rem, 7.2vw, 2.05rem);
    line-height: 1.14;
  }

  .funding-30-card > p,
  .funding-30-site ul,
  .funding-30-points li {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .funding-30-card h3 {
    font-size: 1.08rem;
    margin-top: 14px;
  }

  .funding-30-sites {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .funding-30-site {
    border-radius: 12px;
    padding: 11px;
  }

  /* --- FUNDING PAGE: WHY SECTION --- */
  .funding-why-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .funding-why-media,
  .funding-why-content {
    border-radius: 18px;
  }

  .funding-why-media img {
    min-height: 260px;
  }

  .funding-why-content {
    padding: 16px 14px;
  }

  .funding-why-content h2 {
    font-size: clamp(1.6rem, 8.1vw, 2.5rem);
    line-height: 1.08;
  }

  .funding-why-content p,
  .funding-why-points li {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .funding-why-content h3 {
    font-size: 1.08rem;
    margin-top: 14px;
  }

  .funding-why-points {
    gap: 8px;
  }

  /* --- FUNDING PAGE: CTA SECTION --- */
  .funding-cta-card {
    border-radius: 16px;
    padding: 16px 14px;
  }

  .funding-cta-card h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .funding-cta-card p {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .funding-cta-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .funding-cta-actions .element-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.78rem;
    padding-inline: 8px;
  }

  .services-glance {
    gap: 12px;
  }

  .services-glance-title span {
    min-height: 48px;
    padding: 9px 18px;
    font-size: clamp(1.15rem, 6.2vw, 1.45rem);
  }

  .services-glance-title span::before,
  .services-glance-title span::after {
    width: 12px;
    height: 12px;
    top: -6px;
  }

  .services-glance-title span::before {
    left: 12px;
  }

  .services-glance-title span::after {
    right: 12px;
  }

  .services-glance-intro {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .services-glance-subtitle {
    padding: 7px 11px 8px;
  }

  .services-glance-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-glance-card {
    padding: 14px;
  }

  .services-glance-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 7px;
  }

  .services-glance-tags li,
  .services-glance-links a {
    font-size: 0.72rem;
  }

  .services-glance-timeline {
    padding: 10px;
  }

  .services-glance-timeline p {
    font-size: 0.7rem;
  }

  .services-glance-timeline ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-glance-timeline li {
    font-size: 0.72rem;
  }

  .services-glance-availability {
    padding: 14px;
  }

  .services-glance-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .services-glance-actions .element-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.78rem;
    padding-inline: 8px;
  }

  .services-enquire-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .services-enquire-actions .element-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.78rem;
    padding-inline: 8px;
  }

  .services-site-head {
    gap: 6px;
    margin-bottom: 12px;
  }

  .services-site-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .services-site-head h2 {
    font-size: clamp(1.45rem, 7.6vw, 2.05rem);
  }

  .services-site-subtitle {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .services-site-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-site-card--parent,
  .services-site-photo,
  .services-site-card--benefits,
  #cwmdu-availability,
  #cwmdu-funding,
  #cwmdu-rates,
  #tan-availability,
  #tan-funding {
    grid-column: 1;
    grid-row: auto;
  }

  .services-site-age-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-site-card--benefits ul.services-site-benefit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #benefit-card-8,
  #tan-benefit-card-8 {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
    aspect-ratio: auto;
  }

  .services-site-benefit-cards li {
    padding: 10px 11px;
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .services-site-benefit-cards li i {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .services-site-carousel {
    padding: 0;
  }

  .services-site-carousel-stage {
    aspect-ratio: 16 / 11;
    min-height: 0;
    height: auto;
  }

  .services-site-carousel-caption {
    left: 8px;
    bottom: 8px;
    max-width: min(90%, calc(100% - 16px));
    font-size: 0.64rem;
    padding: 5px 8px;
  }

  .services-site-funding-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-site-funding-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .services-site-funding-logos img {
    max-height: 84px;
    padding: 8px 10px;
  }

  .services-site-rhythm {
    gap: 7px;
  }

  .services-site-rhythm li {
    font-size: 0.72rem;
    padding: 6px 9px;
  }

  .services-site-mini-gallery {
    display: none;
  }

  .services-site-mini-card {
    aspect-ratio: 5 / 3.8;
  }

  .services-site-mini-card figcaption {
    font-size: 0.62rem;
    padding: 4px 7px;
  }

  .services-faq {
    padding: 14px;
    border-radius: 18px;
  }

  .services-faq .element-faq-item summary {
    padding: 12px 44px 12px 12px;
    font-size: 0.95rem;
  }

  .services-faq .faq-answer {
    padding: 0 12px 12px;
  }

  .services-faq .faq-quickfacts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-faq .faq-chip {
    transform: none;
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .services-faq .faq-cta {
    padding: 12px;
  }

  .services-faq .faq-cta > p:first-child {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .services-faq .faq-cta-site {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .services-faq .faq-cta-contact-line {
    font-size: 0.78rem;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .services-faq .faq-cta-sep,
  .services-faq .faq-cta-link-text {
    display: none;
  }

  .services-faq .faq-cta-link {
    text-decoration: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(47, 79, 63, 0.22);
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    padding: 0;
  }

  .services-faq .faq-cta-link i {
    font-size: 0.9rem;
  }

  /* --- SCHOOL READINESS (EN + CY) --- */
  .school-readiness-hero {
    padding: 124px 0 48px;
  }

  .school-readiness-hero::before {
    right: -130px;
    top: 44px;
    width: min(78vw, 460px);
    opacity: 0.2;
  }

  .school-readiness-hero-wrap,
  .school-readiness-prep-wrap,
  .school-readiness-benefits-wrap {
    padding-inline: 14px;
  }

  .school-readiness-hero-wrap {
    gap: 20px;
  }

  .school-readiness-hero-kicker {
    font-size: clamp(1.5rem, 9vw, 2.1rem);
  }

  .school-readiness-hero-copy h1 {
    margin-top: 8px;
    font-size: clamp(1.85rem, 11vw, 2.5rem);
    line-height: 1.1;
  }

  .school-readiness-hero-copy p {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .school-readiness-hero-actions {
    margin-top: 16px;
  }

  .school-readiness-hero-actions .element-button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .school-readiness-image-stage {
    width: min(92vw, 340px);
    padding: 10px;
  }

  .school-readiness-image-stage img {
    border-width: 4px;
  }

  .school-readiness-prep {
    padding: 36px 0 44px;
  }

  .school-readiness-prep-kicker,
  .school-readiness-benefits-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .school-readiness-prep h2 {
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 9.4vw, 2.2rem);
    line-height: 1.15;
  }

  .school-readiness-prep-title {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    padding: 8px 10px;
    gap: 8px;
  }

  .school-readiness-prep-card {
    border-radius: 16px;
    padding: 12px 10px;
  }

  .school-readiness-prep-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .school-readiness-prep-card h3 {
    font-size: clamp(1.35rem, 6.1vw, 1.85rem);
    line-height: 1.12;
  }

  .school-readiness-prep-card p {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .school-readiness-prep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .school-readiness-benefits {
    padding: 36px 0 44px;
  }

  .school-readiness-benefits-heading {
    margin-bottom: 20px;
  }

  .school-readiness-benefits h2 {
    font-size: clamp(1.6rem, 9.1vw, 2.2rem);
    line-height: 1.14;
  }

  .school-readiness-benefits-badge {
    margin-top: 8px;
    font-size: clamp(1.2rem, 6.3vw, 1.65rem);
    padding: 8px 12px;
    border-radius: 14px;
  }

  .school-readiness-benefits-badge::before {
    border-radius: 14px;
  }

  .school-readiness-benefit-card {
    border-radius: 16px;
    padding: 12px 10px;
  }

  .school-readiness-benefit-icon {
    width: 46px;
    height: 46px;
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .school-readiness-benefit-card h3 {
    font-size: clamp(1.3rem, 5.9vw, 1.8rem);
    line-height: 1.14;
  }

  .school-readiness-benefit-card p,
  .school-readiness-benefits-summary p {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .school-readiness-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .school-readiness-benefits-grid .school-readiness-benefit-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    aspect-ratio: 5 / 4;
  }

  .school-readiness-benefits-summary {
    margin-top: 18px;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .school-readiness-benefits-summary p + p {
    margin-top: 10px;
  }

  .school-readiness-benefits-gallery {
    margin-top: 18px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-readiness-glass-card {
    border-radius: 14px;
    padding: 6px;
  }

  .school-readiness-glass-card img {
    border-radius: 10px;
    aspect-ratio: 5 / 4;
  }

  html[lang="cy"] .school-readiness-hero-copy h1 {
    font-size: clamp(1.72rem, 10vw, 2.3rem);
  }

  html[lang="cy"] .school-readiness-prep-card h3,
  html[lang="cy"] .school-readiness-benefit-card h3 {
    font-size: clamp(1.2rem, 5.4vw, 1.6rem);
  }

  html[lang="cy"] .school-readiness-prep-card p,
  html[lang="cy"] .school-readiness-benefit-card p,
  html[lang="cy"] .school-readiness-benefits-summary p {
    font-size: 0.84rem;
    line-height: 1.36;
  }

  html[lang="cy"] .services-glance-links a,
  html[lang="cy"] .services-glance-tags li {
    font-size: 0.68rem;
  }

  html[lang="cy"] .services-site-card-title-pill {
    font-size: 0.84rem;
  }

  html[lang="cy"] .services-site-benefit-cards li {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  html[lang="cy"] .services-faq .element-faq-item summary {
    font-size: 0.9rem;
  }

  #services-at-a-glance,
  #cwmdu-services,
  #tan-y-lan-services,
  #services-faqs,
  #cwmdu-parent-info,
  #cwmdu-availability,
  #cwmdu-funding,
  #cwmdu-rates,
  #tan-parent-info,
  #tan-availability,
  #tan-funding {
    scroll-margin-top: 126px;
  }

  /* --- INDEX PAGE: SECTION 1 (LOCATIONS) --- */
  .section1 {
    padding: 28px 18px;
    margin-top: 40px;
  }

  .element-locations-header.element-header h2 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    margin: 20px 0 8px;
  }

  .locations-title-badge {
    padding: 10px 22px;
  }

  .locations-title-underline {
    width: 240px;
    height: 24px;
    transform: translateX(18px);
  }

  .locations-title-subtitle {
    font-size: 1.1rem;
  }

  .locations-twin {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 14px auto 28px;
  }

  .location-twin-image iframe {
    height: 220px;
  }

  .location-tag {
    font-size: 0.85rem;
    padding: 5px 12px;
  }

  .location-twin-body {
    padding: 16px 18px 20px;
  }

  .location-twin-body h3 {
    font-size: 1.45rem;
  }

  .location-icon-row {
    gap: 8px 12px;
    font-size: 0.85rem;
  }

  .location-card-footer {
    flex-direction: column;
    align-items: stretch;
    margin: -12px 12px 0;
    gap: 12px;
  }

  .location-directions-card {
    width: 100%;
    transform: none;
  }

  .location-directions-card .element-button {
    width: 100%;
    justify-content: center;
  }

  .location-polaroid {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    transform: none;
  }

  .location-polaroid img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .location-hover-card {
    padding: 18px 18px 52px;
  }

  .location-hover-card p {
    font-size: 1rem;
  }

  .location-more-link {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }

  .element-card-setA {
    padding: 30px 6px;
  }

  .element-card-setA .layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .element-card-setA .element-card-light {
    padding: 14px 12px;
    border-radius: 15px;
  }

  .element-card-setA .element-card-light:nth-child(2),
  .element-card-setA .element-card-light:nth-child(4) {
    transform: none;
  }

  .element-card-setA .element-card-light:hover {
    transform: none;
  }

  .element-card-setA .card-feature {
    gap: 10px;
  }

  .element-card-setA .card-feature-icon {
    width: 78px;
    height: 78px;
    padding: 0;
  }

  .element-card-setA .icon-playful {
    width: 70px;
    height: 70px;
  }

  .element-card-setA .card-feature-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }

  .element-card-setA .card-feature-body h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
    text-align: center;
  }

  .element-card-setA.feature-collapsible .layout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .element-card-setA.feature-collapsible .element-card-light {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .element-card-setA.feature-collapsible .element-card-light.is-expanded {
    grid-column: 1 / -1;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .element-card-setA.feature-collapsible .element-card-light:not(.is-expanded) {
    padding: 10px 8px;
    border-radius: 13px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature {
    gap: 10px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-icon {
    width: 78px;
    height: 78px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .icon-playful {
    width: 70px;
    height: 70px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-body
    h3 {
    font-size: 1.18rem;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature {
    gap: 5px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature-icon {
    width: 50px;
    height: 50px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .icon-playful {
    width: 46px;
    height: 46px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature-body
    h3 {
    font-size: 0.84rem;
    line-height: 1.15;
  }

  .element-card-setA.feature-collapsible .card-feature-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 75, 59, 0.28);
    background: rgba(255, 255, 255, 0.9);
    color: #2d4b3b;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    padding: 7px 12px;
    min-height: 30px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light:not(.is-expanded)
    .card-feature-toggle {
    font-size: 0.72rem;
    padding: 5px 9px;
    min-height: 25px;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-toggle {
    display: none;
  }

  .element-card-setA.feature-collapsible .card-feature-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    width: 100%;
    text-align: left;
    transition:
      max-height 0.24s ease,
      opacity 0.2s ease;
  }

  .element-card-setA.feature-collapsible .card-feature-details p {
    margin: 0 0 8px;
    font-size: 0.97rem;
    line-height: 1.4;
  }

  .element-card-setA.feature-collapsible .card-feature-details p:last-child {
    margin-bottom: 0;
  }

  .element-card-setA.feature-collapsible
    .element-card-light.is-expanded
    .card-feature-details {
    max-height: 700px;
    opacity: 1;
  }

  /* --- CONTACT PAGES (EN + CY): SECTION 1 + SECTION 2 ---
     Scoped to .contact-page so these mobile rules do not affect non-contact templates. */
  .contact-page .section1 .element-contact-information {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-page .section1 .element-contact-information-location,
  .contact-page .section1 .element-contact-information-inputForm {
    width: 100%;
    min-width: 0;
  }

  .contact-page .section1 .location-card-wrap {
    margin: 0;
  }

  .contact-page .section1 .location-card-main {
    border-radius: 16px;
    /* Clip map/image corners so embedded content follows card rounding. */
    overflow: hidden;
  }

  .contact-page .section1 .location-twin-image iframe {
    height: 220px;
  }

  .contact-page .section1 .location-twin-body {
    padding: 14px 14px 16px;
  }

  .contact-page .section1 .location-twin-body h3 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .contact-page .section1 .location-twin-body p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .contact-page .section1 .location-card-footer {
    margin: 10px 0 0;
    align-items: stretch;
  }

  .contact-page .section1 .location-directions-card .element-button {
    width: 100%;
    justify-content: center;
  }

  .contact-page .element-enquiry-form {
    max-width: 100%;
    padding: 18px 14px;
    border-radius: 12px;
  }

  .contact-page .element-enquiry-form h2 {
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .contact-page .element-enquiry-form .form-row {
    margin-bottom: 12px;
  }

  .contact-page .element-enquiry-form input,
  .contact-page .element-enquiry-form select {
    /* Larger touch targets improve usability on smaller devices. */
    min-height: 42px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .contact-page .element-enquiry-form .form-consent {
    gap: 8px;
  }

  .contact-page .element-enquiry-form .form-consent label {
    font-size: 13px;
    line-height: 1.4;
  }

  .contact-page .element-enquiry-form button {
    min-height: 44px;
    font-size: 15px;
  }

  .contact-page .section2 .element-faq {
    max-width: 100%;
  }

  .contact-page .section2 .element-faq > p {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .contact-page .section2 .element-faq h2 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  .contact-page .section2 .element-faq-intro {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .contact-page .section2 .faq-quickfacts {
    gap: 8px;
    margin-bottom: 16px;
  }

  .contact-page .section2 .faq-chip {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .contact-page .section2 .element-faq-item {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
  }

  .contact-page .section2 .element-faq-item summary {
    gap: 10px;
    font-size: clamp(1rem, 4.8vw, 1.2rem);
  }

  .contact-page .section2 .element-faq-item summary::after {
    margin-top: 0;
    font-size: 22px;
  }

  .contact-page .section2 .faq-answer {
    margin-top: 8px;
  }

  .contact-page .section2 .faq-answer p {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .contact-page .section2 .faq-cta {
    margin-top: 16px;
    padding: 14px;
  }

  .contact-page .section2 .faq-cta p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  html[lang="cy"] .contact-page .section2 .element-faq h2 {
    /* Slightly smaller scale for longer Welsh headings on compact screens. */
    font-size: clamp(1.55rem, 6.6vw, 1.95rem);
  }

  html[lang="cy"] .contact-page .section2 .element-faq-item summary {
    font-size: clamp(0.95rem, 4.4vw, 1.08rem);
  }

  .card-feature {
    gap: 10px;
  }

  .card-feature-body h3 {
    font-size: 1.4rem;
  }

  .card-feature-body p {
    font-size: 1rem;
  }

  /* --- INDEX PAGE: SECTION 2 --- */
  .section2 {
    padding: 40px 16px 48px;
  }

  .section2-inner {
    gap: 24px;
    padding: 0 6px;
  }

  .section2-kicker {
    align-self: center;
    margin-left: 0;
    padding: 9px 18px;
    font-size: 1.18rem;
    line-height: 1;
  }

  .section2-kicker::after {
    right: -10px;
    top: -7px;
    font-size: 0.74rem;
  }

  .section2-overview {
    grid-template-columns: 1fr;
    grid-template-areas:
      "features"
      "copy";
    gap: 20px;
  }

  .section2-overview-copy {
    gap: 18px;
  }

  .section2-intro h2 {
    font-size: clamp(2rem, 7vw, 2.6rem);
    margin: 4px 0 10px;
    text-align: center;
  }

  .section2-intro p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
  }

  .section2-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section2-feature {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .section2-feature-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 13px;
    font-size: 1.1rem;
  }

  .section2-feature h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .section2-feature p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .section2-reviews {
    gap: 14px;
  }

  .review-panel {
    transform: none;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .section2-proof {
    gap: 20px;
  }

  .review-summary-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .section2-proof-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .section2-proof-kicker {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .section2-proof-card h3,
  .section2-reviews-intro h3 {
    font-size: clamp(1.4rem, 5.8vw, 1.8rem);
    margin-bottom: 12px;
  }

  .section2-proof-card p,
  .section2-reviews-intro p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .section2-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section2-video-row {
    justify-content: stretch;
  }

  .section2-video-card {
    padding: 12px 0 0;
    width: 100%;
  }

  .section2-video-frame {
    padding: 14px;
    gap: 14px;
    border-radius: 24px;
  }

  .section2-video-header {
    gap: 8px;
  }

  .section2-video-chip {
    font-size: 0.64rem;
    padding: 6px 10px;
  }

  .section2-video-stage {
    padding: 16px 10px 38px;
    border-radius: 24px;
  }

  .section2-video-topper {
    gap: 7px;
    padding: 16px 12px 14px;
  }

  .section2-video-topper-line {
    max-width: 54px;
  }

  .section2-video-topper-sprig {
    width: 24px;
    height: 15px;
  }

  .section2-video-screen {
    aspect-ratio: 1 / 1.02;
    border-width: 6px;
    border-radius: 24px;
  }

  .section2-video-caption {
    max-width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .section2-video-caption p {
    font-size: 0.94rem;
  }

  .section2-video-caption span {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .section2-video-sun {
    width: 66px;
    height: 66px;
    left: 12px;
  }

  .section2-video-leaf {
    width: 32px;
    height: 74px;
  }

  .section2-video-leaf-left {
    left: -1px;
    bottom: 70px;
  }

  .section2-video-leaf-right {
    right: 1px;
    bottom: 80px;
  }

  .section2-reviews-intro {
    padding: 0 2px;
  }

  .review-summary {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .review-badge {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .review-score-number {
    font-size: 2.1rem;
  }

  .review-count {
    font-size: 0.82rem;
  }

  .review-quote {
    padding: 12px 13px;
    border-radius: 14px;
  }

  .review-quote p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .review-name {
    font-size: 0.84rem;
  }

  .section2-action {
    gap: 10px;
    padding-top: 2px;
  }

  .section2-action-text {
    font-size: 0.98rem;
  }

  .section2-action .cta-split,
  .testimonials-story .testimonials-cta {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- INDEX PAGE: SECTION 3 --- */
  .section3 {
    padding: 18px 14px;
  }

  .section3-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section3 .element-text-header {
    max-width: 100%;
    text-align: center;
  }

  .section3-hours {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .hours-card p {
    white-space: normal;
  }

  .section3 .layout-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section3 .element-card-setB {
    padding: 0;
  }

  .section3 .element-card-setB .element-card-light .utility-inline-flex {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .section3 .element-card-setB .card-icon-svg {
    align-self: center;
    margin-right: 0;
  }

  .section3 .element-card-setB h3 {
    font-size: 1.45rem;
    margin: 0;
    text-align: left;
  }

  .section3 .element-card-setB p {
    font-size: 0.98rem;
    text-align: left;
  }

  /* --- INDEX PAGE: SECTION 4 --- */
  .section4 {
    padding: 36px 16px 50px;
  }

  .section4-cards {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .facility-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .section4-title-blocks .title-main {
    font-size: 4rem;
  }

  .section4-title-blocks .title-blocks {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .section4-title-blocks .title-blocks span {
    width: clamp(26px, 7.2vw, 32px);
    height: clamp(34px, 9vw, 40px);
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
    padding: 0 2px;
  }

  .facility-card-body h3 {
    font-size: 2.625rem;
  }

  .facility-card-body h4 {
    font-size: 1.725rem;
    text-shadow: none;
  }

  .facility-media {
    padding: 12px;
  }

  .facility-media-inline {
    margin: 8px 0 80px;
  }

  .photo-carousel {
    grid-template-columns: 1fr;
  }

  .photo-carousel-btn {
    display: none;
  }

  .photo-carousel-hint {
    display: inline-flex;
  }

  .photo-carousel-track {
    grid-auto-columns: minmax(220px, 80vw);
    gap: 14px;
    padding: 10px 12%;
    scroll-padding-inline: 12%;
  }

  .photo-card img {
    height: 180px;
  }

  .facility-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .facility-highlights div:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
  }

  .facility-highlight {
    padding: 50px 16px;
    -webkit-mask-size: 100%;
    mask-size: 100%;
  }

  /* --- INDEX PAGE: SECTION 5 (TESTIMONIALS) --- */
  .testimonials-section {
    padding: 50px 16px;
    overflow-x: hidden;
  }

  .testimonials-kicker {
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    margin-bottom: 14px;
    padding: 10px 20px;
    letter-spacing: 0.12em;
    max-width: 100%;
    line-height: 1.1;
  }

  .kicker-text {
    gap: 8px;
  }

  .testimonials-kicker svg {
    width: 42px;
    height: 42px;
  }

  .kicker-tab {
    top: -10px;
    width: 70px;
    height: 22px;
  }

  .testimonials-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .testimonials-story {
    padding: 22px;
  }

  .testimonials-story h2 {
    font-size: 2rem;
  }

  .testimonials-title {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    max-width: 100%;
  }

  .video-filmstrip {
    padding: 12px 12px 20px;
    margin-bottom: 20px;
    overflow: hidden;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .filmstrip-track {
    grid-auto-columns: minmax(200px, 1fr);
    gap: 10px;
    padding: 6px 6px 12px;
  }

  .filmstrip-card {
    max-width: 150px;
  }

  .filmstrip-card img {
    height: 140px;
  }

  .filmstrip-label {
    width: 150px;
    font-size: 0.7rem;
  }

  /* --- INDEX PAGE: SECTION 6 (TRUST RIBBON) --- */
  .trust-ribbon {
    padding: 20px 18px;
  }

  .trust-logo-card {
    padding: 18px 20px;
    border-radius: 14px;
  }

  .trust-logo-card img {
    height: 79px;
    width: 121px;
    object-fit: contain;
  }

  .trust-logos-track {
    gap: 12px;
  }

  /* --- CWMDU ABOUT PAGE: SECTION 6 (TRUST RIBBON) --- */
  .location-trust-ribbon {
    padding: 20px 18px;
  }

  .location-trust-logo-card {
    padding: 18px 20px;
    border-radius: 14px;
  }

  .location-trust-logo-card img {
    height: 79px;
    width: 121px;
    object-fit: contain;
  }

  .location-trust-logos-track {
    gap: 12px;
  }

  /* --- CWMDU ABOUT PAGE: HERO + CONTENT SECTIONS --- */
  .location-hero {
    padding: 48px 18px 24px;
  }

  .location-hero-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .location-hero-anniversary {
    padding: 14px 16px;
  }

  .location-hero-anniversary-media {
    flex-wrap: nowrap;
  }

  .location-hero-anniversary-img {
    width: clamp(120px, 42vw, 150px);
  }

  .location-hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-overview {
    grid-template-columns: 1fr;
    padding: 40px 18px;
  }

  .location-overview-media::before {
    inset: -10%;
    background-size: 80%;
    opacity: 0.5;
  }

  .location-overview-content h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .location-care {
    gap: 20px;
    padding: 20px 0 40px;
  }

  .location-care-panel {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .location-care-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location-care-rooms-media,
  .location-clubs-grid {
    grid-template-columns: 1fr;
  }

  .location-expectations-media {
    grid-template-columns: 1fr;
  }

  .location-facilities {
    padding: 52px 18px;
  }

  .location-facilities-highlights {
    grid-template-columns: 1fr;
  }

  .location-facilities-video-title {
    left: 16px;
    bottom: 16px;
    font-size: 0.72rem;
  }

  .location-hero-badge {
    top: 14px;
    left: 14px;
    padding: 12px 14px;
  }

  .location-hero-highlights {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* --- GLOBAL: FOOTER --- */
  .footer-inner {
    padding: 40px 24px 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-brand-inner img {
    width: 100px;
  }

  .footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-brand-copy .brand-name {
    font-size: 30px;
  }

  .footer-brand-copy .brand-tagline {
    font-size: 15px;
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-col a {
    margin-bottom: 8px;
  }

  .footer-subsection {
    margin: 6px 0 10px;
  }

  /* --- MEET THE TEAM PAGE: HERO --- */
  .team-hero {
    overflow-x: hidden;
    grid-template-columns: 1fr;
    row-gap: 16px;
    column-gap: 0;
    padding: 40px 14px 26px;
  }

  .team-hero-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.15;
    white-space: normal;
  }

  html[lang="cy"] .team-hero-title {
    font-size: clamp(1.35rem, 6.1vw, 1.85rem);
    line-height: 1.2;
  }

  .team-hero-title-cutout {
    display: inline;
    padding: 4px 6px 5px 8px;
  }

  .team-hero-highlight {
    padding: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .team-hero-highlight::before {
    content: none;
  }

  .team-hero-highlight::after {
    bottom: 0.08em;
  }

  .team-hero-content {
    font-size: 0.96rem;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .team-hero-body {
    display: grid;
    gap: 12px;
  }

  .team-hero-tag {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    width: fit-content;
    max-width: 100%;
  }

  .team-hero-media {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
  }

  .team-hero-media img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 18px;
  }

  .team-hero-media::before {
    inset: 8px;
    border-radius: 18px;
  }

  .team-hero-ig {
    width: calc(100% - 30px);
    bottom: 10px;
    font-size: 0.57rem;
    padding: 6px 10px;
    line-height: 1.15;
  }

  .team-hero-highlights {
    order: 2;
    gap: 8px;
    margin-top: 0;
  }

  .team-hero-pill {
    font-size: 0.72rem;
    padding: 6px 9px;
    line-height: 1.2;
  }

  .team-hero-uls {
    height: 44px;
    margin-top: 4px;
  }

  .team-hero-uls::after {
    height: 6px;
    width: calc(100% - 58px);
  }

  .team-hero-uls::before {
    width: 34px;
    height: 34px;
  }

  /* --- MEET THE TEAM PAGE: STAFF MATRIX --- */
  .staff-matrix {
    padding: 32px 16px 48px;
    overflow-x: clip;
  }

  .staff-matrix-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
    transform: none;
    overflow-x: clip;
  }

  .staff-matrix-row > .staff-matrix-group {
    min-width: 0;
    overflow-x: clip;
  }

  .staff-matrix-row .ri-tabletFrame {
    max-width: 100%;
    height: auto;
    margin: 0;
    min-width: 0;
  }

  .staff-matrix h2 {
    margin-bottom: 18px;
    padding-left: 12px;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .staff-matrix h2::after {
    bottom: -8px;
  }

  .staff-matrix-group .ri-tabletFrame {
    max-width: 100%;
    max-height: none;
    padding: 24px 14px 14px;
    border-radius: 24px;
    margin: 0 auto;
    min-width: 0;
    overflow-x: clip;
  }

  .staff-matrix-group .ri-tabletFrame-title > h3 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    margin-bottom: 16px;
  }

  .staff-matrix-group .ri-tabletFrame-track {
    gap: 10px;
    padding-bottom: 2px;
    scroll-snap-type: none;
    min-width: 0;
    width: 100%;
  }

  .staff-matrix-group .ri-tabletFrame-track > .staff-card {
    flex: 0 0 min(76vw, 250px);
    min-width: min(76vw, 250px);
    max-height: 400px;
    padding: 12px;
  }

  .staff-matrix-group .ri-card-title {
    font-size: clamp(1.1rem, 4.2vw, 1.35rem);
    margin: 2px 0 14px;
  }

  .staff-matrix-group .ri-card-title--single-line {
    font-size: clamp(0.85rem, 3.8vw, 1.1rem);
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
  }

  .staff-matrix-group .ri-tabletFrame-track > .staff-card h4,
  .staff-matrix-group .ri-overlay-content .staff-card h4 {
    margin: 6px 0;
    font-size: 0.86rem;
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
    align-items: flex-start;
  }

  .staff-matrix-group .ri-tabletFrame-track .staff-photo {
    /* Expand image to card edges while keeping internal text padding below. */
    width: calc(100% + 24px);
    max-width: none;
    margin: -12px -12px 10px;
    border-radius: 14px 14px 0 0;
    height: 132px;
    object-fit: cover;
  }

  .staff-matrix-group .ri-tabletFrame-track .staff-name {
    font-size: 0.96rem;
  }

  .staff-matrix-group .ri-tabletFrame-track .staff-card p:not(.staff-name) {
    height: 58px;
    font-size: 0.88rem;
    line-height: 1.32;
  }

  .staff-matrix-group .ri-uls {
    height: 50px;
    margin-top: 8px;
    padding: 0 6px;
  }

  .staff-matrix-group .ri-uls::after {
    height: 6px;
    width: calc(100% - 68px);
    left: 6px;
  }

  .staff-matrix-group .ri-uls::before {
    width: 36px;
    height: 36px;
    right: 6px;
  }

  .staff-matrix-group .ri-overlay {
    inset: 10px;
    padding: 32px 20px 20px;
    border-radius: 20px;
  }

  .staff-matrix-group .ri-overlay-close {
    top: 10px;
    right: 12px;
  }

  .staff-matrix-group .ri-overlay-content .staff-photo {
    height: 240px;
  }

  .staff-matrix-group .ri-overlay-content .staff-card {
    padding: 14px;
  }

  /* --- STAFF MATRIX SUBSECTION: GROUP RI MOBILE 2x2 GRID (NO CAROUSEL) --- */
  .staff-matrix-group.group-ri .ri-tabletFrame {
    padding: 20px 12px 16px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    /* Let cards render naturally in grid without horizontal clipping behavior. */
    overflow: visible;
    padding: 0;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track > .staff-card {
    width: 100%;
    min-width: 0;
    min-height: 280px;
    max-height: none;
    padding: 10px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track .staff-photo {
    /* Match desktop card style: photo runs edge-to-edge across card top. */
    width: calc(100% + 20px);
    margin: -10px -10px 8px;
    height: 122px;
    border-radius: 12px 12px 0 0;
  }

  .staff-matrix-group.group-ri .ri-card-title {
    font-size: 0.72rem;
    margin: 0 0 8px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track > .staff-card h4 {
    font-size: 0.67rem;
    margin: 4px 0;
    padding: 3px 8px 3px 10px;
  }

  .staff-matrix-group.group-ri .ri-tabletFrame-track .staff-name {
    font-size: 0.82rem;
  }

  .staff-matrix-group.group-ri
    .ri-tabletFrame-track
    .staff-card
    p:not(.staff-name) {
    height: 64px;
    padding-right: 16px;
    /* Fixed excerpt height keeps all cards aligned in the 2-column grid. */
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .staff-matrix-group.group-ri
    .ri-tabletFrame-track
    .staff-card
    p:not(.staff-name)::after {
    /* Visual "..." fade to indicate clipped text without relying on JS truncation. */
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 45%);
  }

  .staff-matrix-group.group-ri .staff-read-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .staff-matrix-group.group-ri .ri-uls {
    display: none;
  }

  .careers-shell::before {
    width: 220px;
    height: 220px;
    top: 120px;
    right: -80px;
  }

  .careers-hero {
    padding-top: 28px;
  }

  .careers-hero p,
  .careers-join-copy p,
  .careers-callout p,
  .careers-process-copy p {
    font-size: 1.12rem;
  }

  .careers-values-grid,
  .careers-values-list {
    grid-template-columns: 1fr;
  }

  .careers-development-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .careers-development-card {
    min-height: 0;
  }

  .careers-development-intro,
  .careers-work-benefits-intro,
  .careers-values-intro {
    font-size: 1.08rem;
  }

  .careers-work-benefits-grid {
    grid-template-columns: 1fr;
  }

  .careers-value-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .careers-value-badge {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .careers-value-item h3 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 0.9;
  }

  .careers-values-section .layout-container {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 22px;
    padding-right: 22px;
  }

  .careers-apply-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .careers-process-step {
    grid-template-columns: 1fr;
  }
}

/* --- RESPONSIVE SCAFFOLD: NEXT RANGES (NO RULES YET) --- */
@media all and (min-width: 511px) and (max-width: 767px) {
  .careers-shell::before {
    width: 220px;
    height: 220px;
    top: 120px;
    right: -80px;
  }

  .careers-hero {
    padding-top: 28px;
  }

  .careers-hero p,
  .careers-join-copy p,
  .careers-callout p,
  .careers-process-copy p {
    font-size: 1.12rem;
  }

  .careers-values-grid,
  .careers-values-list {
    grid-template-columns: 1fr;
  }

  .careers-development-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .careers-development-card:last-child {
    grid-column: 1 / -1;
  }

  .careers-development-intro,
  .careers-work-benefits-intro,
  .careers-values-intro {
    font-size: 1.08rem;
  }

  .careers-work-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .careers-value-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .careers-value-badge {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .careers-value-item h3 {
    font-size: clamp(2.2rem, 6.5vw, 3rem);
    line-height: 0.92;
  }

  .careers-apply-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .careers-process-step {
    grid-template-columns: 1fr;
  }
}

@media all and (min-width: 768px) and (max-width: 1023px) {
  .header-topbar-inner {
    padding: 9px 14px;
    gap: 10px;
    font-size: 12px;
  }

  .header-trust {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-lang {
    padding: 6px 12px;
    font-size: 12px;
  }

  .header-main-inner {
    padding: 8px 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .site-header + .element-header-spacer {
    margin-bottom: 108px;
  }

  .header-brand {
    gap: 8px;
  }

  .header-brand img {
    width: 52px;
  }

  .brand-name {
    font-size: 18px;
    line-height: 1.1;
  }

  .brand-tagline {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 290px;
  }

  .nav-primary {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .nav-toggle i {
    font-size: 18px;
  }

  .cta-label {
    font-size: 15px;
    height: 38px;
    padding: 0 14px;
  }

  .cta-toggle {
    height: 38px;
    width: 42px;
    padding: 0 10px;
  }

  .cta-toggle i {
    font-size: 18px;
  }

  .nav-drawer {
    padding: 14px 16px 22px;
    max-height: calc(100dvh - 124px);
    overflow-y: auto;
  }

  .nav-drawer .nav-list {
    gap: 8px;
  }

  .nav-drawer a,
  .nav-drawer .nav-toggle-btn {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    padding: 9px 12px;
  }

  .section-hero {
    padding: 66px 18px 44px;
  }

  .hero-wrap {
    gap: 24px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.2rem);
  }

  .hero-content p {
    font-size: 1.02rem;
  }

  .hero-media-main {
    width: min(620px, 100%);
    padding: 11px 11px 34px;
  }

  .hero-polaroids {
    max-width: 430px;
    gap: 12px;
    transform: translate(-50%, 34%);
  }

  .locations-twin {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 860px;
  }

  .location-card-footer {
    gap: 12px;
    margin-top: -14px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .location-directions-card {
    padding: 12px 16px;
  }

  .location-polaroid {
    width: 162px;
  }

  .location-hover-card {
    padding: 18px 18px 52px;
  }

  .location-hover-card p {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .location-icon-row {
    gap: 8px 10px;
  }

  .facility-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .facility-highlight {
    padding: 26px 16px;
    gap: 4px;
  }

  .facility-highlights .facility-highlight:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(78%, 360px);
  }

  .testimonials-section {
    padding: 56px 18px;
  }

  .testimonials-inner {
    gap: 20px;
  }

  .testimonials-story h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
  }

  .video-filmstrip {
    padding: 18px 14px 14px;
    gap: 10px;
  }

  .filmstrip-track {
    grid-auto-columns: min(210px, 34vw);
    gap: 10px;
  }

  .filmstrip-card {
    width: min(210px, 34vw);
    max-width: min(210px, 34vw);
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand-inner {
    gap: 12px;
  }
}

@media all and (min-width: 1024px) and (max-width: 1279px) {
  .header-topbar-inner {
    padding: 8px 14px;
    font-size: 12px;
    gap: 10px;
  }

  .header-main-inner {
    padding: 5px 14px;
    gap: 10px;
  }

  .header-brand img {
    width: 50px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    max-width: 250px;
    font-size: 10px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-list a,
  .nav-toggle-btn {
    font-size: 16px;
    gap: 8px;
  }

  .nav-primary {
    min-width: 0;
  }

  .nav-list {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .nav-primary .nav-list > li > a,
  .nav-primary .nav-list > li > .nav-toggle-btn {
    padding: 7px 9px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .cta-label {
    font-size: 14px;
    padding: 0 12px;
  }

  .header-actions .cta-toggle {
    padding: 0 10px;
  }

  .section-hero {
    padding: 64px 18px 52px;
  }

  .hero-wrap {
    gap: 28px;
  }

  .hero-media-main {
    width: min(620px, 100%);
  }

  .hero-polaroids {
    gap: 12px;
    max-width: 430px;
  }

  .locations-twin {
    gap: 20px;
  }

  .location-card-footer {
    gap: 14px;
    margin-top: -16px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .location-directions-card {
    padding: 12px 16px;
  }

  .location-polaroid {
    width: 158px;
  }

  .facility-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }

  .facility-highlight {
    padding: 30px 16px;
    gap: 4px;
  }

  .facility-highlights .facility-highlight:nth-child(5) {
    grid-column: 2 / span 2;
    width: 100%;
    justify-self: stretch;
  }

  .testimonials-inner {
    gap: 24px;
  }

  .filmstrip-track {
    grid-auto-columns: min(200px, 24vw);
    gap: 10px;
  }

  .site-footer-inner {
    gap: 18px;
  }

  .footer-brand-inner {
    gap: 14px;
  }
}

@media all and (min-width: 1280px) and (max-width: 1439px) {
  .header-topbar-inner {
    padding: 9px 16px;
    gap: 12px;
  }

  .header-main-inner {
    padding: 5px 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .header-brand img {
    width: 56px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 10px;
    line-height: 1.2;
  }

  .nav-list a,
  .nav-toggle-btn {
    font-size: 16px;
    gap: 8px;
  }

  .nav-list {
    gap: 10px;
  }

  .nav-primary .nav-list > li > a,
  .nav-primary .nav-list > li > .nav-toggle-btn {
    padding: 8px 9px;
  }

  .section-hero {
    padding: 72px 20px 56px;
  }

  .hero-wrap {
    max-width: 1280px;
    gap: 34px;
  }

  .hero-media-main {
    width: min(660px, 100%);
  }

  .hero-polaroids {
    gap: 14px;
    max-width: 470px;
  }

  .locations-twin {
    max-width: 1280px;
    gap: 24px;
  }

  .location-card-footer {
    gap: 16px;
  }

  .location-polaroid {
    width: 168px;
  }

  .facility-highlights {
    gap: 12px;
    padding: 14px;
  }

  .facility-highlight {
    padding: 32px 18px;
    gap: 4px;
  }

  .testimonials-inner {
    max-width: 1280px;
    gap: 28px;
  }

  .filmstrip-track {
    grid-auto-columns: min(220px, 20vw);
    gap: 12px;
  }

  .site-footer-inner {
    max-width: 1280px;
  }
}
