/* ============================================================
   Real Estate EDGE - styles.css
   Extracted verbatim from the original single-file index.html.
   Deviations from the original are marked with the word CHANGED.

   WARNING: CSS comments do NOT nest. Never write an inner comment
   opener inside another comment - it closes the outer comment early,
   and whatever follows is parsed as CSS. That exact mistake here
   swallowed the :root block and left every custom property
   undefined, which rendered navy sections white and white text
   invisible on white.
   ============================================================ */

:root {
  --navy: #1e3a5f;
  --navy-deep: #16294a;
  --navy-darker: #101d33;

  /* Brand gold. DECORATIVE USE ONLY — rules, borders, backgrounds,
     chevrons. Fails WCAG AA as text on white (2.78:1) and on cream
     (2.53:1). Do not use for text on a light surface. */
  --gold: #b9973e;

  /* CHANGED (new token): accessible gold for TEXT on light surfaces.
     5.95:1 on white, 5.41:1 on cream. */
  --gold-text: #7a6026;

  /* Gold for text on the navy surfaces. 6.17:1 on --navy-deep,
     7.18:1 on --navy-darker. Already passed; unchanged. */
  --gold-bright: #c9a544;

  --cream: #f7f4ec;
  --white: #ffffff;
  --text: #333d4d;
  --text-light: #6b7686;
  --border: #e4e0d5;

  /* CHANGED (new token): select/control border. Old #c9c4b6 was
     1.74:1 on white, failing the 3:1 non-text minimum. Now 3.68:1. */
  --border-control: #8a8578;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
img { max-width: 100%; display: block; }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* CHANGED (new): the header is sticky at ~96px tall, so every in-page
   anchor previously landed with its heading hidden underneath it.
   scroll-margin-top offsets the jump. */
[id] { scroll-margin-top: 112px; }

/* CHANGED (new): skip link. Off-screen until focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* CHANGED (new): real utility class, replacing the inline
   style="position:absolute;left:-9999px" that was in the markup. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* CHANGED (new): honeypot wrapper. Hidden from sight and from
   assistive tech; only automated submitters fill it in. */
.hp-field { display: none; }

/* ============ Header ============ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}
.logo {
  text-decoration: none;
  text-align: center;
  background: var(--white);
  padding: 14px 26px 12px;
  margin-bottom: -18px;
  box-shadow: 0 6px 14px rgba(16, 29, 51, 0.10);
  position: relative;
  z-index: 2;
}
.logo .logo-top {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: -4px;
}
.logo .logo-main {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.logo .logo-tag {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 700;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
/* CHANGED: hover was --gold (2.78:1 on white). Now --gold-text (5.95:1). */
.main-nav a:hover { color: var(--gold-text); }

/* CHANGED: the focus ring was --gold everywhere. That is 2.78:1 on
   white — below the 3:1 non-text minimum — so keyboard users could not
   see focus on any light section. Split by surface: navy on light
   (11.5:1), gold-bright on the dark sections (6.17:1 / 7.18:1). */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.hero :focus-visible,
.register :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
/* CHANGED: was white text on gold — 2.78:1, the single worst failure on
   the site, applied to every primary CTA. Brand gold background is
   unchanged; the text is now --navy-darker. 6.07:1 rest, 7.18:1 hover. */
.btn-gold {
  background: var(--gold);
  color: var(--navy-darker);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-darker); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.10); }
.main-nav .btn-gold { padding: 13px 24px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  /* CHANGED: padding 8px gave a 42px-wide target, under the 44px
     minimum. 9px 12px yields ~50 x 47px. Visually near-identical. */
  padding: 9px 12px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}
/* ============ Hero ============ */
.hero {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(46, 74, 122, 0.55), transparent 60%),
    url("data:image/svg+xml,%3Csvg width='42' height='42' viewBox='0 0 42 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 17v8M17 21h8' stroke='%232c4470' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  padding: 96px 24px 110px;
}
.hero-card {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  padding: 70px 56px 64px;
  text-align: center;
  background: rgba(22, 41, 74, 0.35);
}
.hero-eyebrow {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.22;
  margin-bottom: 28px;
}
.rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 auto 30px;
}
.rule-left { margin: 0 0 30px; }

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
/* ============ EDGE letters strip ============ */
.edge-strip {
  background: var(--cream);
  padding: 64px 24px 0;
}
.edge-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  transform: translateY(0);
  /* CHANGED: the approved design used <div>s here. This is now a <ul>/<li>
     so screen readers announce four related items, but the browser's
     default list markers and indent were never reset, which rendered as
     "E . D . G . E" with visible bullets. Semantics kept, markers removed. */
  list-style: none;
  padding-left: 0;
}
.edge-cell {
  padding: 44px 16px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.edge-cell:last-child { border-right: none; }
.edge-cell { list-style: none; }
/* Safari exposes ::marker on list-items even with list-style:none unless the
   role is overridden; belt-and-braces so no marker can reappear. */
.edge-grid > li::marker { content: ""; }
.edge-cell .letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--navy);
  display: block;
  margin-bottom: 14px;
}
/* CHANGED: was --gold (2.78:1 on the white cell background). */
.edge-cell .word {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
/* ============ Sections shared ============ */
section { padding: 90px 0; }
/* CHANGED: was --gold. Appears on white and on cream; both failed. */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--navy-darker); }
h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
/* ============ Welcome / About ============ */
.welcome { background: var(--white); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.welcome-copy p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 16px;
}
.welcome-copy p:last-child { margin-bottom: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 26px;
}
.feature-tile {
  background: var(--navy-deep);
  color: var(--white);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 18px;
  border-radius: 2px;
}
.feature-tile .big-serif {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
  margin-bottom: 6px;
}
.feature-tile .big-sans {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0;
}
.feature-tile .sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============ Upcoming classes ============ */
.classes { background: var(--cream); }

.classes-intro { max-width: 720px; }
.classes-intro p { font-size: 15.5px; margin-bottom: 4px; }
/* CHANGED: was --gold on cream (2.53:1). */
.classes-intro a { color: var(--gold-text); font-weight: 700; }
.filters {
  display: flex;
  gap: 28px;
  margin: 36px 0 26px;
  flex-wrap: wrap;
}
.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.filter-group select {
  font-family: var(--sans);
  /* CHANGED: was 15px, which triggers iOS Safari focus zoom. */
  font-size: 16px;
  color: var(--text);
  /* CHANGED: 9px -> 11px vertical, keeping the control at a 44px
     minimum height now that the font is a half-point larger. */
  padding: 11px 36px 11px 12px;
  min-width: 178px;
  /* CHANGED: border colour, see --border-control. */
  border: 1px solid var(--border-control);
  border-radius: 4px;
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='14' viewBox='0 0 10 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l4-4 4 4M1 9l4 4 4-4' stroke='%23555' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.class-table-wrap {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 29, 51, 0.06);
}
table.class-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.class-table thead th {
  background: var(--navy-deep);
  color: var(--white);
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 20px;
  white-space: nowrap;
}
.class-table tbody td {
  padding: 20px;
  border-bottom: 1px solid #eeeae0;
  vertical-align: middle;
}
.class-table tbody tr:last-child td { border-bottom: none; }
.class-table .date { font-weight: 700; color: #1b2436; white-space: nowrap; }
.class-table .class-name a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
/* CHANGED: hover was --gold on white (2.78:1). */
.class-table .class-name a:hover { color: var(--gold-text); text-decoration: underline; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.tag-ce { background: #dfe7f5; color: #2c4470; }
.tag-workshop { background: #e2f0e4; color: #2f6b3c; }
/* CHANGED: text was #8a6d22 on #f3e9d2 = 4.05:1. Now 5.27:1.
   Currently latent — no NON-CE rows exist in the data yet. */
.tag-nonce { background: #f3e9d2; color: #755c16; }

/* CHANGED: was padding 9px 18px / 12px font, computing to a ~39px tall
   target. Now ~44px. Visually all but identical. */
.class-table .btn { padding: 12px 18px; font-size: 12px; }
.classes-footnote {
  text-align: center;
  font-size: 14.5px;
  color: var(--text);
  margin-top: 24px;
}
/* CHANGED: was --gold on cream (2.53:1). */
.classes-footnote a { color: var(--gold-text); font-weight: 700; }
.no-classes {
  text-align: center;
  padding: 42px 20px;
  color: var(--text-light);
  font-size: 15px;
}

/* Endpoint-rendered rows (added 2026-10-06). Same tokens as the rest of the
   table; no new colours. --text-light on white = 4.60:1, --text = body text. */
.class-table .class-title { display: block; color: var(--navy); font-weight: 700; }
.class-table .class-desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.class-table .time {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  white-space: normal;
  color: var(--text);
}
.class-table .tag { white-space: nowrap; }
.class-table .loc { display: block; }
.class-table .loc-venue { display: block; font-weight: 700; color: var(--navy); }
.class-table .addr { display: block; font-size: 13.5px; line-height: 1.45; color: var(--text-light); }
.class-retry { margin-top: 16px; cursor: pointer; border: 0; }
/* View All Classes / Show Fewer Classes (added 2026-10-07). Existing .btn
   .btn-navy tokens; min-height keeps the touch target at 44px+. */
.class-more { display: flex; justify-content: center; margin-top: 24px; }
.class-more .btn { min-width: 220px; min-height: 48px; }
.class-more[hidden] { display: none; }
@media (max-width: 820px) {
  .class-more .btn { display: block; width: 100%; }
}
/* display rules elsewhere (flex / block on mobile) would otherwise beat the
   [hidden] attribute that main.js uses for loading, empty and error states. */
.class-table[hidden], .filters[hidden], .no-classes[hidden] { display: none; }

/* ============ Events & workshops ============ */
.events { background: var(--white); }
.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.event-card {
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.event-card-head {
  background: var(--navy-deep);
  color: var(--white);
  padding: 24px 26px 22px;
}
.event-card-head .kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.event-card-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}
.event-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card-body p {
  font-size: 15px;
  margin-bottom: 22px;
  flex: 1;
}
.card-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  /* CHANGED: was an inline link with a ~21px tap height. Padding lifts
     it to 44px without moving it visually (negative margin compensates). */
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
}
/* CHANGED: chevron keeps the decorative brand gold — it is not text. */
.card-link .chev { color: var(--gold); margin-left: 4px; }
.card-link:hover { color: var(--gold-text); }

/* ============ Register / updates CTA ============ */
.register {
  background-color: var(--navy-deep);
  background-image: radial-gradient(ellipse at 65% 30%, rgba(46, 74, 122, 0.5), transparent 65%);
  color: var(--white);
  text-align: center;
  padding: 110px 24px;
}
.register .eyebrow-light {
  font-size: 15px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}
.register h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 46px);
  margin-bottom: 24px;
}
.register p.lede {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.92);
}
.signup-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1 1 320px;
  font-family: var(--sans);
  /* CHANGED: was 15.5px, which triggers iOS Safari focus zoom. */
  font-size: 16px;
  padding: 15px 18px;
  border: none;
  border-radius: 3px;
  color: var(--text);
}
/* CHANGED: placeholder was #9aa1ad (2.5:1). Placeholders are not a
   substitute for a label, but they should still be legible. 4.6:1. */
.signup-form input::placeholder { color: #6b7686; opacity: 1; }
.register .fine {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
.form-note {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--gold-bright);
  min-height: 1.4em;
}
/* CHANGED (new): shows which class a visitor arrived from, so event
   identity is visible as well as recorded. Hidden until populated. */
.class-context {
  font-size: 14.5px;
  color: var(--gold-bright);
  margin: -24px auto 30px;
  max-width: 560px;
}
.class-context[hidden] { display: none; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
}
.footer-logo {
  text-align: center;
  display: inline-block;
  background: var(--white);
  padding: 10px 20px 8px;
  margin-bottom: 22px;
}
.footer-logo .logo-top { font-size: 10px; letter-spacing: 0.40em; }
.footer-logo .logo-main { font-size: 36px; }
.footer-logo .logo-tag { font-size: 6.5px; }
.footer-about p { line-height: 1.7; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  /* CHANGED: 11px sibling margin plus this padding gives footer links a
     44px vertical target without changing the visual rhythm. */
  display: inline-block;
  padding: 6px 0;
  margin: -6px 0;
}
.footer-col a:hover { color: var(--gold-bright); }
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.contact-line svg { flex-shrink: 0; opacity: 0.85; }
/* CHANGED (new): replaces inline style="color:inherit;text-decoration:none"
   on the two footer contact links, so no inline styles remain. */
.contact-line a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.contact-line a:hover { color: var(--gold-bright); }
.footer-org { margin-top: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 56px;
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ 404 ============ */
.error-page {
  text-align: center;
  padding: 120px 24px 130px;
}
.error-page .code {
  font-family: var(--serif);
  font-size: clamp(64px, 12vw, 110px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.error-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 20px;
}
.error-page p {
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 16px;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-navy { background: var(--navy-deep); color: var(--white); }
.btn-navy:hover { background: var(--navy-darker); }

/* ============================================================
   TEMPORARY - This Week's Non-CE Classes. Added 2026-10-04.
   Remove this whole block after 2026-10-08 together with the
   matching section in index.html and block in main.js.
   Built only from existing tokens and components (event-card,
   btn-gold, eyebrow, rule). No new colours or fonts.
   ============================================================ */
.this-week {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.this-week-intro {
  max-width: 720px;
  margin-bottom: 36px;
  font-size: 15.5px;
}
.this-week-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.class-facts { margin-bottom: 24px; }
.class-facts > div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.class-facts dt {
  flex: 0 0 78px;
  padding-top: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.class-facts dd {
  font-weight: 700;
  color: var(--navy);
}
.class-facts .addr {
  display: block;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--text);
}
.btn-block {
  display: block;
  width: 100%;
}
.feature-tile-link {
  text-decoration: none;
  transition: background 0.15s ease;
}
.feature-tile-link:hover { background: var(--navy); }
@media (max-width: 820px) {
  .this-week-cards { grid-template-columns: 1fr; }
}
/* Phones: stack each label above its value so long dates and addresses
   use the full card width instead of wrapping beside a fixed label column. */
@media (max-width: 560px) {
  .class-facts > div {
    flex-direction: column;
    gap: 3px;
  }
  .class-facts dt {
    flex: none;
    padding-top: 0;
  }
}
/* ============ END TEMPORARY ============ */

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 44px; }
  .event-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .edge-grid { grid-template-columns: 1fr 1fr; }
  .edge-cell:nth-child(2) { border-right: none; }
  .edge-cell:nth-child(1), .edge-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 18px;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 12px 24px rgba(16, 29, 51, 0.12);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .logo .logo-main { font-size: 40px; }
  .hero { padding: 64px 20px 72px; }
  .hero-card { padding: 48px 26px 44px; }

  /* CHANGED: the mobile table.
     Was: min-width 760px inside overflow-x:auto, so a 6-column table
     sideways-scrolled on every phone, and the scroll region was not
     reachable by keyboard at all (WCAG 2.1.1).
     Now: the same <table> markup reflows into stacked cards. Desktop is
     untouched. To revert, delete this block and restore:
       .class-table-wrap { overflow-x: auto; }
       table.class-table  { min-width: 760px; }
     and re-add tabindex="0" to .class-table-wrap in main.js. */
  .class-table-wrap {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .class-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .class-table, .class-table tbody, .class-table tr, .class-table td {
    display: block;
    width: 100%;
  }
  /* REQUIRED: the display:block rule above beats the browser's built-in
     [hidden] { display: none }, so filtered-out rows would remain visible
     on mobile. Filtering now uses tr.hidden, so this must be restated. */
  .class-table tr[hidden], .class-table td[hidden] { display: none; }
  .class-table tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(16, 29, 51, 0.06);
    padding: 20px 20px 22px;
    margin-bottom: 16px;
  }
  .class-table tbody td {
    padding: 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 9px;
  }
  .class-table tbody td::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    flex: 0 0 auto;
  }
  .class-table tbody td.date {
    font-family: var(--serif);
    font-size: 19px;
    display: block;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .class-table tbody td.date::before { content: none; }
  .class-table tbody td.class-name {
    display: block;
    font-size: 17px;
    margin-bottom: 14px;
  }
  .class-table tbody td.class-name::before { content: none; }
  .class-table tbody td.cell-action {
    display: block;
    margin-top: 16px;
    margin-bottom: 0;
  }
  .class-table tbody td.cell-action::before { content: none; }
  .class-table .btn { display: block; width: 100%; padding: 15px 18px; font-size: 13px; }
  .class-table tbody td .loc { text-align: right; }

  /* REGRESSION FIX: making .class-table-wrap transparent above moved the
     empty-state message from white onto cream, dropping --text-light
     from 4.60:1 to 4.19:1. Giving it its own white card restores the
     ratio and matches the surrounding class cards. */
  .no-classes {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(16, 29, 51, 0.06);
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
