/* Shared design system for every public page. No external font or UI dependency. */
:root {
  color-scheme: light;
  --page: #f7f8f2;
  --surface: #fff;
  --surface-soft: #edf4e8;
  --ink: #183b34;
  --muted: #53695f;
  --forest: #102f2b;
  --forest-light: #20584a;
  --accent: #d7f685;
  --accent-soft: #eff8db;
  --peach: #f9e9db;
  --line: #dce6dc;
  --danger: #a53e35;
  --radius: 18px;
  --shadow: 0 12px 36px rgb(16 47 43 / 6%);
  font-family: "Segoe UI", "Aptos", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--forest-light); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #0b7053; }
img { display: block; max-width: 100%; height: auto; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--forest); }
:focus-visible { outline: 3px solid #b66528; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20000; top: -100px; left: 16px; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--forest); font-weight: 750; }
.skip-link:focus { top: 12px; }

/* Header, navigation and page frame. */
.site-header { background: var(--forest); color: #fff; border-top: 3px solid var(--accent); }
.header-inner, .footer-inner { width: min(100% - 64px, 1360px); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 89px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px 14px 14px 5px; background: var(--accent); color: var(--forest); transform: rotate(-6deg); }
.brand-mark .icon { width: 26px; height: 26px; transform: rotate(6deg); }
.brand-copy { display: grid; gap: 1px; }
.brand-name { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.055em; }
.brand-name > span { color: var(--accent); font-weight: 500; }
.brand small { color: #bfd3c8; font-size: .73rem; letter-spacing: .08em; }
.header-actions, .day-card-heading { display: flex; align-items: center; gap: 12px; }
.year-pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #54776b; padding: 7px 15px; border-radius: 99px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid #7c9b8b; border-radius: 10px; background: transparent; color: #fff; font-weight: 650; }
.layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 30px; width: min(100% - 64px, 1360px); margin: 30px auto 56px; }
.site-menu { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b5cab5 transparent; }
.menu-groups { display: grid; gap: 10px; }
.menu-section, .month-calendar { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.menu-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 13px; border: 0; background: var(--surface-soft); color: var(--forest); text-align: left; font-weight: 750; font-size: .84rem; }
.menu-section-title::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: -4px 3px 0 0; }
.menu-section-title[aria-expanded="false"]::after { transform: rotate(-45deg); margin-top: 0; }
.menu-section-links { display: grid; padding: 5px; gap: 2px; }
.menu-section-links a { display: flex; align-items: center; min-height: 38px; padding: 7px 10px; border-radius: 8px; font-size: .83rem; line-height: 1.4; text-decoration: none; color: var(--muted); }
.menu-section-links a:hover { background: #f0f5e8; color: var(--forest); }
.menu-section-links a.active { background: var(--accent); color: var(--forest); font-weight: 750; }
.content { min-width: 0; padding: clamp(20px, 3vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.content:focus { outline: none; }
.content-home { padding: 0; background: transparent; border: 0; box-shadow: none; }
h1, h2, h3, h4 { color: var(--forest); line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 0 22px; font-size: clamp(2rem, 3.6vw, 3.35rem); font-weight: 800; letter-spacing: -.055em; }
h2 { margin: 32px 0 17px; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 750; letter-spacing: -.035em; }
h3 { margin: 22px 0 12px; font-size: 1.2rem; font-weight: 750; letter-spacing: -.025em; }
h4 { margin: 0 0 10px; font-size: 1.06rem; letter-spacing: -.02em; }
p { margin: 0 0 16px; }
.intro { margin-bottom: 24px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.rich-text p:first-child, .intro p:first-child { margin-top: 0; }
.rich-text p:last-child, .intro p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.content-image { margin: 24px 0; }
.content-image img { width: 100%; height: auto; border-radius: var(--radius); }
.date-note, .name-summary { padding: 14px 18px; background: var(--accent-soft); border-left: 3px solid #8bb740; border-radius: 0 12px 12px 0; }
.back-link, .text-link { font-weight: 650; }
.related-links { columns: 2 240px; padding-left: 20px; }
.related-links li { padding: 4px 0; break-inside: avoid; }
.name-list { line-height: 2; }
.name-list a { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); font-weight: 650; }
.zodiac-symbol { color: var(--forest-light); font-family: "Segoe UI Symbol", sans-serif; font-weight: 700; }

/* Home: editorial hero, days and topic cards. */
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: center; gap: 32px; overflow: hidden; padding: clamp(24px, 3.3vw, 46px); border-radius: 22px; background: var(--forest); color: #fff; }
.home-hero::before { content: ""; position: absolute; width: 440px; height: 440px; right: -230px; top: -220px; border: 1px solid #45614b; border-radius: 50%; box-shadow: 0 0 0 70px rgb(215 246 133 / 3%), 0 0 0 140px rgb(215 246 133 / 3%); pointer-events: none; }
.home-hero-copy { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; font-size: .64rem; font-weight: 750; letter-spacing: .16em; }
.home-hero .eyebrow { color: var(--accent); margin-bottom: 18px; }
.home-hero .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.home-hero h1 { color: #fff; font-size: clamp(2.2rem, 3.3vw, 3.35rem); line-height: 1.07; margin-bottom: 18px; }
.home-hero .intro { color: #d1e1d6; font-size: .94rem; line-height: 1.7; margin: 0; }
.home-hero .intro a { color: var(--accent); }
.home-calendar-art { position: relative; padding: 16px 20px 20px; border-radius: 16px; background: #fbfff4; color: var(--forest); transform: rotate(5deg); box-shadow: 12px 18px 0 rgb(0 0 0 / 13%); }
.home-calendar-top { display: flex; align-items: center; gap: 8px; margin: -16px -20px 8px; padding: 14px 20px; border-radius: 16px 16px 0 0; background: var(--accent); font-size: .72rem; font-weight: 750; }
.home-calendar-art > strong { display: block; font-size: 4.1rem; line-height: 1.3; letter-spacing: -.07em; text-align: center; font-weight: 800; }
.home-calendar-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 8px 0 14px; }
.home-calendar-dots > span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; background: #e9f0df; }
.home-calendar-dots > .calendar-dot-special { background: #eac8ac; }
.home-calendar-dots > span:nth-child(13) { background: var(--forest); color: var(--accent); }
.home-calendar-dots .icon, .date-month > summary .icon { width: 16px; height: 16px; }
.home-calendar-note { display: block; text-align: center; font-size: .58rem; font-weight: 650; }
.content-home > h2 { margin-top: 32px; }
.day-list { display: grid; gap: 14px; }
.day-card, .category-card, .event-detail, .sun-summary article { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.day-card { border-top: 3px solid #bbdc7d; }
.day-card:nth-child(2) { border-top-color: #dfb18b; }
.day-card h3 { margin: 0; }
.day-card > .muted { margin: 10px 0 16px; font-size: .83rem; }
.card-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--forest-light); }
.day-card:nth-child(2) .card-icon, .category-card:nth-child(3n + 2) .card-icon { background: var(--peach); }
.category-card:nth-child(3n) .card-icon { background: #e4edf8; }
.day-events { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.day-events li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.day-event-title a { color: var(--forest); font-size: .93rem; }
.day-events .badges { justify-content: flex-end; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.badge, .table-wrap a.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 1px solid #d5e3c7; border-radius: 99px; background: #eff5e6; color: #36523a; font-size: .71rem; line-height: 1.4; text-decoration: none; font-weight: 500; }
.badge:hover { background: #e0edcd; color: var(--forest); }
.front-days-actions { margin: 16px 0 26px; }
.front-days-status { color: var(--danger); font-size: .86rem; margin: 8px 0 0; }
.front-days-status:empty { display: none; }
.front-sections { display: grid; gap: 26px; }
.front-category > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.05rem; }
.front-category > h3 .icon { color: #65865e; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-card { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 20px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.category-card:hover { transform: translateY(-3px); border-color: #a9c782; box-shadow: var(--shadow); }
.category-card .card-icon { margin-bottom: 14px; }
.category-card h4 a { color: var(--forest); text-decoration: none; }
.category-card h4 a:hover { text-decoration: underline; }
.category-card p { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.category-card .next-event { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; font-size: .79rem; }
.category-card .text-link { margin-top: auto; font-size: .8rem; }
.category-card .text-link::after { content: " →"; }
.button, .date-picker button, .postcode-button, .postcode-url-row button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--forest); border-radius: 10px; background: var(--forest); color: #fff; font-weight: 650; text-decoration: none; }
.button:hover, .date-picker button:hover, .postcode-button:hover, .postcode-url-row button:hover { background: var(--forest-light); color: #fff; }
.button-secondary { background: var(--surface); color: var(--forest); border-color: #bacdb4; }
.button-secondary:hover { background: var(--accent-soft); color: var(--forest); }

/* Tables and compact native month disclosures. All records remain in HTML. */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; line-height: 1.55; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: var(--forest); font-size: .76rem; font-weight: 700; }
tbody tr:nth-child(even) { background: #fafcf7; }
tbody tr:hover { background: #f2f7eb; }
tbody tr:last-child > * { border-bottom: 0; }
.table-wrap a { color: var(--forest); }
.event-place-links { display: grid; gap: 4px; }
.event-place-links a { display: inline-block; min-width: 24px; min-height: 24px; margin-right: 4px; }
.table-wrap time[datetime] { display: inline-block; white-space: nowrap; overflow-wrap: normal; word-break: normal; font-variant-numeric: tabular-nums; }
.date-list-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-table th:last-child, .date-table td:last-child { width: 42%; }
.summary-table th { width: 70%; }
.summary-table td { text-align: right; font-weight: 750; }
.date-months { margin: 20px 0 26px; }
.date-months-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: .79rem; }
.date-months-toolbar .button { font-size: .78rem; min-height: 38px; padding: 6px 13px; }
.date-months-groups { display: grid; gap: 6px; }
.date-month { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.date-month > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; list-style: none; cursor: pointer; color: var(--forest); border-radius: 10px; }
.date-month > summary::-webkit-details-marker { display: none; }
.date-month > summary::marker { content: ""; }
.date-month > summary:hover { background: #f4f8ed; }
.date-month-name { font-weight: 700; font-size: .91rem; }
.date-month-count { display: grid; place-items: center; min-width: 28px; min-height: 26px; margin-left: auto; padding: 2px 6px; border-radius: 8px; background: #f0f4eb; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.date-month-current { border-radius: 99px; padding: 2px 8px; background: var(--accent); color: var(--forest); font-size: .63rem; font-weight: 650; }
.date-month[open] { border-color: #b9cda1; }
.date-month[open] > summary { background: var(--accent-soft); border-radius: 10px 10px 0 0; }
.date-month[open] > summary .icon { transform: rotate(180deg); }
.date-month .table-wrap { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.date-month-empty { margin: 0; padding: 16px; font-size: .86rem; color: var(--muted); }

/* Date navigation, calendars and sun information. */
.quick-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 20px; }
.quick-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: .8rem; background: var(--surface); }
.quick-nav a.active, .quick-nav a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.date-picker { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 16px 0 20px; padding: 16px; border-radius: 13px; background: var(--surface-soft); }
.date-picker label { display: grid; gap: 5px; font-size: .83rem; font-weight: 650; min-width: 0; }
.date-picker input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #b8c8ad; border-radius: 9px; background: var(--surface); color: var(--ink); }
.year-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 28px; }
.month-calendar h3 { margin: 0; padding: 12px 14px; background: var(--forest); color: #fff; font-size: 1rem; }
.month-grid, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.month-head, .month-day { display: grid; place-items: center; min-height: 36px; padding: 4px 2px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .8rem; }
.month-head { background: var(--surface-soft); font-weight: 700; }
.month-day.weekend { background: #faf4ed; color: var(--danger); }
.month-day.holiday { background: var(--danger); color: #fff; font-weight: 750; }
.month-day.holiday:hover { background: #812d26; color: #fff; }
.month-day.muted { background: #f0f3eb; }
.month-events { display: grid; gap: 5px; margin: 0; padding: 12px 14px; list-style: none; font-size: .8rem; }
.month-events li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.month-events span { color: var(--danger); font-weight: 700; }
.calendar-grid { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 18px 0; }
.calendar-head, .calendar-cell { min-height: 96px; background: var(--surface); padding: 10px; }
.calendar-head { min-height: 40px; font-weight: 700; text-align: center; background: var(--surface-soft); }
.calendar-cell strong, .calendar-cell span { display: block; }
.calendar-cell span { font-size: .78rem; color: var(--danger); }
.calendar-cell.weekend { background: #faf4ed; }
.calendar-cell.holiday { box-shadow: inset 0 0 0 2px #e2b9ac; }
.calendar-cell.muted { background: #f0f3eb; }
.sun-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.sun-summary article { background: var(--accent-soft); }
.sun-summary article p { margin: 4px 0; }
.sun-timeline { display: grid; gap: 10px; margin: 20px 0; padding-left: 18px; border-left: 3px solid #b3ce7f; }
.sun-event { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 42px; }
.sun-event::before { content: ""; position: absolute; left: -25px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--forest-light); }
.sun-event time, .sun-event.important span { font-weight: 750; }

/* Address search shares the same inputs and surface rules. */
.postcode-search, .postcode-details { margin: 18px 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.postcode-search h2 { margin-top: 0; }
.postcode-search p { color: var(--muted); }
.postcode-row, .postcode-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.postcode-input-wrap { position: relative; min-width: 0; }
.postcode-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.postcode-input, .postcode-url-row input { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #b8c8ad; border-radius: 10px; background: #fff; color: var(--ink); padding: 9px 12px; }
.postcode-input { padding-left: 40px; }
.postcode-helper { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.postcode-suggestions { display: none; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.postcode-suggestions.show { display: block; }
.postcode-suggestion { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.postcode-suggestion:last-child { border-bottom: 0; }
.postcode-suggestion:hover, .postcode-suggestion.active { background: var(--accent-soft); }
.postcode-zip, .postcode-bigzip { display: grid; place-items: center; background: var(--forest); color: #fff; border-radius: 10px; padding: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.postcode-address strong, .postcode-address span { display: block; }
.postcode-address span { color: var(--muted); font-size: .8rem; }
.postcode-pill { padding: 4px 8px; border-radius: 99px; background: var(--accent-soft); font-size: .7rem; }
.postcode-details { display: none; }
.postcode-details.show { display: block; }
.postcode-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.postcode-detail-head h2 { margin: 0 0 8px; }
.postcode-detail-head p { margin: 0; color: var(--muted); }
.postcode-bigzip { font-size: 1.8rem; padding: 12px 18px; flex-shrink: 0; }
.postcode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.postcode-field, .postcode-urlbox { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow-wrap: anywhere; }
.postcode-field label, .postcode-urlbox label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.postcode-urlbox { grid-column: 1 / -1; }
.postcode-empty { padding: 16px; color: var(--muted); }
.postcode-error { color: var(--danger); }
.postcode-spinner { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--line); border-top-color: var(--forest); border-radius: 50%; animation: postcode-spin .8s linear infinite; }
@keyframes postcode-spin { to { transform: rotate(360deg); } }
ins.adsbygoogle { display: block; clear: both; max-width: 100%; margin: 26px 0 0; }

/* Footer has its own bounded columns, so links never stretch the whole row. */
.site-footer { padding: 44px 0; background: var(--forest); color: #c2d5c9; border-top: 3px solid var(--accent); }
.footer-inner { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(190px, .8fr) minmax(280px, 1fr); gap: 36px; }
.site-footer h2 { color: var(--accent); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 5px 0 16px; }
.site-footer p { font-size: .8rem; margin: 15px 0 12px; }
.site-footer a { color: #dce9df; font-size: .8rem; text-decoration: none; }
.site-footer a:hover, .site-footer .footer-link-button:hover { color: var(--accent); text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { font-size: 1.35rem; }
.site-footer .brand-mark { width: 36px; height: 36px; border-radius: 11px 11px 11px 4px; }
.site-footer .brand-mark .icon { width: 22px; height: 22px; }
.footer-about small { display: block; margin-top: 8px; color: #a8c1b1; font-size: .72rem; }
.footer-privacy nav { display: grid; justify-items: start; align-content: start; gap: 8px; }
.footer-network nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px 18px; }
.footer-link-button { padding: 0; border: 0; background: transparent; color: #dce9df; font-size: .8rem; text-align: left; line-height: 1.65; }

/* Consent uses the same palette, buttons, spacing and type. */
.consent-banner, .consent-dialog { border: 1px solid #c7d7bc; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 12px 50px rgb(16 47 43 / 22%); font: inherit; font-size: .84rem; line-height: 1.5; }
.consent-banner { position: fixed; z-index: 10000; inset: auto 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; width: calc(100% - 32px); max-width: 1000px; max-height: calc(100dvh - 32px); margin: 0 auto; padding: 20px 24px; overflow: auto; border-top: 4px solid #99c65a; }
.consent-eyebrow { color: var(--forest-light); font-size: .64rem; font-weight: 700; letter-spacing: .06em; }
.consent-banner h2, .consent-dialog h2 { color: var(--forest); font-size: 1.2rem; letter-spacing: -.03em; margin: 4px 0 8px; }
.consent-banner p, .consent-dialog p { margin: 0 0 8px; color: var(--muted); }
.consent-banner a, .consent-dialog a { color: var(--forest-light); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions .consent-button-settings { grid-column: 1 / -1; }
.consent-button { min-height: 44px; padding: 9px 14px; border: 1px solid #b4cd8d; border-radius: 10px; background: var(--accent); color: var(--forest); font-weight: 700; line-height: 1.35; }
.consent-button:hover { background: #c6e96b; }
.consent-button-settings { background: transparent; border-color: var(--line); font-size: .77rem; }
.consent-button-settings:hover { background: var(--surface-soft); }
.consent-dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 22px; overflow: hidden; }
.consent-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.consent-dialog::backdrop { background: rgb(10 33 28 / 65%); }
.consent-dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.consent-dialog-heading { display: flex; flex-shrink: 0; justify-content: space-between; gap: 12px; align-items: flex-start; }
.consent-dialog-heading h2 { margin-bottom: 0; }
.consent-close { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--forest); font-size: 28px; line-height: 1; }
.consent-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbf5; }
label.consent-category { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 12px; cursor: pointer; }
.consent-category h3, .consent-category strong { display: block; margin: 0; color: var(--ink); font-size: .88rem; }
.consent-category p, .consent-category-description { display: block; grid-column: 1 / -1; margin: 0; font-size: .77rem; line-height: 1.4; color: var(--muted); }
.consent-required { flex: 0 0 auto; color: var(--forest-light); font-size: .68rem; }
.consent-category input { grid-column: 2; grid-row: 1; width: 24px; height: 24px; margin: 0; accent-color: var(--forest-light); }
.consent-text-button { min-height: 44px; margin: 8px 0; padding: 6px 0; border: 0; background: transparent; color: var(--forest-light); font: inherit; text-decoration: underline; }
.consent-dialog .consent-fine-print { margin-top: 12px; font-size: .72rem; line-height: 1.5; }
.consent-dialog-actions { display: grid; flex-shrink: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent-noscript { padding: 12px 24px; color: var(--muted); text-align: center; }

@media (min-width: 1600px) {
  .home-hero h1 { font-size: 3.6rem; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 185px; gap: 24px; padding: 28px; }
  .home-calendar-art { padding: 14px; }
  .home-calendar-top { margin: -14px -14px 8px; padding: 12px 14px; }
  .home-calendar-art > strong { font-size: 3.2rem; }
  .home-calendar-dots { gap: 5px; }
  .home-calendar-note { font-size: .48rem; }
  .footer-inner { gap: 24px; grid-template-columns: 1fr .8fr 1fr; }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-calendar-art { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .header-inner, .footer-inner, .layout { width: calc(100% - 32px); }
  .header-inner { min-height: 76px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.27rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; }
  .brand-mark .icon { width: 23px; height: 23px; }
  .brand small { font-size: .65rem; }
  .year-pill { display: none; }
  .layout { display: block; margin-top: 18px; margin-bottom: 36px; }
  .site-menu { position: static; max-height: none; margin-bottom: 16px; }
  .has-js .site-menu.is-collapsed { display: none; }
  .has-js .menu-toggle { display: inline-flex; }
  .menu-section-links a { min-height: 42px; font-size: .87rem; }
  .menu-section-title { min-height: 46px; font-size: .88rem; }
  .content { padding: 22px; border-radius: 17px; }
  .content-home { padding: 0; }
  .home-hero { border-radius: 17px; }
  .home-hero h1 { font-size: clamp(2.3rem, 7.7vw, 3.1rem); }
  .home-hero .intro { font-size: .9rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-calendar { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-head { display: none; }
  .day-events li { grid-template-columns: 1fr; gap: 7px; }
  .day-events .badges { justify-content: flex-start; }
  .day-card { padding: 18px; }
  .day-card h3 { font-size: 1.08rem; }
  .site-footer { padding-block: 32px; }
}
@media (max-width: 600px) {
  .content { padding: 18px; }
  .content-home { padding: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { grid-column: auto; }
  .footer-network nav { max-width: 350px; }
  .postcode-row, .postcode-url-row, .postcode-suggestion, .postcode-grid { grid-template-columns: minmax(0, 1fr); }
  .postcode-search, .postcode-details { padding: 16px; }
  .postcode-helper, .postcode-detail-head { flex-direction: column; }
  .postcode-helper { gap: 4px; }
  .date-list-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .date-list-table tbody, .date-list-table tr { display: block; }
  .date-list-table tr { padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .date-list-table tr:last-child { border-bottom: 0; }
  .date-list-table td { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; white-space: normal; font-size: .85rem; }
  .date-list-table td::before { content: attr(data-label); color: var(--muted); font-size: .73rem; padding-top: 1px; }
  .date-list-table td:empty { display: none; }
  .date-list-table td > * { min-width: 0; }
  .date-list-table td .badges { gap: 4px; }
  .date-list-table:not(.date-list-columns-2) td:has(.date-list-value:empty) { display: none; }
  .date-list-columns-2 thead { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
  .date-list-columns-2 tbody { display: table-row-group; }
  .date-list-columns-2 tr { display: table-row; padding: 0; }
  .date-list-columns-2 td { display: table-cell; padding: 9px; }
  .date-list-columns-2 td:first-child { width: 6.4rem; white-space: nowrap; }
  .date-list-columns-2 td::before { content: none; }
  .date-list-columns-2 .date-list-value a { display: inline-block; min-height: 24px; }
  th, td { padding: 9px; }
  .consent-banner { inset: auto 10px 10px; width: calc(100% - 20px); max-height: calc(100dvh - 20px); grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .consent-dialog { padding: 16px; }
}
@media (max-width: 380px) {
  .header-inner, .footer-inner, .layout { width: calc(100% - 24px); }
  .brand-name { font-size: 1.13rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .brand { gap: 8px; }
  .menu-toggle { font-size: .8rem; padding: 8px 10px; }
  .header-actions { gap: 0; }
  .home-hero { padding: 24px; }
  .home-hero h1 { font-size: 2.25rem; }
  .date-month > summary { gap: 7px; padding: 10px; }
  .date-month-current { padding-inline: 6px; }
  .consent-dialog { padding: 12px; }
  .consent-dialog[open] { gap: 8px; }
  .consent-category { padding: 8px 10px; }
  .consent-dialog .consent-button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-menu, .site-footer, .consent-banner, .consent-dialog, .consent-status, .date-months-toolbar, .front-days-actions, ins.adsbygoogle { display: none !important; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .layout { display: block; width: 100%; margin: 0; }
  .content { padding: 0; border: 0; box-shadow: none; }
  .table-wrap { overflow: visible; }
  .date-month { margin-bottom: 8px; }
  .date-month::details-content { content-visibility: visible !important; display: block !important; }
  .home-hero { background: #fff; border: 1px solid #aaa; color: #000; }
  .home-hero h1, .home-hero .intro, .home-hero .eyebrow { color: #000; }
  .home-calendar-art { display: none; }
}
