/* ALL THAI EVENT: "Weekend Invitation" theme (website kit, 9 Nov 2026).
   White canvas, dark green-teal text (never navy), smooth turquoise gradients on decoration only,
   solid #007F75 behind white text. Tokens = kit 06-design-system/tokens.json. Previous theme:
   _backup_theme_v1_20261109/. */
:root {
  --ink: #073D3B; --muted: #526967; --primary: #007F75; --primary-d: #006A62;
  --g1: #008F83; --g2: #00C9B3; --g3: #3DE5CC;
  --grad: linear-gradient(110deg, #008F83, #00C9B3 65%, #3DE5CC);
  /* the mockups' teal fill behind white text (date tabs, buttons): dark teal left, bright turquoise at the far edge,
     sampled from 01-home / 03-event-detail (user 9 Nov 2026: "the gradient of the turquoise elements is gone") */
  --grad-fill: linear-gradient(110deg, #008E7F 0%, #009A8A 42%, #00BFA9 78%, #3DE5CC 100%);
  --tshadow: 0 1px 2px rgba(0, 66, 60, .35);
  --mint: #E1F8F3; --mint-2: #F0FCF9; --line: #D7E5E1; --surface: #fff;
  --warn: #B4540A; --warn-bg: #FFF4E5; --bad: #B42318; --bad-bg: #FDECEA;
  --font: "Noto Sans Thai", "Noto Sans", Tahoma, sans-serif;
  --r-ctl: 12px; --r-card: 24px; --r-hero: 72px 72px 24px 72px;
  --shadow: 0 1px 2px rgba(7, 61, 59, .05), 0 8px 24px -12px rgba(7, 61, 59, .18);
  --shadow-h: 0 2px 4px rgba(7, 61, 59, .06), 0 18px 36px -16px rgba(7, 61, 59, .28);
  --gut: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }   /* width/height attributes never stretch a picture */
a { color: var(--primary); }
a:hover { color: var(--primary-d); }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
p { margin: 0 0 12px; }
button, input, select { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.accent-text { color: var(--primary); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.swoosh { width: 140px; height: auto; margin: 6px 0 0 -6px; pointer-events: none; }
.testbar { background: #FFF4E5; color: #7A3E00; text-align: center; font-size: 13px; padding: 5px 12px; border-bottom: 1px solid #F5D9B0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  border-radius: var(--r-ctl); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); box-shadow: 0 8px 18px -10px rgba(0, 127, 117, .8); }
.btn-primary:hover { color: #fff; filter: brightness(1.06) saturate(1.05); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline .ico { color: var(--primary); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn-big { width: 100%; min-height: 58px; font-size: 19px; border-radius: 16px; }
.btn-wide { width: 100%; }
.linkbtn { border: 0; background: none; color: var(--primary); font-weight: 600; cursor: pointer; padding: 4px; }
.pill-more { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--primary); color: var(--primary);
  border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; background: #fff; }
.pill-more .ico { width: 16px; height: 16px; }
a.pill-more:hover { background: var(--primary); color: #fff; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-grid; place-items: center; color: var(--ink); background: #fff; flex: none; }
.round-btn .ico { width: 20px; height: 20px; }
a.round-btn:hover { border-color: var(--primary); color: var(--primary); }
span.round-btn { opacity: .35; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo img { width: 150px; height: auto; }
.mainnav { display: flex; gap: 6px; margin: 0 auto; }
.mainnav a { position: relative; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; padding: 10px 14px; border-radius: 10px; }
.mainnav a:hover { color: var(--primary); }
.mainnav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; border-radius: 4px; background: var(--grad); }
.head-tools { display: flex; align-items: center; gap: 4px; }
.tool { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.tool:hover { color: var(--primary); background: var(--mint-2); }
.tool .ico { width: 26px; height: 26px; }
.favcount { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menubtn { display: none; }
@media (max-width: 1180px) {
  .mainnav a { font-size: 16px; padding: 10px 9px; }
  .logo img { width: 128px; }
}
@media (max-width: 1000px) {
  .menubtn { display: grid; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mainnav.open { display: flex; }
  .mainnav a { font-size: 17px; padding: 12px; }
  .mainnav a[aria-current="page"] { background: var(--mint-2); }
  .mainnav a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; }
  .head-tools { margin-left: auto; }
  .head-row { min-height: 68px; }
}

/* ---------- section headings ---------- */
.sec { margin: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-title h2 { font-size: clamp(24px, 2.4vw, 32px); }
.sec-title .swoosh { width: 120px; margin-top: 2px; }
.sec-title p { color: var(--muted); margin: 6px 0 0; }
.h-sec { font-size: 26px; margin: 0 0 12px; }
.h-ico { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 8px; }
.h-ico .ico { color: var(--primary); width: 26px; height: 26px; }
.empty { color: var(--muted); padding: 28px; text-align: center; background: var(--mint-2); border-radius: 20px; }

/* page heading (search / calendar / articles / day): big title, turquoise part, swoosh, lead */
.pt { margin: 34px 0 24px; }
.pt-title { font-size: clamp(30px, 4vw, 52px); line-height: 1.2; display: inline; }
.pt .pt-swoosh { display: inline-block; width: clamp(90px, 10vw, 140px); vertical-align: middle; margin: 0 0 0 14px; }
.pt-lead { color: var(--muted); font-size: 19px; margin: 10px 0 0; }
.page-hero { padding: 36px 0 12px; }
.page-hero .kicker { display: inline-flex; gap: 8px; align-items: center; color: var(--primary); font-weight: 700; margin: 0 0 6px; }
.page-hero .kicker .ico { width: 20px; height: 20px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.page-hero h1::after { content: ""; display: block; width: 130px; height: 24px; margin: 4px 0 0 -4px; background: url("../kit/swoosh.svg") left center / contain no-repeat; }
.page-hero .lead { color: var(--muted); font-size: 18px; margin-top: 8px; max-width: 760px; }
.page-hero .en { color: var(--muted); font-weight: 500; font-size: .55em; }
.h1-ico .ico { width: 1em; height: 1em; color: var(--primary); vertical-align: -.12em; margin-right: 10px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); padding: 18px 0 4px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .crumb-home .ico { width: 22px; height: 22px; display: block; }
.crumbs > span:last-child { color: var(--muted); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- search bar (one white pill) ---------- */
.wrap-search { margin-top: 28px; }
.searchbar { display: flex; align-items: stretch; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: var(--shadow); }
.sb-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; }
.sb-field + .sb-field::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1.5px; background: var(--line); }
.sb-field > .ico { color: var(--ink); width: 24px; height: 24px; }
.sb-q { flex: 1 1 46%; }
.sb-sel { flex: 0 1 26%; }
.sb-field input, .sb-field select { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 17px; color: var(--ink); padding: 10px 0; }
.sb-field input::placeholder { color: #7B8F8D; }
.sb-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px; }
.sb-field .ico + select, .sb-field .sr-only + select { padding-left: 0; }
.sb-sel > svg:last-child { position: absolute; right: 14px; width: 20px; height: 20px; pointer-events: none; color: var(--ink); }
.searchbar .btn { min-width: 180px; font-size: 19px; border-radius: 13px; }
.sb-field:focus-within { background: var(--mint-2); border-radius: 12px; }
@media (max-width: 860px) {
  .searchbar { flex-wrap: wrap; padding: 8px; gap: 4px; }
  .sb-q, .sb-sel { flex: 1 1 100%; }
  .sb-field + .sb-field::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1.5px; }
  .searchbar .btn { flex: 1 1 100%; }
}

/* ---------- date tab (kit 02-artwork/date-tab) ---------- */
.dtab { position: absolute; top: 0; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 92px;
  padding: 8px 16px 10px; background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); border-radius: 24px 0 32px 0; line-height: 1.2; font-weight: 600; }
.dtab b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.dtab span { font-size: 15px; white-space: nowrap; }

/* ---------- event card ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-3, .cards-4, .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; min-width: 0; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--mint); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }   /* thumbnails are exactly 16:10: posters stay whole */
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; flex: 1; }
.card-title { font-size: 18px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link:hover .card-title { color: var(--primary); }
.card-meta { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14.5px; color: var(--ink); min-width: 0; }
.card-meta .ico { width: 19px; height: 19px; color: var(--primary); margin-top: 2px; }
.card-meta span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta.price b { color: var(--primary); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 2px; }
.card-foot .card-place { flex: 1; }
.card-foot .pill-more { flex: none; }
.save { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--primary); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(7, 61, 59, .18); }
.save .ico { width: 22px; height: 22px; }
.save:hover { background: var(--mint); }
.save[aria-pressed="true"] { background: var(--grad-fill); color: #fff; }
.save[aria-pressed="true"] .ico path { fill: currentColor; }
.illus-tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 11.5px; line-height: 1; color: #fff; background: rgba(7, 61, 59, .72); padding: 5px 9px; border-radius: 999px; pointer-events: none; }
.flag { flex: none; margin-left: auto; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.card-cat { align-items: center; }
.card-cat .ico { margin-top: 0; }
.flag-today { background: var(--g3); color: var(--ink); }
.flag-post { background: var(--warn-bg); color: var(--warn); }
.flag-cancel { background: var(--bad-bg); color: var(--bad); }
.flag-ended { background: #EEF2F1; color: var(--muted); }
.state-ended .card-img img, .state-cancelled .card-img img { filter: grayscale(.6); opacity: .8; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--mint); color: var(--primary-d); margin: 0 6px 6px 0; }
.chip-soft { background: var(--mint-2); color: var(--muted); }
/* search "list" view: picture left */
.cards.as-list { grid-template-columns: 1fr; }
.cards.as-list .card-link { flex-direction: row; }
.cards.as-list .card-img { flex: 0 0 300px; aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .cards.as-list .card-link { flex-direction: column; } .cards.as-list .card-img { flex: none; } }

/* ---------- rails ---------- */
.rail { position: relative; }
.rail-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; flex: none; }
.rail-btn { position: absolute; top: 38%; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.rail-btn:hover { color: var(--primary); border-color: var(--primary); }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-btn.prev { left: -18px; }
.rail-btn.next { right: -18px; }
@media (max-width: 700px) { .rail-btn { display: none; } }

/* ---------- home hero (kit 01-home) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 40px; align-items: center; padding-top: 16px; }
.hero-copy { min-width: 0; }
.hero-title { display: flex; flex-direction: column; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.22; font-weight: 700; }
.hero-title .hero-big { font-size: 1.24em; line-height: 1.25; padding-bottom: .05em; }
@media (min-width: 1025px) { .hero-title > span { white-space: nowrap; } }
.hero-title-m { font-size: clamp(28px, 3vw, 42px); display: block; }
.hero .hero-swoosh { width: 150px; margin: 4px 0 14px -10px; }
.hero-lead { font-size: 19px; color: var(--ink); max-width: 36ch; }
.hero-car { min-width: 0; }
.hero-stage { position: relative; container-type: inline-size; --cap: 112px; }
.slide { display: grid; grid-template-rows: auto var(--cap); }
.slide-frame { position: relative; aspect-ratio: 2.1 / 1; border-radius: var(--r-hero); overflow: hidden; background: var(--mint); }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slide-poster { position: absolute; inset: 18px 78px; display: flex; align-items: center; justify-content: center; }
.slide-poster img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.hero-tag { right: auto; left: 26px; bottom: 16px; }
.slide-cap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 6px 0 0; }
.dtab-cap { position: static; min-width: 110px; padding: 10px 18px 12px; }
.dtab-cap b { font-size: 22px; }
.slide-title { font-size: 22px; line-height: 1.3; }
.slide-title a { color: var(--ink); text-decoration: none; }
.slide-title a:hover { color: var(--primary); }
.cap-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.cap-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cap-meta .ico { width: 18px; height: 18px; color: var(--primary); }
.hero-arrow { position: absolute; top: calc(100cqw / 2.1 / 2 - 24px); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(7, 61, 59, .25); }
.hero-arrow:hover { color: var(--primary); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-count { position: absolute; top: calc(100cqw / 2.1 - 50px); right: 18px; z-index: 5; background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; box-shadow: 0 2px 8px rgba(7, 61, 59, .2); }
.hero-count b { font-weight: 700; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.hero-dots button[aria-selected="true"] { width: 28px; background: var(--grad); }
.hero-dots button { position: relative; }
.hero-dots button::before { content: ""; position: absolute; inset: -10px -4px; }   /* 30px tap target */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-lead { max-width: none; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .slide-frame { border-radius: 32px 32px 12px 32px; aspect-ratio: 4 / 3; }
  .hero-arrow { top: calc(100cqw * .375 - 20px); width: 40px; height: 40px; }
  .hero-count { top: calc(100cqw * .75 - 42px); }
  .slide-poster { inset: 12px 56px; }
  .hero-stage { --cap: 200px; }
  .slide-cap { align-content: start; gap: 12px 14px; grid-template-columns: auto minmax(0, 1fr); }
  .cap-meta { font-size: 14px; }
  .cap-btn { grid-column: 1 / -1; }
  .slide-title { font-size: 18px; }
  .dtab-cap { min-width: 84px; padding: 8px 12px; }
  .dtab-cap b { font-size: 17px; }
}

/* sub-page hero (venues / running / article): headline left, rounded photo right */
.hero-sub { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hero-photo { position: relative; display: block; border-radius: var(--r-hero); overflow: hidden; aspect-ratio: 2.4 / 1; background: var(--mint); color: #fff; text-decoration: none; }
.hero-photo .vcard-img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero-photo .vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-name { position: absolute; right: 18px; bottom: 16px; background: rgba(7, 61, 59, .78); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
@media (max-width: 1024px) { .hero-sub { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero-photo { border-radius: 32px 32px 12px 32px; aspect-ratio: 16 / 9; } }

/* ---------- home: category tabs + picks ---------- */
.cat-tabs { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 30px 0 4px; padding-bottom: 4px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { position: relative; flex: none; padding: 10px 18px 14px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; }
.cat-tabs a + a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 18px; width: 1.5px; background: var(--line); }
.cat-tabs a:hover { color: var(--primary); }
.cat-tabs a.on { color: var(--primary); font-weight: 700; }
.cat-tabs a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 4px; border-radius: 4px; background: var(--grad); }
.home-picks { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; margin-top: 24px; }
.hp-head h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; }
.hp-head .swoosh { width: 150px; margin-left: -8px; }
.hp-head p { color: var(--muted); margin: 10px 0 16px; }
@media (max-width: 1024px) { .home-picks { grid-template-columns: 1fr; } .hp-head h2 br { display: none; } }

/* ---------- date strip ---------- */
.datestrip { position: relative; }
.ds-track { list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.ds-track::-webkit-scrollbar { display: none; }
.ds-track li { flex: none; scroll-snap-align: start; }
.ds-track a { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; background: #fff; }
.ds-track a:hover { border-color: var(--primary); }
.ds-track a b { font-size: 28px; line-height: 1.15; }
.ds-wd, .ds-m { font-size: 13.5px; }
.ds-n { margin-top: 4px; font-size: 12px; color: var(--primary); font-weight: 600; background: var(--mint); border-radius: 999px; padding: 0 8px; }
.ds-track a.on { background: var(--grad-fill); border-color: transparent; color: #fff; text-shadow: var(--tshadow); }
.ds-track a.on .ds-n { background: rgba(255, 255, 255, .2); color: #fff; }
.datestrip .rail-btn { top: 32%; }
.daynav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

/* ---------- venue cards ---------- */
.vcard { display: flex; flex-direction: column; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.vcard:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.vcard-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--mint); overflow: hidden; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.vcard-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: var(--primary); }
.vcard-ph .ico { width: 54px; height: 54px; }
.vcard-ph small { font-size: 12px; color: var(--muted); }
.vcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; flex: 1; }
.vcard-body b { font-size: 18px; line-height: 1.35; }
.vcard-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--ink); }
.vcard-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.vcard-meta .ico { width: 18px; height: 18px; color: var(--primary); }
.vcard-body .pill-more { align-self: flex-end; margin-top: auto; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vgrid .vcard { width: auto; }
@media (max-width: 1024px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vgrid { grid-template-columns: 1fr; } }
/* photo credit: a © chip that opens on hover / focus */
.credit { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; max-width: calc(100% - 20px); background: rgba(7, 61, 59, .72); color: #fff; font-size: 11.5px; line-height: 1; padding: 5px 8px; border-radius: 999px; }
.credit::before { content: "©"; font-weight: 700; }
.credit .ct { display: none; margin-left: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit:hover .ct, a:focus-visible .credit .ct, .vcard:hover .credit .ct { display: inline; }
.type-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; }
.tc-label { color: var(--primary); font-weight: 700; font-size: 17px; padding-right: 14px; margin-right: 4px; border-right: 1.5px solid var(--line); }
.tchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-weight: 500; }
.tchip .ico { width: 20px; height: 20px; color: var(--primary); }
.tchip small { color: var(--muted); }
.tchip:hover { border-color: var(--primary); }
.tchip[aria-pressed="true"] { background: var(--grad-fill); border-color: transparent; color: #fff; text-shadow: var(--tshadow); }
.tchip[aria-pressed="true"] .ico, .tchip[aria-pressed="true"] small { color: #fff; }
.ptile { display: flex; flex-direction: column; gap: 4px; width: 190px; color: var(--ink); text-decoration: none; }
.ptile-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--mint-2), var(--mint)); font-size: 30px; font-weight: 700; color: var(--g1); }
.ptile-img img { width: 100%; height: 100%; object-fit: cover; }
.ptile b { font-size: 16px; margin-top: 4px; }
.ptile small { color: var(--muted); margin-top: -4px; }
.ptile:hover b { color: var(--primary); }

/* ---------- articles ---------- */
.acards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .acards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acards { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.acard:hover { box-shadow: var(--shadow-h); }
.acard-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; }
.acard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; align-items: flex-start; }
.acard-body b { font-size: 17px; line-height: 1.4; }
.acard-ex { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard-body small { color: var(--muted); }
.tagpill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 12px; border-radius: 999px; background: var(--mint); color: var(--primary-d); }
.tagpill-solid { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); }
.acard-v .card-body { gap: 4px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin: 30px 0 10px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.feature-img { position: relative; aspect-ratio: 16 / 10; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 32px; background: linear-gradient(160deg, var(--mint-2), #fff); }
.feature-title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; }
.feature-ex { color: var(--muted); }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.feature-meta .ico { width: 18px; height: 18px; color: var(--primary); }
.feature-meta .go { margin-left: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-grid; place-items: center; }
.feature-meta .go .ico { color: #fff; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.soon { text-align: center; padding: 40px; background: var(--mint-2); border-radius: var(--r-card); margin: 30px 0; }
.soon h2 { margin-bottom: 16px; }

/* ---------- services band (เครือ เอส แคปปิตอล) ---------- */
.band { margin: 72px 0 0; }
.band-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: 34px 40px; border-radius: 40px 40px 16px 40px; background: linear-gradient(120deg, var(--mint), var(--mint-2) 70%); overflow: hidden; }
.band-panel::after { content: ""; position: absolute; right: -40px; top: -30px; width: 360px; height: 64px; background: url("../kit/swoosh.svg") center / contain no-repeat; opacity: .5; transform: rotate(-8deg); pointer-events: none; }
.band-copy h2 { font-size: clamp(22px, 2.2vw, 30px); }
.band-copy .swoosh { width: 110px; }
.band-copy p { margin: 8px 0 0; color: var(--ink); }
.band-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.band-feats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.bf-ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow); }
.bf-ico .ico { width: 26px; height: 26px; }
.band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.band-link { font-size: 14.5px; font-weight: 600; }
@media (max-width: 1024px) { .band-panel { grid-template-columns: 1fr; padding: 28px 24px; } }
@media (max-width: 520px) { .band-feats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .band-feats li { font-size: 13px; } }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; padding: 44px 0 20px; border-top: 1px solid var(--line); background: #fff; }
.band + .site-foot { margin-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand img { width: 170px; height: auto; }
.tagline { margin: 12px 0 2px; font-weight: 600; }
.foot-en { font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.site-foot h2 { font-size: 16px; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-foot a:hover { color: var(--primary); }
.site-foot small { display: block; color: var(--muted); font-size: 12.5px; }
.foot-legal { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- event page (kit 03-event-detail) ---------- */
.ev-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; margin-top: 14px; align-items: start; }
.ev-main { position: relative; margin: 0; border-radius: 56px 56px 20px 56px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mint); }
.ev-main img { width: 100%; height: 100%; object-fit: cover; }
.ev-main-poster { aspect-ratio: auto; display: flex; justify-content: center; align-items: center; padding: 18px; }
.ev-main-poster img { width: auto; height: auto; max-height: 640px; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.ev-credit { font-size: 13px; color: var(--muted); margin: 8px 4px 0; }
.ev-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ev-thumb { padding: 0; border: 3px solid transparent; border-radius: 18px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 16 / 11; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.ev-thumb.on { border-color: var(--g2); }
.ev-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.25; }
.ev-facts .ev-swoosh { width: 150px; margin: 2px 0 12px -8px; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 999px; background: var(--grad); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 16px; }
.cat-pill .ico { width: 20px; height: 20px; }
a.cat-pill:hover { color: var(--ink); filter: brightness(1.05); }
.fact-list { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 12px; }
.fact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; }
.fact-list .ico { width: 28px; height: 28px; color: var(--ink); margin-top: 1px; }
.fact-list small { display: block; font-size: 15px; color: var(--muted); }
.fact-list b a { color: var(--ink); text-decoration: none; }
.fact-list b a:hover { color: var(--primary); }
.act-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.act-note.ok { display: flex; align-items: center; gap: 8px; color: var(--primary-d); font-weight: 600; background: var(--mint-2); padding: 10px 14px; border-radius: 12px; }
.act-note.ok .ico { width: 20px; height: 20px; }
.act-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.act-row .btn { border-radius: 16px; min-height: 52px; padding: 8px 10px; white-space: normal; text-align: center; font-size: 15.5px; }
.act-row .btn[aria-pressed="true"] { background: var(--mint); border-color: var(--primary); color: var(--primary-d); }
.act-row .btn[aria-pressed="true"] .ico path { fill: currentColor; }
.state-banner { display: inline-block; font-weight: 700; padding: 6px 14px; border-radius: 12px; margin: 14px 0 0; }
.st-today { background: var(--mint); color: var(--primary-d); }
.st-post { background: var(--warn-bg); color: var(--warn); }
.st-cancel { background: var(--bad-bg); color: var(--bad); }
.st-ended { background: #EEF2F1; color: var(--muted); }
.ev-tabs { display: flex; align-items: center; gap: 16px; margin: 40px 0 26px; border-bottom: 1.5px solid var(--line); color: var(--line); }
.ev-tabs a { position: relative; padding: 10px 14px 14px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 500; }
.ev-tabs a.on { color: var(--primary); font-weight: 700; }
.ev-tabs a.on::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -2.5px; height: 4px; border-radius: 4px; background: var(--grad); }
.ev-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.ev-detail p { font-size: 17px; }
.highlights { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.highlights li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 12px; }
.highlights li + li { border-left: 1.5px solid var(--line); }
.highlights .ico { width: 38px; height: 38px; color: var(--primary); margin-bottom: 4px; }
.highlights b { font-size: 16px; }
.highlights span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .highlights { grid-template-columns: 1fr 1fr; row-gap: 16px; } .highlights li:nth-child(3) { border-left: 0; } }
.olinks { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.olinks .ico { width: 18px; height: 18px; color: var(--primary); margin-top: 4px; }
.source { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
.draft-note { font-size: 14px; background: var(--warn-bg); color: #7A3E00; padding: 10px 14px; border-radius: 12px; }
.side-box, .ev-venue { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); background: #fff; }
.side-box hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.vb-row { display: flex; gap: 16px; align-items: flex-start; }
.vb-text { flex: 1; min-width: 0; }
.vb-photo { flex: 0 0 170px; }
.vb-photo .vcard-img { border-radius: 18px; aspect-ratio: 4 / 3; }
.v-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.v-name a { color: var(--ink); }
.v-addr { font-size: 15px; color: var(--muted); }
.mapbox { position: relative; display: grid; place-items: center; gap: 10px; height: 200px; margin: 14px 0 12px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(var(--mint-2), var(--mint-2)) padding-box, var(--mint);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(0, 143, 131, .08) 27px 28px), repeating-linear-gradient(90deg, transparent 0 27px, rgba(0, 143, 131, .08) 27px 28px); background-color: var(--mint-2); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-pin { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--primary); font-size: 14px; text-align: center; padding: 0 12px; }
.map-pin .ico { width: 34px; height: 34px; }
.map-pin b { color: var(--ink); }
.biz-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.bizcard { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; font-weight: 600; background: #fff; }
.bizcard:hover { border-color: var(--primary); }
.bc-logo { display: grid; place-items: center; height: 56px; }
.bc-logo img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }   /* scale, never squash (user 11 Nov 2026) */
.bc-tor .bc-logo { background: #0B1F3A; border-radius: 10px; padding: 6px; }   /* TOR Intelligence keeps its dark tile */
.bc-text small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.gal { height: 220px; width: auto; border-radius: 18px; }
.vphoto { margin: 0 0 16px; }
.vphoto img { border-radius: 18px; width: 100%; height: auto; }
.vphoto figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.transit { font-size: 15px; }
@media (max-width: 1024px) {
  .ev-top, .ev-cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .ev-main { border-radius: 32px 32px 12px 32px; }
  .act-row { grid-template-columns: 1fr 1fr; }
  .act-row .btn:last-child { grid-column: 1 / -1; }
  .vb-photo { display: none; }
  .ev-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- search page (kit 02-event-search) ---------- */
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 30px; align-items: start; }
.s-top { grid-column: 1 / -1; margin-bottom: 28px; }
.s-top .wrap-search { margin-top: 18px; }
.filter-toggle { display: none; }
.filters { border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 22px; background: #fff; position: sticky; top: 100px; max-height: calc(100vh - 116px); overflow: auto; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.f-head h2 { font-size: 22px; }
.filters fieldset { border: 0; border-bottom: 1.5px solid var(--line); margin: 0; padding: 16px 0; min-width: 0; }
.filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { float: left; width: 100%; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.check, .radio { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15.5px; clear: both; }
.check input, .radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); flex: none; }
.range { display: flex; align-items: center; gap: 6px; margin-top: 8px; clear: both; }
.range label { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 8px; flex: 1; min-width: 0; }
.range .ico { width: 18px; height: 18px; color: var(--ink); }
.range input { border: 0; outline: 0; min-width: 0; width: 100%; font-size: 13.5px; background: none; }
.f-select { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; min-height: 50px; background: #fff; clear: both; }
.f-select > .ico:first-child { width: 22px; height: 22px; color: var(--ink); }
.f-select select, .f-select input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; appearance: none; -webkit-appearance: none; padding: 10px 26px 10px 0; font-size: 16px; cursor: pointer; }
.f-select input { cursor: text; padding-right: 0; }
.f-select > svg:last-child:not(:first-child) { position: absolute; right: 12px; width: 20px; height: 20px; pointer-events: none; }
.f-select:focus-within { border-color: var(--primary); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; cursor: pointer; font-weight: 600; font-size: 17px; clear: both; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; background: #C9D6D3; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + i { background: var(--grad-fill); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid var(--primary); outline-offset: 3px; }
.f-apply { display: none; }
.results { min-width: 0; }
.r-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.r-count { display: flex; align-items: baseline; gap: 14px; }
.r-count h2 { font-size: 28px; }
.r-count p { margin: 0; color: var(--muted); font-size: 17px; }
.r-tools { display: flex; align-items: center; gap: 12px; }
.r-sort { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.r-sort .f-select { min-height: 46px; min-width: 190px; }
.r-view { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.r-view button { width: 46px; height: 44px; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.r-view button[aria-pressed="true"] { background: var(--grad-fill); color: #fff; }
.r-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
.r-chips:empty { display: none; }
.r-chips button[data-chip] { border: 0; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 15px; cursor: pointer; }
.r-chips button[data-chip]:hover { background: #CDF1E9; }
.pager-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 34px 0 0; }
.pager { display: flex; gap: 10px; }
.pager button { min-width: 46px; height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.pager button:hover { border-color: var(--primary); }
.pager button[aria-current="page"] { background: var(--grad-fill); border-color: transparent; color: #fff; text-shadow: var(--tshadow); }
.pager-jump { font-size: 14.5px; color: var(--muted); }
.pager-jump select { border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 8px; }
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; justify-self: start; margin-bottom: 16px; }
  .filters { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); max-height: none; border-radius: 24px 0 0 24px; box-shadow: -10px 0 40px rgba(7, 61, 59, .25); transform: translateX(105%); transition: transform .25s; }
  .filters.open { transform: none; }
  .f-apply { display: flex; width: 100%; position: sticky; bottom: 0; margin-top: 10px; }
  .r-count h2 { font-size: 24px; }
}

/* ---------- calendar (kit 04-calendar) ---------- */
.cal-filters { display: grid; grid-template-columns: 1fr 1fr 2.2fr; gap: 14px; margin-bottom: 30px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 34px; align-items: start; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.cal-month { display: flex; align-items: center; gap: 14px; }
.cal-month h1 { font-size: clamp(26px, 2.6vw, 36px); min-width: 7.5em; text-align: center; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 18px; border: 0; background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); }
.seg .ico { width: 20px; height: 20px; }
.cal-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; }
.cal-grid th { background: var(--mint); padding: 12px 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.cal-grid td { position: relative; height: 112px; vertical-align: top; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.cal-grid td:first-child { border-left: 0; }
.cal-grid td.out { background: #FAFDFC; }
.cal-grid td.past .cal-day b { color: #9AAAA8; }
.cal-day { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 2px 6px; cursor: pointer; border-radius: 10px; color: var(--ink); }
.cal-day b { font-size: 21px; font-weight: 700; }
.cal-day:hover { background: var(--mint-2); }
.cal-grid td.today .cal-day b { color: var(--primary); }
.cal-grid td.today::after { content: "วันนี้"; position: absolute; top: 10px; right: 8px; font-size: 11.5px; font-weight: 700; color: var(--primary); }
.cal-grid td.sel { background: var(--mint-2); box-shadow: inset 0 0 0 2.5px var(--g2); border-radius: 14px; }
.cal-pills { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.cal-pills li { font-size: 12.5px; line-height: 1.35; }
.cal-pills a { display: block; background: var(--mint); color: var(--ink); text-decoration: none; padding: 2px 8px 3px 16px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.cal-pills a::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--primary); }
.cal-pills a:hover { background: #CDF1E9; }
.cal-more a, .cal-more { color: var(--primary); font-weight: 600; text-decoration: underline; padding-left: 8px; font-size: 12.5px; }
.cal-side { border-left: 1.5px solid var(--line); padding-left: 30px; min-height: 400px; position: sticky; top: 100px; }
.cal-day-title { font-size: 26px; }
.cal-side .swoosh { width: 120px; }
.cal-side-list { display: grid; gap: 14px; margin: 14px 0 18px; }
.mini { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.mini-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; align-self: start; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 30px; }
.mini-body b { font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-body b a { color: var(--ink); text-decoration: none; }
.mini-body b a::after { content: ""; position: absolute; inset: 0; }
.mini-body b a:hover { color: var(--primary); }
.mini .card-meta { font-size: 13.5px; }
.mini .card-meta .ico { width: 16px; height: 16px; }
.mini .save { width: 34px; height: 34px; top: 10px; right: 10px; box-shadow: none; }
.mini .save .ico { width: 20px; height: 20px; }
@media (max-width: 1100px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side { border-left: 0; padding-left: 0; border-top: 1.5px solid var(--line); padding-top: 24px; margin-top: 28px; position: static; min-height: 0; }
  .cal-side-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
@media (max-width: 760px) {
  .cal-filters { grid-template-columns: 1fr 1fr; }
  .cal-filters .f-q { grid-column: 1 / -1; }
  .cal-grid th { font-size: 14px; padding: 8px 2px; }
  .cal-grid td { height: 64px; padding: 3px; }
  .cal-day { padding: 0 2px; text-align: center; }
  .cal-day b { font-size: 16px; }
  .cal-pills li:not(.cal-dots) { display: none; }
  .cal-grid td.today::after { display: none; }
  .cal-month h1 { min-width: 0; }
}
.cal-dots { display: none; }
@media (max-width: 760px) { .cal-dots { display: flex !important; justify-content: center; gap: 3px; } .cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); } }

/* ---------- running + cycling page ---------- */
.rfilter { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; border: 1.5px solid var(--line); border-radius: 22px; padding: 16px 18px; margin: 4px 0 28px; background: #fff; }
.rf-kind { display: flex; gap: 4px; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; align-self: center; }
.rf-kind button { border: 0; background: transparent; font-weight: 600; color: var(--ink); padding: 8px 16px; border-radius: 10px; cursor: pointer; min-height: 40px; }
.rf-kind button.on { background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); }
.rf-field { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; font-size: 13px; color: var(--muted); }
.rf-field .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--primary); }
.rf-field select, .rf-field input { font-size: 15px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; min-width: 150px; min-height: 44px; }
.rf-clear { border: 0; background: none; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; align-self: center; }
.rf-range { display: flex; align-items: center; gap: 6px; }
.rf-date { position: relative; display: inline-flex; align-items: center; }
.rf-date input[type="text"] { width: 150px; min-width: 0; padding-right: 34px; }
.rf-date input[type="text"].bad { border-color: var(--bad); background: var(--bad-bg); }
.rf-date button { position: absolute; right: 6px; border: 0; background: none; padding: 4px; cursor: pointer; color: var(--primary); }
.rf-date button .ico { width: 18px; height: 18px; }
.rf-date input[type="date"] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rdays { display: flex; flex-direction: column; gap: 24px; }
.rday { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 24px; border-bottom: 1.5px dashed var(--line); }
.rday:last-child { border-bottom: 0; }
.rday-date { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); border-radius: 24px 0 32px 0; padding: 12px 8px 12px; text-align: center; }
.rday-date b { font-size: 40px; line-height: 1; margin: 2px 0; }
.rd-wd, .rd-m { font-size: 14px; font-weight: 600; }
.rday-date small { margin-top: 6px; font-size: 12.5px; background: rgba(255, 255, 255, .2); padding: 0 8px; border-radius: 999px; }
.rday-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; grid-auto-rows: 1fr; }
.rcard { display: flex; }
.rcard > .card { flex: 1; }
.rday-cards .dtab { display: none; }   /* the day tile on the left already says the date */
.rday-cards .card-title { min-height: 2.8em; }
.rcard[hidden], .rday[hidden] { display: none; }
.tn-note { font-size: 13.5px; margin-top: 14px; }
.tenders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tenders li { display: flex; flex-direction: column; }
.tenders li > a:first-child { flex: 1; }
.tenders a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "stage go" "title title" "meta meta"; gap: 6px 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.tenders a:hover { border-color: var(--primary); }
.tn-stage { grid-area: stage; justify-self: start; font-size: 12.5px; font-weight: 700; color: var(--primary-d); background: var(--mint); padding: 2px 10px; border-radius: 999px; }
.tenders b { grid-area: title; font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-meta { grid-area: meta; font-size: 13.5px; color: var(--muted); }
.tn-go { grid-area: go; display: inline-flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 600; color: var(--primary); }
.tn-go .ico { width: 16px; height: 16px; }
.tenders li:has(.tn-race) > a:first-child { border-radius: 20px 20px 0 0; }
a.tn-race { display: flex; gap: 8px; align-items: center; padding: 10px 20px; background: var(--mint); color: var(--primary-d); border-radius: 0 0 20px 20px; font-size: 14px; font-weight: 600; text-decoration: none; border-top: 0; box-shadow: none; grid-template-areas: none; }
a.tn-race .ico { width: 18px; height: 18px; }
@media (max-width: 860px) { .tenders { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .rday { grid-template-columns: 1fr; gap: 12px; }
  .rday-date { position: static; flex-direction: row; gap: 10px; justify-content: flex-start; padding: 8px 16px; border-radius: 16px 0 22px 0; }
  .rday-date b { font-size: 26px; }
  .rday-date small { margin: 0 0 0 auto; }
  .rf-field { flex: 1 1 140px; }
}

/* ---------- small pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 30px 0 10px; }
.prose-wide { max-width: 1280px; }
.count-line { color: var(--muted); }
.fav-tools, .fav-import { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
.fav-import { background: var(--mint-2); border-radius: 16px; padding: 14px 18px; }
.fav-import p { margin: 0; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.credits-table th, .credits-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { background: var(--mint); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 15px; box-shadow: 0 10px 30px rgba(7, 61, 59, .35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* scap.co.th / TOR banners inside the kit's hero frame: keep their text clear of the round arrows */
/* keep the banner text clear of the round arrows: pad the (unzoomed) banner box, not the zoomed text block */
.sx-frame .sx-banner .sx-hero { height: 100%; padding-inline: 70px 66px; }
.sx-frame .sx-banner .sx-hero .sx-wrap { padding-inline: 0; }
/* the TOR banner's side panel of live counts does not fit the kit's narrower frame beside its map: picture keeps
   headline + map, the counts stay on tor.scap.co.th */
.sx-frame .sx-banner .sx-hero-tor .sx-tor-radar { display: none; }
.sx-frame .sx-banner .sx-hero-tor .sx-wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy map"; }
.cal-filters > *, .search-layout > *, .r-tools > * { min-width: 0; }
@media (max-width: 760px) { .cal-month h1 { font-size: 24px; } .cal-bar { gap: 10px; } }
@media (max-width: 480px) { .r-sort .f-select { min-width: 0; } .r-sort { font-size: 14px; } }

@media (max-width: 640px) {
  .sx-frame .sx-banner .sx-hero { padding-inline: 60px 58px; }
}

/* scap banner (user 10 Nov 2026): handwritten tagline small in the top-right corner, clear of the man's face;
   the company line is scap.co.th's footer logo */
.sx-frame .sx-banner .sx-hero-script { top: 22px; right: 74px; width: clamp(120px, 15cqw, 190px); }
.sx-frame .sx-banner .sx-ace-logo { width: clamp(150px, 25cqw, 210px); height: auto; margin-bottom: 2px; }
.sx-frame .sx-banner .sx-hero h1 { font-size: clamp(24px, 4.4cqw, 38px); }
.sx-frame .sx-banner .sx-hero:not(.sx-hero-tor) .sx-hero-lede { font-size: clamp(14px, 2.1cqw, 17px); max-width: 21em; }
.sx-frame .sx-banner .sx-hero-inner { gap: 12px; padding-block: 24px; }
/* TOR banner (user 10 Nov 2026): bigger logo and type; map + its tagline pulled in toward the middle */
.sx-frame .sx-banner .sx-hero-tor .sx-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); justify-items: start; align-items: center; column-gap: 8px; }
.sx-frame .sx-banner .sx-hero-tor .sx-tor-mapbox { justify-self: start; }
.sx-frame .sx-banner .sx-hero-tor .sx-tor-logo { width: clamp(120px, 19cqw, 160px); margin-bottom: 6px; }
.sx-frame .sx-banner .sx-hero-tor h2 { font-size: clamp(28px, 4.6cqw, 40px); }
.sx-frame .sx-banner .sx-hero-tor .sx-hero-lede { font-size: clamp(15px, 2.2cqw, 17.5px); }
.sx-frame .sx-banner .sx-hero-tor .sx-tor-scan { width: clamp(170px, 27cqw, 230px); }
@media (max-width: 640px) {
  .sx-frame .sx-banner .sx-hero-script { position: absolute; display: block; width: 92px; top: 12px; right: 36px; left: auto; bottom: auto; margin: 0; filter: none; opacity: 1; }
  .sx-frame .sx-banner .sx-hero-tor h2 { font-size: 24px; }
  .sx-frame .sx-banner .sx-hero-tor .sx-tor-logo { width: 120px; }
  .sx-frame .sx-banner .sx-hero-tor .sx-hero-lede { font-size: 13.5px; }
  .sx-frame .sx-banner .sx-hero h1 { font-size: 22px; }
  .sx-frame .sx-banner .sx-hero:not(.sx-hero-tor) .sx-hero-lede { font-size: 13.5px; }
  .sx-frame .sx-banner .sx-ace-logo { width: 170px; }
  .sx-frame .sx-banner .sx-hero-tor .sx-wrap { grid-template-columns: 1fr; }
  .sx-frame .sx-banner .sx-hero-tor .sx-tor-mapbox { display: none; }
  .sx-frame .sx-banner .sx-hero-stats { display: none; }
}

/* scap.co.th / TOR banners: picture + headline in the frame, their buttons and figures under it (user 9 Nov 2026),
   in scap.co.th's own colours on white (navy text, gold / TOR-cyan buttons, navy outline for the second button) */
.sx-cap { grid-template-columns: 1fr; padding-top: 14px; }
.sx-cap .sx-below { position: static; inset: auto; overflow: visible; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--sx-ink); }
.sx-cap .sx-below .sx-hero-cta { margin: 0; }
.sx-cap .sx-below .sx-btn { font-size: 15.5px; padding: .7em 1.4em; }
.sx-cap .sx-below .sx-btn-ghost { border-color: var(--sx-navy); color: var(--sx-navy); }
.sx-cap .sx-below .sx-btn-ghost:hover { background: #EEF3FA; }
.sx-cap .sx-below .sx-hero-stats { margin: 0; display: flex; }
.sx-cap .sx-below .sx-stat { border-left-color: var(--sx-line); padding-inline: 12px; gap: 8px; }
.sx-cap .sx-below .sx-stat:first-child { border-left: 0; padding-left: 0; }
.sx-cap .sx-below .sx-stat-ic { border-color: var(--sx-line); color: var(--sx-navy); width: 34px; height: 34px; }
.sx-cap .sx-below .sx-stat p { color: var(--sx-muted); }
.sx-cap .sx-below .sx-stat strong { color: var(--sx-navy); }
.hero-dots { margin-top: 14px; }
@media (max-width: 640px) { .sx-cap .sx-below .sx-hero-stats { display: none; } }
/* the strip under the scap / TOR picture: same reading size as the event strips (user 10 Nov 2026: text too small) */
.sx-cap .sx-below .sx-btn { font-size: 16.5px; }
.sx-cap .sx-below .sx-stat strong { font-size: 16px; }
.sx-cap .sx-below .sx-stat p { font-size: 14px; }
.sx-cap .sx-below .sx-stat-ic { width: 40px; height: 40px; }
@media (max-width: 520px) { .bizcard { grid-template-columns: 1fr; } .bc-logo { justify-self: start; } }

/* banner strip (user 11 Nov 2026): the date tab and the button stay in the same place on every slide, whatever the
   title or place length: pinned to the top of the strip; title max 2 lines (ate.js fitCopy shrinks a longer one),
   category + place on ONE line (a long place ends in ...) */
.slide-cap { align-items: start; }
.slide-cap .cap-btn { margin-top: 4px; }
.cap-meta { flex-wrap: nowrap; overflow: hidden; }
.cap-meta span { flex: none; white-space: nowrap; }
.cap-meta span + span { flex: 1 1 auto; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; }
.cap-meta span + span .ico { vertical-align: -3px; margin-right: 6px; display: inline-block; }
/* user 11 Nov 2026: the place may wrap to a second line instead of being cut ("..."); up to 2 lines, the strip is a
   little taller so a 2-line title + 2-line place still fit above the dots */
.hero-stage { --cap: 128px; }
.cap-meta { align-items: flex-start; }
.cap-meta span + span { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
@media (max-width: 640px) { .hero-stage { --cap: 214px; } }
@media (max-width: 640px) {
  /* phones: the button sits under the text, so pin it to the strip's bottom edge (same place on every slide) */
  .slide-cap:not(.sx-cap) { height: var(--cap); grid-template-rows: auto 1fr; }
  .slide-cap:not(.sx-cap) .cap-btn { align-self: end; margin: 0 0 6px; }
}
/* the place's second line starts under its first line, not under the pin (user 11 Nov 2026) */
.cap-meta span.cap-place { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; gap: 6px; white-space: normal; overflow: visible; -webkit-line-clamp: unset; }
.cap-meta span.cap-place .ico { margin: 2px 0 0; flex: none; vertical-align: 0; }
.cap-meta .cp-t { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; white-space: normal; }
.cap-meta .cp-t { flex: 1 1 0; }

/* 11 Nov: wide posters use the full frame width - side margin = top margin; arrows float over the edge */
.slide-poster { inset: 18px 18px; }
@media (max-width: 640px) { .slide-poster { inset: 12px 12px; } }

/* 11 Nov: TOR bizcard - logo fits INSIDE the padded tile (was 56px in a 44px box) and the tile matches the logo's own navy */
.bc-tor .bc-logo { background: #071426; padding: 6px 10px; box-sizing: border-box; overflow: hidden; }
.bc-tor .bc-logo img { max-height: 44px; }

/* 12 Nov: event-page section tabs removed (user: not needed for content this short); keep the gap they made */
.ev-cols-notabs { margin-top: 44px; padding-top: 32px; border-top: 1.5px solid var(--line); }
@media (max-width: 640px) { .ev-cols-notabs { margin-top: 28px; padding-top: 22px; } }

/* 12 Nov: long write-ups - titled sections + "know before you go" (user: event pages "wayyy too short") */
.ev-secs { margin: 28px 0 8px; display: grid; gap: 18px; }
.ev-sec { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 14px; background: #fff; box-shadow: var(--shadow); }
.ev-sec h3 { font-size: 19px; margin: 0 0 6px; color: var(--ink); }
.ev-sec .ev-when { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary-d);
  background: var(--mint); border-radius: 999px; padding: 2px 12px 2px 8px; margin: 0 0 10px; }
.ev-sec .ev-when .ico { width: 16px; height: 16px; color: var(--primary); }
.ev-sec p { font-size: 16px; margin: 0 0 8px; }
.ev-sec ul, .ev-know ul { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 7px; }
.ev-sec li, .ev-know li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.55; }
.ev-sec li::before, .ev-know li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.ev-sec li b, .ev-know li b { color: var(--ink); }
.ev-know { margin: 22px 0 18px; background: var(--mint-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px 12px; }
.ev-know h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 8px; }
.ev-know h3 .ico { width: 22px; height: 22px; color: var(--primary); }
@media (max-width: 640px) { .ev-sec { padding: 14px 16px 10px; border-radius: 16px; } .ev-sec h3 { font-size: 17px; } .ev-know { padding: 14px 16px 10px; } }

/* 12 Nov: highlight icons moved into the right column, under the venue/map box (user) */
.ev-side .side-hl { margin-top: 20px; padding: 20px 18px 16px; }
.ev-side .side-hl .h-ico { margin-bottom: 12px; }
.highlights-side { margin: 0; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); row-gap: 14px; }
.highlights-side li + li { border-left: 0; }
.highlights-side li { padding: 10px 8px; border-radius: 16px; background: var(--mint-2); }
.highlights-side .ico { width: 34px; height: 34px; }
.highlights-side b { font-size: 15px; line-height: 1.35; }
@media (max-width: 640px) { .highlights-side { grid-template-columns: 1fr 1fr; } .highlights-side li:nth-child(3) { border-left: 0; } }

/* 12 Nov: poster + official photos strip - one row, scrolls sideways when there are many */
.ev-thumbs-photos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
.ev-thumbs-photos .ev-thumb { flex: 0 0 calc((100% - 50px) / 6); min-width: 74px; scroll-snap-align: start; }
@media (max-width: 640px) { .ev-thumbs-photos .ev-thumb { flex-basis: 30%; } }

/* event gallery turns by itself (ate.js): soft fade while the next picture loads */
[data-gal-main] { transition: opacity .35s ease; }
[data-gal-main].gal-fade { opacity: .25; }
@media (prefers-reduced-motion: reduce) { [data-gal-main] { transition: none; } }

/* event gallery: left / right arrows on the big picture (user 12 Nov 2026) */
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ink, #073D3B); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); transition: background .2s, transform .2s; }
.gal-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gal-nav:hover, .gal-nav:focus-visible { background: #fff; transform: translateY(-50%) scale(1.06); }
.gal-nav:focus-visible { outline: 3px solid var(--teal, #007F75); outline-offset: 2px; }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
@media (max-width: 640px) { .gal-nav { width: 38px; height: 38px; } .gal-prev { left: 8px; } .gal-next { right: 8px; } }

/* weekday line on the date tab (user 12 Nov 2026: "add weekdays to cards and calendar too") */
.dtab .dtab-wd { font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; opacity: .92; white-space: nowrap; line-height: 1.2; }
.dtab-cap .dtab-wd { font-size: 13.5px; }

/* race registration status (user 12 Nov 2026) */
.reg-badge { display: inline-block; margin-left: 4px; padding: 1px 10px; border-radius: 999px; font-size: .86em; font-weight: 700; }
.reg-open { background: #E3F6EF; color: #007F75; }
.reg-soon { background: #FFF4DE; color: #9A5B00; }
.reg-full, .reg-closed { background: #F1F1F1; color: #5B5B5B; }
.reg-periods { line-height: 1.5; }
.flag-reg { background: #F1F1F1; color: #5B5B5B; }

/* 13 Nov 2026 (user): no official picture -> a plain tile, never a generated illustration */
.img-blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bb, var(--mint)); color: var(--bf, var(--ink)); }
.img-blank svg { width: 30%; max-width: 72px; height: auto; opacity: .55; }
.img-blank small { font-size: 12.5px; opacity: .75; }
.ev-main-blank { aspect-ratio: 16 / 10; }
.ev-main-blank .img-blank svg { max-width: 110px; }
.ev-main-blank .img-blank small { font-size: 15px; }
.mini-img .img-blank { position: absolute; inset: 0; }

/* 13 Nov 2026 (user disliked the grey "no picture" tile): a teal title card on cards, no picture area on the page */
.img-type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 18px 18px 16px 18px; background: var(--grad-fill); color: #fff; text-shadow: var(--tshadow); }
.img-type::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); }
.img-type small { font-size: 12.5px; font-weight: 600; opacity: .9; letter-spacing: .02em; }
.img-type b { font-size: 19px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.img-type-sm { padding: 10px; } .img-type-sm b { font-size: 13px; -webkit-line-clamp: 3; }
.ev-top-nomedia { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
