/* Layout: a sky-and-fairway page with soft white cards and one playful display face. */
@font-face { font-family: Mali; font-weight: 700; font-display: swap; src: url(../fonts/mali-700-thai.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Mali; font-weight: 700; font-display: swap; src: url(../fonts/mali-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Anuphan; font-weight: 400; font-display: swap; src: url(../fonts/anuphan-400-thai.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Anuphan; font-weight: 400; font-display: swap; src: url(../fonts/anuphan-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Anuphan; font-weight: 600; font-display: swap; src: url(../fonts/anuphan-600-thai.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Anuphan; font-weight: 600; font-display: swap; src: url(../fonts/anuphan-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Anuphan; font-weight: 700; font-display: swap; src: url(../fonts/anuphan-700-thai.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Anuphan; font-weight: 700; font-display: swap; src: url(../fonts/anuphan-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  color-scheme: light;
  --sky: #eaf6fc; --sky-deep: #bfe6f7; --ink: #18324a; --muted: #3d5668; --line: #cfe3ee;
  --green: #1c6e54; --green-dark: #123b2f; --mint: #e2f4ea; --sun: #ffd66e; --sun-soft: #fff3ce; --coral: #ff8e72;
  --white: #fff; --warn: #8a3b00; --warn-soft: #fcebdd; --blue: #1e4e8c; --blue-soft: #e2effa; --red: #7a1f1f; --red-soft: #f8e3e3;
  --font: Anuphan, "Sukhumvit Set", system-ui, sans-serif; --display: Mali, Anuphan, "Sukhumvit Set", sans-serif;
  --radius: 18px; --shadow: 0 8px 22px rgb(24 50 74 / 10%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 16px/1.55 var(--font); font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; font-weight: 700; }
h2 { font-size: 1.2rem; } h3 { font-size: 1.1rem; }
ul { margin: 0; padding-left: 1.25rem; }
a { color: #135e96; } a:hover { color: #0d4670; }
:focus-visible { outline: 3px solid #f2a93b; outline-offset: 2px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { width: min(800px, 100%); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 5; background: var(--white); padding: 8px 12px; }
.stack { display: flex; flex-direction: column; gap: 24px; } .stack-sm { display: flex; flex-direction: column; gap: 12px; } .stack-xs { display: flex; flex-direction: column; gap: 6px; }
.page { padding-block: 28px 56px; } .page-tight { padding-block: 16px 56px; }
.page-title, .display { font-family: var(--display); color: var(--green-dark); }
.page-title { font-size: clamp(1.9rem, 5vw, 2.6rem); } h2.display { font-size: 1.45rem; }
.lead { color: var(--muted); max-width: 68ch; font-size: 1.05rem; } .small { color: var(--muted); font-size: .86rem; } .warn { color: var(--warn); font-weight: 600; } .accent { color: var(--green); }
.between { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; } .split-main { flex: 999 1 540px; min-width: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 16px; transition: transform .18s ease, box-shadow .18s ease; }
.tone-white { background: var(--white); } .tone-sky { background: var(--blue-soft); } .tone-sun { background: var(--sun-soft); } .tone-mint { background: var(--mint); }
.soft-box { background: var(--sky); border-radius: 14px; padding: 12px; } .empty { padding: 24px; } .empty.soft { background: var(--sky); border-radius: 14px; text-align: center; }
.notice { background: var(--sun-soft); border-radius: 14px; padding: 10px 14px; font-weight: 600; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--green); font: 700 1.25rem var(--display); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.brand-mark .eye { fill: var(--ink); stroke: none; } .brand-mark .smile { fill: none; stroke-linecap: round; } .brand-mark .cap { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 22px; color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; transition: background .15s ease; }
.site-nav a:hover { background: var(--sky); } .site-nav a.is-current { background: var(--green); color: var(--white); }
.site-footer { background: var(--green-dark); color: var(--white); padding-block: 18px; font-size: .9rem; }
.site-footer a { color: var(--white); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; } .site-footer .between { align-items: center; }

.hero { background: var(--sky-deep); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-end; padding-top: 26px; }
.hero-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; }
.hero h1 { font: 700 clamp(1.9rem, 5.4vw, 3.1rem)/1.2 var(--display); color: var(--green-dark); } .hero p { font-size: 1.12rem; color: #1e4055; }
.hero-art { flex: 1 1 300px; min-width: 0; max-width: min(100%, 420px); max-height: 170px; margin-left: auto; display: block; }
.cloud { fill: var(--white); animation: float-cloud 8s ease-in-out infinite; } .sun { fill: var(--sun); } .hill-back { fill: #8cd3a6; } .hill-front { fill: #4fae80; }
.pole { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; } .flag { fill: var(--coral); transform-box: fill-box; transform-origin: left center; animation: wave 2.6s ease-in-out infinite; } .cup { fill: var(--green-dark); }
.ball { transform-box: fill-box; transform-origin: center; animation: roll 1.3s ease-out both; } .ball-body { fill: var(--white); stroke: var(--ink); stroke-width: 2; } .dimple { fill: var(--ink); }
@keyframes roll { 0% { transform: translateX(-90px) rotate(-360deg); } 70% { transform: none; } 85% { transform: translateY(-5px); } 100% { transform: none; } }
@keyframes wave { 50% { transform: skewY(-7deg); } }
@keyframes float-cloud { 50% { transform: translateX(14px); } }

.search-box { background: var(--white); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .field label { font-size: .88rem; font-weight: 600; }
input:not([type="checkbox"], [type="file"]), select { width: 100%; min-height: 46px; padding: 8px 10px; border: 1.5px solid #9db9c8; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 7px 14px; border: 1.5px solid transparent; border-radius: 12px; font: 600 .95rem var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: scale(.97); } .btn-solid { background: var(--green); color: var(--white); border-color: var(--green); } .btn-solid:hover { background: var(--green-dark); color: var(--white); } .btn-outline { background: var(--white); color: var(--green); border-color: var(--green); } .btn-outline:hover { background: var(--mint); color: var(--green-dark); } .btn-danger { background: var(--white); color: var(--warn); border-color: var(--warn); }
.search-go { min-height: 46px; font-weight: 700; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.weekend-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.weekend { flex: 0 0 98px; min-height: 80px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 16px; font: inherit; cursor: pointer; transition: transform .15s ease; }
.weekend:hover { transform: translateY(-2px); } .weekend span { font-size: .8rem; font-weight: 600; } .weekend strong { font-size: 1.35rem; line-height: 1.2; } .weekend small { font-size: .75rem; font-weight: 600; }
.weekend.is-on { background: var(--green); border-color: var(--green); color: var(--white); }
.sidebar { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; } .check input { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.event { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; } .event:hover, .grid-3 > .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event.is-cancelled { background: #fbf4f4; } .strike { text-decoration: line-through; }
.date-box { flex: 0 0 88px; display: flex; flex-direction: column; gap: 1px; padding: 8px 4px; text-align: center; color: var(--green-dark); background: var(--mint); border-radius: 14px; line-height: 1.2; } .date-box strong { font-size: 1.2rem; } .date-box span { font-size: .78rem; font-weight: 600; }
.event-main { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .event-main p { color: var(--muted); font-size: .9rem; } .event-main .warn { color: var(--warn); }
.eyebrow { font-size: .82rem; font-weight: 700; color: var(--green); }
.tour-line, .tour-head { display: flex; align-items: center; gap: 8px; } .tour-head { gap: 12px; }
.tour-mark { flex: none; width: 44px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden; background: var(--white); }
.tour-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tour-mark.is-large { width: 76px; height: 52px; }
.tour-mark.is-initials { background: var(--mint); color: var(--green-dark); font-size: .68rem; font-weight: 700; }
.tour-mark.is-large.is-initials { font-size: .9rem; }
.event-side { flex: 1 1 210px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 12px; font-size: .8rem; font-weight: 600; } .status-web { color: #0b5a3c; background: var(--mint); } .status-image { color: var(--blue); background: var(--blue-soft); } .status-check { color: var(--warn); background: var(--warn-soft); } .status-cancelled { color: var(--red); background: var(--red-soft); }
.source-link { display: inline-flex; align-items: center; min-height: 32px; font-size: .88rem; font-weight: 600; }
.stat span { display: block; color: var(--muted); font-size: .88rem; } .stat strong { font-size: 1.8rem; line-height: 1.3; }
.plan-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; } .plan-main { flex: 999 1 280px; min-width: 0; } .plan-row .field { flex: 1 1 150px; }
.mission { flex: 1 1 280px; background: var(--sun-soft); } .mission .small { color: #4b4221; } .bar { height: 10px; background: var(--white); border-radius: 6px; overflow: hidden; } .bar-fill { height: 100%; background: var(--green); border-radius: 6px; transition: width .3s ease; }
.chart { width: 100%; height: auto; display: block; } .grid-line { stroke: #dceaf1; stroke-width: 1; } .axis { fill: var(--muted); font-size: 13px; } .trend { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; } .dot { fill: var(--sun); stroke: var(--ink); stroke-width: 2; } .dot-label { fill: var(--ink); font-size: 13px; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .inline-form .field { flex: 1 1 170px; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cal-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .cal-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 20px; color: var(--ink); } .dialog::backdrop { background: rgb(24 50 74 / 45%); } .dialog h2 { margin-bottom: 8px; } .dialog p { margin-bottom: 16px; }

body { padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }
.sponsor-bar { position: fixed; inset: auto 0 0; z-index: 4; overflow: hidden; background: var(--sun); box-shadow: 0 -3px 12px rgb(24 50 74 / 14%); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sponsor-link { display: block; min-height: 46px; color: var(--ink); font-weight: 700; text-decoration: none; }
.sponsor-link:hover { color: var(--ink); }
.sponsor-track { display: flex; width: max-content; align-items: center; min-height: 46px; animation: sponsor-run 36s linear infinite; }
.sponsor-text { padding-inline: 32px; white-space: nowrap; }
.sponsor-link:hover .sponsor-track, .sponsor-link:focus .sponsor-track { animation-play-state: paused; }
@keyframes sponsor-run { to { transform: translateX(-50%); } }
.sponsor-text { display: inline-flex; align-items: center; gap: 10px; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; min-height: 30px; padding: 2px 10px; border: 2px dashed var(--ink); border-radius: 8px; background: rgb(255 255 255 / 55%); color: var(--ink); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sponsor-strip { background: var(--white); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sponsor-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sponsor-slots .logo-slot { min-width: 0; min-height: 72px; padding: 4px; text-align: center; white-space: normal; font-size: clamp(.78rem, 2.8vw, .95rem); text-decoration: none; background: var(--sun-soft); transition: transform .15s ease; }
.sponsor-slots .logo-slot:hover { transform: translateY(-2px); color: var(--ink); }
.year-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--white); border-radius: 14px; }
.year-tab { min-height: 44px; min-width: 66px; padding: 6px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 700 .98rem var(--font); cursor: pointer; }
.year-tab.is-on { background: var(--green); color: var(--white); }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; }
.upcoming-card { display: flex; flex-direction: column; gap: 6px; } .upcoming-card h3 { font-size: 1.05rem; } .upcoming-card p { color: var(--muted); font-size: .88rem; } .upcoming-card .source-link { margin-top: auto; }
.upcoming-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.countdown { padding: 3px 9px; border-radius: 10px; background: var(--sun-soft); color: #5a4509; font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .hero-inner { padding-top: 18px; } .hero-copy { padding-bottom: 0; } .hero-art { flex-basis: 100%; max-height: 96px; }
  .upcoming-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .upcoming-card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sponsor-track { width: auto; } .sponsor-text { white-space: normal; padding-block: 8px; padding-inline: max(16px, env(safe-area-inset-left, 0px)); } .sponsor-text[aria-hidden="true"] { display: none; }
  body { padding-bottom: 76px; }
}
