/* Organisations' websites. Their own colour comes from /_site/theme.css (--site,
   --site-text, --site-link, --site-dark). No inline styles anywhere. */
@font-face { font-family: "Atkinson Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root { --site: #1d64c4; --site-text: #fff; --site-link: #1d64c4; --site-dark: #164b93;
  --ink: #16191d; --muted: #4f5966; --line: #dfe3e8; --bg: #ffffff; --soft: #f5f7f9; }
* { box-sizing: border-box; }
body { margin: 0; font: 400 1.0625rem/1.65 "Atkinson Next", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
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: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header in the organisation's colour */
.site-head { background: var(--site); color: var(--site-text); }
.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(--site-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(--site-text); text-decoration: none; padding: .5rem .75rem; border-radius: 6px; 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: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; max-width: 30rem; background: #fff; }
.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 #8a94a1; border-radius: 6px; background: #fff; }
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: 6px; border: 0; background: var(--site); color: var(--site-text); cursor: pointer; text-decoration: none; }
.button:hover { background: var(--site-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border: 1px solid #8a94a1; }
.flash { padding: .8rem 1rem; border-left: 4px solid; border-radius: 6px; 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(--soft); color: var(--muted); 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(--muted); }
.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 #8a94a1; border-radius: 6px; background: #fff; }
.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: 8px; 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; }
