:root {
  --almanac-forest: #0a3d35;
  --almanac-green: #0b6b5b;
  --almanac-cream: #f4f1e9;
  --almanac-paper: #fffdf8;
  --almanac-gold: #c7922b;
  --almanac-red: #b6473a;
  --almanac-muted: #66736e;
  --almanac-line: #d8dfdb;
}

body.almanac-page { max-width: 100%; overflow-x: hidden; background: var(--almanac-cream); color: #192622; }
.almanac-main { min-width: 0; max-width: 980px; padding-top: 18px; padding-bottom: 34px; }
.almanac-hero { min-width: 0; max-width: 100%; overflow: hidden; margin-bottom: 14px; padding: 22px; border-bottom: 4px solid var(--almanac-gold); border-radius: 12px; background: var(--almanac-forest); color: #fff; box-shadow: 0 8px 24px rgba(10,61,53,.12); }
.almanac-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.almanac-kicker { margin: 0 0 5px; color: #bfe4d9; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.almanac-hero h1 { margin: 0; color: #fff; font-size: clamp(1.45rem, 4vw, 2.2rem); font-weight: 800; }
.almanac-quality { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); color: #ffd388; font-weight: 800; text-align: center; }
.almanac-date-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.almanac-date-face { padding: 5px 18px; text-align: center; }
.almanac-date-face + .almanac-date-face { border-left: 1px solid rgba(255,255,255,.22); }
.almanac-date-label { display: block; margin-bottom: 5px; color: rgba(255,255,255,.68); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.almanac-date-value { display: block; font-size: clamp(1.2rem, 4vw, 1.7rem); font-weight: 800; }
.almanac-date-sub { display: block; margin-top: 4px; color: #cce7df; font-size: .9rem; }
.almanac-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; margin-top: 18px; }
.almanac-nav > * { min-width: 0; }
.almanac-nav a, .almanac-date-form button { min-height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: transparent; color: #fff; font-weight: 700; text-decoration: none; }
.almanac-nav a { display: flex; align-items: center; padding: 8px 13px; }
.almanac-nav a:last-child { justify-content: flex-end; }
.almanac-nav a:hover, .almanac-date-form button:hover { border-color: #ffd388; background: rgba(255,255,255,.09); color: #fff; }
.almanac-date-form { display: flex; gap: 7px; }
.almanac-date-form input { min-height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.97); color: #173e36; padding: 7px 9px; }
.almanac-date-form button { padding: 7px 12px; cursor: pointer; }
.almanac-notice { display: flex; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #ead5a7; border-radius: 9px; background: #fff3d9; color: #6f571f; line-height: 1.55; }
.almanac-notice strong { flex: 0 0 auto; }
.almanac-section { min-width: 0; max-width: 100%; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--almanac-line); border-radius: 10px; background: var(--almanac-paper); box-shadow: 0 3px 14px rgba(25,38,34,.035); }
.almanac-section-header { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 1px solid var(--almanac-line); }
.almanac-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 7px; background: #e5f3ed; color: var(--almanac-green); font-size: 16px; font-weight: 800; }
.almanac-section.is-bad .almanac-section-icon { background: #ffe9e5; color: var(--almanac-red); }
.almanac-section h2 { margin: 0; color: var(--almanac-forest); font-size: 1.08rem; font-weight: 800; }
.almanac-section-body { padding: 14px 16px; }
.almanac-two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.almanac-two-column > * { min-width: 0; }
.almanac-kv { margin: 0; }
.almanac-kv-row { display: grid; grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); border-bottom: 1px solid var(--almanac-line); }
.almanac-kv-row:last-child { border-bottom: 0; }
.almanac-kv dt, .almanac-kv dd { margin: 0; padding: 10px 5px; line-height: 1.5; }
.almanac-kv dt { color: var(--almanac-muted); font-weight: 700; }
.almanac-kv dd { color: var(--almanac-forest); font-weight: 600; overflow-wrap: anywhere; }
.almanac-table-wrap { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
.almanac-table { width: 100%; margin: 0; border-collapse: collapse; }
.almanac-table th, .almanac-table td { padding: 10px 8px; border-bottom: 1px solid var(--almanac-line); text-align: left; vertical-align: top; line-height: 1.45; }
.almanac-table tr:last-child td { border-bottom: 0; }
.almanac-table th { color: var(--almanac-muted); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }
.almanac-table td:first-child { color: var(--almanac-forest); font-weight: 750; white-space: nowrap; }
.almanac-good { color: var(--almanac-green) !important; font-weight: 800 !important; }
.almanac-bad { color: var(--almanac-red) !important; font-weight: 800 !important; }
.almanac-chip-heading { margin: 0 0 8px; color: var(--almanac-muted); font-size: .9rem; font-weight: 800; }
.almanac-chip-heading + .almanac-chips { margin-bottom: 15px; }
.almanac-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.almanac-chip { display: inline-block; padding: 6px 9px; border: 1px solid rgba(11,107,91,.18); border-radius: 6px; background: #e5f3ed; color: var(--almanac-green); font-size: .86rem; font-weight: 700; }
.almanac-chip.is-bad { border-color: rgba(182,71,58,.18); background: #ffe9e5; color: var(--almanac-red); }
.almanac-empty { margin: 0; color: var(--almanac-green); font-weight: 650; line-height: 1.55; }
.almanac-taboo { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--almanac-line); line-height: 1.5; }
.almanac-taboo:last-child { border-bottom: 0; }
.almanac-taboo-mark { color: var(--almanac-red); font-weight: 900; }
.almanac-taboo strong { color: var(--almanac-red); }
.almanac-summary { margin: 8px 0 0; color: var(--almanac-muted); line-height: 1.58; }
.almanac-source { margin: 16px 2px 0; color: var(--almanac-muted); font-size: .84rem; line-height: 1.55; text-align: center; }
.almanac-source a { color: var(--almanac-green); text-decoration: underline; }

@media (max-width: 767.98px) {
  .almanac-main { padding-right: 10px; padding-left: 10px; }
  .almanac-hero { padding: 17px 13px; border-radius: 9px; }
  .almanac-hero-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .almanac-quality { align-self: flex-start; }
  .almanac-date-face { padding: 4px 8px; }
  .almanac-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .almanac-nav a { min-width: 0; font-size: .86rem; }
  .almanac-date-form { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
  .almanac-date-form input { width: 0; min-width: 0; flex: 1 1 0; }
  .almanac-two-column { grid-template-columns: 1fr; gap: 0; }
  .almanac-kv-row { grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); }
  .almanac-section-header { padding: 12px 13px; }
  .almanac-section-body { padding: 10px 12px; }
  .almanac-table th, .almanac-table td { padding: 9px 6px; }
  .almanac-travel-table td:first-child { white-space: normal; min-width: 93px; }
}

@media (prefers-reduced-motion: reduce) {
  .almanac-nav a, .almanac-date-form button { transition: none; }
}
