/* Layout for the sample room, inside .spec. Colors by role only. The accent role is for fills:
   no rule here (or in styles.css) may set a text color to it. Small colored text uses accent-2 or text. */
#preview.spec{min-height:60vh;padding:22px 16px 48px}
#preview.spec>*{max-width:1160px;margin-left:auto;margin-right:auto}
.room-head{margin-bottom:26px}
.room-sample{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 14px}
.sample-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:2px solid var(--c-text);border-radius:var(--r-control);font:700 14px/1 var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:var(--c-text)}
.room-sample-note{font-size:16px;color:var(--c-text-muted)}
.room-name{margin:0 0 8px;font:var(--t-page-weight) var(--t-page-size)/var(--t-page-lh) var(--f-display);letter-spacing:var(--t-page-track);text-transform:var(--t-page-case);overflow-wrap:anywhere;color:var(--c-text)}
.room-tagline{margin:0 0 10px;font-size:20px;font-weight:600;color:var(--c-text)}
.room-about{margin:0 0 10px;max-width:46em;color:var(--c-text)}
.room-host{margin:0;color:var(--c-text-muted)}
.room-host strong{color:var(--c-text)}
.sec-title{margin:0 0 14px;font:var(--t-sec-style) var(--t-sec-weight) var(--t-sec-size)/var(--t-sec-lh) var(--t-sec-font);letter-spacing:var(--t-sec-track);text-transform:var(--t-sec-case);color:var(--c-text)}
.room-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:30px;margin-bottom:38px}
.room-cal,.room-detail,.room-cards{min-width:0}
.room-detail:focus{outline:none}
.room-detail:focus-visible{outline:3px solid var(--c-focus);outline-offset:6px}
.card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:30px 22px;padding-top:20px}
.seg{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.seg-btn,.up-item{margin:0;border:2px solid var(--c-border);background:var(--c-surface);color:var(--c-text);cursor:pointer}
.seg-btn{min-height:48px;padding:0 16px;border-radius:var(--r-control);font:700 16px/1 var(--f-body)}
.seg-btn:hover,.up-item:hover{background:var(--c-surface-hover);border-color:var(--c-border-hover)}
.seg-btn[aria-pressed="true"]{background:var(--c-accent);border-color:var(--c-accent);color:var(--c-accent-contrast)}
.seg-btn[aria-pressed="true"]:hover{background:var(--c-accent-hover);border-color:var(--c-accent-hover)}
.seg-btn[aria-pressed="true"]::before{content:"\2713\00a0"}
.cal-nav{display:flex;gap:10px;margin:0 0 10px}
.cal-nav .btn{padding:0 18px}
.upcoming{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.up-item{display:grid;gap:2px;width:100%;min-height:56px;padding:10px 14px;border-radius:var(--r-control);text-align:left;font:inherit}
.up-date{font-size:15px;font-weight:700;color:var(--c-accent-2)}
.up-title{font-size:18px;font-weight:700;overflow-wrap:anywhere}
.up-meta{font-size:15px;color:var(--c-text-muted)}
.up-item[aria-pressed="true"]{border-width:3px;border-color:var(--c-text)}
.up-item[aria-pressed="true"] .up-date::before{content:"\2713\00a0"}
.card[aria-current="true"]{outline:3px solid var(--c-border-hover);outline-offset:4px}
.room-status{min-height:1.5em;margin-top:20px;font-weight:700;color:var(--c-text)}
@media (min-width:700px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){
  #preview.spec{padding:30px 28px 60px}
  .room-grid{grid-template-columns:minmax(340px,440px) minmax(0,1fr);gap:40px;align-items:start}
  .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Card pictures: one size for every tile. The picture fills the whole 16:9 box (cover, never contain,
   no blurred copy behind it). The credit sits ON the picture as a small solid label, so a card has the
   same height with or without a picture or a credit. Only styles that show .card-art (Bold Night) use it. */
.card-art{position:relative;width:100%;overflow:hidden}
.card-art-img{display:block;width:100%;height:100%;object-fit:cover}
.art-credit{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);padding:3px 8px;border-radius:6px;background:var(--c-surface);color:var(--c-text-muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}

/* Equal rows, buttons level. Cards in a row are one height (the grid stretches them). Inside each card
   the free space goes into ONE row, the second-to-last, so title, venue and meta stay packed at the top
   and the actions row sits on the card's bottom edge, level across the row. The row count is fixed per
   style (the art box is hidden except in Bold Night). There is no expanding card here (Details opens the
   separate panel), so no open card can stretch a neighbor. */
.card-grid .card>.meter{align-self:start}
.st-a-refined .card-grid .card,.st-b-editorial .card-grid .card,.st-d-sticker-pop .card-grid .card{grid-template-rows:auto auto 1fr auto}
.st-c-bold-night .card-grid .card,.st-e-playbill .card-grid .card,.st-f-scoreboard .card-grid .card{grid-template-rows:auto auto auto 1fr auto}
/* Admit One orders its parts: body, badges, meter, date (the ticket stub), actions. The stub rides the buttons. */
.st-g-admit-one .card-grid .card{grid-template-rows:auto auto auto 1fr auto}
.st-g-admit-one .card-grid .card>.date{align-self:end}

/* Taps: every button and link is at least 44 by 44. */
:where(.spec) :where(button,a[href]){min-height:44px;min-width:44px}

/* Bold Night on a phone: the Upcoming Events cards come before the calendar and detail block. This is a
   visual reorder only (CSS order). The DOM keeps one order, so keyboard and screen reader order stays
   header, calendar, details, cards. */
@media (max-width:699.98px){
  #preview.spec.st-c-bold-night{display:flex;flex-direction:column}
  #preview.spec.st-c-bold-night>*{width:100%;min-width:0;order:3}
  #preview.spec.st-c-bold-night>.room-head{order:1}
  #preview.spec.st-c-bold-night>.room-cards{order:2}
}
