/*
Theme Name: Saq' B'e
Theme URI: https://sacredroad.org
Author: Saq' B'e
Author URI: https://sacredroad.org
Description: Custom theme for Saq' B'e — Organization for Mayan and Indigenous Spiritual Studies. The white road.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saqbe
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — from brand.jsx / shell.jsx
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Core palette — dark & rich */
  --sb-cream: #F0E6D2;
  --sb-paper: #E8DCCA;
  --sb-tan: #cabb9d;
  --sb-sky: #90c4dc;
  --sb-gristmill: #a39271;
  --sb-brass: #8B6B3A;
  --sb-moss: #5C6F3E;
  --sb-gold: #C8963E;
  --sb-red: #8B2332;
  --sb-ink: #2a2518;
  --sb-ink-deep: #1E1A10;
  --sb-ink-soft: #3D3425;
  --sb-ink-muted: #8B6B3A;
  --sb-clay: #6B5A3E;
  --sb-line: rgba(200, 150, 62, 0.25);
  --sb-line-soft: rgba(200, 150, 62, 0.15);
  --sb-line-faint: rgba(200, 150, 62, 0.08);

  /* Typography */
  --sb-font-display: 'Cardo', 'Georgia', serif;
  --sb-font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --sb-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--sb-ink);
  color: var(--sb-cream);
  font-family: var(--sb-font-display);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; }

/* ═══════════════════════════════════════════════════════════
   TOP RAIL — thin mono breadcrumb bar
   ═══════════════════════════════════════════════════════════ */

.sb-top-rail {
  display: flex;
  justify-content: space-between;
  padding: 8px 40px;
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-gold);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--sb-line-faint);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════ */

.sb-header {
  background: var(--sb-ink);
  border-bottom: 1px solid var(--sb-line);
}

.sb-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 40px;
}

.sb-logo img {
  height: 56px;
  width: auto;
}

.sb-nav {
  display: flex;
  gap: 28px;
  font-family: var(--sb-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--sb-gold);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-nav a {
  text-decoration: none;
  color: var(--sb-gold);
  transition: color 0.2s;
}

.sb-nav a:hover {
  color: var(--sb-cream);
}

.sb-nav .current-menu-item > a,
.sb-nav .current-menu-ancestor > a {
  color: var(--sb-cream);
  font-weight: 600;
}

/* Calendar dropdown */
.sb-nav .menu-item-has-children {
  position: relative;
}

.sb-nav .menu-item-has-children > a::after {
  content: ' ▾';
  font-family: var(--sb-font-mono);
  font-size: 9px;
  color: var(--sb-brass);
  margin-left: 6px;
}

.sb-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -16px;
  background: var(--sb-ink-soft);
  border: 1px solid var(--sb-line);
  padding: 8px 0;
  min-width: 300px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  list-style: none;
  z-index: 50;
}

.sb-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sb-nav .sub-menu li {
  border-bottom: 1px solid var(--sb-line-faint);
}

.sb-nav .sub-menu li:last-child {
  border-bottom: none;
}

.sb-nav .sub-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-cream);
}

.sb-nav .sub-menu a:hover {
  background: rgba(200, 150, 62, 0.1);
}

/* Header right — language + donate */
.sb-header-right {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.sb-lang {
  font-family: var(--sb-font-mono);
  font-size: 11px;
  color: var(--sb-brass);
  letter-spacing: 0.4px;
}

.sb-btn-donate {
  font-family: var(--sb-font-sans);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  background: var(--sb-red);
  color: var(--sb-cream);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.sb-btn-donate:hover {
  background: #A52B3D;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB ROW (sub-pages)
   ═══════════════════════════════════════════════════════════ */

.sb-breadcrumb {
  padding: 18px 40px;
  border-top: 1px solid var(--sb-line-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.sb-breadcrumb a {
  color: var(--sb-brass);
  text-decoration: none;
}

.sb-breadcrumb .current {
  color: var(--sb-cream);
  font-weight: 600;
}

.sb-breadcrumb .sep {
  margin: 0 10px;
}

/* ═══════════════════════════════════════════════════════════
   MAYA BORDER PATTERNS — decorative section dividers
   ═══════════════════════════════════════════════════════════ */

.sb-maya-border {
  width: 100%;
  height: 40px;
  opacity: 0.6;
  background-repeat: repeat-x;
  background-size: 80px 40px;
  background-position: center;
}

.sb-maya-border-diamond {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23C8963E' stroke-width='1.2'%3E%3Cline x1='0' y1='4' x2='80' y2='4'/%3E%3Cline x1='0' y1='36' x2='80' y2='36'/%3E%3Cpath d='M0 8 L8 8 L12 4 L8 0' stroke-width='1'/%3E%3C/g%3E%3Cg fill='%23C8963E'%3E%3Cpath d='M10 20 L20 10 L30 20 L20 30 Z'/%3E%3Cpath d='M50 20 L60 10 L70 20 L60 30 Z'/%3E%3Cpath d='M16 20 L20 16 L24 20 L20 24 Z' fill='%231E1A10'/%3E%3Cpath d='M56 20 L60 16 L64 20 L60 24 Z' fill='%231E1A10'/%3E%3Cpath d='M30 10 L40 4 L50 10 L40 16 Z' stroke='%23C8963E' stroke-width='1' fill='none'/%3E%3Cpath d='M30 30 L40 24 L50 30 L40 36 Z' stroke='%23C8963E' stroke-width='1' fill='none'/%3E%3Crect x='36' y='6' width='8' height='8' transform='rotate(45 40 10)' fill='%238B2332' opacity='0.7'/%3E%3Crect x='36' y='26' width='8' height='8' transform='rotate(45 40 30)' fill='%238B2332' opacity='0.7'/%3E%3C/g%3E%3C/svg%3E");
}

.sb-maya-border-meander {
  height: 28px;
  background-size: 120px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cg fill='none' stroke='%23C8963E' stroke-width='1.2'%3E%3Cline x1='0' y1='2' x2='120' y2='2'/%3E%3Cline x1='0' y1='26' x2='120' y2='26'/%3E%3Cpath d='M4 8 L4 20 L12 20 L12 12 L8 12 L8 16' stroke-linecap='round'/%3E%3Cpath d='M20 8 L20 20 L28 20 L28 12 L24 12 L24 16' stroke-linecap='round'/%3E%3Cpath d='M36 8 L36 20 L44 20 L44 12 L40 12 L40 16' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%23C8963E'%3E%3Cpath d='M52 11 L54 14 L52 17 L50 14 Z'/%3E%3Cpath d='M56 8 L58 11 L56 14 L54 11 Z'/%3E%3Cpath d='M56 14 L58 17 L56 20 L54 17 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23C8963E' stroke-width='1.2'%3E%3Cpath d='M64 20 L64 8 L72 8 L72 16 L68 16 L68 12' stroke-linecap='round'/%3E%3Cpath d='M80 20 L80 8 L88 8 L88 16 L84 16 L84 12' stroke-linecap='round'/%3E%3Cpath d='M96 20 L96 8 L104 8 L104 16 L100 16 L100 12' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%238B2332'%3E%3Cpath d='M112 11 L114 14 L112 17 L110 14 Z'/%3E%3Cpath d='M116 8 L118 11 L116 14 L114 11 Z'/%3E%3Cpath d='M116 14 L118 17 L116 20 L114 17 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.sb-maya-border-stars {
  height: 20px;
  background-size: 60px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20' viewBox='0 0 60 20'%3E%3Cg fill='%23C8963E'%3E%3Cpath d='M10 10 L11.5 7 L15 10 L11.5 13 Z'/%3E%3Cpath d='M30 10 L31.5 7 L35 10 L31.5 13 Z'/%3E%3Cpath d='M50 10 L51.5 7 L55 10 L51.5 13 Z'/%3E%3Ccircle cx='22' cy='10' r='1.5'/%3E%3Ccircle cx='42' cy='10' r='1.5'/%3E%3C/g%3E%3Cg fill='%238B2332'%3E%3Ccircle cx='2' cy='10' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   RED ACCENT ELEMENTS
   ═══════════════════════════════════════════════════════════ */

.sb-accent-red {
  color: var(--sb-red);
}

.sb-calendar-item:hover {
  background: rgba(139, 35, 50, 0.08);
}

.sb-calendar-item .item-arrow a {
  color: var(--sb-red);
  text-decoration: none;
  font-size: 16px;
}

.sb-calendar-item .item-arrow a:hover {
  color: var(--sb-gold);
}

.sb-program-item .prog-link a {
  color: var(--sb-red);
  font-weight: 500;
}

.sb-program-item .prog-link a:hover {
  color: var(--sb-gold);
}

.sb-story-card:hover .story-title {
  color: var(--sb-red);
}

.sb-archive-link {
  color: var(--sb-red);
}

.sb-archive-link:hover {
  color: var(--sb-gold);
}

.sb-lineage-row .dot {
  background: var(--sb-red);
}

.sb-timeline-row {
  border-bottom: 1px solid var(--sb-line-faint);
}

.sb-breadcrumb a:hover {
  color: var(--sb-gold);
}

.sb-nav .sub-menu .current-menu-item > a {
  background: rgba(139, 35, 50, 0.15);
  border-left: 2px solid var(--sb-red);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT — SECTION GRID (90px left gutter + content)
   ═══════════════════════════════════════════════════════════ */

.sb-section {
  padding: 80px 40px;
}

.sb-section-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 40px;
}

.sb-section-label {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sb-section-label-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.sb-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.sb-section-header h2 {
  margin: 0;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--sb-cream);
}

.sb-section-header .sb-rule {
  flex: 1;
  height: 1px;
  background: var(--sb-line);
}

.sb-section-header .sb-meta {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   HERO — Homepage
   ═══════════════════════════════════════════════════════════ */

.sb-hero {
  padding: 80px 40px 60px;
}

.sb-hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.sb-hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sb-hero-logo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(200, 150, 62, 0.15));
}

.sb-hero-pronunciation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--sb-font-mono);
  font-size: 11px;
  color: var(--sb-gold);
  letter-spacing: 0.6px;
}

.sb-hero-pronunciation .sb-rule {
  flex: 1;
  height: 1px;
  background: var(--sb-line-soft);
}

.sb-hero h1 {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -3.5px;
  color: var(--sb-cream);
  margin-bottom: 48px;
}

.sb-hero h1 em {
  color: var(--sb-gold);
  font-style: italic;
}

.sb-hero-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sb-hero-mission .sb-label {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sb-hero-mission p {
  font-family: var(--sb-font-display);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(240, 230, 210, 0.8);
}

/* ═══════════════════════════════════════════════════════════
   PHOTO PLACEHOLDER (replaced by real images)
   ═══════════════════════════════════════════════════════════ */

.sb-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #a39271 0%, #796c52 55%, #4a402c 100%);
}

.sb-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px);
}

.sb-photo-coords {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--sb-font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.6px;
  z-index: 2;
}

.sb-photo-label {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--sb-font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.6px;
  z-index: 2;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   TODAY'S CH'UMIL — Daily reading section
   ═══════════════════════════════════════════════════════════ */

.sb-chumil-today {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sb-chumil-card {
  background: var(--sb-ink-deep);
  color: var(--sb-cream);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.sb-chumil-card .day-label {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sb-chumil-card .day-number {
  font-family: var(--sb-font-display);
  font-size: 160px;
  line-height: 0.85;
  font-weight: 300;
  color: var(--sb-cream);
  opacity: 0.9;
}

.sb-chumil-card .day-name {
  font-family: var(--sb-font-display);
  font-size: 64px;
  font-style: italic;
  color: var(--sb-cream);
  margin-top: -10px;
}

.sb-chumil-card .day-meaning {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 20px;
}

.sb-chumil-reading {
  padding-top: 20px;
}

.sb-chumil-reading p {
  font-family: var(--sb-font-display);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(240, 230, 210, 0.8);
}

.sb-nawales-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-top: 1px solid var(--sb-line);
  border-left: 1px solid var(--sb-line);
  margin-top: 32px;
}

.sb-nawales-grid .nawal-cell {
  border-right: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
  padding: 8px 6px;
  text-align: center;
}

.sb-nawales-grid .nawal-cell .num {
  font-family: var(--sb-font-mono);
  font-size: 9px;
  color: var(--sb-brass);
}

.sb-nawales-grid .nawal-cell .name {
  font-family: var(--sb-font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--sb-cream);
}

.sb-nawales-grid .nawal-cell.active {
  background: var(--sb-ink-deep);
}

.sb-nawales-grid .nawal-cell.active .num,
.sb-nawales-grid .nawal-cell.active .name {
  color: var(--sb-cream);
}

/* ═══════════════════════════════════════════════════════════
   CHOLQ'IJ CALENDAR INDEX
   ═══════════════════════════════════════════════════════════ */

.sb-calendar-index {
  border-top: 1px solid var(--sb-line);
}

.sb-calendar-item {
  display: grid;
  grid-template-columns: 60px 48px 260px 1fr 200px 30px;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--sb-line);
}

.sb-calendar-item .item-num {
  font-family: var(--sb-font-mono);
  font-size: 11px;
  color: var(--sb-brass);
}

.sb-calendar-item .item-icon {
  width: 36px;
  height: 36px;
  color: var(--sb-cream);
}

.sb-calendar-item .item-title {
  font-family: var(--sb-font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--sb-cream);
}

.sb-calendar-item .item-subtitle {
  font-family: var(--sb-font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--sb-moss);
  margin-top: 4px;
}

.sb-calendar-item .item-desc {
  font-family: var(--sb-font-display);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(240, 230, 210, 0.8);
}

.sb-calendar-item .item-meta {
  font-family: var(--sb-font-mono);
  font-size: 9px;
  color: var(--sb-brass);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: right;
}

.sb-calendar-item .item-arrow {
  font-family: var(--sb-font-mono);
  font-size: 14px;
  color: var(--sb-cream);
}

.sb-calendar-item .item-arrow a {
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */

.sb-about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sb-about-quote {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.8px;
  color: var(--sb-ink);
  font-style: italic;
}

/* Cream background sections — dark text overrides */
.sb-section[style*="sb-cream"] .sb-section-header h2,
.sb-section[style*="sb-cream"] .sb-about-quote,
.sb-section[style*="sb-cream"] .sb-timeline-row .year { color: var(--sb-ink); }
.sb-section[style*="sb-cream"] .sb-section-label,
.sb-section[style*="sb-cream"] .sb-section-header .sb-meta { color: var(--sb-brass); }
.sb-section[style*="sb-cream"] p { color: var(--sb-ink-soft); }

.sb-timeline {
  border-top: 1px solid var(--sb-line);
  margin-top: 40px;
}

.sb-timeline-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sb-line-faint);
  font-family: var(--sb-font-display);
  font-size: 15px;
  color: rgba(240, 230, 210, 0.8);
}

.sb-timeline-row .year {
  font-weight: 600;
  color: var(--sb-red);
}

/* ═══════════════════════════════════════════════════════════
   STORIES GRID
   ═══════════════════════════════════════════════════════════ */

.sb-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sb-story-card .story-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 16px;
}

.sb-story-card .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-story-card .story-meta {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sb-story-card .story-title {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--sb-cream);
  margin-bottom: 8px;
}

.sb-story-card .story-excerpt {
  font-family: var(--sb-font-display);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(240, 230, 210, 0.8);
}

.sb-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sb-line-faint);
  font-family: var(--sb-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--sb-cream);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   PROGRAMS
   ═══════════════════════════════════════════════════════════ */

.sb-programs-list {
  border-top: 1px solid var(--sb-line);
}

.sb-program-item {
  display: grid;
  grid-template-columns: 50px 48px 300px 1fr 100px;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--sb-line);
}

.sb-program-item .prog-num {
  font-family: var(--sb-font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--sb-brass);
}

.sb-program-item .prog-title {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.4px;
  color: var(--sb-cream);
}

.sb-program-item .prog-subtitle {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

.sb-program-item .prog-desc {
  font-family: var(--sb-font-display);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(240, 230, 210, 0.8);
}

.sb-program-item .prog-link a {
  font-family: var(--sb-font-display);
  font-size: 14px;
  color: var(--sb-cream);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   LIVING LINEAGES
   ═══════════════════════════════════════════════════════════ */

.sb-lineages-intro {
  font-family: var(--sb-font-display);
  font-size: 20px;
  line-height: 1.55;
  color: var(--sb-cream);
  max-width: 680px;
  margin-bottom: 40px;
}

.sb-lineages-table {
  border-top: 1px solid var(--sb-line-soft);
}

.sb-lineage-row {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 200px;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sb-line-faint);
}

.sb-lineage-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sb-red);
}

.sb-lineage-row .region {
  font-family: var(--sb-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--sb-cream);
}

.sb-lineage-row .peoples {
  font-family: var(--sb-font-display);
  font-size: 15px;
  color: rgba(240, 230, 210, 0.8);
}

.sb-lineage-row .coords {
  font-family: var(--sb-font-mono);
  font-size: 11px;
  color: var(--sb-brass);
  letter-spacing: 0.4px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   CALENDAR CONTINUE NAV
   ═══════════════════════════════════════════════════════════ */

.sb-calendar-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--sb-line);
  border-left: 1px solid var(--sb-line);
}

.sb-calendar-nav-item {
  padding: 28px 20px;
  border-right: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  transition: background 0.2s;
}

.sb-calendar-nav-item:hover {
  background: rgba(74, 64, 44, 0.04);
}

.sb-calendar-nav-item.active {
  background: var(--sb-red);
  color: var(--sb-cream);
}

.sb-calendar-nav-item .nav-sub {
  font-family: var(--sb-font-mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.sb-calendar-nav-item .nav-title {
  font-family: var(--sb-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.sb-calendar-nav-item .nav-arrow {
  margin-top: auto;
  font-family: var(--sb-font-mono);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.sb-footer {
  background: var(--sb-ink-deep);
  padding: 80px 40px 40px;
  color: var(--sb-cream);
  border-top: 1px solid var(--sb-line);
}

.sb-footer-header {
  display: grid;
  grid-template-columns: 90px 1fr;
  margin-bottom: 48px;
}

.sb-footer-header h3 {
  font-family: var(--sb-font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  color: var(--sb-cream);
}

.sb-footer-columns {
  display: grid;
  grid-template-columns: 90px 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.sb-footer-col-title {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sb-footer-col-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-footer-col-items a,
.sb-footer-col-items span {
  font-family: var(--sb-font-sans);
  font-size: 14px;
  color: rgba(239, 233, 220, 0.82);
  text-decoration: none;
}

.sb-footer-col-items a:hover {
  color: var(--sb-cream);
}

/* Newsletter */
.sb-newsletter-desc {
  font-family: var(--sb-font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(239, 233, 220, 0.72);
  margin-bottom: 16px;
}

.sb-newsletter-input {
  display: flex;
  border-bottom: 1px solid rgba(239, 233, 220, 0.4);
}

.sb-newsletter-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 0;
  font-family: var(--sb-font-sans);
  font-size: 14px;
  color: var(--sb-cream);
}

.sb-newsletter-input input::placeholder {
  color: rgba(239, 233, 220, 0.45);
}

.sb-newsletter-input button {
  background: none;
  border: none;
  font-family: var(--sb-font-mono);
  color: var(--sb-brass);
  cursor: pointer;
  font-size: 16px;
}

/* Footer bottom */
.sb-footer-bottom {
  display: grid;
  grid-template-columns: 90px 1fr;
  margin-top: 28px;
}

.sb-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sb-font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(239, 233, 220, 0.55);
  text-transform: uppercase;
}

.sb-footer-social {
  display: flex;
  gap: 18px;
}

.sb-footer-social a {
  color: rgba(239, 233, 220, 0.55);
  text-decoration: none;
}

.sb-footer-social a:hover {
  color: var(--sb-cream);
}

/* ═══════════════════════════════════════════════════════════
   CONTENT AREA — WordPress defaults
   ═══════════════════════════════════════════════════════════ */

.sb-content {
  padding: 60px 40px;
}

.sb-content-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 40px;
}

.entry-content {
  font-family: var(--sb-font-display);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(240, 230, 210, 0.85);
  max-width: 740px;
}

.entry-content h2 {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--sb-cream);
  margin: 40px 0 16px;
}

.entry-content h3 {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--sb-cream);
  margin: 32px 0 12px;
}

.entry-content p {
  margin: 0 0 20px;
}

.entry-content a {
  color: var(--sb-gold);
  text-decoration: underline;
  text-decoration-color: var(--sb-line);
  text-underline-offset: 3px;
}

.entry-content img {
  border: 1px solid var(--sb-line-faint);
}

.entry-content blockquote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--sb-gold);
  font-style: italic;
  color: var(--sb-cream);
}

/* ═══════════════════════════════════════════════════════════
   NAWAL ROW — Ch'umil'al page
   ═══════════════════════════════════════════════════════════ */

.sb-nawal-row {
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--sb-line);
}

.sb-nawal-row .nawal-num {
  font-family: var(--sb-font-mono);
  font-size: 11px;
  color: var(--sb-brass);
}

.sb-nawal-row .nawal-name {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--sb-cream);
}

.sb-nawal-row .nawal-pron {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  color: var(--sb-brass);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.sb-nawal-row .nawal-element {
  font-family: var(--sb-font-mono);
  font-size: 9px;
  color: var(--sb-brass);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 8px;
}

.sb-nawal-content h4 {
  font-family: var(--sb-font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--sb-brass);
  margin: 0 0 8px;
}

.sb-nawal-content p {
  font-family: var(--sb-font-display);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(240, 230, 210, 0.8);
  margin: 0 0 20px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .sb-section-grid { grid-template-columns: 1fr; }
  .sb-section-label { display: none; }
  .sb-footer-columns { grid-template-columns: 1fr 1fr; }
  .sb-footer-header { grid-template-columns: 1fr; }
  .sb-footer-bottom { grid-template-columns: 1fr; }
  .sb-calendar-nav { grid-template-columns: repeat(3, 1fr); }
  .sb-calendar-item { grid-template-columns: 50px 1fr 100px; }
  .sb-stories-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-hero-mission { grid-template-columns: 1fr; }
  .sb-hero-layout { grid-template-columns: 1fr; }
  .sb-hero-logo { order: -1; }
  .sb-hero-logo img { max-width: 240px; }
  .sb-about-layout { grid-template-columns: 1fr; }
  .sb-program-item { grid-template-columns: 1fr; }
  .sb-content-grid { grid-template-columns: 1fr; }
  .sb-header-inner { grid-template-columns: auto 1fr auto; gap: 20px; }
}

@media (max-width: 768px) {
  .sb-top-rail { padding: 8px 20px; font-size: 9px; }
  .sb-header-inner { padding: 16px 20px; grid-template-columns: 1fr; gap: 16px; }
  .sb-nav { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .sb-header-right { justify-content: center; }
  .sb-hero { padding: 40px 20px; }
  .sb-hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .sb-hero-logo img { max-width: 200px; }
  .sb-section { padding: 40px 20px; }
  .sb-footer { padding: 40px 20px 20px; }
  .sb-footer-columns { grid-template-columns: 1fr; }
  .sb-footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .sb-stories-grid { grid-template-columns: 1fr; }
  .sb-nawales-grid { grid-template-columns: repeat(5, 1fr); }
  .sb-calendar-nav { grid-template-columns: 1fr 1fr; }
  .sb-nawal-row { grid-template-columns: 1fr; }
  .sb-lineage-row { grid-template-columns: 24px 1fr; }
  .sb-lineage-row .coords { text-align: left; }
  .sb-chumil-today { grid-template-columns: 1fr; }
  .sb-breadcrumb { padding: 12px 20px; flex-direction: column; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   WORDPRESS UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
