/* ═══════════════════════════════════════════════════════════════════════════
   vE · This month in Galaha. An almanac page: month tabs, five figures for
   the month, the trail's condition and what happens nearby.
═══════════════════════════════════════════════════════════════════════════ */
.ve-tm main { background: var(--ve-cream); color: var(--ve-text); }
.tm-hero { padding: calc(var(--ve-header-h) + 8vh) 0 clamp(36px, 6vh, 60px); }
.tm-hero .ve-kicker { color: var(--ve-gold-deep); }
.tm-hero__title { margin: 0 0 22px; font-family: var(--ve-display); font-weight: 400; font-size: clamp(42px, 6.2vw, 100px); line-height: 1.02; color: var(--ve-forest-deep); }
.tm-hero__title em { font-family: var(--ve-serif); font-style: italic; color: var(--ve-gold-deep); }
.tm-now { display: block; margin-top: 12px; font-style: italic; color: var(--ve-gold-deep); }
.tm-body { padding: 0 0 clamp(90px, 14vh, 150px); }

/* Tabs: one per month, coloured by how the trail is walking */
.tm-tabs { display: none; }
.tm-js .tm-tabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: clamp(28px, 5vh, 48px); }
.tm-tab { all: unset; box-sizing: border-box; position: relative; padding: 14px 4px 12px; text-align: center; cursor: pointer; font-family: var(--ve-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ve-muted); border-bottom: 3px solid var(--tm-c, var(--ve-line)); transition: color .3s, background-color .3s; }
.tm-tab--best { --tm-c: #2c5a3a; }
.tm-tab--dry { --tm-c: #c7a85e; }
.tm-tab--good { --tm-c: #7d9b6a; }
.tm-tab--wet { --tm-c: #8a9aa6; }
.tm-tab:hover { color: var(--ve-forest-deep); }
.tm-tab[aria-selected="true"] { color: var(--ve-forest-deep); background: rgba(199, 168, 94, .14); }
.tm-tab:focus-visible { outline: 2px solid var(--ve-gold); outline-offset: 2px; }
.tm-tab.is-now::after { content: 'Now'; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 12px; letter-spacing: .12em; color: var(--ve-gold-deep); }

/* One month */
.tm-month { padding: clamp(28px, 4vh, 40px) 0; border-top: 1px solid var(--ve-line); }
.tm-js .tm-month { border-top: 0; padding-top: 0; }
.tm-month__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 30px; margin-bottom: clamp(22px, 4vh, 36px); }
.tm-month__name { margin: 0; font-family: var(--ve-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; color: var(--ve-forest-deep); }
.tm-month__name em { font-family: var(--ve-serif); font-style: italic; color: var(--ve-gold-deep); }
.tm-walk { margin: 0; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 999px; font-size: 17px; color: var(--ve-forest-deep); background: rgba(44, 90, 58, .08); }
.tm-walk .ve-label { color: var(--ve-gold-deep); }
.tm-walk--wet { background: rgba(138, 154, 166, .18); }
.tm-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--ve-line); border-bottom: 1px solid var(--ve-line); }
.tm-facts > div { padding: 24px 20px 22px; border-left: 1px solid var(--ve-line); }
.tm-facts > div:first-child { border-left: 0; padding-left: 0; }
.tm-facts dt { font-family: var(--ve-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ve-gold-deep); }
.tm-facts dd { margin: 10px 0 8px; font-family: var(--ve-display); font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: var(--ve-forest-deep); }
.tm-facts dd span { font-size: .55em; color: var(--ve-muted); }
.tm-facts p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ve-muted); }
.tm-events { margin-top: clamp(24px, 4vh, 36px); max-width: 46em; }
.tm-events .ve-label { color: var(--ve-gold-deep); margin-bottom: 12px; }
.tm-events ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-events li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.6; color: #3d372e; }
.tm-events li::before { content: ''; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: var(--ve-gold-deep); }
.tm-note { margin: clamp(30px, 5vh, 48px) 0 0; max-width: 46em; font-size: 15.5px; line-height: 1.6; color: var(--ve-muted); font-style: italic; }
.tm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 28px; }

@media (max-width: 900px) {
  .tm-js .tm-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 26px; }
  .tm-facts { grid-template-columns: 1fr 1fr; }
  .tm-facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--ve-line); }
  .tm-facts > div:nth-child(-n+2) { border-top: 0; }
}
