/*
Theme Name: Tau Delta Phi 1910 Light
Theme URI: http://localhost/taudelphians/
Author: Tau Delta Phi 1910
Description: Light, mobile-first variant of the Tau Delta Phi 1910 theme: navy header, bright content areas, gold accents and a clean sans-serif body font. Shares all templates and features with the parent theme (chapter directory, chapter albums, legacy page-builder rendering, Customizer options).
Template: tdp1910
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tdp1910
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --navy: #0b192c;
  --navy-2: #1e2e45;
  --navy-3: #060d17;
  --gold: #d4af37;
  --gold-hover: #b89320;
  --gold-text: #8a6d12;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --border: #e5e7eb;
  --on-dark: #e2e8f0;
  --on-dark-muted: #a3b1c2;

  --font-heading: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
  --header-h: 68px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

/* ==========================================================================
   Base (mobile first)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--gold-text); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--navy); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 0.75em;
}
h1 { font-size: clamp(2rem, 6.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
table { width: 100%; border-collapse: collapse; }
hr { border: 0; height: 1px; background: var(--border); margin: 2.5rem 0; }

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--gold); color: var(--navy); padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--navy); }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; }

.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--card); }
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section { padding: 6rem 0; }
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.4rem; }
.section-title p { color: var(--muted); max-width: 620px; margin: 0.5rem auto 0; }
@media (min-width: 768px) { .section-title { margin-bottom: 3rem; } }

.eyebrow {
  display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.4rem;
}

/* The parent's ornamental divider becomes the template's short gold bar. */
.crest-divider { width: 60px; height: 3px; margin: 0.85rem auto 0; background: var(--gold); border-radius: 2px; }
.crest-divider .icon { display: none; }

.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.875rem; }

.on-dark .btn-outline, .hero .btn-outline, .contact-cta .btn-outline, .page-hero .btn-outline { color: #fff; }
.on-dark .btn-outline:hover, .hero .btn-outline:hover, .contact-cta .btn-outline:hover { color: var(--navy); }

.btn-row { display: flex; flex-direction: column; gap: 0.85rem; }
.btn-row .btn { width: 100%; }
@media (min-width: 540px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn-row .btn { width: auto; }
}

/* ==========================================================================
   Top bar & header
   ========================================================================== */
.top-bar { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--ease), background var(--ease);
}
.site-header.is-scrolled { background: rgba(30, 46, 69, 0.97); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.nav-container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.logo:hover { color: #fff; }
.logo .site-logo { width: auto; height: 50px; }
.site-header .logo .site-logo { animation: tdp-logo-spin 6s linear infinite; backface-visibility: visible; }
@keyframes tdp-logo-spin { from { transform: perspective(400px) rotateY(0deg); } to { transform: perspective(400px) rotateY(360deg); } }
.logo-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.15; }
.logo-title small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.15); }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }

/* Mobile drawer */
.primary-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
  width: min(86vw, 340px);
  display: flex; flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  background: var(--navy);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(105%); visibility: hidden;
  transition: transform var(--ease), visibility var(--ease);
}
.nav-open .primary-nav { transform: none; visibility: visible; }
.nav-open .menu-toggle { position: relative; z-index: 1002; }

.nav-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(6, 13, 23, 0.6); opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease); }
.nav-open .nav-overlay { opacity: 1; visibility: visible; }

.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-menu li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.nav-menu a { flex: 1; display: block; padding: 0.85rem 0; font-size: 0.98rem; font-weight: 500; color: var(--on-dark); }
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_item > a { color: var(--gold); }

.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--gold); cursor: pointer; font-size: 1rem; }
.submenu-toggle .icon { transition: transform var(--ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-menu .sub-menu { display: none; width: 100%; padding: 0 0 0.75rem 0.85rem; margin-bottom: 0.5rem; border-left: 2px solid rgba(212, 175, 55, 0.4); }
.nav-menu .sub-menu.is-open { display: block; }
.nav-menu .sub-menu a { padding: 0.5rem 0; font-size: 0.9rem; color: var(--on-dark-muted); }

.nav-portal { margin-top: 1.5rem; }
.nav-portal .btn { width: 100%; }

@media (min-width: 992px) {
  .top-bar { display: block; background: var(--navy); color: var(--on-dark-muted); font-size: 0.82rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .top-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .top-bar-info { display: flex; gap: 1.5rem; }
  .top-bar-info span, .top-bar-info a { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; }
  .top-bar-info a:hover { color: var(--gold); }
  .top-bar .icon { color: var(--gold); }
}

@media (min-width: 1100px) {
  :root { --header-h: 76px; }
  .menu-toggle, .nav-overlay { display: none; }

  .primary-nav {
    position: static; width: auto; padding: 0; flex-direction: row; align-items: center; gap: 1.5rem;
    background: none; box-shadow: none; overflow: visible; transform: none; visibility: visible; transition: none;
  }
  .nav-menu { display: flex; align-items: center; gap: 1.6rem; }
  .nav-menu > li { border: 0; flex-wrap: nowrap; }
  .nav-menu > li > a { padding: 1.55rem 0; font-size: 0.95rem; position: relative; }
  .nav-menu > li > a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 1.1rem; height: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform var(--ease);
  }
  .nav-menu > li > a:hover::after,
  .nav-menu > .current-menu-item > a::after,
  .nav-menu > .current-menu-ancestor > a::after,
  .nav-menu > .current_page_item > a::after { transform: scaleX(1); }

  .submenu-toggle { width: 22px; height: 22px; margin-left: 0.15rem; font-size: 0.8rem; }

  .nav-menu .sub-menu {
    display: block; position: absolute; top: 100%; left: -1rem; z-index: 10;
    min-width: 240px; padding: 0.6rem; margin: 0; border: 0;
    background: var(--card); border-radius: var(--radius); border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu,
  .nav-menu .sub-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu .sub-menu li { display: block; }
  .nav-menu .sub-menu a { padding: 0.55rem 0.85rem; border-radius: var(--radius-sm); white-space: nowrap; color: var(--text); }
  .nav-menu .sub-menu a:hover,
  .nav-menu .sub-menu .current-menu-item > a { background: var(--gold-soft); color: var(--navy); }

  .nav-menu .is-mega > .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); width: 640px; left: 50%; transform: translate(-50%, 8px); }
  .nav-menu .is-mega:hover > .sub-menu,
  .nav-menu .is-mega:focus-within > .sub-menu,
  .nav-menu .is-mega > .sub-menu.is-open { transform: translate(-50%, 0); }

  .nav-portal { margin: 0; }
  .nav-portal .btn { width: auto; }
}
@media (min-width: 1280px) {
  .nav-menu .is-mega > .sub-menu { grid-template-columns: repeat(4, minmax(160px, 1fr)); width: 780px; }
}

/* ==========================================================================
   Homepage hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; text-align: center; padding: 4.5rem 0;
  background-color: var(--navy);
  background-image: linear-gradient(to top, var(--navy) 0, rgba(11, 25, 44, 0) 22%), linear-gradient(135deg, rgba(11, 25, 44, 0.93), rgba(30, 46, 69, 0.86)), var(--hero-image, none);
  background-size: cover; background-position: center;
}
.hero-content { max-width: 680px; margin: 0 auto; }
.hero-tag {
  display: inline-block; padding: 0.35rem 1rem; margin-bottom: 1.25rem;
  background: rgba(212, 175, 55, 0.15); border: 1px solid var(--gold); border-radius: 50px;
  color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.08rem; color: #cbd5e1; margin: 0 auto 2rem; }
.hero .btn-row { justify-content: center; }

.hero-layout { display: grid; gap: 2.5rem; align-items: center; }
.hero-emblem { display: flex; justify-content: center; }
.hero-emblem .site-logo { width: auto; height: 120px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45)); }

@media (min-width: 768px) {
  .hero { padding: 7rem 0; text-align: left; }
  .hero-content { margin: 0; }
  .hero p { margin-left: 0; font-size: 1.15rem; }
  .hero .btn-row { justify-content: flex-start; }
  .hero-layout { grid-template-columns: 1fr auto; gap: 3rem; }
  .hero-emblem { order: 2; }
  .hero-emblem .site-logo { height: 166px; }
}
@media (min-width: 1024px) { .hero { padding: 8rem 0; } }

/* Inner page banner */
.page-hero {
  padding: 2.75rem 0 2.5rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.75rem); margin-bottom: 0.5rem; }
.page-hero .page-meta { color: var(--on-dark-muted); margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.25rem; font-size: 0.95rem; }
.page-hero .page-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.page-hero .page-meta a { color: var(--gold); }
.page-hero .page-meta .icon { color: var(--gold); }
.page-hero .crest {
  display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 1rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold), #997a15); color: var(--navy);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) { .page-hero { padding: 4rem 0 3.5rem; } }

.breadcrumbs { font-size: 0.8rem; color: var(--on-dark-muted); margin-bottom: 0.85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--gold); }
.breadcrumbs a { color: var(--on-dark); }
.breadcrumbs a:hover { color: var(--gold); }

/* ==========================================================================
   Motto banner
   ========================================================================== */
.motto-section { background: var(--navy); border-top: 3px solid var(--gold); padding: 2.5rem 0; text-align: center; color: #fff; }
.motto-card { margin: 0 auto; max-width: 820px; }
.motto-card blockquote { margin: 0; font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.5; color: var(--gold); }
.motto-card cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (min-width: 768px) { .motto-card blockquote { font-size: 1.55rem; } }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
@media (hover: hover) { .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } }
.card-body { padding: 2rem 1.5rem; }
@media (min-width: 768px) { .card-body { padding: 2.5rem; } }

.mv-card { border-top: 4px solid var(--gold); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin-bottom: 1.25rem; border-radius: 10px;
  background: var(--gold-soft); color: var(--gold-hover); font-size: 1.6rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.intro-text { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.05rem; color: var(--muted); }

/* Post / album cards */
.post-card { overflow: hidden; }
.post-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: var(--gold); }
.post-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.post-card h3 a:hover { color: var(--gold-text); }
.post-card .meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--gold-text); margin-bottom: 0.6rem; }
.post-card .meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-card .excerpt { font-size: 0.95rem; color: var(--muted); }
.post-card .more { margin-top: auto; padding-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ==========================================================================
   History (homepage)
   ========================================================================== */
.history-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .history-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.history-text h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-top: 0.4rem; }
.history-text p { color: var(--muted); }
.timeline-badge { display: grid; gap: 1.25rem; margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--gold); }
.timeline-badge h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.timeline-badge p { font-size: 0.92rem; margin: 0; }
.history-image { position: relative; margin: 0 0 1.5rem; }
.history-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); aspect-ratio: 4 / 3; object-fit: cover; }
.history-experience {
  display: none; position: absolute; right: -1rem; bottom: -1.5rem;
  padding: 1.25rem 1.75rem; background: var(--navy); color: #fff;
  border-radius: var(--radius); border-left: 4px solid var(--gold); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.history-experience .years { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--gold); }
.history-experience small { display: block; margin-top: 0.3rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 576px) { .history-experience { display: block; } }

/* Parent timeline (kept for content that uses it) */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 15px; width: 2px; background: var(--gold); opacity: 0.5; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot { position: absolute; top: 1.6rem; left: 8px; width: 16px; height: 16px; background: var(--gold); border: 3px solid var(--card); border-radius: 50%; }
.timeline-content { margin-left: 44px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.timeline-year { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--gold-text); }

/* ==========================================================================
   Chapters
   ========================================================================== */
.chapters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (min-width: 600px) { .chapters-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .chapters-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .chapters-grid { grid-template-columns: repeat(6, 1fr); } }

.chapter-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 132px; padding: 1.25rem 0.75rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.chapter-card:hover { border-color: var(--gold); background: #fffdf5; color: var(--text); box-shadow: var(--shadow-sm); }
@media (hover: hover) { .chapter-card:hover { transform: translateY(-3px); } }
.greek-symbol { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.chapter-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.chapter-location { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--muted); }
.chapter-count { display: inline-block; margin-top: 0.5rem; padding: 0.1rem 0.6rem; border-radius: 50px; background: var(--gold-soft); color: var(--gold-text); font-size: 0.72rem; font-weight: 600; }

.chapter-filter { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.chapter-filter .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chapter-filter input[type="search"] { padding-left: 2.75rem; }
.chapter-empty { text-align: center; color: var(--muted); }

.chapter-pager { display: grid; gap: 1rem; margin-top: 3rem; }
.chapter-pager a {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--navy); font-weight: 600;
}
.chapter-pager a:hover { border-color: var(--gold); color: var(--gold-text); }
.chapter-pager small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chapter-pager .next { justify-content: flex-end; text-align: right; }
.chapter-pager .all { justify-content: center; }
@media (min-width: 768px) { .chapter-pager { grid-template-columns: 1fr auto 1fr; } }

.empty-state { text-align: center; padding: 2.5rem 1.5rem; background: var(--card); border: 2px dashed var(--border); border-radius: var(--radius); }
.empty-state > .icon { font-size: 2.25rem; color: var(--gold); margin-bottom: 1rem; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; }

/* ==========================================================================
   Officers
   ========================================================================== */
.officers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .officers-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.officer-card { text-align: center; padding: 1.5rem 0.75rem; background: var(--card); border-radius: var(--radius); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: transform var(--ease), box-shadow var(--ease); }
@media (hover: hover) { .officer-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); } }
.officer-photo { width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); background: var(--navy-2); }
.officer-photo img { width: 100%; height: 100%; object-fit: cover; }
.officer-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.officer-title { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-text); }
@media (min-width: 768px) {
  .officer-card { padding: 2rem 1.25rem; }
  .officer-photo { width: 120px; height: 120px; }
  .officer-card h3 { font-size: 1.1rem; }
  .officer-title { font-size: 0.8rem; }
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.contact-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 3rem 1.5rem; text-align: center; }
.contact-cta::before { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%); pointer-events: none; }
.contact-cta h2 { color: #fff; }
.contact-cta p { color: #cbd5e1; max-width: 600px; margin: 0 auto 2rem; }
.contact-cta .contact-lines { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 1.75rem; }
.contact-cta .contact-lines a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--on-dark); word-break: break-word; }
.contact-cta .contact-lines a:hover { color: var(--gold); }
.contact-cta .contact-lines .icon { color: var(--gold); }
@media (min-width: 768px) {
  .contact-cta { padding: 4rem 2rem; }
  .contact-cta .contact-lines { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 0.5rem 2rem; }
}

/* ==========================================================================
   Entry content (pages, posts, legacy builder output)
   ========================================================================== */
.entry { padding: 3rem 0 4rem; }
@media (min-width: 768px) { .entry { padding: 4.5rem 0 6rem; } }

.entry-content { color: var(--text); overflow-wrap: break-word; font-size: 1.02rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { margin-top: 1.5em; }
.entry-content h1:first-child, .entry-content h2:first-child, .entry-content h3:first-child, .entry-content h4:first-child, .entry-content h5:first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(138, 109, 18, 0.45); }
.entry-content a.btn { text-decoration: none; }
.entry-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); font-family: var(--font-heading); color: var(--navy); }
.entry-content blockquote small { display: block; margin-top: 0.5rem; font-family: var(--font-body); color: var(--muted); }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft, .entry-content .alignright { margin: 0 auto 1rem; }
@media (min-width: 600px) {
  .entry-content .alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
  .entry-content .alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
}
.entry-content figure { margin: 0 0 1.5rem; }
.entry-content figure.aligncenter { display: table; }
.entry-content figcaption, .wp-caption-text { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
.entry-content iframe { width: 100%; }

/* Legacy builder content assumed a dark page; normalize inline colors. */
.entry-content [style*="color: #ffffff"], .entry-content [style*="color: white"], .entry-content [style*="color:#fff"] { color: inherit !important; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.entry-content table { min-width: 100%; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 0.75rem 1rem; text-align: left !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; color: var(--text) !important; }
.entry-content th { background: var(--navy); color: #fff !important; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.entry-content tbody tr:nth-child(even) { background: var(--bg); }
.entry-content tbody tr:hover { background: #fffdf5; }

/* Legacy builder layout */
.lb-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.lb-row:last-child { margin-bottom: 0; }
.lb-row--bg { padding: 2rem 1.25rem; border-radius: var(--radius); background-size: cover; background-position: center; position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.lb-row--bg::before { content: ''; position: absolute; inset: 0; background: rgba(11, 25, 44, 0.86); z-index: -1; }
.lb-row--bg h1, .lb-row--bg h2, .lb-row--bg h3, .lb-row--bg h4 { color: #fff; }
.lb-col { grid-column: span 12; min-width: 0; }
.lb-col--1-4, .lb-col--1-6 { grid-column: span 6; }
@media (min-width: 768px) {
  .lb-row--bg { padding: 3rem 2.5rem; }
  .lb-col--1-2 { grid-column: span 6; }
  .lb-col--1-3 { grid-column: span 4; }
  .lb-col--2-3 { grid-column: span 8; }
  .lb-col--1-4 { grid-column: span 6; }
  .lb-col--3-4 { grid-column: span 9; }
  .lb-col--1-6 { grid-column: span 4; }
  .lb-col--5-6 { grid-column: span 10; }
}
@media (min-width: 992px) {
  .lb-col--1-4 { grid-column: span 3; }
  .lb-col--1-6 { grid-column: span 2; }
}
.lb-text { margin-bottom: 1rem; }
.lb-text:last-child { margin-bottom: 0; }
.lb-sep { height: 3px; width: 50px; margin: 0.85rem auto; background: var(--gold); border-radius: 2px; }
.lb-image { margin: 0 0 1rem; }
.lb-image img { margin: 0 auto; border-radius: var(--radius-sm); }
.lb-font { font-family: var(--font-heading); font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.lb-font--callout { font-size: 1.25rem; text-align: center; padding: 2rem 1.25rem; background: var(--navy); color: var(--gold); border-radius: var(--radius); }
.lb-font--callout strong { color: #fff; }

.lb-image--avatar img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); }
@media (min-width: 768px) { .lb-image--avatar img { width: 160px; height: 160px; } }
.lb-col:has(.lb-image--avatar) { text-align: center; padding: 1.5rem 0.75rem; background: var(--card); border-radius: var(--radius); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.lb-col:has(.lb-image--avatar) .lb-font { font-size: 0.95rem; text-align: center; margin-top: 0.75rem; }
.lb-col:has(.lb-image--avatar) .lb-text p { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.lb-col .social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0.5rem 0.5rem 0; border-radius: 50%; background: var(--bg-alt); color: var(--navy); text-decoration: none; }

/* Galleries */
.tdp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
@media (min-width: 600px) { .tdp-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .tdp-gallery { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; } }
.tdp-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bg-alt); }
.tdp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.tdp-gallery a:hover img { transform: scale(1.06); }
.tdp-gallery--gray img { filter: grayscale(1); }
.tdp-gallery--gray a:hover img, .tdp-gallery--gray a:focus img { filter: none; }

/* Social links */
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.social-links a:hover { background: var(--gold); color: var(--navy); }
.entry .social-links a { background: var(--bg-alt); color: var(--navy); }

/* Contact page */
.contact-details { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-details li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.contact-details .icon { width: 48px; height: 48px; padding: 12px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-hover); }
.contact-details strong { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.15rem; }
.contact-details a { word-break: break-word; }
@media (min-width: 768px) { .contact-details { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Forms (also Ultimate Member)
   ========================================================================== */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%; min-height: 48px; padding: 0.7rem 1rem;
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); outline: none; }
::placeholder { color: #94a3b8; opacity: 1; }

.search-form { display: flex; gap: 0.5rem; max-width: 520px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-form .btn { flex-shrink: 0; }
.search-wrap { margin-bottom: 2.5rem; }
.empty-state .search-form { margin-top: 1rem; }

.um input[type="submit"].um-button, .um a.um-button { background: var(--gold) !important; color: var(--navy) !important; border-radius: var(--radius-sm) !important; font-weight: 600 !important; }
.um a.um-button.um-alt, .um input[type="submit"].um-button.um-alt { background: var(--bg-alt) !important; color: var(--navy) !important; }
.um .tdp-member-chapter { margin: -0.35rem 0 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.um .tdp-member-chapter a { color: inherit; text-decoration: none; }
.um .tdp-member-chapter a:hover { color: var(--navy); }

/* ==========================================================================
   Single post / pagination / comments
   ========================================================================== */
.post-thumb { margin: 0 0 2rem; }
.post-thumb img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.post-nav { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-nav a { display: block; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy); font-weight: 600; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
@media (min-width: 768px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .next { text-align: right; } }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.75rem; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); color: var(--navy); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-form p { margin-bottom: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-3); color: var(--on-dark-muted); padding: 3.5rem 0 1.5rem; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2.25rem; margin-bottom: 2.5rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; } .site-footer { padding-top: 4rem; } }
.footer-col h2 { position: relative; font-size: 1.05rem; color: #fff; margin-bottom: 1.4rem; }
.footer-col h2::after { content: ''; position: absolute; left: 0; bottom: -7px; width: 30px; height: 2px; background: var(--gold); }
.footer-col .logo { margin-bottom: 1rem; }
.footer-col .logo .site-logo { height: 60px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 0.3rem 0; color: var(--on-dark-muted); transition: color var(--ease), transform var(--ease); }
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-links strong { color: var(--gold); font-weight: 600; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-contact .icon { color: var(--gold); margin-top: 0.25rem; }
.footer-contact a { color: var(--on-dark-muted); word-break: break-word; }
.footer-contact a:hover { color: var(--gold); }
.footer-motto { font-style: italic; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1.5rem; text-align: center; font-size: 0.82rem; }
.footer-bottom p { margin: 0 0 0.4rem; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: var(--gold); }

.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease), background var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold-hover); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(6, 13, 23, 0.96); color: #fff; }
.lightbox::backdrop { background: rgba(6, 13, 23, 0.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--on-dark-muted); }
.lightbox button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--navy); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) { .lightbox .lb-prev { left: 1.5rem; } .lightbox .lb-next { right: 1.5rem; } }

/* ==========================================================================
   WordPress core
   ========================================================================== */
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 768px) { .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); } .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .site-header .logo .site-logo { animation: none; }
}
