/* Organisations' websites. Their design (colours, fonts, sizes, layout) comes
   from /_site/theme.css as variables, plus body classes for layout choices
   (App\Sites\Design). No inline styles anywhere. */

:root { --site: #1d64c4; --site-text: #fff; --site-link: #1d64c4; --site-dark: #164b93; --accent: #0b6f6b; --accent-readable: #0b6f6b;
  --ink: #16191d; --muted: #4f5966; --line: #dfe3e8; --bg: #ffffff; --soft: #f5f7f9; --surface: #ffffff;
  --head-bg: var(--site); --head-text: var(--site-text); --foot-bg: #f5f7f9; --foot-text: #4f5966;
  --font-body: system-ui, sans-serif; --font-head: var(--font-body); --text-size: 1.0625rem; --width: 68rem;
  --radius: 10px; --button-radius: 6px; --card-shadow: none; --card-border: 1px solid var(--line); }
* { box-sizing: border-box; }
body { margin: 0; font: 400 var(--text-size)/1.65 var(--font-body); color: var(--ink); background: var(--bg); }
h1, h2, h3, h4, .site-name { font-family: var(--font-head); }
a { color: var(--site-link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--site); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: .5rem; background: #fff; padding: .5rem 1rem; z-index: 5; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1.25rem; }

/* Header in the organisation's colour */
.site-head { background: var(--head-bg); color: var(--head-text); }
.head-sticky .site-head { position: sticky; top: 0; z-index: 10; }
.head-centred .site-head .wrap { flex-direction: column; justify-content: center; text-align: center; gap: 0; }
.head-centred .site-nav ul { justify-content: center; }
.head-stacked .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 0; }
.head-centred .site-nav-wide, .head-stacked .site-nav-wide { padding-bottom: .6rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.site-name { color: var(--head-text); text-decoration: none; font-weight: 700; font-size: 1.35rem; line-height: 1.2; padding: .75rem 0; }
.site-name small { display: block; font-weight: 400; font-size: .9rem; opacity: .9; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: var(--head-text); text-decoration: none; padding: .5rem .75rem; border-radius: var(--button-radius); display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(0,0,0,.15); }
.site-nav summary { cursor: pointer; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: 6px; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav-narrow { display: none; }
@media (max-width: 720px) {
  .site-nav-wide { display: none; }
  .site-nav-narrow { display: block; width: 100%; padding-bottom: .75rem; }
  .site-nav-narrow ul { flex-direction: column; padding: .5rem 0 0; }
}

/* Content */
main { padding: 2.5rem 0 4rem; }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 1.25rem; letter-spacing: -.01em; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; line-height: 1.25; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1rem; }
.prose blockquote { border-left: 4px solid var(--site); padding: .25rem 0 .25rem 1rem; color: var(--muted); }
.prose img { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose table { border-collapse: collapse; width: 100%; } .prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem; text-align: left; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Forms (supporter accounts) */
.card { border: var(--card-border); border-radius: var(--radius); padding: 1.5rem; max-width: 30rem; background: var(--surface); box-shadow: var(--card-shadow); }
.cards-flat .card { padding-left: 0; padding-right: 0; background: transparent; }
.stack { display: grid; gap: 1rem; }
label { font-weight: 700; display: block; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=date], input:not([type]), textarea { font: inherit; width: 100%; padding: .6rem .75rem; min-height: 2.9rem; border: 1px solid var(--muted); border-radius: min(var(--radius), 8px); background: var(--surface); color: var(--ink); }
input[type=date] { max-width: 14rem; }
textarea { line-height: 1.5; resize: vertical; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--site); }
.button { display: inline-flex; align-items: center; justify-content: center; font: 700 1rem/1 inherit; font-family: inherit; padding: .85rem 1.3rem; min-height: 2.9rem; border-radius: var(--button-radius); border: 0; background: var(--site); color: var(--site-text); cursor: pointer; text-decoration: none; }
.button:hover { background: var(--site-dark); color: var(--site-text); }
.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--muted); }
.flash { padding: .8rem 1rem; border-left: 4px solid; border-radius: min(var(--radius), 6px); color: #16191d; margin-bottom: 1.25rem; max-width: 42rem; }
.flash.ok { background: #e6f4ec; border-color: #17663f; } .flash.bad { background: #fde8e6; border-color: #b42318; }
.error-text { color: #b42318; font-weight: 700; font-size: .9rem; }
.events { list-style: none; padding: 0; margin: 0; } .events li { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.account-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--foot-bg); color: var(--foot-text); font-size: .9rem; padding: 2rem 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot a { color: var(--foot-text); }
.foot-columns .site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 2rem; }
.foot-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-row { flex-basis: 100%; }
.foot-row .foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot-base { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }
.foot-base p { margin: 0; }
.preview-strip { background: #fef0c7; color: #4e1d09; font: 700 .9rem/1.4 system-ui, sans-serif; padding: .45rem 1rem; }
.preview-strip a { color: inherit; }
.env-strip { background: #0b6f6b; color: #fff; font: 700 .85rem/1.4 system-ui, sans-serif; padding: .3rem 1rem; }
.numbers { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.numbers li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.number { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.35rem; letter-spacing: .12em; }
.button.small { padding: .45rem .75rem; min-height: 2.2rem; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
select { font: inherit; padding: .55rem .6rem; min-height: 2.9rem; border: 1px solid var(--muted); border-radius: min(var(--radius), 8px); background: var(--surface); color: var(--ink); }
.card h2 { margin-top: 0; font-size: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

main p.results-note { margin-top: 1.5rem; }
fieldset.choices { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
fieldset.choices legend { font-weight: 600; margin-bottom: .5rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border: 1px solid var(--line, #d0d5dd); border-radius: min(var(--radius), 10px); background: var(--surface); font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--site); box-shadow: inset 0 0 0 1px var(--site); }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--site); }
.test-pay { border: 2px dashed #b54708; }
.test-pay .tag { display: inline-block; background: #fef0c7; color: #7a2e0e; padding: .15rem .5rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
a.raffle-card { display: block; color: inherit; text-decoration: none; }
a.raffle-card h2 { color: var(--site); text-decoration: underline; text-underline-offset: .2em; }
a.raffle-card:hover h2, a.raffle-card:focus-visible h2 { text-decoration-thickness: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.help-search { display: flex; gap: .5rem; max-width: 42rem; margin-bottom: 1.5rem; }
.help-search input { flex: 1; min-width: 0; }
.help-topics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); margin-bottom: 1.5rem; }
.help-topics h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.help-links { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 42rem; }
.help-links li { padding: .55rem 0; border-bottom: 1px solid var(--line, #e4e7ec); }
.help-topics .help-links { margin: .5rem 0 0; }
.help-topics .help-links li:last-child { border-bottom: 0; }
.helpful { max-width: 42rem; margin: 1.5rem 0; }
fieldset.choices.inline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
fieldset.choices.inline legend { float: left; margin: 0 .5rem 0 0; }
.help-contact { margin-top: 2rem; }
input.postcode { max-width: 10rem; text-transform: uppercase; }
/* The access-code page of a locked website. */
.access-wrap { max-width: 28rem; padding-top: 12vh; }
.access-wrap h1 { margin-top: 0; }
/* The second colour. */
.number { color: var(--accent-readable); }
.prose blockquote { border-left-color: var(--accent); }
/* Logo */
.site-name { display: inline-flex; align-items: center; gap: .75rem; }
.site-logo { display: block; width: auto; max-width: 16rem; height: 2.5rem; object-fit: contain; }
.logo-small .site-logo { height: 2rem; } .logo-large .site-logo { height: 4rem; max-width: 20rem; }
.head-centred .site-name { justify-content: center; }
.site-name small { display: block; }

/* Page sections (App\Sites\Sections) */
.sections { display: grid; gap: 0; }
.sec { padding: 1.75rem 0; }
.sec.bg-soft, .sec.bg-primary, .sec-bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
.sec.bg-soft { background: var(--soft); }
.sec.bg-primary { background: var(--site); color: var(--site-text); }
.sec.bg-primary a:not(.button) { color: var(--site-text); }
.sec.bg-soft + .sec.bg-soft, .sec.bg-primary + .sec.bg-primary { padding-top: 0; }
.sec-inner > :first-child { margin-top: 0; } .sec-inner > :last-child { margin-bottom: 0; }
.sec .prose > :first-child { margin-top: 0; } .sec .prose > :last-child { margin-bottom: 0; }
.sec-bleed .sec-inner { max-width: var(--width); margin: 0 auto; }
.button-on { background: var(--site-text); color: var(--site); }
.button-on:hover { background: var(--site-text); color: var(--site-dark); }
/* Banner */
.sec-banner { position: relative; overflow: hidden; padding-block: clamp(3rem, 9vw, 6.5rem); }
.sec-banner.bg-none:not(:has(.banner-image)) { background: var(--soft); }
.banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-body { position: relative; max-width: 40rem; padding: 0 1.25rem; }
.sec-banner .sec-inner { padding: 0; }
.banner-body.on-image { background: rgb(0 0 0 / .55); color: #fff; padding: 1.5rem 1.75rem; border-radius: var(--radius); margin-left: 1.25rem; }
.banner-body.on-image a:not(.button) { color: #fff; }
.banner-body h1, .banner-body h2 { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.1; margin: 0 0 .75rem; letter-spacing: -.01em; }
.banner-text { font-size: 1.15rem; margin: 0 0 1.25rem; }
.banner-body p:last-child { margin-bottom: 0; }
.bg-none .banner-body .button-on, .bg-soft .banner-body .button-on { background: var(--site); color: var(--site-text); }
.banner-body.on-image .button-on { background: var(--site); color: var(--site-text); }
/* Image */
.sec-figure { margin: 0; }
.sec-figure img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.sec-figure.size-content { max-width: 42rem; }
.sec-figure.size-wide img, .sec-figure.size-full img { width: 100%; }
.sec-figure.size-full img { border-radius: 0; max-height: 75vh; object-fit: cover; }
.sec-figure figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.sec-figure.size-full figcaption { max-width: var(--width); margin-inline: auto; padding: 0 1.25rem; }
/* Columns */
.sec-columns { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 46rem) { .sec-columns.cols-2 { grid-template-columns: 1fr 1fr; } .sec-columns.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.sec-columns .prose { max-width: none; }
/* Call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta h2 { margin: 0 0 .35rem; font-size: 1.5rem; line-height: 1.25; }
.cta p { margin: 0; } .cta > div { max-width: 42rem; }
.bg-primary .hint { color: var(--site-text); opacity: .85; }
/* Quote */
.sec-quote { margin: 0; max-width: 42rem; }
.sec-quote blockquote { margin: 0; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.45; border-left: 4px solid var(--accent); padding-left: 1.25rem; }
.sec-quote blockquote p { margin: 0; }
.sec-quote figcaption { margin-top: .75rem; padding-left: 1.5rem; color: var(--muted); }
.bg-primary .sec-quote blockquote { border-left-color: var(--site-text); }
.bg-primary .sec-quote figcaption { color: var(--site-text); }
/* Video */
.sec-video { max-width: 52rem; aspect-ratio: 16 / 9; }
.sec-video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
/* Raffles */
.sec-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin-top: 1rem; }
.sec-cards .card { max-width: none; }
.sec-cards h3 { margin: 0 0 .5rem; color: var(--site); }
/* Styles from the editor (App\Sites\RichText::CLASSES) */
.rich .lead { font-size: 1.2rem; }
.rich .small-print { font-size: .875rem; color: var(--muted); }
.rich a.button { margin: .25rem 0; }
.rich a.button-secondary { display: inline-flex; padding: .85rem 1.3rem; border-radius: var(--button-radius); border: 1px solid var(--muted); color: var(--ink); text-decoration: none; font-weight: 700; }
.rich .align-left { text-align: left; } .rich .align-center { text-align: center; } .rich .align-right { text-align: right; }
.rich img { border-radius: min(var(--radius), 8px); }
.rich .image-left { float: left; max-width: 45%; margin: .25rem 1.5rem 1rem 0; }
.rich .image-right { float: right; max-width: 45%; margin: .25rem 0 1rem 1.5rem; }
.rich .image-center { display: block; margin: 0 auto 1.1rem; }
.rich .image-full { display: block; width: 100%; margin-bottom: 1.1rem; }
.rich figure { margin: 0 0 1.1rem; } .rich figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.rich::after { content: ""; display: table; clear: both; }
.rich .table-striped tbody tr:nth-child(odd) { background: var(--soft); }
.rich table { margin-bottom: 1.1rem; }
@media (max-width: 36rem) { .rich .image-left, .rich .image-right { float: none; max-width: 100%; margin: 0 0 1rem; } }
