/* WhatIsToday – main.css v3.1 FIXED
   Mobile: single column, links work, nav doesn't block content */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --navy:        #0d1b2a;
  --navy-mid:    #162032;
  --navy-light:  #1e2f45;
  --gold:        #c9923a;
  --gold-light:  #e0ae62;
  --gold-pale:   #f5e6d0;
  --cream:       #fdf8f2;
  --white:       #ffffff;
  --gray-100:    #f4f4f6;
  --gray-200:    #e8e8ec;
  --gray-400:    #9e9ea8;
  --gray-600:    #6b6b78;
  --gray-800:    #2c2c34;
  --green-accent:#1a7a4a;
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Source Serif 4', Georgia, serif;
  --ff-ui:       'DM Sans', system-ui, sans-serif;
  --fs-xs:   0.75rem;   --fs-sm:  0.875rem;  --fs-base: 1rem;
  --fs-lg:   1.125rem;  --fs-xl:  1.25rem;   --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;  --fs-4xl: 2.25rem;   --fs-5xl:  3rem;
  --radius-sm: 4px;  --radius: 8px;  --radius-lg: 14px;
  --shadow-sm: 0 1px 4px rgba(13,27,42,.08);
  --shadow:    0 4px 16px rgba(13,27,42,.12);
  --shadow-lg: 0 12px 40px rgba(13,27,42,.18);
  --transition: 0.25s ease;
  --max-width: 1240px;
  --content-width: 780px;
  --header-height: 68px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
#page-wrap { overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--gray-800);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; background: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ── Utility ─────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
  width: 100%;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Section Heading ─────────────────────────── */
.section-heading {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem); flex-wrap: wrap;
}
.section-heading__line { flex: 1; min-width: 2rem; height: 2px; background: linear-gradient(to right, var(--gold), transparent); }
.section-heading__title {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 3vw, var(--fs-2xl));
  font-weight: 700; color: var(--navy); white-space: nowrap;
  display: flex; align-items: center; gap: .4rem;
}
.section-heading__icon { font-size: 1.2rem; line-height: 1; }

/* ── Top Bar ─────────────────────────────────── */
.top-bar {
  background: var(--navy); color: var(--gray-400);
  font-family: var(--ff-ui); font-size: var(--fs-xs);
  font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: .45rem 0; border-bottom: 1px solid var(--navy-light);
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-bar__date { color: var(--gold-light); }
.top-bar__links { display: flex; gap: 1rem; }
.top-bar__links a { transition: color var(--transition); }
.top-bar__links a:hover { color: var(--gold-light); }

/* ── Header ──────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .875rem; padding-bottom: .875rem;
}
.site-branding { flex-shrink: 0; min-width: 0; }
.site-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 4vw, var(--fs-3xl));
  font-weight: 900; color: var(--white);
  letter-spacing: -.02em; line-height: 1; white-space: nowrap;
}
.site-title span { color: var(--gold); }
.site-description { font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); letter-spacing: .12em; text-transform: uppercase; margin-top: .2rem; }

/* ── Navigation ──────────────────────────────── */
.main-nav { flex: 1; min-width: 0; }
.nav-menu { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 500;
  color: rgba(255,255,255,.8); padding: .45rem .8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: block; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a { color: var(--white); background: rgba(201,146,58,.15); }

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute; top: calc(100% + .5rem); left: 0;
  min-width: 200px; background: var(--navy-mid);
  border: 1px solid var(--navy-light); border-radius: var(--radius);
  padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all var(--transition);
  z-index: 100; box-shadow: var(--shadow-lg);
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu,
.nav-menu > li.touch-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a {
  font-family: var(--ff-ui); font-size: var(--fs-sm); color: rgba(255,255,255,.7);
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; min-height: 44px;
}
.nav-menu .sub-menu a:hover { color: var(--white); background: rgba(255,255,255,.05); }

/* Header Search Button */
.header-search-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7); width: 44px; height: 44px;
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.header-search-btn:hover { background: rgba(201,146,58,.2); color: var(--white); }

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: .55rem; width: 44px; height: 44px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); flex-shrink: 0;
  align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); pointer-events: none; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile backdrop — hidden on desktop */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 799; opacity: 0; transition: opacity var(--transition); pointer-events: none; }
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(13,27,42,.96); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(4rem, 10vh, 8vh) 1rem 0;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__inner { width: 100%; max-width: 680px; }
.search-overlay__form { position: relative; }
.search-overlay__input {
  width: 100%; background: var(--navy-light); border: 2px solid var(--gold);
  border-radius: var(--radius); color: var(--white);
  font-family: var(--ff-display); font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  padding: 1rem 3.5rem 1rem 1.25rem; outline: none;
  -webkit-appearance: none; appearance: none;
  /* Prevent iOS auto-zoom: font-size must never resolve below 16px */
  min-font-size: 16px;
}
.search-overlay__input::placeholder { color: rgba(255,255,255,.3); }
.search-overlay__submit { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.search-overlay__close { position: absolute; top: 1rem; right: 1rem; color: var(--gray-400); font-size: 1.75rem; transition: color var(--transition); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.search-overlay__close:hover { color: var(--white); }

/* ── Hero ────────────────────────────────────── */
.today-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a3a5c 100%);
  padding: clamp(2rem, 6vw, 5rem) 0; position: relative; overflow: hidden;
  isolation: isolate;
}
.today-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,146,58,.12), transparent); pointer-events: none; }
.today-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, var(--cream)); pointer-events: none; }
.today-hero .container { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(1rem, 4vw, 2rem); }
.today-hero__eyebrow { font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.today-hero__eyebrow::before { content: ''; display: inline-block; width: 1.5rem; height: 2px; background: var(--gold); flex-shrink: 0; }
.today-hero__heading { font-family: var(--ff-display); font-size: clamp(1.75rem, 5.5vw, 4.5rem); font-weight: 900; color: var(--white); line-height: 1.1; letter-spacing: -.02em; }
.today-hero__heading em { font-style: italic; color: var(--gold-light); }
.today-hero__sub { font-family: var(--ff-ui); font-size: clamp(var(--fs-base), 2vw, var(--fs-lg)); color: rgba(255,255,255,.6); margin-top: 1rem; max-width: 540px; line-height: 1.6; }
.today-hero__calendar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.25rem 1.75rem; text-align: center; min-width: 120px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.today-hero__cal-month { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.today-hero__cal-day { font-family: var(--ff-display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; color: var(--white); line-height: 1; }
.today-hero__cal-weekday { font-family: var(--ff-ui); font-size: var(--fs-xs); color: rgba(255,255,255,.5); margin-top: .5rem; }

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: .5rem 0; overflow-x: auto; scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb .container { display: flex; align-items: center; gap: .4rem; font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-600); white-space: nowrap; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--gray-400); }

/* ── Main Layout ─────────────────────────────── */
.site-main { padding: clamp(1.75rem, 5vw, 4rem) 0; }
.content-area { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.content-area.full-width { grid-template-columns: 1fr; }

/* ── Date Sections ───────────────────────────── */
.date-section { margin-bottom: clamp(2rem, 6vw, 4rem); }
.date-section:last-child { margin-bottom: 0; }

/* ── Post Cards ──────────────────────────────── */
/* Default: auto-fill responsive grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }

/* Named column variants — scoped to desktop via min-width media queries below */
@media (min-width: 769px) {
  .posts-grid.two-col,
  .posts-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid.three-col,
  .posts-grid--col-3 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--col-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .posts-grid.three-col,
  .posts-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
  .posts-grid--col-4 { grid-template-columns: repeat(4, 1fr); }
}

.post-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; min-width: 0;
}
@media (hover: hover) {
  .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .post-card:hover .post-card__image-wrap img { transform: scale(1.05); }
  .post-card:hover .post-card__read-more { gap: .6rem; }
}
.post-card__image-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-100); }
.post-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card__category-badge { position: absolute; top: .65rem; left: .65rem; font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 100px; color: var(--white); user-select: none; }
.badge-days { background: var(--gold); }
.badge-history { background: var(--navy); }
.badge-birthdays { background: var(--green-accent); }
.badge-default { background: var(--gray-600); }
.post-card__body { padding: clamp(.9rem, 3vw, 1.5rem); flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; align-items: center; gap: .6rem; font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); margin-bottom: .6rem; flex-wrap: wrap; }
.post-card__title { font-family: var(--ff-display); font-size: clamp(var(--fs-base), 2.5vw, var(--fs-xl)); font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: .6rem; flex: 1; }
.post-card__title a { transition: color var(--transition); display: block; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__read-more { font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; transition: gap var(--transition); min-height: 44px; width: 100%; }

/* Featured card — desktop only, 2-col layout */
@media (min-width: 769px) {
  .post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .post-card--featured .post-card__image-wrap { aspect-ratio: auto; min-height: 240px; }
  .post-card--featured .post-card__title { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); }
}

/* No posts */
.no-posts { background: var(--white); border: 2px dashed var(--gray-200); border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; text-align: center; color: var(--gray-600); }
.no-posts__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.no-posts__title { font-family: var(--ff-display); font-size: var(--fs-xl); color: var(--navy); margin-bottom: .5rem; }

/* ── Sidebar ──────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--header-height) + 1rem); max-height: calc(100vh - var(--header-height) - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gray-200) transparent; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.widget { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.widget-title { font-family: var(--ff-display); font-size: var(--fs-lg); font-weight: 700; color: var(--navy); padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--gold-pale); position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 2.5rem; height: 2px; background: var(--gold); }
.widget ul { display: flex; flex-direction: column; gap: .4rem; }
.widget ul li a { font-family: var(--ff-ui); font-size: var(--fs-sm); color: var(--gray-600); display: flex; justify-content: space-between; align-items: center; padding: .4rem .5rem; border-radius: var(--radius-sm); transition: all var(--transition); min-height: 44px; }
.widget ul li a:hover { color: var(--gold); background: var(--gold-pale); }
.widget ul li .count { background: var(--gray-100); color: var(--gray-400); font-size: var(--fs-xs); padding: .15rem .5rem; border-radius: 100px; flex-shrink: 0; }
.widget--today { background: var(--navy); color: var(--white); text-align: center; }
.widget--today .widget-title { color: var(--gold); border-bottom-color: rgba(255,255,255,.1); }
.widget--today .widget-title::after { background: var(--gold); }
.widget__today-date { font-family: var(--ff-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: var(--white); line-height: 1; }
.widget__today-month { font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.widget__today-day { font-family: var(--ff-ui); font-size: var(--fs-sm); color: rgba(255,255,255,.5); margin-top: .5rem; }
.widget-recent-post { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); }
.widget-recent-post:last-child { border-bottom: none; }
.widget-recent-post__thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-100); }
.widget-recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-post__body { flex: 1; min-width: 0; }
.widget-recent-post__title { font-family: var(--ff-display); font-size: var(--fs-sm); font-weight: 600; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .3rem; transition: color var(--transition); }
.widget-recent-post__title:hover { color: var(--gold); }
.widget-recent-post__date { font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); }

/* ── Single Post ──────────────────────────────── */
.single-hero { background: var(--navy); padding: clamp(2rem, 5vw, 4rem) 0 0; }
.single-hero__category { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .5rem; }
.single-hero__title { font-family: var(--ff-display); font-size: clamp(1.5rem, 4.5vw, 3.5rem); font-weight: 900; color: var(--white); line-height: 1.15; letter-spacing: -.02em; max-width: 900px; margin-bottom: 1.25rem; }
.single-hero__meta { display: flex; align-items: center; gap: 1rem; font-family: var(--ff-ui); font-size: var(--fs-sm); color: rgba(255,255,255,.5); flex-wrap: wrap; padding-bottom: 2rem; row-gap: .4rem; }
.single-hero__meta strong { color: rgba(255,255,255,.8); }
.single-hero__meta .sep { color: rgba(255,255,255,.2); }
.single-featured-image { aspect-ratio: 21/9; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 480px; background: var(--gray-100); }
.single-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Entry Content ───────────────────────────── */
.entry-content { font-size: clamp(var(--fs-base), 2vw, var(--fs-lg)); line-height: 1.8; color: var(--gray-800); max-width: var(--content-width); overflow-wrap: break-word; word-break: break-word; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { font-family: var(--ff-display); font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl)); font-weight: 700; color: var(--navy); margin-top: 2.5em; line-height: 1.2; }
.entry-content h3 { font-family: var(--ff-display); font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl)); font-weight: 700; color: var(--navy); margin-top: 2em; }
.entry-content h4 { font-family: var(--ff-ui); font-size: var(--fs-xl); font-weight: 600; color: var(--navy); }
.entry-content p { margin-top: 1.25em; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.entry-content a:hover { color: var(--navy); }
.entry-content strong { font-weight: 700; color: var(--navy); }
.entry-content em { font-style: italic; }
.entry-content blockquote { border-left: 4px solid var(--gold); padding-left: 1.25rem; font-style: italic; color: var(--gray-600); font-size: clamp(var(--fs-base), 2vw, var(--fs-xl)); margin: 2rem 0; }
.entry-content ul { list-style: none; }
.entry-content ul li { padding-left: 1.5rem; position: relative; }
.entry-content ul li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: .5rem; top: .55em; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }
.entry-content ol li { padding-left: .5rem; }
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 2rem auto; max-width: 100%; height: auto; }
.entry-content table { font-family: var(--ff-ui); font-size: var(--fs-sm); margin: 2rem 0; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content th { background: var(--navy); color: var(--white); padding: .75rem 1rem; text-align: left; font-weight: 600; }
.entry-content td { padding: .65rem 1rem; border-top: 1px solid var(--gray-200); }
.entry-content tr:nth-child(even) td { background: var(--gray-100); }
.entry-content code { background: var(--gray-100); padding: .15em .4em; border-radius: 3px; font-size: .9em; word-break: break-all; }
.entry-content pre { background: var(--navy); color: var(--cream); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content pre code { background: none; padding: 0; word-break: normal; }
.entry-content .wp-block-image { margin: 2rem 0; }

/* ── Author Box ───────────────────────────────── */
.author-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1.25rem; margin-top: 2.5rem; }
.author-box__avatar img { width: 64px; height: 64px; border-radius: 50%; }
.author-box__name { font-family: var(--ff-display); font-size: var(--fs-lg); font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.author-box__bio { font-size: var(--fs-sm); color: var(--gray-600); }

/* ── Post Navigation ──────────────────────────── */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.1rem; transition: all var(--transition); }
@media (hover: hover) { .post-nav-item:hover { border-color: var(--gold); box-shadow: var(--shadow); } }
.post-nav-item--next { text-align: right; }
.post-nav-label { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: .4rem; }
.post-nav-title { font-family: var(--ff-display); font-size: var(--fs-base); font-weight: 700; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Tags ─────────────────────────────────────── */
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.entry-tag { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 500; background: var(--gray-100); color: var(--gray-600); padding: .35rem .8rem; border-radius: 100px; border: 1px solid var(--gray-200); transition: all var(--transition); min-height: 32px; display: flex; align-items: center; }
.entry-tag:hover { background: var(--gold-pale); color: var(--navy); border-color: var(--gold); }

/* ── Comments ─────────────────────────────────── */
.comments-area { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--gray-200); }
.comments-title { font-family: var(--ff-display); font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl)); font-weight: 700; color: var(--navy); margin-bottom: 1.75rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; }
.comment { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.comment-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.comment-avatar img { border-radius: 50%; }
.comment-author-name { font-family: var(--ff-ui); font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.comment-date { font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); }
.comment-content { font-size: var(--fs-sm); line-height: 1.7; }
.comment-respond { margin-top: 2rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2rem); }
.comment-reply-title { font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; }
.comment-form-row { margin-bottom: 1.1rem; }
.comment-form-row label { display: block; font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--gray-800); margin-bottom: .35rem; }
.comment-form-row input,
.comment-form-row textarea { width: 100%; background: var(--gray-100); border: 2px solid transparent; border-radius: var(--radius); padding: .7rem 1rem; font-family: var(--ff-ui); font-size: 16px; color: var(--gray-800); transition: border-color var(--transition); outline: none; -webkit-appearance: none; appearance: none; }
.comment-form-row input:focus,
.comment-form-row textarea:focus { border-color: var(--gold); background: var(--white); }
.comment-form-row textarea { min-height: 120px; resize: vertical; }
.submit-btn { background: var(--gold); color: var(--white); font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 700; padding: .8rem 2rem; border-radius: var(--radius); border: none; cursor: pointer; transition: background var(--transition); letter-spacing: .05em; min-height: 48px; }
.submit-btn:hover { background: var(--navy); }

/* ── Archive ──────────────────────────────────── */
.archive-header { background: var(--navy); padding: clamp(2rem, 5vw, 3rem) 0; margin-bottom: 2rem; }
.archive-header__label { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.archive-header__title { font-family: var(--ff-display); font-size: clamp(1.75rem, 4vw, 3.5rem); font-weight: 900; color: var(--white); line-height: 1.1; }
.archive-header__desc { font-size: var(--fs-base); color: rgba(255,255,255,.5); margin-top: .75rem; max-width: 600px; }
.archive-header__sub { font-family: var(--ff-ui); font-size: var(--fs-sm); color: rgba(255,255,255,.7); margin-top: .4rem; }
.archive-header--today { background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%); padding: clamp(2rem, 5vw, 3rem) 0; }

/* ── Pagination ───────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-numbers { font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 2px solid var(--gray-200); color: var(--gray-600); transition: all var(--transition); }
.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--white); }
.page-numbers.dots { border: none; min-width: auto; }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 1rem; }

/* ── 404 ─────────────────────────────────────── */
.error-404 { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.error-404__code { font-family: var(--ff-display); font-size: clamp(5rem, 15vw, 12rem); font-weight: 900; color: var(--gray-200); line-height: 1; letter-spacing: -.05em; }
.error-404__title { font-family: var(--ff-display); font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); color: var(--navy); margin-bottom: 1rem; }
.error-404__desc { color: var(--gray-600); max-width: 480px; margin: 0 auto 2rem; }
.error-404__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.error-404__btn { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 700; padding: .75rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--gray-200); background: var(--white); color: var(--navy); transition: all var(--transition); min-height: 48px; }
.error-404__btn:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateY(-2px); }
.error-404__btn--primary { background: var(--gold); border-color: var(--gold); color: var(--white); }
.error-404__btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ── Search ───────────────────────────────────── */
.search-header { margin-bottom: 2rem; }
.search-header h1 { font-family: var(--ff-display); font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl)); color: var(--navy); margin-bottom: .5rem; }
.search-header p { color: var(--gray-600); font-family: var(--ff-ui); }
.search-header em { color: var(--gold); font-style: italic; }

/* ── Footer ───────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); margin-top: auto; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,.08); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.footer-top .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand .site-title { font-size: var(--fs-2xl); }
.footer-brand-desc { font-family: var(--ff-ui); font-size: var(--fs-sm); line-height: 1.7; margin-top: 1rem; max-width: 300px; }
.footer-col-title { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { font-family: var(--ff-ui); font-size: var(--fs-sm); color: rgba(255,255,255,.5); transition: color var(--transition); min-height: 44px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--ff-ui); font-size: var(--fs-xs); flex-wrap: wrap; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--gold-light); }
.footer-cols-2 .footer-top .container { grid-template-columns: 2fr 1fr; }
.footer-cols-3 .footer-top .container { grid-template-columns: 2fr 1fr 1fr; }
.footer-cols-4 .footer-top .container { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* ── Back to Top ──────────────────────────────── */
.back-to-top { position: fixed; bottom: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); width: 48px; height: 48px; background: var(--gold); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 500; border: none; touch-action: manipulation; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); transform: translateY(-3px); }

/* Reading Progress */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 9999; width: 0%; transition: width .1s linear; }

/* ── Misc Components ──────────────────────────── */
.section-view-all { font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--gold); white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--transition); flex-shrink: 0; min-height: 44px; }
.section-view-all:hover { gap: .55rem; color: var(--gold-light); }
.today-notice { background: var(--gold-pale); border: 1px solid var(--gold); border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: 1.25rem; font-family: var(--ff-ui); font-size: var(--fs-sm); color: var(--navy); }
.post-card__image-wrap--placeholder { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.post-card__no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .4; }
.post-card__date-badge { background: var(--gold-pale); color: var(--navy); padding: .15rem .6rem; border-radius: 100px; font-weight: 600; font-family: var(--ff-ui); font-size: var(--fs-xs); }
.today-hero--gradient { background: linear-gradient(135deg, var(--navy) 0%, #1a3550 50%, #c9923a22 100%); }
.today-only-banner { display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.today-only-banner__icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.today-only-banner__text { flex: 1; min-width: 180px; }
.today-only-banner__back { align-self: flex-start; margin-left: auto; font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-light); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .5rem 1.1rem; border-radius: var(--radius); transition: all var(--transition); min-height: 44px; display: flex; align-items: center; }
.today-only-banner__back:hover { background: rgba(255,255,255,.15); border-color: var(--gold); }
.today-only-count { font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--gray-600); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-200); }
.today-events-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--white); background: var(--gold); padding: .6rem 1.4rem; border-radius: var(--radius); transition: background var(--transition), transform var(--transition); min-height: 44px; }
.today-events-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.entry-article { width: 100%; }
.entry-featured-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/6; margin-bottom: 2rem; }
.entry-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.site-header.is-sticky { position: sticky; top: 0; z-index: 900; }
.content-area.sidebar-left { grid-template-columns: 320px 1fr; }
.content-area.sidebar-left .sidebar { order: -1; }

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

/* Tablet wide ≤1024px */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr 260px; gap: 1.75rem; }
  .content-area.sidebar-left { grid-template-columns: 1fr 260px; }
  .content-area.sidebar-left .sidebar { order: 0; }
  .footer-top .container,
  .footer-cols-2 .footer-top .container,
  .footer-cols-3 .footer-top .container,
  .footer-cols-4 .footer-top .container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Tablet narrow ≤900px */
@media (max-width: 900px) {
  .content-area,
  .content-area.sidebar-left,
  .content-area.full-width { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; overflow-y: visible; }
  .today-hero .container { grid-template-columns: 1fr; }
  .today-hero__calendar { display: none; }
}

/* ════════════════════════════════════════════════
   MOBILE ≤768px
   - Single column for EVERYTHING
   - Nav uses pointer-events:none when closed
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show hamburger */
  .menu-toggle { display: flex; }
  .nav-overlay { display: block; }

  /* ─── KEY FIX: nav is position:fixed but invisible when closed.
         pointer-events:none means it CANNOT block any links/buttons
         on the page underneath it. ─── */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: var(--navy-mid);
    padding: 5rem 1.25rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right .32s cubic-bezier(.16,1,.3,1);
    z-index: 800;
    box-shadow: -4px 0 30px rgba(0,0,0,.4);
    pointer-events: none;   /* ← CLOSED: cannot block anything */
  }
  .main-nav.is-open {
    right: 0;
    pointer-events: auto;   /* ← OPEN: fully interactive */
  }

  .nav-menu { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { font-size: var(--fs-base); padding: .8rem 1rem; width: 100%; min-height: 48px; display: flex; align-items: center; }
  .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,.05); box-shadow: none; border: none; margin: .2rem 0 .2rem 1rem; padding: .25rem 0; }
  .nav-menu .sub-menu a { min-height: 44px; font-size: var(--fs-sm); }

  /* ─── SINGLE COLUMN: every grid becomes 1 column ─── */
  .posts-grid,
  .posts-grid.two-col,
  .posts-grid.three-col,
  .posts-grid--col-2,
  .posts-grid--col-3,
  .posts-grid--col-4 { grid-template-columns: 1fr !important; }

  .content-area,
  .content-area.full-width,
  .content-area.sidebar-left { grid-template-columns: 1fr !important; }
  .sidebar { position: static; max-height: none; overflow-y: visible; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-card--featured { display: flex; flex-direction: column; grid-template-columns: unset; }

  /* Footer → single column */
  .footer-top .container,
  .footer-cols-2 .footer-top .container,
  .footer-cols-3 .footer-top .container,
  .footer-cols-4 .footer-top .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: .75rem; }
  .footer-bottom-links { justify-content: center; }

  /* Misc */
  .top-bar__links { display: none; }
  .author-box { flex-direction: column; }
  .author-box__avatar img { width: 52px; height: 52px; }
  .site-description { display: none; }
  .site-header .container { gap: .75rem; }
  .single-featured-image { aspect-ratio: 16/9; max-height: 260px; }
  .submit-btn { width: 100%; max-width: 100%; }
  .section-heading__line { display: none; }
  .today-only-banner { flex-direction: column; gap: .75rem; }
  .today-only-banner__back { margin-left: 0; width: 100%; justify-content: center; display: flex; }
  .today-events-btn { width: 100%; justify-content: center; }
  .content-area.sidebar-left .sidebar { order: 0; }
  .error-404__links { flex-direction: column; align-items: center; }
}

/* Small mobile ≤480px */
@media (max-width: 480px) {
  .today-hero { padding-bottom: 3rem; }
  .page-numbers { min-width: 38px; min-height: 38px; font-size: var(--fs-xs); }
  .page-numbers.dots { display: none; }
  .post-card__body { padding: .875rem; }
  .back-to-top { width: 42px; height: 42px; font-size: 1rem; }
  /* Prevent iOS auto-zoom on input focus */
  input, textarea, select { font-size: 16px !important; }
  /* Ensure search overlay input also never zooms on small screens */
  .search-overlay__input { font-size: 16px !important; }
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; background: var(--gold); color: var(--white); padding: .5rem 1rem; border-radius: 0 0 var(--radius) var(--radius); font-family: var(--ff-ui); z-index: 9999; font-weight: 600; }
.skip-link:focus { left: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card__image-wrap img { transform: none; }
}

/* ═══════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .sidebar, .back-to-top, .reading-progress, .search-overlay, .top-bar, .menu-toggle { display: none !important; }
  .content-area { grid-template-columns: 1fr !important; }
  a { color: inherit !important; text-decoration: underline; }
  .entry-content { font-size: 12pt; max-width: 100%; }
  .single-hero { background: none !important; }
  .single-hero__title { color: #000; }
}

/* ═══════════════════════════════════════════════
   WP ALIGNMENT CLASSES
   ═══════════════════════════════════════════════ */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; max-width: 50%; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide { max-width: none; margin-left: calc(-1 * clamp(1rem,4vw,2rem)); margin-right: calc(-1 * clamp(1rem,4vw,2rem)); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--fs-sm); color: var(--gray-400); text-align: center; margin-top: .5rem; font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: .75rem; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 768px) {
  .alignleft, .alignright { float: none; margin: 1rem auto; max-width: 100%; }
}
