/* Alston Moor Partnership – site styles
   Brand colours from the original RapidWeaver site. */
:root {
  --deep: #332859;      /* header and footer purple */
  --brand: #525189;     /* AMP purple */
  --lilac: #f4f3fa;     /* pale background */
  --line: #dedbef;
  --red: #c80014;       /* accent */
  --blue: #4967b4;      /* buttons */
  --blue-hover: #b8321c;/* button hover (orange-red, as the old site) */
  --text: #222;
  --muted: #4d4a63;
  --radius: 14px;
  --shadow: 0 4px 14px rgba(51, 40, 89, .10);
  --display: 'Federo', Georgia, serif;
  --caps: 'Alegreya Sans SC', 'Open Sans', sans-serif;
  --body: 'Open Sans', Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; }
h1, h2, h3 { color: var(--deep); line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-family: var(--caps); font-size: 1.55rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--deep); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }
.eyebrow { font-family: var(--caps); font-weight: 700; color: var(--red); font-size: 1.15rem; letter-spacing: .05em; margin: 0 0 .4em; }
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }
.section { padding: 64px 0; }
.section--lilac { background: var(--lilac); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand h2, .section--brand a { color: #fff; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--deep); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 12px 0; }
.brand img { display: block; height: 88px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #ffd6cf; }
.site-nav a[aria-current="page"] { border-bottom-color: #da4453; }
.menu-btn { display: none; align-items: center; gap: 8px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: 8px; font: inherit; font-weight: 700; padding: 8px 14px; cursor: pointer; min-height: 44px; }
.site-header--home .site-header__inner { flex-direction: column; padding-top: 26px; }
.site-header--home .brand img { height: 170px; }
.tagline { margin: 0 auto; padding: 4px 0 26px; text-align: center; font-family: var(--caps); font-size: 1.25rem; letter-spacing: .04em; color: #e4e1f4; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.15); color: #ffd6cf; }
  .brand img { height: 64px; }
  .site-header--home .site-header__inner { flex-direction: row; padding-top: 12px; }
  .site-header--home .brand img { height: 92px; }
}

/* ---------- Buttons and cards ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 8px; min-height: 44px; transition: background .2s; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover, a:hover .btn { background: var(--blue-hover); color: #fff; }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: #ffd6cf; color: var(--deep); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(51,40,89,.22); color: var(--text); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card__body p { margin: 0; flex-grow: 1; }
.card__body .btn { align-self: flex-start; }

/* ---------- Home ---------- */
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.intro img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(51,40,89,.25); }
.contact-band { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.contact-band h2 { margin-bottom: .2em; }
.contact-band p { margin: 0; }

/* ---------- Page hero ---------- */
.hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; background: var(--deep) center / cover no-repeat; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,24,60,.88), rgba(32,24,60,.35)); }
.hero .wrap { position: relative; padding: 48px 0 40px; }
.hero h1 { color: #fff; margin: 0; }
.hero .eyebrow { color: #ffd6cf; }
.crumbs { font-size: .95rem; margin: 0 0 10px; }
.crumbs a { color: #fff; }

/* Sub-navigation for the Townscape Heritage pages */
.subnav { background: var(--lilac); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 0 6px; }
.subnav a { padding: 15px 16px; font-weight: 600; color: var(--deep); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--blue-hover); }
.subnav a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 700; }

/* ---------- Townscape Heritage ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.figure-round { margin: 0; }
.figure-round img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.figure-round figcaption { font-size: .95rem; color: var(--muted); margin-top: 8px; }
.funders { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.funders img { height: 84px; width: auto; }
.funders span { font-family: var(--caps); font-size: 1.3rem; color: var(--deep); }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* Properties */
.prop-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.prop-index a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 8px 8px; text-decoration: none; color: var(--deep); font-weight: 600; line-height: 1.3; min-height: 64px; }
.prop-index a:hover { border-color: var(--brand); }
.prop-index img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.property { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.property:nth-of-type(even) { background: var(--lilac); }
.property__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.property__num { font-family: var(--caps); font-weight: 700; color: var(--red); font-size: 1.1rem; letter-spacing: .04em; }
.property__head h2 { margin: 0; }
.badge { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 20px; }
.property__sub { margin: -6px 0 18px; color: var(--muted); font-style: italic; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.photo-row a { display: block; text-decoration: none; color: var(--deep); }
.photo-row img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; display: block; background: #ddd; transition: opacity .2s; }
.photo-row a:hover img { opacity: .88; }
.photo-row span { display: block; font-weight: 700; font-size: .95rem; margin-top: 6px; }
@media (max-width: 700px) { .photo-row { grid-template-columns: 1fr; } .photo-row img { height: 240px; } }
.property h3 { margin-top: 0; }
.visit { margin-top: 6px; }

/* Events and training */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--brand); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ''; position: absolute; left: -12px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline .when { font-family: var(--caps); font-weight: 700; color: var(--red); font-size: 1.05rem; letter-spacing: .03em; }
.timeline h3 { font-size: 1.35rem; margin: 2px 0 4px; }
.timeline .count { display: inline-block; background: var(--lilac); color: var(--deep); border: 1px solid var(--line); border-radius: 20px; font-size: .9rem; font-weight: 700; padding: 1px 10px; margin-left: 6px; vertical-align: middle; font-family: var(--body); letter-spacing: 0; }
.timeline p { margin: 0 0 .3em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-weight: 700; color: var(--deep); margin-top: 8px; }
.keep { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* Documents */
.doc-group { margin-bottom: 40px; }
.doc-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-list li + li { border-top: 1px solid #eceaf6; }
.doc-list a { display: flex; gap: 16px; align-items: center; padding: 16px 20px; text-decoration: none; color: var(--text); min-height: 56px; }
.doc-list a:hover { background: var(--lilac); }
.doc-list .tag { background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
.doc-list .title { flex-grow: 1; font-weight: 600; }
.doc-list .title small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.doc-list .size { color: var(--muted); font-size: .95rem; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #fff; padding: 56px 0 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px 48px; justify-content: space-between; }
.site-footer__about { flex: 1 1 320px; }
.site-footer__about img { width: 220px; display: block; margin-bottom: 16px; }
.site-footer__about p { color: #e4e1f4; margin: 0; }
.site-footer__links { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.site-footer__links h2 { font-family: var(--caps); font-size: 1.35rem; color: #fff; margin: 0 0 8px; }
.site-footer__links a { display: block; color: #fff; text-decoration: none; padding: 4px 0; }
.site-footer__links a:hover { color: #ffd6cf; text-decoration: underline; }
.lock-link { display: inline-flex !important; align-items: center; gap: 8px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.2); margin: 36px 0 0; padding-top: 20px; color: #d6d2ec; font-size: 1rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,15,40,.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; margin-top: 10px; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2.4rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.notfound .btn { margin: 6px; }

@media print {
  .site-header, .site-footer, .subnav, .lightbox, .menu-btn { display: none !important; }
  body { font-size: 12pt; }
}
.section--brand .btn--light { color: var(--deep); }
.section--brand .btn--light:hover { color: var(--deep); }
@media (max-width: 760px) { .subnav { position: static; } }

/* ---------- Projects drop-down ---------- */
.dropdown { position: relative; }
.dropdown__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 3px solid transparent; color: #fff; font: inherit; font-weight: 600; padding: 8px 0; cursor: pointer; min-height: 44px; }
.dropdown__btn:hover { color: #ffd6cf; }
.dropdown.is-current .dropdown__btn { border-bottom-color: #da4453; }
.dropdown__btn svg { transition: transform .2s; }
.dropdown.is-open .dropdown__btn svg { transform: rotate(180deg); }
.dropdown__menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 30; min-width: 250px; background: #fff; border-radius: 10px; box-shadow: 0 14px 34px rgba(20, 15, 40, .3); padding: 8px; }
.dropdown.is-open .dropdown__menu { display: block; }
.site-nav .dropdown__menu a { display: block; color: var(--deep); padding: 11px 14px; border-radius: 6px; border-bottom: 0; }
.site-nav .dropdown__menu a:hover { background: var(--lilac); color: var(--blue-hover); }
.site-nav .dropdown__menu a[aria-current="page"] { background: var(--lilac); font-weight: 700; }
@media (min-width: 761px) {
  .dropdown:hover .dropdown__menu { display: block; }
}
@media (max-width: 760px) {
  .dropdown__btn { width: 100%; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .dropdown.is-current .dropdown__btn { border-bottom-color: rgba(255,255,255,.15); color: #ffd6cf; }
  .dropdown__menu { position: static; box-shadow: none; background: transparent; padding: 0 0 0 18px; min-width: 0; }
  .site-nav .dropdown__menu a { color: #fff; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-nav .dropdown__menu a:hover, .site-nav .dropdown__menu a[aria-current="page"] { background: transparent; color: #ffd6cf; }
}

/* ---------- Home: two-by-two grid ---------- */
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--two .card img { height: 240px; }
@media (max-width: 700px) { .cards--two { grid-template-columns: 1fr; } }

/* ---------- Community Development ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 32px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 28px 0 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--brand); line-height: 1.1; }
.photo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.photo-pair img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; display: block; }
.photo-pair figure { margin: 0; }
.photo-pair figcaption { font-size: .95rem; color: var(--muted); margin-top: 8px; }

/* ---------- Footer background: the old site's dark circle pattern ---------- */
.site-footer {
  background-color: #1b1b1b;
  background-image:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3e%3cg fill-rule='evenodd'%3e%3cg fill='rgba(156, 146, 172, 1.00)' fill-opacity='0.15' fill-rule='nonzero'%3e%3cpath d='M29 58.58l7.38-7.39A30.95 30.95 0 0 1 29 37.84a30.95 30.95 0 0 1-7.38 13.36l7.37 7.38zm1.4 1.41l.01.01h-2.84l-7.37-7.38A30.95 30.95 0 0 1 6.84 60H0v-1.02a28.9 28.9 0 0 0 18.79-7.78L0 32.41v-4.84L18.78 8.79A28.9 28.9 0 0 0 0 1.02V0h6.84a30.95 30.95 0 0 1 13.35 7.38L27.57 0h2.84l7.39 7.38A30.95 30.95 0 0 1 51.16 0H60v27.58-.01V60h-8.84a30.95 30.95 0 0 1-13.37-7.4L30.4 60zM29 1.41l-7.4 7.38A30.95 30.95 0 0 1 29 22.16 30.95 30.95 0 0 1 36.38 8.8L29 1.4zM58 1A28.9 28.9 0 0 0 39.2 8.8L58 27.58V1.02zm-20.2 9.2A28.9 28.9 0 0 0 30.02 29h26.56L37.8 10.21zM30.02 31a28.9 28.9 0 0 0 7.77 18.79l18.79-18.79H30.02zm9.18 20.2A28.9 28.9 0 0 0 58 59V32.4L39.2 51.19zm-19-1.4a28.9 28.9 0 0 0 7.78-18.8H1.41l18.8 18.8zm7.78-20.8A28.9 28.9 0 0 0 20.2 10.2L1.41 29h26.57z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"),
    linear-gradient(to right, #434343 0%, #000 100%);
  background-repeat: repeat, no-repeat;
  box-shadow: inset 0 0 18vw #000;
}
.site-footer__about p { color: #e8e6f0; }
.site-footer__legal { color: #cfcbe0; border-top-color: rgba(255,255,255,.18); }

/* ---------- Directory logos on the home page cards ---------- */
.card__logo { height: 240px; display: flex; align-items: center; justify-content: center; background: var(--lilac); border-bottom: 1px solid var(--line); }
.card .card__logo img { width: auto; height: 190px; object-fit: contain; }

/* ---------- Photo credit on a masthead ---------- */
.hero { flex-wrap: wrap; }
.hero .wrap { width: min(1120px, 100% - 48px); }
.photo-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .8rem; color: rgba(255,255,255,.85); }
.photo-credit a { color: #fff; }
.hero--photo::before { background: linear-gradient(to top, rgba(32,24,60,.85), rgba(32,24,60,.15) 70%); }
@media (max-width: 700px) { .photo-credit { position: relative; right: auto; bottom: auto; padding: 0 12px 8px; width: 100%; text-align: right; z-index: 1; } }
.hero--photo h1, .hero--photo .eyebrow { text-shadow: 0 2px 14px rgba(0,0,0,.65); }
@media (max-width: 700px) { .hero--photo::before { background: linear-gradient(to top, rgba(32,24,60,.9), rgba(32,24,60,.45)); } }

/* ---------- About us and Our projects (added 18 November 2026) ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 18px; background: var(--lilac); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.facts dt { font-weight: 700; color: var(--deep); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project-list article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.project-list article p:last-child { margin-bottom: 0; }
.card .eyebrow { margin: 0; font-size: 1rem; }
.do-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.do-grid li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px 24px 92px; }
.do-grid li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); font-size: 1.6rem; line-height: 48px; text-align: center; }
.do-grid h3 { margin: 0 0 6px; }
.do-grid p { margin: 0; }
@media (max-width: 760px) { .do-grid { grid-template-columns: 1fr; } .do-grid li { padding: 20px 20px 20px 80px; } .do-grid li::before { left: 18px; top: 20px; } }

/* ---------- Lottery page and "Before you go" pop-up (added 18 November 2026) ---------- */
.gold { color: #f2c75c; }
.lotto-hero { background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.08) 0 90px, transparent 91px), radial-gradient(circle at 88% 70%, rgba(255,255,255,.07) 0 130px, transparent 131px), linear-gradient(135deg, var(--deep), var(--brand)); color: #fff; padding: 64px 0 48px; border-bottom: 5px solid #d9b45a; }
.lotto-hero h1 { color: #fff; }
.lotto-hero .eyebrow { color: #ffd6cf; }
.lotto-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.lotto-stats div { min-width: 150px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
.lotto-stats strong { display: block; font-size: 1.8rem; letter-spacing: 0; text-transform: none; }
.lotto-stats .is-gold { background: rgba(242,199,92,.22); border-color: #f2c75c; }
.lotto-stats--light div { background: var(--lilac); border-color: var(--line); color: var(--deep); }
.lotto-stats--light .is-gold { background: #fdf3d6; border-color: #e6c66a; color: #7a5a00; }
.lotto-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.lotto-powered { margin: 18px 0 0; font-size: .95rem; color: #e4e1f4; }
.do-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.do-grid--four li { padding: 78px 20px 22px; text-align: center; }
.do-grid--four li::before { left: 50%; transform: translateX(-50%); top: 18px; }
@media (max-width: 960px) { .do-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .do-grid--four { grid-template-columns: 1fr; } }
.prizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.prize { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.prize span { display: block; font-family: var(--caps); font-weight: 700; color: var(--red); letter-spacing: .04em; }
.prize strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.3rem; color: var(--brand); line-height: 1.2; }
.prize--jackpot { background: #fdf3d6; border-color: #e6c66a; }
.prize--jackpot strong { color: #7a5a00; }
@media (max-width: 860px) { .prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.split li { background: var(--lilac); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.split strong { display: inline-block; min-width: 72px; font-size: 1.4rem; color: var(--deep); }
.split .split--local { background: var(--brand); border-color: var(--brand); color: #fff; }
.split .split--local strong { color: #fff; }
.enter { display: grid; gap: 16px; }
.enter > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.enter h3 { margin-bottom: 4px; }
.enter p { margin: 0 0 8px; }
.enter p:last-child { margin: 0; }
.tag-pop { font-family: var(--body); font-size: .75rem; font-weight: 700; background: var(--red); color: #fff; border-radius: 20px; padding: 2px 10px; vertical-align: middle; letter-spacing: 0; text-transform: uppercase; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--deep); min-height: 44px; }
.faq details p { margin: 0; padding: 0 20px 16px; }
.gamble { display: flex; gap: 22px; align-items: flex-start; border: 2px solid var(--deep); border-radius: var(--radius); padding: 24px 26px; }
.gamble h2 { font-size: 1.6rem; margin-bottom: .3em; }
.badge-18 { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; font-size: 1.2rem; }
.badge-18--small { width: 32px; height: 22px; border-radius: 12px; font-size: .75rem; vertical-align: middle; margin-right: 4px; }
.lotto-legal { padding: 24px 0; }
.lotto-legal p { font-size: .95rem; color: var(--muted); margin: 0; }
.exit-pop { position: fixed; inset: 0; z-index: 200; background: rgba(20,15,40,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.exit-pop[hidden] { display: none; }
.exit-pop__box { position: relative; width: min(480px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); text-align: center; }
.exit-pop__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.exit-pop__top { background: linear-gradient(135deg, var(--deep), var(--brand)); color: #fff; padding: 28px 56px 22px; border-bottom: 4px solid #d9b45a; }
.exit-pop__kicker { margin: 0 0 6px; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.exit-pop__top h2 { color: #fff; font-family: var(--body); font-weight: 700; font-size: 1.5rem; margin: 0 0 8px; }
.exit-pop__top p { margin: 0; }
.exit-pop__body { padding: 20px 24px 22px; }
.exit-pop__body .lotto-stats { margin: 0 0 16px; gap: 10px; }
.exit-pop__body .lotto-stats div { min-width: 0; flex: 1; padding: 10px 6px; font-size: .75rem; }
.exit-pop__body .lotto-stats strong { font-size: 1.35rem; }
.exit-pop__go { display: block; background: var(--deep); }
.exit-pop__foot { background: #f6f5fa; border-top: 1px solid var(--line); padding: 12px 20px; font-size: .85rem; color: var(--muted); }
.exit-pop__foot p { margin: 0 0 4px; }

/* ---------- Header background: faint circle pattern on the purple (chosen by Alix, 18 November 2026) ---------- */
.site-header {
  background-color:#332859;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3e%3cg fill-rule='evenodd'%3e%3cg fill='rgba(255, 255, 255, 1.00)' fill-opacity='0.09' fill-rule='nonzero'%3e%3cpath d='M29 58.58l7.38-7.39A30.95 30.95 0 0 1 29 37.84a30.95 30.95 0 0 1-7.38 13.36l7.37 7.38zm1.4 1.41l.01.01h-2.84l-7.37-7.38A30.95 30.95 0 0 1 6.84 60H0v-1.02a28.9 28.9 0 0 0 18.79-7.78L0 32.41v-4.84L18.78 8.79A28.9 28.9 0 0 0 0 1.02V0h6.84a30.95 30.95 0 0 1 13.35 7.38L27.57 0h2.84l7.39 7.38A30.95 30.95 0 0 1 51.16 0H60v27.58-.01V60h-8.84a30.95 30.95 0 0 1-13.37-7.4L30.4 60zM29 1.41l-7.4 7.38A30.95 30.95 0 0 1 29 22.16 30.95 30.95 0 0 1 36.38 8.8L29 1.4zM58 1A28.9 28.9 0 0 0 39.2 8.8L58 27.58V1.02zm-20.2 9.2A28.9 28.9 0 0 0 30.02 29h26.56L37.8 10.21zM30.02 31a28.9 28.9 0 0 0 7.77 18.79l18.79-18.79H30.02zm9.18 20.2A28.9 28.9 0 0 0 58 59V32.4L39.2 51.19zm-19-1.4a28.9 28.9 0 0 0 7.78-18.8H1.41l18.8 18.8zm7.78-20.8A28.9 28.9 0 0 0 20.2 10.2L1.41 29h26.57z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
  background-repeat: repeat;
}
