/* =========================================================
   ReadyTec factory design system — on top of Bootstrap 5.3
   Seeded from the Bucknell Matters prototype (2026-09-07).
   A design THEMES this file: it sets the --rt-* tokens and
   overrides components; it never has to invent them.
   ========================================================= */

/* ---------- Tokens (the theme overrides these) ---------- */
:root,
[data-bs-theme="light"] {
  --rt-primary: #2f6b3f;         /* principal accent: buttons, links, active states */
  --rt-primary-dark: #24522f;    /* hover and dark panels */
  --rt-primary-tint: #e6efe7;    /* pale wash for chips, quick links, active nav */
  --rt-accent: #a9541e;          /* secondary accent, used sparingly */
  --rt-accent-tint: #f9ece3;
  --rt-ink: #1e2a2b;             /* primary text */
  --rt-ink-soft: #4a5758;        /* secondary text */
  --rt-paper: #faf8f3;           /* page background */
  --rt-surface: #ffffff;         /* cards and panels */
  --rt-sand: #f1ede4;            /* subtle panel background */
  --rt-line: #e2ddd3;            /* borders */
  --rt-dark: #1e2a2b;            /* dark bands and the footer */
  --rt-dark-text: #d7dfd9;
  --rt-notice-bg: #fff4d9;
  --rt-notice-line: #d99a1e;
  --rt-danger: #b3261e;
  --rt-danger-bg: #fbe9e7;

  --rt-font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rt-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rt-heading-weight: 700;
  --rt-heading-tracking: -0.015em;
  --rt-body-size: 1.125rem;
  --rt-radius: 0.75rem;
  --rt-radius-sm: 0.5rem;
  --rt-radius-pill: 999px;
  --rt-shadow: 0 1px 2px rgba(30, 42, 43, 0.06);
  --rt-shadow-lg: 0 8px 24px rgba(30, 42, 43, 0.1);
  --rt-container: 1320px;
  --rt-hero-height: 56vh;        /* the home hero; .hero-full raises it to 88vh */
  --rt-banner-height: clamp(220px, 32vw, 460px);

  /* Bootstrap reads these */
  --bs-body-bg: var(--rt-paper);
  --bs-body-color: var(--rt-ink);
  --bs-body-font-family: var(--rt-font-body);
  --bs-body-font-size: var(--rt-body-size);
  --bs-body-line-height: 1.6;
  --bs-heading-color: var(--rt-ink);
  --bs-secondary-color: var(--rt-ink-soft);
  --bs-border-color: var(--rt-line);
  --bs-border-radius: var(--rt-radius-sm);
  --bs-border-radius-lg: var(--rt-radius);
  --bs-primary: var(--rt-primary);
  --bs-link-color: var(--rt-primary-dark);
  --bs-link-hover-color: var(--rt-ink);
  --bs-focus-ring-color: color-mix(in srgb, var(--rt-primary) 35%, transparent);
  --bs-emphasis-color: var(--rt-ink);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
@media (max-width: 767.98px) { :root { --rt-body-size: 1.0625rem; } }
.container { max-width: var(--rt-container); }

/* ---------- Typography ---------- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 { font-family: var(--rt-font-heading); font-weight: var(--rt-heading-weight); letter-spacing: var(--rt-heading-tracking); line-height: 1.15; }
h1, .h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
h3, .h3 { font-size: 1.375rem; }
h4, .h4 { font-size: 1.125rem; }
.lead { font-size: 1.25rem; font-weight: 400; color: var(--rt-ink-soft); }
.text-soft { color: var(--rt-ink-soft) !important; }
.measure { max-width: 68ch; }
.eyebrow, .kicker { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rt-primary); margin-bottom: 0.5rem; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
.link-plain { text-decoration: none; }
.link-plain:hover { text-decoration: underline; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- Focus and skip link ---------- */
:focus-visible { outline: 3px solid var(--rt-ink); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible { outline: 3px solid var(--rt-ink); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; padding: 0.75rem 1rem; background: var(--rt-ink); color: #fff; border-radius: var(--rt-radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-padding-y: 0.7rem; --bs-btn-padding-x: 1.25rem; --bs-btn-font-weight: 600; --bs-btn-border-radius: var(--rt-radius-pill); --bs-btn-font-size: 1rem; }
.btn-lg { --bs-btn-padding-y: 0.85rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1.0625rem; }
.btn-sm { --bs-btn-padding-y: 0.45rem; --bs-btn-padding-x: 0.9rem; --bs-btn-font-size: 0.9375rem; }
.btn-primary { --bs-btn-bg: var(--rt-primary); --bs-btn-border-color: var(--rt-primary); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--rt-primary-dark); --bs-btn-hover-border-color: var(--rt-primary-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--rt-primary-dark); --bs-btn-active-border-color: var(--rt-primary-dark); --bs-btn-disabled-bg: var(--rt-primary); --bs-btn-disabled-border-color: var(--rt-primary); }
.btn-outline-primary { --bs-btn-color: var(--rt-primary-dark); --bs-btn-border-color: var(--rt-primary); --bs-btn-hover-bg: var(--rt-primary); --bs-btn-hover-border-color: var(--rt-primary); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--rt-primary-dark); --bs-btn-active-border-color: var(--rt-primary-dark); --bs-btn-active-color: #fff; }
.btn-secondary { --bs-btn-bg: var(--rt-accent); --bs-btn-border-color: var(--rt-accent); --bs-btn-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--rt-accent) 82%, black); --bs-btn-hover-border-color: color-mix(in srgb, var(--rt-accent) 82%, black); --bs-btn-hover-color: #fff; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--rt-ink); --bs-btn-hover-bg: var(--rt-sand); --bs-btn-hover-border-color: var(--rt-sand); --bs-btn-hover-color: var(--rt-ink); }
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.8); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--rt-ink); --bs-btn-hover-border-color: #fff; }
.btn-outline-dark { --bs-btn-color: var(--rt-ink); --bs-btn-border-color: var(--rt-ink); --bs-btn-hover-bg: var(--rt-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--rt-ink); }
.btn-link { --bs-btn-font-weight: 600; }
.btn-icon { display: inline-flex; align-items: center; gap: 0.45rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.html-content .actions, .html-content .btn { margin: 0; }

/* ---------- Header and navigation (the factory's toggle contract: [data-nav-toggle] opens [data-nav]) ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--rt-surface); border-bottom: 1px solid var(--rt-line); }
.site-header .bar { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--rt-ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; flex: 0 0 auto; }
.brand:hover, .brand:focus { color: var(--rt-ink); }
.brand img { height: 44px; width: auto; display: block; }
.brand small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--rt-ink-soft); letter-spacing: 0.02em; }
.header-nav { flex: 1 1 auto; }
.nav-primary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.nav-primary .nav-link { display: block; color: var(--rt-ink); font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.85rem; border-radius: var(--rt-radius-pill); text-decoration: none; white-space: nowrap; }
.nav-primary .nav-link:hover { background: var(--rt-sand); }
.nav-primary .nav-link.active, .nav-primary .nav-link[aria-current="page"], .nav-primary .active > .nav-link { background: var(--rt-primary-tint); color: var(--rt-primary-dark); box-shadow: inset 0 -3px 0 var(--rt-primary); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; margin-left: auto; }
.header-actions .html-content { display: flex; align-items: center; gap: 0.9rem; }
.header-phone, .header-actions a[href^="tel:"] { font-weight: 600; color: var(--rt-ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover, .header-actions a[href^="tel:"]:hover { text-decoration: underline; }
.cta-phone { font-weight: 600; margin-left: 0.5rem; white-space: nowrap; }
[data-nav-toggle] { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rt-line); border-radius: var(--rt-radius-sm); background: var(--rt-surface); color: var(--rt-ink); }
[data-nav-toggle] .bars { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 1023.98px) {
  .site-header .bar { flex-wrap: wrap; }
  [data-nav-toggle] { display: inline-flex; order: 3; }
  .header-actions { margin-left: auto; order: 2; }
  .header-nav { order: 4; flex: 1 0 100%; }
  [data-nav] { display: none; padding: 0.5rem 0 0.75rem; }
  [data-nav].is-open { display: block; }
  .nav-primary { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-primary .nav-link { white-space: normal; padding: 0.7rem 0.9rem; }
  .header-actions .btn { display: none; }
}
@media (min-width: 1024px) { [data-nav] { display: block !important; } [data-nav-toggle] { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1199.98px) { .header-actions .btn { display: none; } }
.dropdown-menu { --bs-dropdown-border-color: var(--rt-line); --bs-dropdown-border-radius: var(--rt-radius); --bs-dropdown-padding-y: 0.5rem; --bs-dropdown-item-padding-y: 0.6rem; --bs-dropdown-item-padding-x: 1rem; --bs-dropdown-link-active-bg: var(--rt-primary-tint); --bs-dropdown-link-active-color: var(--rt-primary-dark); --bs-dropdown-link-hover-bg: var(--rt-sand); box-shadow: var(--rt-shadow-lg); min-width: 15rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--rt-dark); min-height: var(--rt-hero-height); display: grid; align-items: end; isolation: isolate; }
.hero-full { --rt-hero-height: 88vh; }
.hero-compact { --rt-hero-height: 44vh; }
@media (max-width: 767.98px) { .hero { min-height: min(var(--rt-hero-height), 70vh); } }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media figure, .hero-media .carousel, .hero-media .carousel-inner, .hero-media .carousel-item { width: 100%; height: 100%; margin: 0; }
.hero-media img { object-fit: cover; display: block; }
.hero-media .carousel-item { position: absolute; inset: 0; }
.hero-media .carousel-item.active { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,30,26,.18) 0%, rgba(20,30,26,.42) 50%, rgba(20,30,26,.82) 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 5rem) 0; max-width: 42rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.25rem); margin-bottom: 0.6rem; }
.hero .kicker { color: rgba(255,255,255,.85); }
.hero p, .hero .lead { color: rgba(255,255,255,.92); font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3rem); }
.hero .text-content a:not(.btn) { color: #fff; }
/* Slide captions sit bottom right, clear of the H1 layer; the first slide carries the headline itself, so its caption is hidden. */
.hero .carousel-caption { position: absolute; left: auto; right: 0; bottom: 0; max-width: 38%; padding: 0 clamp(1rem, 4vw, 3rem) 1.25rem 0; text-align: right; }
.hero .carousel-item:first-child .carousel-caption { display: none; }
@media (max-width: 767.98px) { .hero .carousel-caption { display: none; } }
.hero .carousel-caption h2 { font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0; color: rgba(255,255,255,.9); }
.hero .carousel-caption p { font-size: 1rem; margin: .15rem 0 0; }
.hero .carousel-indicators { z-index: 2; margin-bottom: 0.5rem; }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 4rem; z-index: 2; }

/* ---------- Inner-page banner (page-intro): a topic photograph from the site behind the title ---------- */
.page-banner { position: relative; isolation: isolate; color: #fff; background: var(--rt-dark); min-height: var(--rt-banner-height); display: grid; align-items: end; overflow: hidden; }
.banner-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; margin: 0; }
.banner-media img, .banner-media figure { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
*:has(> .banner-media) { position: relative; isolation: isolate; }
.banner-media ~ * { position: relative; z-index: 1; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,30,26,.2) 0%, rgba(20,30,26,.78) 100%); pointer-events: none; }
.page-banner .container { position: relative; z-index: 1; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-banner h1 { color: #fff; margin-bottom: 0.5rem; }
.page-banner p, .page-banner .lead { color: rgba(255,255,255,.92); max-width: 60ch; }
.page-banner .breadcrumb-module, .page-banner .breadcrumb-module a, .page-banner .breadcrumb-module li { color: rgba(255,255,255,.85); }
.page-header { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb-module ol, .breadcrumb-module ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; padding: 0; font-size: 0.9375rem; }
.breadcrumb-module li + li::before { content: "/"; margin-right: .35rem; color: var(--rt-ink-soft); }
.breadcrumb-module a { color: inherit; text-decoration: none; }
.breadcrumb-module a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.section-sand { background: var(--rt-sand); }
.section-white { background: var(--rt-surface); border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); }
.section-dark { background: var(--rt-dark); color: var(--rt-dark-text); }
.section-dark h2, .section-dark h3, .section-dark .h2 { color: #fff; }
.section-dark .kicker { color: color-mix(in srgb, var(--rt-primary) 60%, white); }
.section-dark a:not(.btn) { color: #fff; }
.section-primary { background: var(--rt-primary-dark); color: #fff; }
.section-primary h2, .section-primary h3 { color: #fff; }
.section-primary a:not(.btn) { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0.35rem 0 0; }
.band-alt { background: var(--rt-sand); }

/* ---------- Cards ---------- */
.card { --bs-card-border-color: var(--rt-line); --bs-card-border-radius: var(--rt-radius); --bs-card-inner-border-radius: calc(var(--rt-radius) - 1px); --bs-card-spacer-y: 1.25rem; --bs-card-spacer-x: 1.25rem; --bs-card-cap-bg: transparent; box-shadow: var(--rt-shadow); background: var(--rt-surface); color: var(--rt-ink); }
.card-hover { transition: border-color .15s, transform .15s; }
.card-hover:hover, .card-hover:focus-within { border-color: var(--rt-primary); }
.card .card-title a { color: var(--rt-ink); text-decoration: none; }
.card .card-title a:hover { text-decoration: underline; }
.card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }
.card-meta { font-size: 0.9375rem; color: var(--rt-ink-soft); }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.service-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rt-line); border-radius: var(--rt-radius); background: var(--rt-surface); box-shadow: var(--rt-shadow); overflow: hidden; transition: border-color .15s; }
.service-card:hover, .service-card:focus-within { border-color: var(--rt-primary); }
.service-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; flex: 1 1 auto; }
.service-card h3 { font-size: 1.2rem; margin: 0; }
.service-card p { color: var(--rt-ink-soft); font-size: 1rem; margin: 0; }
.service-card .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Quick links */
.quick-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.quick-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); text-decoration: none; color: var(--rt-ink); font-weight: 600; font-size: 1.0625rem; height: 100%; box-shadow: var(--rt-shadow); transition: border-color .15s, background .15s; }
.quick-link:hover, .quick-link:focus-visible { border-color: var(--rt-primary); background: var(--rt-primary-tint); color: var(--rt-primary-dark); }
.quick-link .ql-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--rt-primary-tint); color: var(--rt-primary-dark); font-size: 1.4rem; }
.quick-link:hover .ql-icon { background: var(--rt-primary); color: #fff; }
.quick-link .ql-arrow { margin-left: auto; color: var(--rt-ink-soft); }

/* Chips and badges */
.badge-cat, .chip { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: .02em; padding: 0.3em 0.7em; border-radius: var(--rt-radius-pill); background: var(--rt-primary-tint); color: var(--rt-primary-dark); text-decoration: none; }
.badge-cat.is-accent { background: var(--rt-accent-tint); color: var(--rt-accent); }
.badge-cat.is-ink { background: var(--rt-sand); color: var(--rt-ink); }
.chip { border: 1px solid var(--rt-line); background: var(--rt-surface); color: var(--rt-ink); font-weight: 500; font-size: 0.9375rem; padding: 0.45rem 0.9rem; }
.chip:hover { border-color: var(--rt-ink); color: var(--rt-ink); }
.chip[aria-current="true"], .chip.active { background: var(--rt-ink); color: #fff; border-color: var(--rt-ink); }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }

/* Stats and trust strip */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat, .trust-item { padding: 1.1rem 1.25rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); box-shadow: var(--rt-shadow); }
.stat strong, .trust-item strong { display: block; font-family: var(--rt-font-heading); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; color: var(--rt-primary-dark); margin-bottom: .25rem; }
.stat p, .trust-item p, .trust-item div { margin: 0; color: var(--rt-ink-soft); font-size: 1rem; }
.section-dark .stat, .section-dark .trust-item, .section-primary .stat, .section-primary .trust-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.section-dark .stat strong, .section-dark .trust-item strong, .section-primary .stat strong, .section-primary .trust-item strong { color: #fff; }

/* Feature and facility items */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.facility, .feature-item { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.25rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); height: 100%; }
.facility i, .feature-item i { font-size: 1.4rem; color: var(--rt-primary-dark); flex: 0 0 auto; }
.feature-item h3 { font-size: 1.0625rem; margin: 0 0 0.25rem; }
.feature-item p, .feature-item div { font-size: 0.9375rem; color: var(--rt-ink-soft); margin: 0; }

/* Events, documents, notices (for content sites) */
.event-item { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rt-line); }
.event-list > .event-item:last-child { border-bottom: 1px solid var(--rt-line); }
.event-date { flex: 0 0 auto; width: 64px; text-align: center; border-radius: var(--rt-radius-sm); background: var(--rt-primary-tint); color: var(--rt-primary-dark); padding: 0.4rem 0; line-height: 1.1; }
.event-date .day { display: block; font-size: 1.6rem; font-weight: 700; }
.event-date .mon { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-meta { font-size: 0.9375rem; color: var(--rt-ink-soft); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.notice { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--rt-notice-bg); border: 1px solid color-mix(in srgb, var(--rt-notice-line) 40%, white); border-left: 6px solid var(--rt-notice-line); border-radius: var(--rt-radius-sm); padding: 1rem 1.25rem; color: var(--rt-ink); }
.notice .notice-icon { font-size: 1.4rem; line-height: 1.2; color: #8a5f00; }
.notice h2, .notice h3 { font-size: 1.0625rem; margin: 0 0 0.15rem; }
.notice p { margin: 0; font-size: 1rem; }
.notice-urgent { background: var(--rt-danger-bg); border-left-color: var(--rt-danger); }
.notice-info { background: var(--rt-primary-tint); border-left-color: var(--rt-primary); }
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rt-line); border-radius: var(--rt-radius); background: var(--rt-surface); overflow: hidden; }
.doc-list li { display: flex; gap: 0.9rem; align-items: center; padding: 0.9rem 1.1rem; border-top: 1px solid var(--rt-line); }
.doc-list li:first-child { border-top: 0; }
.doc-list .doc-title { font-weight: 600; margin: 0; font-size: 1.0625rem; }
.doc-list .doc-meta { font-size: 0.875rem; color: var(--rt-ink-soft); }

/* CTA panel */
.cta-panel { background: var(--rt-primary-dark); color: #fff; border-radius: var(--rt-radius); padding: clamp(1.75rem, 4vw, 3rem); }
.cta-panel h2, .cta-panel h3 { color: #fff; }
.cta-panel p { color: rgba(255,255,255,.9); }
.cta-panel a:not(.btn) { color: #fff; }
.cta-panel .btn-primary { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--rt-primary-dark); --bs-btn-hover-bg: var(--rt-sand); --bs-btn-hover-border-color: var(--rt-sand); --bs-btn-hover-color: var(--rt-primary-dark); }

/* Split (text beside a photograph) and gallery */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } .split.split-reverse > :first-child { order: 2; } }
.feature-img, .split .image-module img { border-radius: var(--rt-radius); object-fit: cover; width: 100%; aspect-ratio: 4 / 3; display: block; }
.image-module { margin: 0; }
.image-module img { max-width: 100%; height: auto; display: block; border-radius: var(--rt-radius); }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure, .gallery-item { margin: 0; }
.gallery img, .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rt-radius-sm); display: block; }
.gallery figcaption { font-size: 0.875rem; color: var(--rt-ink-soft); margin-top: 0.35rem; }

/* People, info boxes, testimonials */
.person { display: flex; gap: 1rem; align-items: flex-start; }
.avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--rt-primary-tint); color: var(--rt-primary-dark); font-weight: 700; font-size: 1.25rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.info-box { background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 1.25rem; }
.info-box h2, .info-box h3 { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.kv { margin: 0; }
.kv dt { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rt-ink-soft); font-weight: 600; }
.kv dd { margin-bottom: 0.75rem; }
.testimonial { background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 1.5rem; height: 100%; }
.testimonial blockquote { margin: 0 0 .75rem; font-size: 1.0625rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--rt-ink-soft); font-size: .9375rem; }

/* Prose: the CMS text module */
.text-content, .prose { max-width: 70ch; }
.text-content > * + *, .prose > * + * { margin-top: 1em; }
.text-content h2, .prose h2 { margin-top: 1.6em; }
.text-content h3, .prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.text-content ul, .text-content ol, .prose ul, .prose ol { padding-left: 1.4em; }
.text-content li + li, .prose li + li { margin-top: 0.4em; }
.text-content a:not(.btn), .prose a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.text-content blockquote, .prose blockquote { border-left: 4px solid var(--rt-primary); padding: 0.25rem 0 0.25rem 1.25rem; color: var(--rt-ink-soft); font-size: 1.125rem; }
.text-content img, .prose img { max-width: 100%; height: auto; border-radius: var(--rt-radius); }
.two-col .text-content, .columns .text-content { max-width: none; }
.columns { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* FAQ: repeater items as an accordion-like list (no scripts needed) */
.faq-list { border: 1px solid var(--rt-line); border-radius: var(--rt-radius); background: var(--rt-surface); overflow: hidden; }
.faq-item { border-top: 1px solid var(--rt-line); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 700; color: var(--rt-primary-dark); }
.faq-item[open] summary { background: var(--rt-primary-tint); color: var(--rt-primary-dark); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0.25rem 1.25rem 1.25rem; color: var(--rt-ink-soft); }
.accordion { --bs-accordion-border-color: var(--rt-line); --bs-accordion-border-radius: var(--rt-radius); --bs-accordion-inner-border-radius: calc(var(--rt-radius) - 1px); --bs-accordion-btn-padding-y: 1rem; --bs-accordion-btn-padding-x: 1.25rem; --bs-accordion-body-padding-x: 1.25rem; --bs-accordion-active-bg: var(--rt-primary-tint); --bs-accordion-active-color: var(--rt-primary-dark); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-bg: var(--rt-surface); }
.accordion-button { font-weight: 600; font-size: 1.0625rem; }

/* Forms: Bootstrap's classes and the CMS form module's markup */
.form-label, .rdcms-form label { font-weight: 600; margin-bottom: 0.35rem; display: block; }
.form-text { color: var(--rt-ink-soft); }
.form-control, .form-select, .rdcms-form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .rdcms-form textarea, .rdcms-form select { display: block; width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #b9b3a8; border-radius: var(--rt-radius-sm); background: var(--rt-surface); color: var(--rt-ink); font-size: 1.0625rem; font-family: inherit; }
.form-control::placeholder, .rdcms-form input::placeholder { color: #7b8586; }
.form-control:focus, .form-select:focus, .rdcms-form input:focus, .rdcms-form textarea:focus { border-color: var(--rt-primary); box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color); outline: 0; }
.rdcms-form-group { margin-bottom: 1rem; }
.rdcms-form-group.rdcms-form-check { display: flex; gap: .6rem; align-items: flex-start; }
.rdcms-form-group.rdcms-form-check label { font-weight: 500; margin: 0; }
.form-check-input { width: 1.25em; height: 1.25em; margin-top: 0.15em; border-color: #7b8586; }
.form-check-input:checked { background-color: var(--rt-primary); border-color: var(--rt-primary); }
.rdcms-form-submit, .rdcms-form button[type=submit], .rdcms-form input[type=submit] { display: inline-block; padding: 0.7rem 1.25rem; border-radius: var(--rt-radius-pill); border: 1px solid var(--rt-primary); background: var(--rt-primary); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; width: auto; }
.rdcms-form-submit:hover, .rdcms-form button[type=submit]:hover { background: var(--rt-primary-dark); border-color: var(--rt-primary-dark); }
.rdcms-form-message { margin-top: 1rem; font-weight: 500; }
.rdcms-form-message:empty { display: none; }
.rdcms-form-required, .rdcms-form .required { color: var(--rt-danger); }
.invalid-feedback, .rdcms-form-error { color: var(--rt-danger); font-weight: 500; font-size: 0.9375rem; }
.error-summary { border: 2px solid var(--rt-danger); border-radius: var(--rt-radius-sm); padding: 1rem 1.25rem; background: var(--rt-surface); }
.error-summary h2 { font-size: 1.125rem; color: var(--rt-danger); }
fieldset legend { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-details .kv dd a { color: var(--rt-ink); }
.map-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rt-radius); overflow: hidden; border: 1px solid var(--rt-line); background: var(--rt-sand); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pagination, tabs, tables, empty state */
.pagination { --bs-pagination-color: var(--rt-ink); --bs-pagination-border-color: var(--rt-line); --bs-pagination-hover-bg: var(--rt-sand); --bs-pagination-hover-color: var(--rt-ink); --bs-pagination-active-bg: var(--rt-primary); --bs-pagination-active-border-color: var(--rt-primary); --bs-pagination-padding-y: 0.6rem; --bs-pagination-padding-x: 1rem; --bs-pagination-focus-box-shadow: none; }
.page-link { font-weight: 600; min-width: 44px; text-align: center; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--rt-ink); --bs-nav-link-color: var(--rt-ink); --bs-nav-pills-border-radius: var(--rt-radius-pill); --bs-nav-link-font-weight: 600; }
.nav-pills .nav-link { border: 1px solid var(--rt-line); background: var(--rt-surface); }
.table { --bs-table-border-color: var(--rt-line); --bs-table-bg: var(--rt-surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rt-line); border-radius: var(--rt-radius); background: var(--rt-surface); }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed #c9c2b5; border-radius: var(--rt-radius); background: var(--rt-surface); }

/* ---------- Footer ---------- */
.site-footer { background: var(--rt-dark); color: var(--rt-dark-text); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; margin-top: auto; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .text-content { max-width: none; color: var(--rt-dark-text); }
.site-footer .text-content a { color: #fff; }
.footer-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.9375rem; color: #b8c3bb; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom a { color: #fff; }
.footer-bottom .html-content, .footer-bottom p { margin: 0; }

/* ---------- Style guide swatches and utilities ---------- */
.swatch { border-radius: var(--rt-radius); border: 1px solid var(--rt-line); overflow: hidden; background: var(--rt-surface); }
.swatch .sw { height: 72px; }
.swatch .sw-info { padding: .6rem .8rem; font-size: .875rem; }
.bg-sand { background: var(--rt-sand) !important; }
.bg-primary-tint { background: var(--rt-primary-tint) !important; }
.text-primary-dark { color: var(--rt-primary-dark) !important; }
.min-tap { min-height: 44px; min-width: 44px; }

/* ---------- The trial mark (spec §15): a bar fixed to the bottom of the viewport ---------- */
.trial-mark { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff3cd; color: #664d03; padding: .45rem 1rem; text-align: center; font: 600 .85rem/1.3 system-ui, sans-serif; box-shadow: 0 -1px 0 rgba(0,0,0,.08); }
body { padding-bottom: 2.4rem; }

/* ---------- Community components (2026-09-07): quick links, notices, news, events, meetings, documents, people, mailing list, sidebar ---------- */
.hero.hero-boxed { --rt-hero-height: 52vh; min-height: 22rem; }
.hero.hero-boxed .hero-content { max-width: 36rem; }
.quick-link .ql-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.quick-link .ql-body strong { font-weight: 700; }
.quick-link .ql-text { font-weight: 400; font-size: .9375rem; color: var(--rt-ink-soft); }
.quick-link .ql-text:empty { display: none; }
.notice .notice-body { flex: 1 1 auto; min-width: 0; }
.notice .notice-body .actions { margin-top: .5rem; }
.notice .notice-body .actions:empty { display: none; }
.news-cards .news-card .card-meta { margin-bottom: .5rem; }
.news-cards .news-card .card-meta .badge-cat:empty, .news-cards .news-card .card-meta time:empty { display: none; }
.news-cards .card-title { font-size: 1.2rem; margin-bottom: .5rem; }
.event-list { border-bottom: 1px solid var(--rt-line); }
.event-body { flex: 1 1 auto; min-width: 0; }
.event-body h3 { font-size: 1.125rem; margin: 0 0 .25rem; }
.event-body h3 a { color: var(--rt-ink); text-decoration: none; }
.event-body h3 a:hover { text-decoration: underline; }
.event-meta { font-size: .9375rem; color: var(--rt-ink-soft); margin-bottom: .35rem; }
.event-meta time:empty { display: none; }
.event-date .day:empty, .event-date .mon:empty { display: none; }
.doc-list .doc-item > i { font-size: 1.5rem; color: var(--rt-primary-dark); }
.doc-list .doc-meta:empty { display: none; }
.people-grid .person { padding: 1.1rem 1.25rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); box-shadow: var(--rt-shadow); }
.people-grid .person h3 { font-size: 1.125rem; margin: 0 0 .15rem; }
.avatar img[src=""] { display: none; }
.mailing-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.mailing-panel h2 { margin-bottom: .35rem; }
.mailing-panel p { margin: 0; }
.section-primary .mailing-panel, .section-primary .mailing-panel h2 { color: #fff; }
.sidebar-split .two-col { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 992px) { .sidebar-split .two-col { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); } }
.aside { padding: 1.25rem; background: var(--rt-surface); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); }
.aside h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rt-ink-soft); margin-bottom: .75rem; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { border-top: 1px solid var(--rt-line); }
.aside li:first-child { border-top: 0; }
.aside a { display: block; padding: .6rem 0; color: var(--rt-ink); text-decoration: none; font-weight: 600; }
.aside a:hover { color: var(--rt-primary-dark); text-decoration: underline; }
/* A banner with no photograph (a site with no usable images) is a compact strip, not an empty wall. */
.page-banner:not(:has(.banner-media img)) { min-height: 0 !important; padding: clamp(1.5rem, 4vw, 2.5rem) 0 !important; }
.page-banner:not(:has(.banner-media img)) .container { padding-top: 0 !important; }
/* The hero's words take their colour from .hero-content, so a theme that gives the boxed panel a light background and dark ink gets legible text. */
.hero-content { color: #fff; }
.hero h1, .hero .kicker, .hero p, .hero .lead, .hero .text-content a:not(.btn) { color: inherit; }
.hero .kicker, .hero p, .hero .lead { opacity: .92; }
/* An event with no parseable date ("Every Friday") shows its wording in the meta line and no date block. */
.event-date:has(.day:empty):has(.mon:empty) { display: none; }
/* Civic hero (councils and community sites, from the Bucknell prototype): a typographic band sized by its words, no photograph needed; one behind it when the site has one. */
.hero.hero-civic { --rt-hero-height: 0; min-height: 0 !important; height: auto !important; align-items: start; }
.hero.hero-civic .hero-content { max-width: 40rem; padding: clamp(2.5rem, 5vw, 4.5rem) 0 !important; }
.hero.hero-civic h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
.hero.hero-civic .actions .btn, .hero.hero-civic .cta .btn { margin-right: .5rem; margin-bottom: .5rem; }
.hero.hero-civic:has(.hero-media img)::after { background: linear-gradient(90deg, rgba(20,30,26,.86) 0%, rgba(20,30,26,.6) 55%, rgba(20,30,26,.25) 100%); }
.hero.hero-civic:not(:has(.hero-media img))::after { background: none; }
