/* Rosehill Housing — shared design system (2026 identity)
   Tokens, reset, base type, and the site chrome (header, primary nav,
   mobile drawer, hero, cards, CTA banner, credentials strip, footer).
   Page-specific rules stay in each page's own <style> block.

   Palette confirmed by Rosehill on 14 October 2026 (Aileen, from the
   brand guidance). Their names and values:

     Deep Petrol Teal  #0C515A  "ROSEHILL", headings     --ds-color-navy
     Mid Teal          #1E7987  community figure, icons  --ds-color-teal
     Warm Coral        #E96349  "HOUSING", person figure --ds-color-coral
     Warm Amber        #F5A00F  third person, accents    --ds-color-amber
     Medium Grey       #706F6E  house, R, path           --ds-color-grey, ink-3
     Soft Grey         #A19E99  lighter logo use         --ds-color-grey-soft
     Off-white         #FAFAF8  main background          --ds-color-offwhite
     Soft Coral Tint   #F8E3DC  behind coral icons       --ds-color-coral-tint
     Soft Teal Tint    #E1EEF0  behind teal icons        --ds-color-teal-tint
     Soft Amber Tint   #FBEDD5  behind amber icons       --ds-color-amber-tint
     Olive Green       #829A32  "Looking Forward"        --ds-color-olive

   The hover and "deep" steps are ours, darker shades of the same hues, so
   text keeps AA contrast. The token names (navy, lilac and so on) are kept
   from the build so nothing downstream had to be renamed. */

:root {
    /* Typography — unchanged by the rebrand; the printed stationery uses the
       same face the site already had. */
    --ds-font-body: 'Open Sans', sans-serif;
    --ds-font-head: 'Open Sans', sans-serif;

    /* Structure — Deep Petrol Teal, the "ROSEHILL" wordmark */
    --ds-color-navy: #0C515A;
    --ds-color-navy-deep: #093D44;

    /* Icons, focus ring — Mid Teal */
    --ds-color-teal: #1E7987;
    --ds-color-teal-hover: #18616C;

    /* The old lilac has no counterpart in the new identity: the decorative
       shape takes Mid Teal and the soft band takes Soft Teal Tint. */
    --ds-color-lilac: #1E7987;
    --ds-color-lilac-soft: #E1EEF0;

    /* Action — Warm Amber. Dark ink sits on top (7.8:1). */
    --ds-color-amber: #F5A00F;
    --ds-color-amber-hover: #DC900E;
    /* Amber as small text on the petrol teal: Warm Amber gives 4.2:1 there,
       this 15% lighter step gives 4.7:1. Ours, not Rosehill's. */
    --ds-color-amber-light: #F6AE33;

    /* Editorial accent — Warm Coral. The deep step is for coral as small
       text on light grounds (5:1 on white). */
    --ds-color-coral: #E96349;
    --ds-color-coral-deep: #B84E39;

    --ds-color-grey: #706F6E;
    --ds-color-grey-soft: #A19E99;
    --ds-color-olive: #829A32;

    /* Tints, for the ground behind an icon of the matching colour */
    --ds-color-teal-tint: #E1EEF0;
    --ds-color-coral-tint: #F8E3DC;
    --ds-color-amber-tint: #FBEDD5;
    --ds-color-offwhite: #FAFAF8;

    /* Neutrals */
    --ds-color-ink-1: #1B1F2A;
    --ds-color-ink-2: #3F4451;
    --ds-color-ink-3: #706F6E;
    --ds-color-line: rgba(15, 18, 30, 0.08);
    --ds-color-cream: #f5f4ef;

    /* Layout */
    --ds-width-content: 1340px;
    --ds-space-gutter: clamp(20px, 3vw, 32px);
    --ds-space-content-offset: max(var(--ds-space-gutter), calc((100vw - var(--ds-width-content)) / 2));
  }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--ds-font-body), -apple-system, sans-serif;
    background: #fff;
    color: var(--ds-color-ink-1);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

/* HEADER — full width */
.header {
    background: #fff;
    padding: 28px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(15, 18, 30, 0.04);
  }

.header-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }

.logo img {
    height: 68px;
    width: auto;
    display: block;
  }

.nav {
    display: flex;
    gap: 36px;
    align-items: center;
  }

.nav-item {
    font-family: var(--ds-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--ds-color-ink-1);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 0;
  }

.nav-item:hover { color: var(--ds-color-navy); }

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ds-color-navy);
    transition: all 0.2s ease;
    transform: translateX(-50%);
  }

.nav-item:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--ds-color-navy);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 8px;
    white-space: nowrap;
    font-family: var(--ds-font-body);
  }

.nav-cta:hover {
    background: var(--ds-color-navy-deep);
    transform: translateY(-1px);
  }

/* HERO */
.hero {
    background: var(--ds-color-navy);
    color: #fff;
    position: relative;
    overflow: hidden;
  }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    align-items: stretch;
  }

.hero-content {
    padding: 88px clamp(24px, 4vw, 56px) 88px var(--ds-space-content-offset);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

.eyebrow {
    font-family: var(--ds-font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.72);
    margin-bottom: 28px;
  }

.hero-subtitle {
    font-family: var(--ds-font-body);
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    max-width: 480px;
    margin-bottom: 40px;
  }

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
  }

.btn-primary {
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
  }

.btn-primary:hover {
    background: var(--ds-color-amber-hover);
    transform: translateY(-1px);
  }

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.32);
  }

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
  }

.hero-owner-link {
    margin: 26px 0 0;
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.65);
  }

.hero-owner-link a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.32);
    padding-bottom: 2px;
    margin-left: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
  }

.hero-owner-link a:hover {
    border-bottom-color: var(--ds-color-amber);
    color: var(--ds-color-amber-light);
  }

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

.hero-content > * { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }

.hero-content > *:nth-child(2) { animation-delay: 0.2s; }

.hero-content > *:nth-child(3) { animation-delay: 0.35s; }

.hero-content > *:nth-child(4) { animation-delay: 0.5s; }

.hero-visual { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards; }

/* ===== TASKS SECTION ===== */
.tasks {
    background: var(--ds-color-cream);
    padding: clamp(72px, 9vw, 112px) 0;
  }

.tasks-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.section-head {
    margin: 0 auto 56px;
    max-width: 720px;
  }

.eyebrow-dark {
    font-family: var(--ds-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ds-color-ink-3);
    margin-bottom: 14px;
  }

.h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0;
    text-align: center;
  }

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

.task-tile {
    background: #fff;
    border: 1px solid rgba(15,18,30,0.07);
    border-radius: 16px;
    padding: 28px 24px 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

.task-tile:hover {
    border-color: var(--ds-color-teal);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15,18,30,0.06);
  }

.task-icon {
    width: 36px;
    height: 36px;
    color: var(--ds-color-teal);
    margin-bottom: 22px;
  }

.task-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

.task-desc {
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ds-color-ink-3);
    margin: 0 0 20px;
    flex-grow: 1;
  }

.task-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ds-color-amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-color-ink-1);
    transition: background 0.2s ease, transform 0.2s ease;
    align-self: flex-end;
  }

.task-tile:hover .task-arrow {
    background: var(--ds-color-amber-hover);
    transform: translateX(3px);
  }

/* Tasks CTA link — for visitors not finding what they need */
.tasks-cta {
    margin: 48px 0 0;
    text-align: center;
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ds-color-ink-2);
  }

.tasks-cta a {
    color: var(--ds-color-ink-1);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 3px;
    margin-left: 4px;
    font-weight: 600;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
  }

.tasks-cta a:hover {
    color: var(--ds-color-navy);
    border-bottom-color: var(--ds-color-navy);
  }

/* ===== LATEST NEWS ===== */
.news {
    background: #fff;
    padding: clamp(80px, 10vw, 120px) 0;
  }

/* Same-bg adjacency: halve both sections' paddings so the transition reads
     as a continuous flow rather than two stacked sections */
.community:has(+ .news) { padding-bottom: clamp(40px, 5vw, 60px); }

.community + .news { padding-top: clamp(40px, 5vw, 60px); }

.news-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.news-head {
    margin: 0 auto 56px;
    max-width: 720px;
    text-align: center;
  }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

.news-card:hover { transform: translateY(-3px); }

.news-card { position: relative; }

.news-media {
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ds-color-cream);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
  }

/* Decorative shape peek per card */
.news-shape {
    position: absolute;
    width: 60px;
    height: 100px;
    border-radius: 6px;
    z-index: 0;
  }

.news-shape--yellow-tl {
    background: var(--ds-color-amber);
    top: -12px;
    left: -10px;
    transform: rotate(-7deg);
  }

.news-shape--teal-tr {
    background: var(--ds-color-teal);
    top: -12px;
    right: -10px;
    transform: rotate(7deg);
  }

.news-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
  }

.news-card:hover .news-media img { transform: scale(1.04); }

.news-meta {
    font-family: var(--ds-font-body);
    font-size: 12px; font-weight: 600;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }

.news-title {
    font-family: var(--ds-font-body);
    font-size: 22px; font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.005em;
  }

.news-excerpt {
    font-family: var(--ds-font-body);
    font-size: 15px; line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0 0 18px;
  }

.news-link {
    font-family: var(--ds-font-body);
    font-size: 14px; font-weight: 600;
    color: var(--ds-color-navy);
    display: inline-flex; align-items: center;
    gap: 6px;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 3px;
    margin-top: auto;
    align-self: flex-start;
    transition: gap 0.2s ease;
  }

.news-card:hover .news-link { gap: 10px; }

.news-cta {
    margin-top: 56px;
    text-align: center;
    font-family: var(--ds-font-body);
    font-size: 15px;
    color: var(--ds-color-ink-2);
  }

.news-cta a {
    color: var(--ds-color-ink-1);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 3px;
    margin-left: 4px;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

.news-cta a:hover {
    color: var(--ds-color-navy);
    border-bottom-color: var(--ds-color-navy);
  }

/* ===== IMPACT STATS ===== */
.stats {
    background: var(--ds-color-cream);
    padding: clamp(72px, 9vw, 112px) 0;
  }

.stats-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.stats-head {
    margin: 0 auto 56px;
    max-width: 640px;
    text-align: center;
  }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
  }

.stat-item {
    text-align: center;
  }

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    color: var(--ds-color-navy);
  }

.stat-icon svg { width: 100%; height: 100%; display: block; }

.stat-icon .accent { stroke: var(--ds-color-teal); }

.stat-number {
    font-family: var(--ds-font-body);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    color: var(--ds-color-navy);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    display: block;
  }

.stat-label {
    font-family: var(--ds-font-body);
    font-size: 14px; font-weight: 600;
    color: var(--ds-color-ink-2);
    line-height: 1.4;
    max-width: 220px;
    margin: 0 auto;
  }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--ds-color-navy);
    padding: clamp(72px, 9vw, 112px) 0;
    position: relative;
    overflow: hidden;
  }

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 110px;
    height: 240px;
    border-radius: 12px;
    background: var(--ds-color-amber);
    opacity: 0.14;
    transform: rotate(-8deg);
  }

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -40px;
    width: 90px;
    height: 200px;
    border-radius: 12px;
    background: var(--ds-color-teal);
    opacity: 0.16;
    transform: rotate(8deg);
  }

.cta-banner-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
  }

.cta-banner-title {
    font-family: var(--ds-font-body);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

.cta-banner-body {
    font-family: var(--ds-font-body);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.55;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto 36px;
  }

/* ===== SUB NAVIGATION (DROPDOWN) ===== */
.nav-item-with-children {
    position: relative;
  }

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ds-color-ink-1);
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    position: relative;
  }

.nav-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ds-color-navy);
    transition: width 0.2s ease;
    transform: translateX(-50%);
  }

.nav-item-with-children:hover .nav-toggle,
  .nav-item-with-children:focus-within .nav-toggle {
    color: var(--ds-color-navy);
  }

.nav-item-with-children:hover .nav-toggle::after,
  .nav-item-with-children:focus-within .nav-toggle::after {
    width: 100%;
  }

.nav-toggle-caret {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
  }

.nav-item-with-children:hover .nav-toggle-caret,
  .nav-item-with-children:focus-within .nav-toggle-caret {
    transform: rotate(180deg);
  }

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15,18,30,0.12),
                0 2px 8px rgba(15,18,30,0.06);
    padding: 12px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
  }

.nav-item-with-children:hover .submenu,
  .nav-item-with-children:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
  }

/* Bridge gap so dropdown doesn't disappear on hover */
.submenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

.submenu-section-link {
    display: block;
    padding: 12px 14px;
    margin-bottom: 4px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-color-navy);
    text-decoration: none;
    border-radius: 8px;
    background: var(--ds-color-cream);
    transition: background 0.2s ease;
  }

.submenu-section-link:hover {
    background: rgba(30, 121, 135, 0.08);
  }

.submenu li a {
    display: block;
    padding: 10px 14px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: var(--ds-color-ink-2);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
  }

.submenu li a:hover {
    background: rgba(30, 121, 135, 0.06);
    color: var(--ds-color-navy);
  }

/* ===== ABOUT US / HOW WE WORK ROW ===== */
.about-row {
    background: #fff;
    padding: clamp(80px, 10vw, 120px) 0;
  }

.about-row-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }

.about-row-text { max-width: 520px; }

.about-row-heading {
    font-family: var(--ds-font-body);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
  }

.about-row-body {
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ds-color-ink-2);
    margin: 0 0 24px;
  }

.about-row-trust {
    display: flex;
    gap: 28px;
    margin: 0 0 28px;
    padding: 20px 0;
    border-top: 1px solid rgba(15,18,30,0.08);
    border-bottom: 1px solid rgba(15,18,30,0.08);
    flex-wrap: wrap;
  }

.about-row-stat { display: flex; flex-direction: column; gap: 2px; }

.about-row-stat-num {
    font-family: var(--ds-font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--ds-color-navy);
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

.about-row-stat-label {
    font-family: var(--ds-font-body);
    font-size: 13px;
    color: var(--ds-color-ink-3);
    line-height: 1.3;
  }

.about-row-link {
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-color-ink-1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 3px;
    transition: color 0.2s ease, gap 0.2s ease, border-bottom-color 0.2s ease;
  }

.about-row-link:hover {
    color: var(--ds-color-navy);
    border-bottom-color: var(--ds-color-navy);
    gap: 10px;
  }

.about-row-media {
    position: relative;
    aspect-ratio: 5/4;
  }

.about-row-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
  }

.about-row-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

.about-row-shape {
    position: absolute;
    border-radius: 10px;
    z-index: 0;
  }

.about-row-shape--teal-tl {
    background: var(--ds-color-teal);
    width: 100px;
    height: 180px;
    top: -22px;
    left: -22px;
    transform: rotate(-6deg);
  }

.about-row-shape--yellow-br {
    background: var(--ds-color-amber);
    width: 110px;
    height: 190px;
    bottom: -22px;
    right: -22px;
    transform: rotate(-6deg);
  }

/* ===== CREDENTIALS / ACCREDITATIONS STRIP ===== */
.credentials {
    background: #fff;
    border-top: 1px solid rgba(15,18,30,0.08);
    padding: clamp(28px, 4vw, 40px) 0;
  }

.credentials-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 44px;
  }

.credentials img {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
  }

/* ===== FOOTER ===== */
.footer {
    background: var(--ds-color-ink-1);
    color: #fff;
  }

.footer-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 56px;
    padding: 72px 0 56px;
  }

.footer-desc {
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 22px;
    max-width: 320px;
  }

.footer-contact {
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: #fff;
    margin: 0 0 16px;
  }

.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
  }

.footer-contact a:hover {
    color: var(--ds-color-amber);
  }

.footer-charity {
    font-family: var(--ds-font-body);
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0;
  }

.footer-heading {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 22px;
  }

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

.footer-links li {
    margin-bottom: 11px;
  }

.footer-links a {
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
  }

.footer-links a:hover {
    color: var(--ds-color-amber);
  }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

.footer-copy {
    font-family: var(--ds-font-body);
    font-size: 13px;
    color: #fff;
    margin: 0;
  }

.footer-utility {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

.footer-utility a {
    font-family: var(--ds-font-body);
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
  }

.footer-utility a:hover {
    color: var(--ds-color-amber);
  }

/* ===== COMMUNITY STORY SLIDER ===== */
.community {
    background: #fff;
    padding: clamp(80px, 10vw, 128px) 0;
    position: relative;
  }

.community-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.community-head {
    margin: 0 auto 64px;
    max-width: 720px;
  }

.community-slider {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }

/* Photo + decorative shapes */
.community-photo-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    transition: opacity 0.35s ease;
  }

.community-photo-wrap.is-fading {
    opacity: 0.4;
  }

.community-shape {
    position: absolute;
    z-index: 1;
    border-radius: 3px;
  }

.community-shape.shape-yellow {
    top: -22px;
    left: -22px;
    width: 86px;
    height: 160px;
    background: var(--ds-color-amber);
    transform: rotate(-4deg);
  }

.community-shape.shape-teal {
    bottom: -22px;
    right: -22px;
    width: 86px;
    height: 160px;
    background: var(--ds-color-teal);
    transform: rotate(4deg);
  }

.community-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 24px 48px rgba(15,18,30,0.10);
    display: block;
    transition: opacity 0.35s ease;
  }

/* Content side */
.community-content {
    transition: opacity 0.35s ease;
  }

.community-content.is-fading {
    opacity: 0;
  }

.community-quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 96px;
    line-height: 1;
    color: var(--ds-color-navy);
    font-weight: 700;
    height: 40px;
    margin-bottom: 12px;
    display: block;
  }

.community-quote {
    font-family: var(--ds-font-body);
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.45;
    font-weight: 400;
    color: var(--ds-color-ink-1);
    letter-spacing: -0.005em;
    margin: 0 0 32px;
    max-width: 580px;
  }

.community-attribution {
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ds-color-ink-3);
    margin: 0 0 48px;
  }

.community-attribution strong {
    color: var(--ds-color-ink-1);
    font-weight: 700;
  }

/* Nav */
.community-nav {
    display: flex;
    align-items: center;
    gap: 14px;
  }

.community-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(15,18,30,0.18);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-color-ink-1);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0;
  }

.community-nav-btn:hover {
    background: var(--ds-color-ink-1);
    color: #fff;
    border-color: var(--ds-color-ink-1);
  }

.community-indicator {
    font-family: var(--ds-font-body);
    font-size: 13px;
    color: var(--ds-color-ink-3);
    margin-left: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
  }

/* ===== SITE ALERT BANNER (dismissible) ===== */
.site-alert {
    background: var(--ds-color-navy-deep);
    color: #fff;
    font-family: var(--ds-font-body);
  }

.site-alert-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
  }

.site-alert-icon {
    flex-shrink: 0; width: 18px; height: 18px; color: var(--ds-color-amber);
  }

.site-alert-text {
    flex: 1; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.92);
  }

.site-alert-text a {
    color: var(--ds-color-amber); text-decoration: underline;
    text-underline-offset: 2px; font-weight: 600;
  }

.site-alert-close {
    flex-shrink: 0; background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,0.6); padding: 4px; line-height: 0;
    transition: color 0.2s ease;
  }

.site-alert-close:hover { color: #fff; }

.site-alert.is-hidden { display: none; }

.h1 {
    font-family: var(--ds-font-body);
    font-size: clamp(30px, calc(3.9vw - 7.5px), 46px);
    line-height: 1.18;
    letter-spacing: -0.022em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
    max-width: 620px;
  }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--ds-font-body);
  }

.task-title {
    font-family: var(--ds-font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 10px;
  }

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 21px 34px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
  }

.cta-banner-btn:hover { background: var(--ds-color-amber-hover); color: var(--ds-color-ink-1); }

@media (max-width: 1080px) {
  .tasks-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 60px var(--ds-space-gutter) 50px var(--ds-space-gutter); }
  .hero-visual { min-height: 420px; }
  .logo img { height: 56px; }
  .submenu { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding: 56px 0 40px; }
  .community-slider {
        grid-template-columns: 1fr;
        gap: 56px;
      }
  .community-photo-wrap {
        max-width: 480px;
        margin: 0 auto;
      }
  .community-shape.shape-yellow,
      .community-shape.shape-teal {
        width: 60px;
        height: 110px;
      }
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 880px) {
  .about-row-inner { grid-template-columns: 1fr; gap: 56px; }
  .about-row-text { max-width: none; }
  .about-row-shape--teal-tl { width: 70px; height: 130px; }
  .about-row-shape--yellow-br { width: 78px; height: 140px; }
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

@media (max-width: 600px) {
  .site-alert-text { font-size: 13px; }
}

@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (max-width: 540px) {
  .credentials-inner { gap: 20px 28px; }
  .credentials img { height: 44px; max-width: 140px; }
  .tasks-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
}

/* @component nav-dropdown (click state, paired with the hover state above) */
.nav-item-with-children.is-open .nav-toggle { color: var(--ds-color-navy); }
.nav-item-with-children.is-open .nav-toggle::after { width: 100%; }
.nav-item-with-children.is-open .nav-toggle-caret { transform: rotate(180deg); }
.nav-item-with-children.is-open .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

/* @component form-success */
.form-success {
  background: rgba(30, 121, 135, 0.08);
  border: 1px solid rgba(30, 121, 135, 0.35);
  border-radius: 14px;
  padding: 28px 30px;
  font-family: var(--ds-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-color-ink-1);
}
.form-success[hidden] { display: none; }

/* @component skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ds-color-navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: 0 0 10px 0;
  font-family: var(--ds-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* @base focus + media defaults */
:focus-visible {
  outline: 3px solid var(--ds-color-teal);
  outline-offset: 2px;
  border-radius: 2px;
}
img, svg, video { max-width: 100%; }
h1, h2, h3, .h1, .h2, .page-title { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* @component nav-burger */
.nav-burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(15, 18, 30, 0.14);
  border-radius: 10px;
  color: var(--ds-color-ink-1);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-burger:hover { border-color: var(--ds-color-navy); color: var(--ds-color-navy); }
.nav-burger svg { width: 22px; height: 22px; display: block; }

/* @component mobile-nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-head {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--ds-space-gutter);
  border-bottom: 1px solid var(--ds-color-line);
}
.mobile-nav-head img { height: 48px; width: auto; display: block; }
.mobile-nav-close {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(15, 18, 30, 0.14);
  border-radius: 10px;
  color: var(--ds-color-ink-1);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.mobile-nav-close:hover { border-color: var(--ds-color-navy); color: var(--ds-color-navy); }
.mobile-nav-close svg { width: 20px; height: 20px; display: block; }
.mobile-nav-list { display: flex; flex-direction: column; }
.m-item { border-bottom: 1px solid var(--ds-color-line); }
.m-toggle {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--ds-space-gutter);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--ds-font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ds-color-ink-1);
}
.m-toggle[aria-expanded="true"] { color: var(--ds-color-navy); }
.m-caret { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease; }
.m-toggle[aria-expanded="true"] .m-caret { transform: rotate(180deg); }
.m-panel { display: flex; flex-direction: column; padding: 0 var(--ds-space-gutter) 14px; }
.m-panel[hidden] { display: none; }
.m-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-family: var(--ds-font-body);
  font-size: 16px;
  color: var(--ds-color-ink-2);
  text-decoration: none;
  border-top: 1px solid rgba(15, 18, 30, 0.06);
}
.m-panel a:hover { color: var(--ds-color-navy); }
.m-panel a.m-section-link {
  color: var(--ds-color-navy);
  font-weight: 700;
  border-top: 0;
}
.m-cta {
  margin: 22px var(--ds-space-gutter) 40px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-color-navy);
  color: #fff;
  border-radius: 50px;
  font-family: var(--ds-font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.m-cta:hover { background: var(--ds-color-navy-deep); }
body.nav-open { overflow: hidden; }

/* @media chrome */
@media (min-width: 981px) {
  .mobile-nav { display: none; }
}
@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .header-inner { gap: 16px; }
}
@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-content > * { opacity: 1 !important; }
}

/* @base horizontal-overflow guard
   The decorative shape spans sit at left/right: -22px on their media wrapper,
   which is wider than the 20px minimum gutter, so they pushed the document
   past the viewport at phone widths. Clip at the hosting section. */
.about-row,
.community,
.news,
.section-hero,
.office,
.testimonial,
.area-intro,
.related-articles {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  .about-row,
  .community,
  .news,
  .section-hero,
  .office,
  .testimonial,
  .area-intro,
  .related-articles {
    overflow-x: hidden;
  }
}

/* @base coral — the editorial accent
   The rule: navy is structure, amber is interactive, coral is emphasis inside
   reading matter. Coral never lands on anything clickable, so the palette
   stays legible — if it is orange, it is a label, not a control.

   Two values, because coral is a mid-tone: --ds-color-coral for graphic and
   large-text use (3:1 is the bar), --ds-color-coral-deep for anything set as
   small text on a light ground (4.5:1 — plain coral only reaches 3.3:1 there
   and would fail). */

/* Footer column headings: small caps labels on every page, purely structural,
   and they warm the one large dark area in the design. 5:1 on --ds-color-ink-1. */
.footer-heading { color: var(--ds-color-coral); }

/* Inline stat figures — 22px bold counts as large text, so plain coral. */
.about-row-stat-num { color: var(--ds-color-coral); }

/* Utility for an accent word inside a heading, the move the concept brochure
   makes with "stronger communities". Wrap one word, never a whole phrase:
   <h2 class="h2">Building better homes and <span class="accent">stronger
   communities</span></h2> */
.accent { color: var(--ds-color-coral-deep); }

.hero .accent,
.cta-banner .accent { color: var(--ds-color-amber); }

/* @base eyebrows — the logo sets its HOMES | PEOPLE | COMMUNITY pillar line
   as wide-tracked caps. Eyebrows are the same kind of element, so they borrow
   the tracking. Typeface unchanged. */
.eyebrow,
.eyebrow-dark { letter-spacing: 0.16em; }

/* @base section headings in navy — 8.9:1 on white, comfortably AA, and it
   puts the wordmark colour on every section opener. The h2s already sitting
   on navy or a photo inherit their own colour. */
.h2,
.about-row-heading { color: var(--ds-color-navy); }

.cta-banner .h2,
.hero .h2 { color: inherit; }

/* @component btn-secondary
   The outline was tuned for the old purple; on the deeper navy a 32% white
   border fell to 2.3:1 against its own ground, under the 3:1 non-text
   minimum, and read as a faint ghost. Lifted to 50% (3.8:1) with a solid
   white edge on hover. The .btn.btn-secondary specificity is deliberate:
   several pages re-declare the `border` shorthand in their own style block,
   which loads after this file and would reset the colour. */
.btn.btn-secondary { border-color: rgba(255, 255, 255, 0.5); }

.btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* @component decorative tints — one shape of each pair carries the coral so
   the new accent appears on the page rather than sitting unused in :root */
.news-shape--yellow-tl,
.about-row-shape--yellow-br,
.community-shape--yellow { background: var(--ds-color-coral); }

/* @component logo — the new lockup is wider and shorter than the old
   stacked mark, so it needs a little less height to hold the same weight */
.logo img { height: 62px; }
.mobile-nav-head img { height: 44px; }

@media (max-width: 600px) {
  .logo img { height: 50px; }
}

/* ==========================================================================
   Rosehill build additions — net-new components not in the source templates.
   Kept below the ported design-system CSS. Each block is labelled.
   ========================================================================== */

/* ==========================================================================
   Inner / process / FAQ / sidebar components — extracted from the prepared
   templates (page-specific CSS), now shared because these are theme-rendered
   reusable components. Token names mapped to --ds-*.
   ========================================================================== */
/* ==========================================================================
   ROSEHILL — CONSOLIDATED COMPONENT CSS
   Extracted (union, de-duplicated) from the page-specific <style> blocks of:
     - pages/inner-arrears-realistic.html
     - pages/process-repair.html
     - pages/section-tenant.html
   Excludes anything already defined in design-system/styles.css.
   Custom-property references left exactly as written in source.
   ========================================================================== */

/* ---------------------------------------------------------------------
   PAGE HEADER (.page-header, .page-header-inner, .page-back, .page-title, .page-lede)
   Source: inner-arrears-realistic.html / process-repair.html (identical)
   --------------------------------------------------------------------- */
.page-header {
    background: var(--ds-color-navy);
    padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
  }

.page-header-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease, gap 0.2s ease;
  }

.page-back:hover {
    color: var(--ds-color-amber-light);
    gap: 10px;
  }

.page-back-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
  }

.page-back:hover .page-back-arrow {
    transform: translateX(-3px);
  }

.page-title {
    font-family: var(--ds-font-body);
    font-size: clamp(32px, 3.8vw, 48px);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    max-width: 880px;
  }

.page-lede {
    font-family: var(--ds-font-body);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    margin: 0;
    max-width: 720px;
  }

/* ---------------------------------------------------------------------
   PAGE MAIN LAYOUT (.page-main, .page-main-inner grid, .page-content + typography)
   Source: inner-arrears-realistic.html / process-repair.html (identical)
   --------------------------------------------------------------------- */
/* ===== INNER PAGE — MAIN AREA (CONTENT + SIDEBAR) ===== */
.page-main {
    background: #fff;
    padding: clamp(56px, 7vw, 88px) 0;
  }

.page-main-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: clamp(40px, 5vw, 80px);
  }

.page-content {
    max-width: 760px;
  }

/* Block editor styles inside .page-content */
.page-content p {
    font-family: var(--ds-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ds-color-ink-2);
    margin: 0 0 24px;
  }

.page-content h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 48px 0 16px;
  }

.page-content h3 {
    font-family: var(--ds-font-body);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.3;
    margin: 36px 0 12px;
  }

.page-content h2:first-child,
  .page-content h3:first-child { margin-top: 0; }

.page-content a {
    color: var(--ds-color-navy);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 1px;
    transition: border-bottom-color 0.2s ease;
  }

.page-content a:hover {
    border-bottom-color: var(--ds-color-navy);
  }

.page-content strong { color: var(--ds-color-ink-1); font-weight: 700; }

.page-content ul, .page-content ol {
    font-family: var(--ds-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ds-color-ink-2);
    padding-left: 0;
    margin: 0 0 28px;
    list-style: none;
  }

.page-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
  }

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 8px;
    height: 8px;
    background: var(--ds-color-amber);
    border-radius: 50%;
  }

.page-content ol {
    counter-reset: steps;
  }

.page-content ol li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    counter-increment: steps;
  }

.page-content ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    background: var(--ds-color-navy);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
  }

/* ---------------------------------------------------------------------
   EDITORIAL BLOCKS (.callout, .pullquote, .page-figure, .block-button, .editorial-related)
   Source: inner-arrears-realistic.html / process-repair.html (identical)
   --------------------------------------------------------------------- */
/* Callout block - purple left bar, cream bg */
.callout {
    background: var(--ds-color-cream);
    border-left: 4px solid var(--ds-color-navy);
    padding: 22px 28px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 28px;
  }

.callout--warning {
    border-left-color: var(--ds-color-coral);
    background: rgba(233, 99, 73, 0.07);
  }

.callout-title {
    font-family: var(--ds-font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

.callout-icon {
    width: 22px;
    height: 22px;
    color: var(--ds-color-navy);
    flex-shrink: 0;
  }

.callout--warning .callout-icon { color: var(--ds-color-coral-deep); }

.callout p {
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0;
    color: var(--ds-color-ink-2);
  }

.callout p + p { margin-top: 10px; }

/* Pull quote */
.pullquote {
    margin: 36px 0;
    padding: 0 0 0 32px;
    border-left: 4px solid var(--ds-color-amber);
  }

.pullquote p {
    font-family: var(--ds-font-body);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.4;
    color: var(--ds-color-ink-1);
    font-weight: 500;
    margin: 0 0 12px;
    font-style: italic;
  }

.pullquote cite {
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-style: normal;
    color: var(--ds-color-ink-3);
    font-weight: 600;
  }

/* Figure with caption */
.page-figure {
    margin: 36px 0;
    position: relative;
  }

.page-figure-img-wrap {
    position: relative;
  }

.page-figure-img-wrap::before {
    content: '';
    position: absolute;
    background: var(--ds-color-amber);
    width: 80px;
    height: 140px;
    border-radius: 8px;
    top: -16px;
    left: -16px;
    transform: rotate(-6deg);
    z-index: 0;
  }

.page-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    position: relative;
    z-index: 1;
  }

.page-figure figcaption {
    font-family: var(--ds-font-body);
    font-size: 13px;
    color: var(--ds-color-ink-3);
    margin-top: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
  }

/* Button block */
.page-content .block-button {
    margin: 0 0 28px;
  }

.page-content .block-button-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-navy);
    color: #fff;
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 700;
    padding: 19px 28px;
    border-radius: 999px;
    text-decoration: none;
    border-bottom: none;
    transition: background 0.2s ease;
  }

.page-content .block-button-link:hover {
    background: var(--ds-color-navy-deep);
    border-bottom: none;
    color: #fff;
  }

/* Editorial: Related downloads & links — inline within article body */
.editorial-related {
    background: var(--ds-color-cream);
    border-radius: 12px;
    padding: 32px 36px;
    margin: 40px 0;
  }

.editorial-related-title {
    font-family: var(--ds-font-body);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--ds-color-navy);
    margin: 0 0 22px;
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 4px solid var(--ds-color-amber);
    line-height: 1.2;
  }

.editorial-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.editorial-related-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.45;
  }

.editorial-related-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--ds-color-teal);
    border-radius: 2px;
  }

.editorial-related-list a {
    font-family: var(--ds-font-body);
    font-size: 16px;
    color: var(--ds-color-navy);
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 600;
  }

.editorial-related-list a:hover {
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 1px;
  }

.editorial-related-list .meta {
    color: var(--ds-color-ink-3);
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
  }

/* ---------------------------------------------------------------------
   SIDEBAR (.sidebar, .sidebar-block, .sidebar-block--purple, .sidebar-title,
   .sidebar-nav, .sidebar-phone, .sidebar-hours)
   Source: inner-arrears-realistic.html / process-repair.html (identical)
   --------------------------------------------------------------------- */
/* ===== INNER PAGE — SIDEBAR ===== */
.sidebar { position: sticky; top: 32px; align-self: start; }

.sidebar-block {
    background: var(--ds-color-cream);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
  }

.sidebar-block--purple {
    background: var(--ds-color-navy);
    color: #fff;
  }

.sidebar-title {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
  }

.sidebar-block--purple .sidebar-title {
    color: rgba(255,255,255,0.7);
  }

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.sidebar-nav li {
    margin: 0;
  }

.sidebar-nav a {
    display: block;
    padding: 9px 12px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: var(--ds-color-ink-2);
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
  }

.sidebar-nav a:hover {
    background: rgba(30, 121, 135, 0.08);
    color: var(--ds-color-navy);
  }

.sidebar-nav a.is-current {
    background: #fff;
    color: var(--ds-color-navy);
    font-weight: 700;
  }

.sidebar-block--purple p {
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
  }

.sidebar-block--purple .sidebar-phone {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 6px;
  }

.sidebar-block--purple .sidebar-hours {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
  }

/* ---------------------------------------------------------------------
   PROCESS (.steps-summary, .steps-container, .step-card, .step-num,
   .step-body, .step-title, .step-action, .step-note)
   Source: process-repair.html
   --------------------------------------------------------------------- */
.steps-summary {
    background: var(--ds-color-ink-1);
    padding: 22px 0;
  }

.steps-summary-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

.steps-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease;
  }

.steps-summary-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--ds-color-amber);
    font-family: var(--ds-font-body);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

.steps-summary-label {
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
  }

.steps-summary-sep {
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    user-select: none;
  }

/* ===== PROCESS PAGE — STEP CARDS ===== */
.steps-container {
    position: relative;
    padding-left: 8px;
  }

.step-card {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    padding-bottom: 48px;
  }

.step-card:last-child { padding-bottom: 0; }

/* Vertical connector between steps */
.step-card:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 76px;
    bottom: 0;
    width: 2px;
    background: var(--ds-color-amber);
    z-index: 0;
  }

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ds-color-navy);
    color: #fff;
    font-family: var(--ds-font-body);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }

.step-body { padding-top: 10px; }

.step-title {
    font-family: var(--ds-font-body);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.005em;
  }

.step-body p {
    font-family: var(--ds-font-body);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ds-color-ink-2);
    margin: 0 0 18px;
  }

.step-body ul {
    font-family: var(--ds-font-body);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ds-color-ink-2);
    list-style: none;
    padding-left: 0;
    margin: 0 0 22px;
  }

.step-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
  }

.step-body ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--ds-color-amber);
    border-radius: 50%;
  }

.step-body a {
    color: var(--ds-color-navy);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 1px;
  }

.step-body strong { color: var(--ds-color-ink-1); }

.step-action {
    margin: 8px 0 16px;
  }

.page-content .step-action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-navy);
    color: #fff;
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 700;
    padding: 19px 28px;
    border-radius: 999px;
    text-decoration: none;
    border-bottom: none;
    transition: background 0.2s ease;
  }

.page-content .step-action a:hover {
    background: var(--ds-color-navy-deep);
    color: #fff;
    border-bottom: none;
  }

/* Emergency variant — yellow background for step 1 action */
.page-content .step-action.is-urgent a {
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    border-bottom: none;
  }

.page-content .step-action.is-urgent a:hover {
    background: var(--ds-color-amber-hover);
    color: var(--ds-color-ink-1);
    border-bottom: none;
  }

/* Inline step note — small bordered callout */
.step-note {
    background: var(--ds-color-cream);
    border-left: 3px solid var(--ds-color-teal);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0 0;
  }

.step-note-label {
    font-family: var(--ds-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ds-color-teal);
    margin: 0 0 6px;
  }

.step-note p {
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
    color: var(--ds-color-ink-2);
  }

/* ---------------------------------------------------------------------
   FAQ (.faq, .faq-inner, .faq-head, .faq-list, .faq-item, .faq-toggle,
   .faq-answer, .faq-cta)
   Source: inner-arrears-realistic.html / process-repair.html / section-tenant.html (identical)
   --------------------------------------------------------------------- */
.faq {
    background: var(--ds-color-cream);
    padding: clamp(72px, 9vw, 112px) 0;
  }

.faq-inner {
    width: min(100% - var(--ds-space-gutter) * 2, 880px);
    margin: 0 auto;
  }

.faq-head {
    margin: 0 auto 48px;
    text-align: center;
  }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

.faq-item {
    background: #fff;
    border: 1px solid rgba(15,18,30,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
  }

.faq-item[open] { border-color: rgba(30, 121, 135, 0.4); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-family: var(--ds-font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--ds-color-ink-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s ease;
  }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--ds-color-navy); }

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ds-color-cream);
    color: var(--ds-color-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease;
  }

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
    background: var(--ds-color-amber);
  }

.faq-answer {
    padding: 0 26px 24px;
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ds-color-ink-2);
  }

.faq-answer p { margin: 0 0 12px; }

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
    color: var(--ds-color-navy);
    text-decoration: none;
    border-bottom: 1.5px solid var(--ds-color-amber);
    padding-bottom: 1px;
  }

.faq-cta {
    margin: 48px 0 0;
    text-align: center;
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ds-color-ink-2);
  }

.faq-cta a {
    color: var(--ds-color-ink-1);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 3px;
    margin-left: 4px;
    font-weight: 600;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
  }

.faq-cta a:hover {
    color: var(--ds-color-navy);
    border-bottom-color: var(--ds-color-navy);
  }

/* ---------------------------------------------------------------------
   MEDIA QUERIES — targeting only the component families above
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
  .steps-summary-inner { justify-content: flex-start; }
  .steps-summary-sep { display: none; }
  .steps-summary-item { flex: 0 0 auto; }
}

@media (max-width: 540px) {
  .step-card { grid-template-columns: 48px 1fr; gap: 18px; }
  .step-num { width: 48px; height: 48px; font-size: 20px; }
  .step-card:not(:last-child)::before { left: 24px; top: 56px; }
}

@media (max-width: 880px) {
  .page-main-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* @rosehill page-content tables */
.page-content thead th {background: var(--ds-color-cream);
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--ds-color-ink-1);}
.page-content tbody td {padding: 14px 16px;
    border-bottom: 1px solid rgba(15,18,30,0.06);
    color: var(--ds-color-ink-2);
    line-height: 1.5;}
.page-content tbody tr:last-child td {border-bottom: none;}

/* ==========================================================================
   Vacancies + News components — extracted from jobs/news templates, shared
   as theme-rendered components. Token names mapped to --ds-*.
   ========================================================================== */
/* ==========================================================================
   Rosehill — Jobs & News component CSS
   Extracted verbatim from the inline <style> blocks of:
     jobs-listing.html, job-detail.html, news-listing.html, news-article.html
   Excludes anything already covered by the shared design-system/styles.css
   or by the already-handled families (.page-header, .page-main, .page-content,
   .sidebar, .cta-banner, .callout, .pullquote, .page-figure, .block-button,
   .editorial-related, .faq, .steps-*).
   ========================================================================== */

/* ---- WORKING HERE — "why work with us" band (jobs-listing.html) ---- */
/* ===== WORKING HERE — 3 highlight items, simple inline strip ===== */
.working-here {
    background: #fff;
    padding: clamp(64px, 8vw, 88px) 0;
  }

.working-here-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.working-here-head {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 640px;
  }

.working-here-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.7vw, 30px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.005em;
  }

.working-here-head p {
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

.working-here-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

.working-here-item {
    text-align: left;
  }

.working-here-icon {
    width: 36px;
    height: 36px;
    color: var(--ds-color-teal);
    margin-bottom: 16px;
  }

.working-here-icon svg { width: 100%; height: 100%; display: block; }

.working-here-title {
    font-family: var(--ds-font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 8px;
    line-height: 1.25;
  }

.working-here-desc {
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

@media (max-width: 720px) {
  .working-here-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- VACANCIES LISTING — flat-row list + repeating .vacancy unit (jobs-listing.html) ---- */
/* ===== VACANCIES LIST — flat rows, no heavy card framing ===== */
.vacancies {
    background: var(--ds-color-cream);
    padding: clamp(64px, 8vw, 88px) 0;
    scroll-margin-top: 24px;
  }

.vacancies-inner {
    width: min(100% - var(--ds-space-gutter) * 2, 900px);
    margin: 0 auto;
  }

.vacancies-head {
    margin: 0 auto 32px;
    text-align: center;
  }

.vacancies-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.7vw, 30px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.005em;
  }

.vacancies-meta {
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: var(--ds-color-ink-3);
    margin: 0;
  }

.vacancies-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15,18,30,0.07);
  }

.vacancy {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15,18,30,0.06);
    transition: background 0.2s ease;
  }

.vacancy:last-child { border-bottom: none; }

.vacancy:hover { background: var(--ds-color-cream); }

.vacancy-body {
    flex: 1;
    min-width: 0;
  }

.vacancy-title {
    font-family: var(--ds-font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.005em;
  }

.vacancy-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--ds-font-body);
    font-size: 13.5px;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

.vacancy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

.vacancy-meta svg {
    width: 14px;
    height: 14px;
    color: var(--ds-color-navy);
  }

.vacancy-closing {
    flex-shrink: 0;
    text-align: right;
  }

.vacancy-closing-label {
    font-family: var(--ds-font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 4px;
  }

.vacancy-closing-date {
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0;
  }

.vacancy-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
  }

.vacancy:hover .vacancy-arrow {
    background: var(--ds-color-amber-hover);
    transform: translateX(3px);
  }

@media (max-width: 720px) {
  .vacancy { flex-direction: column; align-items: flex-start; gap: 16px; }
  .vacancy-closing { text-align: left; }
  .vacancy-arrow { align-self: flex-end; }
}

/* ---- JOB DETAIL — page-header meta strip (job-detail.html) ---- */
/* ===== JOB DETAIL — HEADER META STRIP ===== */
.job-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 20px 0 0;
    padding-top: 4px;
  }

.job-meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
  }

.job-meta-strip svg {
    width: 16px;
    height: 16px;
    color: var(--ds-color-amber);
    flex-shrink: 0;
  }

/* ---- APPLY BOX — sidebar apply panel (job-detail.html) ---- */
/* ===== JOB DETAIL — APPLY SIDEBAR ===== */
.apply-box {
    background: var(--ds-color-navy);
    color: #fff;
    border-radius: 14px;
    padding: 26px;
    margin-bottom: 20px;
  }

.apply-box-title {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
  }

.apply-box-deadline {
    font-family: var(--ds-font-body);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
  }

.apply-box-days {
    font-family: var(--ds-font-body);
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 22px;
  }

.apply-box-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.2s ease;
  }

.apply-box-btn:hover { background: var(--ds-color-amber-hover); color: var(--ds-color-ink-1); }

.apply-box-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

.apply-box-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
  }

/* ---- OTHER VACANCIES — sidebar cross-links (job-detail.html) ---- */
/* ===== JOB DETAIL — OTHER VACANCIES IN SIDEBAR ===== */
.other-vacancies {
    background: var(--ds-color-cream);
    border-radius: 14px;
    padding: 24px;
  }

.other-vacancies-title {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
  }

.other-vacancies a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(15,18,30,0.08);
    font-family: var(--ds-font-body);
  }

.other-vacancies a:last-child { border-bottom: none; padding-bottom: 0; }

.other-vacancies a:first-child { padding-top: 0; }

.other-vacancies-job-title {
    color: var(--ds-color-ink-1);
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 4px;
    line-height: 1.3;
    transition: color 0.2s ease;
  }

.other-vacancies a:hover .other-vacancies-job-title { color: var(--ds-color-navy); }

.other-vacancies-job-meta {
    font-size: 12.5px;
    color: var(--ds-color-ink-3);
    margin: 0;
  }

/* ---- NEWS FILTER — chip row (news-listing.html) ---- */
/* ===== NEWS LISTING — FILTER BAR ===== */
.news-filter {
    background: #fff;
    border-bottom: 1px solid rgba(15,18,30,0.06);
    padding: 24px 0;
  }

.news-filter-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

.news-filter-label {
    font-family: var(--ds-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 8px;
  }

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1.5px solid rgba(15,18,30,0.15);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    cursor: pointer;
  }

.news-filter-chip:hover {
    border-color: var(--ds-color-navy);
    color: var(--ds-color-navy);
  }

.news-filter-chip.is-active {
    background: var(--ds-color-navy);
    border-color: var(--ds-color-navy);
    color: #fff;
  }

@media (max-width: 720px) {
  .news-filter-inner { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .news-filter-label { flex-shrink: 0; }
  .news-filter-chip { flex-shrink: 0; }
}

/* ---- NEWS ARCHIVE LISTING + CARD (news-listing.html) ----
   .news-grid here is the archive-specific 2-column variant (repeat(2,1fr),
   gap 40px 32px) and .news-grid-card/-media/-meta/-title/-excerpt are
   distinct class names from the shared .news-card family in styles.css
   (repeat(3,1fr) grid, .news-card/.news-media/.news-title/etc) — kept
   because they differ from what's already in the shared sheet. */
/* ===== NEWS LISTING — GRID ===== */
.news-listing {
    background: #fff;
    padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  }

.news-listing-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.news-listing-meta {
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: var(--ds-color-ink-3);
    margin: 0 0 28px;
  }

.news-listing-meta strong {
    color: var(--ds-color-ink-1);
    font-weight: 700;
  }

/* Article grid — 3-column on desktop, falls to 2 then 1 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

.news-grid-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }

.news-grid-card:hover { transform: translateY(-3px); }

.news-grid-media {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ds-color-cream);
    margin-bottom: 18px;
    z-index: 1;
  }

.news-grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

.news-grid-card:hover .news-grid-media img { transform: scale(1.04); }

.news-grid-meta {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 10px;
  }

.news-grid-title {
    font-family: var(--ds-font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
  }

.news-grid-excerpt {
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
    flex-grow: 1;
  }

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---- NEWS PAGINATION (news-listing.html) ---- */
/* ===== PAGINATION ===== */
.pagination-wrap {
    background: #fff;
    padding: clamp(32px, 4vw, 48px) 0 clamp(64px, 8vw, 96px);
  }

.pagination {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

.pagination-btn,
  .pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-color-ink-1);
    text-decoration: none;
    border: 1.5px solid rgba(15,18,30,0.12);
    background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }

.pagination-num:hover,
  .pagination-btn:hover {
    border-color: var(--ds-color-navy);
    color: var(--ds-color-navy);
  }

.pagination-num.is-current {
    background: var(--ds-color-navy);
    border-color: var(--ds-color-navy);
    color: #fff;
  }

.pagination-num.is-current:hover {
    color: #fff;
  }

.pagination-ellipsis {
    color: var(--ds-color-ink-3);
    padding: 0 4px;
    font-weight: 700;
  }

.pagination-btn svg { width: 14px; height: 14px; }

.pagination-btn.is-disabled {
    color: var(--ds-color-ink-3);
    border-color: rgba(15,18,30,0.08);
    pointer-events: none;
    opacity: 0.5;
  }

/* ---- ARTICLE HEADER — purple header, byline (news-article.html) ---- */
/* ===== NEWS ARTICLE — HEADER (purple, matches other page headers) ===== */
.article-header {
    background: var(--ds-color-navy);
    padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 64px);
  }

.article-header-inner {
    width: min(100% - var(--ds-space-gutter) * 2, 820px);
    margin: 0 auto;
  }

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease, gap 0.2s ease;
  }

.article-back:hover {
    color: var(--ds-color-amber-light);
    gap: 10px;
  }

.article-back-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
  }

.article-back:hover .article-back-arrow {
    transform: translateX(-3px);
  }

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

.article-tag {
    display: inline-flex;
    align-items: center;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 999px;
  }

.article-date {
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
  }

.article-title {
    font-family: var(--ds-font-body);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 20px;
  }

.article-lede {
    font-family: var(--ds-font-body);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
    margin: 0 0 28px;
    font-weight: 500;
  }

.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--ds-font-body);
    font-size: 14px;
  }

.article-byline-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ds-color-cream);
    overflow: hidden;
    flex-shrink: 0;
  }

.article-byline-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-byline-text { color: rgba(255,255,255,0.7); }

.article-byline-text strong { color: #fff; font-weight: 700; }

.article-byline-read-time { margin-left: auto; color: rgba(255,255,255,0.55); font-size: 13px; }

/* ---- ARTICLE BODY — reading column, inline figure, typography aliasing (news-article.html) ---- */
/* ===== ARTICLE BODY — centred reading column ===== */
.article-body {
    background: #fff;
    padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 80px);
  }

.article-body-inner {
    width: min(100% - var(--ds-space-gutter) * 2, 800px);
    margin: 0 auto;
  }

/* Inherits all .page-content styles via class reuse */
/* Inline figure in article body — landscape, with shape accent */
.article-figure {
    margin: 32px 0 36px;
  }

.article-figure-img-wrap {
    position: relative;
  }

.article-figure-img-wrap::before {
    content: '';
    position: absolute;
    background: var(--ds-color-amber);
    width: 80px;
    height: 140px;
    border-radius: 8px;
    top: -16px;
    left: -16px;
    transform: rotate(-6deg);
    z-index: 0;
  }

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    position: relative;
    z-index: 1;
  }

.article-figure figcaption {
    font-family: var(--ds-font-body);
    font-size: 13px;
    color: var(--ds-color-ink-3);
    margin-top: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
  }

/* News article uses .article-body wrapper instead of .page-content;
     re-apply page-content styles by aliasing the class via .article-body */
.article-body-inner h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 48px 0 16px;
  }

.article-body-inner h2:first-child { margin-top: 0; }

.article-body-inner p {
    font-family: var(--ds-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ds-color-ink-2);
    margin: 0 0 24px;
  }

.article-body-inner a {
    color: var(--ds-color-navy);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 1px;
  }

.article-body-inner strong { color: var(--ds-color-ink-1); font-weight: 700; }

/* ---- SHARE BAR (news-article.html) ---- */
/* ===== SHARE BAR ===== */
.share-bar {
    background: var(--ds-color-cream);
    padding: clamp(32px, 4vw, 48px) 0;
  }

.share-bar-inner {
    width: min(100% - var(--ds-space-gutter) * 2, 800px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

.share-bar-label {
    font-family: var(--ds-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-color-ink-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 8px;
  }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(15,18,30,0.1);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

.share-btn:hover {
    border-color: var(--ds-color-navy);
    color: var(--ds-color-navy);
    transform: translateY(-1px);
  }

.share-btn svg { width: 16px; height: 16px; }

/* ---- RELATED ARTICLES (news-article.html) ---- */
/* ===== RELATED ARTICLES ===== */
.related-articles {
    background: #fff;
    padding: clamp(64px, 8vw, 96px) 0;
    border-top: 1px solid rgba(15,18,30,0.06);
  }

.related-articles-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.related-articles-head {
    margin: 0 auto 40px;
    text-align: center;
  }

.related-articles-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0;
    line-height: 1.2;
  }

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

.related-article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }

.related-article-card:hover { transform: translateY(-3px); }

.related-article-media {
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ds-color-cream);
    margin-bottom: 18px;
  }

.related-article-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
  }

.related-article-card:hover .related-article-media img { transform: scale(1.04); }

.related-article-meta {
    font-family: var(--ds-font-body);
    font-size: 12px; font-weight: 600;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }

.related-article-title {
    font-family: var(--ds-font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
  }

.related-article-excerpt {
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

@media (max-width: 900px) {
  .related-articles-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   People cards / Timeline / Library — net-new components (no source template;
   built to the design system for the Our People and Library pages).
   ========================================================================== */

/* @rosehill people-cards */
.people-cards { margin: 8px 0; }
.people-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 28px;
}
.person-card { display: flex; flex-direction: column; }
.person-photo {
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: var(--ds-color-cream); margin-bottom: 16px;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-name {
  font-family: var(--ds-font-body); font-size: 19px; font-weight: 700;
  color: var(--ds-color-navy); line-height: 1.25; margin: 0;
}
.person-role {
  font-family: var(--ds-font-body); font-size: 14px; font-weight: 600;
  color: var(--ds-color-ink-3); margin: 4px 0 0;
}
.person-bio {
  font-family: var(--ds-font-body); font-size: 14px; line-height: 1.55;
  color: var(--ds-color-ink-2); margin-top: 12px;
}
.person-bio p { margin: 0 0 10px; }
/* Names-only variant (Staff Team) */
.people-cards--names .people-cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 28px; }
.people-cards--names .person-card {
  padding: 14px 0; border-top: 1px solid var(--ds-color-line); flex-direction: row;
  justify-content: space-between; align-items: baseline; gap: 12px;
}
.people-cards--names .person-name { font-size: 16px; }
.people-cards--names .person-role { margin: 0; text-align: right; }

/* @rosehill timeline */
.timeline { margin: 8px 0; }
.timeline-inner { position: relative; padding-left: 34px; }
.timeline-inner::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--ds-color-line);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  position: relative; display: inline-block;
  font-family: var(--ds-font-body); font-size: 15px; font-weight: 700;
  color: var(--ds-color-navy); margin-bottom: 8px;
}
.timeline-year::before {
  content: ""; position: absolute; left: -34px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ds-color-amber); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ds-color-amber);
}
.timeline-title {
  font-family: var(--ds-font-body); font-size: 20px; font-weight: 700;
  color: var(--ds-color-ink-1); line-height: 1.25; margin: 0 0 8px;
}
.timeline-body { font-family: var(--ds-font-body); font-size: 16px; line-height: 1.6; color: var(--ds-color-ink-2); }
.timeline-body p { margin: 0 0 12px; }
.timeline-photo { margin-top: 16px; }
.timeline-photo img { border-radius: 12px; max-width: 420px; }

/* @rosehill doc-list (Library) */
.doc-list { margin: 8px 0; }
.doc-group { margin-bottom: 40px; }
.doc-group-title {
  font-family: var(--ds-font-body); font-size: 22px; font-weight: 700;
  color: var(--ds-color-navy); margin: 0 0 16px;
}
.doc-items { list-style: none; margin: 0; padding: 0; }
.doc-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ds-color-line);
}
.doc-item a {
  font-family: var(--ds-font-body); font-size: 16px; font-weight: 600;
  color: var(--ds-color-navy); text-decoration: none;
  border-bottom: 2px solid var(--ds-color-amber); padding-bottom: 2px;
}
.doc-item a:hover { color: var(--ds-color-navy-deep); }
.doc-meta { font-family: var(--ds-font-body); font-size: 13px; color: var(--ds-color-ink-3); white-space: nowrap; }

/* ========================================================================== 
   Contact page components (deflect / office / emergency / teams / form).
   Token names mapped to --ds-*.
   ========================================================================== */
/* ============================================================
   CONTACT PAGE — extracted reusable component CSS
   Source: pages/contact.html inline <style> block
   Excludes: .page-header, .page-main, .cta-banner, .sidebar,
   and general chrome (handled elsewhere).
   ============================================================ */

/* --------------------------------------------------------------
   DEFLECT — self-service deflection tiles
   ("Are you trying to...?" quick-link grid)
   -------------------------------------------------------------- */
.deflect {
    background: #fff;
    padding: clamp(64px, 8vw, 88px) 0;
  }

.deflect-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.deflect-head {
    text-align: center;
    margin: 0 auto 40px;
  }

.deflect-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.005em;
  }

.deflect-head p {
    font-family: var(--ds-font-body);
    font-size: 16px;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

.deflect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

.deflect-tile {
    background: #fff;
    border: 1px solid rgba(15,18,30,0.07);
    border-radius: 16px;
    padding: 24px 22px 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }

.deflect-tile:hover {
    transform: translateY(-2px);
    border-color: var(--ds-color-teal);
    box-shadow: 0 8px 24px rgba(15,18,30,0.05);
  }

.deflect-icon {
    width: 36px;
    height: 36px;
    color: var(--ds-color-teal);
  }

.deflect-icon svg { width: 100%; height: 100%; display: block; }

.deflect-title {
    font-family: var(--ds-font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.005em;
  }

.deflect-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ds-color-amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-end;
    color: var(--ds-color-ink-1);
    transition: background 0.2s ease, transform 0.2s ease;
  }

.deflect-tile:hover .deflect-arrow {
    background: var(--ds-color-amber-hover);
    transform: translateX(3px);
  }

@media (max-width: 980px) {
  .deflect-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .deflect-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------
   OFFICE — office details + map/photo panel
   -------------------------------------------------------------- */
.office {
    background: var(--ds-color-cream);
    padding: clamp(72px, 9vw, 112px) 0;
  }

.office-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }

.office-head {
    margin: 0 0 28px;
  }

.office-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(26px, 2.9vw, 34px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

.office-head p {
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

.office-details {
    display: grid;
    gap: 24px;
  }

.office-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

.office-detail-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--ds-color-navy);
  }

.office-detail-icon svg { width: 100%; height: 100%; display: block; }

.office-detail-label {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-color-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 6px 0 4px;
  }

.office-detail-value {
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ds-color-ink-1);
    margin: 0;
  }

.office-detail-value a {
    color: var(--ds-color-ink-1);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

.office-detail-value a:hover {
    color: var(--ds-color-navy);
    border-bottom-color: var(--ds-color-navy);
  }

.office-media {
    position: relative;
    aspect-ratio: 4/3;
  }

.office-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
  }

.office-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

.office-shape {
    position: absolute;
    border-radius: 10px;
    z-index: 0;
  }

.office-shape--teal-tl {
    background: var(--ds-color-teal);
    width: 95px;
    height: 170px;
    top: -22px;
    left: -22px;
    transform: rotate(-6deg);
  }

.office-shape--yellow-br {
    background: var(--ds-color-amber);
    width: 105px;
    height: 180px;
    bottom: -22px;
    right: -22px;
    transform: rotate(-6deg);
  }

@media (max-width: 880px) {
  .office-shape--teal-tl { width: 65px; height: 120px; }
  .office-shape--yellow-br { width: 72px; height: 130px; }
}

@media (max-width: 880px) {
  .office-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* --------------------------------------------------------------
   EMERGENCY — out-of-hours emergency repairs band
   -------------------------------------------------------------- */
.emergency {
    background: var(--ds-color-ink-1);
    padding: clamp(40px, 5vw, 56px) 0;
  }

.emergency-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
  }

.emergency-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(245, 160, 15, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-color-amber);
  }

.emergency-icon svg { width: 28px; height: 28px; }

.emergency-text {
    flex: 1;
    min-width: 240px;
  }

.emergency-label {
    font-family: var(--ds-font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-color-amber);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 4px;
  }

.emergency-title {
    font-family: var(--ds-font-body);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
  }

.emergency-body {
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    margin: 0;
    line-height: 1.5;
  }

.emergency-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    padding: 16px 26px;
    border-radius: 999px;
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }

.emergency-cta:hover { background: var(--ds-color-amber-hover); }

@media (max-width: 720px) {
  .emergency-cta { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------
   TEAMS — team contact cards grid
   -------------------------------------------------------------- */
.teams {
    background: #fff;
    padding: clamp(72px, 9vw, 112px) 0;
  }

.teams-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }

.teams-head {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 640px;
  }

.teams-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(26px, 2.9vw, 34px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

.teams-head p {
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
  }

.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

.team-card {
    background: #fff;
    border: 1px solid rgba(15,18,30,0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

.team-card:hover {
    border-color: var(--ds-color-teal);
    box-shadow: 0 8px 24px rgba(15,18,30,0.05);
  }

.team-card-icon {
    width: 44px;
    height: 44px;
    color: var(--ds-color-teal);
    margin-bottom: 18px;
  }

.team-card-icon svg { width: 100%; height: 100%; display: block; }

.team-card-title {
    font-family: var(--ds-font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
  }

.team-card-desc {
    font-family: var(--ds-font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0 0 20px;
    flex-grow: 1;
  }

.team-card-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(15,18,30,0.08);
  }

.team-card-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    color: var(--ds-color-ink-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
  }

.team-card-contact:hover { color: var(--ds-color-navy); }

.team-card-contact svg {
    width: 16px;
    height: 16px;
    color: var(--ds-color-navy);
    flex-shrink: 0;
  }

@media (max-width: 720px) {
  .teams-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------
   CONTACT FORM — fields, labels, consent checkbox, submit button
   NOTE: .contact-form-section / .contact-form-inner / .contact-form-head
   (the outer section wrapper + heading) are treated as page-section
   chrome and are NOT included here, matching the narrower scope the
   task defined (".contact-form" + form fields, not the full section).
   .form-success was NOT found anywhere in contact.html, and it already
   exists in design-system/styles.css, so nothing is emitted for it.
   -------------------------------------------------------------- */
.contact-form {
    background: #fff;
    border-radius: 16px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(15,18,30,0.06);
  }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

.form-field-gap-sm { margin-bottom: 20px; }
.form-field-gap-lg { margin-bottom: 24px; }

.form-field-full { grid-column: 1 / -1; }

.form-label {
    font-family: var(--ds-font-body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
  }

.form-label .required { color: var(--ds-color-coral-deep); }

.form-input,
  .form-select,
  .form-textarea {
    font-family: var(--ds-font-body);
    font-size: 15px;
    color: var(--ds-color-ink-1);
    background: #fff;
    border: 1.5px solid rgba(15,18,30,0.15);
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
  }

.form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--ds-color-navy);
    box-shadow: 0 0 0 3px rgba(30, 121, 135, 0.15);
  }

.form-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--ds-font-body);
    line-height: 1.55;
  }

.form-help {
    font-family: var(--ds-font-body);
    font-size: 12.5px;
    color: var(--ds-color-ink-3);
    margin: 4px 0 0;
  }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin-bottom: 20px;
  }

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--ds-color-navy);
    margin-top: 2px;
    flex-shrink: 0;
  }

.form-checkbox a {
    color: var(--ds-color-navy);
    text-decoration: none;
    border-bottom: 1.5px solid var(--ds-color-amber);
    padding-bottom: 1px;
  }

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-navy);
    color: #fff;
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 700;
    padding: 19px 32px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }

.form-submit:hover {
    background: var(--ds-color-navy-deep);
  }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Content-drop markers (inc/content-markers.php). Staging only: stripped from
   the public page once the site is open to search engines.
   .rh-gap  = a fact, download or image Rosehill still owes
   .rh-note = a note for whoever is editing the page
   ========================================================================== */
.rh-gap,
.page-content p.rh-gap {
    display: block;
    margin: 18px 0;
    padding: 12px 16px 12px 44px;
    position: relative;
    border: 1.5px dashed #C0392B;
    border-radius: 8px;
    background: #FDF1EF;
    color: #8E2A1F;
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 600;
  }
.rh-gap::before {
    content: "!";
    position: absolute;
    left: 14px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C0392B;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
  }
.rh-gap--inline {
    display: inline;
    margin: 0;
    padding: 1px 6px;
    border-width: 1px;
    border-radius: 4px;
    font-size: inherit;
  }
.rh-gap--inline::before { content: none; }
.rh-note,
.page-content p.rh-note {
    display: block;
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--ds-color-amber, #E8A33D);
    border-radius: 0 8px 8px 0;
    background: #FFF8E8;
    color: #5B4A1E;
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
  }
.rh-note::before {
    content: "Note for editors: ";
    font-style: normal;
    font-weight: 700;
  }
/* Lists inside the marker classes must not pick up the page-content bullets. */
.page-content .rh-gap a, .page-content .rh-note a { color: inherit; }

.footer-registrations {
    font-family: var(--ds-font-body);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.01em;
    margin: 0 0 22px;
    max-width: 980px;
  }

/* ==========================================================================
   Front-door templates (section landing, area page, homepage tweaks).
   Extracted from the inline <style> of section-tenant.html, area-pollok.html
   and homepage.html; token names mapped to --ds-*. Rules that differ from the
   shared stylesheet are scoped to a body class (rh-tpl-*) so they stay on
   their own pages.
   ========================================================================== */

/* ---- from the section template ---- */
:where(.rh-tpl-section) .hero-visual {
    position: relative;
    background: linear-gradient(135deg, var(--ds-color-teal) 0%, var(--ds-color-navy) 100%);
    overflow: hidden;
  }
.highlights {
    background: var(--ds-color-ink-1);
    color: #fff;
  }
.highlights-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
.highlight-head {
    display: flex;
    align-items: center;
    gap: 14px;
  }
.highlight-title {
    font-family: var(--ds-font-body);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
  }
.highlight-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
.highlight-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }
.highlight-icon svg .icon-line {
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
.highlight-icon svg .icon-detail {
    fill: var(--ds-color-teal);
  }
.highlight-text {
    font-family: var(--ds-font-body);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
    margin: 0;
  }
.highlight-item {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
.highlight-item:nth-child(1) {
    animation-delay: 0.75s;
  }
.highlight-item:nth-child(2) {
    animation-delay: 0.85s;
  }
.highlight-item:nth-child(3) {
    animation-delay: 0.95s;
  }
.highlight-item:nth-child(4) {
    animation-delay: 1.05s;
  }
@media (max-width: 980px) {
  .highlights-inner {
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
      padding: 28px 0;
    }
}
@media (max-width: 560px) {
  .highlights-inner {
      grid-template-columns: 1fr;
    }
}
:where(.rh-tpl-section) .news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }
:where(.rh-tpl-section) .cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
:where(.rh-tpl-section) .cta-banner-btn:hover {
    background: var(--ds-color-amber-hover);
  }
.section-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
.section-hero-left {
    background: var(--ds-color-navy);
    padding: clamp(56px, 6.5vw, 80px) 0 clamp(56px, 6.5vw, 80px) var(--ds-space-content-offset);
    padding-right: clamp(40px, 5vw, 72px);
    display: flex;
    align-items: center;
  }
.section-hero-content {
    max-width: 540px;
  }
.section-hero-title {
    font-family: var(--ds-font-body);
    font-size: clamp(32px, 3.8vw, 48px);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 20px;
  }
.section-hero-intro {
    font-family: var(--ds-font-body);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    margin: 0 0 32px;
  }
.section-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
.section-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
.section-hero-btn-primary:hover {
    background: var(--ds-color-amber-hover);
  }
.section-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    font-family: var(--ds-font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
.section-hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
  }
.section-hero-right {
    position: relative;
    overflow: hidden;
  }
.section-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
@media (max-width: 880px) {
  .section-hero {
      grid-template-columns: 1fr;
    }
  .section-hero-left {
      padding: 64px var(--ds-space-gutter);
    }
  .section-hero-right {
      min-height: 320px;
    }
}
.quick-links {
    background: var(--ds-color-ink-1);
    color: #fff;
  }
.quick-links-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
.quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    text-decoration: none;
    color: #fff;
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s ease;
    position: relative;
  }
.quick-link:last-child {
    border-right: none;
  }
.quick-link:hover {
    background: rgba(255,255,255,0.05);
  }
.quick-link-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
.quick-link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }
.quick-link-icon svg .icon-line {
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
.quick-link-icon svg .icon-detail {
    fill: var(--ds-color-teal);
  }
.quick-link-arrow {
    margin-left: auto;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease, transform 0.2s ease;
  }
.quick-link:hover .quick-link-arrow {
    color: var(--ds-color-amber);
    transform: translateX(3px);
  }
@media (max-width: 980px) {
  .quick-links-inner {
      grid-template-columns: repeat(2, 1fr);
    }
  .quick-link:nth-child(2) {
      border-right: none;
    }
  .quick-link:nth-child(1), .quick-link:nth-child(2) {
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}
@media (max-width: 540px) {
  .quick-links-inner {
      grid-template-columns: 1fr;
    }
  .quick-link {
      border-right: none;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
  .quick-link:last-child {
      border-bottom: none;
    }
}
.topics {
    background: #fff;
    padding: clamp(80px, 10vw, 120px) 0;
  }
.topics-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }
.topics-head {
    margin: 0 auto 56px;
    max-width: 720px;
    text-align: center;
  }
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
.topic-card {
    background: #fff;
    border: 1px solid rgba(15,18,30,0.08);
    border-radius: 16px;
    padding: 32px 28px 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
.topic-card:hover {
    transform: translateY(-3px);
    border-color: var(--ds-color-teal);
    box-shadow: 0 12px 28px rgba(15,18,30,0.06);
  }
.topic-icon {
    width: 36px;
    height: 36px;
    color: var(--ds-color-teal);
    margin-bottom: 22px;
  }
.topic-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }
.topic-title {
    font-family: var(--ds-font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
  }
.topic-desc {
    font-family: var(--ds-font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0 0 24px;
    flex-grow: 1;
  }
.topic-link {
    font-family: var(--ds-font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ds-color-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 3px;
    align-self: flex-start;
    transition: gap 0.2s ease;
  }
.topic-card:hover .topic-link {
    gap: 10px;
  }
@media (max-width: 900px) {
  .topics-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
  .topics-grid {
      grid-template-columns: 1fr;
    }
}
.testimonial {
    background: #fff;
    padding: clamp(80px, 10vw, 120px) 0;
  }
.testimonial-inner {
    width: min(100% - var(--ds-space-gutter) * 2, 980px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
  }
.testimonial-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }
.testimonial-photo-img {
    object-position: center 30%;
  }
.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
.testimonial-quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 64px;
    color: var(--ds-color-navy);
    line-height: 0.5;
    margin-bottom: 12px;
    display: block;
  }
.testimonial-quote {
    font-family: var(--ds-font-body);
    font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.4;
    color: var(--ds-color-ink-1);
    margin: 0 0 20px;
    font-weight: 500;
  }
.testimonial-attribution {
    font-family: var(--ds-font-body);
    font-size: 14px;
    color: var(--ds-color-ink-3);
  }
.testimonial-attribution strong {
    color: var(--ds-color-ink-1);
    font-weight: 700;
  }
@media (max-width: 720px) {
  .testimonial-inner {
      grid-template-columns: 1fr;
      gap: 32px;
      text-align: center;
    }
  .testimonial-photo {
      margin: 0 auto;
      width: 180px;
      height: 180px;
    }
}
.nav-item-with-children.is-current .nav-toggle {
    color: var(--ds-color-navy);
  }
.nav-item-with-children.is-current .nav-toggle::after {
    width: 100%;
  }
.about-row:has(+ .testimonial) {
    padding-bottom: clamp(40px, 5vw, 60px);
  }
.about-row + .testimonial {
    padding-top: clamp(40px, 5vw, 60px);
  }

/* ---- from the area template ---- */
:where(.rh-tpl-area) .hero-visual {
    position: relative;
    background: linear-gradient(135deg, var(--ds-color-teal) 0%, var(--ds-color-navy) 100%);
    overflow: hidden;
  }
:where(.rh-tpl-area) .news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }
:where(.rh-tpl-area) .cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
:where(.rh-tpl-area) .cta-banner-btn:hover {
    background: var(--ds-color-amber-hover);
  }
.area-intro {
    background: #fff;
    padding: clamp(64px, 8vw, 96px) 0;
  }
.area-intro-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
.area-intro-text h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
  }
.area-intro-text p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ds-color-ink-2);
    margin: 0 0 16px;
  }
.area-intro-media {
    position: relative;
  }
.area-intro-media::before {
    content: '';
    position: absolute;
    background: var(--ds-color-lilac);
    width: 90px;
    height: 160px;
    border-radius: 10px;
    top: -20px;
    left: -20px;
    transform: rotate(-7deg);
    z-index: 0;
  }
.area-intro-media::after {
    content: '';
    position: absolute;
    background: var(--ds-color-amber);
    width: 80px;
    height: 140px;
    border-radius: 10px;
    bottom: -18px;
    right: -18px;
    transform: rotate(6deg);
    z-index: 0;
  }
.area-intro-photo {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
  }
.area-intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
@media (max-width: 880px) {
  .area-intro-inner {
      grid-template-columns: 1fr;
    }
}
.area-stats {
    background: var(--ds-color-lilac-soft);
    padding: clamp(40px, 5vw, 56px) 0;
  }
.area-stats-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
  }
.area-stat-num {
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--ds-color-navy);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
.area-stat-label {
    font-size: 14px;
    color: var(--ds-color-ink-2);
    line-height: 1.4;
  }
@media (max-width: 680px) {
  .area-stats-inner {
      grid-template-columns: repeat(2, 1fr);
      gap: 32px 24px;
    }
}
.area-doing {
    background: #fff;
    padding: clamp(64px, 8vw, 96px) 0;
  }
.area-doing-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }
.area-doing-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
  }
.area-doing-head h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(26px, 2.9vw, 34px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
.area-doing-head p {
    font-size: 16px;
    color: var(--ds-color-ink-2);
    line-height: 1.55;
    margin: 0;
  }
.area-doing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
.area-doing-card {
    background: #fff;
    border: 1px solid var(--ds-color-line);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
.area-doing-card:hover {
    border-color: var(--ds-color-teal);
    box-shadow: 0 8px 24px rgba(15,18,30,0.05);
  }
.area-doing-icon {
    width: 44px;
    height: 44px;
    color: var(--ds-color-teal);
    margin-bottom: 16px;
  }
.area-doing-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }
.area-doing-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0 0 8px;
    line-height: 1.25;
  }
.area-doing-card p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ds-color-ink-2);
    margin: 0;
  }
@media (max-width: 880px) {
  .area-doing-grid {
      grid-template-columns: 1fr;
    }
}
.other-areas {
    background: var(--ds-color-cream);
    padding: clamp(56px, 7vw, 80px) 0;
  }
.other-areas-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
  }
.other-areas-head {
    text-align: center;
    margin: 0 0 36px;
  }
.other-areas-head h2 {
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 700;
    color: var(--ds-color-ink-1);
    margin: 0;
  }
.other-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
.other-area-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--ds-color-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
.other-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15,18,30,0.08);
  }
.other-area-media {
    aspect-ratio: 16/10;
    overflow: hidden;
  }
.other-area-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }
.other-area-card:hover .other-area-media img {
    transform: scale(1.05);
  }
.other-area-body {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
.other-area-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
  }
.other-area-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
@media (max-width: 720px) {
  .other-areas-grid {
      grid-template-columns: 1fr;
    }
}

/* ---- from the home template ---- */
:where(.rh-tpl-home) .h1 {
    font-family: var(--ds-font-body);
    font-size: clamp(30px, calc(3.9vw - 7.5px), 46px);
    line-height: 1.18;
    letter-spacing: -0.022em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
    max-width: 620px;
  }
:where(.rh-tpl-home) .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 38px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--ds-font-body);
  }
:where(.rh-tpl-home) .hero-visual {
    position: relative;
    background: linear-gradient(135deg, var(--ds-color-teal) 0%, var(--ds-color-navy) 100%);
    overflow: hidden;
  }
:where(.rh-tpl-home) .task-title {
    font-family: var(--ds-font-body);
    font-size: 21px;
    font-weight: 700;
    color: var(--ds-color-ink-1);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 10px;
  }
:where(.rh-tpl-home) .news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }
:where(.rh-tpl-home) .cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ds-color-amber);
    color: var(--ds-color-ink-1);
    font-family: var(--ds-font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
:where(.rh-tpl-home) .cta-banner-btn:hover {
    background: var(--ds-color-amber-hover);
  }
.about-row:has(+ .community) {
    padding-bottom: clamp(40px, 5vw, 60px);
  }
.about-row + .community {
    padding-top: clamp(40px, 5vw, 60px);
  }

/* ---- front-door additions (not in the templates; built to the design system) ---- */

/* The homepage news row keeps three columns; the listing page uses two. */
.news .news-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 980px) { .news .news-grid { grid-template-columns: 1fr; } }
.news-empty { text-align: center; color: var(--ds-color-ink-3); font-family: var(--ds-font-body); }
.news-media--empty { background: var(--ds-color-cream); }

/* Photo placeholders: a calm box until the real photograph arrives. */
.rh-photo-ph {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--ds-color-offwhite) 0%, var(--ds-color-teal-tint) 100%);
    border-radius: inherit;
  }
.rh-photo-ph .rh-gap { margin: 0; max-width: 360px; background: rgba(255,255,255,0.92); }
.other-area-media--empty { background: linear-gradient(135deg, var(--ds-color-offwhite) 0%, var(--ds-color-teal-tint) 100%); }

/* A slim band that holds only a marker: it has no height once the marker is stripped. */
.rh-band { padding: 0; }
.rh-band > .rh-gap, .rh-band > .rh-note { width: min(100% - var(--ds-space-gutter) * 2, 760px); margin: 28px auto; }

/* Contact strip under the homepage hero. */
.contact-strip { background: var(--ds-color-navy-deep, #093D44); color: #fff; }
.contact-strip-inner {
    width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
    justify-content: center;
    font-family: var(--ds-font-body);
    font-size: 17px;
  }
.contact-strip-item { margin: 0; color: rgba(255,255,255,0.86); }
.contact-strip-item a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ds-color-amber); }
.contact-strip-item a:hover { color: var(--ds-color-amber); }

/* About row: two links side by side. */
.about-row-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* Topic card with several destinations instead of one. */
div.topic-card { cursor: default; }
.topic-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 6px; }
.topic-links a {
    font-family: var(--ds-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-color-ink-1);
    text-decoration: none;
    border-bottom: 2px solid var(--ds-color-amber);
    padding-bottom: 1px;
  }
.topic-links a:hover { color: var(--ds-color-navy); border-bottom-color: var(--ds-color-navy); }

/* Plain text band (Our People: who we are today). */
.rh-prose-band { background: #fff; padding: clamp(56px, 7vw, 88px) 0 clamp(24px, 3vw, 40px); }
.rh-prose-band-inner { width: min(100% - var(--ds-space-gutter) * 2, 760px); margin: 0 auto; }
.rh-prose-band h2 {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ds-color-navy);
    margin: 0 0 18px;
  }
.rh-prose-band p { font-family: var(--ds-font-body); font-size: 18px; line-height: 1.65; color: var(--ds-color-ink-2); margin: 0 0 16px; }

/* Vision, objectives and values (Our People). */
.vov { background: var(--ds-color-cream); padding: clamp(64px, 8vw, 104px) 0; }
.vov-inner { width: min(100% - var(--ds-space-gutter) * 2, var(--ds-width-content)); margin: 0 auto; }
.vov-vision {
    background: var(--ds-color-navy);
    color: #fff;
    border-radius: 18px;
    padding: clamp(32px, 5vw, 56px);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
  }
.vov-vision::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 24px;
    background: var(--ds-color-teal);
    opacity: 0.55;
    transform: rotate(12deg);
  }
.vov-eyebrow {
    font-family: var(--ds-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ds-color-amber-light);
    margin: 0 0 14px;
  }
.vov-statement {
    font-family: var(--ds-font-body);
    font-size: clamp(24px, 2.9vw, 38px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 820px;
    position: relative;
    z-index: 1;
  }
.vov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vov-col { background: #fff; border-radius: 18px; padding: clamp(26px, 3.4vw, 40px); }
.vov-col h3 {
    font-family: var(--ds-font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--ds-color-navy);
    margin: 0 0 20px;
  }
.vov-objectives { list-style: none; margin: 0; padding: 0; counter-reset: vov; }
.vov-objectives li {
    counter-increment: vov;
    position: relative;
    padding: 12px 0 12px 52px;
    border-top: 1px solid var(--ds-color-line, rgba(15,18,30,0.1));
    font-family: var(--ds-font-body);
    font-size: 17px;
    line-height: 1.45;
    color: var(--ds-color-ink-1);
  }
.vov-objectives li:first-child { border-top: none; }
.vov-objectives li::before {
    content: counter(vov);
    position: absolute;
    left: 0;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ds-color-teal);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
  }
.vov-values { list-style: none; margin: 0; padding: 0; }
.vov-values li { padding: 12px 0; border-top: 1px solid var(--ds-color-line, rgba(15,18,30,0.1)); font-family: var(--ds-font-body); }
.vov-values li:first-child { border-top: none; }
.vov-values strong { display: block; font-size: 18px; color: var(--ds-color-navy); margin-bottom: 2px; }
.vov-values span { display: block; font-size: 16px; line-height: 1.5; color: var(--ds-color-ink-2); }
@media (max-width: 860px) { .vov-cols { grid-template-columns: 1fr; } }

/* Neighbourhood card summary, and the contact deflection tile description. */
.other-area-summary { font-family: var(--ds-font-body); font-size: 15px; line-height: 1.5; color: var(--ds-color-ink-2); margin: 0; padding: 0 20px 20px; }
.deflect-desc { font-family: var(--ds-font-body); font-size: 14.5px; line-height: 1.45; color: var(--ds-color-ink-2); margin: 6px 0 0; }
.team-card-all { text-align: center; font-family: var(--ds-font-body); font-size: 17px; color: var(--ds-color-ink-1); margin: 36px auto 0; }
.office-map-note { margin-top: 16px; }

/* Area stat tiles carry a year or a count plus a short label. */
.area-stat-label { max-width: 220px; margin-left: auto; margin-right: auto; }

/* People cards inside page content (the .page-content p rule was winning). */
.page-content .person-card { background: #fff; border: 1px solid var(--ds-color-line, rgba(15,18,30,0.1)); border-radius: 14px; padding: 22px; }
.page-content .person-name { font-size: 19px; font-weight: 700; color: var(--ds-color-navy); line-height: 1.25; margin: 0; }
.page-content .person-role { font-size: 14px; font-weight: 600; color: var(--ds-color-ink-3); margin: 4px 0 0; }
.page-content .person-bio { margin-top: 12px; }
.page-content .person-bio p { font-size: 15px; line-height: 1.55; margin: 0 0 8px; }
.page-content .person-bio .rh-gap { margin: 0; font-size: 13.5px; }
.page-content .people-cards--names .people-cards-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.page-content .people-cards--names .person-card {
    border: none;
    border-top: 1px solid var(--ds-color-line, rgba(15,18,30,0.1));
    border-radius: 0;
    background: none;
    padding: 12px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 16px;
  }
.page-content .people-cards--names .person-name { font-size: 16.5px; }
.page-content .people-cards--names .person-role { margin: 0; text-align: right; font-weight: 500; }

/* Text links inside front-door sections (phone, email and page links in running copy). */
.fl-ds-page :is(.about-row-body, .faq-answer, .rh-prose-band, .area-intro-text, .area-doing-card, .cta-banner-body, .emergency-body, .team-card-all, .office-detail-value, .working-here-desc) a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ds-color-amber);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
.fl-ds-page :is(.about-row-body, .faq-answer, .rh-prose-band, .area-intro-text, .cta-banner-body, .team-card-all, .office-detail-value) a:hover { text-decoration-color: currentColor; }
.page-header .page-lede a, .hero-subtitle a, .section-hero-intro a { color: #fff; text-decoration: underline; text-decoration-color: var(--ds-color-amber); text-underline-offset: 3px; }
.rh-credentials-wrap { background: #fff; }

/* Card grids: no orphan card or empty column when the card count does not fill a row of three. */
@media (min-width: 901px) {
  .topics-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 721px) {
  .other-areas-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
}

/* Newsletter button: the "to confirm" marker sits on its own line under the button. */
.cta-banner-action .rh-gap { display: block; width: fit-content; max-width: 100%; margin: 16px auto 0; }

/* News articles: a photo gallery keeps an even grid; a short last row does not stretch to fill. */
.article-body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; }
.article-body .wp-block-gallery { margin: 32px 0 0; }

/* ---- Utility templates: search results and page not found ---- */
.util { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); background: #fff; }
.util-inner { width: min(100% - var(--ds-space-gutter) * 2, 820px); margin: 0 auto; }
.util-search-form { margin: 0 0 40px; }
.util-label { display: block; font-weight: 700; color: var(--ds-color-ink-1); margin: 0 0 8px; }
.util-search-row { display: flex; gap: 10px; }
.util-search-row input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid var(--ds-color-ink-3);
  border-radius: var(--ds-radius-md);
  font: inherit;
  color: var(--ds-color-ink-1);
  background: #fff;
}
.util-search-row input[type="search"]:focus-visible { outline: 3px solid var(--ds-color-teal); outline-offset: 2px; border-color: var(--ds-color-teal); }
.util-search-btn {
  flex: 0 0 auto;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.util-search-btn:hover { background: var(--ds-color-navy-deep); }
.util h2 { font-size: var(--ds-text-xl); font-weight: 700; line-height: 1.25; color: var(--ds-color-ink-1); margin: 0 0 16px; }
.util a:not([class]) { color: var(--ds-color-navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ds-color-amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.util a:not([class]):hover { text-decoration-color: currentColor; }
.search-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ds-color-line); }
.search-item { padding: 24px 0; border-bottom: 1px solid var(--ds-color-line); }
.search-item-section { font-size: var(--ds-text-xs); font-weight: 700; letter-spacing: var(--ds-letter-eyebrow); text-transform: uppercase; color: var(--ds-color-coral-deep); margin: 0 0 6px; }
.util .search-item-title { font-size: var(--ds-text-xl); font-weight: 700; line-height: 1.25; margin: 0 0 6px; }
.util .search-item-title a { font-weight: 700; }
.search-item-summary { margin: 0; color: var(--ds-color-ink-2); }
.util-empty { color: var(--ds-color-ink-2); margin: 0 0 32px; }
.util-links { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.util-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: var(--ds-color-navy);
  font-weight: 700;
  text-decoration: none;
}
.util-links a:hover { border-color: var(--ds-color-teal); box-shadow: var(--ds-shadow-card); }
.util-note { color: var(--ds-color-ink-2); margin: 0; }
.util .pagination-wrap { margin-top: 40px; }
@media (max-width: 560px) {
  .util-links { grid-template-columns: 1fr; }
  .util-search-row { flex-direction: column; }
}

/* ---- Beaver Builder editing view ----
   While a page is open in the builder, the text of a link is wrapped in an
   inline-editing element (bb-edit-inline). Where the link is a flex row or
   column of icon, label and arrow, that wrapper has to carry the link's own
   layout or the pieces lose their sizes. Front-end markup has no wrapper, so
   none of this applies to visitors. */
.fl-builder-edit a > bb-edit-inline:only-child {
  display: inherit;
  flex-direction: inherit;
  flex-wrap: inherit;
  align-items: inherit;
  justify-content: inherit;
  gap: inherit;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.quick-link-icon { display: block; }

/* Landing and area heroes: the photo fills its panel, and the hero has enough depth for a
   photograph to crop well (roughly 4:3 in the photo panel on a desktop). Swapping in a taller
   or wider photograph never changes the layout. */
.section-hero-right img { position: absolute; inset: 0; }
@media (min-width: 881px) {
  .section-hero { min-height: clamp(440px, 38vw, 560px); }
}
@media (max-width: 880px) {
  .section-hero-right { min-height: clamp(320px, 60vw, 460px); }
}

/* ---- Header: nav spacing and search ----
   Search is an icon at the end of the header. Pressing it opens a panel under the
   header holding the search field; pressing it again, Escape, or clicking away closes
   it. On narrower desktops and tablets held sideways each nav label stays on one line
   and the space between labels tightens instead, down to the width where the menu
   button takes over. */
.nav { gap: clamp(12px, calc(17vw - 155px), 36px); margin-left: auto; }
.nav-item, .nav-toggle { white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(15, 18, 30, 0.14);
  border-radius: 50%;
  color: var(--ds-color-ink-1);
  cursor: pointer;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] { border-color: var(--ds-color-navy); color: var(--ds-color-navy); }
.search-toggle svg { width: 19px; height: 19px; display: block; }
.search-toggle .search-toggle-close,
.search-toggle[aria-expanded="true"] .search-toggle-open { display: none; }
.search-toggle[aria-expanded="true"] .search-toggle-close { display: block; }
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--ds-color-line);
  box-shadow: 0 18px 30px -18px rgba(15, 18, 30, 0.3);
  padding: 22px 0 26px;
}
.search-panel[hidden] { display: none; }
.search-panel-inner { width: min(100% - var(--ds-space-gutter) * 2, 760px); margin: 0 auto; }
.search-panel .util-search-form { margin: 0; }
@media (min-width: 1201px) {
  .header-tools { margin-left: -24px; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .header-inner { gap: 16px; }
  .logo img { height: 54px; }
  .nav-cta { padding: 10px 16px; margin-left: 0; }
}
@media (max-width: 980px) {
  .search-toggle { width: 48px; height: 48px; border-radius: 10px; }
  .search-toggle svg { width: 21px; height: 21px; }
}

/* @rosehill doc-list on content pages (12 Oct) */
.doc-list--inline { margin: 4px 0 24px; }
.doc-list--inline .doc-item:first-child { border-top: 1px solid var(--ds-color-line); }
@media (max-width: 600px) {
  .doc-item { flex-direction: column; gap: 4px; }
}
/* Content-list bullets off for document lists (the .page-content ul li rules add them) */
.page-content ul.doc-items { padding-left: 0; margin-left: 0; }
.page-content ul.doc-items li.doc-item { padding: 14px 0; margin: 0; }
.page-content ul.doc-items li.doc-item::before { content: none; display: none; }

/* ==========================================================================
   Mobile and tablet pass (12 Oct 2026)
   ========================================================================== */

/* Phone numbers never break across two lines */
.rh-nowrap,
a[href^="tel:"]:not([class]) { white-space: nowrap; }

/* Round arrow on the "other neighbourhoods" cards kept its shape when a long name wrapped */
.other-area-arrow { flex-shrink: 0; }

/* Drawer: space between a section's landing link and its arrow */
.m-panel a.m-section-link span[aria-hidden="true"] { margin-left: 6px; }

/* Site alert: a comfortable target for the close button */
.site-alert-close { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; margin: -8px -8px -8px 0; }

/* Homepage news: two across on tablets, one on phones */
@media (min-width: 601px) and (max-width: 980px) {
  .news .news-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* Footer on phones and tablets: bigger tap targets; two link columns on phones */
@media (max-width: 980px) {
  .footer-links li { margin-bottom: 2px; }
  .footer-links a,
  .footer-utility a { display: inline-block; padding: 7px 0; }
  .footer-utility { gap: 4px 24px; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-top > .footer-col:first-child { grid-column: 1 / -1; }
}

/* Document lists on phones: the underline hugs the title */
@media (max-width: 600px) {
  .doc-item a { align-self: flex-start; }
}

/* ==========================================================================
   Accessibility pass (12 Oct 2026)
   ========================================================================== */

/* Small uppercase labels on cream panels: #6b7280 was 4.4:1, now 5.25:1 */
.sidebar-title,
.office-detail-label { color: #5e6675; }
.sidebar-block--purple .sidebar-title { color: rgba(255,255,255,0.82); }

/* Article read time on the navy header: was 4.2:1 */
.article-byline-read-time { color: rgba(255,255,255,0.82); }

/* Vacancy location, hours and salary line: was dark text on navy (1.6:1) */
.job-meta-strip {
  font-family: var(--ds-font-body); font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* The 11px category tag was the smallest text on the site */
.article-tag { font-size: 12px; }

/* Form fields: a clear focus ring, not a faint purple glow */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid var(--ds-color-teal); outline-offset: 2px;
  border-color: var(--ds-color-navy); box-shadow: none;
}

/* Timeline entry titles are now h2s (they follow the page h1 directly);
   keep their size inside page content, where h2s are larger */
.page-content .timeline-title { font-size: 20px; line-height: 1.25; margin: 0 0 8px; letter-spacing: 0; }

/* Desktop dropdowns open on hover or when their button is pressed, not just
   because the button has focus. Opening on focus made every submenu link a
   Tab stop and left aria-expanded saying "collapsed" while the menu showed. */
.nav-item-with-children:focus-within:not(.is-open):not(:hover) .submenu {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* Reflow at 320px: the email address could not wrap and pushed the
   sidebar-page grid 5px past the screen edge */
.page-main-inner > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Sitemap page (12 Oct) */
.page-content ul.rh-sitemap ul { margin: 8px 0 12px; }
.page-content ul.rh-sitemap > li { font-weight: 600; }
.page-content ul.rh-sitemap ul li { font-weight: 400; }
.apply-box-closed { color: rgba(255,255,255,0.9); font-family: var(--ds-font-body); font-size: 15px; line-height: 1.5; margin: 8px 0 16px; }

/* Tables in page content on phones: tighter cells so a four-column table
   (Anti-social behaviour response times) fits a 375px screen without
   scrolling sideways. Added 11 Nov 2026. */
@media (max-width: 600px) {
  .page-content .wp-block-table th,
  .page-content .wp-block-table td { padding: 10px 6px; font-size: 14px; line-height: 1.4; }
}

/* People cards: initials in place of a photo, so a grid with some photos stays even. */
.person-photo--initials { display: flex; align-items: center; justify-content: center; background: var(--ds-color-teal-tint); }
.person-photo--initials span { font-family: var(--ds-font-body); font-size: 56px; font-weight: 700; letter-spacing: 0.02em; color: var(--ds-color-teal); line-height: 1; }

/* Photo grid block */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 36px; }
.photo-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid-item { margin: 0; }
.photo-grid-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 12px; }
.photo-grid-item figcaption { font-family: var(--ds-font-body); font-size: 13px; color: var(--ds-color-ink-3); margin-top: 8px; line-height: 1.45; }
@media (max-width: 600px) {
  .photo-grid, .photo-grid--cols-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Home hero photo (18 Nov 2026). The panel keeps its height from the grid (desktop) or min-height (980px and under). */
:where(.rh-tpl-home) .hero-visual img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* What's nearby list (Our neighbourhoods, 18 Nov 2026). */
.rh-nearby ul { font-family: var(--ds-font-body); font-size: 18px; line-height: 1.6; color: var(--ds-color-ink-2); margin: 0 0 8px; padding-left: 1.2em; }
.rh-nearby li { margin: 0 0 8px; }
.rh-nearby li::marker { color: var(--ds-color-teal); }

/* Staff stories (Our People, 18 Nov 2026): the testimonial component with an eyebrow and a link to the full story. */
.rh-staff-story-eyebrow { font-family: var(--ds-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-color-teal); margin: 0 0 18px; }
.rh-staff-story-link { margin: 6px 0 0; }
.rh-staff-story-link a { font-family: var(--ds-font-body); font-size: 16px; font-weight: 600; color: var(--ds-color-navy); text-decoration: underline; text-decoration-color: var(--ds-color-amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.rh-staff-story-link a:hover { text-decoration-color: currentColor; }
@media (max-width: 720px) {
  .rh-staff-story-link { text-align: center; }
}
