/* =========================================================
   The Bench — page-scoped styles (/bench/ only).
   Light "judicial" theme lifted from the app's own design
   system (cream surface, navy headers, gold accent), framed
   by the site's shared dark nav/footer from styles.css.
   ========================================================= */

:root {
  --bench-cream: #f7f5f0;
  --bench-surface: #ffffff;
  --bench-navy: #14213d;
  --bench-gold: #c9a24b;
  --bench-gold-dark: #8a6a20;  /* AA: >=4.5:1 on cream/callout */
  --bench-callout: #f5f2e8;
  --bench-track: #e5e3db;
  --bench-text: #1b232d;
  --bench-text-mute: #5d656f;  /* AA: >=5:1 on cream/callout */
  --bench-hairline: #e5e3db;
  --bench-on-navy: #aeb6c2;
  --bench-card-text: #e9e3d4;
}

/* The light body sits between the dark nav and footer. */
.bench-body {
  background: var(--bench-cream);
  color: var(--bench-text);
}
.bench-body ::selection { background: var(--bench-gold); color: var(--bench-navy); }

.bench-section { padding: clamp(64px, 10vh, 110px) 0; }
.bench-section--callout { background: var(--bench-callout); }
.bench-section--navy {
  background: var(--bench-navy);
  color: var(--bench-card-text);
}

.bench-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bench-gold-dark);
  margin: 0 0 14px;
}
.bench-section--navy .bench-eyebrow { color: var(--bench-gold); }
.bench-eyebrow--tight { margin: 0; }
.bench-center { text-align: center; }

.bench-h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--bench-navy);
  margin: 0 0 20px;
}
.bench-h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--bench-navy);
  margin: 0 0 14px;
}
.bench-section--navy .bench-h2 { color: var(--bench-card-text); }
.bench-lede {
  color: var(--bench-text-mute);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}
.bench-section--navy .bench-lede { color: var(--bench-on-navy); }

.bench-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

/* ---------- Hero ---------- */
.bench-hero { padding: clamp(64px, 9vh, 100px) 0 clamp(56px, 8vh, 88px); }
.bench-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.bench-hero__identity {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 24px;
}
.bench-hero__icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  box-shadow: 0 14px 34px -12px rgba(20, 33, 61, 0.45);
}
.bench-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--bench-text-mute);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 560px;
}
.bench-pill {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--bench-navy);
  color: var(--bench-card-text);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.bench-hero__legal {
  font-size: 0.85rem;
  color: var(--bench-text-mute);
  margin: 0;
}

.bench-phones {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
}
.bench-phone {
  border-radius: 26px;
  border: 5px solid var(--bench-navy);
  box-shadow: 0 24px 60px -18px rgba(20, 33, 61, 0.4);
  background: var(--bench-navy);
  max-width: 100%;
  height: auto;
}
/* Widths are flex bases, not floors: min-width 0 lets the pair shrink inside
   narrow grid columns (e.g. 1024px tablet) instead of clipping under the
   global overflow-x: hidden. */
.bench-phone--front { flex: 0 1 270px; width: 270px; min-width: 0; }
.bench-phone--back { flex: 0 1 235px; width: 235px; min-width: 0; }

/* ---------- Step + differentiator cards ---------- */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bench-card {
  background: var(--bench-surface);
  border: 1px solid var(--bench-hairline);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 14px 40px -24px rgba(20, 33, 61, 0.18);
}
.bench-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bench-text);
}
.bench-card p { margin: 0; color: var(--bench-text-mute); font-size: 0.98rem; line-height: 1.6; }
.bench-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bench-navy);
  color: var(--bench-gold);
  font-weight: 700;
  margin-bottom: 16px;
}
.bench-card__bar {
  display: block;
  width: 44px; height: 4px;
  border-radius: 2px;
  background: var(--bench-gold);
  margin-bottom: 16px;
}

/* ---------- Illustration grid ---------- */
.bench-areas {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bench-area {
  background: var(--bench-surface);
  border: 1px solid var(--bench-hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px -24px rgba(20, 33, 61, 0.18);
}
.bench-area img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.bench-area span {
  display: block;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--bench-text);
}

/* ---------- Rank ladder ---------- */
.bench-crests {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 40px;
}
.bench-crest {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bench-gold);
}
.bench-crest img {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(233, 227, 212, 0.08);
}

/* ---------- Daily section ---------- */
.bench-daily {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
}
.bench-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bench-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bench-callout);
  border: 1px solid var(--bench-hairline);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bench-text);
}
.bench-section--callout .bench-chip { background: var(--bench-surface); }

/* ---------- Disclaimer band ---------- */
.bench-disclaimer {
  background: var(--bench-callout);
  border-top: 1px solid var(--bench-hairline);
  padding: 40px 0;
  text-align: center;
}
.bench-disclaimer strong {
  display: block;
  font-size: 0.98rem;
  color: var(--bench-text);
  margin-bottom: 6px;
}
.bench-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--bench-text-mute);
}

/* ---------- Focus visibility on the light theme ---------- */
.bench-body a:focus-visible,
.bench-body button:focus-visible {
  outline-color: var(--bench-navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bench-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .bench-daily { grid-template-columns: 1fr; gap: 36px; }
  .bench-grid { grid-template-columns: 1fr; }
  .bench-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bench-phone--front { width: 240px; }
  .bench-phone--back { display: none; }
}
@media (max-width: 520px) {
  .bench-areas { grid-template-columns: 1fr; }
}
