/* Alston Moor Community Directory – site styles
   Colours agreed with Alix, 22 Nov 2026. Each part of the site has its own colour set (see .t-*). */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --ink: #1F3A24; --ink-2: #33503A; --muted: #4E6650; --forest: #1F3A24; --green: #2F5233;
  --ground: #FAF9F6; --line: #E3E8DF; --white: #FFFFFF; --amber: #E67E22; --danger: #8E2A1F; --alert: #C0392B;
  --head: "Montserrat", Arial, sans-serif; --body: "Open Sans", Arial, sans-serif;
  /* default theme */
  --bar: #2F5233; --band: #F1F5EC; --dark: #2F5233; --eye: #3D5A12; --soft: #D7E2CF; --btn: #2F5233; --btntext: #FFFFFF; --tint: #D9EBB5;
}
.t-events   { --bar: #6B8E23; --band: #E2EFCB; --dark: #2F5233; --eye: #3D5A12; --soft: #C7DCA3; --btn: #4F6B1A; --btntext: #FFFFFF; --tint: #D9EBB5; }
.t-news     { --bar: #2F6690; --band: #DCEBF5; --dark: #1F4B6E; --eye: #1F5A85; --soft: #C2D9EA; --btn: #2F6690; --btntext: #FFFFFF; --tint: #CFE3F2; }
.t-groups   { --bar: #7A5A9E; --band: #EFE6F7; --dark: #4A2F66; --eye: #5B3F78; --soft: #DCCBEC; --btn: #7A5A9E; --btntext: #FFFFFF; --tint: #E4D6F2; }
.t-opps     { --bar: #E67E22; --band: #FFE3C2; --dark: #7A3D08; --eye: #8A4609; --soft: #F3C994; --btn: #E67E22; --btntext: #1F2A10; --tint: #FFD9A8; }
.t-contacts { --bar: #2A8C84; --band: #D3EEEC; --dark: #1F4F4B; --eye: #1F6460; --soft: #A9D6D2; --btn: #1F6E68; --btntext: #FFFFFF; --tint: #BFE6E2; }
.t-resources{ --bar: #B59A1C; --band: #F4EECC; --dark: #5A4A08; --eye: #6B5A0E; --soft: #E2D69A; --btn: #B59A1C; --btntext: #1F2A10; --tint: #EDE3AE; }
.t-lottery  { --bar: #3A3D6B; --band: #E8E7F2; --dark: #2D2F54; --eye: #3A3D6B; --soft: #CFCDE3; --btn: #3A3D6B; --btntext: #FFFFFF; --tint: #E8E7F2; }
.t-map      { --bar: #2A8C84; --band: #D3EEEC; --dark: #1F4F4B; --eye: #1F6460; --soft: #A9D6D2; --btn: #1F6E68; --btntext: #FFFFFF; --tint: #BFE6E2; }
.t-info     { --bar: #2F5233; --band: #F1F5EC; --dark: #2F5233; --eye: #3D5A12; --soft: #D7E2CF; --btn: #2F5233; --btntext: #FFFFFF; --tint: #D9EBB5; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: #2F6690; } a:hover { color: #1F4B6E; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #E67E22; outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- rainbow strip ---------- */
.rainbow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: 8px; }
.rainbow > span:nth-child(1) { background: #6B8E23; } .rainbow > span:nth-child(2) { background: #2F6690; }
.rainbow > span:nth-child(3) { background: #7A5A9E; } .rainbow > span:nth-child(4) { background: #E67E22; }
.rainbow > span:nth-child(5) { background: #2A8C84; } .rainbow > span:nth-child(6) { background: #B59A1C; }
.rainbow.thick { height: 10px; }

/* ---------- header ---------- */
.site-header { background: var(--forest); color: #fff; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { width: 64px; height: 60px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.brand b { display: block; font-family: var(--head); font-weight: 800; font-size: 23px; line-height: 1.15; }
.brand span { display: block; font-size: 16px; color: #D9EBB5; line-height: 1.15; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 8px; font-weight: 600; color: #fff; text-decoration: none; transition: background-color .2s ease; }
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav a[aria-current="page"] { background: var(--tint); color: var(--ink); font-weight: 700; }
.nav .add { margin-left: 8px; padding: 10px 18px; border-radius: 999px; background: var(--amber); color: #1F2A10; font-weight: 700; }
.nav .add:hover { background: #F08E36; color: #1F2A10; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid #D9EBB5; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .nav { width: 100%; display: none; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .add { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--btn); color: var(--btntext); font-weight: 700; text-decoration: none; border: 2px solid var(--btn); font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { color: var(--btntext); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.18); filter: brightness(1.06); }
.btn.outline { background: #fff; color: var(--dark); }
.btn.outline:hover { color: var(--dark); }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.danger { --btn: var(--danger); --btntext: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--bar); color: var(--dark); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.chip:hover { color: var(--dark); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.chip[aria-current="page"], .chip.on { background: var(--btn); border-color: var(--btn); color: var(--btntext); }
.chip .n { font-weight: 600; opacity: .85; }
.tag { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--dark); font-size: 14px; font-weight: 700; }
.tag.solid { background: var(--btn); color: var(--btntext); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--green); color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 6vw, 54px); line-height: 1.1; max-width: 760px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero p { font-size: 22px; max-width: 640px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.searchbar { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin-top: 8px; }
.searchbar input { flex: 1 1 280px; min-height: 52px; padding: 0 18px; border: 2px solid transparent; border-radius: 10px; font: inherit; font-size: 18px; color: var(--ink); }
.searchbar button { min-height: 52px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--amber); color: #1F2A10; font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; }
.hero .chips a { padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s ease, filter .2s ease; }
.hero .chips a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hc-events { background: #4F6B1A; color: #fff; } .hc-news { background: #2F6690; color: #fff; } .hc-groups { background: #7A5A9E; color: #fff; }
.hc-opps { background: #E67E22; color: #1F2A10; } .hc-contacts { background: #1F6E68; color: #fff; } .hc-resources { background: #B59A1C; color: #1F2A10; }
.hc-events:hover, .hc-news:hover, .hc-groups:hover, .hc-contacts:hover { color: #fff; } .hc-opps:hover, .hc-resources:hover { color: #1F2A10; }

/* ---------- bands (home sections and page headers) ---------- */
.band { background: var(--band); border-top: 8px solid var(--bar); border-bottom: 1px solid var(--soft); }
.band > .wrap { padding-top: 56px; padding-bottom: 56px; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--eye); margin-bottom: 4px; }
.band h2.title { font-size: 34px; color: var(--dark); }
.band .lead, .page-band .lead { color: var(--dark); margin-top: 6px; max-width: 720px; font-size: 18px; }
.band .more { font-weight: 700; color: var(--dark); }
.page-band { background: var(--band); border-top: 8px solid var(--bar); border-bottom: 1px solid var(--soft); }
.page-band > .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.page-band h1 { font-weight: 800; font-size: clamp(30px, 5vw, 42px); line-height: 1.15; color: var(--dark); }
.crumbs { font-size: 15px; color: var(--dark); }
.crumbs a { color: var(--dark); }
.page-band .head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.tight { gap: 16px; }
.card { background: #fff; border: 1px solid var(--soft); border-top: 6px solid var(--bar); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover, .card.lift:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(31,58,36,.18); color: var(--ink); }
.card .pic { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .5s ease; background: #fff; }
.card .pic.contain { object-fit: contain; padding: 10px; }
a.card:hover .pic { transform: scale(1.05); }
.card .pic-wrap { overflow: hidden; }
.card .ph { height: 120px; background: var(--band); display: flex; align-items: center; justify-content: center; color: var(--bar); }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.card h3 { font-size: 20px; line-height: 1.3; color: var(--ink); }
.card .meta { font-size: 15px; color: var(--muted); }
.card .go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--dark); }
.row-card { background: #fff; border: 1px solid var(--soft); border-left: 6px solid var(--bar); border-radius: 14px; padding: 14px; display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.row-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31,58,36,.14); }
.row-card img, .row-card .ph { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; background: var(--band); display: flex; align-items: center; justify-content: center; color: var(--bar); }
.row-card h3 { font-size: 19px; line-height: 1.3; }
.row-card .when { font-weight: 700; color: var(--eye); }
.row-card .meta { font-size: 15px; color: var(--muted); }
@media (max-width: 520px) { .row-card img, .row-card .ph { width: 84px; height: 72px; } }

.day-head { margin: 16px 0 4px; font-size: 22px; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.day-head::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bar); flex: none; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- two-column page layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 36px; padding-bottom: 64px; }
.layout > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.layout > .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.page-main { padding-top: 36px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.box { background: #fff; border: 1px solid var(--soft); border-top: 6px solid var(--bar); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 21px; color: var(--dark); }
.article { background: #fff; border: 1px solid var(--soft); border-top: 6px solid var(--bar); border-radius: 16px; overflow: hidden; }
.article > img.lead-img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.article > .inner { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 560px) { .article > .inner { padding: 22px; } }
.article h2 { font-size: 24px; color: var(--dark); }
.prose { font-size: 19px; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { color: var(--dark); margin-top: 6px; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 19px; }
.prose ul, .prose ol { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; }
.prose img { border-radius: 12px; height: auto; }
.prose blockquote { margin: 0; padding: 12px 18px; border-left: 6px solid var(--bar); background: var(--band); border-radius: 0 10px 10px 0; }
.info { display: flex; gap: 12px; align-items: flex-start; }
.info svg { flex: none; margin-top: 3px; color: var(--btn); }
.info .k { font-size: 15px; color: var(--muted); }
.info .v { font-weight: 700; overflow-wrap: anywhere; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--band); color: var(--dark); font-weight: 700; }
.notice.warn { background: #FFE3C2; color: #7A3D08; }
.notice.ok { background: #E2EFCB; color: #2F5233; }
.notice.bad { background: #F8D7D3; color: #7A1F15; }
.back { font-weight: 700; color: var(--dark); }
.empty { padding: 30px; text-align: center; background: #fff; border-radius: 14px; border: 1px dashed var(--soft); color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- forms ---------- */
.form { background: #fff; border: 1px solid var(--soft); border-top: 6px solid var(--bar); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 560px) { .form { padding: 22px; } }
.form h2 { font-size: 24px; color: var(--dark); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.field .hint { font-size: 15px; color: var(--muted); }
.field .req { color: #9A1B1B; }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=date], .field input[type=time], .field input[type=number], .field input[type=password], .field input[type=search], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #CFD9C8; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bar); outline: none; box-shadow: 0 0 0 3px rgba(230,126,34,.25); }
.field input[type=file] { font: inherit; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 22px; height: 22px; flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { padding: 14px 18px; border-radius: 12px; background: #F8D7D3; color: #7A1F15; }
.errors ul { margin: 6px 0 0; padding-left: 22px; }

/* ---------- events extras ---------- */
.toggle { display: inline-flex; border: 2px solid var(--btn); border-radius: 999px; overflow: hidden; }
.toggle a { padding: 10px 20px; background: #fff; color: var(--dark); font-weight: 700; text-decoration: none; }
.toggle a[aria-current="page"] { background: var(--btn); color: var(--btntext); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border-radius: 14px; overflow: hidden; }
.cal th { background: var(--band); color: var(--dark); padding: 10px 4px; font-size: 15px; }
.cal td { vertical-align: top; height: 110px; border: 1px solid var(--line); padding: 6px; font-size: 14px; }
.cal td.other { background: #F7F8F4; color: #8A8F86; }
.cal td.today { box-shadow: inset 0 0 0 3px var(--bar); }
.cal .d { font-weight: 800; }
.cal a { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: var(--band); color: var(--dark); text-decoration: none; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--soft); }
.cal-wrap .cal { min-width: 700px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.month-nav h2 { color: var(--dark); font-size: 26px; }

/* ---------- contacts emergency strip & lottery ---------- */
.sos { background: #1F4F4B; color: #fff; border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.sos b { font-family: var(--head); font-weight: 800; font-size: 22px; }
.sos span span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; color: #1F4F4B; font-weight: 700; margin: 4px 6px 4px 0; }
.lotto-top { background: #3A3D6B; border-top: 8px solid #C5A552; color: #fff; }
.lotto-top .wrap { padding-top: 28px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 14px; }
.lotto-top h1 { font-weight: 800; font-size: clamp(34px, 6vw, 46px); }
.lotto-top a { color: #F0DFA6; }
.btn.gold { --btn: #C5A552; --btntext: #1E1F38; }
.btn.ghost-gold { background: transparent; border-color: #F0DFA6; color: #fff; }
.btn.ghost-gold:hover { color: #fff; }
details.faq { background: #fff; border: 1px solid #CFCDE3; border-left: 6px solid #3A3D6B; border-radius: 12px; padding: 16px 18px; }
details.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; color: #2D2F54; }
details.faq p { margin-top: 10px; color: var(--ink-2); }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: #3A3D6B; color: #F0DFA6; font-family: var(--head); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.lotto-panel { background: #3A3D6B; border-radius: 18px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: #fff; }
.lotto-panel h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.lotto-panel .eyebrow { color: #F0DFA6; }

/* ---------- map ---------- */
#map { height: 560px; border-radius: 12px; z-index: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c); }
.pin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: #E6EEE2; margin-top: 0; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.site-footer a { color: #E6EEE2; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font-size: 20px; color: #fff; margin-bottom: 4px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.site-footer .brand img { width: 72px; height: 68px; }
.site-footer .places { font-size: 15px; color: #D9EBB5; font-weight: 600; }
.add-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.add-btns a { padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.add-btns a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.site-footer .bottom { background: #16291A; }
.site-footer .bottom .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- animations (switched off for reduced motion) ---------- */
@keyframes amFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes amGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes amZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero > img { animation: amZoom 8s ease-out both; }
.am-in { animation: amFadeUp .8s ease-out both; }
.am-in.d1 { animation-delay: .15s; } .am-in.d2 { animation-delay: .3s; } .am-in.d3 { animation-delay: .45s; }
.rainbow > span { transform-origin: left; animation: amGrow .6s ease-out both; }
.rainbow > span:nth-child(2) { animation-delay: .08s; } .rainbow > span:nth-child(3) { animation-delay: .16s; }
.rainbow > span:nth-child(4) { animation-delay: .24s; } .rainbow > span:nth-child(5) { animation-delay: .32s; } .rainbow > span:nth-child(6) { animation-delay: .4s; }
@supports (animation-timeline: view()) {
  .reveal { animation: amFadeUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header .nav, .menu-btn, .site-footer .add-btns, .searchbar { display: none !important; }
  .band, .page-band { border-top-width: 3px; }
}

/* information pages */
.info-page h3 { font-size: 23px; margin-top: 10px; }
.info-page h4 { font-size: 19px; color: var(--eye); margin-top: 4px; }
.info-page hr { border: 0; border-top: 2px solid var(--line); margin: 10px 0; width: 100%; }
.prose a.btn { align-self: flex-start; }

/* ---------- category colours (added 22 Nov 2026): every category has its own colour ---------- */
.chip.cc { background: var(--ct); border-color: var(--cc); color: #1F2A22; display: inline-flex; align-items: center; gap: 7px; }
.chip.cc::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); flex: none; }
.chip.cc:hover { color: #1F2A22; }
.chip.cc[aria-current="page"] { background: var(--cc); border-color: var(--cc); color: #fff; }
.chip.cc[aria-current="page"]::before { background: #fff; }
.cal a[style] { background: var(--ct); border-left: 4px solid var(--cc); color: #1F2A22; border-radius: 4px 6px 6px 4px; }
.cal a[style]:hover { background: var(--cc); color: #fff; }
.cal-key { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; font-size: 15px; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 14px; height: 14px; border-radius: 4px; background: var(--ct); border-left: 4px solid var(--cc); }

/* ---------- home page resources: two roomy cards across (added 22 Nov 2026) ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.res-card { background: #fff; border: 1px solid var(--soft); border-left: 6px solid var(--bar); border-radius: 14px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.res-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31,58,36,.14); }
.res-card .ph { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--band); display: flex; align-items: center; justify-content: center; color: var(--bar); }
.res-card .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-card .t { font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--dark); }
.res-card .meta { font-size: 15px; color: var(--muted); }
.res-card .go { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--btn); color: var(--btntext); font-weight: 700; font-size: 15px; }

/* ---------- resources carry their category colour (added 22 Nov 2026) ---------- */
.catc { border-left-color: var(--cc); }
.catc .ph { background: var(--ct); color: var(--cc); }
.catc:hover { box-shadow: 0 10px 22px rgba(31,58,36,.14), inset 0 0 0 1px var(--cc); }
.cat-head { color: var(--cc); }
.cat-head::before { background: var(--cc); width: 14px; height: 14px; }
.cat-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--ct); border: 1px solid var(--cc); color: #1F2A22; font-size: 14px; font-weight: 700; }
.cat-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }

/* ---------- lottery pop-up (added 22 Nov 2026, brought back from the old site) ---------- */
.lotto-pop { border: 0; padding: 0; border-radius: 18px; width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.35); color: #1F2A22; }
.lotto-pop::backdrop { background: rgba(15,23,42,.6); }
.lotto-pop[open] { animation: am-in .35s ease both; }
.lp-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #3A3D6B; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.lp-top { background: linear-gradient(135deg, #3A3D6B 0%, #5A5D9A 50%, #7B7AB0 100%); color: #fff; text-align: center; padding: 26px 56px 22px; border-bottom: 5px solid #C5A552; }
.lp-top h2 { color: #fff; font-size: 24px; line-height: 1.25; margin: 6px 0; }
.lp-top h2 span { color: #FFE5A8; }
.lp-top p { margin: 0; font-size: 16px; }
.lp-eye { text-transform: uppercase; letter-spacing: .12em; font-size: 13px !important; font-weight: 700; opacity: .9; }
.lp-brand { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; background: #FAFAFB; border-bottom: 1px solid #ECECEF; }
.lp-brand > img { height: 44px; width: auto; }
.lp-line { width: 1px; height: 28px; background: #ECECEF; }
.lp-by { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #6B6982; }
.lp-by img { height: 16px; }
.lp-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.lp-body p { margin: 0; font-size: 17px; }
.lp-body strong { color: #3A3D6B; }
.lp-facts { display: flex; gap: 10px; }
.lp-facts div { flex: 1; border-radius: 10px; padding: 10px 6px; background: #E8E7F2; border: 1px solid #CFCDE3; display: flex; flex-direction: column; }
.lp-facts b { font-size: 20px; color: #3A3D6B; }
.lp-facts span { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4B5563; }
.lp-facts .gold { background: #FAF4E0; border-color: #E8D89A; }
.lp-facts .gold b { color: #8A6B1F; }
.lotto-pop .btn { --btn: #3A3D6B; --btntext: #fff; justify-content: center; }
.lp-foot { background: #FAFAFB; border-top: 1px solid #E5E7EB; padding: 12px 20px; text-align: center; font-size: 13px; color: #4B5563; display: flex; flex-direction: column; gap: 4px; }
.lp-foot p { margin: 0; }
.lp-18 { background: #111827; color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 700; margin-right: 4px; }
@media (max-width: 420px) { .lp-top { padding: 24px 44px 18px; } .lp-top h2 { font-size: 21px; } .lp-facts b { font-size: 17px; } }

/* ---------- small map on event, group and opportunity pages (added 23 Nov 2026) ---------- */
.place-map { height: 240px; border-radius: 12px; border: 1px solid var(--soft); z-index: 0; background: var(--band); }
