/* ============================================================
   Cobra Registry — main stylesheet
   Faithful to Figma "Cobra Registry" design (1920px canvas, 1440px content)
   Responsive: fluid down to mobile via clamp() and grid breakpoints
   ============================================================ */

/* ---------- Font face ---------- */
@font-face {
  font-family: "Good Times";
  src: url("../assets/fonts/good-times.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --bg: #1e1e1d;
  --bg-footer: #1e1e1e;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --brand-red: #c6322d;
  --brand-blue: #215bae;
  --gray: #d9d9d9;
  --beige: #e7e7d6;
  --dark-gray: #545658;
  --scrim: rgba(0, 0, 0, 0.7);
  --scrim-strong: rgba(0, 0, 0, 0.96);

  /* Fonts */
  --font-display:
    "Good Times", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  /* Layout — design canvas 1440, content 1440, gutter 190 each side */
  --canvas-width: 1440px;
  --content-width: 1440px;
  --content-px: clamp(20px, 12.5vw, 190px);

  /* Radii / shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.25);

  /* Fluid display sizes (from 77/40/36 in design, scaled at <1440px) */
  --fs-display-xl: clamp(2.25rem, 5.35vw, 4.8125rem); /* 77px */
  --fs-display-l: clamp(1.5rem, 2.78vw, 2.5rem); /* 40px */
  --fs-display-m: clamp(1.375rem, 2.5vw, 1.75rem); /* 36px */
  --fs-h2: clamp(1.25rem, 2.3vw, 1.5rem); /* 33px */
  --fs-button-l: clamp(1.125rem, 1.95vw, 1.75rem); /* 28px */
  --fs-button: clamp(1rem, 1.67vw, 1.25rem); /* 20px */
  --fs-body: clamp(1rem, 1.25vw, 1rem); /* 16px */
  --fs-footer-h: clamp(1.125rem, 1.63vw, 1.46875rem); /* 23.5px */
  --fs-fineprint: clamp(0.75rem, 1vw, 0.90625rem); /* 14.5px */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: var(
    --canvas-width
  ); /* Cap entire page at design canvas (1920px) so content
                                       doesn't stretch on 4K / 5K / ultrawide monitors —
                                       prevents image pixelation and overly long text lines. */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;

  margin: 0 auto;
  padding-inline: var(--content-px);
}

.full-bleed {
  width: 100%;
}

.upper {
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; /* was: fixed — fixed escapes body's max-width
                                and spans full viewport on 4K/5K monitors,
                                making the dark header band bleed past the
                                1920 design boundary. sticky stays inside body. */
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--scrim);
  backdrop-filter: blur(4px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo stays left; nav centered in remaining space */
  gap: 1.5rem;
  padding-block: 0.9375rem;
  padding-inline: var(--content-px);
  max-width: var(--canvas-width);
  margin: 0 auto;
}

.site-header__logo {
  flex-shrink: 0;
}

/* Center the nav block in the empty space between the logo and the right edge */
.primary-nav {
  margin-left: auto;
  margin-right: auto;
}
.site-header__logo img {
  height: clamp(48px, 4.4vw, 123px);
  width: auto;
  max-width: none;
}

/* CSS-only mobile nav toggle */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  position: absolute;
  width: 28px;
  height: 3px;
  background: #fff;
  left: 6px;
  transition: transform 0.25s ease;
}
.nav-toggle-label span {
  top: 18px;
}
.nav-toggle-label span::before {
  top: -9px;
}
.nav-toggle-label span::after {
  top: 9px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
}

.primary-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-button);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--brand-red);
}
/* Login button is a CTA — keep its white text even if .is-active is applied */
.primary-nav a.btn--login,
.primary-nav a.btn--login.is-active {
  color: #fff;
}
.primary-nav a.btn--login:hover {
  color: var(--brand-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn--login {
  background: var(--brand-red);
  color: #fff;
  font-size: var(--fs-button);
  min-width: 113px;
  height: 40px;
}
.btn--login:hover {
  background: #fff;
  color: var(--brand-red);
}

.btn--primary {
  background: #215bae;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  font-size: var(--fs-button-l);
  min-height: 59px;
  gap: 10px;
}
.btn--primary:hover {
  background: #fff;
  color: var(--brand-red);
}

/* ---------- Header tightening (all desktop widths above hamburger) ----------
   The default 12.5vw side gutter (240px at 1920px) eats too much room and
   pushes the Logout button off-screen when 8 items are present (logged in).
   Apply the tighter gutter and gap unconditionally above the hamburger
   threshold. The rest of the page (article, footer, ad-join) still uses
   the original --content-px so the body design is unchanged. */
.site-header__inner {
  padding-inline: clamp(0.75rem, 1.5vw, 2.5rem);
}
.primary-nav ul {
  gap: clamp(0.5rem, 1vw, 1.25rem);
}

/* ---------- Mobile nav ----------
   Bumped from 1200 → 1340 to handle the logged-in case (extra Profile item) */
@media (max-width: 1340px) {
  .nav-toggle-label {
    display: block;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem clamp(1rem, 2vw, 2.5rem) 1.5rem;
    display: none;
  }
  .nav-toggle:checked ~ .primary-nav {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
}

/* ============================================================
   HERO / SLIDER
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2750 / 1106;
  /*  aspect-ratio: 1920 / 1106;*/
  min-height: 360px;
  overflow: hidden;
  background: #000;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--scrim);
  padding: clamp(1rem, 3.7vw, 1rem) var(--content-px);
  /* padding: clamp(1.25rem, 3.7vw, 4rem) var(--content-px); */
  text-align: center;
  z-index: 2;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 3vh;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
  /*  max-width: 1440px; */
  margin: 0 auto;
}

/* Big hero with left-aligned title (Good Times 77) — History + About pages */
.hero--history .hero__scrim,
.hero--about .hero__scrim {
  text-align: left;
}
.hero--history .hero__title,
.hero--about .hero__title {
  font-size: var(--fs-display-xl);
  text-align: left;
  /*  max-width: var(--content-width); */
}
.hero--history .hero__title .subtitle,
.hero--about .hero__title .subtitle {
  display: block;
  font-size: var(--fs-display-l);
  margin-top: 0.5rem;
  color: #c6322d;
}

/* ============================================================
   SEARCH BAR (homepage)
   ============================================================ */
.searchbar {
  background: #c6322d;
  width: 100%;
}
.searchbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-width: 64%;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .searchbar__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    padding: 1rem;
  }
}
.searchbar__tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ============================================================
   TILE GRID (6 squares / history subnav)
   ============================================================ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  padding-block: clamp(1.5rem, 3vw, 3rem);
}
.tile-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  /* max-width: var(--content-width); */
  margin: 0 auto;
  padding-inline: var(--content-px);
  grid-column: 1 / -1;
}
.tile {
  position: relative;
  aspect-ratio: 467 / 467;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  display: block;
  isolation: isolate;
}
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tile:hover .tile__img {
  transform: scale(1.05);
}
.tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    350deg,
    rgba(0, 0, 0, 0) 23%,
    rgba(0, 0, 0, 0.57) 61%,
    rgba(0, 0, 0, 0.96) 100%
  );
  z-index: 1;
}
.tile__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 71px;
  z-index: 2;
  padding: 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  text-shadow: -2px 2px 8px rgba(0, 0, 0, 0.9);
  top: 3%;
  line-height: 1em;
}
.tile__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 71px;
  background: #c6322d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-button);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}
.tile:hover .tile__cta {
  background: #c6322d;
  color: #fff;
}

/****ABOUT ONLY****/

.about-tile-grid {
  /* display: grid; */
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  padding-block: clamp(1.5rem, 3vw, 3rem);
}
.about-tile-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--content-px);
  grid-column: 1 / -1;
}
.about-tile {
  position: relative;
  aspect-ratio: 467 / 467;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  display: block;
  isolation: isolate;
}
.about-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-tile:hover .tile__img {
  transform: scale(1.05);
}
.about-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    174deg,
    rgba(0, 0, 0, 0) 23%,
    rgba(0, 0, 0, 0.57) 47%,
    rgba(0, 0, 0, 0.96) 100%
  );
  z-index: 1;
}
.about-tile__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 71px;
  z-index: 2;
  padding: 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  text-shadow: -2px 2px 8px rgba(0, 0, 0, 0.9);
  top: 3%;
  line-height: 1em;
}
.about-tile__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 71px;
  background: #c6322d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-button);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}
.about-tile:hover .tile__cta {
  background: #c6322d;
  color: #fff;
}

@media (max-width: 1024px) {
  .tile-grid,
  .tile-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tile-grid,
  .tile-grid__inner {
    grid-template-columns: 1fr;
  }
  .tile__title {
    bottom: 80px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   HISTORY SUBNAV TEXT LIST (History-Main)
   ============================================================ */
.subnav-list {
  background: var(--scrim);
  padding-block: clamp(1.5rem, 3vw, 3rem);
}
.subnav-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--content-px);
}
.subnav-list a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-button);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.7;
  display: block;
}
.subnav-list a:hover {
  color: var(--brand-red);
}
@media (max-width: 700px) {
  .subnav-list ul {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.article__body {
  width: 80%;
  /*  max-width: var(--content-width); */
  margin: 0 auto;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: #fff;
}
.article__body p {
  margin: 0 0 1.5em;
}
.article__body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  color: #545658;
}
.article__body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}
.article__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.article__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .article__media {
    grid-template-columns: 1fr;
  }
}

/* Single inline article figure */
.article__figure {
  margin: 2rem 0;
  text-align: center;
}
.article__figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-1);
}
.article__figure--natural img {
  width: auto;
  max-width: 100%;
}

/* Multi-image figure rows (2/3/4 across) */
.article__figures {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.article__figures--2 {
  grid-template-columns: repeat(2, 1fr);
}
.article__figures--2-natural {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
}
.article__figures--2-natural .article__figure {
  /* flex: 0 1 auto; */
  grid-template-columns: 75% 25%;
}
.article__figures--2-natural .article__figure img {
  width: auto;
  max-width: 100%;
  height: auto;
}
.article__figures--3 {
  grid-template-columns: repeat(3, 1fr);
}
.article__figures--4 {
  grid-template-columns: repeat(4, 1fr);
}
.article__figures .article__figure {
  margin: 0;
}
.article__figures .article__figure img {
  box-shadow: var(--shadow-1);
}

.article__split--30-70 {
  grid-template-columns: minmax(220px, 30%) minmax(0, 70%) !important;
}

@media (max-width: 900px) {
  .article__figures--stack-mobile {
    grid-template-columns: 1fr !important;
  }
  .article__figures--3,
  .article__figures--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .article__figures--2,
  .article__figures--3,
  .article__figures--4 {
    grid-template-columns: 1fr;
  }
  .article__figures--2-natural {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   AD / JOIN STRIP
   ============================================================ */
.ad-join {
  position: relative;
  width: 100%;
  background: #1e1e1d;
  overflow: hidden;
}
.ad-join__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}

.ad-join__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  /* gap: 1.5rem; */
  align-items: center;
  justify-content: space-between;
  padding: 0 14.75rem;
  /* max-width: var(--canvas-width); */
  margin: 0 auto;
}
/*
.ad-join__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.75rem) var(--content-px);
  max-width: var(--canvas-width);
  margin: 0 auto;
}

*/
.ad-join__text {
  font-family: var(--font-display);
  font-size: var(--fs-display-l);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
  max-width: 60ch;
}
.ad-join__text strong {
  display: block;
}
.ad-join__text small {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
  margin-top: 0.25em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  color: #fff;
  padding: clamp(2rem, 4vw, 2.8125rem) var(--content-px);
}
.site-footer__inner {
  max-width: var(--canvas-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
}
.site-footer__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-footer-h);
  text-transform: uppercase;
  line-height: 1.3;
}
.site-footer__heading span {
  display: block;
}
.site-footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-footer__socials a {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: color 0.2s ease;
}
.site-footer__socials a:hover {
  color: var(--brand-red);
}
.site-footer__socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer__fineprint {
  grid-column: 1 / -1;
  font-size: var(--fs-fineprint);
  text-transform: uppercase;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-top: 0;
  /* padding-top: 1rem; */
  padding-top: 0;
  /* margin-top: 0.5rem; */
  margin-top: 0;
}

.site-footer__fineprint a {
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-footer__fineprint a:hover,
.site-footer__fineprint a.is-active {
  color: var(--brand-red);
}
/*. site-footer__fineprint a:hover,
. site-footer__fineprint a.is-active {
  color: var(--brand-red);
}*/
/* Login button is a CTA — keep its white text even if .is-active is applied */
/*. site-footer__fineprint a.btn--login,
. site-footer__fineprint a.btn--login.is-active {
  color: #fff;
}
. site-footer__fineprint a.btn--login:hover {
  color: var(--brand-red);
}*/

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  /*bottom: 1.5rem;*/
  top: calc(clamp(5rem, 8vw, 8.5rem) + 1rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
  z-index: 50;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.scroll-top:hover {
  background: #fff;
  color: var(--brand-red);
  transform: translateY(-2px);
}
.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ============================================================
   LOGOUT TOAST (shown by scripts/nav-state.js after /api/logout)
   ============================================================ */
.logout-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999;
  padding: 1.25rem 2.25rem;
  font: 700 clamp(1.1rem, 1.6vw, 1.5rem)/1.3 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.92);
  border: 2px solid var(--brand-red);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}
.logout-toast--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   SHORT HERO (References, Contact)
   ============================================================ */
.hero--short {
  min-height: 336px;
}
.hero--short .hero__img {
  min-height: 336px;
}

/* ============================================================
   ARTICLE SPLIT (photo + text side by side)
   ============================================================ */
.article__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}
.article__split .article__figure {
  margin: 0;
}
.article__split--reverse .article__figure {
  order: 2;
}
.article__split--reverse .article__text {
  order: 1;
}

@media (max-width: 900px) {
  .article__split {
    grid-template-columns: 1fr;
  }
  .article__split--reverse .article__figure {
    order: 0;
  }
  .article__split--reverse .article__text {
    order: 0;
  }
}

.article__figure--wide {
  margin: 2.5rem 0;
}

/* ============================================================
   BEIGE BANNER SPLIT (photo + text side by side in banner)
   ============================================================ */
.beige-banner__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.leftColumn,
.rightColumn {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.beige-banner__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.beige-banner__split .article__figure {
  margin: 0;
}

@media (max-width: 900px) {
  .beige-banner__split {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BEIGE BANNER (Authentication callout)
   ============================================================ */
/*
.beige-banner {
  background: var(--beige);
  padding: 3rem 0;
  margin: 0;
}
*/
.beige-banner {
  background: var(--beige);
  padding: 7rem;
  margin: 0;
  /* width: 100vw; */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.beige-banner__inner {
  /*  max-width: var(--content-width); */
  margin: 0 auto;
  padding: 0 var(--content-px);
}

/*
.beige-banner p {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  color: #545658;
  margin: 0;
}
*/

.beige-banner p {
  font-family: var(--font-body);
  font-weight: 700;
  /* font-size: clamp(1.25rem, 2vw, 2.25rem); */
  color: #545658;
  margin: 0;
  padding: 1em 5vw;
}

.beige-banner-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  align-items: start;
}

.beige-banner p {
  padding: 0;
}

.beige-banner-spacer {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: static;
  left: auto;
  right: auto;
  box-sizing: border-box;
  padding: 0;
  height: 7px;
}

@media (max-width: 900px) {
  .beige-banner-2col {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
}

/* Match banner width to article/figure width on history page */
.beige-banner--article-width {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: static;
  left: auto;
  right: auto;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .beige-banner--article-width {
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   OWNER RESOURCES CTA BUTTONS
   ============================================================ */
.owner-cta {
  padding: 2rem 0 4rem;
}
.owner-cta__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.btn--cta {
  display: block;
  text-align: center;
  padding: 1.25rem 2rem;
  background: var(--brand-red);
  color: #fff;
  font: 400 clamp(1rem, 1.5vw, 1.5rem)/1.3 var(--font-body);
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn--cta:hover {
  background: #fff;
  color: var(--brand-red);
}

@media (max-width: 700px) {
  .owner-cta__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FORMS (Contact + Register)
   ============================================================ */
.form-section {
  padding: 2rem 0 4rem;
}
.form-section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  /*  padding: 0 var(--content-px); */
}
/*.form-contact {
    max-width: 960px; 
}*/
.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font: 700 1rem/1.4 var(--font-body);
  color: #fff;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: 400 1rem/1.5 var(--font-body);
  color: #333;
  background: #fff;
  border: 1px solid #999;
  border-radius: 8px;
  box-sizing: border-box;
}
.form-field textarea {
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b3b3b3;
}

.form-field--terms {
  margin-top: 2rem;
}
.form-field__heading {
  font: 700 1rem/1.4 var(--font-body);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--brand-red);
}
.form-checkbox__text {
  font: 400 0.875rem/1.6 var(--font-body);
  color: #939598;
}

/* Captcha row — math puzzle with answer field */
.form-field.captcha-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.form-field.captcha-row label {
  margin: 0;
  font: 700 1rem/1.4 var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.form-field.captcha-row #captcha-question {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-red);
}
.form-field.captcha-row input[name="CaptchaAnswer"] {
  width: auto;
  max-width: 120px;
  flex: 0 0 auto;
}

.btn--submit {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  font: 700 1.125rem/1.3 var(--font-body);
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-red);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn--submit:hover {
  background: #fff;
  color: var(--brand-red);
}

/* ============================================================
   LOGIN PAGE EXTRAS
   ============================================================ */
.form-login {
  max-width: 560px;
  margin: 0 auto;
}

.login-banner {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font: 400 1rem/1.5 var(--font-body);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--brand-red);
}
.login-banner[data-kind="success"] {
  background: rgba(40, 160, 90, 0.12);
  border-left-color: #28a05a;
}

.login-error {
  min-height: 1em;
  color: var(--brand-red);
  font: 700 0.95rem/1.4 var(--font-body);
  margin: 0 0 1rem;
}

.login-message {
  min-height: 1em;
  margin: 1rem 0 0;
  color: var(--brand-red);
  font: 700 0.95rem/1.4 var(--font-body);
  text-align: center;
}

.form-helper {
  max-width: 560px;
  margin: 1.5rem auto 0;
  text-align: center;
  font: 400 0.95rem/1.6 var(--font-body);
  color: var(--text-muted);
}
.form-helper a {
  color: var(--brand-red);
  text-decoration: underline;
}
.form-helper a:hover {
  color: #fff;
}

/* ============================================================
   REFERENCES LIST
   ============================================================ */
.references-section {
  padding: 2rem 0 4rem;
}
.references-section__inner {
  /* max-width: var(--content-width); */
  max-width: 100 !important;
  margin: 0 auto;
  padding: 0 var(--content-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.references-section__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn--ref {
  display: block;
  padding: 0.75rem 3rem;
  font: 700 clamp(0.9rem, 1.2vw, 1.125rem) / 1.3 var(--font-body);
  color: #fff;
  background: #d71920;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn--ref:hover {
  background: #fff;
  color: #d71920;
}

.glossary-content {
  max-width: var(--canvas-width);
  /* margin: 0 auto; */
  /* display: grid; */
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 0 var(--content-px);
}

.footer-contact a:hover {
  color: #e72429 !important;
}

@media (max-width: 900px) {
  .references-section__inner {
    grid-template-columns: 1fr;
  }
  .references-section__image {
    max-width: 500px;
  }
}
