/*
 Theme Name:   Redruth Town Council
 Description:  Child theme for Redruth Town Council. Built on Unify by Unify Studio.
 Author:       Unify Studio for Redruth Town Council
 Author URI:   https://unify-studio.co.uk
 Template:     unify
 Version:      1.2.5
 License:      GNU General Public License v2 or later
 Text Domain:  redruth
*/

/* ══════════════════════════════════════════════════════
   REDRUTH TOWN COUNCIL — Design tokens
   ══════════════════════════════════════════════════════ */

:root {

    /* ── Brand palette (RTC 2026 — navy-led; burgundy retired) ── */
    --rtc-navy:            #2A3845;
    --rtc-navy-dark:       #1F2A33;   /* hover / deep */
    --rtc-pink:            #EE4B78;   /* accent — used sparingly as hints */
    --rtc-pink-dark:       #D43A66;
    --rtc-berry:           #7E1A4E;   /* sparing deep panels (e.g. featured service) */
    --rtc-berry-dark:      #5E1339;
    /* burgundy retired → aliased to navy so existing structural usages flow through */
    --rtc-burgundy:        var(--rtc-navy);
    --rtc-burgundy-dark:   var(--rtc-navy-dark);
    --rtc-blue:            #425A99;
    --rtc-blue-dark:       #364A7D;    /* hover */
    --rtc-gold:            #EAA941;
    --rtc-gold-light:      #F0B85E;    /* hover */
    --rtc-green:           #3D5220;
    --rtc-green-dark:      #314219;    /* hover */

    /* ── Neutrals ── */
    --rtc-text:            #1E1E23;    /* main font colour */
    --rtc-text-muted:      #5A5A5A;
    --rtc-off-white:       #F5F4F0;
    --rtc-bg-alt:          #ECEAE4;
    --rtc-white:           #FFFFFF;

    /* ── Unify aliases (point at the brand tokens) ── */
    --unify-primary:       var(--rtc-navy);
    --unify-secondary:     var(--rtc-navy-dark);
    --unify-accent:        var(--rtc-gold);
    --unify-bg:            var(--rtc-off-white);
    --unify-bg-alt:        var(--rtc-bg-alt);
    --unify-text:          var(--rtc-text);
    --unify-text-muted:    var(--rtc-text-muted);
    --unify-border:        rgba(42, 56, 69, 0.15);
    --unify-max-width:     1440px;     /* inner content grid (matches Figma) */

    /* ── Type family + weights ── */
    --unify-font-heading:  "proxima-nova", sans-serif;
    --unify-font-body:     "proxima-nova", sans-serif;

    --rtc-weight-regular:  400;
    --rtc-weight-semibold: 600;
    --rtc-weight-bold:     700;

    /* ── Fluid type scale ──────────────────────────────
       Each value is mobile-min → desktop-max. The max equals the
       design size and is capped, so type never overshoots on large
       screens; the min is a comfortable mobile size. Fluid between
       ~380px and ~1280px viewport. Comments show the px range. */
    --rtc-fs-h1:    clamp(2.25rem,   1.62rem + 2.67vw, 3.75rem);   /* 36 → 60 */
    --rtc-fs-h2:    clamp(1.875rem,  1.48rem + 1.67vw, 2.8125rem); /* 30 → 45  section heading */
    --rtc-fs-h2-sm: clamp(1.4375rem, 1.25rem + 0.78vw, 1.875rem);  /* 23 → 30  services / report intro */
    --rtc-fs-h3:    clamp(1.625rem,  1.39rem + 1.00vw, 2.1875rem); /* 26 → 35 */
    --rtc-fs-h3-sm: clamp(1.375rem,  1.24rem + 0.56vw, 1.6875rem); /* 22 → 27  report-issue accordion title */
    --rtc-fs-h3-xs: clamp(1.125rem,  1.02rem + 0.44vw, 1.375rem);  /* 18 → 22  services box / sub-menu */
    --rtc-fs-h4:    clamp(1.375rem,  1.22rem + 0.67vw, 1.75rem);   /* 22 → 28  featured news headline */
    --rtc-fs-body:  1rem;                                          /* 16 */

    /* ── Line heights ── */
    --rtc-lh-tight:   1.1;
    --rtc-lh-heading: 1.2;
    --rtc-lh-body:    1.6;

    /* ── Nav ── */
    --unify-nav-height: 64px;
    --unify-nav-bg:     var(--rtc-white);
    --unify-nav-color:  var(--rtc-text);

    /* ── Radius ── */
    --unify-radius-md:   4px;
    --unify-radius-pill: 50px;
}


/* ══════════════════════════════════════════════════════
   HOMEPAGE — slider sits flush under transparent nav
   ══════════════════════════════════════════════════════ */

.rtc-transparent-nav .rtc-main {
    padding-top: 0;
}

.rtc-transparent-nav .unify-hero-slider {
    margin-top: 0;
}


/* ══════════════════════════════════════════════════════
   BASE TYPOGRAPHY
   ══════════════════════════════════════════════════════ */

body {
    background: var(--rtc-white);
    font-family: var(--unify-font-body);
    color: var(--rtc-text);
    font-size: var(--rtc-fs-body);
    font-weight: var(--rtc-weight-regular);
    line-height: var(--rtc-lh-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--unify-font-heading);
    color: var(--rtc-text);
    line-height: var(--rtc-lh-heading);
}

h1 { font-size: var(--rtc-fs-h1); font-weight: var(--rtc-weight-bold); line-height: var(--rtc-lh-tight); }
h2 { font-size: var(--rtc-fs-h2); font-weight: var(--rtc-weight-semibold); }
h3 { font-size: var(--rtc-fs-h3); font-weight: var(--rtc-weight-semibold); }
h4 { font-size: var(--rtc-fs-h4); font-weight: var(--rtc-weight-bold); }
h5, h6 { font-weight: var(--rtc-weight-bold); }

p { font-size: var(--rtc-fs-body); line-height: var(--rtc-lh-body); }

/* Secondary heading variants from the design system — apply where needed */
.rtc-h2--intro     { font-size: var(--rtc-fs-h2-sm); font-weight: var(--rtc-weight-semibold); }  /* services / report intro */
.rtc-h3--accordion { font-size: var(--rtc-fs-h3-sm); font-weight: var(--rtc-weight-semibold); }  /* report-issue accordion title */
.rtc-h3--compact   { font-size: var(--rtc-fs-h3-xs); font-weight: var(--rtc-weight-bold); }       /* services box title / right sub-menu */

a {
    color: var(--rtc-burgundy);
}

a:hover {
    color: var(--rtc-gold);
    opacity: 1;
}


/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */

.unify-nav {
    border-bottom: 1px solid rgba(42, 56, 69, 0.1);
}

.rtc-utility-bar {
    background: var(--rtc-burgundy); /* Updated so white links are visible */
    border-bottom: 1px solid var(--unify-border);
    padding: 6px 0;
    font-size: 0.75rem;
}

.rtc-utility-bar__inner {
    max-width: var(--unify-max-width);
    margin-inline: auto;
    padding-inline: var(--unify-gutter);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--unify-space-lg);
}

.rtc-utility-bar a {
    color: var(--rtc-white); /* Updated links to white */
    text-decoration: none;
    font-size: 0.75rem;
    transition: color var(--unify-transition);
}

.rtc-utility-bar a:hover {
    color: var(--rtc-gold); /* Updated hover to gold */
}

.rtc-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rtc-burgundy);
    color: var(--rtc-white) !important;
    padding: 8px 18px;
    border-radius: var(--unify-radius-pill);
    font-size: 0.8rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background var(--unify-transition);
}

.rtc-report-btn:hover {
    background: var(--rtc-burgundy-dark);
    color: var(--rtc-white) !important;
    opacity: 1;
}

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


/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

.unify-btn {
    border-radius: var(--unify-radius-pill);
    font-weight: var(--rtc-weight-bold);
    letter-spacing: 0.06em;
}

.unify-btn--gold {
    background: var(--rtc-gold);
    border-color: var(--rtc-gold);
    color: var(--rtc-white);
}

.unify-btn--gold:hover {
    background: var(--rtc-gold-light);
    border-color: var(--rtc-gold-light);
    color: var(--rtc-white);
    opacity: 1;
}

.unify-btn--burgundy {
    background: var(--rtc-burgundy);
    border-color: var(--rtc-burgundy);
    color: var(--rtc-white);
}

.unify-btn--burgundy:hover {
    background: var(--rtc-burgundy-dark);
    border-color: var(--rtc-burgundy-dark);
    color: var(--rtc-white);
    opacity: 1;
}

.unify-btn--green {
    background: var(--rtc-green);
    border-color: var(--rtc-green);
    color: var(--rtc-white);
}

.unify-btn--green:hover {
    background: var(--rtc-green-dark);
    border-color: var(--rtc-green-dark);
    color: var(--rtc-white);
    opacity: 1;
}

/* Blue — used for document / agenda (PDF) buttons */
.unify-btn--blue {
    background: var(--rtc-blue);
    border-color: var(--rtc-blue);
    color: var(--rtc-white);
}

.unify-btn--blue:hover {
    background: var(--rtc-blue-dark);
    border-color: var(--rtc-blue-dark);
    color: var(--rtc-white);
    opacity: 1;
}


/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */

.rtc-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
}

.rtc-hero__media {
    position: absolute;
    inset: 0;
}

.rtc-hero__media img,
.rtc-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rtc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.4) 100%
    );
}

.rtc-hero__pause {
    position: absolute;
    top: 50%;
    right: var(--unify-gutter);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background var(--unify-transition);
    backdrop-filter: blur(4px);
}

.rtc-hero__pause:hover {
    background: rgba(255,255,255,0.35);
}

.rtc-hero__ctas {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
}

.rtc-hero__cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 0.9rem;
    font-weight: var(--rtc-weight-bold);
    text-decoration: none;
    transition: filter var(--unify-transition), opacity var(--unify-transition);
    gap: 8px;
}

.rtc-hero__cta:hover {
    filter: brightness(1.1);
    opacity: 1;
}

.rtc-hero__cta--gold {
    background: var(--rtc-gold);
    color: var(--rtc-white);
}

.rtc-hero__cta--green {
    background: var(--rtc-green);
    color: var(--rtc-white);
}

.rtc-hero__cta--burgundy {
    background: var(--rtc-burgundy);
    color: var(--rtc-white);
}

.rtc-hero__cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .rtc-hero__ctas {
        flex-direction: column;
    }
    .rtc-hero { height: 60vh; }
}


/* ══════════════════════════════════════════════════════
   HOW CAN WE HELP — 2x2 card grid
   (Live overrides for this section are in front-page.php)
   ══════════════════════════════════════════════════════ */

.rtc-help {
    background: var(--rtc-white);
    padding-block: var(--unify-space-section);
}

.rtc-help__title {
    font-size: var(--rtc-fs-h2);
    font-weight: var(--rtc-weight-semibold);
    margin-bottom: var(--unify-space-xl);
    color: var(--rtc-text);
}

.rtc-help__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rtc-help-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: clamp(440px, 50vw, 640px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.rtc-help-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    opacity: 1;
}

.rtc-help-card__image-wrap {
    flex: 2;
    overflow: hidden;
    min-height: 0;
}

.rtc-help-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.rtc-help-card:hover .rtc-help-card__image {
    transform: scale(1.04);
}

.rtc-help-card__body {
    flex: 1;
    min-height: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--rtc-off-white);
    transition: background 0.3s ease;
}

.rtc-help-card:hover .rtc-help-card__body {
    background: var(--rtc-green);
}

.rtc-help-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rtc-help-card__title {
    font-size: clamp(0.9375rem, 1.4vw, 1.25rem);  /* 15 → 20, tuned for the signpost cards */
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-green);
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.rtc-help-card:hover .rtc-help-card__title {
    color: var(--rtc-white);
}

.rtc-help-card__text {
    font-size: clamp(0.75rem, 1vw, 0.875rem);  /* 12 → 14 */
    font-weight: var(--rtc-weight-regular);
    color: var(--rtc-text-muted);
    margin: 0;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.rtc-help-card:hover .rtc-help-card__text {
    color: rgba(255,255,255,0.9);
}

.rtc-help-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--rtc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rtc-white);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.rtc-help-card:hover .rtc-help-card__icon {
    background: rgba(255,255,255,0.25);
    outline: 1.5px solid rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .rtc-help__grid { grid-template-columns: 1fr; }
    .rtc-help-card { height: auto; }
    .rtc-help-card__image-wrap { aspect-ratio: 4/3; flex: none; }
}


/* ══════════════════════════════════════════════════════
   NEWS & EVENTS
   .rtc-news-card is ONE shared component used by both the homepage
   carousel and the news archive. The carousel section (.rtc-news) and
   its layout/JS live in front-page.php; the card itself lives here so
   the archive templates can reuse it. Carousel-only rules are scoped
   under .rtc-news / .rtc-news__track.
   ══════════════════════════════════════════════════════ */

.rtc-news {
    background: var(--rtc-gold);
    padding-block: var(--unify-space-section);
}

.rtc-news .unify-inner {
    position: relative;
}

.rtc-news__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--unify-space-xl);
    gap: var(--unify-space-md);
}

.rtc-news__title {
    font-size: var(--rtc-fs-h2);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-text);
    margin: 0;
}

/* Arrows — circle at rest, grow into a pill on hover.
   Shape lives on a ::before so the layout box stays fixed (no neighbour shift)
   and the arrow icon stays centred. prev = outline, next = filled white. */
.rtc-news__arrows {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rtc-news__arrow {
    position: relative;
    width: 64px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--rtc-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--unify-transition);
}

.rtc-news__arrow::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;   /* 44px circle centred in the 64px box */
    right: 10px;
    border-radius: 999px;
    border: 2px solid var(--rtc-text);
    background: transparent;
    transition: left 0.32s cubic-bezier(.22, 1, .36, 1), right 0.32s cubic-bezier(.22, 1, .36, 1), background 0.2s ease, border-color 0.2s ease;
    z-index: 0;
}

.rtc-news__arrow svg {
    position: relative;
    z-index: 1;
}

.rtc-news__arrow--next::before {
    background: var(--rtc-white);
    border-color: var(--rtc-white);
}

/* Grow well past the box on hover for a decisive horizontal stretch */
.rtc-news__arrow:hover:not(:disabled)::before {
    left: -10px;
    right: -10px;
}

.rtc-news__arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Carousel — viewport clips the track inside the content container */
.rtc-news__viewport {
    overflow: hidden;
    margin-bottom: var(--unify-space-xl);
}

.rtc-news__track {
    --rtc-news-gap: 28px;
    display: flex;
    gap: var(--rtc-news-gap);
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* ── Shared card — used by BOTH the homepage carousel and the news archive.
   No box behind the image or text; everything sits on the section background. ── */
.rtc-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--rtc-text);
    min-width: 0;
}

/* Image — rounded top-left + top-right only */
.rtc-news-card__image-wrap {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: block;
    margin-bottom: 18px;
}

.rtc-news-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rtc-news-card:hover .rtc-news-card__image {
    transform: scale(1.03);
}

/* Date */
.rtc-news-card__date {
    font-size: 1rem;
    color: var(--rtc-text);
    margin: 0 0 10px;
}

/* Title — H4 (featured news headline) */
.rtc-news-card__title {
    font-size: var(--rtc-fs-h4);
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
    margin: 0 0 12px;
    line-height: 1.25;
}

/* Excerpt — 16px */
.rtc-news-card__excerpt {
    font-size: 1rem;  /* 16 */
    color: var(--rtc-text);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Read More — base = solid burgundy (used on the white archive background) */
.rtc-news-card__btn {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding: 13px 32px;
    border-radius: var(--unify-radius-pill);
    border: 2px solid var(--rtc-burgundy);
    background: var(--rtc-burgundy);
    color: var(--rtc-white);
    font-size: 0.95rem;
    font-weight: var(--rtc-weight-bold);
    align-self: flex-start;
    transition: background var(--unify-transition), border-color var(--unify-transition), color var(--unify-transition);
}

.rtc-news-card__btn:hover,
.rtc-news-card:hover .rtc-news-card__btn {
    background: var(--rtc-burgundy-dark);
    border-color: var(--rtc-burgundy-dark);
    color: var(--rtc-white);
}

/* ── Carousel-only: 3-up flex sizing (the archive uses its own grid) ── */
.rtc-news__track .rtc-news-card {
    --per: 3;
    flex: 0 0 calc((100% - (var(--rtc-news-gap, 28px) * (var(--per) - 1))) / var(--per));
}

@media (max-width: 1024px) { .rtc-news__track .rtc-news-card { --per: 2; } }
@media (max-width: 680px)  { .rtc-news__track .rtc-news-card { --per: 1.1; } }

/* On the gold carousel the button is outline → white fill (per the design-system board) */
.rtc-news .rtc-news-card__btn {
    background: transparent;
    border-color: var(--rtc-text);
    color: var(--rtc-text);
}

.rtc-news .rtc-news-card__btn:hover,
.rtc-news .rtc-news-card:hover .rtc-news-card__btn {
    background: var(--rtc-white);
    border-color: var(--rtc-white);
    color: var(--rtc-text);
}

.rtc-news__view-all {
    text-align: center;
    margin-top: 1rem;
}

.rtc-news__view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
    text-decoration: none;
}

.rtc-news__view-all-link .rtc-news__view-all-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rtc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rtc-text);
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   WELCOME / MISSION
   ══════════════════════════════════════════════════════ */

.rtc-welcome {
    background: var(--rtc-white);
    padding-block: var(--unify-space-section);
}

.rtc-welcome__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.rtc-welcome__eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rtc-gold);
    margin-top: var(--unify-space-sm);   /* sits below the title (design order) */
}

.rtc-welcome__title {
    font-size: var(--rtc-fs-h2);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-text);
    margin: 0;
}

.rtc-welcome__text {
    font-size: var(--rtc-fs-body);
    line-height: var(--rtc-lh-body);
    color: var(--rtc-text);
}

@media (max-width: 768px) {
    .rtc-welcome__inner { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════
   TOWNSCAPE ILLUSTRATION — full-bleed band under Welcome
   ══════════════════════════════════════════════════════ */

.rtc-townscape {
    width: 100%;
    background: var(--rtc-white);
    line-height: 0;            /* kills the inline-image baseline gap */
}

.rtc-townscape img {
    display: block;
    width: 100%;
    height: auto;
}

/* Placeholder — delete this rule and swap the markup for an <img>
   once the real artwork is exported from Figma. */
.rtc-townscape--placeholder {
    min-height: clamp(180px, 22vw, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        var(--rtc-bg-alt), var(--rtc-bg-alt) 14px,
        var(--rtc-off-white) 14px, var(--rtc-off-white) 28px
    );
    color: var(--rtc-text-muted);
    font-size: 0.8rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.4;
}


/* ══════════════════════════════════════════════════════
   50/50 SPLIT SECTION
   ══════════════════════════════════════════════════════ */

.rtc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.rtc-split__image {
    overflow: hidden;
}

.rtc-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.rtc-split__content {
    background: var(--rtc-burgundy);
    padding: clamp(2.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--unify-space-md);
}

.rtc-split__eyebrow {
    font-size: 0.7rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.6);
}

.rtc-split__title {
    font-size: var(--rtc-fs-h2);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-white);
    line-height: 1.2;
    margin: 0;
}

.rtc-split__text {
    font-size: var(--rtc-fs-body);
    line-height: var(--rtc-lh-body);
    color: rgba(255,255,255,0.85);
    margin: 0;
}

@media (max-width: 768px) {
    .rtc-split { grid-template-columns: 1fr; }
    .rtc-split__image { min-height: 280px; }
}


/* ══════════════════════════════════════════════════════
   COUNCILLORS CPT — horizontal cards in a 2-col grid,
   ward filter tabs, and a map CTA bar.
   ══════════════════════════════════════════════════════ */

/* ── Ward filter tabs — segmented control ── */
.rtc-ward-tabs {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto var(--unify-space-2xl);
    overflow-x: auto;
    background: var(--rtc-bg-alt);
    border-radius: var(--unify-radius-pill);
}

.rtc-ward-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: var(--unify-font-body);
    font-size: 1rem;
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
    background: transparent;
    padding: 15px 32px;
    border-radius: var(--unify-radius-pill);
    transition: background 0.2s ease, color 0.2s ease;
}

.rtc-ward-tab:not(.is-active):hover { background: rgba(42, 56, 69, 0.06); }

.rtc-ward-tab.is-active {
    background: var(--rtc-burgundy);
    color: var(--rtc-white);
}

/* ── Grid ── */
.rtc-councillors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ── Card — photo left, details right ── */
.rtc-councillor-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: start;
}

.rtc-councillor-card__media { width: 150px; }

.rtc-councillor-card__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    display: block;
}

.rtc-councillor-card__photo--placeholder {
    aspect-ratio: 1 / 1;
    background: var(--unify-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rtc-text-muted);
    font-size: 3rem;
}

.rtc-councillor-card__info { min-width: 0; }

.rtc-councillor-card__name {
    font-size: 1.125rem;
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
    margin: 0 0 2px;
}

/* Sub-label = ward (design shows the ward here, not the role) */
.rtc-councillor-card__role {
    font-size: 0.78rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rtc-burgundy);
    margin: 0 0 var(--unify-space-sm);
}

.rtc-councillor-card__address {
    font-size: 0.85rem;
    color: var(--rtc-text-muted);
    line-height: 1.6;
    margin: 0 0 var(--unify-space-sm);
    white-space: pre-line;
}

.rtc-councillor-card__phone {
    font-size: 0.85rem;
    color: var(--rtc-text);
    margin: 0 0 4px;
}

.rtc-councillor-card__email {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--rtc-burgundy);
    margin: 0 0 var(--unify-space-sm);
    word-break: break-all;
}

/* Download Document — grey pill button (matches the design) */
.rtc-councillor-card__doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: var(--unify-radius-pill);
    background: var(--rtc-bg-alt);
    color: var(--rtc-burgundy);
    font-size: 0.78rem;
    font-weight: var(--rtc-weight-bold);
    text-decoration: none;
    transition: background 0.2s ease;
}

.rtc-councillor-card__doc:hover {
    background: #ddd8cf;
    color: var(--rtc-burgundy);
    opacity: 1;
}

/* Retained for single-ward [rtc_councillors ward="…"] usage (no tabs) */
.rtc-ward-heading {
    font-size: var(--rtc-fs-h3-sm);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-text);
    text-align: center;
    margin: var(--unify-space-2xl) 0 var(--unify-space-lg);
    padding-bottom: var(--unify-space-sm);
    border-bottom: 2px solid var(--rtc-pink);
}

/* ── Map CTA bar (sits below the cards) ── */
.rtc-councillor-map-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--rtc-bg-alt);
    border-radius: 16px;
    padding: 24px 32px;
    margin-top: var(--unify-space-2xl);
}

.rtc-councillor-map-cta__text {
    font-size: 1rem;
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
    margin: 0;
}

.rtc-councillor-map-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: var(--rtc-burgundy);
    color: var(--rtc-white);
    padding: 12px 26px;
    border-radius: var(--unify-radius-pill);
    font-size: 0.85rem;
    font-weight: var(--rtc-weight-bold);
    text-decoration: none;
    transition: background 0.2s ease;
}

.rtc-councillor-map-cta__btn:hover {
    background: var(--rtc-burgundy-dark);
    color: var(--rtc-white);
    opacity: 1;
}

/* Centred page-header variant (opt-in via .rtc-page-header--center) */
.rtc-page-header--center { text-align: center; }

@media (max-width: 768px) {
    .rtc-councillors-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .rtc-councillor-card { grid-template-columns: 110px 1fr; gap: 16px; }
    .rtc-councillor-card__media { width: 110px; }
}


/* ══════════════════════════════════════════════════════
   JOIN OUR NEWSLETTER — full-bleed 50/50 split
   (static markup; swap the form for a live one when ready)
   ══════════════════════════════════════════════════════ */

.rtc-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.rtc-newsletter__media {
    overflow: hidden;
    background: var(--rtc-bg-alt) center / cover no-repeat;
    /* swap: background-image: url(.../building.jpg); — or drop an <img> inside */
}

.rtc-newsletter__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.rtc-newsletter__content {
    background: var(--rtc-burgundy);
    padding: clamp(2.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--unify-space-lg);
}

.rtc-newsletter__title {
    font-size: var(--rtc-fs-h3);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-white);
    margin: 0;
}

.rtc-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: var(--unify-space-md);
}

.rtc-newsletter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rtc-newsletter__label {
    font-size: 0.8rem;
    font-weight: var(--rtc-weight-bold);
    color: rgba(255,255,255,0.9);
}

.rtc-newsletter__input {
    width: 100%;
    padding: 12px 22px;
    border-radius: var(--unify-radius-pill);
    border: 1.5px solid rgba(255,255,255,0.6);
    background: transparent;
    color: var(--rtc-white);
    font-family: var(--unify-font-body);
    font-size: 0.95rem;
}

.rtc-newsletter__input::placeholder { color: rgba(255,255,255,0.5); }

.rtc-newsletter__input:focus {
    outline: none;
    border-color: var(--rtc-white);
}

.rtc-newsletter__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 6px;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    border-radius: var(--unify-radius-pill);
    background: var(--rtc-white);
    color: var(--rtc-burgundy);
    font-family: var(--unify-font-body);
    font-size: 0.9rem;
    font-weight: var(--rtc-weight-bold);
    transition: background 0.2s ease, color 0.2s ease;
}

.rtc-newsletter__btn:hover {
    background: var(--rtc-off-white);
    color: var(--rtc-burgundy);
}

@media (max-width: 768px) {
    .rtc-newsletter { grid-template-columns: 1fr; }
    .rtc-newsletter__media { min-height: 280px; }
}


/* ══════════════════════════════════════════════════════
   COUNCIL SERVICES — archive grid + single (content + sidebar)
   ══════════════════════════════════════════════════════ */

/* Blue page-header variant (services use blue, not burgundy) */
.rtc-page-header--blue { background: var(--rtc-blue); }

/* ── Archive intro ── */
.rtc-services-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto var(--unify-space-2xl);
    font-size: var(--rtc-fs-h3-xs);
    color: var(--rtc-text);
    line-height: 1.4;
}

/* ── Archive grid ── */
.rtc-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rtc-service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--rtc-bg-alt);
    border-radius: 14px;
    padding: 24px 26px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rtc-service-card:hover {
    background: var(--rtc-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    opacity: 1;
}

.rtc-service-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.rtc-service-card__title {
    font-size: var(--rtc-fs-h3-xs);
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
    margin: 0;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.rtc-service-card:hover .rtc-service-card__title { color: var(--rtc-white); }

.rtc-service-card__desc {
    font-size: 0.9rem;
    color: var(--rtc-text-muted);
    margin: 0;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.rtc-service-card:hover .rtc-service-card__desc { color: rgba(255,255,255,0.9); }

.rtc-service-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--rtc-blue);
    color: var(--rtc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.rtc-service-card:hover .rtc-service-card__icon {
    background: rgba(255,255,255,0.25);
    outline: 1.5px solid rgba(255,255,255,0.6);
}

/* ── Single — image hero with blue overlay + breadcrumb ── */
.rtc-service-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background: var(--rtc-blue);
}

.rtc-service-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.rtc-service-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(66, 90, 153, 0.55);
}

.rtc-service-hero__inner {
    position: relative;
    width: 100%;
}

.rtc-service-hero__breadcrumb {
    display: inline-block;
    margin-top: var(--unify-space-xl);
    padding: 8px 18px;
    border-radius: var(--unify-radius-pill);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    color: var(--rtc-white);
}

.rtc-service-hero__breadcrumb a { color: var(--rtc-white); text-decoration: none; }
.rtc-service-hero__breadcrumb a:hover { color: var(--rtc-white); opacity: 0.85; }

/* ── Single — content + sidebar layout ── */
.rtc-service-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding-block: var(--unify-space-section);
}

.rtc-service-content { min-width: 0; }

.rtc-service-content__title {
    font-size: var(--rtc-fs-h2);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-text);
    margin: 0 0 var(--unify-space-lg);
}

.rtc-service-content p { margin: 0 0 1rem; color: var(--rtc-text); }
.rtc-service-content p:last-child { margin-bottom: 0; }

/* ── Single — services sidebar nav ── */
.rtc-service-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 90px;
}

.rtc-service-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--rtc-bg-alt);
    border-radius: var(--unify-radius-pill);
    padding: 13px 22px;
    text-decoration: none;
    color: var(--rtc-text);
    font-size: 0.95rem;
    font-weight: var(--rtc-weight-bold);
    transition: background 0.2s ease, color 0.2s ease;
}

.rtc-service-nav__link:hover { background: #ddd8cf; color: var(--rtc-text); opacity: 1; }

.rtc-service-nav__link.is-active {
    background: var(--rtc-blue);
    color: var(--rtc-white);
}

.rtc-service-nav__icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--rtc-blue);
    color: var(--rtc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.rtc-service-nav__link.is-active .rtc-service-nav__icon {
    background: rgba(255, 255, 255, 0.25);
    outline: 1.5px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .rtc-services-grid { grid-template-columns: 1fr 1fr; }
    .rtc-service-layout { grid-template-columns: 1fr; }
    .rtc-service-nav { position: static; }
}
@media (max-width: 560px) {
    .rtc-services-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════
   LAYOUT / GUTENBERG UTILITIES
   ══════════════════════════════════════════════════════ */

/* Narrower inner container (1200) — used by the report-an-issue
   accordion and the Council Documents plugin. */
.rtc-inner-narrow {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--unify-gutter);
}

/* Signpost card for Gutenberg — add "rtc-signpost" to a Group block's
   Additional CSS class(es). Build the group as: Image, then Heading
   (and an optional paragraph). Rounds the corners, sits the image flush
   to the top, and applies the theme's padding + type. */
.rtc-signpost {
    border-radius: 16px;
    overflow: hidden;
    background: var(--rtc-off-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rtc-signpost:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.rtc-signpost figure,
.rtc-signpost .wp-block-image {
    margin: 0;
}

.rtc-signpost .wp-block-image img,
.rtc-signpost figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.rtc-signpost .wp-block-heading,
.rtc-signpost h2,
.rtc-signpost h3,
.rtc-signpost h4 {
    margin: 0;
    padding: 20px 24px;
    color: var(--rtc-green);
    font-weight: var(--rtc-weight-bold);
}

.rtc-signpost p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--rtc-text-muted);
}


/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.unify-footer {
    background: var(--rtc-white);
    color: var(--rtc-text);
    position: relative;
    overflow: hidden;              /* contains the clock tower bleed */
}

/* Keep all footer content above the decorative tower */
.unify-footer > * {
    position: relative;
    z-index: 1;
}

.rtc-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: var(--unify-space-xl);
    border-bottom: 1px solid var(--unify-border);
}

.rtc-footer__brand-name {
    font-size: 0.95rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rtc-burgundy);
    margin-bottom: var(--unify-space-md);
}

.rtc-footer__contact p {
    font-size: 1rem;
    color: var(--rtc-text);
    line-height: 1.7;
    margin: 0 0 4px;
}

.rtc-footer__contact a {
    color: var(--rtc-text);
    text-decoration: none;
    transition: color var(--unify-transition);
}

.rtc-footer__contact a:hover {
    color: var(--rtc-pink);
}

.rtc-footer__col-title {
    font-size: 0.85rem;
    font-weight: var(--rtc-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rtc-text-muted);
    margin-bottom: var(--unify-space-md);
}

.rtc-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rtc-footer__links a {
    font-size: 1rem;
    color: var(--rtc-text);
    text-decoration: none;
    transition: color var(--unify-transition);
}

.rtc-footer__links a:hover {
    color: var(--rtc-pink);
}

.rtc-footer__socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rtc-footer__socials a {
    font-size: 1rem;
    color: var(--rtc-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color var(--unify-transition);
}

.rtc-footer__socials a:hover {
    color: var(--rtc-pink);
}

.rtc-footer__socials svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;            /* icon follows the link colour, incl. hover */
}

.rtc-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--unify-space-lg);
    flex-wrap: wrap;
    gap: var(--unify-space-md);
}

.rtc-footer__bar p,
.rtc-footer__bar a {
    font-size: 0.85rem;
    color: var(--rtc-text-muted);
    text-decoration: none;
}

.rtc-footer__bar a:hover {
    color: var(--rtc-pink);
}

.rtc-footer__legal {
    display: flex;
    gap: var(--unify-space-lg);
    flex-wrap: wrap;
}

/* ── Clock tower — bleeds up from the footer's bottom-right ──────────
   url() is relative to this stylesheet (theme root), so it resolves to
   <child-theme>/assets/clock-tower.svg. Keep this rule in style.css. */
.unify-footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    /* anchor the tower's right edge to the content edge on wide screens,
       and to the viewport edge once the viewport is narrower than the grid */
    right: calc(50% - min(50%, (var(--unify-max-width) / 2)));
    height: 100%;
    width: clamp(110px, 15vw, 185px);
    background: url(assets/clock-tower.svg) right bottom / contain no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Reserve room on the right so the columns clear the tower.
   Matches the grid's stack breakpoint (768px) so there's no in-between
   window where 3 columns and a full-size tower fight for space. */
@media (min-width: 769px) {
    .rtc-footer__grid,
    .rtc-footer__bar {
        padding-right: clamp(150px, 16vw, 210px);
    }
}

@media (max-width: 768px) {
    .rtc-footer__grid { grid-template-columns: 1fr; }
    /* Tower steps back so it never sits on top of the stacked text */
    .unify-footer::after {
        opacity: 0.12;
        width: 130px;
    }
}


/* ══════════════════════════════════════════════════════
   UTILITY — page header banner
   ══════════════════════════════════════════════════════ */

.rtc-page-header {
    background: var(--rtc-blue);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    margin-bottom: var(--unify-space-2xl);
}

.rtc-page-header__title {
    font-size: var(--rtc-fs-h1);
    font-weight: var(--rtc-weight-bold);
    line-height: var(--rtc-lh-tight);
    color: var(--rtc-white);
    margin: 0;
}

.rtc-page-header__breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: var(--unify-space-sm);
}

.rtc-page-header__breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.rtc-page-header__breadcrumb a:hover {
    color: var(--rtc-white);
    opacity: 1;
}

/* ══════════════════════════════════════════════════════
   UPCOMING MEETINGS SECTION (Homepage)
   ══════════════════════════════════════════════════════ */

.rtc-upcoming-meetings {
    background: var(--rtc-white);
    padding-top: clamp(3rem, 5vw, 5rem);
    padding-bottom: clamp(3rem, 5vw, 5rem);
}

.rtc-upcoming-meetings__title {
    font-size: var(--rtc-fs-h2);
    font-weight: var(--rtc-weight-semibold);
    color: var(--rtc-text);
    margin: 0 0 var(--unify-space-xl, 2.5rem);
}

/* ══════════════════════════════════════════════════════
   RECENT MEETINGS PANEL (Shortcode: [council_recent_meetings])
   ══════════════════════════════════════════════════════ */

.cd-panel-wrap {
    background-color: var(--rtc-bg-alt); 
    border-radius: 16px;
    padding: clamp(20px, 3vw, 30px);
    font-family: var(--unify-font-body);
    color: var(--rtc-text);
    margin: var(--unify-space-xl, 2rem) 0;
}

.cd-rm-grid {
    display: grid;
    grid-template-columns: 2.5fr 2fr 1fr 1.5fr 1.5fr;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.cd-rm-header {
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text-muted);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding-bottom: 15px;
    padding-top: 0;
}

.cd-rm-row {
    border-bottom: 1px solid rgba(0,0,0,0.1); 
}

.cd-rm-row:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.cd-rm-col strong {
    font-weight: var(--rtc-weight-bold);
    color: var(--rtc-text);
}

.cd-rm-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--rtc-white);
    color: var(--rtc-blue);
    padding: 8px 20px;
    border-radius: var(--unify-radius-pill);
    text-decoration: none !important;
    font-weight: var(--rtc-weight-bold);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 2px solid transparent; 
}

.cd-rm-btn:hover {
    background-color: var(--rtc-blue);
    color: var(--rtc-white);
}

.cd-rm-ext {
    font-size: 0.6rem;
    background-color: var(--rtc-off-white);
    padding: 2px 4px;
    border-radius: var(--unify-radius-md);
    margin-left: 8px;
    margin-right: 4px;
    color: var(--rtc-blue);
    transition: all 0.2s ease;
}

.cd-rm-btn:hover .cd-rm-ext {
    background-color: var(--rtc-white);
    color: var(--rtc-blue);
}

.cd-rm-footer {
    text-align: center;
    padding-top: 25px;
}

.cd-rm-view-all {
    display: inline-flex;
    align-items: center;
    color: var(--rtc-text);
    font-weight: var(--rtc-weight-bold);
    text-decoration: none !important;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.cd-rm-view-all:hover {
    opacity: 0.8;
}

.cd-rm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rtc-blue);
    color: var(--rtc-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 800px) {
    .cd-rm-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .cd-rm-header {
        display: none;
    }
    .cd-rm-row {
        padding: 20px 0;
        text-align: center;
    }
    .cd-rm-action {
        margin-top: 10px;
    }
}

/* ══════════════════════════════════════════════════════
   SINGLE POSTS (News & Events)
   ══════════════════════════════════════════════════════ */

/* Target the main wrapper specifically on single blog posts */
.single-post .rtc-main .unify-inner,
.single-post article {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--unify-gutter, 20px);
    padding-right: var(--unify-gutter, 20px);
}

/* Ensure any wide/full-width Gutenberg blocks inside the post stay constrained */
.single-post .alignwide, 
.single-post .alignfull {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}