:root {
  --navy:#112846;
  --navy-dark:#0b1c33;
  --ink:#172b43;
  --muted:#54667b;
  --line:#dce4ee;
  --paper:#f4f7fb;
  --gold:#e4c27a;
  --green:#166344;
  --mint:#dff3e8;
  --radius:16px;
  font-family:"DM Sans","Thonburi","Leelawadee UI",system-ui,sans-serif;
  color:var(--ink);
  background:var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; }
a { color:inherit; }
button,input,select { font:inherit; }
button { cursor:pointer; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #2875ad; outline-offset:3px; }
.wrap { width:min(1320px, calc(100% - 88px)); margin-inline:auto; }
.topbar { background:#fff; border-bottom:1px solid var(--line); }
.topbar-inner { min-height:68px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.brand,.sheet-link { display:inline-flex; align-items:center; gap:11px; text-decoration:none; font-weight:700; }
.brand-mark { display:grid; place-items:center; width:43px; height:37px; color:var(--gold); background:var(--navy); border-radius:8px; font-size:.88rem; letter-spacing:.08em; }
.sheet-link { padding:8px 13px; border:1px solid var(--line); border-radius:9px; font-size:.82rem; }
.sheet-link:hover,.tools select:hover { background:#edf3fa; }
.hero { isolation:isolate; position:relative; overflow:hidden; display:grid; grid-template-columns:1.55fr 1fr; align-items:end; gap:30px; margin-top:28px; padding:38px 44px 42px; border-radius:var(--radius); background:linear-gradient(112deg,var(--navy-dark),#163b62); color:#fff; }
.hero::after { content:""; position:absolute; z-index:-1; right:-70px; top:-235px; width:430px; aspect-ratio:1; border:1px solid #e4c27a5c; border-radius:50%; box-shadow:0 0 0 30px #e4c27a15,0 0 0 67px #e4c27a10,0 0 0 105px #e4c27a0d; }
.eyebrow { color:var(--gold); font-weight:700; font-size:.72rem; letter-spacing:.18em; margin:0 0 13px; }
.hero h1 { font-size:clamp(2.25rem,5.5vw,4.6rem); line-height:1.08; margin:0; font-weight:700; }
.hero-description { margin:15px 0 0; color:#d9e6f5; font-size:.98rem; }
.event { margin:0; border-left:1px solid #e4c27a7a; padding:4px 0 4px 22px; display:grid; gap:13px; }
.event dt { font-size:.74rem; color:var(--gold); }
.event dd { margin:3px 0 0; font-weight:600; line-height:1.45; }
.stats { display:grid; grid-template-columns:repeat(3,1fr) 1.6fr; margin:14px 0 0; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.stats > div { padding:17px 23px; border-right:1px solid var(--line); }
.stats > div:last-child { border-right:0; }
.stats dt { color:var(--muted); font-size:.83rem; font-weight:600; }
.stats dt span { color:#6c5729; font-size:.72rem; margin-left:4px; white-space:nowrap; }
.stats dd { margin:3px 0 0; color:var(--navy); font-size:clamp(1.45rem,3vw,2.35rem); font-weight:700; line-height:1.15; font-variant-numeric:tabular-nums; }
.stats .price-stat dd { font-size:clamp(1.12rem,2.7vw,2.15rem); white-space:nowrap; }
.lineup { margin-top:35px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:16px; }
.section-heading h2 { margin:0; font-size:1.8rem; line-height:1.2; }
.section-heading p { margin:5px 0 0; color:var(--muted); font-size:.88rem; }
.sync { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px 13px; color:var(--muted); font-size:.74rem; }
.sync button,.empty button { border:0; background:transparent; color:#194c79; font-weight:700; padding:5px 0; }
.sync button:disabled { opacity:.65; cursor:wait; }
.sync button span { font-size:1rem; margin-left:3px; }
.tools { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 19px; }
.filters,.search-sort { display:flex; gap:7px; align-items:center; }
.filters button,.search,.tools select { min-height:40px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font-size:.82rem; }
.filters button { font-weight:600; white-space:nowrap; }
.filters button[aria-pressed=true] { background:var(--navy); border-color:var(--navy); color:#fff; }
.filters button[data-status=available] { background:var(--mint); color:var(--green); border-color:#b7dbc8; }
.filters button[data-status=available][aria-pressed=true] { background:var(--green); border-color:var(--green); color:#fff; }
.filters button[aria-pressed=false]:hover { border-color:#8fa6c0; }
.search { display:flex; align-items:center; gap:10px; }
.search input { border:0; min-width:0; width:132px; padding:0; color:inherit; background:transparent; }
.search:focus-within { outline:2px solid #2875ad; outline-offset:2px; }
.search input:focus-visible { outline:none; }
.search-icon { position:relative; width:12px; height:12px; border:1.5px solid #61758d; border-radius:50%; }
.search-icon::after { content:""; position:absolute; width:5px; height:1.5px; bottom:-2px; right:-4px; background:#61758d; transform:rotate(45deg); }
.grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; }
.card { position:relative; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 2px 4px #142d4a08; transition:transform .18s ease,box-shadow .18s ease; }
.card:hover { transform:translateY(-2px); box-shadow:0 7px 16px #142d4a17; }
.photo,.detail-image { width:100%; aspect-ratio:4 / 3; overflow:hidden; display:grid; place-items:center; background:#e8eef5; color:var(--muted); font-size:.84rem; }
.photo img,.detail-image img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.card-body { display:flex; flex-direction:column; align-items:flex-start; flex:1; padding:14px 15px 15px; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:5px; background:#e8f1fa; color:#1c4a75; font-size:.72rem; font-weight:700; line-height:1.3; }
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge.available { background:var(--mint); color:var(--green); border-radius:999px; }
.badge.unavailable { background:#f8efd9; color:#78561c; }
.badge.other { background:#e9edf3; color:#4c5c70; }
.card h3 { margin:8px 0 0; min-height:2.6em; font-size:1.05rem; line-height:1.3; overflow-wrap:anywhere; }
.open-card { padding:0; border:0; background:transparent; text-align:left; font:inherit; font-weight:700; color:inherit; }
.open-card::after { content:""; position:absolute; inset:0; }
.open-card:focus-visible { outline:none; }
.card:focus-within { outline:3px solid #2875ad; outline-offset:3px; }
.card-footer { display:flex; align-items:center; justify-content:space-between; gap:6px; width:100%; min-height:42px; margin-top:auto; padding-top:8px; border-top:1px solid var(--line); }
.card-price { font-size:1.25rem; font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
.card-price.unpriced { font-size:.88rem; color:var(--muted); }
.card-arrow { color:#2e537b; font-size:1.16rem; }
.card-note { margin:0 0 9px; color:var(--muted); font-size:.78rem; line-height:1.4; }
.empty { text-align:center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; }
.footer { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--line); margin-top:34px; padding:18px 0 26px; font-size:.82rem; color:var(--muted); }
dialog { width:min(500px,calc(100% - 32px)); max-height:calc(100% - 32px); border:0; border-radius:var(--radius); padding:0; color:var(--ink); box-shadow:0 16px 60px #0b1c3366; }
dialog::backdrop { background:#0b1c339c; }
.close { position:absolute; top:10px; right:10px; width:35px; height:35px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--navy); font-size:1.45rem; line-height:1; }
.detail-image { max-height:42vh; }
.detail-body { padding:18px 22px 22px; }
.detail-body h2 { margin:8px 0 3px; line-height:1.25; }
.detail-price { color:var(--navy); font-weight:700; margin:0 0 12px; }
.detail-links { display:flex; flex-wrap:wrap; gap:14px; font-size:.85rem; font-weight:600; color:#194c79; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:1120px) { .wrap { width:calc(100% - 52px); } .tools { flex-wrap:wrap; } .grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:730px) {
  .wrap { width:calc(100% - 32px); }
  .topbar-inner { min-height:58px; }
  .hero { grid-template-columns:1fr; gap:23px; padding:25px 23px; margin-top:16px; }
  .event { padding-left:13px; }
  .stats { grid-template-columns:repeat(3,1fr); }
  .stats > div { padding:11px 10px; }
  .stats > div:nth-child(3) { border-right:0; }
  .stats .price-stat { grid-column:1 / -1; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:5px; }
  .stats .price-stat dd { margin:0; }
  .section-heading { align-items:start; }
  .sync { max-width:56%; text-align:right; }
  .lineup { margin-top:24px; }
  .search-sort { width:100%; flex-wrap:wrap; }
  .search { flex:1 1 100%; }
  .search input { width:100%; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .card-body { padding:10px; }
  .card h3 { font-size:.91rem; }
  .card-price { font-size:1rem; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }
.photo,.detail-image { position:relative; }
.photo img,.detail-image img { position:absolute; inset:0; }
