/* Lausanne Samstag : programme du moment.
   Fond clair, encre noire, barre noire, rose et jaune en étiquettes. */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-italic-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --ground: #f6f4ef;
    --paper: #ffffff;
    --ink: #151515;
    --muted: #5b5a57;
    --dot: #c4c0b7;
    --line: #dedad1;
    --fluo: #243bdb;
    --yellow: #ffe500;
    --rose-ink: #a3004f;
    --rose-pale: #ffd9ea;

    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: 16px;
    --wrap: 880px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--dot) var(--ground);
}

body {
    min-height: 100vh;
    background: var(--ground);
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.bar :focus-visible { outline-color: var(--fluo); }

[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 50;
    background: var(--yellow); color: var(--ink); font-weight: 700;
    padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }

/* ---------- Barre ---------- */

.bar { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.bar-inner {
    max-width: var(--wrap); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter);
    padding-top: max(10px, env(safe-area-inset-top));
}
/* Approved bold raster logo: reveal its alpha bounds without redrawing letters. */
.logo { display: flex; flex-direction: column; gap: 5px; text-decoration: none; flex-shrink: 0; }
.logo-mark { display: block; position: relative; width: 184px; aspect-ratio: 2057 / 472; overflow: hidden; }
.logo-mark img { position: absolute; width: 105.5907%; max-width: none; height: auto; left: -2.52795%; top: -28.38983%; }
.logo-caption { font-size: 11px; line-height: 1.3; font-weight: 500; color: var(--muted); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid var(--ink); display: grid; place-items: center;
}
.icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.pill-btn {
    font-size: 14px; font-weight: 700; border: 1.5px solid var(--ink);
    border-radius: 999px; padding: 0 12px; height: 40px;
}
.icon-btn:hover, .pill-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Recherche ---------- */

.search-row { border-bottom: 1.5px solid var(--ink); background: var(--ground); }
.search-form { display: flex; gap: 8px; align-items: center; padding: 10px var(--gutter); }
.search-form input {
    flex: 1; min-width: 0; height: 42px; padding: 0 12px;
    font: inherit; font-size: 16px; color: var(--ink);
    background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px;
    caret-color: var(--fluo);
}
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus-visible { outline-offset: 1px; }
.search-summary { padding: 10px var(--gutter) 0; font-size: 15px; }
.search-summary strong { font-weight: 700; }

/* ---------- Onglets ---------- */

.tabs-shell {
    position: sticky; top: 0; z-index: 10;
    background: var(--ground);
    border-bottom: 1.5px solid var(--ink);
}
.tabs {
    display: flex; gap: 18px; padding: 12px var(--gutter) 0;
    overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    font-size: 15px; font-weight: 700; color: var(--muted);
    padding: 2px 0 9px; white-space: nowrap;
    border-bottom: 4px solid transparent; margin-bottom: -1.5px;
}
.tab small { font-size: 12px; font-weight: 500; margin-left: 3px; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--fluo); }
.tab:hover { color: var(--ink); }
.tabs-shell[hidden] { display: none; }

/* ---------- Filtres ---------- */

.controls { display: flex; gap: 7px; align-items: center; padding: 10px var(--gutter); flex-wrap: wrap; }
.chip {
    font-size: 13px; font-weight: 600; height: 32px; padding: 0 11px;
    border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap;
}
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--yellow); font-weight: 700; }
.seg {
    margin-left: auto; display: flex;
    border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden;
}
.seg button { font-size: 12.5px; font-weight: 700; height: 29px; padding: 0 9px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:focus-visible { outline-offset: -4px; outline-color: var(--fluo); }

.demo-note { padding: 0 var(--gutter) 6px; font-size: 13px; color: var(--muted); }
.demo-mark {
    display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--ink); border: 1.5px dashed var(--ink);
    padding: 0 5px; margin-right: 4px; transform: rotate(-1.5deg);
}

/* ---------- Première visite ---------- */

.onboard {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px;
    margin: 6px var(--gutter) 10px; padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.onboard h2 { font-size: 14px; font-weight: 600; }
.onboard-actions { display: flex; gap: 14px; align-items: center; }
.onboard-actions button { min-height: 44px; font-size: 13px; }

.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
    font-family: var(--font); font-size: 14px; font-weight: 800;
    padding: 6px 11px 7px; border: 1.5px solid var(--ink);
    transform: rotate(-1.5deg); background: var(--paper);
}
.choice[aria-pressed="true"].t1 { background: var(--rose-pale); color: var(--rose-ink); border-color: var(--rose-pale); }
.choice[aria-pressed="true"].t2 { background: var(--ink); color: var(--yellow); }
.choice[aria-pressed="true"].t3 { background: var(--yellow); border-color: var(--yellow); }
.choice[aria-pressed="false"] { background: var(--paper); color: var(--muted); border-style: dashed; }
.choice:hover { border-style: solid; }

/* ---------- Jour ---------- */

.day { padding-bottom: 6px; }
.day-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; padding: 14px var(--gutter) 2px; flex-wrap: wrap;
}
.day-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.day-head h2::first-letter { text-transform: uppercase; }
.masked { font-size: 13px; color: var(--muted); white-space: nowrap; }
.masked button {
    color: var(--ink); font-weight: 600; text-decoration: underline;
    text-underline-offset: 3px; padding: 6px 0;
}

/* ---------- Rubriques ---------- */

.rubric-head { display: flex; align-items: center; gap: 8px; padding: 20px var(--gutter) 7px; }
.tag {
    display: inline-block; font-size: 14px; font-weight: 800; line-height: 1.3;
    padding: 3px 9px 4px; transform: rotate(-1.5deg);
}
.t1 { background: var(--rose-pale); color: var(--rose-ink); }
.t2 { background: var(--ink); color: var(--yellow); }
.t3 { background: var(--yellow); color: var(--ink); }


/* ---------- Vue Liste ---------- */

.row {
    display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px;
    width: 100%; text-align: left; padding: 9px var(--gutter);
    border-bottom: 1px dotted var(--dot); align-items: start;
}
.row:hover { background: var(--paper); }
.row:focus-visible { outline-offset: -3px; }
#panel:focus { outline: none; }
.row > span { display: block; }
.h { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 1px; }
.h.nc { font-size: 12.5px; font-weight: 500; color: var(--muted); padding-top: 3px; }
.t { font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.d { display: block; font-size: 13.5px; font-style: italic; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.v { font-size: 14px; text-align: right; line-height: 1.3; font-weight: 600; max-width: 40vw; overflow-wrap: anywhere; }
.v .free { display: table; margin-left: auto; }
.v .nc, .v .price { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.free {
    display: inline-block; background: var(--yellow); color: var(--ink);
    font-weight: 700; font-size: 12.5px; padding: 0 5px; margin-top: 2px; letter-spacing: 0.01em;
}
.is-masked .t::after {
    content: "masqué"; font-size: 12px; font-weight: 600; color: var(--muted);
    border: 1px solid var(--dot); padding: 0 4px; margin-left: 6px; vertical-align: 2px;
}

/* ---------- Vue Affiches ---------- */

.grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; padding: 6px var(--gutter) 6px;
}
.tile {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; text-align: left;
    background: var(--paper); border: 1.5px solid var(--ink); min-width: 0;
}
.tile:hover { box-shadow: 0 6px 16px -10px rgba(21, 21, 21, 0.45); }
.media {
    position: relative; height: 92px; border-bottom: 1.5px solid var(--ink);
    background: #2b2a2e; overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .st {
    position: absolute; top: 6px; left: 6px; background: var(--yellow);
    font-weight: 700; font-size: 12px; padding: 2px 5px; font-variant-numeric: tabular-nums;
}
.media.type {
    background: var(--paper); display: flex; flex-direction: column;
    justify-content: flex-end; padding: 8px 10px 10px;
}
.media.type .k { display: block; font-size: 12px; font-weight: 700; color: var(--rose-ink); margin-top: 3px; }
.media.type .k::first-letter { text-transform: uppercase; }
.media.type .vn { font-weight: 800; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tile-body { padding: 7px 9px 9px; display: block; }
.tile-body .t { font-size: 14.5px; }
.tile-body .vv { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tile-body .free { font-size: 12px; padding: 0 4px; margin-top: 0; }
.tile.is-masked .t::after { display: none; }
.tile.is-masked .vv::after { content: " · masqué"; }

/* ---------- États ---------- */

.state { padding: 28px var(--gutter) 36px; max-width: 520px; }
.state h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.state p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.state-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    height: 44px; padding: 0 16px; font-weight: 700; font-size: 15px;
    border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none;
    background: var(--paper);
}
.btn:hover { background: var(--yellow); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333; color: #fff; }
.text-btn {
    font-weight: 600; font-size: 14px; text-decoration: underline;
    text-underline-offset: 3px; padding: 10px 2px; white-space: nowrap;
}

.skeleton { padding: 14px var(--gutter); }
.sk { background: var(--line); border-radius: 3px; height: 14px; margin: 10px 0; }
.sk.w1 { width: 55%; height: 22px; margin-bottom: 18px; }
.sk.w2 { width: 88%; }
.sk.w3 { width: 72%; }
@media (prefers-reduced-motion: no-preference) {
    .sk { animation: pulse 1.4s ease-in-out infinite; }
    @keyframes pulse { 50% { opacity: 0.5; } }
}

/* ---------- Pied de page ---------- */

.foot { border-top: 1.5px solid var(--ink); margin-top: 24px; }
.foot .wrap { padding: 18px var(--gutter) 32px; }
.foot p { font-size: 13px; color: var(--muted); max-width: 65ch; }
.foot p + p { margin-top: 6px; }

/* ---------- Panneaux (fiche, Mes goûts) ---------- */

.sheet {
    position: fixed; inset: auto 0 0 0; margin: 0 auto;
    width: 100%; max-width: 600px; max-height: 88vh; max-height: 88dvh;
    border: 0; border-top: 1.5px solid var(--ink);
    border-radius: 16px 16px 0 0; background: var(--ground); color: var(--ink);
    padding: 0; overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(21, 21, 21, 0.55); }
.sheet-inner { position: relative; padding: 22px var(--gutter) max(24px, env(safe-area-inset-bottom)); }
.sheet-inner::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px;
    margin-left: -20px; border-radius: 2px; background: var(--dot);
}
@media (prefers-reduced-motion: no-preference) {
    .sheet[open] { animation: sheet-up 0.32s var(--ease-out); }
    .sheet[open]::backdrop { animation: fade 0.32s var(--ease-out); }
    @keyframes sheet-up { from { transform: translateY(40%); opacity: 0.4; } }
    @keyframes fade { from { opacity: 0; } }
}
.close-btn {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
    display: grid; place-items: center; border-radius: 50%;
}
.close-btn:hover { background: var(--paper); }

.sheet-title, .ev-title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; padding-right: 44px; }
.ev-title { margin-top: 0; }
.ev-facts dd .tag { font-size: 13px; }
.sheet-lede { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sheet-sub { font-size: 15px; font-weight: 800; margin: 18px 0 8px; }

.ev-facts { margin-top: 14px; border-top: 1px dotted var(--dot); }
.ev-facts div {
    display: grid; grid-template-columns: 56px 1fr; gap: 8px;
    padding: 8px 0; border-bottom: 1px dotted var(--dot); font-size: 15px;
}
.ev-facts dt { font-size: 13px; color: var(--muted); padding-top: 1px; }
.ev-facts dd { font-weight: 600; }
.ev-facts dd small { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.ev-facts .nc { font-weight: 400; color: var(--muted); }
.ev-desc { margin-top: 14px; font-size: 15px; line-height: 1.5; max-width: 65ch; }
.ev-demo { margin-top: 10px; font-size: 13px; color: var(--muted); font-style: italic; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ev-hide { margin-top: 12px; }

.venue-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border-bottom: 1px dotted var(--dot); padding: 4px 0; font-weight: 600;
}
.venue-list .empty { font-weight: 400; color: var(--muted); font-size: 14px; padding: 8px 0; border: 0; }

/* ---------- Toast ---------- */

.toast {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
    transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
    display: flex; align-items: center; gap: 14px;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
    padding: 8px 8px 8px 16px; border-radius: 10px;
    box-shadow: 0 8px 24px -8px rgba(21, 21, 21, 0.5);
}
.toast:not(:has(button)) { padding-right: 16px; }
.toast button { color: var(--yellow); font-weight: 700; padding: 6px 8px; text-decoration: underline; text-underline-offset: 3px; }
.toast button:focus-visible { outline-color: var(--yellow); }

/* ---------- Grands écrans ---------- */

@media (min-width: 720px) {
    :root { --gutter: 24px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .media { height: 120px; }
    .row { grid-template-columns: 58px minmax(0, 1fr) minmax(0, 220px); gap: 14px; }
    .v { max-width: none; }
    .sheet { bottom: 24px; border: 1.5px solid var(--ink); border-radius: 16px; }
}
@media (min-width: 1000px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Compact source excerpts; the whole event opens its source directly. */
a.row, a.tile { color: inherit; text-decoration: none; }
.row .d, .tile .d {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-style: normal; margin-top: 3px;
}
.row > span:nth-child(2), .tile-body { min-width: 0; }
@media (max-width: 479px) {
    .row { grid-template-columns: 46px minmax(0, 1fr); column-gap: 8px; row-gap: 3px; }
    .row .v { grid-column: 2; text-align: left; max-width: none; font-size: 13px; }
    .row .v .price, .row .v .nc { display: inline; margin-left: 8px; }
    .row .v .free { display: inline-block; margin-left: 8px; margin-top: 0; }
}

/* Let event titles lead, with space between programme sections. */
.row .h { font-weight: 500; color: var(--muted); }
.event-arrow { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--ink); opacity: 0; }
a.row:hover .event-arrow, a.row:focus-visible .event-arrow { opacity: 1; }
@media (hover: none) { .event-arrow { opacity: 1; } }

/* Fixed print-ink identities, shared by headings and taste choices. */
.t1, .choice[aria-pressed="true"].t1 { background: #a3004f; color: #ffffff; border-color: #a3004f; }
.t2, .choice[aria-pressed="true"].t2 { background: #151515; color: #ffe500; border-color: #151515; }
.t3, .choice[aria-pressed="true"].t3 { background: #ffe500; color: #151515; border-color: #ffe500; }
.t4, .choice[aria-pressed="true"].t4 { background: #244bc0; color: #ffffff; border-color: #244bc0; }
.t5, .choice[aria-pressed="true"].t5 { background: #176449; color: #ffffff; border-color: #176449; }
.t6, .choice[aria-pressed="true"].t6 { background: #f5a54b; color: #151515; border-color: #f5a54b; }
/* Hover belongs to pointing devices; touch never keeps a selection tint. */
a.row:hover { background: transparent; }
@media (hover: hover) {
    a.row:hover { background: var(--paper); }
    a.row:hover .t { text-decoration: underline; text-underline-offset: 3px; }
}
a.row:focus-visible { background: var(--paper); }
a.row:focus-visible .t { text-decoration: underline; text-underline-offset: 3px; }

/* Event reading: one shared structure for every list and poster entry. */
button.row, button.tile { cursor: pointer; }
@media (hover: hover) {
    button.row:hover { background: var(--paper); }
    button.row:hover .t { text-decoration: underline; text-underline-offset: 3px; }
}
button.row:focus-visible { background: var(--paper); }
button.row:focus-visible .t { text-decoration: underline; }
/* Lot mobile bêta : lecture et décision avant le détail. */
.availability { display: inline-block; font-size: 12px; font-weight: 700; border: 1px solid var(--ink); padding: 1px 6px; margin-top: 5px; }
.ev-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ev-price .availability { margin-top: 0; }
.ev-price .price { font-weight: 600; }
.ev-note { max-width: 65ch; }
.ev-title { overflow-wrap: anywhere; text-wrap: balance; }
.row .v, .tile .vv { overflow-wrap: anywhere; }
@media (max-width: 719px) {
    .icon-btn { width: 44px; height: 44px; }
    .pill-btn, .chip, .seg button { min-height: 44px; height: auto; }
    .tab { min-height: 44px; }
    .controls { gap: 8px; padding-top: 14px; padding-bottom: 14px; }
    .seg { margin-left: 0; }
    .sheet-inner { padding-top: 28px; }
    .text-btn { min-height: 44px; }
}
@media (max-width: 479px) {
    .bar-inner { flex-wrap: wrap; gap: 10px; }
    .bar-actions { margin-left: auto; }
    .logo { font-size: 18px; }
    .pill-btn { padding: 0 10px; }
    .bar-actions { gap: 6px; }
    .row { padding-top: 14px; padding-bottom: 14px; row-gap: 6px; }
    .row .t { line-height: 1.4; }
    .row .d { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; margin-top: 4px; }
    .row .v { font-size: 14px; line-height: 1.6; }
    .row .v .price, .row .v .nc, .row .v .free { display: block; margin-left: 0; }
    .row .v .free { display: inline-block; }
}

/* Retour testeur, dans la continuité des panneaux Samstag. */
.feedback-label { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
#feedback-form select, #feedback-form textarea { display: block; width: 100%; min-height: 44px; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 8px; color: var(--ink); background: var(--paper); caret-color: var(--fluo); }
#feedback-form textarea { resize: vertical; }
#feedback-form textarea::placeholder { color: var(--muted); }
#feedback-form button:disabled { opacity: .6; cursor: default; }
.ev-report { display: block; text-align: left; white-space: normal; margin-top: 8px; }
#feedback-open { min-height: 44px; margin-bottom: 8px; }
/* L'avis reste accessible même dans un long programme. */
body { padding-bottom: 72px; }
#feedback-open { position: fixed; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 12; margin: 0; padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; }
#feedback-open:hover { background: var(--yellow); }

/* Fiche événement compacte : informations, visuel, description et actions. */
#event-sheet { max-width: 640px; }
#event-sheet .sheet-inner { padding: 28px 28px max(18px, env(safe-area-inset-bottom)); }
#event-sheet .close-btn { top: 16px; right: 14px; }
.ev-title:focus { outline: none; }
.ev-title { margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.ev-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; }
.ev-identity .tag { font-size: 13px; }
.ev-credit { font-size: 14px; color: var(--muted); }
.ev-summary { margin-top: 22px; padding: 23px 0 22px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.ev-summary.ev-has-image { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 24px; align-items: start; }
.ev-essentials { min-width: 0; }
.ev-date { font-size: 19px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.ev-time { margin-top: 5px; font-size: 18px; line-height: 1.4; font-weight: 750; font-variant-numeric: tabular-nums; }
.ev-overnight { margin-top: 2px; font-size: 12px; color: var(--muted); }
.ev-place { margin-top: 18px; font-size: 16px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.ev-address { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ev-visual { margin: 0; }
.ev-visual img { width: 104px; height: 139px; object-fit: contain; }
.ev-section { margin-top: 20px; }
.ev-story { padding-bottom: 22px; }
.ev-prose { font-size: 15px; line-height: 1.65; max-width: 65ch; overflow-wrap: anywhere; }
.ev-prose + .ev-prose { margin-top: 10px; }
.ev-film { font-size: 14px; line-height: 1.6; }
.ev-kind { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ev-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 8px; max-width: 65ch; overflow-wrap: anywhere; }
.ev-actions { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.ev-actions .btn { flex: 0 1 auto; min-height: 44px; height: auto; padding: 0 16px; font-size: 14px; gap: 8px; white-space: nowrap; text-decoration: none; }
.ev-actions .btn svg { flex-shrink: 0; }
.ev-more { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; margin-left: auto; }
.ev-more:hover { background: var(--paper); }
.ev-options { position: absolute; right: 0; bottom: calc(100% + 6px); width: min(280px, 100%); padding: 8px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); z-index: 1; }
.ev-option { display: block; width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; font-size: 13px; font-weight: 400; line-height: 1.5; white-space: normal; border-radius: 6px; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ev-option:hover { background: var(--ground); }
@media (min-width: 720px) {
    #event-sheet .sheet-inner::before { display: none; }
}
@media (max-width: 719px) {
    #event-sheet .sheet-inner { padding: 28px 20px max(16px, env(safe-area-inset-bottom)); }
    #event-sheet .close-btn { right: 10px; }
    #event-sheet .ev-title { font-size: 23px; }
    .ev-summary { margin-top: 20px; padding: 19px 0 20px; }
    .ev-summary.ev-has-image { grid-template-columns: minmax(0, 1fr) 80px; gap: 15px; }
    .ev-visual img { width: 80px; height: 107px; }
    .ev-date, .ev-time { font-size: 17px; }
    .ev-place { font-size: 15px; margin-top: 16px; }
    .ev-address { font-size: 12.5px; }
    .ev-section { margin-top: 18px; }
    .ev-story { padding-bottom: 20px; }
    .ev-actions { gap: 8px; padding-top: 14px; }
    .ev-actions .btn { padding: 0 12px; font-size: 13px; }
}

@media (max-width: 370px) {
    .logo-mark { width: 154px; }
    .logo-caption { font-size: 10px; }
}
