/* The Inside Game - local application layer */
:root {
  --ig-paper: #fff1e7;
  --ig-white: #fffaf7;
  --ig-ink: #321d24;
  --ig-ink-soft: #4a2b32;
  --ig-terracotta: #e07a5f;
  --ig-terracotta-dark: #9e4938;
  --ig-sage: #dce5dc;
  --ig-sage-dark: #314c42;
  --ig-line: #c8a9a0;
  --ig-focus: #185c72;
  --ig-max: 90rem;
  --ig-gutter: clamp(1rem, 3vw, 3.5rem);
  --ig-radius: .5rem;
  --ig-shadow: 0 .65rem 1.5rem rgba(50, 29, 36, .12);
}

html { scroll-behaviour: smooth; }
body {
  margin: 0;
  background: var(--ig-paper);
  color: var(--ig-ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: #185c72; text-underline-offset: .18em; }
a:hover { color: #743526; }
:focus-visible {
  outline: .2rem solid var(--ig-focus);
  outline-offset: .2rem;
}

.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2000;
  padding: .7rem 1rem;
  border-radius: .25rem;
  background: var(--ig-white);
  color: var(--ig-ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  background: var(--ig-paper);
  border-bottom: 1px solid var(--ig-line);
}
.site-header .container,
.site-footer .container,
main > section > .container,
main > .container {
  width: min(calc(100% - (2 * var(--ig-gutter))), var(--ig-max));
  max-width: none;
  margin-inline: auto;
}
.site-header .container { position: relative; }
.site-brand {
  display: inline-block;
  color: var(--ig-ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
}
.site-brand:hover { color: var(--ig-terracotta-dark); }
.site-header .btn { min-height: 2.75rem; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  align-items: center;
  justify-content: center;
}
.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .45rem .7rem;
  color: var(--ig-ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ig-terracotta-dark); text-decoration: underline; }
.site-header--inline .site-nav { justify-content: flex-end; }
.site-header--stacked-brand .site-brand { display: block; margin-bottom: .75rem; }
.site-header--wrapped-nav .site-nav { justify-content: flex-start; }
.site-header--centered-brand .container { text-align: center; }
.site-header--centered-brand .site-nav { margin-top: 1rem; }

.btn {
  min-height: 2.75rem;
  border-radius: .35rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.btn-primary {
  border-color: var(--ig-terracotta-dark);
  background: var(--ig-terracotta-dark);
  color: #fffaf7;
}
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  border-color: #743526;
  background: #743526;
  color: #fffaf7;
}
.btn-outline-primary {
  border-color: var(--ig-ink-soft);
  color: var(--ig-ink-soft);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  border-color: var(--ig-ink);
  background: var(--ig-ink);
  color: var(--ig-white);
}
.btn-outline-secondary {
  border-color: var(--ig-ink-soft);
  color: var(--ig-ink-soft);
}
.btn-xl { padding: .8rem 1.25rem; }

main > section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
main > section > .container > h2,
main > section > .container > p { max-width: 48rem; }
h1, h2, h3 {
  color: var(--ig-ink);
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  margin-block: .8rem 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  letter-spacing: -.035em;
}
h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  letter-spacing: -.02em;
}
h3 { margin-bottom: .7rem; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.section-kicker {
  max-width: 48rem;
  color: var(--ig-ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
}

.editorial-hero {
  background: var(--ig-ink);
  color: var(--ig-white);
}
.editorial-hero h1,
.editorial-hero h2 { color: var(--ig-white); }
.editorial-hero .section-kicker,
.editorial-hero p { color: #fff1e7; }
.editorial-hero .container { max-width: 90rem; }
.section-layout--hero-image-top .container { padding-top: clamp(1rem, 3vw, 3rem); }
.section-layout--hero-image-top .story-art,
.section-layout--hero-image-top picture { order: -1; display: block; }

.section-layout--trust-statements { background: var(--ig-paper); }
.section-layout--trust-statements .container { display: grid; gap: 1.5rem; }
.section-layout--trust-statements .story-card { max-width: 42rem; }
.section-layout--features-split { background: var(--ig-white); }
.section-layout--features-split .editorial-grid {
  display: grid;
  gap: 1rem;
}
.section-layout--editorial-timeline {
  background: var(--ig-sage);
}
.section-layout--editorial-timeline .story-card {
  position: relative;
  max-width: 50rem;
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: .35rem solid var(--ig-sage-dark);
}
.section-layout--showcase-feature { background: var(--ig-paper); }
.section-layout--showcase-feature .story-card {
  display: grid;
  gap: 1.25rem;
  max-width: 66rem;
}
.section-layout--gallery-featured { background: var(--ig-paper); }
.section-layout--gallery-featured .editorial-grid {
  display: grid;
  gap: 1rem;
}
.section-layout--gallery-featured .story-art { overflow: hidden; border-radius: var(--ig-radius); }
.section-layout--gallery-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .25s ease;
}
.section-layout--gallery-featured .story-art:hover img { transform: scale(1.025); }

.story-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius);
  background: var(--ig-white);
  box-shadow: var(--ig-shadow);
}
.story-card p:last-child { margin-bottom: 0; }
.story-card a { font-weight: 700; }
.editorial-grid { margin-top: 2rem; }
.portrait-art,
.story-art { margin-bottom: 1rem; }
.portrait-art img,
.story-art img {
  display: block;
  width: 100%;
  border-radius: .35rem;
  object-fit: cover;
}
.portrait-art img { aspect-ratio: 3 / 4; max-height: 30rem; }

.section-layout--contact-focused {
  background: var(--ig-ink);
  color: var(--ig-white);
}
.section-layout--contact-focused .container {
  width: min(calc(100% - (2 * var(--ig-gutter))), 40rem);
  margin-inline: auto;
}
.section-layout--contact-focused h2,
.section-layout--contact-focused p { color: var(--ig-white); text-align: center; }
.section-layout--contact-focused form {
  margin-top: 2rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 2px solid var(--ig-terracotta);
  border-radius: var(--ig-radius);
  background: #4a2b32;
}
.section-layout--contact-focused label {
  display: block;
  margin: .9rem 0 .35rem;
  color: #fff1e7;
  font-weight: 700;
}
.section-layout--contact-focused input:not([type="checkbox"]),
.section-layout--contact-focused textarea,
.section-layout--contact-focused select {
  width: 100%;
  min-height: 2.9rem;
  border: 2px solid #c8a9a0;
  border-radius: .3rem;
  background: #fffaf7;
  color: var(--ig-ink);
}
.section-layout--contact-focused textarea { min-height: 9rem; }
.section-layout--contact-focused input:focus,
.section-layout--contact-focused textarea:focus,
.section-layout--contact-focused select:focus {
  border-color: #fff1e7;
  box-shadow: 0 0 0 .2rem var(--ig-terracotta);
}
.section-layout--contact-focused .form-check { display: flex; gap: .6rem; align-items: flex-start; }
.section-layout--contact-focused .form-check input { flex: 0 0 auto; margin-top: .35rem; }
.section-layout--contact-focused .form-check label { margin: 0; }
.section-layout--contact-focused .form-check a { color: #fff1e7; }
.section-layout--contact-focused form > .btn { width: 100%; margin-top: 1rem; }

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--ig-line);
  border-radius: var(--ig-radius);
  background: var(--ig-white);
  box-shadow: var(--ig-shadow);
}
.cookie-banner p { flex: 1 1 100%; margin: 0; color: var(--ig-ink); }
.cookie-banner [data-cookie-action] { display: none; }

.site-footer {
  padding: 3rem var(--ig-gutter);
  background: var(--ig-ink);
  color: #fff1e7;
}
.site-footer address { margin: 0 auto 2rem; max-width: var(--ig-max); font-style: normal; }
.site-footer a { color: #fff1e7; }
.site-footer a:hover { color: #ffc2ae; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-footer p { max-width: var(--ig-max); margin: 1.5rem auto 0; color: #fff1e7; }

.policy-page { min-height: 100vh; background: var(--ig-paper); }
.policy-page__main { width: min(calc(100% - (2 * var(--ig-gutter))), 90rem); margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); }
.policy-document { max-width: 54rem; margin-inline: auto; }
.policy-document__header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ig-line); }
.policy-document__header h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.policy-document__content { max-width: 48rem; }
.policy-document__content h2 { margin-top: 2.5rem; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.policy-document__content h3 { margin-top: 1.75rem; }
.policy-document__content p,
.policy-document__content li { max-width: 42rem; }

@media (min-width: 48rem) {
  .site-header--centered-brand .site-nav { margin-top: .75rem; }
  .site-header--inline .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .site-header--inline .site-nav { margin-top: 0; }
  .site-header--stacked-brand .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .site-header--stacked-brand .site-brand { margin-bottom: 0; }
  .section-layout--features-split .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .section-layout--features-split .story-card { display: flex; flex-direction: column; }
  .section-layout--features-split .story-card p { flex: 1; }
  .section-layout--showcase-feature .story-card { grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.2fr); align-items: center; }
  .section-layout--showcase-feature .story-art { grid-row: span 3; margin: 0; }
  .section-layout--gallery-featured .editorial-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; }
  .section-layout--gallery-featured .story-art:first-child { grid-row: span 2; }
  .cookie-banner { left: auto; max-width: 34rem; }
  .cookie-banner p { flex-basis: 100%; }
}

@media (max-width: 30rem) {
  .site-header .btn { float: none !important; margin-top: .8rem; }
  .site-header--centered-brand .site-nav { justify-content: flex-start; text-align: left; }
  .cookie-banner { right: .5rem; bottom: .5rem; left: .5rem; }
  .cookie-banner .btn { flex: 1 1 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behaviour: auto; }
  *, *::before, *::after { scroll-behaviour: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Application-owned visual variation tokens v4. */
:root {
  --site-foreground: #172B35;
  --site-background: #EDE2D0;
  --site-accent: #0B5C68;
  --site-surface: #D8C7AE;
  --site-muted: #53656B;
  --site-link: #0B5C68;
  --site-text-muted: #172B35;
}

body,
body * {
  font-family: Trebuchet MS, Arial, sans-serif !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: Trebuchet MS, Arial, sans-serif !important;
}

body .site-header {
  width: 100%;
  overflow: visible !important;
}

body .site-header .navbar {
  width: 100%;
  padding-inline: clamp(1rem, 3vw, 4rem);
}

body .site-header .navbar > .container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

body .site-header .navbar-brand {
  min-width: 0;
  max-width: 38%;
  overflow-wrap: anywhere;
}

body .site-header .navbar-collapse {
  min-width: 0;
}

body .site-header .navbar-nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body .site-header .nav-link,
body .site-header .navbar-nav .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

@media (min-width: 992px) {
  body .site-header--stacked-brand .navbar > .container,
  body .site-header--centered-brand .navbar > .container {
    align-items: center;
  }

  body .site-header--stacked-brand .navbar > .container {
    flex-direction: column;
  }

  body .site-header--stacked-brand .navbar-brand,
  body .site-header--centered-brand .navbar-brand {
    max-width: 100%;
    margin-inline: auto;
  }

  body .site-header--stacked-brand .navbar-collapse,
  body .site-header--centered-brand .navbar-collapse {
    width: 100%;
    flex-grow: 0;
  }

  body .site-header--stacked-brand .navbar-nav,
  body .site-header--centered-brand .navbar-nav {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  body .site-header .navbar-collapse.show {
    flex-basis: 100%;
  }

  body .site-header .navbar-nav {
    align-items: stretch;
  }
}

body .btn,
body button[type="submit"] {
  background-color: var(--site-accent) !important;
  border-color: var(--site-accent) !important;
  color: var(--site-background) !important;
}


section.section-layout--hero-split .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  align-items: center;
}

section.section-layout--hero-split .row > [class*="col-"] {
  max-width: none !important;
  width: auto !important;
}

section.section-layout--hero-stacked .row {
  display: block !important;
  max-width: 66rem;
  margin-inline: auto;
}

section.section-layout--hero-editorial .row {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin-inline: 0;
}

section.section-layout--hero-editorial .row > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0;
}

section.section-layout--hero-editorial .row > [class*="col-"] + [class*="col-"] {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

section.section-layout--hero-editorial img {
  display: block;
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

section.section-layout--hero-overlay .row > [class*="col-"]:first-child {
  padding: clamp(1.5rem, 5vw, 5rem);
  margin: clamp(1rem, 3vw, 3rem);
  max-width: min(52rem, calc(100% - 2rem)) !important;
}

section.section-layout--hero-overlay h1 {
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

section.section-layout--hero-overlay p {
  margin-bottom: 1.25rem;
}

section.section-layout--hero-image-top > .container,
section.section-layout--hero-image-top > .container-fluid {
  width: min(calc(100% - 2rem), 90rem) !important;
  max-width: 90rem !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

section.section-layout--hero-image-top > .container > .row:first-child,
section.section-layout--hero-image-top > .container-fluid > .row:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

section.section-layout--hero-image-top > .container > .row:first-child > [class*="col-"],
section.section-layout--hero-image-top > .container-fluid > .row:first-child > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  padding-inline: 0 !important;
}

section.section-layout--hero-image-top > .container > .row:first-child > [class*="col-"]:has(img),
section.section-layout--hero-image-top > .container-fluid > .row:first-child > [class*="col-"]:has(img) {
  order: -1;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

section.section-layout--hero-image-top h1,
section.section-layout--hero-image-top .display-1,
section.section-layout--hero-image-top .display-2,
section.section-layout--hero-image-top .display-3 {
  max-width: 64rem !important;
}

section.section-layout--hero-image-top img {
  display: block;
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

section.section-layout--hero-overlay {
  position: relative;
  isolation: isolate;
}

section.section-layout--hero-overlay .row {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: center;
}

section.section-layout--hero-overlay .row > [class*="col-"] {
  grid-area: 1 / 1;
  max-width: none !important;
  width: auto !important;
}

section.section-layout--hero-overlay .row > [class*="col-"]:first-child {
  position: relative;
  z-index: 2;
  max-width: 42rem !important;
}

section.section-layout--hero-overlay .row > [class*="col-"]:last-child {
  z-index: 1;
}

@media (max-width: 767.98px) {
  section.section-layout--hero-split .row {
    display: block !important;
  }
}

/* Application-owned accessibility and viewport safeguards. */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

pre, code, kbd, samp {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.container, .container-fluid {
  min-width: 0;
}

main, section, header, footer {
  min-width: 0;
  max-width: 100%;
}

/* Application-owned fluid homepage container safeguards v1. */
body main > section .container,
body main > section .container-fluid {
  width: min(calc(100% - clamp(2rem, 6vw, 6rem)), 90rem) !important;
  max-width: 90rem !important;
  margin-inline: auto !important;
}

.skip-link:not(:focus) {
  position: fixed !important;
  top: 0;
  left: 50% !important;
  transform: translate(-50%, -160%);
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

@media (max-width: 575.98px) {
  .container > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

/* Application-owned focused contact layout v1. */
section.section-layout--contact-focused > .container > .row,
section.section-layout--contact-focused > .container-fluid > .row {
  display: block !important;
  width: min(100%, 44rem) !important;
  margin-inline: auto !important;
}

section.section-layout--contact-focused > .container > .row > [class*="col-"],
section.section-layout--contact-focused > .container-fluid > .row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

section.section-layout--contact-focused :where(h2, h3, .lead) {
  text-align: center;
}

section.section-layout--contact-focused form[data-qa-contact-form] {
  width: min(100%, 40rem);
  margin: 1.75rem auto 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--site-accent, currentColor);
  border-radius: 0.5rem;
}

section.section-layout--contact-focused form[data-qa-contact-form] :where(input:not([type="hidden"]), select, textarea) {
  width: 100%;
}

section.section-layout--contact-focused form[data-qa-contact-form] label {
  display: block;
  margin-bottom: 0.45rem;
}

section.section-layout--contact-focused form[data-qa-contact-form] > .row,
section.section-layout--contact-focused form[data-qa-contact-form] .form-row {
  display: block !important;
}

section.section-layout--contact-focused form[data-qa-contact-form] > .row > [class*="col-"],
section.section-layout--contact-focused form[data-qa-contact-form] .form-row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

section.section-layout--contact-focused form[data-qa-contact-form] :where(button[type="submit"], input[type="submit"]) {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.75rem;
}

@media (max-width: 575.98px) {
  section.section-layout--contact-focused form[data-qa-contact-form] {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .container > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}
/* QA accessibility and interaction fixes. */
.editorial-hero { background: #15202b !important; color: #fff !important; }
.editorial-hero h1,
.editorial-hero p,
.editorial-hero .section-kicker { color: #fff !important; }
.section-layout--gallery-grid { background: #15202b !important; }
.section-layout--gallery-grid h2,
.section-layout--gallery-grid > .container > p { color: #fff !important; }
.story-art span { background: #15202b !important; color: #fff !important; }
[id="contact"] { background: #15202b !important; color: #fff !important; }
[id="contact"] h2,
[id="contact"] > .container > p { color: #fff !important; }
[id="contact"] form { background: #fff !important; color: #15202b !important; }
[id="contact"] form label { color: #15202b !important; }
[id="contact"] form a { color: #075985 !important; }
body.policy-page a,
.policy-document a,
.policy-page__main a { color: #075985 !important; }
.cookie-banner { color: #15202b !important; }
.cookie-banner h2,
.cookie-banner p { color: #15202b !important; }
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }
@media (min-width: 769px) {
  .site-header [data-nav-toggle] { display: none !important; }
  .site-nav { display: flex !important; visibility: visible !important; }
}
@media (max-width: 768px) {
  .site-header [data-nav-toggle] { display: inline-block !important; }
}
.editorial-related-reading {
  max-width: 72rem;
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--wash, #f7f7f7);
  border-top: .3rem solid var(--accent, #0d6efd);
  border-radius: 1rem;
}
.editorial-related-reading h2 { margin-top: 0; margin-bottom: .75rem; }
.editorial-related-reading > p { max-width: 42rem; margin-bottom: 1.5rem; }
.editorial-related-reading ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.editorial-related-reading li { min-width: 0; }
.editorial-related-reading li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 100%; padding: 1rem 1.25rem; border: 1px solid rgba(0, 0, 0, .14); border-radius: .75rem; background: var(--paper, #fff); color: inherit; font-weight: 700; line-height: 1.35; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.editorial-related-reading li a::after { content: '→'; flex: 0 0 auto; color: var(--accent, #0d6efd); font-size: 1.25rem; }
.editorial-related-reading li a:hover, .editorial-related-reading li a:focus-visible { border-color: var(--accent, #0d6efd); box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1); transform: translateY(-.15rem); }
@media (max-width: 640px) { .editorial-related-reading ul { grid-template-columns: 1fr; } }
.editorial-related-reading li a::after { content: '\2192'; }

/* The Inside Game: blue console lab */
:root { --ink: #d7f4ff; --paper: #0b2233; --wash: #103246; --accent: #35e0d0; --deep: #061723; }
body { background: #071825; color: var(--ink); font-family: "Courier New", Consolas, monospace; background-image: linear-gradient(rgba(53, 224, 208, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 224, 208, .05) 1px, transparent 1px); background-size: 2rem 2rem; }
.site-header { background: #061723; border-bottom: 1px solid var(--accent); box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .3); }
.site-header .container { max-width: 80rem; }
.site-brand { color: var(--accent); font-family: "Courier New", monospace; letter-spacing: .18em; text-transform: uppercase; }
.site-brand::before { content: "> "; color: #7cf7ff; }
.site-nav { gap: .5rem; }
.site-nav a { color: #d7f4ff; border: 1px solid rgba(53, 224, 208, .32); padding: .45rem .7rem; border-radius: .15rem; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--accent); color: #061723; }
.editorial-hero { min-height: 31rem; margin: 1rem; padding: 3rem; place-items: center start; text-align: left; background: linear-gradient(90deg, rgba(6, 23, 35, .96), rgba(6, 23, 35, .55)), repeating-linear-gradient(0deg, transparent 0 1.5rem, rgba(124, 247, 255, .08) 1.5rem 1.6rem), #0b2233; border: 1px solid var(--accent); border-left: .6rem solid var(--accent); border-radius: .2rem; }
.editorial-section { padding: 4rem 0; background: rgba(11, 34, 51, .94); color: #d7f4ff; border-bottom: 1px solid rgba(53, 224, 208, .24); }
.editorial-section:nth-child(even) { background: rgba(6, 23, 35, .96); }
.story-card { background: rgba(16, 50, 70, .9); border: 1px solid rgba(53, 224, 208, .45); border-radius: .2rem; box-shadow: .5rem .5rem 0 rgba(53, 224, 208, .08); }
.story-card h3 { color: #7cf7ff; font-family: "Courier New", monospace; }
.story-card a { color: var(--accent); }
.story-art, .portrait-art { border: 1px solid rgba(124, 247, 255, .5); background: linear-gradient(135deg, #0b5861, #102642); }
.article-page, .article-shell { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem; }
.article-body { max-width: 50rem; margin-inline: auto; font-family: system-ui, sans-serif; font-size: 1.05rem; line-height: 1.8; color: #d7f4ff; }
.article-body h2 { color: #7cf7ff; font-family: "Courier New", monospace; }
.editorial-related-reading { background: #0b2233; border: 1px solid var(--accent); border-top: .35rem solid var(--accent); border-radius: .2rem; box-shadow: .7rem .7rem 0 rgba(53, 224, 208, .1); }
.editorial-related-reading li a { background: #061723; border-color: rgba(53, 224, 208, .45); border-radius: .15rem; color: #d7f4ff; font-family: "Courier New", monospace; }
.site-footer { background: #061723; color: #d7f4ff; border-top: 1px solid var(--accent); }
@media (max-width: 640px) { .editorial-hero { margin: .5rem; padding: 2rem 1rem; } }
.editorial-publication-date { display: inline-flex; align-items: center; gap: .7rem; margin: 1rem 0 2rem; padding: .6rem .8rem; background: #061723; color: #d7f4ff; border: 1px solid var(--accent); border-radius: .15rem; font-family: "Courier New", monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.editorial-publication-date .publication-label { color: var(--accent); }
.editorial-publication-date .publication-label::before { content: "["; }
.editorial-publication-date .publication-label::after { content: "]"; }
/* Contrast and About page: terminal case file */
.editorial-section h1, .editorial-section h2, .editorial-section h3 { color: #7cf7ff; }
.editorial-section p, .editorial-section li { color: #d7f4ff; }
.editorial-section a { color: var(--accent); }
body:not(.about-page) .editorial-section h1, body:not(.about-page) .editorial-section h2, body:not(.about-page) .editorial-section h3, body:not(.about-page) .editorial-section .section-kicker { color: #7cf7ff !important; }
body:not(.about-page) .editorial-section p, body:not(.about-page) .editorial-section li { color: #d7f4ff !important; }
body.about-page { background: #071825; color: #d7f4ff; }
body.about-page #main { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem 6rem; font-family: "Courier New", monospace; }
body.about-page #main > h1 { margin: 0 0 1rem; color: #7cf7ff; font-family: "Courier New", monospace; font-size: clamp(2.5rem, 7vw, 5.5rem); text-transform: uppercase; }
body.about-page #main > h1::before { content: "ABOUT/"; display: block; margin-bottom: .7rem; color: var(--accent); font-size: .8rem; letter-spacing: .2em; }
body.about-page #main > h1 + p { max-width: 52rem; margin-bottom: 3rem; color: #d7f4ff; font-family: system-ui, sans-serif; font-size: 1.2rem; line-height: 1.8; }
body.about-page [data-editorial-transparency], body.about-page [data-editorial-about-links] { margin: 1.5rem 0; padding: 1.5rem; background: #0b2233; border: 1px solid rgba(53, 224, 208, .55); border-left: .35rem solid var(--accent); }
body.about-page h2 { color: #7cf7ff; font-family: "Courier New", monospace; }
body.about-page p, body.about-page li { color: #d7f4ff; line-height: 1.8; }
body.about-page [data-editorial-about-links] ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; }
body.about-page [data-editorial-about-links] li a { display: block; height: 100%; padding: 1rem; border: 1px solid rgba(53, 224, 208, .4); color: #d7f4ff; text-decoration: none; }
@media (max-width: 700px) { body.about-page [data-editorial-about-links] ul { grid-template-columns: 1fr; } }
/* Final contrast pass: console contact, consent and footer */
.cookie-banner { background: #0b2233 !important; color: #d7f4ff !important; border-color: #35e0d0 !important; }
.cookie-banner h2, .cookie-banner p { color: #d7f4ff !important; }
.cookie-banner [data-cookie-action] { display: inline-flex !important; background: #35e0d0 !important; color: #061723 !important; border-color: #35e0d0 !important; }
.site-footer, .site-footer address, .site-footer p, .site-footer a { color: #d7f4ff !important; }
body:not(.about-page) [id="contact"] { background: #0b2233 !important; color: #d7f4ff !important; }
body:not(.about-page) [id="contact"] h2, body:not(.about-page) [id="contact"] > .container > p { color: #d7f4ff !important; }
body:not(.about-page) [id="contact"] form { background: #f4fbfc !important; color: #061723 !important; }
body:not(.about-page) [id="contact"] form label { color: #061723 !important; }
form[data-qa-contact-form] .form-check { display: flex !important; align-items: flex-start; gap: .6rem; }
form[data-qa-contact-form] .form-check-input[type="checkbox"] { width: 1rem !important; min-width: 1rem; height: 1rem; margin: .25rem 0 0; flex: 0 0 1rem; }

/* Keep the console palette readable on articles and policy pages. */
body:not(.about-page) article h1,
body:not(.about-page) article h2,
body:not(.about-page) article h3,
body:not(.about-page) article .breadcrumb,
body:not(.about-page) article .breadcrumb-item,
body:not(.about-page) article .breadcrumb-item.active,
body:not(.about-page) article .article-header p { color: #d7f4ff !important; }
body:not(.about-page) article a { color: #7cf7ff !important; }
body:not(.about-page) .editorial-related-reading h2 { color: #7cf7ff !important; }

body.policy-page { background: #071825 !important; color: #d7f4ff !important; }
body.policy-page .site-nav a { color: #7cf7ff !important; }
body.policy-page .policy-document__header h1,
body.policy-page .policy-document__header p,
body.policy-page .policy-document__effective-date,
body.policy-page .policy-document__content h2,
body.policy-page .policy-document__content h3,
body.policy-page .policy-document__content p,
body.policy-page .policy-document__content li { color: #d7f4ff !important; }
body.policy-page .policy-document__content a { color: #7cf7ff !important; }
body.policy-page .policy-document__header { border-color: #35e0d0 !important; }
form[data-qa-contact-form] .form-check-label { display: block !important; flex: 1 1 auto; min-width: 0; }
body.policy-page section#contact { padding: 1.5rem; background: #0b2233; color: #d7f4ff; }
body.policy-page section#contact h2, body.policy-page section#contact p { color: #d7f4ff !important; }
body.policy-page section#contact a { color: #7cf7ff !important; }

/* Keep the archive masthead readable over the dark console grid. */
body:not(.about-page):not(.policy-page) .archive-intro {
  background: #071825 !important;
  color: #d7f4ff !important;
}
body:not(.about-page):not(.policy-page) .archive-intro h1,
body:not(.about-page):not(.policy-page) .archive-intro p,
body:not(.about-page):not(.policy-page) .archive-intro .eyebrow { color: #d7f4ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro h1 { color: #7cf7ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb,
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item,
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item.active { color: #d7f4ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item a { color: #7cf7ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item + .breadcrumb-item::before { color: #6d9eaf !important; }
body:not(.about-page):not(.policy-page) .archive-intro .btn-outline-dark { color: #061723 !important; background: #35e0d0 !important; border-color: #35e0d0 !important; }

/* Archive intro sits on the console grid, so its hierarchy stays light and legible. */
body:not(.about-page):not(.policy-page) .archive-intro {
  background: #071825 !important;
  color: #d7f4ff !important;
}
body:not(.about-page):not(.policy-page) .archive-intro h1,
body:not(.about-page):not(.policy-page) .archive-intro p,
body:not(.about-page):not(.policy-page) .archive-intro .eyebrow { color: #d7f4ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro h1 { color: #7cf7ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb,
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item,
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item.active { color: #d7f4ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item a { color: #7cf7ff !important; }
body:not(.about-page):not(.policy-page) .archive-intro .breadcrumb-item + .breadcrumb-item::before { color: #6d9eaf !important; }
body:not(.about-page):not(.policy-page) .archive-intro .btn-outline-dark { color: #061723 !important; background: #35e0d0 !important; border-color: #35e0d0 !important; }
