/* ==========================================================================
   NTC Port — Home, landing A of the 2026 Terrace design (#57)
   Board "1 — Home (landing A)", page 3 of docs/design/ntc-web.figcraft.
   Measured at 1440 (content 1280 between 80px margins), 2560 (the same 1280
   column, centred), 768 and 390 (one centred column, 40 and 20px margins).
   The desktop layout starts at 1024; below it the 768 board applies.
   ========================================================================== */

/* The landing sections hold the 1280 column, not the 2025 1440 frame. */
.ntc-lsec .ntc-sec__inner,
.ntc-offfield__copy {
  max-width: calc(1280px + 2 * var(--grid-margin));
  padding-inline: var(--grid-margin);
}
/* Edge padding that keeps full-bleed content on the 1280 column at any width. */
.ntc-lhero { --ntc-edge: max(var(--grid-margin), calc((100% - 1280px) / 2)); }

.ntc-ground--gold { background: var(--color-accent-base); color: var(--color-text-on-light); }

/* --- Shared type ---------------------------------------------------------- */
.ntc-kicker {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-accent-base);
}
.ntc-kicker__num { margin-right: 0.9em; }
.ntc-ground--gold .ntc-kicker { color: var(--color-text-on-light); }

html .ntc-ltitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
}
html .ntc-ltitle--l { font-size: 100px; }
html .ntc-ltitle--m { font-size: 88px; }
html .ntc-ltitle--s { font-size: 72px; line-height: 1; }

.ntc-lbody {
  margin: 0;
  font-size: 22px;
  line-height: 1.55;
  color: var(--color-text);
}

.ntc-btn--ink, .ntc-btn--ink:hover { background: var(--color-ink); color: var(--color-white); }
.ntc-btn--ink:hover { background: var(--color-ink-raised); }

/* --- Hero ----------------------------------------------------------------- */
.ntc-lhero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(640px, 100svh, 900px);
  background: var(--color-ink);
  color: var(--color-white);
  isolation: isolate;
}
.ntc-lhero__img,
.ntc-lhero .ntc-photo--empty {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ntc-lhero::before {               /* the 70% navy shade */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(6 3 22 / var(--ntc-hero-shade, 0.7));   /* animations.js lifts it on scroll (#98) */
}
.ntc-lhero__body {
  padding: 140px var(--ntc-edge) 56px;
}
.ntc-lhero__place {
  margin: 0 0 4px;
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-base);
  white-space: pre-wrap;           /* the design spaces "Hiri-West.  Est." with two */
}
html .ntc-lhero__title {
  margin: 0 0 0 -0.015em;
  font-family: var(--font-display);
  font-weight: 400;
  /* Sized so "We play for" always fits on one line (#85). At 18.75vw it ran
     7px over the column between 1290 and 1440 wide, so it wrapped in Anton
     and not in the fallback face, and the hero jumped 218px when the font
     arrived. The line is 4.73em wide in Anton; 4.8 leaves a margin. */
  font-size: clamp(104px, min(18.75vw, calc((100vw - 2 * var(--grid-margin)) / 4.8)), 270px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-lhero__line { display: block; }
.ntc-lhero__line--gold { color: var(--color-accent-base); }

/* The masthead lies over the hero on the front page only. Absolute with no
   top keeps its place in the flow (under the alert bar when there is one)
   without taking any height, so the hero starts behind it. */
html .ntc-masthead--over {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
}

/* --- Scoreboard ----------------------------------------------------------- */
.ntc-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 80px;
  margin: 0;
  padding: 8px var(--ntc-edge, var(--grid-margin));
  list-style: none;
  background: var(--color-accent-base);
  color: var(--color-text-on-light);
}
.ntc-scoreboard__cell {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.64vw, 38px);
  line-height: 1.1;
  text-transform: uppercase;
}
.ntc-scoreboard__cell + .ntc-scoreboard__cell { padding-left: 30px; }
.ntc-scoreboard__cell + .ntc-scoreboard__cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 44px;
  transform: translateY(-50%);
  background: var(--color-secondary);
}

/* --- 01 The club ---------------------------------------------------------- */
.ntc-sec--lclub .ntc-sec__inner { padding-block: 120px 40px; }
.ntc-lclub__row {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 584px);
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.ntc-lclub__copy { display: flex; flex-direction: column; }
.ntc-lclub__copy .ntc-ltitle { margin-top: 20px; }
.ntc-lclub__copy .ntc-lbody { margin-top: 24px; max-width: 560px; }

/* The owned photo: a purple block offset 24px right and 30px down. */
.ntc-owned {
  position: relative;
  padding: 0 24px 30px 0;
}
.ntc-owned::before {
  content: "";
  position: absolute;
  inset: 30px 0 0 24px;
  background: var(--color-secondary);
}
.ntc-owned__img,
.ntc-owned .ntc-photo--empty {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 440;
  object-fit: cover;
}

.ntc-lvalues {
  display: flex;
  flex-wrap: wrap;
  margin: 60px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-lvalues li + li::before { content: "/"; margin: 0 0.4em; }

/* --- Numbers -------------------------------------------------------------- */
.ntc-sec--numbers .ntc-sec__inner { padding-block: 100px 90px; }
.ntc-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.ntc-numbers__item { padding-top: 10px; }
.ntc-numbers__item + .ntc-numbers__item {
  margin-left: -28px;
  padding-left: 28px;
  border-left: 1px solid var(--color-line);
}
.ntc-numbers__value {
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-accent-base);
}
.ntc-numbers__label {
  max-width: 250px;
  margin: 40px 0 0;
  font-size: 19px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  color: var(--color-white);
}

/* --- 02 Off the field ------------------------------------------------------ */
.ntc-sec--offfield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 820px;
}
.ntc-offfield__media { position: relative; min-height: 340px; background: var(--color-black); }
.ntc-offfield__img,
.ntc-offfield__media .ntc-photo--empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html .ntc-offfield__copy {
  max-width: none;
  margin: 0;
  padding: 120px var(--grid-margin) 100px 80px;
}
.ntc-offfield__copy > * { max-width: 560px; }
.ntc-offfield__copy .ntc-ltitle { margin-top: 20px; }
.ntc-offfield__copy .ntc-lbody { margin-top: 17px; font-size: 20px; }

.ntc-lquote {
  margin: 87px 0 0;
  padding-left: 26px;
  border-left: 6px solid var(--color-accent-base);
}
.ntc-lquote__text { margin: 0; }
.ntc-lquote__text p {
  margin: 0;
  font-size: 30px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  color: var(--color-white);
}
.ntc-lquote__by {
  margin-top: 28px;
  font-size: 17px;
  color: var(--color-text);
}

/* --- 03 Next match --------------------------------------------------------- */
.ntc-sec--nextmatch .ntc-sec__inner { padding-block: 100px 75px; }
html .ntc-nextmatch__teams {
  margin: 10px 0 0 -0.015em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 190px;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--color-text-on-light);
}
.ntc-nextmatch__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 420px));
  margin: 49px 0 0;
  padding: 0;
  list-style: none;
  font-size: 26px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-on-light);
}
.ntc-nextmatch__cta { margin: 49px 0 0; }

/* --- 04 Partners ----------------------------------------------------------- */
.ntc-sec--lpartners .ntc-sec__inner { padding-block: 100px 70px; }
.ntc-lpartners__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: start;
  gap: 0;
}
.ntc-lpartners__head .ntc-ltitle { margin-top: 16px; white-space: nowrap; }
.ntc-lpartners__head .ntc-lbody { max-width: 520px; margin-top: 40px; font-size: 20px; }

.ntc-ltiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.ntc-ltiles__tile {
  display: flex;
  min-height: 150px;
  background: var(--color-white);
}
.ntc-ltiles__link, .ntc-ltiles__link:hover {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  color: inherit;
  text-decoration: none;
}
.ntc-ltiles__tile > .ntc-ltiles__logo,
.ntc-ltiles__tile > .ntc-ltiles__word { margin: auto; }
.ntc-ltiles__logo {
  width: 100%;
  max-width: 180px;
  height: 106px;
  object-fit: contain;
}
.ntc-ltiles__word {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--color-text-on-light);
}
.ntc-ltiles__tile--ask { background: var(--color-secondary); }
.ntc-ltiles__asktitle {
  font-family: var(--font-display);
  font-size: 20px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-ltiles__askcta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-base);
}

/* --- Between 1024 and 1199: the 1440 layout, tightened --------------------- */
@media (max-width: 1199px) {
  html .ntc-ltitle--l { font-size: 80px; }
  html .ntc-ltitle--m { font-size: 72px; }
  html .ntc-ltitle--s { font-size: 56px; }
  .ntc-numbers__value { font-size: 112px; }
  html .ntc-nextmatch__teams { font-size: 150px; }
  .ntc-lvalues { font-size: 36px; }
  .ntc-lpartners__head .ntc-ltitle { white-space: normal; }
}

/* --- Below 1024: one centred column (boards at 768 and 390) ---------------- */
@media (max-width: 1023px) {
  .ntc-kicker { font-size: 13px; }
  html .ntc-ltitle--l { font-size: 56px; }
  html .ntc-ltitle--m,
  html .ntc-ltitle--s { font-size: 40px; line-height: 0.92; }
  .ntc-lbody,
  .ntc-offfield__copy .ntc-lbody,
  .ntc-lpartners__head .ntc-lbody { font-size: 17px; }

  .ntc-lhero { min-height: 720px; }
  .ntc-lhero__body { padding: 120px var(--grid-margin) 41px; }
  .ntc-lhero__place { font-size: 15px; margin-bottom: 16px; }
  html .ntc-lhero__title { font-size: 104px; }

  .ntc-scoreboard {
    grid-template-columns: repeat(4, auto);
    justify-content: space-around;
    gap: 12px;
    min-height: 112px;
    padding: 14px var(--grid-margin);
    text-align: center;
  }
  .ntc-scoreboard__cell { font-size: 24px; }
  .ntc-scoreboard__cell + .ntc-scoreboard__cell { padding-left: 0; }
  .ntc-scoreboard__cell + .ntc-scoreboard__cell::before { display: none; }

  .ntc-lsec .ntc-sec__inner { text-align: center; }
  .ntc-sec--lclub .ntc-sec__inner,
  .ntc-sec--numbers .ntc-sec__inner,
  .ntc-sec--nextmatch .ntc-sec__inner,
  .ntc-sec--lpartners .ntc-sec__inner { padding-block: 64px; }

  .ntc-lclub__row { display: flex; flex-direction: column; align-items: center; gap: 32px; }
  .ntc-lclub__copy { display: contents; }
  .ntc-lclub__copy .ntc-ltitle,
  .ntc-lclub__copy .ntc-lbody { margin-top: 0; }
  .ntc-lclub__copy .ntc-lbody { order: 3; max-width: 688px; }
  .ntc-owned { order: 2; width: 100%; max-width: 688px; padding: 0 12px 12px 0; }
  .ntc-owned::before { inset: 12px 0 0 12px; }
  .ntc-owned__img, .ntc-owned .ntc-photo--empty { aspect-ratio: 338 / 300; }
  .ntc-lvalues { justify-content: center; margin-top: 32px; padding-top: 32px; font-size: 24px; }

  .ntc-numbers { gap: 24px 12px; }
  .ntc-numbers__item + .ntc-numbers__item { margin-left: 0; padding-left: 0; border-left: 0; }
  .ntc-numbers__item { padding-top: 0; }
  .ntc-numbers__value { font-size: 76px; }
  .ntc-numbers__label { margin: 8px auto 0; font-size: 15px; }

  .ntc-sec--offfield { display: block; min-height: 0; }
  .ntc-offfield__media { height: 340px; }
  html .ntc-offfield__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px var(--grid-margin) 64px;
    text-align: center;
  }
  .ntc-offfield__copy > * { max-width: 688px; }
  .ntc-offfield__copy .ntc-ltitle,
  .ntc-offfield__copy .ntc-lbody { margin-top: 0; }
  .ntc-lquote { margin: 0; padding: 26px 0 0; border-left: 0; position: relative; }
  .ntc-lquote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 6px;
    transform: translateX(-50%);
    background: var(--color-accent-base);
  }
  .ntc-lquote__text p { font-size: 24px; }
  .ntc-lquote__by { margin-top: 20px; font-size: 15px; }

  html .ntc-nextmatch__teams { margin: 32px 0 0; font-size: 76px; }
  .ntc-nextmatch__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    font-size: 17px;
  }
  .ntc-nextmatch__cta { margin-top: 32px; }

  .ntc-lpartners__head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .ntc-lpartners__head .ntc-ltitle { margin-top: 12px; white-space: normal; }
  .ntc-lpartners__head .ntc-lbody { margin-top: 0; max-width: 688px; }
  .ntc-ltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; margin-top: 32px; }
  .ntc-ltiles__tile { min-height: 96px; }
  .ntc-ltiles__link { padding: 16px; }
  .ntc-ltiles__logo { height: 64px; }
}

@media (max-width: 767px) {
  .ntc-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntc-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntc-ltiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntc-offfield__media { height: 340px; }
}

/* Focus rings on the two grounds the accent ring cannot use (#72): the ink
   button on the gold band (gold on gold was 1:1) and the cream partner tiles
   (#B9B6C6 on cream was 1.97:1). Ink is 15.9:1 on gold and 19.6:1 on cream. */
.ntc-ground--gold .ntc-btn:focus-visible,
.ntc-ltiles__tile:not(.ntc-ltiles__tile--ask) .ntc-ltiles__link:focus-visible {
  outline-color: var(--color-ink);
}
