/* =============================================================================
   Chrome — the section shell, the alert bar, the page header.

   Values come from the Paper artboards ("NTC Web", 01KKTX9QPNRJD9GGC2E8AX7ENV,
   page "3 - Website Design"), read with get_jsx and get_computed_styles.

   The artboards are 1440px wide with a 20px gutter, so a section's content
   measures 1400px. --ntc-gutter carries that number rather than a spacing token
   because 20px is not on the 4/8/16/24/40 scale the tokens describe.
   ========================================================================== */

:root {
  /* The artboard is 1440 wide with a 20px gutter each side, so a section's
     CONTENT measures 1400. --ntc-frame is the artboard, not the content: the
     20px padding comes out of it. Setting the frame to 1400 would leave 1360 of
     content and quietly shrink every fixed-width slot's share of the row. */
  --ntc-gutter: 20px;
  --ntc-frame: 1440px;
}

/* --- Section shell --------------------------------------------------------
   Every band is full-bleed and paints its own ground; the inner element holds
   the 1400px measure. Sections are laid out with flow, not with the global
   .ntc-section padding, because each artboard band sets its own vertical
   rhythm. */
.ntc-sec {
  width: 100%;
  overflow-x: clip;          /* a wide child scrolls in its own box, not the page */
}

.ntc-sec__inner {
  width: 100%;
  max-width: var(--ntc-frame);
  margin-inline: auto;
  padding-inline: var(--ntc-gutter);
}

.ntc-ground--ink       { background: var(--color-ink); }
.ntc-ground--raised    { background: var(--color-ink-raised); }
.ntc-ground--black     { background: var(--color-black); }
.ntc-ground--bone      { background: var(--color-bone); color: var(--color-text-on-light); }
/* Dark purple is a GROUND, not a categorisation colour — five sections moved
   onto it so the dark half of the site stops being one flat black. Two tokens
   have to be re-pointed for it, the same way .ntc-on-light re-points the
   accent: --color-text-muted is 3.92:1 on #301934 (fail) and --color-line is
   1.31:1 (invisible). Doing it by scope means no section stylesheet needs a
   colour edit — every "meta" line and hairline in a purple section corrects
   itself. */
.ntc-ground--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
  --color-text-muted: var(--color-text-muted-purple);
  --color-line:       var(--color-line-purple);
}

/* An empty media panel is --color-secondary on purpose: it is the club purple
   standing in for a photograph. Inside a purple section that makes it
   invisible, so it falls back to black — 1.31:1 is weak, but the panel carries
   a border and this is the only surface that has to read by hue. */
.ntc-ground--secondary .ntc-panel--empty { background: var(--color-black); }

/* --- Photographic panel ---------------------------------------------------
   Holds its box whether or not an image exists, so a missing photo never
   collapses a band. The empty state is the club purple the comp paints behind
   its photography, not a grey nothing. */
.ntc-panel { position: relative; overflow: hidden; background: var(--color-black); }
.ntc-panel--empty { background: var(--color-secondary); }

.ntc-panel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section heading ------------------------------------------------------
   Eyebrow over a 150px Anton title, with a right-hand slot dropped to the same
   baseline. Used by every data section. */
.ntc-sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-xl);
  width: 100%;
}

.ntc-sechead--stacked { display: block; }

.ntc-sechead--inline {
  align-items: baseline;
  justify-content: flex-start;
  gap: var(--spacing-lg);
}

.ntc-sechead__lead { display: flex; flex-direction: column; gap: 14px; }

.ntc-sechead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 150px;
  font-weight: var(--font-weight-normal);
  line-height: 135px;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-white);
}

.ntc-ground--bone .ntc-sechead__title { color: var(--color-text-on-light); }

.ntc-sechead__aside {
  margin: 0 0 20px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 18px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ntc-sechead__aside--prose {
  max-width: 340px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
}

.ntc-sechead__link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
  text-decoration: none;
  color: var(--color-accent);
}

.ntc-sechead__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 18px;
  color: var(--color-text-muted);
}

.ntc-ground--bone .ntc-sechead__note { color: var(--color-gray-800); }

/* The comp's eyebrow is 14px mono on the section heads and 12px in tighter
   places; .ntc-eyebrow in the design system is the 12px form, so the section
   head steps it up rather than redefining the role. */
.ntc-sechead .ntc-eyebrow,
.ntc-sechead__lead .ntc-eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-normal);
  line-height: 18px;
  text-transform: none;
}

.ntc-ground--bone .ntc-eyebrow { color: var(--color-gray-800); }

/* An eyebrow inside a dark panel nested in a bone section is back on ink, so it
   takes the accent again. This has to outrank the bone rule above by
   specificity, not by source order — design-system.css loads first, so a rule
   there could not win. */
.ntc-ground--bone .ntc-on-dark .ntc-eyebrow { color: var(--color-accent); }

.ntc-eyebrow--white { color: var(--color-white); }

/* A 256px Anton title used where a band has no eyebrow/aside pair. */
.ntc-bigtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-mega);
  font-weight: var(--font-weight-normal);
  line-height: 230px;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-white);
}

.ntc-ground--bone .ntc-bigtitle { color: var(--color-text-on-light); }

/* --- Alert bar ------------------------------------------------------------
   44px ink bar above the masthead. One bar, three states, and exactly one
   message ever rendered — see the shortcode for why there is no rotation.

   It does NOT re-theme. It sits in normal flow at the top of the document and
   scrolls away with the masthead, so there is no ground moving underneath it;
   --ntc-theme-bg belongs to the compact bar, which is fixed. Ink is ink.

   Gold in this bar means one thing: a match is on right now. That is what makes
   the states readable at a glance, and it is why the urgent chip below is white
   rather than a louder gold. Scrolls rather than wraps on a narrow viewport,
   because a two-line alert bar stops reading as a bar.
   -------------------------------------------------------------------------- */
.ntc-alertbar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 44px;
  padding-inline: 20px;
  background: var(--color-ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ntc-alertbar::-webkit-scrollbar { display: none; }

/* The chip is conditional MARKUP, not a hidden class — outside the live window
   no element with --live exists in the document at all. A chip that is only
   display:none is one CSS mistake away from being the Tuesday bug again. */
.ntc-alertbar__chip {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 5px 12px;
  color: var(--color-ink);
  font-size: var(--text-2xs);
  font-weight: var(--font-weight-bold);
  line-height: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.ntc-alertbar__chip--live   { background: var(--color-accent); }  /* 9.91:1 ink on gold */
.ntc-alertbar__chip--urgent { background: var(--color-white); }   /* 19.9:1 ink on white */

.ntc-alertbar__dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
}

/* The normal state has no chip surface at all — the eyebrow / rule / body
   grammar the removed notice bar used, which is already in the vocabulary.
   12px, not the chip's 10px: with no ground behind it the house floor for a
   bare label is 12. --color-text-muted is 4.73:1 on ink. */
.ntc-alertbar__kicker {
  margin: 0;
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.ntc-alertbar__body {
  margin: 0;
  flex-shrink: 0;
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  white-space: pre;
}

.ntc-alertbar__meta {
  margin: 0;
  flex-shrink: 0;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ntc-alertbar__rule { width: 1px; height: 16px; flex-shrink: 0; background: var(--color-line); }
.ntc-alertbar__spacer { flex: 1 0 20px; }

/* The arrow is drawn here, never typed by the author — the ACF instructions say
   so, and a hand-typed one would be inconsistent the first time someone used a
   hyphen and a bracket. */
.ntc-alertbar__cta {
  flex-shrink: 0;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.ntc-alertbar__cta::after { content: ' \2192'; }

/* --- Page header ----------------------------------------------------------
   Ink ground, 110px top pad, 197px Anton title, chips or lede on the right. */
.ntc-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding-block: 110px 80px;
}

.ntc-pagehead__lead { display: flex; flex-direction: column; gap: var(--spacing-md); }

.ntc-pagehead .ntc-eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-normal);
  line-height: 18px;
  text-transform: none;
}

.ntc-pagehead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-white);
}

.ntc-pagehead__aside { flex-shrink: 0; padding-bottom: var(--spacing-lg); }

.ntc-pagehead__lede {
  max-width: 440px;
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-muted);
}

.ntc-pagehead__meta {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 16px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ntc-pagehead__meta--note { margin-top: var(--spacing-sm); color: var(--color-accent); }

/* --- Chip row -------------------------------------------------------------
   Pill radius, 11/22 padding. The chips in a page header are presentational —
   nothing filters yet — so they are spans, not buttons. The contact form's
   topic chips are the exception: those are real radios wearing the same skin. */
.ntc-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ntc-chiprow .ntc-chip {
  padding: 11px 22px;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.ntc-chiprow--radio { display: inline-flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.ntc-chiprow__item { display: inline-flex; }

.ntc-chiprow__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ntc-chiprow__radio:checked + .ntc-chip {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

/* Keyboard focus must be visible on a control whose input is off-screen. */
.ntc-chiprow__radio:focus-visible + .ntc-chip {
  outline: 3px solid var(--color-accent-dim);
  outline-offset: 4px;
}

/* --- Responsive -----------------------------------------------------------
   The display sizes above are 1440px values. The design system already steps
   --text-display and --text-mega down at 1024 and 640; the literal 150px and
   230px used by the section heads need the same treatment. */
@media (max-width: 1024px) {
  .ntc-sechead__title { font-size: 84px; line-height: 78px; }
  .ntc-bigtitle { font-size: var(--text-mega); line-height: 0.9em; }
  .ntc-pagehead { padding-block: 72px 56px; }
  .ntc-sechead { flex-direction: column; align-items: flex-start; gap: var(--spacing-lg); }
  .ntc-sechead__aside { margin-bottom: 0; }
  .ntc-pagehead { flex-direction: column; align-items: flex-start; }
  .ntc-pagehead__aside { padding-bottom: 0; }
  .ntc-pagehead__meta { text-align: left; }
}

@media (max-width: 640px) {
  .ntc-sechead__title { font-size: 56px; line-height: 52px; }
}

/* =============================================================================
   Site chrome — the 2026 Terrace masthead, menu, phone thumb bar, join band
   and footer strip (issue #64). Markup: ntc-port/chrome.php. The compact
   masthead's show/hide and re-theming stay in motion.css.

   Widths, from design board 10 and mobile.md:
     1200 and up   badge + name, six links, Join
     768 to 1199   badge + name, Join, Menu
     under 768     badge + name only; Fixtures, Join and Menu move to a bar
                   fixed to the bottom of the screen, inside thumb reach.
   1200 rather than 1024 because the six links, the name and Join need about
   1140px; at 1024 the row would wrap.

   Every control here is at least 44px tall (--tap-min): nav links carry a
   44px box, buttons are 56 (48 on a phone).
   ========================================================================== */

html .ntc-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) var(--grid-margin);
  background: var(--color-ink);
  color: var(--color-white);
}

/* The brand is a link that wraps a lockup, not link text, so it does not take
   --color-link (see AGENTS.md, "A link that WRAPS a composed block"). */
.ntc-brand, .ntc-brand:hover {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: var(--tap-min);
  color: var(--color-white);
  text-decoration: none;
}

.ntc-brand__badge { display: block; width: 76px; height: auto; flex-shrink: 0; }

.ntc-brand__name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ntc-masthead__nav { display: flex; gap: 32px; }

/* The underline is a border, present but transparent on every link, so the
   current page does not shift its neighbours by 3px. */
html .ntc-navlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  justify-content: center;
  padding-top: 3px;
  border-bottom: 3px solid transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
}

html .ntc-navlink:hover { color: var(--color-accent); }

html .ntc-navlink[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.ntc-masthead__actions { display: flex; align-items: center; gap: var(--spacing-md); }
.ntc-masthead__menu { display: none; }

/* --- The menu --------------------------------------------------------------
   A native popover (chrome.php): it opens with no JavaScript, Esc closes it
   and focus goes back to the button that opened it. It renders in the top
   layer, so it sits over the admin bar and the review notice without a
   z-index. The UA gives [popover] a border, padding and fit-content size;
   every one of those is reset here. */
html .ntc-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--spacing-md) var(--grid-margin) var(--spacing-xl);
  border: 0;
  background: var(--color-ink);
  color: var(--color-white);
  overflow-y: auto;
}

html .ntc-menu:popover-open { display: flex; flex-direction: column; gap: var(--spacing-xl); }

.ntc-menu__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.ntc-menu__nav { display: flex; flex-direction: column; }

html .ntc-menu__link, html .ntc-menu__link:hover {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
}

html .ntc-menu__link[aria-current="page"], html .ntc-menu__link[aria-current="page"]:hover { color: var(--color-accent); }

.ntc-menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-sm); }

html .ntc-menu__contact, html .ntc-menu__contact:hover {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text);
  font-size: var(--text-base);
}

/* --- Phone thumb bar -------------------------------------------------------
   Fixed to the bottom of the screen under 768px. It sits above the logged-in
   review notice, whose height review-notice.php publishes as
   --ntc-review-notice-space; for a visitor that variable does not exist and
   the bar sits on the bottom edge. */
.ntc-thumbbar { display: none; }

/* --- Join band and footer strip ------------------------------------------- */
html .ntc-joinband {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 70px var(--grid-margin) var(--spacing-3xl);
}

html .ntc-joinband__title {
  color: var(--color-white);
  font-size: var(--text-display);
  line-height: 0.9;
}

.ntc-joinband__body {
  max-width: 640px;
  margin: 0;
  color: var(--color-white);
  font-size: var(--text-xl);
  line-height: 1.5;
}

.ntc-joinband__actions { display: flex; flex-wrap: wrap; gap: 12px var(--spacing-md); }

html .ntc-sitefooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) var(--grid-margin) 48px;
  background: var(--color-ink);
}

.ntc-sitefooter__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--spacing-lg); }
.ntc-sitefooter__badge { display: block; width: 60px; height: auto; }

html .ntc-sitefooter__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text);
  font-size: var(--text-sm);
  text-decoration: none;
}

html .ntc-sitefooter__link:hover { color: var(--color-white); text-decoration: underline; }

.ntc-sitefooter__base,
.ntc-sitefooter__legal { margin: 0; color: var(--color-text); font-size: var(--text-sm); }
/* The copyright line carries the Privacy and Cookies links (#74). */
.ntc-sitefooter__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: inherit; gap: 0 var(--spacing-lg); }
/* SysTek credit (#105): the logo carries its own silver, so hover only
   underlines the words, as the other footer links do. */
html .ntc-sitefooter__credit { gap: 8px; }
.ntc-sitefooter__credit img { display: block; width: 74px; height: 20px; }

/* --- Alert bar, Terrace colours (board 10) --------------------------------
   An announcement is a gold strip: purple kicker, navy words, navy link. A
   live match is the purple strip with the gold LIVE chip. These restate only
   colour and the link's hit area; the layout rules above are unchanged.
   Purple on gold is 5.18:1, navy on gold 12.06:1, cream on purple 8.68:1. */
html .ntc-alertbar--normal,
html .ntc-alertbar--urgent { background: var(--color-accent-base); }
html .ntc-alertbar--normal .ntc-alertbar__kicker { color: var(--color-secondary); }
html .ntc-alertbar--normal .ntc-alertbar__rule,
html .ntc-alertbar--urgent .ntc-alertbar__rule { background: var(--color-secondary); }
html .ntc-alertbar--normal .ntc-alertbar__body,
html .ntc-alertbar--urgent .ntc-alertbar__body { color: var(--color-ink); }
html .ntc-alertbar--urgent .ntc-alertbar__chip--urgent { background: var(--color-ink); color: var(--color-white); }
html .ntc-alertbar--normal .ntc-alertbar__cta,
html .ntc-alertbar--urgent .ntc-alertbar__cta { color: var(--color-ink); text-decoration: underline; }

html .ntc-alertbar--live { background: var(--color-secondary); }
html .ntc-alertbar--live .ntc-alertbar__body { color: var(--color-white); }
html .ntc-alertbar--live .ntc-alertbar__meta { color: var(--color-text-muted-purple); }
html .ntc-alertbar--live .ntc-alertbar__rule { background: var(--color-line-purple); }
html .ntc-alertbar--live .ntc-alertbar__chip--live .ntc-alertbar__dot { background: var(--color-ink); }

html .ntc-alertbar { padding-inline: var(--grid-margin); }
html .ntc-alertbar__cta { display: inline-flex; align-items: center; min-height: var(--tap-min); }

@media (max-width: 1199px) {
  .ntc-masthead__nav { display: none; }
  .ntc-masthead__menu { display: inline-flex; }
}

@media (max-width: 1024px) {
  html .ntc-masthead { padding-block: var(--spacing-md); }
}

/* Phone. Headings and short copy centre; the footer stacks. The footer's
   120px bottom padding is the 72px thumb bar plus room, so the bar never
   covers the last line. */
@media (max-width: 767px) {
  html .ntc-masthead { padding: 12px var(--grid-margin); }
  .ntc-masthead__actions { display: none; }
  .ntc-brand { gap: 10px; }
  .ntc-brand__badge { width: 48px; }
  .ntc-brand__name { font-size: var(--text-xl); }

  html .ntc-thumbbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--ntc-review-notice-space, 0px);
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-sm);
    padding: 12px var(--grid-margin) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--color-ink);
    border-top: 1px solid var(--color-line);
  }

  html .ntc-thumbbar .ntc-btn { padding-inline: var(--spacing-sm); font-size: var(--text-base); }

  html .ntc-joinband { align-items: center; padding: var(--spacing-2xl) var(--grid-margin); text-align: center; }
  html .ntc-joinband__title { font-size: var(--text-h1); }
  .ntc-joinband__actions { justify-content: center; }

  html .ntc-sitefooter { flex-direction: column; padding-bottom: 120px; text-align: center; }
  .ntc-sitefooter__contact { flex-direction: column; }
}
