/* The West Kootenay Current additions to the shared engine CSS */
.a-fig{margin:0 0 20px;max-width:900px}
.a-fig img{width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover;background:#ddd}
.a-fig figcaption{margin-top:6px}
.card .ci img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;margin-bottom:10px;background:#ddd}
.card .cred{font-size:12px;color:#666}
.wk-label{display:inline-block;background:#111;color:#fff;font:700 13px Inter,sans-serif;letter-spacing:.04em;text-transform:uppercase;padding:6px 10px;margin:0 0 16px}
.wk-srch{font:800 1rem Inter,sans-serif;margin:24px 0 8px}
.wk-src{margin:0 0 16px;padding-left:20px;font:400 .95rem/1.5 "Source Sans 3",sans-serif}
.wk-src a{color:#E1251B}
.wk-tip{font:400 .95rem/1.5 "Source Sans 3",sans-serif;color:#444}
.hc-cap{position:absolute;right:8px;top:8px;margin:0;max-width:60%;padding:3px 8px;background:rgba(0,0,0,.55);color:#eee;font:500 11px/1.35 Inter,sans-serif;text-align:right;z-index:3}
.hc-cap a{color:#fff}
.hc-slide{position:relative}
.dark .card p{color:#ccc}.dark .card h3 a{color:#fff}.dark .card .cred{color:#aaa}
.ev-towns{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0}
.ev-towns a{display:inline-block;padding:8px 14px;border:1px solid #ddd;border-radius:20px;text-decoration:none;color:#111;font:600 14px Inter,sans-serif}
@media (max-width:640px){.hc-cap{position:static;max-width:none;background:#111;text-align:left}}
.hero-t .meta .cat{color:#fff;background:#d71920;padding:1px 6px}

/* Visual-layout alignment with the NEBC flagship (local CSS only). */

/* Home hero headline at computer width: undo current.css shrink so it matches
   style.css clamp(2.2rem, 3vw, 3rem) — 43.2px at 1440px. */
@media (min-width: 988px) {
  .hero-carousel .hero-t h1,
  .hero-carousel .hero h1,
  .hero h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 1.1;
  }
}

/* /events/ is 1 column on phone and tablet, 2 columns at desktop (1440px),
   matching the flagship. Do not use the shared 4-column .ev-home rule here. */
.wrap.ev-page .ev-home,
.ev-page .ev-home {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 988px) {
  .wrap.ev-page .ev-home,
  .ev-page .ev-home {
    grid-template-columns: 1fr 1fr;
  }
}

/* /the-tea/ card grid stays 2 columns from tablet up, matching the flagship
   first-row measurement (not the shared 3-column 1100px rule). */
.tea-pg .tea-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .tea-pg .tea-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .tea-pg .tea-grid,
  .tea-pg .tea-grid:not(:has(> :nth-child(3))),
  .tea-pg .tea-grid:has(> :nth-child(4):last-child),
  .tea-pg .tea-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: 1fr 1fr;
  }
  .tea-pg .tea-grid:has(> :nth-child(5):last-child) > .tea-card,
  .tea-pg .tea-grid:has(> :nth-child(5):last-child) > .tea-card:nth-child(n+4) {
    grid-column: auto;
  }
}

/* Keep tea and event cards from overflowing at 390/768/988/1440. */
.tea .teac img,
.tea-card img,
.tea-fig img,
.ev-card,
.grid2,
.story-grid,
.tea-pg,
.wrap.ev-page {
  max-width: 100%;
}
.tea .teac img,
.tea-card .tea-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
