/* Crestwood Anchor Lodge No. 443 — site styles
   Colors: ivory/white grounds, deep Masonic blue, antique gold. */

:root {
  --navy: #0b2340;
  --navy-deep: #07182c;
  --navy-mid: #163a66;
  --navy-soft: #1e4a7a;
  --gold: #c5a059;
  --gold-bright: #e0c06a;
  --gold-deep: #8a6416;
  --ivory: #f7f4ec;
  --ivory-dark: #ece6d6;
  --white: #ffffff;
  --ink: #1c232c;
  --muted: #5c6770;
  --line: rgba(197, 160, 89, 0.4);
  --shadow: 0 12px 36px rgba(7, 24, 44, 0.12);
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header-pad: 1.1rem;
  --radius: 10px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--gold);
  --header-offset: 5.4rem;
  --tb-nav-offset: 0rem;
}

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

html {
  scroll-behavior: smooth;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--gold);
}

a:hover { color: var(--navy); text-decoration-color: var(--gold-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: inherit; text-decoration: none; }

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 0.15rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-bright);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.62rem;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy-deep);
  background: var(--gold-bright);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-nav a[aria-current="page"]:hover {
  color: var(--navy-deep);
  box-shadow: none;
}

/* Second nav row (desktop / iPad). On phones it is inlined in the hamburger. */
.nav-secondary a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ddd6c8;
  padding: 0.35rem 0.55rem;
}

.nav-secondary a[aria-current="page"] {
  font-weight: 500;
  color: var(--gold-bright);
}

.coming-soon-panel,
.merch-panel {
  max-width: 40rem;
  padding: 1.5rem 0 2.5rem;
}

.merch-page {
  padding-bottom: 0.5rem;
}

.merch-sign-card {
  display: block;
  max-width: 52rem;
  margin: 0 auto 0.5rem;
  padding: 0.5rem;
  background: var(--ivory);
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.merch-sign-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.merch-sign-card:hover,
.merch-sign-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(7, 24, 44, 0.16);
}

.merch-sign-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.merch-panel {
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.75rem;
}

.merch-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
}

.merch-cta .btn {
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.merch-operator {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Layout ---------- */
main { flex: 1 0 auto; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.25rem 0;
}

.section-tight { padding: 2.25rem 0; }

.section-ivory { background: var(--ivory); }

.section-navy {
  background: var(--navy);
  color: var(--ivory);
}

.section-navy a { color: var(--gold-bright); }
.section-navy a:hover { color: var(--white); }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section-navy .kicker { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

.section-navy h1,
.section-navy h2,
.section-navy h3 { color: var(--white); }

.stat-value,
.footer-brand strong,
.site-footer,
.tb-featured-date,
.tb-row-meta,
.tb-year-label,
.tb-year-count,
.tb-year-nav {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 42rem;
}

.gold-rule {
  width: 4.5rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

.center { text-align: center; }
.center .gold-rule,
.center .kicker,
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 40rem);
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep) center / cover no-repeat;
  color: var(--ivory);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 24, 44, 0.92) 0%,
    rgba(7, 24, 44, 0.55) 45%,
    rgba(7, 24, 44, 0.15) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.hero .subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--gold-bright);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero p {
  max-width: 36rem;
  margin: 0 0 1.4rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
}

.btn:hover { text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-deep); }

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: var(--navy-deep); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--ivory); }

/* ---------- Cards / grids ---------- */
.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.stat-card .stat-value {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0.35rem 0 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Officers */
.officer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.officer {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: 0 4px 16px rgba(7, 24, 44, 0.06);
}

.officer-jewel {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  background: var(--ivory);
  border-radius: 50%;
  padding: 8px;
  border: 1px solid var(--line);
}

.officer-office {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.officer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

/* Calendar */
.calendar-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  width: 100%;
  height: 42rem;
  border: 0;
  display: block;
  background: #fff;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0 0.4rem;
}

.calendar-actions .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-actions .is-copied {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.calendar-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

@media (max-width: 1023.98px) {
  .calendar-frame iframe { height: 40rem; }
}

@media (max-width: 767.98px) {
  .calendar-frame iframe { height: 34rem; }
}

.meeting-fallback {
  background: var(--navy);
  color: var(--ivory);
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
}

.meeting-fallback h2,
.meeting-fallback h3 { color: var(--white); }

.meeting-fallback p { margin: 0.4rem 0 0; }
.meeting-fallback .kicker { margin-bottom: 0.4rem; }

/* Map */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--ivory-dark);
  min-height: 18rem;
}
.map-frame iframe {
  width: 100%;
  height: 22rem;
  border: 0;
  display: block;
}

/* Address block */
.address-block {
  font-style: normal;
  line-height: 1.7;
}

/* Reserved editor callout style (not used on public pages). */
.todo {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  color: var(--ink);
  border-radius: 0 6px 6px 0;
}

.todo strong { color: var(--navy); }

/* Trestleboard archive */
#trestleboard-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tb-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
}

.tb-item a { font-weight: 600; }

.tb-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
}

.tb-featured {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.tb-featured-cover {
  display: block;
  width: min(100%, 240px);
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 24, 44, 0.18);
  border: 1px solid var(--ivory-dark);
  background: var(--ivory);
  text-decoration: none;
}

.tb-featured-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
  object-position: top center;
}

.tb-featured-body h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0.15rem 0 0.35rem;
}

.tb-featured-date {
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.tb-year-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.75rem 0 1.35rem;
}

.tb-year-nav-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.tb-year-nav-scroller {
  width: 100%;
}

.tb-year-nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.tb-year-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 1;
}

.tb-year-nav-links a:hover,
.tb-year-nav-links a:focus-visible {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--ivory);
  text-decoration: none;
}

.tb-year-nav-links a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-bright);
  text-decoration: none;
}

.tb-years { margin-top: 0.25rem; }

.tb-year,
#trestleboard-archive,
#current-trestleboard {
  scroll-margin-top: calc(var(--header-offset) + var(--tb-nav-offset) + 0.65rem);
}

.tb-year {
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 0.7rem;
}

.tb-year summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.1rem;
  color: var(--navy);
}

.tb-year summary::-webkit-details-marker,
.tb-year summary::marker { display: none; content: ""; }

.tb-year-label {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.02em;
}

.tb-year-count {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.tb-year summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}

.tb-year[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.tb-year-body { border-top: 1px solid var(--ivory-dark); }

.tb-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem 0.95rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ivory-dark);
}

.tb-row:last-child { border-bottom: 0; }

.tb-row-cover {
  display: block;
  width: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  box-shadow: 0 2px 8px rgba(7, 24, 44, 0.08);
  background: var(--ivory);
  text-decoration: none;
}

.tb-row-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
  object-position: top center;
}

.tb-row-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.tb-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tb-row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tb-row-actions .btn {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.tb-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 3px;
  vertical-align: middle;
}

.tb-badge-special {
  background: var(--navy);
  color: var(--gold-bright);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

.logo-row img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d7d2c6;
  border-top: 3px solid var(--gold);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 64px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.site-footer a { color: var(--gold-bright); }
.site-footer a:hover { color: var(--white); }

.footer-meta {
  font-size: 0.9rem;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Page intro (non-home) */
.page-hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 2.6rem 0 2.3rem;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-hero p { margin: 0; max-width: 40rem; color: #e4e0d6; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .officer-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 720px) {
  /* iPad portrait and up: brand on its own row, two nav rows underneath */
  .header-inner {
    flex-wrap: wrap;
    padding: 0.85rem 1.4rem 0;
  }
  .brand { flex: 1 1 auto; }
  .site-nav {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(197, 160, 89, 0.28);
    margin-top: 0.55rem;
    min-width: 0;
  }
  .site-nav ul {
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
  }
  .nav-primary a {
    padding: 0.65rem 0.35rem 0.6rem;
    font-size: 0.86rem;
  }
  .site-nav .nav-secondary {
    border-top: 1px solid rgba(197, 160, 89, 0.22);
    justify-content: center;
    gap: 0.35rem 2rem;
  }
  .nav-secondary a {
    padding: 0.4rem 0.35rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 400;
  }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .officer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1180px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 0.5rem 1.25rem 0.2rem;
    gap: 1.5rem;
    align-items: center;
  }
  .brand-name { font-size: 1.22rem; }
  .brand-mark { width: 60px; height: 60px; flex-basis: 60px; }
  .site-nav {
    flex: 1 1 auto;
    border-top: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }
  .nav-primary {
    justify-content: flex-end;
    gap: 0.1rem;
  }
  .nav-primary a {
    padding: 0.45rem 0.55rem 0.35rem;
    font-size: 0.9rem;
  }
  .site-nav .nav-secondary {
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid rgba(197, 160, 89, 0.22);
    margin-top: 0.05rem;
  }
  .nav-secondary a {
    padding: 0.3rem 0.55rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 400;
  }
}

/* Phone and compact tablet: hamburger */
@media (max-width: 719.98px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    background: var(--navy-deep);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav.is-open {
    display: block;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
    background: var(--navy-deep);
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.35rem 1.25rem 0.9rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.4rem;
    border-radius: 0;
    font-size: 1.05rem;
  }

  .nav-secondary {
    border-top: 1px solid rgba(197, 160, 89, 0.28);
    margin-top: 0.2rem;
    padding-top: 0.2rem;
  }

  .nav-secondary a {
    color: var(--ivory);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.85rem 0.4rem;
  }

  .hero { min-height: 28rem; }

  .brand-name { font-size: 1.02rem; }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
}

@media (max-width: 399px) {
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.64rem; letter-spacing: 0.05em; }
}

@media (min-width: 640px) {
  .tb-row {
    grid-template-columns: 88px 1fr auto;
  }
  .tb-row-cover { width: 88px; }
  .tb-row-actions { grid-column: auto; }
}

@media (min-width: 720px) {
  .tb-featured {
    grid-template-columns: 220px 1fr;
    padding: 1.5rem 1.75rem;
    gap: 2rem;
  }
  .tb-featured-cover {
    width: 100%;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .tb-featured { grid-template-columns: 260px 1fr; }
}

@media (max-width: 719.98px) {
  :root {
    --header-offset: 4.59rem;
    --tb-nav-offset: 5.9rem;
  }

  .tb-year-nav {
    position: sticky;
    top: var(--header-offset);
    z-index: 90;
    background: var(--white);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: 1rem;
    padding: 0.55rem 1.25rem 0.7rem;
    border-bottom: 1px solid var(--ivory-dark);
    box-shadow: 0 8px 18px rgba(7, 24, 44, 0.08);
  }

  .tb-year-nav-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .tb-year-nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
    width: max-content;
    padding: 0.1rem 0.1rem 0.2rem;
  }

  .tb-year-nav-links a {
    flex: 0 0 auto;
    min-width: 3.85rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.95rem;
    font-size: 1.05rem;
  }

  .tb-featured {
    grid-template-columns: 118px 1fr;
    gap: 0.7rem 0.95rem;
    padding: 1rem;
    align-items: start;
  }
  .tb-featured-cover {
    width: 100%;
    margin: 0;
    grid-row: 1 / 4;
  }
  .tb-featured-body { display: contents; }
  .tb-featured-body h3 { font-size: 1.35rem; margin: 0.1rem 0 0.25rem; }
  .tb-featured-body .btn-row,
  .tb-featured-body > p:not(.kicker):not(.tb-featured-date) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 600px) and (max-width: 719.98px) {
  .tb-featured { grid-template-columns: 160px 1fr; }
}

@media (min-width: 720px) and (max-width: 1179.98px) {
  :root { --header-offset: 11.25rem; }
}

@media (min-width: 1180px) {
  :root { --header-offset: 5.4rem; }
}

@media (min-width: 720px) {
  .tb-year-nav-links {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.45rem;
    width: 100%;
  }
  .tb-year-nav-links a {
    min-width: 0;
    width: 100%;
    padding: 0.45rem 0.25rem;
  }
}

@media (min-width: 720px) and (max-width: 899.98px) {
  .tb-year-nav-links {
    grid-template-columns: repeat(5, 1fr);
  }
  .tb-year-nav-links a {
    min-height: 2.7rem;
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .tb-year-nav-links a {
    min-height: 2.8rem;
    font-size: 1.05rem;
  }
}
