/* Shared design for every pageant site. Colours come from each site's settings. */
:root {
  --bg: #f8f3ea;
  --surface: #ffffff;
  --text: #241c14;
  --muted: #6b5d4d;
  --accent: #a8834a;
  --accent-text: #ffffff;
  --dark: #1c1712;
  --radius: 10px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Lato, system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin: 0 0 1.2rem; }

/* Header and menu */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.brand img { height: 56px; width: auto; }
.brand span { font-family: Oswald, sans-serif; font-size: 1.3rem; color: var(--text); text-transform: uppercase; }
.brand { text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
nav a, nav summary {
  display: block; padding: 0.5rem 0.8rem; border-radius: 6px;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
  color: var(--text); text-decoration: none; cursor: pointer;
}
nav a:hover, nav summary:hover, nav a[aria-current="page"], .has-current > details > summary { color: var(--accent); }
nav summary { list-style: none; }
nav summary::-webkit-details-marker { display: none; }
nav summary::after { content: " ▾"; font-size: 0.8em; }
.menu-group { position: relative; }
.menu-group ul {
  position: absolute; right: 0; top: 100%; min-width: 220px;
  flex-direction: column; align-items: stretch;
  background: var(--surface); border-radius: var(--radius); padding: 0.4rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
}
.menu-toggle, .menu-button { display: none; }

@media (max-width: 860px) {
  .menu-button {
    display: block; width: 44px; height: 44px; position: relative; cursor: pointer;
  }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); content: "";
  }
  .menu-button span { top: 21px; }
  .menu-button span::before { top: -7px; left: 0; right: 0; }
  .menu-button span::after { top: 7px; left: 0; right: 0; }
  nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    padding: 0.5rem 1rem 1rem;
  }
  .menu-toggle:checked ~ nav { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  .menu-group ul { position: static; box-shadow: none; background: transparent; padding-left: 1rem; }
}

/* Page sections */
main { padding-bottom: 3rem; }
.hero { position: relative; max-width: 1400px; margin: 0 auto; }
/* The banner image is shown whole (never cropped) so clickable areas stay over the right spot. */
.hero-frame { position: relative; }
.hero-img { width: 100%; height: auto; }
.hotspot { position: absolute; border-radius: 999px; }
.hotspot:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.hotspot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero-text { text-align: center; padding: 2.2rem 1rem 0.5rem; max-width: 760px; margin: 0 auto; }
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.5rem; }
.hero-text p { font-size: 1.15rem; color: var(--muted); }
.block { max-width: var(--max); margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 0; }
.text { max-width: 780px; }
.text p { margin: 0 0 1rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.8rem; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: 500 1rem Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; padding: 2rem 1rem 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.person { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgb(0 0 0 / 0.06); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.person figcaption { padding: 0.8rem 1rem 0.4rem; text-align: center; }
.person strong { display: block; font-family: Oswald, sans-serif; font-weight: 500; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
.role { display: block; color: var(--muted); font-size: 0.9rem; }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.4rem 0.8rem 1rem; }
.vote {
  text-align: center; padding: 0.45rem 0.3rem; border-radius: 6px; font-size: 0.85rem;
  border: 1px solid var(--accent); color: var(--text); text-decoration: none;
}
.vote:hover { background: var(--accent); color: var(--accent-text); }

.apply form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 720px; margin: 0 auto;
  background: var(--surface); padding: clamp(1rem, 4vw, 2rem); border-radius: var(--radius);
}
.apply p { text-align: center; }
.apply label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.95rem; }
.apply input, .apply textarea {
  font: inherit; padding: 0.6rem 0.7rem; border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  border-radius: 6px; background: var(--bg); color: var(--text);
}
.apply .wide { grid-column: 1 / -1; }
.apply .small { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 600px) { .apply form { grid-template-columns: 1fr; } }

.site-footer {
  background: var(--dark); color: #eee6da; text-align: center; padding: 2rem 1rem; font-size: 0.95rem;
}
.site-footer a { color: #eee6da; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-bottom: 0.6rem; }
.apply .check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.apply .check input { margin-top: 0.35rem; }
.form-status { margin: 0; text-align: center; font-weight: 700; }
.form-status:empty { display: none; }
