/* ============================================================
   The Greek Academy — modernisation mockup
   Palette drawn from the school's own logo:
   navy meander ring + gold graduation cap.
   Display: GFS Didot (Greek Font Society) · Body: Alegreya Sans
   ============================================================ */

:root {
  --ink: #101E33;        /* night navy — headings, footer */
  --aegean: #16386E;     /* primary deep blue */
  --sea: #2E6BC4;        /* brighter blue — links, hovers */
  --porcelain: #F2F6FB;  /* cool blue-white section bg */
  --paper: #FFFFFF;
  --honey: #E8A93C;      /* gold from the logo's cap — CTAs, meander */
  --honey-deep: #C98F26;
  --body-c: #3D4A61;
  --muted: #6B7A93;
  --line: #DCE5F1;
  --shadow: 0 10px 30px rgba(16, 30, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 30, 51, 0.16);
  --display: 'GFS Didot', 'Didot', Georgia, serif;
  --sans: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 13 H14 V3 H6 V9 H10 M14 13 H20' fill='none' stroke='%23E8A93C' stroke-width='2'/%3E%3C/svg%3E");
  --meander-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 13 H14 V3 H6 V9 H10 M14 13 H20' fill='none' stroke='%2316386E' stroke-width='2'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Pairs with js/protect.js: blocks drag-to-desktop and the iOS long-press "Save Image" sheet,
   which the JS contextmenu handler alone does not cover. A deterrent, not a safeguarding
   control — see the note at the top of protect.js. */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* The browser hides [hidden] with display:none, but that comes from the UA stylesheet and any
   class setting display beats it — .field--row's `display: grid` was leaving the returning-pupil
   class/teacher row on screen for every parent. Restore the attribute's meaning globally so
   markup can rely on it. registration.js toggles the property, never style.display, so this is
   safe: once hidden is false the rule stops matching and the layout rule applies as normal. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--body-c);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sea); }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- meander thread (signature) ---------- */
.meander {
  height: 14px;
  width: 120px;
  background: var(--meander) repeat-x;
  background-size: 20px 14px;
  margin: 22px 0;
}
.meander--center { margin-left: auto; margin-right: auto; }
.meander--full {
  width: 100%;
  height: 14px;
  background: var(--meander) repeat-x;
  background-size: 20px 14px;
  opacity: 0.9;
}

/* ---------- top ribbon ---------- */
.ribbon {
  background: var(--ink);
  color: #C9D7EC;
  font-size: 0.88rem;
  padding: 8px 0;
}
.ribbon .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ribbon strong { color: #fff; font-weight: 700; }
.ribbon a { color: var(--honey); text-decoration: none; font-weight: 700; }

/* ---------- header ---------- */
.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand .name {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.15;
}
.brand .name span { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  text-decoration: none;
  color: var(--body-c);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--aegean); }
.main-nav a[aria-current="page"] {
  color: var(--aegean);
  font-weight: 700;
  border-bottom-color: var(--honey);
}
/* The nav CTA is both .btn and .main-nav a, and the latter is the more specific selector — so
   `padding: 6px 0` was winning and the gold pill had no side padding at all, hugging its text.
   Restore button padding for the CTA only, leaving the plain nav links alone. */
.main-nav a.btn {
  padding: 10px 22px;
  border-bottom: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.99rem;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--honey); color: var(--ink); box-shadow: 0 6px 18px rgba(232, 169, 60, 0.35); }
.btn--gold:hover { background: var(--honey-deep); color: #fff; }
/* 'background' matters because .btn--ghost is the one button style used on a <button> as well as
   on <a> — without it the add-child button picks up the browser's default grey. */
.btn--ghost { border: 2px solid var(--aegean); color: var(--aegean); background: transparent; }
.btn--ghost:hover { background: var(--aegean); color: #fff; }
.btn--white { background: #fff; color: var(--aegean); }
.btn--white:hover { background: var(--honey); color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--porcelain); overflow: hidden; position: relative; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.kalos {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sea);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: var(--ink);
  margin-top: 10px;
}
.hero .lede { font-size: 1.16rem; max-width: 46ch; margin-top: 4px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-facts {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-facts div { font-size: 0.9rem; color: var(--muted); }
.hero-facts strong {
  display: block;
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--aegean);
  font-weight: 400;
  white-space: nowrap;
}

/* arch photo collage */
.arches { position: relative; display: flex; justify-content: center; }
.arch {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.arch--main { width: min(360px, 78%); }
.arch--main img { height: 460px; object-fit: cover; width: 100%; }
.arch--small {
  position: absolute;
  bottom: -12px;
  right: 2%;
  width: 180px;
}
.arch--small img { height: 220px; object-fit: cover; width: 100%; }
.arch-note {
  position: absolute;
  left: 0;
  bottom: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--ink);
  max-width: 200px;
}
.arch-note b { color: var(--aegean); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
/* For a section carrying a single line — the full 84px would leave it stranded. */
.section--slim { padding: 44px 0 48px; }
.section--tint { background: var(--porcelain); }
.section--navy { background: var(--aegean); color: #DAE6F7; }
.section--navy h2 { color: #fff; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey-deep);
}
.eyebrow .el { font-family: var(--display); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-weight: 400; font-size: 1.02rem; color: var(--sea); margin-right: 10px; }
.section--navy .eyebrow { color: var(--honey); }
.section--navy .eyebrow .el { color: #9FC0EE; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 10px;
}
.section-intro { max-width: 62ch; margin-top: 14px; font-size: 1.08rem; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- why cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  text-align: left;
}
.card .glyph {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--porcelain);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin-top: 16px; }
.card h3 .el { display: block; font-style: italic; font-size: 1rem; color: var(--sea); }
.card p { margin-top: 10px; font-size: 0.99rem; }

/* ---------- classes journey ---------- */
.journey {
  margin-top: 48px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.journey::before {
  content: "";
  position: absolute;
  top: 26px; left: 4%; right: 4%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--honey) 0 10px, transparent 10px 18px);
}
.stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.stage .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--honey);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--honey);
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}
.stage h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--aegean); }
.stage p { font-size: 0.88rem; margin-top: 6px; color: var(--muted); }

/* ---------- evening timeline ---------- */
.evening {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.slot {
  border-left: 3px solid var(--honey);
  padding-left: 18px;
}
.slot time {
  font-family: var(--display);
  font-size: 1.5rem;
  color: #fff;
}
.slot h3 { font-size: 1.05rem; font-weight: 800; color: #fff; margin-top: 6px; }
.slot p { font-size: 0.93rem; margin-top: 6px; color: #B9CCE9; }

/* ---------- photo band ---------- */
.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.band figure {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.band img { height: 260px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.band figure:hover img { transform: scale(1.04); }
.band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(16, 30, 51, 0.75));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- event feature ---------- */
.event-feature {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.event-feature .info { padding: 44px; }
.event-feature .date {
  display: inline-block;
  background: var(--porcelain);
  color: var(--aegean);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  text-transform: uppercase;
}
.event-feature h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--ink); margin-top: 16px; }
.event-feature p { margin-top: 12px; }
.event-feature .tickets { display: flex; gap: 28px; margin: 22px 0; }
.event-feature .tickets div strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; color: var(--aegean); display: block; }
.event-feature .tickets div span { font-size: 0.88rem; color: var(--muted); }
.event-feature .photo img { height: 100%; min-height: 380px; object-fit: cover; width: 100%; }

/* mini events */
.mini-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.mini .when { font-weight: 800; color: var(--honey-deep); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mini h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-top: 8px; }
.mini p { font-size: 0.94rem; margin-top: 8px; }

/* ---------- term snapshot ---------- */
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.month {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.month h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--aegean); }
.month p { font-size: 0.95rem; margin-top: 8px; }
.month .closed { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.month .closed b { color: #B4552D; font-weight: 700; }

/* ---------- fees table ---------- */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fees-table th, .fees-table td { padding: 16px 22px; text-align: left; }
.fees-table thead th {
  background: var(--aegean);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fees-table tbody tr { border-top: 1px solid var(--line); }
.fees-table tbody tr:hover { background: var(--porcelain); }
.fees-table .price { font-family: var(--display); font-size: 1.25rem; color: var(--aegean); white-space: nowrap; }
.fees-table .sub { display: block; font-size: 0.86rem; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--honey);
  display: block;
}
.step h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin-top: 8px; }
.step p { font-size: 0.96rem; margin-top: 8px; }

/* notes + bank */
.note-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; margin-top: 40px; align-items: start; }
.notes { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.notes h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.notes ul { margin: 14px 0 0 18px; display: grid; gap: 10px; font-size: 0.97rem; }
.bank {
  background: var(--ink);
  color: #C9D7EC;
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.bank h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: #fff; }
.bank h4 { color: #fff; }
.bank dl { margin-top: 16px; display: grid; gap: 12px; }
.bank dt { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8FA8CC; }
.bank dd { font-size: 1.1rem; color: #fff; font-weight: 700; }
.bank .hint { margin-top: 16px; font-size: 0.88rem; color: var(--honey); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--aegean); position: relative; }
.cta-strip .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #C4D6F0; margin-top: 12px; }
.cta-strip .btn { margin-top: 26px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #A9BCD8; }
.site-foot .top-border { height: 14px; background: var(--meander) repeat-x; background-size: 20px 14px; opacity: 0.6; }
.site-foot .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}
.site-foot h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot a { color: #C9D7EC; text-decoration: none; }
.site-foot a:hover { color: var(--honey); }
.site-foot ul { list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.site-foot .brand-line { font-family: var(--display); font-size: 1.3rem; color: #fff; }
.site-foot .small { font-size: 0.9rem; margin-top: 12px; max-width: 34ch; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--aegean); color: #fff; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 58px; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.1rem); }
.page-hero p { color: #C4D6F0; margin-top: 12px; max-width: 60ch; font-size: 1.1rem; }
.page-hero .kalos { color: var(--honey); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .band img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .arches { margin-top: 8px; }
  .cards-3, .steps, .mini-events, .term-grid, .band { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey::before { display: none; }
  .evening { grid-template-columns: 1fr 1fr; }
  .event-feature { grid-template-columns: 1fr; }
  .event-feature .photo img { min-height: 260px; }
  .note-grid { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: 2px solid var(--aegean);
    color: var(--aegean);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 8px 12px;
    font-family: var(--sans);
  }
  .cards-3, .steps, .mini-events, .term-grid, .band, .evening, .journey { grid-template-columns: 1fr; }
  .ribbon .wrap { justify-content: center; text-align: center; }
  .arch--small { display: none; }
  .arch--main img { height: 380px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .event-feature .info { padding: 30px 24px; }
}

/* ---------- nav dropdowns (2026-07-19 full-parity expansion) ---------- */
.nav-group { position: relative; }
.nav-group__btn {
  font: inherit; font-weight: 500; color: var(--body-c);
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-group__btn:hover { color: var(--aegean); }
.nav-group__btn .caret { font-size: 0.7em; transform: translateY(1px); }
.nav-drop {
  display: none; position: absolute; top: calc(100% + 10px); left: -14px;
  min-width: 210px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 30, 51, 0.16);
  padding: 10px 0; z-index: 40;
}
.nav-drop a { display: block; padding: 8px 18px; }
.nav-drop a:hover { background: var(--porcelain); }
/* Tap/click stays the mechanism everywhere — it is the only one that works on a touch screen. */
.nav-group__btn[aria-expanded="true"] + .nav-drop { display: block; }

/* On a real pointer, the menu opens on hover and on keyboard focus.
   Gated on (hover: hover) so a phone or tablet never gets a menu pinned open by a stray
   :hover that latched on tap — those devices keep the click behaviour above. */
@media (hover: hover) and (min-width: 681px) {
  /* Undo a click that left aria-expanded="true": without this the panel stays pinned open
     after the pointer moves away. Must precede the rules below, which have equal specificity
     and are meant to win while hovered or focused. */
  .nav-group__btn[aria-expanded="true"] + .nav-drop { display: none; }

  .nav-group:hover .nav-drop,
  .nav-group:focus-within .nav-drop { display: block; }

  /* .nav-drop sits 10px below the button, and that gap belongs to neither element. Travelling
     down to the panel crossed dead space, :hover dropped and the menu shut before it could be
     used — which is why selecting an item needed a click. This spans the gap so the pointer
     never leaves .nav-group. Only present while open, so it obstructs nothing otherwise. */
  .nav-group:hover::after,
  .nav-group:focus-within::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }
}
@media (max-width: 680px) {
  .nav-group { width: 100%; }
  .nav-drop { position: static; box-shadow: none; border: 0;
    border-left: 3px solid var(--honey); border-radius: 0; padding: 4px 0 4px 14px; }
}
/* -- policy pages: numbered rule lists inside .notes cards -- */
.notes ol { margin: 14px 0 0 18px; display: grid; gap: 10px; font-size: 0.97rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 34px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; text-align: center; }
.person__avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--honey); color: var(--ink); font-family: "GFS Didot", serif; font-size: 1.6rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 34px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid img { height: 150px; } }

/* ---------- contact map ---------- */
/* A self-hosted image built from OpenStreetMap tiles, not a live embed. OSM's iframe now needs
   WebGL and shows an error box on older tablets; a Google Maps iframe works but sets tracking
   cookies before any parent has consented, against the school's own GDPR policy. An image makes
   no third-party request at all. Rebuild with tools/greek-academy-static-map.php if it moves. */
.map-embed {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-embed img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;   /* the school sits at the centre of the source image, so cropping is safe */
}
@media (max-width: 640px) { .map-embed img { height: 300px; } }
.map-links { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.map-attrib { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* ---------- term dates table ---------- */
.term-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-table th, .term-table td { padding: 16px 22px; text-align: left; vertical-align: top; }
.term-table thead th {
  background: var(--aegean);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.term-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.term-table tbody tr { border-top: 1px solid var(--line); }
.term-table tbody tr:hover { background: var(--porcelain); }
.term-table td.closed,
.term-table tr.closed th, .term-table tr.closed td {
  background: rgba(232, 169, 60, 0.14);
  border-left: 3px solid var(--honey);
  color: var(--honey-deep);
  font-weight: 700;
}
.term-table + p.small, .term-block-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 34px; max-width: 760px; margin: 34px auto 0; box-shadow: 0 10px 30px rgba(16, 30, 51, 0.10); }
/* The heading above the card is centred; the card itself must stay left-aligned or every
   field label inherits the centring. .section-intro also needs its auto side-margins undone —
   inside the card those are the descriptions under "Emergency contact" and "Other authorised
   person", which belong flush under their legend, not centred in the card. */
.center .form-card { text-align: left; }
.center .form-card .section-intro { margin-left: 0; margin-right: 0; }
/* Registration cut-off. Borrows the amber "this one matters" treatment from .consent-gate so the
   date reads as a deadline rather than as another line of intro copy. */
.deadline-note {
  display: inline-block;
  padding: 14px 26px;
  background: #FFF8EC;
  border: 1px solid #F0D9A8;
  border-left: 4px solid var(--honey);
  border-radius: 14px;
  font-size: 1.08rem;
  color: var(--ink);
}
.deadline-note strong { white-space: nowrap; }
/* Breathing room before the next fieldset — the button sat almost on top of "Parent/Guardian 1". */
.add-child-row { margin: 6px 0 46px; }
/* The GCSE footnote explains a real extra cost, so it should not read as quiet small print. */
.hint--note { font-weight: 700; color: var(--ink); }
/* Segments sit in a wrapping row rather than one run of text, so "Tel: 07398 904 535" and the
   email each stay whole instead of breaking mid-number, with no separator stranded on a new line. */
.contact-line { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.contact-line .nb { white-space: nowrap; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form-card legend { font-family: "GFS Didot", serif; font-size: 1.25rem; color: var(--ink); margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea,
.field-group textarea, .field-group input[type="file"] { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: var(--porcelain); }
.field input:focus, .field select:focus, .field textarea:focus,
.field-group textarea:focus { outline: 2px solid var(--sea); background: #fff; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field--row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

.field-group { margin-bottom: 22px; }
.field-group .field-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field-group .field:last-child { margin-bottom: 0; }
.radio-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.radio-group input[type="radio"], .radio-group input[type="checkbox"] { width: auto; margin-right: 6px; }
.radio-group label { display: inline; font-weight: 400; margin-bottom: 0; color: var(--body-c); }
/* Each input and its label are siblings, not a wrapped pair, so a column flexbox made every one
   of them its own row — putting each radio ABOVE its own text. A two-column grid pairs input
   with label instead: box in column one, wording beside it, one option per row. */
.radio-group--stacked {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px 10px;
}
.radio-group--stacked input[type="radio"],
.radio-group--stacked input[type="checkbox"] { margin: 3px 0 0; }
.radio-group--stacked label { line-height: 1.45; }
.radio-group--stacked + .hint { margin-top: 16px; }
/* required-field marker — scoped so it can't reach the nav carets, which share aria-hidden */
.form-card .field-label span[aria-hidden="true"],
.consent-gate label span[aria-hidden="true"] { color: #C0392B; font-weight: 700; }
/* terms acceptance: reads as a gate immediately before Submit, not a footnote */
.consent-gate { margin-top: 26px; padding: 20px 22px; background: #FFF8EC; border: 1px solid #F0D9A8; border-left: 4px solid var(--honey); border-radius: 14px; }
.consent-gate + button[type="submit"] { margin-top: 18px; }
/* checkbox stays on the first line of a long wrapping label */
.consent-check { display: flex; align-items: flex-start; gap: 12px; }
.consent-check input[type="checkbox"] { width: auto; flex: none; margin: 3px 0 0; transform: scale(1.3); accent-color: var(--honey-deep); }
.consent-check label { font-weight: 600; margin-bottom: 0; color: var(--ink); line-height: 1.5; }
.form-card button[type="submit"] { margin-top: 22px; }
.field--row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field--row-3 { grid-template-columns: 1fr; } }
.form-card .notes, .form-card .bank { margin-top: 4px; margin-bottom: 26px; }
.form-card .notes h3, .form-card .bank h3, .form-card .notes p.field-label { font-family: "GFS Didot", serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }

/* ---------- registration form backend wiring (2026-07-20) ---------- */
.hp-field { position: absolute; left: -9999px; top: auto; height: 1px; overflow: hidden; }

/* ---------- gallery albums (2026-07-28) ---------- */
/* Jump links in the gallery hero. With 200+ photos across five albums, landing on the page
   without a way to skip ahead means scrolling past a hundred images to reach Halloween. */
.album-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.album-links a { display: inline-block; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--paper); }
.album-links a:hover, .album-links a:focus { background: var(--honey); border-color: var(--honey); color: var(--ink); }
/* Anchored sections would otherwise sit under the sticky header when jumped to. */
section[id] { scroll-margin-top: 90px; }
/* Named classes: a parent's first instinct is to find their own child's class, so these
   carry a caption. The event albums stay uncaptioned — 200 identical labels are noise. */
.gallery-grid--labelled figure { margin: 0; }
.gallery-grid--labelled figcaption { margin-top: 8px; font-weight: 700; font-size: 0.94rem; color: var(--ink); text-align: center; }

/* ---------- contact form (2026-07-28) ---------- */
/* Off-screen but still read aloud — the required-field asterisk means nothing to a screen
   reader, so the intro spells it out for one and hides it from the other. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Says "optional" without competing with the label it qualifies. */
.optional { font-weight: 400; color: var(--muted); font-size: 0.92em; }
.form-card textarea[readonly] { background: var(--porcelain); color: var(--muted); }

/* Short pages (thank-you, 404) otherwise leave the footer floating mid-screen on a tall display. */
.section--short { display: flex; align-items: center; min-height: 54vh; }

/* ---------- registration form: per-child sections (2026-07-23) ---------- */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--sea);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--aegean); }
