/* AP Bruzek Events - main stylesheet (hand-written, no frameworks)
   Design: bright white, deep teal + terracotta; Outfit (headings) + Nunito Sans (text). */
:root {
  --white: #ffffff;
  --tint: #e5f3f1;
  --tint-2: #f4fbfa;
  --teal-900: #06383d;
  --teal-700: #0b5d63;
  --teal-600: #0e7078;
  --coral: #c2431f;
  --coral-dark: #9c3214;
  --coral-soft: #fdece6;
  --ink: #14292b;
  --muted: #475d5f;
  --line: #cfe3e0;
  --radius: 16px;
  --radius-lg: 28px;
  --head: "Outfit", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --text: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --page: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (min-width: 720px) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--coral); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Header: white, colour strip on top, centred logo above the nav ---------- */
.site-header { background: var(--white); position: relative; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, var(--teal-700) 0 70%, var(--coral) 70% 100%); }
.site-header__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; padding-bottom: 12px; }
.brand { color: var(--teal-700); text-decoration: none; font-family: var(--head); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; display: flex; align-items: center; gap: 12px; text-align: left; }
.brand:hover { color: var(--teal-900); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__sub { display: block; font-family: var(--text); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-dark); margin-top: 2px; }

.nav { width: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.nav__item { position: relative; margin: 0; }
.nav__link { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-family: var(--head); font-size: .98rem; font-weight: 500; border-radius: 999px; }
.nav__link:hover { color: var(--teal-900); background: var(--tint); }
.nav__link[aria-current="page"] { color: #fff; background: var(--teal-700); }
.nav__sub { list-style: none; margin: 0; padding: 0; display: none; }
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub {
  display: block; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; z-index: 20; min-width: 320px; padding: 8px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(6,56,61,.18); border-radius: var(--radius);
}
.nav__sub .nav__item { margin: 0; }
.nav__sub .nav__link { padding: 10px 14px; font-size: .92rem; border-radius: 10px; }
@media (max-width: 719px) {
  .brand { font-size: 1.5rem; }
  .brand__mark { width: 36px; height: 36px; }
  .nav__item--has-sub:hover > .nav__sub, .nav__item--has-sub:focus-within > .nav__sub { position: static; transform: none; box-shadow: none; min-width: 0; border: 0; padding: 0 0 0 12px; }
  .nav__link { padding: 7px 11px; font-size: .92rem; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 20px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--coral); font-weight: 800; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--head); color: var(--teal-900); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); margin: .35em 0 .4em; letter-spacing: -.025em; }
h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem); font-weight: 600; margin: 2.4em 0 .8em;
  background: var(--tint); border-left: 8px solid var(--coral); border-radius: 4px 16px 16px 4px;
  padding: .3em .9em .35em .7em; width: fit-content; max-width: 100%; scroll-margin-top: 16px;
}
h3 { font-size: 1.3rem; font-weight: 600; color: var(--teal-700); margin: 1.7em 0 .4em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--coral); }
strong { color: var(--teal-900); }

.eyebrow {
  display: inline-block; font-family: var(--head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--coral-soft); color: var(--coral-dark); font-weight: 700; margin: 0; padding: 4px 12px; border-radius: 14px; line-height: 1.5;
}
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 .8em; }
.disclaimer { font-size: .9rem; background: var(--tint-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 1.4em; color: var(--muted); }

/* ---------- Article page ---------- */
.article { padding-bottom: 64px; }
.article__lead { font-size: 1.12em; color: #243b3d; }

.article__head { display: grid; gap: 20px; padding-top: 18px; align-items: center; }
.article__head > * { min-width: 0; }
.article__head .eyebrow { justify-self: start; }
.article__head .figure--hero { order: -1; margin: 0; }
.article__head--simple { background: var(--tint); border-radius: var(--radius-lg); padding: 32px 24px 22px; gap: 4px; margin-top: 18px; }
.article__head--simple h1 { margin: .3em 0 .25em; }
.article__head--simple .meta { margin: 0; }
@media (min-width: 900px) {
  .article__head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 48px; padding-top: 28px; }
  .article__head--split .figure--hero { grid-column: 2; grid-row: 1 / span 4; order: 0; align-self: start; }
  .article__head--split > :not(.figure) { grid-column: 1; }
  .article__head--simple { padding: 44px 48px 30px; }
}

.article__body { margin-top: 12px; max-width: 800px; margin-left: auto; margin-right: auto; }
.article__body--toc { max-width: none; }
.article__body > :first-child { margin-top: 1.4em; }

/* Left sticky table of contents (guide) */
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 2em 0; }
.toc__title { font-family: var(--head); font-size: 1.1rem; font-weight: 700; color: var(--teal-900); margin: 0 0 .5em; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc li a { display: block; padding: 5px 10px; border-left: 3px solid var(--line); text-decoration: none; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.toc li a:hover { border-left-color: var(--coral); background: var(--tint-2); color: var(--teal-900); }
@media (min-width: 720px) and (max-width: 1099px) { .toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; } }
@media (min-width: 1100px) {
  .article__body--toc { display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .article__body--toc > * { grid-column: 2; min-width: 0; }
  .article__body--toc > .toc { grid-column: 1; grid-row: 1 / span 300; position: sticky; top: 20px; margin: 1.6em 0 0; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; }
  .article__body--toc > :first-child:not(.toc) { margin-top: 1.4em; }
}

/* Figures */
.figure { margin: 1.8em 0; }
.figure img { width: 100%; border-radius: 22px; background: var(--tint); }
.figure__caption { font-size: .82rem; line-height: 1.5; color: var(--muted); padding: 8px 4px 0; }
.figure--hero img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .article__head--split .figure--hero img { aspect-ratio: 4 / 3; } }

/* At-a-glance panel */
.glance { background: var(--tint); border-radius: var(--radius-lg); padding: 8px 18px 18px; margin: 2.2em 0 1.8em; }
.glance > h2 { background: var(--teal-700); color: #fff; border-left-color: var(--coral); margin-top: 1.1em; }
.glance .table-wrap { margin-bottom: 0; }
@media (min-width: 720px) { .glance { padding: 8px 28px 28px; } }

/* Tables: white, coloured header, row dividers */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; min-width: 480px; }
.table caption { text-align: left; font-family: var(--head); font-size: 1.05rem; font-weight: 600; color: var(--teal-900); padding: 12px 16px; background: var(--tint-2); border-bottom: 1px solid var(--line); }
.table th, .table td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--teal-700); color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .01em; }
.table tbody th { font-weight: 700; color: var(--teal-900); width: 32%; }
.table tbody tr:hover > * { background: var(--tint-2); }

/* Callouts */
.callout { background: var(--coral-soft); border: 1px solid #f4cdbf; border-left: 6px solid var(--coral); border-radius: 14px; padding: 14px 18px; margin: 1.6em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout__title { font-family: var(--head); font-weight: 600; color: var(--coral-dark); font-size: 1.15rem; margin: 0 0 .3em; }
.callout--responsible { background: var(--tint); border-color: var(--line); border-left-color: var(--teal-700); }
.callout--responsible .callout__title { color: var(--teal-700); }

/* FAQ accordion */
.faq { margin: 1em 0; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq__item[open] { border-color: var(--teal-600); background: var(--tint-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--head); font-size: 1.3rem; line-height: 30px; text-align: center; }
.faq__item[open] summary::after { content: "\2212"; background: var(--teal-700); }
.faq__item h3 { margin: 0; font-size: 1.08rem; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.faq__a { padding: 0 18px 6px; }
.faq__a p:last-child { margin-bottom: .8em; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1fr; background: var(--teal-700); }
.hero__text { background: var(--teal-700) radial-gradient(rgba(255,255,255,.09) 1.5px, transparent 1.6px) 0 0 / 22px 22px; color: #fff; padding: 44px 16px 52px; display: flex; align-items: center; }
.hero__inner { max-width: 600px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; margin: .45em 0 .4em; }
.hero p { font-size: 1.08em; color: #e3f3f1; }
.hero .eyebrow { background: #fff; color: var(--teal-700); }
.hero__media { position: relative; min-height: 300px; background: var(--tint); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__credit { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 6px 12px; font-size: .75rem; line-height: 1.35; color: #fff; background: rgba(8, 40, 43, .78); }
.hero__credit a { color: #fff; }
.btn { display: inline-block; background: var(--coral); color: #fff; font-family: var(--head); font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 999px; font-size: 1rem; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.btn:hover { background: #fff; color: var(--coral-dark); }
.hero a:focus-visible { outline-color: #fff; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 580px; }
  .hero__text { padding: 64px 48px 64px max(32px, calc((100vw - var(--page)) / 2 + 32px)); }
  .hero__media { min-height: 0; }
}

.wrap--home { max-width: var(--page); }
.section-title { margin-top: 2.2em; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--head); font-size: 1.3rem; line-height: 1.2; margin: 0 0 .5em; color: var(--teal-900); background: none; border: 0; padding: 0; border-radius: 0; width: auto; font-weight: 600; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__text { font-size: .95rem; color: var(--muted); margin: 0 0 1em; }
.card__more { margin: auto 0 0; font-weight: 800; font-size: .95rem; }
.card__more a { color: var(--coral-dark); }

/* Featured guide: wide terracotta banner, image on the right */
.card--featured { display: grid; grid-template-columns: 1fr; margin-top: 44px; background: var(--coral); border: 0; color: #fff; }
.card--featured .card__img { aspect-ratio: 16 / 9; height: 100%; order: 2; }
.card--featured .card__body { order: 1; padding: 28px 24px; justify-content: center; }
.card--featured .eyebrow { background: #fff; color: var(--coral-dark); align-self: flex-start; }
.card--featured .card__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; margin: .6em 0 .5em; letter-spacing: -.02em; }
.card--featured .card__text { color: #fff; font-size: 1.02rem; }
.card--featured .card__more { margin-top: .4em; }
.card--featured .card__more a { display: inline-block; background: #fff; color: var(--coral-dark); padding: 10px 22px; border-radius: 999px; text-decoration: none; font-family: var(--head); font-weight: 600; }
.card--featured .card__more a:hover { background: var(--teal-900); color: #fff; }
.card--featured a:focus-visible { outline-color: #fff; }
@media (min-width: 800px) {
  .card--featured { grid-template-columns: 1fr 1.05fr; min-height: 360px; }
  .card--featured .card__body { padding: 40px 44px; }
  .card--featured .card__img { aspect-ratio: auto; }
}

/* Planning guides: one large tile + two horizontal tiles */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 18px; }
.grid .card { background: var(--tint-2); }
@media (min-width: 760px) {
  .grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; }
  .grid .card:first-child { grid-row: 1 / span 2; }
  .grid .card:first-child .card__img { aspect-ratio: 4 / 3; }
  .grid .card:first-child .card__title { font-size: 1.6rem; }
  .grid .card:not(:first-child) { flex-direction: row; }
  .grid .card:not(:first-child) .card__img { width: 40%; height: auto; aspect-ratio: auto; flex: none; }
}

/* ---------- Footer: light teal, three columns ---------- */
.site-footer { background: var(--tint); color: var(--ink); padding: 44px 0 36px; font-size: .92rem; margin-top: 56px; border-radius: 36px 36px 0 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -4px; transform: translateX(-50%); width: 120px; height: 8px; border-radius: 8px; background: var(--coral); }
.site-footer a { color: var(--teal-700); font-weight: 700; }
.footer__grid { display: grid; gap: 24px; }
.footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 0; }
.footer__nav li { margin: 0; }
.site-footer p { margin: 0 0 .7em; line-height: 1.55; }
.footer__rg { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); }
.footer__legal p { color: var(--muted); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 180px 1fr 1fr; gap: 40px; align-items: start; }
  .footer__nav { flex-direction: column; gap: 8px; }
  .footer__legal { border-left: 3px solid var(--coral); padding-left: 24px; }
}

@media print { .site-header, .site-footer, .toc { display: none; } body { background: #fff; } .faq__item summary::after { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
