/* Markas B Studio – Lineup, secure release v2 */
@font-face { font-family: Archivo; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url('assets/archivo-latin.woff2') format('woff2'); }
:root {
  --bg: #E4C590; --paper: #F3E3BE; --ink: #2E2016; --muted: #5A4331;
  --accent: #C2410C; --accent-ink: #FBF3E2; --btn: #2E2016; --btn-ink: #F3E3BE; --focus: #2E2016;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #2E2016; --paper: #3A2A1F; --ink: #E4C590; --muted: #CDB797;
  --accent: #F07A3E; --accent-ink: #2E2016; --btn: #2E2016; --btn-ink: #F3E3BE; --focus: #F07A3E;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Archivo, "Arial Narrow", Arial, sans-serif; font-size: 16px; line-height: 1.55;
  transition: background-color .25s, color .25s;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 18px; }
.logo { display: block; text-decoration: none; }
.logo img { height: 60px; width: auto; display: block; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 700; font-stretch: 87%; }
nav a { text-decoration: none; padding: 10px 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; flex: 0 0 auto; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Booking hero */
.poster { margin: 0; font-stretch: 125%; font-weight: 900; font-size: clamp(42px, 8.4vw, 132px); line-height: .88; text-transform: uppercase; letter-spacing: -1px; }
.subrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0 12px; border-bottom: 6px solid var(--ink); font-weight: 600; font-stretch: 87%; }
.subrow p { margin: 0; }
.book-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 8px; padding-bottom: 80px; }
.lineup-col { flex: 999 1 620px; min-width: 0; }
.weeks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pill { min-height: 44px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 800; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.loading { padding: 24px 0; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 0; border-bottom: 3px solid var(--ink); }
.day { margin: 0; width: 150px; font-stretch: 62%; font-weight: 900; font-size: 46px; line-height: .9; text-transform: uppercase; }
.day span { font-weight: 400; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 360px; }
.tok { width: 62px; height: 56px; border-radius: 28px; border: 3px solid var(--ink); background: transparent; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.tok b { font-stretch: 70%; font-weight: 800; font-size: 18px; }
.tok small { font-size: 11px; font-weight: 600; margin-top: 2px; min-height: 11px; }
.tok:disabled { cursor: not-allowed; }
.tok--taken, .tok--closed, .tok--past, .tok--nofit { border-color: transparent; color: var(--muted); }
.tok--taken b { text-decoration: line-through; }
.tok--past b, .tok--nofit b { font-weight: 500; }
.tok--hold { border-style: dotted; border-color: var(--accent); }
.tok--gap { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.tok--pick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 80ch; }

/* Sticker */
.sticker { flex: 1 1 300px; min-width: 0; background: var(--accent); color: var(--accent-ink); padding: 26px 24px 28px; border-radius: 6px; transform: rotate(-1.5deg); margin-top: 12px; }
.sticker h2 { margin: 0 0 4px; font-stretch: 125%; font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; }
.sticker p { margin: 0 0 18px; font-weight: 600; }
.durations { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.durations button, .packages button { min-height: 44px; border: 2px solid currentColor; border-radius: 999px; background: transparent; font-weight: 800; cursor: pointer; padding: 0 14px; }
.durations button { min-width: 52px; }
.packages { display: flex; flex-direction: column; gap: 8px; }
.packages button { text-align: left; padding: 6px 16px; min-height: 48px; }
.durations button[aria-checked="true"], .packages button[aria-checked="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.sticker .total { margin: 22px 0 16px; font-stretch: 125%; font-weight: 900; font-size: 64px; line-height: .9; }

/* Buttons */
.btn-dark { width: 100%; min-height: 56px; border: none; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 800; font-size: 17px; cursor: pointer; }
.btn-dark:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: none; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; text-decoration: none; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-outline:disabled { opacity: .5; cursor: progress; }
.wide { width: 100%; }
.link-btn { background: none; border: none; text-decoration: underline; cursor: pointer; padding: 10px 0; font-weight: 600; }
[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Sections */
.band { border-top: 6px solid var(--ink); }
.section { padding-top: 64px; padding-bottom: 64px; }
.h2 { margin: 0 0 28px; font-stretch: 125%; font-weight: 900; font-size: 44px; line-height: 1; text-transform: uppercase; }
.lead { margin: -16px 0 20px; max-width: 60ch; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 48px; }
.price { margin: 0; font-stretch: 125%; font-weight: 900; font-size: clamp(110px, 14vw, 200px); line-height: .82; }
.price span { font-size: 34px; vertical-align: top; font-stretch: 100%; }
.rate-name { margin: 12px 0 4px; font-weight: 800; font-size: 24px; }
.rates p.muted { margin: 0; max-width: 34ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li { border-top: 3px solid var(--ink); padding-top: 12px; }
.steps .num { margin: 0; font-stretch: 62%; font-weight: 900; font-size: 96px; line-height: .9; }
.steps h3 { margin: 8px 0 4px; font-weight: 800; font-size: 19px; }
.steps p { margin: 0; }
.policy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3px; background: var(--ink); border: 3px solid var(--ink); }
.policy div { padding: 18px 20px; background: var(--bg); }
.policy h3 { margin: 0 0 6px; font-weight: 800; font-size: 18px; }
.policy p { margin: 0; }
.room { background: var(--paper); text-align: center; }
.kicker { margin: 0 0 18px; font-weight: 700; font-stretch: 87%; }
.gear-xl { margin: 0; font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 7vw, 104px); line-height: .9; text-transform: uppercase; }
.gear-l { margin: 12px 0 0; font-weight: 800; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.05; text-transform: uppercase; }
.gear-s { margin: 14px 0 0; font-stretch: 75%; font-weight: 600; font-size: 22px; }
.photos { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.photo { min-height: 220px; border: 3px dashed var(--ink); display: grid; place-items: center; color: var(--muted); font-weight: 600; padding: 16px; }
.find { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.find-text { flex: 1 1 520px; min-width: 0; }
.address { margin: 0; font-stretch: 62%; font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1; max-width: 18ch; }
.find .muted { margin: 12px 0 0; }
.actions { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 10px; }
footer { background: var(--ink); color: var(--bg); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); font-weight: 600; font-size: 14px; }
footer p { margin: 0; }
footer .site-release { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid currentColor; font-size: 12px; line-height: 1.6; }
footer .site-release p { min-width: 0; overflow-wrap: anywhere; }

/* My bookings */
.mine-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.mine-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 16px 0; border-bottom: 3px solid var(--ink); }
.mine-item p { margin: 0; }
.mine-ref { font-weight: 800; }
.mine-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.badge { display: inline-block; padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 14px; }
.badge--ok { background: var(--ink); color: var(--bg); }
.cancel-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 420px; }
.cancel-box p { flex: 1 1 100%; }

/* Checkout dialog */
dialog { border: 3px solid var(--ink); background: var(--bg); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 8px; }
dialog::backdrop { background: rgba(20, 12, 6, .6); }
@media (max-width: 600px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; border-bottom: 0; }
}
.co { padding: 20px 20px max(24px, env(safe-area-inset-bottom)); }
.co-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.co-head h2 { margin: 0; font-stretch: 125%; font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1; }
.co-ticket { margin: 10px 0 16px; padding-bottom: 12px; border-bottom: 4px solid var(--ink); font-weight: 600; }
.step label:not(.upload) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.step input[type="email"], .step input[type="text"], .step input[type="tel"] { min-height: 48px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 0; background: var(--paper); font-size: 16px; width: 100%; }
.step label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.step .code-input { font-size: 26px; letter-spacing: 8px; }
.step p { margin: 0 0 12px; }
.error { background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 700; margin: 0 0 14px; }
.timer { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 6px 12px; transform: rotate(-2deg); }
.pay-row { display: flex; gap: 14px; align-items: flex-start; }
.payment-qr { margin: 0; flex: 0 0 auto; max-width: 100%; }
.payment-qr figcaption { margin-top: 8px; font-size: 12px; font-weight: 700; }
.qr-window { position: relative; width: 220px; max-width: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; }
.qr-window .qr { position: absolute; width: 237.5%; max-width: none; height: auto; left: -68.75%; top: -96.875%; }
.mine-status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.receipt-error { max-width: 320px; font-size: 13px; }
.pay-actions { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.pay-steps { padding-left: 22px; margin: 14px 0; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.track { list-style: none; padding: 0; margin: 0 0 16px; border-top: 3px solid var(--ink); }
.track li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 3px solid var(--ink); font-weight: 700; }
.track .now { background: var(--accent); color: var(--accent-ink); padding: 0 8px; }

/* Admin */
.admin-list { list-style: none; margin: 0 0 40px; padding: 0; border-top: 3px solid var(--ink); }
.admin-card { padding: 16px 0; border-bottom: 3px solid var(--ink); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.admin-card p { margin: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-actions input { min-height: 46px; padding: 0 12px; border: 3px solid var(--ink); background: var(--paper); }
.receipt-img { display: block; max-width: 320px; max-height: 420px; border: 3px solid var(--ink); margin-top: 10px; }
.admin-form { max-width: 420px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.admin-form input { min-height: 48px; padding: 0 12px; border: 3px solid var(--ink); background: var(--paper); font-size: 16px; }
.count { font-stretch: 62%; }
/* Responsive booking and owner tools */
.poster { overflow-wrap: anywhere; font-size: clamp(36px, 7vw, 112px); }
.admin-page .poster { font-size: clamp(32px, 7vw, 96px); }
.price .rate-number { font-size: inherit; vertical-align: baseline; font-stretch: inherit; }
.book-grid { gap: 28px; }
.lineup-col { flex: 2 1 480px; }
.sticker { flex: 1 1 300px; position: sticky; top: 20px; transform: none; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scroll-snap-type: x proximity; }
.day-tab { flex: 0 0 auto; min-height: 52px; border: 2px solid var(--ink); border-radius: 8px; background: transparent; padding: 8px 12px; font-weight: 700; cursor: pointer; scroll-snap-align: start; }
.day-tab[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.row { align-items: flex-start; }
.day { width: 100%; padding: 8px 0; }
.slots { flex-basis: 100%; }
.admin-card > *, .admin-actions, .photo-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.admin-actions input, .admin-actions select, .admin-actions textarea { width: 100%; min-width: 0; }
.review-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%; padding: 16px; background: var(--paper); border-radius: 8px; }
.review-form label, .photo-form label, .member-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.review-form input, .review-form select, .review-form textarea, .photo-form input, .member-form input { min-height: 46px; padding: 8px; font: inherit; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); max-width: 100%; min-width: 0; }
.review-form .full { grid-column: 1/-1; }
.review-form label.check { flex-direction: row; align-items: center; }
.review-form .check input { min-height: 22px; }
.review-form button { white-space: normal; }
.review-evidence { width: 100%; padding: 12px; border: 2px solid var(--muted); }
.review-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; max-height: 220px; overflow: auto; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
.admin-nav a { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; }
.photo-form, .member-form { display: grid; gap: 12px; max-width: 600px; margin: 24px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 24px; }
.photo-card { border: 2px solid var(--ink); padding: 12px; display: grid; gap: 10px; }
.photo-card img, .photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.photo-card input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; }
.photos figure { margin: 0; }
.photos figcaption { padding: 8px 0; }
.dialog-fallback { position: fixed; display: block; top: 5vh; left: 0; right: 0; z-index: 100; overflow: auto; max-height: 90vh; box-shadow: 0 0 0 100vmax #140c0699; }
.modal-open { overflow: hidden; }
dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
#site-status { margin: 12px auto; }
#room-gallery[hidden] { display: none; }
#privacy p { max-width: 80ch; }
@media(max-width: 900px) { .book-grid { gap: 16px; } .lineup-col,.sticker { flex-basis: 100%; } .sticker { position: static; margin-top: 0; } .lineup-col .note { font-size: 13px; } .book-grid { padding-bottom: 40px; } }
@media(max-width: 480px) { .wrap { padding-left: max(16px,env(safe-area-inset-left)); padding-right: max(16px,env(safe-area-inset-right)); } nav { gap: 4px 16px; } .h2 { font-size: 32px; overflow-wrap: anywhere; } .review-form { grid-template-columns: 1fr; padding: 12px; } .sticker { padding: 20px; } .pay-row { flex-wrap: wrap; } .pay-actions { min-width: 100px; } .co-head h2 { font-size: 24px; } .admin-actions { width: 100%; } }
.photo-form, .member-form { grid-template-columns: minmax(0,1fr); }
.photo-form label, .member-form label { min-width: 0; }
.photo-form input[type=file] { width: 100%; }

/* Room B launch: Room A remains unavailable. */
.room-types { border: 0; padding: 0; margin: 20px 0 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.room-types legend { font-weight: 800; margin-bottom: 10px; }
.room-types label { flex: 1 1 100px; display: flex; align-items: center; gap: 8px; min-height: 52px; border: 2px solid currentColor; border-radius: 8px; padding: 10px; cursor: pointer; }
.room-types input { width: 18px; height: 18px; margin: 0; accent-color: var(--btn); }
.room-types small { display: block; font-size: 12px; }
.room-types .room-unavailable { background: #dedbd5; color: #625e58; border-color: #aaa59c; cursor: not-allowed; }
.sticker .room-rate-note { font-size: 13px; margin-bottom: 16px; }
.social-links { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; overflow-wrap: anywhere; }

/* Release v5: studio rules and arrival check-in. */
.release-banner { background: var(--ink); color: var(--bg); text-align: center; padding: 7px 16px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.studio-rules { padding-left: 24px; max-width: 78ch; }
.studio-rules li { margin-bottom: 12px; }
.checkout-terms { border: 1px solid var(--muted); padding: 12px; margin: 16px 0; }
.checkout-terms summary { cursor: pointer; font-weight: 700; }
.arrival-code { font-weight: 800; overflow-wrap: anywhere; }
.arrival-state { font-weight: 700; }
.arrival-table-wrap { overflow-x: auto; margin-top: 24px; }
.arrival-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.arrival-table caption { text-align: left; font-weight: 700; padding: 8px 0; }
.arrival-table th, .arrival-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--muted); padding: 12px 10px; overflow-wrap: anywhere; }
.arrival-table th { background: var(--paper); }
#arrival-match { margin-top: 16px; }
#arrival-match .admin-card { list-style: none; }
@media (max-width: 600px) { .arrival-table th, .arrival-table td { padding: 10px 5px; font-size: 12px; } }

.arrival-scroll-hint { display: none; font-size: 13px; }
@media (max-width: 720px) { .arrival-scroll-hint { display: block; } }
