/* ==========================================================================
   BCM Ireland — Option 1, "editorial"
   The Paper artboard rebuilt in HTML, with the two changes requested on it:
   the cobalt swapped for #0c4a8e, and every button a full pill.

   The register is a school prospectus: hairline rules, one accent, and
   photography doing the work. Nothing here should date.
   ========================================================================== */

:root {
  --white:  #FFFFFF;
  --navy:   #0C4A8E;   /* within a hair of #0b4a8f, already in BCM NI's palette */
  --navy-dk:#073768;
  --ink:    #111318;
  --body:   #4A505C;
  --muted:  #6B7280;
  --line:   #E3E5EA;
  --border: #C7CBD4;

  /* Tints re-derived from the navy rather than carried over from the cobalt */
  --navy-05: #E4EDF7;  /* age pill ground */
  --navy-10: #DCE7F4;  /* "filling" tag ground */
  --navy-on: #C9DBEC;  /* body text on the navy band */
  --navy-lt: #6FA6D8;  /* labels on the near-black footer */

  /* A breath of warmth between sections — enough to separate them, not enough
     to read as a coloured band. Weakened a long way from the Friendly
     direction's cream (#FFF6E0) so the two share a warm note without Classic
     losing its restraint. */
  --tint: #FCF9F2;

  /* Semantic, not part of the brand ramp */
  --warn-bg: #FBE9E7;
  --warn-fg: #9A2B1B;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --text:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --wrap:   1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* --------------------------------------------------------------- type ---- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- layout ---- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(3rem, 6vw, 6rem); }
.band--flush-bottom { padding-bottom: 0; }
.band--tint { background: var(--tint); }
.photorow--spaced { padding-bottom: clamp(3rem, 6vw, 6rem); }

/* ------------------------------------------------------------ buttons ---- */
/* Full pills, with the extra horizontal padding they need so the curve
   doesn't pinch the label. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 1em 1.9em;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dk); }
.btn--outline { border-color: var(--border); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000000; }
.btn--sm { font-size: 0.88rem; padding: 0.85em 1.6em; }

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.arrowlink { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.arrowlink:hover { color: var(--navy-dk); text-decoration: underline; }

/* ---------------------------------------------------------- poc notice --- */

.poc-strip {
  background: var(--ink); color: #9AA3B0;
  font-size: 0.74rem; letter-spacing: 0.04em; text-align: center;
  padding: 0.55rem var(--gutter);
}
.poc-strip strong { color: var(--navy-lt); font-weight: 600; }

/* -------------------------------------------------------------- header --- */

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 78px; padding-block: 0.8rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.brand img { width: 42px; height: auto; flex-shrink: 0; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.masthead__menu { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.nav a { font-size: 0.94rem; font-weight: 500; }
.nav a:hover { color: var(--navy); }

/* ---------------------------------------------------------- mobile nav --- */
/* The panel is the masthead carried downward: the same hairline rules that
   set every other list on the page, one item per line, the action at the
   foot. The button itself is built by nav.js, so a page without JavaScript
   keeps the wrapping nav it has today rather than a control that cannot open. */

.navtoggle { display: none; }

@media (max-width: 900px) {

  .masthead { position: relative; }
  .masthead__inner { gap: 1rem; flex-wrap: nowrap; }

  .masthead.has-mobilenav .navtoggle {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 1rem; margin: 0;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--border); border-radius: 100px;
    font-family: var(--text); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
    transition: border-color .16s ease;
  }
  .masthead.has-mobilenav .navtoggle:hover { border-color: var(--ink); }

  .navtoggle__bars { position: relative; width: 17px; height: 11px; }
  .navtoggle__bars span {
    position: absolute; left: 0; width: 100%; height: 1.5px;
    background: var(--navy);
    transition: transform .18s ease, opacity .12s ease;
  }
  .navtoggle__bars span:nth-child(1) { top: 0; }
  .navtoggle__bars span:nth-child(2) { top: 4.75px; }
  .navtoggle__bars span:nth-child(3) { top: 9.5px; }
  .is-open .navtoggle__bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
  .is-open .navtoggle__bars span:nth-child(2) { opacity: 0; }
  .is-open .navtoggle__bars span:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }

  .masthead.has-mobilenav .masthead__menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 44px rgba(17,19,24,.10);
    padding: 0.25rem var(--gutter) 1.5rem;
  }
  .masthead.has-mobilenav.is-open .masthead__menu { display: block; }

  .masthead.has-mobilenav .nav { display: block; margin-bottom: 1.35rem; }
  .masthead.has-mobilenav .nav a {
    display: block; padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem; font-weight: 500;
  }
  .masthead.has-mobilenav .nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
  .masthead.has-mobilenav .masthead__menu .btn { display: flex; width: 100%; max-width: 24rem; }
}

/* ---------------------------------------------------------------- hero --- */
/* Headline and standfirst side by side — the broadsheet move that gives this
   direction its character. */

.hero__inner { display: flex; gap: clamp(2rem, 5vw, 5rem); align-items: flex-start; flex-wrap: wrap; }
.hero__head { flex: 1 1 30rem; }
.hero__head h1 { max-width: 14ch; }
.hero__aside { flex: 0 1 25rem; padding-top: clamp(0.5rem, 3.5vw, 3.6rem); }
.hero__aside p { font-size: 1.18rem; line-height: 1.65; color: var(--body); margin-bottom: 1.75rem; }

.figure { padding-top: clamp(2rem, 3.5vw, 3.25rem); }
.figure img { width: 100%; height: clamp(220px, 33vw, 470px); object-fit: cover; }
.figure figcaption {
  display: flex; align-items: center; gap: 0.9rem;
  padding-top: 1rem; font-size: 0.88rem; color: var(--muted);
}
.figure figcaption::before {
  content: ""; width: 44px; height: 3px; background: var(--navy); flex-shrink: 0;
}

/* ---------------------------------------------------------- section head - */

.rulehead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 2.1rem; border-bottom: 2px solid var(--ink);
}
.rulehead h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.rulehead .eyebrow { margin: 0; }

/* --------------------------------------------------------- audience list -
   Four table-like rows rather than four cards — the same content the other
   directions put in boxes, kept on the page's own rules instead. */

.arow {
  display: flex; align-items: flex-start; gap: 3rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line);
}
.arow__title {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em; width: 300px; flex-shrink: 0;
}
.arow__key {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); width: 155px; flex-shrink: 0; padding-top: 0.45rem;
}
.arow__body { flex: 1; font-size: 1rem; line-height: 1.7; color: var(--body); }
.arow__link { width: 155px; flex-shrink: 0; padding-top: 0.3rem; }

/* --------------------------------------------------------- season board -- */

.board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.9rem; }
.board__head h2 { margin-bottom: 0.9rem; }
.board__head p { max-width: 46ch; color: var(--body); margin: 0; }

.season { width: 100%; border-collapse: collapse; }
.season th {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: left; white-space: nowrap;
  padding: 0 1.25rem 0.85rem 0; border-bottom: 2px solid var(--ink);
}
.season td {
  padding: 1.2rem 1.25rem 1.2rem 0; border-bottom: 1px solid var(--line);
  vertical-align: middle; color: var(--body);
}
.season tr:last-child td { border-bottom: 0; }

.season__camp {
  font-family: var(--display); font-weight: 600; font-size: 1.22rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.season__dates { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* Fixed lanes so the columns hold across every row. */
.col-camp   { width: 24%; }
.col-ages   { width: 11%; }
.col-dates  { width: 20%; }
.col-opens  { width: 16%; }
.col-status { width: 14%; }

.pill {
  display: inline-block; border-radius: 100px;
  background: var(--navy-05); color: var(--navy);
  font-size: 0.82rem; font-weight: 600; padding: 0.25em 0.8em; white-space: nowrap;
}

/* Status tags stay rectangular. They aren't buttons, and pill-shaping them
   too would collapse the distinction from the round age pill beside them. */
.tag {
  display: inline-block; border-radius: 4px;
  font-size: 0.78rem; font-weight: 600; padding: 0.4em 0.85em; white-space: nowrap;
}
.tag--open    { background: var(--navy); color: var(--white); }
.tag--filling { background: var(--navy-10); color: var(--navy); }
.tag--wait    { background: var(--warn-bg); color: var(--warn-fg); }
.tag--soon    { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }

/* A camp with no dates yet keeps its row and says when to look again. */
.is-pending .season__camp,
.is-pending .season__dates { color: var(--muted); }
.is-pending .season__dates { font-style: italic; white-space: normal; font-weight: 400; }

.tablescroll { overflow-x: auto; }

@media (max-width: 800px) {
  .season thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .season, .season tbody, .season tr, .season td { display: block; width: 100%; }
  .season tr { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
  .season tr:last-child { border-bottom: 0; }
  .season td { border: 0; padding: 0.15rem 0; }
  .season td[data-th]::before {
    content: attr(data-th);
    display: inline-block; min-width: 9em; padding-right: 0.8em;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
  }
  .season td:first-child::before { content: none; }
  .season td:first-child { padding-bottom: 0.5rem; }
}

/* ---------------------------------------------------------------- manor -- */

.split { display: flex; gap: clamp(2rem, 4vw, 4rem); align-items: flex-start; flex-wrap: wrap; }
.split__main { flex: 0 1 33rem; }
.split__side { flex: 1 1 26rem; }

.spec { list-style: none; margin: 0; padding: 0; }
.spec li {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.05rem 0; border-top: 1px solid var(--line);
  font-size: 1rem; color: var(--body);
}
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec b {
  font-family: var(--display); font-weight: 700; font-size: 2.1rem;
  letter-spacing: -0.03em; color: var(--navy); width: 110px; flex-shrink: 0;
}

.photorow { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: clamp(2rem, 3.5vw, 3rem); }
.photorow img { height: clamp(190px, 21vw, 300px); object-fit: cover; }
.photorow img:first-child { flex: 2 1 20rem; width: 0; min-width: 0; }
.photorow img:not(:first-child) { flex: 1 1 10rem; width: 0; min-width: 0; }

/* --------------------------------------------------------------- signup -- */

.signup { background: var(--navy); color: var(--white); padding-block: clamp(2.75rem, 4.5vw, 4rem); }
.signup__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.signup h2 { max-width: 13ch; }
.signup p { color: var(--navy-on); max-width: 42ch; margin: 1rem 0 0; }

/* The field and its button read as one pill: only the outer corners round. */
.signup form { display: flex; flex-shrink: 0; }
.signup input {
  font-family: var(--text); font-size: 1rem;
  padding: 1.05em 1.6em; width: min(19rem, 60vw);
  border: 1px solid var(--white); border-right: 0;
  border-radius: 100px 0 0 100px; background: var(--white); color: var(--ink);
}
.signup input::placeholder { color: #8B93A1; }
.signup .btn { border-radius: 0 100px 100px 0; padding-right: 1.9em; }

/* -------------------------------------------------------------- footer --- */

.footer { background: var(--ink); color: #C2C7D0; font-size: 0.95rem; }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem; padding-block: clamp(2.75rem, 4vw, 3.5rem);
}
.footer h4 {
  font-family: var(--text); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-lt); margin: 0 0 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--navy-lt); }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; font-size: 0.82rem;
}

/* --------------------------------------------------------------- misc ---- */

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 99;
  background: var(--navy); color: var(--white);
  padding: 0.8em 1.2em; border-radius: 100px; font-weight: 600;
}

@media (max-width: 700px) {
  .arow { flex-direction: column; gap: 0.6rem; }
  .arow__title, .arow__key, .arow__link { width: auto; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print {
  .masthead, .poc-strip, .signup, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .season td, .season th { color: #000; }
  .tag { box-shadow: none !important; border: 1px solid #666; background: none !important; color: #000 !important; }
}
