/* TEJINA.JP / EVENTS - ライトテーマ
 * 既存サイト（黒背景・Orbitron）と同じフォントを見出しに使い、
 * 本文は読みやすさ重視で淡灰背景＋カード白で構成。
 */

:root {
    --bg: #fafafa;
    --bg-elev: #ffffff;
    --bg-soft: #f0f0f0;
    --fg: #111111;
    --fg-soft: #555;
    --fg-mute: #888;
    --line: #e2e2e2;
    --line-strong: #cfcfcf;
    --accent: #111;
    --accent-soft: #f3f3f3;
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    --radius: 8px;
    --cat-lecture: #2563eb;
    --cat-show: #d97706;
    --cat-show_and_lecture: #7c3aed;
    --cat-contest: #0d9488;
    --cat-convention: #db2777;
    --cat-other: #4b5563;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Noto Sans JP', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #000; text-decoration-thickness: 2px; }

button { font-family: inherit; }

/* ===== Page ===== */
.page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 12px 48px;
}

.page-head .page-head__lead {
    color: var(--fg-soft);
    margin: 0;
}
.page-head__notes {
    margin: 10px auto 0;
    padding: 0 16px 0 1.5em;
    max-width: 36em;
    list-style: disc;
    text-align: left;
    font-size: 12px;
    color: var(--fg-mute);
    line-height: 1.6;
    box-sizing: border-box;
}
.page-head__notes li + li {
    margin-top: 4px;
}
@media (max-width: 600px) {
    .page-head__notes {
        max-width: none;
        width: 100%;
        padding: 0 20px 0 1.6em;
    }
}
.page-head .page-head__cta {
    margin: 16px 0 0;
}
.page-head__cta-link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--fg);
    background: var(--bg-elev);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.page-head__cta-link:hover {
    background: var(--bg-soft);
    border-color: var(--accent);
    text-decoration: none;
}

/* ===== 2 カラムレイアウト ===== */
.page__layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 16px;
}
.page__sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    /* sticky で上 16px を引けば下は画面端まで使ってよい。
       100vh と実レイアウトの丸め誤差で初期表示にスクロールバーが出る問題を避けるため、
       100dvh が使える環境では dvh 優先で少し広げる。 */
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
}
/* サイドバー内（PC）の検索フォームは 2 列に固定して終了日の見切れを防ぐ */
.page__sidebar .search-form__row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}
.page__sidebar .field--grow {
    grid-column: 1 / -1;
}
/* 過去含む行は子が 1 つだけなのに 2 列グリッドの半幅に収まりテキストが変に折り返すため全幅にする */
.page__sidebar .search-form__row > .field--inline-toggle {
    grid-column: 1 / -1;
}
/* サイドバー内の検索フォーム余白 */
.page__sidebar .search-panel > .search-form {
    padding: 0;
}
.page__sidebar .search-form__fields {
    gap: 18px;
    padding: 14px 16px 6px;
}
/* 検索／クリアは横 2 列だと狭くなりラベルが不自然に折り返すため、縦並び・全幅にする */
.page__sidebar .search-form__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 0;
    padding: 14px 16px 16px;
}
.page__sidebar .search-form__actions .btn {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    padding: 10px 12px;
}
/* 日付フィールドはフィールドのどこを押してもカレンダーが開く（JS 側で showPicker）。
   それが視覚的にも分かるよう、サイドバー内の type="date" には押せる雰囲気を出す。 */
.page__sidebar input[type="date"] {
    cursor: pointer;
}
.page__sidebar input[type="date"]:hover {
    border-color: var(--fg-soft);
}
.page__sidebar input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}
.page__sidebar input[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}
.page__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ===== Search panel ===== */
.search-panel {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.search-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}
.search-panel__title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.12em;
    font-size: 14px;
    margin: 0;
    color: var(--fg);
}
.search-panel__close {
    appearance: none;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--fg-soft);
    display: none;
    align-items: center;
    justify-content: center;
}
.search-panel__close:hover { background: var(--bg-soft); color: var(--fg); }
.search-panel > .search-form {
    padding: 16px 18px 18px;
}

/* 検索フォーム各ブロックの縦間隔を一定に */
.search-form__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* モバイル用ドロワー開閉トリガー（デフォルト非表示） */
.search-toggle { display: none; }
.search-toggle__icon {
    width: 16px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
}
.search-toggle__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}

/* モバイル用ドロワーバックドロップ（デフォルト非表示） */
.page__sidebar-backdrop { display: none; }
.search-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 14px;
    margin-bottom: 0;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--grow { grid-column: span 2; }
.field--inline {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px 8px;
    margin: 0;
}
.field--inline legend { padding: 0 4px; }
.field--inline label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
}
.field--inline-toggle {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    align-self: end;
    padding-bottom: 6px;
}
.field--block {
    margin: 0;
    border: 0;
    padding: 0;
    min-width: 0;
}
.field--block.field--inline {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px 14px;
}
.field--block.field--inline legend { padding: 0; }

/* ブロック見出し（期間・エリア・カテゴリ等）とキーワード行のラベル */
.search-form__fields > .search-form__row .field__label,
.field--block > legend.field__label {
    display: block;
    width: 100%;
    float: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: 0.06em;
    line-height: 1.4;
}

/* 入力欄直上のサブラベル（開始日・終了日など） */
.field--block .field > .field__label,
.field > .field__label:not(:first-child) {
    font-size: 12px;
    font-weight: 400;
    color: var(--fg-mute);
    letter-spacing: 0.04em;
    margin: 0;
}

.field__label {
    font-size: 12px;
    color: var(--fg-mute);
    letter-spacing: 0.05em;
}
.field__hint {
    margin: 0;
    font-size: 12px;
    color: var(--fg-mute);
    line-height: 1.5;
}
.field__hint--compact { margin-bottom: 8px; }
.field input[type="search"],
.field input[type="date"],
.field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: var(--fg);
}
.field input[type="search"]:focus,
.field input[type="date"]:focus,
.field select:focus {
    outline: 2px solid #111;
    outline-offset: 1px;
    border-color: #111;
}

.search-form__actions {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== チップ群（複数選択トグル） ===== */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip-group--dense { gap: 5px; }
.chip-group__empty {
    margin: 0;
    color: var(--fg-mute);
    font-size: 12px;
}
.chip {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--fg);
    font-family: inherit;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    line-height: 1.3;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.chip:hover { background: var(--bg-soft); border-color: #999; }
.chip:focus-visible {
    outline: 2px solid #111;
    outline-offset: 1px;
}
.chip[aria-pressed="true"] {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}
.chip-group--dense .chip {
    font-size: 12px;
    padding: 4px 10px;
}

/* ===== エリア・都道府県ピッカー（2 段構成） ===== */
/* 上段：地方ピル */
.loc-region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}
.chip.chip--region-head {
    font-weight: 600;
    padding: 6px 14px;
}
.chip.chip--region-head--full {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}
.chip.chip--region-head--partial {
    background: #fff8e8;
    border-color: #c9a227;
    color: var(--fg);
}

/* 下段：個別の都道府県アコーディオン */
.loc-prefs-acc {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.loc-prefs-acc__summary {
    list-style: none;
    cursor: pointer;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fg);
    user-select: none;
    transition: background 0.15s ease;
}
.loc-prefs-acc__summary::-webkit-details-marker { display: none; }
.loc-prefs-acc__summary:hover { background: var(--bg-soft); }
.loc-prefs-acc__label { font-weight: 600; flex-shrink: 0; }
.loc-prefs-acc__hint {
    flex: 1;
    color: var(--fg-mute);
    font-weight: 400;
    font-size: 12px;
}
.loc-prefs-acc__icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--fg-soft);
    border-bottom: 2px solid var(--fg-soft);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}
.loc-prefs-acc[open] .loc-prefs-acc__icon { transform: rotate(225deg); }
.loc-prefs-acc__body {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    background: #fafafa;
}

/* 下段カードグリッド */
.loc-picker--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.loc-picker__region {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px 10px;
    background: var(--bg-elev);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.loc-picker__region--full {
    background: #f1f5fb;
    border-color: #b6c3da;
}
.loc-picker__region--partial {
    background: #fffaf0;
    border-color: #e6cf90;
}
.loc-picker__region-name {
    font-size: 12px;
    color: var(--fg-mute);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.loc-picker__prefs {
    /* 県チップ群 */
}
/* hidden 属性が後段の display: flex に負けないよう、ID 指定で優先度を確保 */
#dates-actions[hidden] { display: none; }
.loc-picker__bulk-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .loc-picker--grid { grid-template-columns: 1fr; }
}

/* エリア・都道府県の一括解除（チップ直下、選択があるときだけ表示） */
.search-form__loc-clear {
    margin-top: 8px;
}
.search-form__loc-clear[hidden] { display: none !important; }
.search-form__loc-clear-btn {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    color: var(--fg-soft);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.search-form__loc-clear-btn:hover { color: var(--fg); }

/* ===== Buttons ===== */
.btn {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--fg);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--bg-soft); border-color: #999; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;
    letter-spacing: 0.05em;
}
.btn--primary:hover { background: #000; border-color: #000; }
.btn--xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
}
.btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ===== Calendar ===== */
.calendar-panel {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.calendar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.calendar-head__title {
    display: flex;
    gap: 6px;
    align-items: baseline;
    font-family: 'Orbitron', sans-serif;
    flex-grow: 1;
    justify-content: center;
}
/* カレンダー表示モード切替（月 / 週）。result-modes と同じ見た目にして UI を揃える */
.cal-views {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.cal-view {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 6px 14px;
    color: var(--fg-soft);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}
.cal-view + .cal-view { border-left: 1px solid var(--line); }
.cal-view:hover { color: var(--fg); }
.cal-view.is-active { background: var(--fg); color: var(--bg); }
.calendar-head__title select {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 6px 8px;
    background: #fff;
    font-size: 16px;
    font-family: inherit;
}

.calendar-grid {
    display: grid;
    /* 7 列を均等幅に */
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    table-layout: fixed;
    /* ローディング時のオーバーレイ／スピナー（::before/::after）の親基準。 */
    position: relative;
}
/* 月データ取得中：grid 全体を薄く覆い、中央にスピナーを重ねる。
   ::before がオーバーレイ、::after が回転するスピナー（既存 @keyframes spin を流用）。 */
.calendar-grid--loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
}
.calendar-grid--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--line);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 6;
    pointer-events: none;
}
.cal-cell {
    background: #fff;
    min-height: 84px;
    padding: 6px 8px;
    text-align: left;
    font-size: 12px;
    cursor: pointer;
    border: 0;
    appearance: none;
    color: var(--fg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background-color 0.15s ease;
    font-family: inherit;
    line-height: 1.2;
    overflow: hidden;
    min-width: 0; /* セル内テキストで親幅が伸びないように */
    position: relative; /* バッジを右上に絶対配置するため */
}
.cal-cell:hover:not(:disabled) { background: var(--accent-soft); }
.cal-cell--head {
    background: var(--bg-soft);
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    cursor: default;
    color: var(--fg-soft);
    font-weight: 500;
}
.cal-cell--head.sun { color: #c1383a; background: #fdecec; }
.cal-cell--head.sat { color: #2566c4; background: #ecf2fc; }

/* 平日セルの曜日カラー（土:青系 / 日:赤系 / 祝日:赤系） */
.cal-cell--sun:not(.cal-cell--out):not(.cal-cell--head),
.cal-cell--holiday:not(.cal-cell--out):not(.cal-cell--head) { background: #fff5f5; }
.cal-cell--sat:not(.cal-cell--out):not(.cal-cell--head) { background: #f5f8fd; }
.cal-cell--sun:not(.cal-cell--out) .cal-cell__date,
.cal-cell--holiday:not(.cal-cell--out) .cal-cell__date { color: #c1383a; }
.cal-cell--sat:not(.cal-cell--out) .cal-cell__date { color: #2566c4; }

.cal-cell--out { color: var(--fg-mute); background: #fafafa; }
/* 週表示：7 セルを縦積みでアジェンダ風に並べる。grid ではなく flex column */
.calendar-grid--week {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
}
.cal-week-month-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cal-week-month-divider__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
}
.cal-week-month-divider::before,
.cal-week-month-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-strong);
}
.cal-cell--week {
    min-height: 0;
    padding: 10px 14px;
}
.cal-cell--week .cal-cell__head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-right: 56px; /* 右上の cal-badge と被らないように余白を取る */
}
.cal-cell--week .cal-cell__weekday {
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-soft);
    min-width: 1.4em;
    text-align: center;
}
.cal-cell--week.cal-cell--sun:not(.cal-cell--out) .cal-cell__weekday,
.cal-cell--week.cal-cell--holiday:not(.cal-cell--out) .cal-cell__weekday { color: #c1383a; }
.cal-cell--week.cal-cell--sat:not(.cal-cell--out) .cal-cell__weekday { color: #2566c4; }
.cal-cell--week .cal-cell__date {
    font-size: 16px;
    font-weight: 700;
}
.cal-cell--week .cal-cell__holiday {
    font-size: 12px;
    margin-left: 2px;
}
.cal-cell--week .cal-cell__events {
    margin-top: 6px;
    margin-left: 50px;
    gap: 4px;
}
.cal-cell--week .cal-event-tag {
    font-size: 12px;
    padding: 3px 8px;
    white-space: normal;
}
.cal-cell--today { outline: 2px solid #111; outline-offset: -2px; z-index: 1; }
/* 過去日のセル：イベントタグを薄めにし、日付文字も控えめに（休日・選択日の強調は維持） */
.cal-cell--past:not(.cal-cell--out):not(.cal-cell--today):not(.cal-cell--selected) {
    background: #fafafa;
}
.cal-cell--past:not(.cal-cell--selected) .cal-cell__date { color: #aaa; }
.cal-cell--past:not(.cal-cell--selected) .cal-event-tag {
    background: #ececec;
    color: #888;
    border-color: #d6d6d6;
}
.cal-cell--selected { background: #111 !important; color: #fff !important; }
.cal-cell--selected .cal-badge { background: #fff; color: #111; }
.cal-cell--selected .cal-cell__date,
.cal-cell--selected .cal-cell__holiday,
.cal-cell--selected .cal-cell__weekday,
.cal-cell--selected .cal-event-tag { color: #fff !important; }
.cal-cell--has-events { font-weight: 600; }

.cal-cell__holiday {
    font-size: 10px;
    color: #c1383a;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-cell__date { font-size: 13px; }
.cal-cell__events { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cal-event-tag {
    display: block;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.cal-cell--selected .cal-event-tag { background: rgba(255,255,255,0.15); color: #fff; }
.cal-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.4;
    z-index: 1;
}

.calendar-status {
    margin-top: 8px;
    color: var(--fg-soft);
    font-size: 12px;
    min-height: 1em;
}

/* ===== Result list ===== */
.list-panel { margin-top: 0; }
.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.list-head__main { display: flex; flex-direction: column; gap: 2px; }
.list-head__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    letter-spacing: 0.1em;
    margin: 0;
}
.list-head__title--search::before {
    content: '検索';
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    font-family: system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: var(--accent, #0ea5e9);
    background: color-mix(in srgb, var(--accent, #0ea5e9) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, #0ea5e9) 35%, transparent);
    border-radius: 4px;
    vertical-align: middle;
}
.list-head__meta {
    color: var(--fg-mute);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* 絞り込みチップ：検索条件・カレンダー選択日を小さなバッジで横並びに */
.list-head__main { gap: 6px; }
.list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.list-filters[hidden] { display: none; }

.list-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px 2px 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--fg);
    font-size: 12px;
    line-height: 1.6;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-filter-chip:hover {
    border-color: #b0b0b0;
}
.list-filter-chip__icon {
    font-size: 11px;
    line-height: 1;
    opacity: 0.75;
}
.list-filter-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-filter-chip__clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg-mute);
    font-size: 14px;
    line-height: 1;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    transition: background 0.12s ease, color 0.12s ease;
}
.list-filter-chip__clear:hover,
.list-filter-chip__clear:focus-visible {
    background: rgba(0, 0, 0, 0.08);
    color: var(--fg);
    outline: none;
}
.list-filter-chip--day .list-filter-chip__clear {
    color: #a0791f;
}
.list-filter-chip--day .list-filter-chip__clear:hover,
.list-filter-chip--day .list-filter-chip__clear:focus-visible {
    background: rgba(199, 154, 43, 0.18);
    color: #6b4d10;
}

/* チップ列末尾の「すべてクリア」リンク風ボタン */
.list-filters__clear-all {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg-mute);
    font-size: 12px;
    padding: 2px 6px;
    margin-left: 4px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 4px;
}
.list-filters__clear-all:hover,
.list-filters__clear-all:focus-visible {
    color: #c1383a;
    text-decoration-color: #c1383a;
    outline: none;
}

/* カレンダーで日付を選んでいるときのチップは「選択中」として強調 */
.list-filter-chip--day {
    background: #fff7e0;
    border-color: #e9c97a;
    color: #6b4d10;
}
.list-filter-chip--day .list-filter-chip__icon {
    color: #c79a2b;
    opacity: 1;
}

/* 表示モード切替（▦ カード ≡ リスト）と「終了したイベントも表示」を縦に重ねる枠 */
.list-head__opts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.list-head__past-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--fg-soft);
    user-select: none;
    cursor: pointer;
    white-space: nowrap;
}
.list-head__past-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--accent, #777);
    cursor: pointer;
}
.list-head__past-toggle:hover { color: var(--fg); }
@media (max-width: 768px) {
    /* 件数テキストの長さが変わっても操作行の位置がずれないよう縦積みに固定 */
    .list-head {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .list-head__main {
        min-width: 0;
        width: 100%;
    }
    .list-head__meta {
        word-break: break-word;
    }
    .list-head__opts {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px 12px;
    }
    .list-head__past-toggle {
        white-space: normal;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* 結果表示モード切替（カード / リスト / タイムライン） */
.result-modes {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.result-mode {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 6px 12px;
    color: var(--fg-soft);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}
.result-mode + .result-mode { border-left: 1px solid var(--line); }
.result-mode:hover { color: var(--fg); }
.result-mode.is-active { background: var(--fg); color: var(--bg); }
.result-mode__icon { font-size: 14px; line-height: 1; }
@media (max-width: 480px) {
    .result-mode__label { display: none; }
    .result-mode { padding: 6px 10px; }
}

/* === デフォルト（card モード）=== */
.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.event-list[data-mode="list"] {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
}
.event-card,
a.event-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    appearance: none;
    color: inherit;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #aaa; }

/* 過去のイベント：薄めのグレー基調で「終わったもの」と分かるように */
.event-card--past {
    background: #f5f5f5;
    border-color: #d8d8d8;
    opacity: 0.78;
}
.event-card--past .event-card__title { color: #666; }
.event-card--past .event-card__date { color: #888; }
.event-card--past .event-card__image { filter: grayscale(0.6) brightness(0.95); }
.event-card--past:hover { opacity: 0.95; }
.event-card--past::before {
    content: '終了';
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    background: rgba(60, 60, 60, 0.85);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
/* 画像なしカードでは ::before の絶対配置バッジが日付テキストと重なるため、
   head 行の先頭にインラインで「終了」を出す形に切り替える。 */
.event-card--no-image.event-card--past::before { display: none; }
.event-card--no-image.event-card--past .event-card__head::before {
    content: '終了';
    background: rgba(60, 60, 60, 0.85);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.event-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-soft) center/cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.event-card--no-image .event-card__body { padding-top: 18px; }
.event-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.event-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px 10px;
    /* カード幅が狭い & カテゴリ名が長い（例: ショー＆レクチャー＋愛知県）と
       右側のバッジ列が日付列に食い込んでしまうため、必要に応じて 2 行に折り返す。 */
    flex-wrap: wrap;
}
.event-card__date {
    font-size: 12px;
    color: var(--fg-mute);
    letter-spacing: 0.05em;
    font-family: 'Orbitron', sans-serif;
    flex: 1;
    min-width: 0;
}
.event-card__badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.event-card__pref {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-soft);
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}
.event-card__title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.4; }
.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--fg-soft);
}
.event-card__meta > span { display: inline-flex; align-items: center; gap: 4px; }
/* アイコン付き要素（場所など）は flex でハンギングインデントにし、
   テキストが折り返してもアイコンの下にもぐり込まないようにする。 */
.event-card__meta .event-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
.event-card__meta-icon {
    flex-shrink: 0;
    line-height: 1.5;
}
.event-card__meta-text {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.event-card__performers {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
    color: var(--fg-soft);
}
.event-card__performers-icon {
    flex-shrink: 0;
    line-height: 1.5;
}
.event-card__performers-text {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cat-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--fg);
    border: 1px solid var(--line);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.cat-tag--lecture { color: var(--cat-lecture); border-color: currentColor; }
.cat-tag--show { color: var(--cat-show); border-color: currentColor; }
.cat-tag--show_and_lecture { color: var(--cat-show_and_lecture); border-color: currentColor; }
.cat-tag--contest { color: var(--cat-contest); border-color: currentColor; }
.cat-tag--convention { color: var(--cat-convention); border-color: currentColor; }
.cat-tag--other { color: var(--cat-other); border-color: currentColor; }

/* ===== List モード: 1 行表示 =====
 * 4 カラム固定グリッド：日付 / カテゴリ / タイトル / 場所
 * カテゴリ列を固定幅にして、タグの文字数に関わらず
 * タイトル開始位置を全行で揃える。
 */
.event-row,
a.event-row {
    display: grid;
    grid-template-columns: 100px 132px minmax(0, 1fr) minmax(0, 280px);
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    width: 100%;
    appearance: none;
    text-decoration: none;
    transition: background 0.12s ease;
}
.event-row:last-child { border-bottom: 0; }
.event-row:hover { background: #f6f7f9; }
/* 過去のイベント行：背景を薄いグレーにし、文字色を控えめに */
.event-row--past {
    background: #f5f5f5;
    color: #777;
}
.event-row--past .event-row__date,
.event-row--past .event-row__place { color: #888; }
.event-row--past .event-row__title { color: #666; font-weight: 500; }
.event-row--past:hover { background: #ececec; }
/* タイトル列の先頭に「終了」ピルを差し込む。
   日付列（100px）に「（終了）」を ::after で足すと隣のカテゴリタグと
   重なってしまうため、横幅に余裕のあるタイトル列側に出す。 */
.event-row--past .event-row__title::before {
    content: '終了';
    display: inline-block;
    margin-right: 6px;
    background: rgba(60, 60, 60, 0.85);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    vertical-align: middle;
    font-weight: 600;
}
.event-row__date {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: var(--fg-mute);
    white-space: nowrap;
}
/* カテゴリタグはセル内で左寄せに固定し、自身の幅は内容ぴったりに */
.event-row > .cat-tag {
    justify-self: start;
    text-align: center;
    white-space: nowrap;
}
.event-row__title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 場所列：カードと同じく 📍場所 と 👤出演者 を縦に積む。
   各行はアイコン＋テキストのフレックスで、テキストは 1 行省略表示。 */
.event-row__place {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--fg-soft);
    min-width: 0;
}
.event-row__place-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.event-row__place-icon {
    flex-shrink: 0;
    line-height: 1.4;
}
.event-row__place-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .event-row {
        grid-template-columns: 90px 110px minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 4px;
    }
    .event-row__title { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
    .event-row__place { grid-column: 3; grid-row: 1; max-width: none; }
}
@media (max-width: 480px) {
    .event-row {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto auto;
    }
    .event-row > .cat-tag { grid-column: 2; grid-row: 1; justify-self: start; }
    .event-row__title { grid-column: 1 / -1; grid-row: 2; }
    .event-row__place { grid-column: 1 / -1; grid-row: 3; }
}

/* （旧 timeline モードは廃止） */

.list-foot { text-align: center; margin-top: 20px; }

/* ===== ページャー（検索結果の番号式ページ送り） ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.pager[hidden] { display: none; }
.pager__btn {
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--fg);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}
.pager__btn:hover:not(:disabled) {
    background: var(--bg-soft);
    border-color: var(--accent);
}
.pager__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pager__btn.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pager__ellipsis {
    padding: 0 4px;
    color: var(--fg-mute);
    user-select: none;
}

.list-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--fg-soft);
    background: var(--bg-elev);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.list-error {
    padding: 16px;
    border-radius: var(--radius);
    background: #fff4f4;
    color: #b32c2f;
    border: 1px solid #f3c2c4;
}
.list-loading {
    padding: 32px 16px;
    text-align: center;
    color: var(--fg-mute);
}
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-top-color: #111;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Detail (modal) ===== */
.detail[hidden] { display: none; }
.detail {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
}
.detail__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    animation: fadein 0.15s ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.detail__panel {
    position: relative;
    width: min(560px, 100%);
    background: #fff;
    height: 100%;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    animation: slidein 0.2s ease-out;
    display: flex;
    flex-direction: column;
}
@keyframes slidein {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.detail__head {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.detail__title {
    margin: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
    word-break: break-word;
}
.detail__body { padding: 20px 20px 40px; }
.detail__image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-soft) center/cover no-repeat;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.detail__date {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--fg-soft);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--bg-soft);
    border-radius: 999px;
}
.detail__meta {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    margin-top: 4px;
}
.detail dl {
    display: grid;
    grid-template-columns: 96px 1fr;
    row-gap: 0;
    column-gap: 12px;
    margin: 0;
}
.detail dt,
.detail dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.detail dt:last-of-type,
.detail dd:last-of-type {
    border-bottom: none;
}
.detail dt {
    font-size: 11px;
    color: var(--fg-mute);
    letter-spacing: 0.08em;
    padding-top: 12px;
}
.detail dd {
    margin: 0;
    font-size: 14px;
    color: var(--fg);
    word-break: break-word;
}
.detail__section-title {
    margin: 24px 0 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--fg-mute);
}
.detail__description {
    margin-top: 0;
    padding: 16px 18px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    white-space: pre-wrap;
    line-height: 1.85;
}
.detail__external {
    display: block;
    margin-top: 24px;
    padding: 10px 16px;
    border: 1px solid #111;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    color: #111;
    background: #fff;
    text-align: center;
}
.detail__external:hover { background: #111; color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page { padding: 16px 12px 48px; }
    .calendar-panel { padding: 14px; }
    .search-panel > .search-form { padding: 14px; }
    .search-form__row { gap: 10px; }
    .field--grow { grid-column: span 1; }
    .calendar-grid { gap: 1px; }
    .cal-cell { min-height: 64px; padding: 4px 5px; }
    .cal-cell__events { display: none; }
    .cal-badge { font-size: 9px; padding: 0 5px; }
    /* 週表示は縦積みアジェンダ。タイトルが読めることが価値なのでイベント名を表示する */
    .calendar-grid--week .cal-cell--week { min-height: 0; padding: 8px 10px; }
    .calendar-grid--week .cal-cell--week .cal-cell__events { display: flex; }
    .calendar-grid--week .cal-cell--week .cal-cell__head { padding-right: 48px; }
    .event-list { grid-template-columns: 1fr; }
    .detail__panel { width: 100%; }
    .detail dl { grid-template-columns: 88px 1fr; }
    .detail__external { width: 100%; }
    .chip { padding: 4px 10px; font-size: 12px; }
    .chip-group--dense .chip { padding: 3px 8px; font-size: 11px; }

    /* レイアウトを 1 カラムへ。サイドバーは画面外のドロワーに切り替え。 */
    .page__layout {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 12px;
    }
    .page__main { gap: 16px; }

    .search-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        margin: 4px 0 12px;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        background: #fff;
        color: var(--fg);
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .search-toggle:hover { background: var(--bg-soft); }

    .page__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 88vw);
        max-width: 100%;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        pointer-events: none;
        max-height: none;
        overflow-y: visible;
    }
    .page__sidebar.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }
    .page__sidebar > .search-panel {
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        border: 0;
        border-right: 1px solid var(--line);
        box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    }
    .page__sidebar .search-panel__head {
        flex-shrink: 0;
    }
    .page__sidebar .search-form {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }
    .page__sidebar .search-form__fields {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 16px 18px 12px;
        -webkit-overflow-scrolling: touch;
    }

    /* モバイル時のみ単列に戻す（PC のサイドバー専用 2 列を打ち消し） */
    .page__sidebar .search-form__row {
        grid-template-columns: 1fr;
    }
    .page__sidebar .field--grow {
        grid-column: 1 / -1;
    }

    .page__sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 55;
    }
    .page__sidebar-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .search-panel__close { display: inline-flex; }

    body.has-drawer-open { overflow: hidden; }

    /* モバイルでは検索／クリアをドロワー下部に固定表示 */
    .page__sidebar .search-form__actions {
        flex-shrink: 0;
        margin-top: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-elev);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    }
    .page__sidebar .search-form__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .calendar-head { gap: 4px; justify-content: center; }
    .calendar-head__title { width: 100%; order: -1; margin-bottom: 4px; }
}

/* ===== 個別イベント SSR ページ ===== */
.page-head__back {
    margin: 0 0 12px;
    font-size: 13px;
}
.page-head__back a {
    color: var(--fg-soft);
    text-decoration: none;
}
.page-head__back a:hover {
    color: var(--fg);
    text-decoration: underline;
}
.event-detail-page {
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 0 16px 24px;
}
.event-detail-page .detail__date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.event-detail-page .detail__meta dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    margin: 0 0 20px;
}
.event-detail-page .detail__meta dt {
    font-weight: 600;
    color: var(--fg-soft);
}
.event-detail-page .detail__meta dd {
    margin: 0;
}
.event-detail-page .detail__section-title {
    font-size: 16px;
    margin: 0 0 8px;
}
.event-detail-page .detail__description {
    line-height: 1.8;
    margin-bottom: 20px;
    white-space: normal;
}
.event-detail-page .detail__external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.event-detail-page .detail__external:hover {
    text-decoration: underline;
}
.list-noscript-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--fg-soft);
}
