/* Fest keeps the passport's paper, type and 4px rhythm. */
.fest-stack,.fest-pad { display:flex; flex-direction:column; gap:16px; }
.fest-pad { padding:18px; position:relative; }
.fest-stack { min-width:0; }
.fest-banner { margin:0; overflow:hidden; border-radius:12px; }
.fest-banner img,.fest-room>img,.fest-venue>img { display:block; width:100%; height:auto; object-fit:cover; border-radius:12px; }
.fest-tags,.fest-filters { display:flex; flex-wrap:wrap; gap:8px; }
.fest-turn { background:var(--yellow); color:var(--ink); border:2px solid var(--ink); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:8px; }
.fest-input--note { resize:vertical; }
.fest-companion-new { display:block; margin-top:4px; font-size:14px; line-height:20px; color:var(--muted); }
.fest-input { display:block; width:100%; min-height:48px; padding:10px 12px; border:2px solid var(--ink); border-radius:8px; background:var(--paper); color:var(--ink); font:inherit; line-height:24px; }
.fest-day-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fest-day { display:flex; align-items:center; gap:8px; min-height:48px; border:2px solid var(--ink); border-radius:8px; padding:10px; font-size:14px; line-height:20px; }
.fest-facts { margin:0; display:flex; flex-direction:column; gap:12px; }
.fest-facts>div { display:flex; justify-content:space-between; gap:16px; line-height:24px; }
.fest-facts dt { flex:1; }.fest-facts dd { margin:0; text-align:right; font-weight:700; }
.fest-total { font-size:20px; font-weight:800; }
.fest-history { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.fest-history li { display:flex; flex-wrap:wrap; gap:8px 16px; justify-content:space-between; }
.fest-history li>div { flex:1 1 180px; }
.fest-bank { white-space:pre-wrap; overflow-wrap:anywhere; }
.fest-details>summary { cursor:pointer; list-style:none; min-height:48px; display:flex; align-items:center; }
.fest-details[open]>.fest-stack { margin-top:16px; }
.fest-room { position:relative; overflow:hidden; }
.fest-room__head { display:flex; justify-content:space-between; align-items:start; gap:12px; padding:18px; }
.fest-room__head>div { min-width:0; }
.fest-floor { display:grid; grid-template-columns:repeat(auto-fit,112px); justify-content:center; column-gap:16px; padding:2px 18px 18px; border-top:2px solid var(--ink); background:var(--sand-2); }
/* Beds side by side share their rows (subgrid): the drawings, the names under
   them, the kind, the price and the state each start level across a row, however
   many names a neighbour carries. The rows have no gap, so a row nobody fills
   takes no room; each part brings its own space above it, a drawing the 16px
   between rows of beds (hence the floor's 2px top). A sixth part needs a sixth
   row: raise the span and give it its own grid-row. */
.fest-bed-choice { position:relative; display:grid; grid-row:span 5; grid-template-rows:subgrid; justify-items:center; align-items:start; text-align:center; }
.fest-bed-choice > * { margin-top:4px; }
.fest-bed-choice > :is(.fest-bed-slot, .fest-bed-button) { grid-row:1; margin-top:16px; }
.fest-bed-choice > .fest-bed-names { grid-row:2; }
.fest-bed-choice > .lbl { grid-row:3; }
.fest-bed-choice > strong { grid-row:4; }
.fest-bed-choice > .muted { grid-row:5; }
.fest-bed { display:block; flex:none; max-width:100%; }
.fest-bed__frame { fill:#e8d3ab; stroke:var(--fest-bed-edge,var(--ink,#17150f)); stroke-width:2; }
.fest-bed__mattress { fill:#fffdf4; stroke:var(--ink,#17150f); stroke-width:2; }
.fest-bed__pillow { fill:white; stroke:var(--ink,#17150f); stroke-width:2; }
.fest-bed__line { fill:none; stroke:var(--ink,#17150f); stroke-width:2; }
.fest-bed__person { fill:var(--ink,#17150f); }
.fest-bed--taken .fest-bed__mattress { fill:#bfb9ac; }.fest-bed--mine .fest-bed__mattress { fill:#f9c901; }
/* Who sleeps in a bed (pase/fest_pickers/show): one name per meeple, apart
   enough that two never read as one, and two lines at most. */
.fest-bed-names { list-style:none; margin:0; padding:0; width:100%; display:flex; flex-direction:column; gap:8px; font-size:13px; line-height:16px; font-weight:700; overflow-wrap:anywhere; }
.fest-bed-names li { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
/* A bed nobody can pick sits in the same box as one that can, so the drawings stay level. */
.fest-bed-slot,.fest-bed-button { display:flex; align-items:center; justify-content:center; border:2px solid transparent; padding:2px; border-radius:12px; min-height:120px; min-width:72px; }
.fest-bed-button { background:none; cursor:pointer; }
.fest-bed-button:focus-visible,.fest-bed-button:hover { border-color:var(--ink); outline:none; }
.fest-filter { min-height:44px; padding:10px 14px; background:var(--paper); border:2px solid var(--ink); border-radius:24px; font:inherit; line-height:20px; }
.fest-filter[aria-pressed=true] { background:var(--yellow); }
/* Above the operator's badges (z-index 1) it slides over. */
.fest-pickbar { position:sticky; z-index:2; bottom:calc(12px + env(safe-area-inset-bottom,0px)); display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px; background:var(--paper); border:2px solid var(--ink); border-radius:12px; box-shadow:var(--shadow); }
.fest-pickbar strong { font-size:24px; line-height:28px; }
.fest-sheet { border:2px solid var(--ink); border-radius:16px; padding:22px; background:var(--paper); color:var(--ink); width:calc(100% - 32px); max-width:398px; }
.fest-sheet::backdrop { background:#17150f80; }
.fest-sheet .text-link { justify-content:center; }
[hidden] { display:none!important; }
/* Words that belong together and stand on the page's own ground (a head and
   its paragraph, an intro and its link): marked in the markup, nothing at all
   without a look; under one, a pane (below). A pane never wraps a button. */
.look-pane { display:contents; }
/* The check-in's message keeps its step between heading and words. */
.checkin > .look-pane:first-child > :first-child { margin-bottom:8px; }

/* The same operator door under the passport layout; it reserves no row space. */
.app .card:has(> .admin-peek),.fest-reservation-head { position:relative; }
.app .admin-peek { position:absolute; z-index:1; top:8px; right:8px; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:44px; min-height:44px; padding:8px; border:2px solid var(--ink); border-radius:24px; background:var(--ink); color:var(--paper); font-size:12px; line-height:20px; text-decoration:none; box-shadow:2px 2px 0 var(--yellow); }
.app .admin-peek .go-icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.app .admin-peek__label { display:none; }

.screen>.testing { border:2px solid var(--ink); border-radius:8px; padding:10px 18px; }

.fest-pickbar { margin-top:16px; }

/* «Avisos del campamento» (pase/fest_reservations/_notice): the event's notice
   as a routed wooden trailhead sign on two posts; tapping it opens the whole
   text nailed to a pine board on a wall of planks, full screen. Wood is CSS
   only: a noise SVG for the grain over a base color, seams as gradients. */
.fest-notice {
  --wood-dark:#2b170a;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='4' stitchTiles='stitch' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.08 0 0 0 0 0.03 1.6 0 0 0 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.14' numOctaves='4' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 1.1 0 0 0 -0.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-v:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='520'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.16 0.004' numOctaves='4' stitchTiles='stitch' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 0 0.02 1.6 0 0 0 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  position:relative; padding-bottom:36px;
}
.fest-notice::after { content:""; position:absolute; left:20px; right:20px; bottom:-6px; height:14px; border-radius:50%; background:radial-gradient(closest-side,rgba(43,23,10,.35),transparent); }
.fest-notice__post { position:absolute; top:28px; bottom:0; width:26px; border:2px solid var(--wood-dark); border-radius:4px 4px 2px 2px; background:var(--grain-v),linear-gradient(90deg,#4a2c16,#70442a 45%,#4a2c16); }
.fest-notice__post--l { left:46px; }
.fest-notice__post--r { right:46px; }
.fest-notice__wood { background:repeating-linear-gradient(180deg,transparent 0 58px,rgba(30,14,4,.6) 58px 61px,rgba(255,210,150,.12) 61px 62px),var(--grain),linear-gradient(180deg,#8d572d,#774723); }
.fest-notice__sign { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:22px 22px 20px; text-align:center; color:#f4e2bf; border:3px solid var(--wood-dark); border-radius:14px; box-shadow:inset 0 2px 0 rgba(255,210,150,.2),inset 0 -3px 0 rgba(0,0,0,.25),0 6px 0 var(--wood-dark); cursor:pointer; -webkit-user-select:none; user-select:none; }
.fest-notice__sign:has(.fest-notice__open:focus-visible) { outline:3px solid var(--ink); outline-offset:4px; }
.fest-notice__nail { position:absolute; width:10px; height:10px; border-radius:50%; background:radial-gradient(circle at 35% 35%,#ece6da 0 15%,#918a7e 45%,#39342c 100%); box-shadow:0 1px 0 rgba(255,220,160,.3),0 -1px 1px rgba(0,0,0,.4); }
.fest-notice__nail--tl { top:11px; left:11px; }.fest-notice__nail--tr { top:11px; right:11px; }
.fest-notice__nail--bl { bottom:11px; left:11px; }.fest-notice__nail--br { bottom:11px; right:11px; }
.fest-notice__kicker { display:block; font-family:var(--mono); font-size:12px; line-height:16px; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:#f2d9a6; text-shadow:0 -1px 0 rgba(0,0,0,.65),0 1px 0 rgba(255,220,160,.22); }
.fest-notice__title { color:var(--yellow); font-weight:900; text-transform:uppercase; letter-spacing:.03em; overflow-wrap:anywhere; text-shadow:0 -2px 0 rgba(20,8,0,.8),0 1px 0 rgba(255,228,160,.4); }
.fest-notice__sign .fest-notice__title { font-size:30px; line-height:36px; }
.fest-notice__sign .fest-notice__title::after { content:""; display:block; width:72px; height:4px; margin:8px auto 0; border-radius:2px; background:var(--wood-dark); box-shadow:0 1px 0 rgba(255,220,160,.3); }
/* The preview sits in a routed inset panel, so no plank seam runs through its lines. */
.fest-notice__panel { width:100%; padding:14px 16px 0; border-radius:8px; background:var(--grain),linear-gradient(180deg,#7c4a25,#6f421f); box-shadow:inset 0 3px 4px rgba(20,8,0,.55),inset 0 -1px 0 rgba(255,210,150,.18),0 1px 0 rgba(255,210,150,.2); }
.fest-notice__preview { max-height:176px; overflow:hidden; text-align:left; font-size:15px; line-height:22px; color:#f7e9cc; text-shadow:0 1px 0 rgba(0,0,0,.4); -webkit-mask-image:linear-gradient(#000 45%,transparent 88%); mask-image:linear-gradient(#000 45%,transparent 88%); }
.fest-notice__preview :is(h1,h2,h3,h4) { font-size:14px; line-height:20px; color:#ffd95a; text-transform:uppercase; letter-spacing:.1em; }
.fest-notice__open { min-height:44px; margin-top:4px; padding:0; border:0; background:none; font:inherit; cursor:pointer; filter:drop-shadow(0 3px 0 var(--wood-dark)); }
.fest-notice__open:focus-visible { outline:none; }
.fest-notice__open span { display:block; padding:10px 40px 10px 20px; color:var(--ink); font-size:15px; line-height:24px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; background:var(--grain-soft),var(--yellow); clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%); }

/* The text as the panel's Lexxy writes it, on the sign and on the board. */
.fest-notice .lexxy-content :is(h1,h2,h3,h4) { margin:20px 0 8px; font-size:18px; line-height:24px; font-weight:900; }
.fest-notice .lexxy-content :is(p,ul,ol,blockquote,pre) { margin:0 0 12px; }
.fest-notice .lexxy-content :is(ul,ol) { padding-left:22px; }
.fest-notice .lexxy-content ul { list-style:none; }
.fest-notice .lexxy-content ul > li { position:relative; }
.fest-notice .lexxy-content ul > li::before { content:""; position:absolute; left:-20px; top:7px; width:10px; height:9px; background:currentColor; clip-path:polygon(50% 0,100% 100%,0 100%); }
.fest-notice .lexxy-content li { margin:0 0 6px; }
.fest-notice .lexxy-content blockquote { margin-inline:0; padding:10px 14px; border-left:4px solid currentColor; }
.fest-notice .lexxy-content { overflow-wrap:anywhere; }
.fest-notice .lexxy-content > :first-child { margin-top:0; }
.fest-notice .lexxy-content > :last-child { margin-bottom:0; }
.fest-notice .lexxy-content {
  --highlight-1:rgb(136,118,38); --highlight-2:rgb(185,94,6); --highlight-3:rgb(207,0,0); --highlight-4:rgb(216,28,170); --highlight-5:rgb(144,19,254);
  --highlight-6:rgb(5,98,185); --highlight-7:rgb(17,138,15); --highlight-8:rgb(148,82,22); --highlight-9:rgb(102,102,102);
  --highlight-bg-1:rgba(229,223,6,.3); --highlight-bg-2:rgba(255,185,87,.3); --highlight-bg-3:rgba(255,118,118,.3); --highlight-bg-4:rgba(248,137,216,.3); --highlight-bg-5:rgba(190,165,255,.3);
  --highlight-bg-6:rgba(124,192,252,.3); --highlight-bg-7:rgba(140,255,129,.3); --highlight-bg-8:rgba(221,170,123,.3); --highlight-bg-9:rgba(200,200,200,.3);
}

/* Opened: a wall of planks, the sign as a fixed header, the text on pine. */
html:has(.fest-notice__full[open]) { overflow:hidden; }
.fest-notice__full { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; overflow-y:auto; overscroll-behavior:contain; color:#3a2210; background:var(--grain-v),repeating-linear-gradient(90deg,#4d2f19 0 74px,var(--wood-dark) 74px 77px,#5a3820 77px 148px,var(--wood-dark) 148px 151px); }
.fest-notice__full::backdrop { background:rgba(23,21,15,.5); }
@media (prefers-reduced-motion:no-preference) {
  .fest-notice__full[open] { animation:fest-notice-in .22s ease-out; }
  @keyframes fest-notice-in { from { opacity:0; transform:translateY(16px) scale(.98); } }
}
.fest-notice__frame { max-width:430px; min-height:100%; margin:0 auto; padding:0 16px calc(32px + env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; gap:16px; }
.fest-notice__head { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:12px; margin:0 -16px; padding:calc(14px + env(safe-area-inset-top,0px)) 18px 14px 26px; border-bottom:3px solid var(--wood-dark); box-shadow:0 4px 0 rgba(0,0,0,.3); }
.fest-notice__head .fest-notice__nail--tl,.fest-notice__head .fest-notice__nail--tr { top:9px; }
.fest-notice__titles { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.fest-notice__titles:focus { outline:none; }
.fest-notice__head .fest-notice__title { font-size:22px; line-height:28px; }
.fest-notice__close { flex:none; min-height:44px; padding:0 16px; border:2px solid var(--wood-dark); border-radius:8px; background:#f4e2bf; color:var(--wood-dark); font:inherit; font-weight:800; cursor:pointer; box-shadow:0 3px 0 var(--wood-dark); }
.fest-notice__close:active { transform:translateY(2px); box-shadow:0 1px 0 var(--wood-dark); }
.fest-notice__board { position:relative; padding:32px 22px; font-size:17px; line-height:26px; border:3px solid var(--wood-dark); border-radius:10px; background:var(--grain-soft),linear-gradient(180deg,#efd5a6,#e3c28c); box-shadow:inset 0 0 0 2px rgba(255,255,255,.28),0 6px 0 var(--wood-dark); overflow-wrap:anywhere; }
.fest-notice__board .fest-notice__nail--tl,.fest-notice__board .fest-notice__nail--tr { top:10px; }
.fest-notice__board .fest-notice__nail--bl,.fest-notice__board .fest-notice__nail--br { bottom:10px; }
.fest-notice__board .lexxy-content :is(h1,h2,h3,h4) { padding-bottom:4px; color:#6b3a12; font-size:16px; text-transform:uppercase; letter-spacing:.08em; border-bottom:2px dashed rgba(107,58,18,.45); }
.fest-notice__board .lexxy-content ul > li::before { color:#6b3a12; background:#6b3a12; }
.fest-notice__board .lexxy-content blockquote { background:rgba(107,58,18,.12); border-color:#6b3a12; border-radius:0 6px 6px 0; }
.fest-notice__board .lexxy-content a { color:#6b3a12; font-weight:800; text-underline-offset:3px; }

/* Under an event's look (Pase::Look, pase_live.css's tokens) Fest's own parts
   take its colours and heading face; without one nothing here applies. */
.fest-look .screen :is(.h1, .h2) { font-family:var(--lv-display); letter-spacing:var(--lv-h2-track); text-transform:var(--lv-h2-case); text-shadow:var(--lv-h2-glow); }
:where(.fest-look) .screen :is(.muted, .lbl, .fest-companion-new) { color:var(--lv-text-2); }
:where(.fest-look) .screen .text-link { color:var(--lv-text); }
:where(.fest-look) .screen .fest-turn { background:var(--lv-accent); color:var(--lv-on-accent); border-color:var(--lv-edge); box-shadow:var(--lv-shadow); }
:where(.fest-look) .screen .fest-turn :is(.mono-k, .h1) { color:inherit; text-shadow:none; }
:where(.fest-look) .screen :is(.fest-input, .fest-filter) { background:var(--lv-surface); color:var(--lv-text); border-color:var(--lv-line); }
:where(.fest-look) .screen .fest-filter[aria-pressed=true] { background:var(--lv-accent); color:var(--lv-on-accent); border-color:var(--lv-edge); }
:where(.fest-look) .screen :is(.fest-day, .testing) { border-color:var(--lv-line); }
:where(.fest-look) .screen .fest-floor { background:var(--lv-well); border-color:var(--lv-line); }
:where(.fest-look) .screen .fest-pickbar { background:var(--lv-well); border-color:var(--lv-line); box-shadow:var(--lv-shadow); }
:where(.fest-look) .screen .fest-bed-button:is(:hover, :focus-visible) { border-color:var(--lv-focus); }
/* A bed's frame is outlined as the librero's books are, in what still shows
   on the look's ground; the lines drawn over its cream stay ink. */
:where(.fest-look) .fest-bed { --fest-bed-edge:var(--lv-book-edge); }
/* The QR's «Solo con invitación» (pase/fest/checkin_closed). */
:where(.fest-look) .screen .checkin p { color:var(--lv-text-2); }
/* Under any look a .look-pane is a quieter sibling of the cards: their
   surface, their corners, their inset for the words, no rim and no shadow;
   its words keep the spacing they had without it.
   One that holds only a link hugs it. */
:where(.meetup-look) .screen .look-pane { display:flex; flex-direction:column; gap:inherit; padding:18px; background:var(--lv-surface); border:2px solid transparent; border-radius:16px; }
:where(.meetup-look) .screen .look-pane:has(> .text-link:only-child) { align-self:flex-start; padding-block:0; border-radius:999px; }
