/*
Theme Name:   Everyday Vitality Life Child
Theme URI:    https://everydayvitalitylife.org
Description:  Tide Chart / Almanac Bands editorial child theme for Everyday Vitality Life. Custom GeneratePress child.
Author:       Rosalind Achebe
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   EVERYDAY VITALITY LIFE - DESIGN SYSTEM
   Archetype:  Tide Chart / Almanac Bands
   Fonts:      Neuton (display) / Overpass (body)
   Palette:    deep-sea #1E3F52 + salt-flat #F0EDE4 + sunrise #D5813F
   Voice:      sensory, body-first, never clinical

   Signature devices (this site's own):
     evl-measure     the tide-gauge rule with downward ticks
     evl-band        almanac bands of deliberately unequal height
     evl-waterline   the CSS wave boundary into a dark band
     evl-hours       hour markers, a scroll-snap timeline scale
     evl-gauge       the hero's measuring staff / thumbnail rail

   Shape system: radius 0 everywhere; photographs take 2px only.
   Motion: 1. CSS hover plus the scroll-progress bar. No JS.
   ============================================================ */

:root {
  --color-primary: #1E3F52;        /* deep-sea */
  --color-primary-dark: #142A38;   /* deepest water */
  --color-primary-soft: #9DB6C4;   /* tick marks, hairlines */
  --color-bg: #F0EDE4;             /* salt-flat paper */
  --color-bg-deep: #E3DFD2;        /* shell */
  --color-accent: #D5813F;         /* sunrise, the only accent */
  --color-accent-soft: #EBB98A;
  --color-accent-deep: #A85F26;
  --color-charcoal: #24333C;
  --color-ink: #1B2A33;
  --color-muted: #5E7280;
  --color-line: #CFD8DC;
  --color-white: #FBFAF6;

  --font-serif: 'Neuton', Georgia, 'Times New Roman', serif;
  --font-sans: 'Overpass', 'Segoe UI', sans-serif;

  --max-w: 1240px;
  --max-w-wide: 1440px;
  --max-w-narrow: 760px;
  /* Shape lock: charts are drawn with lines, not soft cards. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-photo: 2px;
}

/* ============================================================
   GLOBAL
   ============================================================ */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.14;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.05rem); margin-top: 2.3em; margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; margin-top: 1.9em; margin-bottom: 0.5em; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
a:hover { color: var(--color-accent-deep); text-decoration-color: var(--color-accent); }
p { margin: 0 0 1.15em; }

blockquote {
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-deep);
  padding: 1.4rem 1.6rem;
  margin: 2.1em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--color-primary);
  border-radius: 0;
}

hr { border: none; height: 1px; background: var(--color-line); margin: 3em 0; }
img { max-width: 100%; height: auto; border-radius: var(--radius-photo); }
figure { margin: 2em 0; }
figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.5rem; text-align: left; }

.tb-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}

/* ============================================================
   SIGNATURE 1 - THE MEASURE RULE (tide gauge)
   A 3px deep-sea rule carrying downward ticks at two intervals,
   with the section label sitting in a notch cut into it.
   This replaces the base theme's eyebrow + headline stack.
   ============================================================ */
.evl-measure {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin: 0 0 2rem;
  border-top: 3px solid var(--color-primary);
  padding-top: 0;
}
.evl-measure::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 11px;
  background-image:
    repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(to right, var(--color-accent) 0 2px, transparent 2px 84px);
  background-size: auto 6px, auto 12px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
  pointer-events: none;
}
.evl-measure-label {
  position: relative; z-index: 2;
  background: var(--color-bg);
  padding: 0.55rem 1rem 0.1rem 0;
  margin-top: -0.15rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.evl-measure-label b { color: var(--color-accent); font-weight: 700; }
.evl-measure-note {
  position: relative; z-index: 2;
  background: var(--color-bg);
  padding: 0.55rem 0 0.1rem 1rem;
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-decoration: none;
}
.evl-measure-note:hover { color: var(--color-accent-deep); }
.shell .evl-measure-label, .shell .evl-measure-note { background: var(--color-bg-deep); }
.dark .evl-measure, .deepest .evl-measure { border-top-color: var(--color-accent); }
.dark .evl-measure::before, .deepest .evl-measure::before {
  background-image:
    repeating-linear-gradient(to right, var(--color-primary-soft) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(to right, var(--color-accent) 0 2px, transparent 2px 84px);
}
.dark .evl-measure-label, .deepest .evl-measure-label {
  background: transparent; color: var(--color-bg); padding-left: 0;
}
.dark .evl-measure-note, .deepest .evl-measure-note {
  background: transparent; color: var(--color-primary-soft);
}
.dark .evl-measure-note:hover, .deepest .evl-measure-note:hover { color: var(--color-accent-soft); }

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

/* ============================================================
   MASTHEAD - left-aligned wordmark over a measure rule
   ============================================================ */
.tb-masthead {
  background: var(--color-bg);
  padding: 1.6rem 0 0;
  border-bottom: none;
}
.tb-masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.tb-masthead-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  text-align: left;
}
.tb-masthead-title:hover { color: var(--color-accent-deep); }
.tb-masthead-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  text-align: left;
  margin: 0;
}
.tb-masthead-meta {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}
.tb-masthead-meta.right { margin-left: auto; text-align: right; }
@media (max-width: 760px) {
  .tb-masthead-inner { gap: 0.5rem 1rem; }
  .tb-masthead-meta.right { margin-left: 0; width: 100%; text-align: left; }
}

/* Nav: sits on the measure rule, one line at desktop, scrolls on small screens */
.tb-nav {
  background: var(--color-bg);
  border: none;
  max-width: var(--max-w);
  margin: 1.1rem auto 0;
  padding: 0 1.5rem;
  width: 100%;
}
.tb-nav-inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid var(--color-line);
  position: relative;
}
.tb-nav-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 26px);
  background-repeat: repeat-x;
  pointer-events: none;
}
.tb-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0.7rem;
  display: flex;
  gap: 1.15rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}
.tb-nav-menu::-webkit-scrollbar { display: none; }
.tb-nav-menu li { list-style: none; margin: 0; padding: 0; }
.tb-nav-menu li a {
  display: block;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tb-nav-menu li a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tb-nav-menu li.current-menu-item > a { color: var(--color-accent-deep); border-bottom-color: var(--color-accent); }
@media (max-width: 1080px) { .tb-nav-menu { justify-content: flex-start; gap: 1.4rem; } }

/* Keep GP from turning .tb-main into a flex column */
.tb-main { display: block !important; width: 100%; }
.tb-main > * { width: 100%; }

/* ============================================================
   SIGNATURE 2 - ALMANAC BANDS (unequal heights = hours of a day)
   ============================================================ */
.evl-band { padding: 3.4rem 0; }
.evl-band.shell { background: var(--color-bg-deep); }
.evl-band.dark { background: var(--color-primary); color: var(--color-bg); }
.evl-band.dark h2, .evl-band.dark h3, .evl-band.dark h4 { color: var(--color-bg); }
.evl-band.deepest { background: var(--color-primary-dark); color: var(--color-bg); }
.evl-band.deepest h2, .evl-band.deepest h3, .evl-band.deepest h4 { color: var(--color-bg); }

/* ============================================================
   HERO - 62/38 split, feature photo left, gauge staff right
   ============================================================ */
.evl-hero { padding: 2.6rem 0 3rem; background: var(--color-bg); }
.evl-hero-grid { display: grid; grid-template-columns: 62fr 38fr; gap: 2.8rem; align-items: start; }
.evl-hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.7rem;
}
.evl-hero-main { display: flex; flex-direction: column; min-width: 0; }
.evl-hero-cover { display: block; }
.evl-hero-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.evl-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 1.1rem 0 0.6rem; font-weight: 800; }
.evl-hero h1 a { color: inherit; text-decoration: none; }
.evl-hero h1 a:hover { color: var(--color-accent-deep); }
.evl-hero-dek { font-size: 1.06rem; color: var(--color-muted); max-width: 56ch; margin-bottom: 0.8rem; }
.evl-hero-by {
  font-family: var(--font-sans);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600;
}

/* SIGNATURE 5 - the gauge column: a measuring staff with rows hung off it */
.evl-gauge { position: relative; padding-left: 2.1rem; margin-top: 1.85rem; }
.evl-gauge::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem;
  width: 1px; background: var(--color-primary);
}
.evl-gauge-head {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-primary);
  border-top: 3px solid var(--color-primary);
  padding-top: 0.6rem; padding-left: 2.1rem;
  margin: 0 0 1rem -2.1rem;
}
.evl-gauge-row {
  position: relative;
  display: grid; grid-template-columns: 1fr 76px; gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-line);
  align-items: center;
  text-decoration: none;
}
.evl-gauge-row::before {
  content: ""; position: absolute; left: -2.1rem; top: 50%;
  width: 13px; height: 1px; background: var(--color-primary);
}
.evl-gauge-row::after {
  content: ""; position: absolute; left: -2.45rem; top: 50%;
  width: 7px; height: 7px; margin-top: -3px; background: var(--color-accent);
}
.evl-gauge-row:last-child { border-bottom: 0; }
.evl-gauge-hour {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--color-accent); text-transform: uppercase; margin-bottom: 0.15rem;
}
.evl-gauge-row h4 { font-size: 1rem; font-weight: 700; line-height: 1.28; margin: 0; }
.evl-gauge-row:hover h4 { color: var(--color-accent-deep); }
.evl-gauge-row img { width: 76px; height: 60px; object-fit: cover; }
.evl-gauge-empty { color: var(--color-muted); font-size: 0.95rem; }

/* ============================================================
   SIGNATURE 4 - HOUR MARKERS (scroll-snap timeline scale)
   Rectangular hour blocks with a tick above each. Not pill filters.
   ============================================================ */
.evl-hours {
  display: flex; gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.evl-hour {
  scroll-snap-align: start;
  flex: 1 0 auto;
  min-width: 132px;
  position: relative;
  padding: 1.5rem 0.9rem 0.95rem;
  border: 1px solid var(--color-primary);
  border-left-width: 0;
  text-align: left;
  background: transparent;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.evl-hour:first-child { border-left-width: 1px; }
.evl-hour::before {
  content: ""; position: absolute; top: 0; left: 0.9rem;
  width: 1px; height: 9px; background: var(--color-accent);
}
.evl-hour-time {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--color-accent); text-transform: uppercase; margin-bottom: 0.2rem;
}
.evl-hour-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.02rem; font-weight: 700; color: var(--color-primary); line-height: 1.15;
}
.evl-hour.on { background: var(--color-primary); }
.evl-hour.on .evl-hour-name { color: var(--color-bg); }
.evl-hour.on .evl-hour-time { color: var(--color-accent-soft); }
.evl-hour:hover { background: var(--color-primary-soft); }
.evl-hour.on:hover { background: var(--color-primary-dark); }

/* ============================================================
   CATEGORY BANDS - 4 up, then an unequal 3 (lead card is wider)
   ============================================================ */
.evl-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.evl-cats .r2 {
  grid-column: span 4;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-top: 0.2rem;
}
.evl-cat { display: block; text-decoration: none; }
.evl-cat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity 0.2s; }
.evl-cat:hover img { opacity: 0.86; }
.evl-cat .evl-cat-ph {
  width: 100%; aspect-ratio: 4/3; background: var(--color-primary-soft); border-radius: var(--radius-photo);
}
.evl-cat-bar {
  border-top: 3px solid var(--color-primary);
  position: relative; margin-top: 0.85rem; padding-top: 0.6rem;
}
.evl-cat-bar::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 34px; height: 3px; background: var(--color-accent);
}
.evl-cat-bar::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 1px; height: 8px; background: var(--color-accent);
}
.evl-cat h3 { font-size: 1.14rem; font-weight: 700; margin: 0; }
.evl-cat:hover h3 { color: var(--color-accent-deep); }
.evl-cat-count {
  font-family: var(--font-sans);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 600; margin-top: 0.2rem;
}
.evl-cats .r2 .evl-cat.lead img,
.evl-cats .r2 .evl-cat.lead .evl-cat-ph { aspect-ratio: 16/9; }

/* ============================================================
   DAYPART BAND - a solid panel overhanging the photo's edge
   ============================================================ */
.evl-daypart {
  position: relative;
  display: grid; grid-template-columns: 34% 66%;
  align-items: center; min-height: 340px;
}
.evl-daypart-photo { grid-column: 2; grid-row: 1; height: 100%; }
.evl-daypart-photo img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 0;
}
.evl-daypart-panel {
  grid-column: 1 / span 2; grid-row: 1;
  align-self: center; justify-self: start;
  width: min(540px, 88%);
  background: var(--color-bg);
  padding: 2.1rem 2.2rem 1.8rem;
  position: relative; z-index: 2;
  border-top: 3px solid var(--color-primary);
  margin-top: -1.5rem;
}
.evl-daypart-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background-image: repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 26px);
  background-repeat: repeat-x; pointer-events: none;
}
.evl-daypart-panel h2 { font-size: 1.9rem; margin: 0 0 0.5rem; }
.evl-daypart-panel h2 a { color: inherit; text-decoration: none; }
.evl-daypart-panel h2 a:hover { color: var(--color-accent-deep); }
.evl-daypart-panel p { color: var(--color-muted); margin-bottom: 0.7rem; }
.evl-daypart-link {
  font-family: var(--font-sans);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent); text-decoration: none;
}
.evl-daypart-link:hover { color: var(--color-accent-deep); }

/* ============================================================
   SIGNATURE 3 - THE WATER LINE (boundary into a dark band)
   ============================================================ */
.evl-waterline {
  display: block; width: 100%; height: 72px;
  color: var(--color-primary); background: var(--color-bg-deep);
}
.evl-waterline path { fill: currentColor; }

/* Editor's note over deep water */
.evl-note { display: grid; grid-template-columns: 230px 1fr; gap: 2.4rem; align-items: center; }
.evl-note img { width: 230px; height: 290px; object-fit: cover; }
.evl-note .evl-note-ph { width: 230px; height: 290px; background: var(--color-primary-dark); }
.evl-note h2 { font-size: 1.85rem; margin: 0 0 0.7rem; }
.evl-note p { color: var(--color-primary-soft); max-width: 62ch; }
.evl-note .sig {
  font-family: var(--font-serif); font-style: italic; font-size: 1.12rem;
  color: var(--color-accent-soft); margin-top: 0.4rem;
}

/* ============================================================
   TIDE MOSAIC - 12-col grid, rows sum to 12 exactly (no holes)
   ============================================================ */
.evl-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.evl-tile { grid-column: span 3; display: flex; flex-direction: column; }
.evl-tile a { text-decoration: none; }
.evl-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.evl-tile .evl-tile-ph { width: 100%; aspect-ratio: 4/3; background: var(--color-primary-soft); border-radius: var(--radius-photo); }
.evl-tile h4 { font-size: 1.02rem; margin: 0.6rem 0 0; font-weight: 700; line-height: 1.25; }
.evl-tile h4 a { color: inherit; }
.evl-tile:hover h4 a { color: var(--color-accent-deep); }
.evl-tile .m {
  font-family: var(--font-sans);
  font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 700; margin-top: 0.5rem;
}
.evl-tile.big { grid-column: span 6; }
.evl-tile.big img, .evl-tile.big .evl-tile-ph { aspect-ratio: 16/10; }
.evl-tile.big h4 { font-size: 1.34rem; }
.evl-tile.mid { grid-column: span 4; }
.evl-tile.wide { grid-column: span 9; }
.evl-tile.wide img, .evl-tile.wide .evl-tile-ph { aspect-ratio: 21/9; }

/* ============================================================
   BY SECTION - 4 columns of thumbnail rows, over deepest water
   ============================================================ */
.evl-bysec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.2rem; }
.evl-bysec-block { display: flex; flex-direction: column; }
.evl-bysec-block h3 {
  font-size: 1.06rem;
  border-top: 3px solid var(--color-accent);
  padding-top: 0.55rem; margin: 0 0 0.7rem;
  position: relative;
}
.evl-bysec-block h3 a { color: inherit; text-decoration: none; }
.dark .evl-bysec-block h3, .deepest .evl-bysec-block h3 { color: var(--color-bg); }
.dark .evl-bysec-block h3 a:hover, .deepest .evl-bysec-block h3 a:hover { color: var(--color-accent-soft); }
.evl-bysec-row {
  display: grid; grid-template-columns: 54px 1fr; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(157, 182, 196, 0.28);
  align-items: center;
}
.evl-bysec-row:last-of-type { border-bottom: 0; }
.evl-bysec-row img { width: 54px; height: 44px; object-fit: cover; }
.evl-bysec-row .evl-bysec-ph { width: 54px; height: 44px; background: var(--color-primary); border-radius: var(--radius-photo); }
.evl-bysec-row a {
  font-family: var(--font-sans);
  font-size: 0.87rem; line-height: 1.32; color: var(--color-bg);
  font-weight: 400; text-decoration: none;
}
.evl-bysec-row a:hover { color: var(--color-accent-soft); }
.evl-bysec-more {
  font-family: var(--font-sans);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-soft); font-weight: 700; text-decoration: none;
  margin-top: 0.6rem; align-self: flex-start;
}
.evl-bysec-more:hover { color: var(--color-accent); }

/* ============================================================
   NEWSLETTER - left aligned, square field and button
   ============================================================ */
.tb-newsletter { background: var(--color-primary); color: var(--color-bg); padding: 3.4rem 0; }
.tb-newsletter-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; text-align: left; }
.evl-news { max-width: 640px; text-align: left; }
.evl-news h3 { font-size: 1.75rem; margin: 0 0 0.5rem; color: var(--color-bg); }
.evl-news p { color: var(--color-primary-soft); margin-bottom: 0; }
.evl-news form, .tb-newsletter-form {
  display: flex; gap: 0; margin-top: 1.1rem; max-width: 460px; flex-wrap: nowrap;
}
.evl-news input, .tb-newsletter-form input[type="email"] {
  flex: 1; padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-primary-soft);
  background: var(--color-white); color: var(--color-ink);
  font-family: var(--font-sans); font-size: 0.94rem; border-radius: 0;
}
.evl-news input::placeholder, .tb-newsletter-form input[type="email"]::placeholder { color: var(--color-muted); }
.evl-news button, .tb-newsletter-form button {
  padding: 0.8rem 1.5rem; border: 0;
  background: var(--color-accent); color: #2A1607;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; border-radius: 0;
  transition: background 0.18s;
}
.evl-news button:hover, .tb-newsletter-form button:hover { background: var(--color-accent-soft); }
.evl-news small, .tb-newsletter-note {
  display: block; margin-top: 0.7rem; color: var(--color-primary-soft); font-size: 0.78rem;
}
.tb-newsletter-note a { color: inherit; }
@media (max-width: 560px) { .evl-news form, .tb-newsletter-form { flex-direction: column; } }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single .entry-content, .page .entry-content {
  max-width: var(--max-w-narrow); margin: 0 auto; font-size: 18px; line-height: 1.8;
}
.single .entry-content > p:first-of-type { font-size: 1.2rem; line-height: 1.65; color: var(--color-ink); }
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif); font-size: 3.3rem; float: left; line-height: 0.9;
  padding: 0.3rem 0.6rem 0 0; color: var(--color-accent); font-weight: 800;
}
.tb-post-header { max-width: var(--max-w-narrow); margin: 2.5rem auto 1.5rem; padding: 0 1.5rem; }
.tb-breadcrumb {
  font-family: var(--font-sans); font-size: 0.76rem;
  color: var(--color-muted); letter-spacing: 0.08em; margin-bottom: 1rem;
}
.tb-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--color-accent-deep); }
/* Category badge is a square hour block, matching the hour rail */
.tb-post-cat {
  display: inline-block; position: relative;
  font-family: var(--font-sans); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-bg); background: var(--color-primary);
  padding: 0.5rem 0.9rem 0.4rem; border-radius: 0;
  text-decoration: none; font-weight: 700; margin-bottom: 1rem;
}
.tb-post-cat::before {
  content: ""; position: absolute; top: 0; left: 0.9rem;
  width: 1px; height: 7px; background: var(--color-accent);
}
.tb-post-cat:hover { background: var(--color-primary-dark); color: var(--color-bg); }
.tb-post-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.13; margin: 0.3rem 0 1.2rem; }
.tb-post-meta {
  font-family: var(--font-sans); font-size: 0.85rem; color: var(--color-muted);
  letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center;
  border-top: 1px solid var(--color-line); padding-top: 0.8rem;
}
.tb-post-meta strong { color: var(--color-primary); font-weight: 700; }
.tb-post-cover { max-width: var(--max-w-wide); margin: 2rem auto 3rem; padding: 0 1.5rem; }
.tb-post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-photo); }

.ftc-disclosure {
  max-width: var(--max-w-narrow); margin: 0 auto 2.5rem;
  background: var(--color-bg-deep);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem; border-radius: 0;
  font-size: 0.93rem; color: var(--color-charcoal);
}
.ftc-disclosure p { margin: 0; }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

.single .entry-content blockquote {
  border-left: none; background: transparent; text-align: left;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.45;
  color: var(--color-primary); padding: 1.6rem 0; margin: 2.4rem 0;
  border-top: 3px solid var(--color-accent);
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
}

.tb-author-bio {
  max-width: var(--max-w-narrow); margin: 4rem auto 2rem; padding: 2rem 0 0;
  background: transparent; border: none;
  border-top: 3px solid var(--color-primary);
  border-radius: 0;
  display: grid; grid-template-columns: 96px 1fr; gap: 1.6rem; align-items: start;
  position: relative;
}
.tb-author-bio::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background-image: repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x; pointer-events: none;
}
.tb-author-avatar {
  width: 96px; height: 96px; border-radius: 0;
  background: var(--color-primary); color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
}
.tb-author-bio .tb-eyebrow { margin-bottom: 0.4rem; display: block; }
.tb-author-bio h4 { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 700; }
.tb-author-bio p { font-size: 0.95rem; color: var(--color-muted); margin: 0 0 0.4rem; line-height: 1.6; }
.tb-author-bio a { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; }
@media (max-width: 540px) { .tb-author-bio { grid-template-columns: 1fr; } }

.tb-related { max-width: var(--max-w); margin: 4rem auto 3rem; padding: 0 1.5rem; }
.tb-related h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1.5rem; padding-top: 0.6rem;
  border-top: 3px solid var(--color-primary);
  position: relative;
}
.tb-related h3::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background-image: repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x; pointer-events: none;
}
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 700px) { .tb-related-grid { grid-template-columns: 1fr; } }
.tb-related-card { text-decoration: none; color: inherit; display: block; }
.tb-related-card .tb-related-cover {
  aspect-ratio: 4/3; overflow: hidden; background: var(--color-primary-soft); margin-bottom: 0.7rem;
}
.tb-related-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-related-card .tb-related-title { font-size: 1.08rem; line-height: 1.3; margin: 0; font-weight: 700; }
.tb-related-card:hover .tb-related-title { color: var(--color-accent-deep); }

/* ============================================================
   ARCHIVE
   ============================================================ */
.tb-archive-hero {
  background: var(--color-bg-deep);
  padding: 3.2rem 1.5rem 2.8rem;
  border-bottom: none;
  text-align: left;
}
.tb-archive-hero > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.tb-archive-hero .tb-eyebrow { margin-bottom: 0.7rem; }
.tb-archive-hero h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 800; margin: 0 0 0.6rem; }
.tb-archive-hero p { font-size: 1.02rem; color: var(--color-muted); line-height: 1.6; max-width: 68ch; }

.tb-archive-grid {
  max-width: var(--max-w); margin: 3rem auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 900px) { .tb-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-archive-grid { grid-template-columns: 1fr; } }
.tb-archive-card { text-decoration: none; color: inherit; display: block; }
.tb-archive-card .tb-archive-cover {
  aspect-ratio: 4/3; overflow: hidden; background: var(--color-primary-soft); margin-bottom: 0.9rem;
}
.tb-archive-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-archive-card .tb-archive-meta {
  font-family: var(--font-sans); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 0.35rem; font-weight: 700;
}
.tb-archive-card .tb-archive-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.5rem; }
.tb-archive-card:hover .tb-archive-title { color: var(--color-accent-deep); }
.tb-archive-card .tb-archive-excerpt { font-size: 0.94rem; color: var(--color-muted); line-height: 1.55; }

.tb-archive-feature { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 1.5rem; }
.tb-spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 0 0 3rem; border-bottom: 3px solid var(--color-primary);
}
@media (max-width: 800px) { .tb-spread { grid-template-columns: 1fr; gap: 2rem; } }
.tb-spread-image { overflow: hidden; aspect-ratio: 4/3; background: var(--color-primary-soft); display: block; }
.tb-spread-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-spread-text .tb-eyebrow { margin-bottom: 0.7rem; }
.tb-spread-text h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.2; margin: 0 0 1rem; }
.tb-spread-text h3 a { color: inherit; text-decoration: none; }
.tb-spread-text h3 a:hover { color: var(--color-accent-deep); }
.tb-spread-text .tb-spread-excerpt { font-size: 1.04rem; color: var(--color-muted); margin-bottom: 1.1rem; line-height: 1.65; }
.tb-spread-text .tb-spread-read {
  display: inline-block; font-family: var(--font-sans); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent);
  font-weight: 700; text-decoration: none;
}
.tb-spread-text .tb-spread-read:hover { color: var(--color-accent-deep); }

.navigation.pagination a, .navigation.pagination .page-numbers {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.85rem; border: 1px solid var(--color-primary);
  color: var(--color-primary); text-decoration: none; border-radius: 0;
  display: inline-block; margin: 0 0.15rem;
}
.navigation.pagination .page-numbers.current { background: var(--color-primary); color: var(--color-bg); }
.navigation.pagination a:hover { background: var(--color-accent); color: #2A1607; border-color: var(--color-accent); }

/* ============================================================
   TRUST PAGES - "The Day Sheet"  (see page.php)
   ============================================================ */
.evl-sheet { max-width: 900px; margin: 0 auto 4rem; padding: 0 1.5rem; }

/* Head: a salt paper panel on a deep-sea plinth, the measure rule
   along its bottom edge, the title breaking upward through it. */
.evl-sheet-head { position: relative; margin: 0 0 2.6rem; }
.evl-sheet-plinth {
  background: var(--color-primary);
  padding: 2.4rem 0 0;
  margin: 0 calc(-1 * max(0px, (100vw - 900px) / 2)) 0;
}
.evl-sheet-panel {
  max-width: 900px; margin: 0 auto;
  background: var(--color-bg);
  padding: 1.9rem 2rem 0;
  position: relative;
  border-bottom: 3px solid var(--color-primary);
}
.evl-sheet-panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 8px;
  background-image:
    repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(to right, var(--color-accent) 0 2px, transparent 2px 84px);
  background-size: auto 5px, auto 8px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.evl-sheet-panel h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800; margin: 0; line-height: 1.1;
  color: var(--color-primary);
  position: relative; top: -0.15em;
}
/* Last updated sits IN a notch cut into the measure rule */
.evl-sheet-stamp {
  position: absolute; right: 2rem; bottom: -0.62rem; z-index: 3;
  background: var(--color-bg);
  padding: 0 0.2rem 0 0.7rem;
  line-height: 1;
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-accent);
}
@media (max-width: 940px) { .evl-sheet-plinth { margin: 0 -1.5rem; } .evl-sheet-panel { padding: 1.6rem 1.5rem 0; } .evl-sheet-stamp { right: 1.5rem; } }

/* Contents: a vertical gauge staff down the left margin */
.evl-sheet-toc {
  position: relative;
  margin: 3rem 0 2.6rem;
  padding-left: 2.1rem;
  display: flex; flex-direction: column;
}
.evl-sheet-toc::before {
  content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem;
  width: 1px; background: var(--color-primary);
}
.evl-toc-entry {
  position: relative;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600;
  color: var(--color-primary); text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}
.evl-toc-entry:last-child { border-bottom: 0; }
.evl-toc-entry::before {
  content: ""; position: absolute; left: -2.1rem; top: 50%;
  width: 13px; height: 1px; background: var(--color-primary);
}
.evl-toc-entry::after {
  content: ""; position: absolute; left: -2.45rem; top: 50%;
  width: 7px; height: 7px; margin-top: -3px; background: var(--color-accent);
}
.evl-toc-entry:hover { color: var(--color-accent-deep); }

/* Body: h2 gets an hour block floated into the left margin */
.evl-sheet-body { counter-reset: evlhour; }
.evl-sheet-body h2 {
  counter-increment: evlhour;
  position: relative;
  font-size: 1.42rem; font-weight: 700;
  margin: 2.9rem 0 0.9rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-primary-soft);
}
.evl-sheet-body h2::before {
  content: counter(evlhour, decimal-leading-zero);
  position: absolute; left: -3.6rem; top: 0.45rem;
  width: 2.5rem; padding: 0.28rem 0 0.22rem;
  border: 1px solid var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-align: center; color: var(--color-primary);
  background: var(--color-bg);
}
.evl-sheet-body h2::after {
  content: ""; position: absolute; left: -3.35rem; top: -0.1rem;
  width: 1px; height: 8px; background: var(--color-accent);
}
@media (max-width: 1010px) {
  .evl-sheet-body h2 { padding-left: 3.4rem; }
  .evl-sheet-body h2::before { left: 0; top: 0.5rem; }
  .evl-sheet-body h2::after { left: 0.25rem; top: -0.05rem; }
}
.evl-sheet-body h3 { font-size: 1.14rem; font-weight: 700; margin: 1.9rem 0 0.6rem; }
.evl-sheet-body p, .evl-sheet-body li { font-size: 1.02rem; line-height: 1.78; }
.evl-sheet-body ul, .evl-sheet-body ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.evl-sheet-body li { margin-bottom: 0.4em; }
.evl-sheet-body a { color: var(--color-primary); text-decoration-color: var(--color-accent); }
.evl-sheet-body a:hover { color: var(--color-accent-deep); }

/* Identity block: a water-line panel. Sunrise rule on the TOP edge
   only, with ticks descending from it. */
.evl-sheet-body > p:has(> strong:first-child) {
  background: var(--color-bg);
  border-top: 3px solid var(--color-accent);
  position: relative;
  padding: 0.95rem 1.2rem 0.85rem;
  margin: 0.7rem 0;
  font-size: 0.97rem;
}
.evl-sheet-body > p:has(> strong:first-child) + p:has(> strong:first-child) { margin-top: 0.7rem; }
.evl-sheet-body > p:has(> strong:first-child)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background-image: repeating-linear-gradient(to right, var(--color-accent) 0 1px, transparent 1px 12px);
  background-repeat: repeat-x; pointer-events: none;
}
.evl-sheet-body > p:has(> strong:first-child) > strong:first-child {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-accent-deep);
  margin-bottom: 0.3rem;
}

/* Cross-links: a single measure strip with the other pages hung
   off it as hour blocks at even ticks. */
.evl-sheet-links { margin: 3.4rem 0 0; position: relative; padding-top: 0.9rem; border-top: 3px solid var(--color-primary); }
.evl-sheet-links::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px;
  background-image:
    repeating-linear-gradient(to right, var(--color-primary) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(to right, var(--color-accent) 0 2px, transparent 2px 84px);
  background-size: auto 5px, auto 9px;
  background-repeat: repeat-x; pointer-events: none;
}
.evl-sheet-links h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-primary);
  margin: 0.5rem 0 1.1rem; padding: 0; border: none;
}
.evl-sheet-links h2::before, .evl-sheet-links h2::after { content: none; }
.evl-sheet-linkrow { display: flex; gap: 0; flex-wrap: wrap; }
.evl-sheet-link {
  flex: 1 1 0; min-width: 150px;
  position: relative;
  padding: 1.2rem 0.9rem 0.9rem;
  border: 1px solid var(--color-primary);
  border-left-width: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem; font-weight: 700;
  color: var(--color-primary); text-decoration: none;
  line-height: 1.2;
  transition: background 0.18s, color 0.18s;
}
.evl-sheet-link:first-child { border-left-width: 1px; }
.evl-sheet-link::before {
  content: ""; position: absolute; top: 0; left: 0.9rem;
  width: 1px; height: 8px; background: var(--color-accent);
}
.evl-sheet-link:hover { background: var(--color-primary); color: var(--color-bg); }
@media (max-width: 700px) {
  .evl-sheet-link { flex: 1 1 100%; border-left-width: 1px; border-top-width: 0; }
  .evl-sheet-link:first-child { border-top-width: 1px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, .site-info {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.site-info a { color: var(--color-bg); text-decoration: underline; }
.site-info a:hover { color: var(--color-accent-soft); }
.footer-widgets, .site-info { padding: 2.5rem 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .evl-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .evl-cats { grid-template-columns: repeat(2, 1fr); }
  .evl-cats .r2 { grid-column: span 2; grid-template-columns: 1fr 1fr; }
  .evl-daypart { grid-template-columns: 1fr; min-height: 0; }
  .evl-daypart-photo { grid-column: 1; grid-row: 1; }
  .evl-daypart-panel { grid-column: 1; grid-row: 2; width: 100%; justify-self: stretch; margin-top: 0; }
  .evl-note { grid-template-columns: 1fr; gap: 1.4rem; }
  .evl-note img, .evl-note .evl-note-ph { width: 100%; height: 230px; }
  .evl-mosaic { grid-template-columns: repeat(6, 1fr); }
  .evl-tile, .evl-tile.mid { grid-column: span 3; }
  .evl-tile.big, .evl-tile.wide { grid-column: span 6; }
  .evl-bysec { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .evl-cats, .evl-cats .r2 { grid-template-columns: 1fr; }
  .evl-cats .r2 { grid-column: span 1; }
  .evl-mosaic { grid-template-columns: 1fr; }
  .evl-tile, .evl-tile.mid, .evl-tile.big, .evl-tile.wide { grid-column: span 1; }
  .evl-bysec { grid-template-columns: 1fr; }
  .evl-hero h1 { font-size: 1.9rem; }
}

/* ============================================================
   READING PROGRESS BAR (CSS scroll-driven, no JS)
   ============================================================ */
@supports (animation-timeline: scroll()) {
  .tb-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: var(--color-accent);
    transform-origin: left;
    transform: scaleX(0);
    animation: tb-progress linear;
    animation-timeline: scroll(root block);
    z-index: 9999;
  }
  @keyframes tb-progress { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
