/* Eventory top-event pages. Tokens mirror website/assets/css/site.css. */
:root {
  --sky-100: #eaf7fc;
  --sky-200: #b7e3f1;
  --sky-500: #35aed3;
  --sky-600: #1b8fb8;
  --sky-700: #0e6e93;
  --navy-800: #06405f;
  --navy-900: #04304a;
  --ink: #0b2430;
  --ink-2: #3d5a68;
  --ink-3: #6c8593;
  --paper: #ffffff;
  --paper-2: #f4fafc;
  --line: rgba(4, 48, 74, 0.12);
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(4, 48, 74, 0.06), 0 10px 28px -14px rgba(4, 48, 74, 0.2);
  --now: #1f9d55;
  --soon: #c58a1f;
  --past: #8a9ba5;
  --accent: var(--sky-600);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f3f8;
    --ink-2: #a9c3d0;
    --ink-3: #7e9dac;
    --paper: #071e2b;
    --paper-2: #0a2836;
    --line: rgba(183, 227, 241, 0.14);
    --card: #0d2f3f;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px -16px rgba(0, 0, 0, 0.6);
    --sky-700: #7fcbe4;
    --now: #4cc27f;
    --soon: #e0ad4c;
    --past: #6f8794;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
:lang(ja) body, body:lang(ja) { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--sky-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 4.4vw, 2.7rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 0.8em; }
[hidden] { display: none !important; }

/* Japanese line breaking: no spaces, so lines break at phrases rather than mid-word. Chromium
   does it itself (auto-phrase). Titles also carry <wbr> between BudouX's phrases (render.py):
   with keep-all, Safari breaks only there; overflow-wrap still breaks a phrase too long for
   the line. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .hl-lead, :lang(ja) .hl-btn { word-break: auto-phrase; }
:lang(ja) .hl-event-page h1, :lang(ja) .hl-nearby-name, :lang(ja) .hl-event-title {
  word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere;
}

.hl-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.hl-skip { position: absolute; left: -999px; }
.hl-skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* header */
.hl-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hl-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.hl-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.hl-brand img { border-radius: 8px; }
.hl-brand:hover { text-decoration: none; }
.hl-header-nav { display: flex; align-items: center; gap: 16px; font-size: 0.95rem; }
.hl-header-nav a:not(.hl-btn) { color: var(--ink-2); white-space: nowrap; }

.hl-lang-suggest { background: var(--navy-800); color: #fff; font-size: 0.95rem; }
.hl-lang-suggest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.hl-lang-suggest a { color: #fff; font-weight: 700; }
.hl-lang-suggest .hl-icon-btn { color: #fff; }

/* buttons */
.hl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent; background: var(--navy-800); color: #fff;
  font: inherit; font-size: 0.92rem; font-weight: 650; line-height: 1.2; cursor: pointer;
  white-space: nowrap;
}
.hl-btn:hover { text-decoration: none; filter: brightness(1.12); }
.hl-btn-small { padding: 6px 12px; font-size: 0.85rem; }
.hl-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.hl-share-line { background: #06c755; color: #fff; border-color: #06c755; }
.hl-icon-btn { background: none; border: 0; font-size: 1.5rem; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--ink-3); }
.hl-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--sky-700); cursor: pointer; }
.hl-link-btn:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 2px; }

/* breadcrumbs */
.hl-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 16px 0 0; font-size: 0.85rem; color: var(--ink-3); }
.hl-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.hl-breadcrumbs a { color: var(--ink-2); }

/* hero */
.hl-hero { padding: 20px 0 8px; max-width: 820px; }
.hl-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); font-weight: 650; margin-bottom: 10px; }
.hl-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700; }
.hl-lead { font-size: 1.05rem; color: var(--ink-2); }
.hl-note { background: var(--paper-2); border-left: 4px solid var(--soon); padding: 10px 14px; border-radius: var(--radius-sm); }
.hl-note-info { border-left-color: var(--sky-500); color: var(--ink-2); }
.hl-updated { font-size: 0.8rem; color: var(--ink-3); margin-top: 10px; }
.hl-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }

/* event page: one column (the list of other events at the end keeps the page width) */
.hl-page-event .hl-hero, .hl-event-col, .hl-more > .hl-nearby, .hl-featured { max-width: 820px; }
.hl-event-page h1 { margin-bottom: 0.4em; }
.hl-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.hl-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 9px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 0.82rem; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.hl-pill .hl-ico { color: var(--accent); }
.hl-event-page .hl-lead { margin-bottom: 0; }
.hl-event-page .hl-note { margin-top: 14px; }
.hl-note > :last-child { margin-bottom: 0; }
.hl-last-held { color: var(--ink-2); }
.hl-ended-see { margin: 10px 0 4px; }

/* event page opening: the facts, then what to do with them */
.hl-facts { display: grid; gap: 10px 20px; margin: 16px 0 0; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hl-facts > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; }
.hl-facts dt { color: var(--ink-3); font-size: 0.85rem; font-weight: 700; padding-top: 2px; }
.hl-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.hl-facts dd .hl-muted { font-weight: 500; }
/* The card around the facts and their map. Its labels share one column as wide as the widest
   ("アクセス", "Access"); without subgrid, the fixed column above. */
.hl-facts-card { margin: 16px 0 0; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hl-facts-card > .hl-facts { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; gap: 12px 14px; }
.hl-facts-card dt { white-space: nowrap; }
@supports (grid-template-columns: subgrid) {
  .hl-facts-card > .hl-facts { grid-template-columns: max-content minmax(0, 1fr); }
  .hl-facts-card > .hl-facts > div { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
.hl-facts-card .hl-dates { gap: 4px; }
.hl-facts-card .hl-dates li { gap: 4px 8px; }
/* The shown date is the next one (or, once over, the last), whose status the hero already says. */
.hl-facts-card [data-dates] > li > .hl-status { display: none; }
.hl-facts-card .hl-dates-more { margin-top: 4px; }
.hl-facts-card .hl-dates-more > summary { color: var(--sky-700); font-weight: 650; font-size: 0.88rem; }
.hl-facts-card .hl-dates-more .hl-dates { font-weight: 500; }
.hl-facts-map { display: block; width: 100%; height: 180px; margin: 14px 0 0; border: 0; border-radius: var(--radius-sm); background: var(--paper); }
@media (min-width: 560px) { .hl-facts-map { height: 220px; } }
/* Add to calendar: a link-sized control under the dates. */
.hl-cal-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 0; color: var(--sky-700); font-size: 0.85rem; font-weight: 650; cursor: pointer; }
.hl-cal-link:hover { text-decoration: underline; }
.hl-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 14px 0 0; }
.hl-actions .hl-btn { min-height: 40px; }
.hl-actions .hl-link-meta { color: inherit; opacity: 0.75; font-weight: 500; margin-left: 2px; }
.hl-actions .hl-btn:first-child { white-space: normal; }
/* Pop-up menus (add to calendar, share): a details element; the page script closes it on a tap
   elsewhere and anchors it to the right when it would run off the screen. */
.hl-cal, .hl-menu { position: relative; }
.hl-cal { width: fit-content; }
.hl-cal > summary, .hl-menu > summary { list-style: none; }
.hl-cal > summary::-webkit-details-marker, .hl-menu > summary::-webkit-details-marker { display: none; }
.hl-cal-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; display: grid; min-width: 220px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(4, 48, 74, 0.16); }
.hl-cal-menu.is-end { left: auto; right: 0; }
.hl-cal-menu a, .hl-cal-menu button { padding: 10px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-weight: 600; text-align: left; background: none; border: 0; cursor: pointer; }
.hl-cal-menu a:hover, .hl-cal-menu button:hover { background: var(--paper-2); text-decoration: none; }
.hl-share-menu .hl-cal-menu { min-width: 180px; }
[data-ended-nearby] .hl-nearby { margin: 12px 0 0; }
.hl-images-more > summary { cursor: pointer; font-weight: 650; color: var(--sky-700); margin: 10px 0; }
.hl-images-more[open] > summary { margin-bottom: 12px; }
.hl-muted { color: var(--ink-3); font-size: 0.9rem; }

/* list layout: map sticky beside the list on wide screens */
.hl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 16px; }
@media (min-width: 980px) {
  .hl-list-panel { max-width: 820px; }
  .hl-map-panel { position: sticky; top: 76px; order: 2; }
  /* Event pages frozen before the one-column layout keep their sidebar. */
  .hl-page-event .hl-layout:has(> .hl-event-side) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  /* After the event page's own layout: its list of other events is one of these too. */
  .hl-events-layout:has(.hl-map-panel) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
}
.hl-map {
  width: 100%; height: clamp(280px, 48vh, 560px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2) linear-gradient(135deg, var(--sky-100), transparent);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.hl-map-embed { display: block; height: 260px; border: 0; margin: 12px 0; }
/* Once MapLibre owns the box, the placeholder's grid centering would shift its layers. */
.hl-map.maplibregl-map { display: block; }
.hl-map-message { color: var(--ink-3); padding: 16px; text-align: center; font-size: 0.9rem; }

/* toolbar */
/* The date filter and sort; on a phone, one line that scrolls sideways. */
.hl-toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.hl-toolbar::-webkit-scrollbar { display: none; }
.hl-seg { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper-2); }
.hl-seg button { border: 0; background: none; font: inherit; font-size: 0.85rem; padding: 5px 12px; white-space: nowrap; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.hl-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--card-shadow); }

/* events: a row reads like the app's list. The title first, across the row; then the
   subcategory and tags, dates and venue beside the thumbnail, which carries the map number.
   The map number sits in the top right corner, beside the title. The title link stretches over
   the whole row; the thumbnail and number sit above it. */
.hl-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hl-event {
  position: relative; display: flow-root; container-type: inline-size;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--card-shadow); line-height: 1.5;
  scroll-margin-top: 90px;
}
.hl-event.is-past { opacity: 0.62; }
.hl-event.is-focused, .hl-event:has(.hl-event-title a:focus-visible) { outline: 3px solid var(--accent); }
.hl-event-title {
  font-size: 1.05rem; font-weight: 750; line-height: 1.4; letter-spacing: 0; margin: 0 0 6px; padding-right: 32px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  text-wrap: pretty; word-break: auto-phrase;
}
.hl-event-title a { color: var(--ink); outline: none; }
.hl-event-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hl-num {
  position: absolute; top: 10px; right: 12px; z-index: 1; min-width: 24px; height: 24px; padding: 0 6px;
  border: 2px solid #fff; border-radius: 12px; background: var(--accent); color: #fff;
  font: 800 12px/20px var(--font); text-align: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hl-event.is-past .hl-num { background: var(--past); }
/* Flex rows avoid the floated thumbnail, so each wraps in the room beside it. */
.hl-event-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 2px; font-size: 0.85rem; }
.hl-kind {
  max-width: 100%; color: var(--kind, var(--accent)); font-weight: 750;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hl-tags { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; color: var(--ink-2); font-weight: 600; }
.hl-tag { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.hl-ico { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* On a phone-wide row the tags are icons only, as in the app; their label stays their title. */
@container (max-width: 380px) {
  .hl-tag-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.hl-event-when { margin: 0 0 1px; font-size: 0.88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.hl-event-where { margin: 0; font-size: 0.85rem; color: var(--ink-3); display: flex; gap: 4px; align-items: flex-start; }
.hl-event-where .hl-ico { margin-top: 0.22em; }
.hl-event-actions { position: relative; z-index: 1; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; }
.hl-event-where span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; }
:lang(ja) .hl-event { line-height: 1.45; }
:lang(ja) .hl-event-title, :lang(ja) .hl-kind, :lang(ja) .hl-nearby-name { font-feature-settings: "palt"; }

/* event images: the thumbnail floats right of a row, under its title, and the rows beside it
   wrap around it, as in the app */
.hl-thumb {
  --thumb: 92px;
  float: right; position: relative; z-index: 1; width: var(--thumb); height: var(--thumb); margin: 2px 0 2px 12px;
  border-radius: 12px; overflow: hidden; background: var(--paper-2);
}
/* Keeps a white flyer from melting into a white card. */
.hl-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.hl-thumb-track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hl-thumb-track::-webkit-scrollbar { display: none; }
.hl-thumb-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.hl-thumb-count {
  position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 5px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 11px; font-weight: 650; line-height: 1.4; pointer-events: none;
}
.hl-thumb.is-broken { display: none; }

.hl-status:empty { display: none; }
.hl-status { display: inline-block; font-size: 0.75rem; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.hl-status.is-now { background: var(--now); color: #fff; }
.hl-status.is-soon { background: color-mix(in srgb, var(--soon) 18%, transparent); color: var(--soon); }
.hl-status.is-past { background: transparent; color: var(--past); border: 1px solid var(--line); }

/* map pins */
.hl-pin {
  display: block; margin: 0;
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px;
  background: var(--accent); color: #fff; border: 2px solid #fff;
  font: 800 13px/24px var(--font); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hl-pin.is-past { background: var(--past); }
.hl-pin.is-now { background: var(--now); }
/* Selected pin: just bigger and lifted, so it keeps its single white outline and status color. */
.hl-pin.is-focused {
  transform: scale(1.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
/* The popup is always white, so it ignores the dark-mode palette. */
.hl-info, .hl-info-title { font-family: var(--font); color: #0b2430; max-width: 240px; }
.hl-info-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; padding-right: 16px; } /* clear of the close button */
.hl-info span { display: block; font-size: 12px; color: #3d5a68; margin-bottom: 4px; }
.hl-info strong { display: block; margin-bottom: 2px; font-size: 14px; }
.hl-info a { color: #0e6e93; font-size: 13px; font-weight: 650; }

/* cards & links */
.hl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--card-shadow); margin-bottom: 16px; }
.hl-dates { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hl-dates li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hl-dates li.is-past { color: var(--ink-3); }
.hl-dates-more { margin-top: 8px; }
.hl-dates-more > summary { cursor: pointer; color: var(--ink-3); font-size: 0.9rem; }
.hl-dates-more[open] > summary { margin-bottom: 6px; }
.hl-dates-more .hl-muted { margin: 6px 0 0; }
.hl-description ul { padding-left: 1.2em; }
/* An event page's images, whole: as wide as the card, at most 80% of the screen tall. --ar is
   the image's width / height, so the box has its size before the image loads. */
.hl-images { display: grid; gap: 14px; }
.hl-images h2 { margin-bottom: 0; }
.hl-image { display: block; justify-self: center; max-width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.hl-image img { width: auto; height: auto; max-width: 100%; max-height: 80vh; }
.hl-image.has-ratio { width: min(100%, calc(80vh * var(--ar))); }
.hl-image.has-ratio img { width: 100%; max-height: none; aspect-ratio: var(--ar); }
.hl-image.is-broken { display: none; }
/* The images as slides to swipe through, each whole and centred, at most 70% of the screen
   tall; the counter, dots and (on a wide screen with a mouse) arrows say where one is. */
.hl-images:has(.hl-carousel) { grid-template-columns: minmax(0, 1fr); }
.hl-carousel, .hl-carousel-frame { min-width: 0; }
.hl-carousel-frame { position: relative; }
.hl-carousel-track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--radius-sm); background: var(--paper-2);
}
.hl-carousel-track::-webkit-scrollbar { display: none; }
.hl-carousel-track:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 2px; }
.hl-slide { flex: 0 0 100%; width: 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.hl-slide .hl-image { border-radius: 0; }
.hl-slide .hl-image img { max-height: 70vh; }
.hl-slide .hl-image.has-ratio { width: min(100%, calc(70vh * var(--ar))); }
.hl-slide .hl-image.has-ratio img { max-height: none; }
.hl-carousel-count {
  position: absolute; top: 8px; right: 8px; padding: 1px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.78rem; font-weight: 650; line-height: 1.6;
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.hl-carousel-dots { display: flex; justify-content: center; gap: 0; margin-top: 4px; }
.hl-carousel-dots button { width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hl-carousel-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.4; }
.hl-carousel-dots button[aria-current="true"]::before { background: var(--accent); opacity: 1; }
.hl-carousel-nav {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); box-shadow: var(--card-shadow);
}
.hl-carousel-prev { left: 8px; }
.hl-carousel-next { right: 8px; }
@media (hover: hover) and (min-width: 760px) {
  .hl-carousel-nav { display: grid; place-items: center; }
  .hl-carousel-nav:disabled { opacity: 0; pointer-events: none; }
}
.hl-carousel.is-single .hl-carousel-count, .hl-carousel.is-single .hl-carousel-nav, .hl-carousel.is-single .hl-carousel-dots { display: none; }
.hl-images-note { margin: 0; font-size: 0.8rem; color: var(--ink-3); }
.hl-outlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hl-outlinks a, .hl-links a { display: flex; justify-content: space-between; gap: 12px; }
.hl-links { margin: 28px 0; }
.hl-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hl-links li a { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); height: 100%; flex-wrap: wrap; }
.hl-links li a:hover { border-color: var(--sky-500); text-decoration: none; }
.hl-card.hl-links ul { grid-template-columns: 1fr; }
.hl-link-label { font-weight: 650; }
.hl-link-meta { color: var(--ink-3); font-size: 0.85rem; }
.hl-related { margin-top: 12px; }
.hl-siblings { margin: 28px 0; }
.hl-more { margin: 28px 0; }
.hl-more > .hl-nearby { margin-bottom: 0; }
.hl-more .hl-siblings { margin-bottom: 0; }
.hl-siblings > h3 { font-size: 1.1rem; font-weight: 750; }
/* an event page's lists, as chips at its end */
.hl-featured { margin: 28px 0 0; }
.hl-featured h2 { font-size: 1rem; color: var(--ink-2); }
.hl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hl-chips a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 0.9rem; font-weight: 600; line-height: 1.4;
}
.hl-chips a:hover { border-color: var(--accent); text-decoration: none; }
/* an event page's suggestions: text on the left, the thumbnail on the right, like a list row */
.hl-nearby ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hl-nearby a { display: flex; justify-content: space-between; gap: 12px; padding: 8px; margin-inline: -8px; border-radius: var(--radius-sm); color: var(--ink); }
.hl-nearby a:hover { background: var(--paper-2); text-decoration: none; }
.hl-nearby-text { display: grid; gap: 2px; align-content: start; min-width: 0; }
.hl-nearby-name { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hl-nearby-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.85rem; color: var(--ink-2); }
.hl-nearby-where { font-size: 0.85rem; color: var(--ink-3); }
.hl-nearby img { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-2); }
.hl-ended-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hl-show-more { display: none; margin-top: 12px; }
.hl-more-all > .is-collapsed { display: none !important; }
.hl-more-all + .hl-show-more { display: inline-flex; }
.hl-link-group { margin: 0 0 20px; }
.hl-link-group h3 { font-size: 1.02rem; margin: 0 0 8px; }
.hl-link-group h3 { color: var(--ink-2); }
.hl-links li.hl-link-all a { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
/* the country page's prefectures, by region: all shown, two to a row on a phone */
.hl-regions .hl-link-group { margin-bottom: 16px; }


/* app promotion */
.hl-cta {
  margin: 40px 0 16px; padding: 24px; border-radius: 22px;
  background: linear-gradient(135deg, var(--navy-800), var(--sky-700));
  color: #fff; display: grid; gap: 16px; align-items: center;
}
@media (min-width: 760px) { .hl-cta { grid-template-columns: 1fr auto; } }
.hl-cta h2 { font-size: 1.4rem; color: #fff; }
.hl-cta p { color: rgba(255,255,255,0.88); margin: 0; }
.hl-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.3); min-width: 160px;
}
.hl-store-badge:hover { text-decoration: none; filter: brightness(1.2); }
.hl-store-badge .s1 { display: block; font-size: 0.68rem; line-height: 1.1; opacity: 0.85; }
.hl-store-badge .s2 { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.hl-disclaimer { font-size: 0.8rem; color: var(--ink-3); margin: 0 0 32px; }

.hl-app-banner {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.hl-app-banner img { border-radius: 10px; }
.hl-app-banner p { flex: 1; margin: 0; font-size: 0.88rem; font-weight: 650; line-height: 1.3; }
.hl-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 45;
  background: var(--navy-900); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 0.9rem;
}

.hl-footer { border-top: 1px solid var(--line); padding: 20px 0 96px; font-size: 0.85rem; color: var(--ink-3); }
.hl-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.hl-footer nav { display: flex; gap: 16px; }

@media (max-width: 560px) {
  .hl-header-nav .hl-header-cta { display: none; }
  .hl-header-nav { gap: 14px; }
  .hl-map-panel .hl-map { height: clamp(220px, 36vh, 320px); }
  .hl-events { gap: 8px; }
  .hl-event { padding: 10px 12px; }
  .hl-thumb { --thumb: 84px; margin-left: 10px; }
  /* the filter line scrolls edge to edge */
  .hl-toolbar { flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; }
  .hl-seg button { padding: 5px 10px; }
  .is-collapsed { display: none !important; }
  .hl-show-more { display: inline-flex; }
  .hl-regions ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hl-regions li a { padding: 8px 10px; gap: 0 8px; }
}
