/* ==========================================================================
   Magic Box Koreatown (/koreatown). Loads after site.css and
   company-group.css; everything else on the page reuses the company group
   (cg-hero, pv-dark ledger, location-section, inquiry form, FAQ; the brief from spotlights-group.css and the floor plan explorer from venue.css).

   Placeholders. Magic Box has not supplied Koreatown photos, floor plans or
   facts yet (Wayne, Oct 22), so the page ships labelled stand-ins, each
   marked data-placeholder="<name>" in the markup:
     .kt-tbd[data-placeholder]   text waiting on Magic Box, set a touch
                                 quieter with a dotted underline so a
                                 reviewer spots it at a glance
     .kt-ph-label                the small "Photo to come" tag, shown only
                                 right after an img that is still a stand-in
   The look hangs on the attribute alone. When a real value is typed or a
   picture chosen in the visual editor, the CMS drops data-placeholder and
   the placeholder look goes with it. No layout here depends on it.
   ========================================================================== */

/* ---- placeholder text ---------------------------------------------------- */
.kt-tbd[data-placeholder]{
  opacity:.62;
  text-decoration:underline dotted;
  text-decoration-thickness:1px;
  text-underline-offset:.22em;
}
.pv-dark .kt-tbd[data-placeholder]{text-decoration-color:rgba(255,183,27,.75)}

/* ---- image frames -------------------------------------------------------- */
.kt-frame{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:var(--ink);
}
.kt-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.kt-frame--4x3{aspect-ratio:4/3}
/* the Downtown plans are 2400 x 2400 artwork on white */
.kt-frame--plan{aspect-ratio:1/1;border-radius:20px;background:var(--cream)}
.kt-frame--plan img{object-fit:contain}
/* hairline drawn over the artwork, so it holds once the real plan is in */
.kt-frame--plan::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(36,42,47,.16);
}

.kt-ph-label{
  position:absolute;left:16px;bottom:16px;z-index:2;
  display:none;align-items:center;height:26px;padding:0 12px;
  border-radius:100px;
  border:1px solid rgba(255,183,27,.6);
  background:rgba(36,42,47,.55);
  font-family:var(--label);font-weight:700;font-size:10px;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--cream);
  white-space:nowrap;
  pointer-events:none;
}
img[data-placeholder] + .kt-ph-label{display:inline-flex}
.kt-ph-label--light{
  border-color:rgba(36,42,47,.25);
  background:rgba(255,250,240,.9);
  color:var(--ink);
}
/* the hero tag sits top right, clear of the headline and the scroll cue */
.kt-ph-label--hero{left:auto;bottom:auto;right:var(--edge);top:112px}

/* ---- about the space: the Spotlight pages' brief and fact card
   (css/spotlights-group.css), Wayne 2026-10-28, note 86 ---- */
/* the fact card's one ribbon logo, centred like the pair on the Spotlights */
.kt-brief .fc-brand-logos{justify-content:center}
/* eight event types wrap to a second line, which the Spotlights' four never do */
.kt-brief .brief-tags{row-gap:14px}

/* ---- floor plan: /venue's explorer (css/venue.css, css/venue-explorer.css),
   Wayne 2026-10-28, note 85. The only Koreatown rule is the size note under
   the ledger, in the callout's own type. ---- */
.kt-fp-note{
  font-family:var(--cond);font-size:13px;line-height:1.6;letter-spacing:.02em;
  color:rgba(36,42,47,.6);margin-top:18px;
}

/* ---- floor plan ---------------------------------------------------------- */
.kt-plan{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(40px,6vw,96px);align-items:center;
}
.kt-plan-copy .eyebrow{display:block;margin-bottom:20px}
.kt-plan-copy h2{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(32px,5vw,58px);line-height:1.08;letter-spacing:-.01em;
  margin-bottom:22px;
}
.kt-plan-copy h2 em{color:var(--burgundy);font-style:italic}
.kt-plan-copy p{
  font-family:var(--cond);font-size:14.5px;line-height:1.75;
  color:rgba(36,42,47,.68);max-width:52ch;margin-bottom:30px;
}
.kt-plan .kt-frame--plan{max-width:560px;width:100%;justify-self:end}

/* ---- gallery, the Spotlight gallery layout -------------------------------- */
.kt-gallery-section{padding-top:0}
.kt-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:260px 260px;
  gap:19px;
}
.kt-gallery .g-tall{grid-row:1 / span 2}

/* ---- Downtown campus ----------------------------------------------------- */
.kt-downtown .location-copy h2 em{color:var(--burgundy)}
.kt-downtown .chip-row{margin-bottom:30px}
.kt-actions{display:flex;gap:14px;flex-wrap:wrap}

@media (max-width:1080px){
  .kt-gallery{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,220px)}
  .kt-gallery .g-tall{grid-row:auto}
}
@media (max-width:900px){
  .kt-plan{grid-template-columns:1fr}
  .kt-plan .kt-frame--plan{justify-self:start;max-width:520px}
  .kt-ph-label--hero{top:96px;right:24px}
}
@media (max-width:600px){
  .kt-gallery{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,180px);gap:12px}
  .kt-ph-label--hero{right:16px}
  .kt-actions .btn{flex:1 1 auto}
}

/* Production 1.0's page language (2026-10-27): the at a glance facts are
   production's ledger on the dark band, as on Visit, the type sizes are
   company-group.css's own. Only the placeholder and concept image rules
   below are Koreatown's. */

/* placeholder frames: a calm label in words, not a tracked code */
.kt-ph-label,
.kt-concept{
  font-family:var(--cond);font-weight:400;font-size:14px;letter-spacing:.02em;
  text-transform:none;height:30px;
}
/* the "Concept image" tag: shows only on a frame marked data-concept whose
   picture is no longer the stand-in (David to Wayne: AI concept images until
   real photos exist, always marked as concepts) */
.kt-concept{
  position:absolute;left:16px;bottom:16px;z-index:2;
  display:none;align-items:center;padding:0 12px;border-radius:100px;
  background:rgba(36,42,47,.72);color:var(--cream);
  border:1px solid rgba(255,250,240,.35);
  white-space:nowrap;pointer-events:none;
}
[data-concept] img:not([data-placeholder]) ~ .kt-concept{display:inline-flex}
.kt-concept--hero{left:auto;bottom:auto;right:var(--edge);top:112px}

@media (max-width:900px){
  .kt-concept--hero{top:96px;right:24px}
}
@media (max-width:600px){
  .kt-concept--hero{right:16px}
}

/* the concept hero is bright behind the headline on a phone; a foot scrim
   keeps the type readable (text over photos on mobile only with a scrim) */
@media (max-width:900px){
  .kt-hero .cg-hero-vignette{
    background:linear-gradient(0deg,rgba(20,16,18,.82) 0%,rgba(20,16,18,.55) 45%,rgba(20,16,18,.18) 75%,rgba(20,16,18,.35) 100%);
  }
}

/* ---- quiet placeholders for visitors (2026-10-26) ------------------------
   Nine "to come" lines read as an unfinished page. On the public site
   ([data-mb-page] wraps every public page, the editor canvas has no such
   wrapper) a fact that is still a stand-in simply is not shown: the Size and
   Capacity entries, the street address line, the event types tag, the room
   names and sizes and the floor plan tag step aside. The concept images, the
   Status entry and the copy that says details are on the way carry the
   page. As soon as a value is filled in the editor, data-placeholder drops
   and the item appears on its own. The editor keeps the dotted stand-ins. */
[data-mb-page] .kt-tbd[data-placeholder],
[data-mb-page] .lg-item:has(> h3.kt-tbd[data-placeholder]),
[data-mb-page] .kt-types:not(:has(span:not([data-placeholder]))),
[data-mb-page] .kt-ph-label{display:none !important}
@media (min-width:701px){
  [data-mb-page] .ledger--4:has(> .lg-item > h3.kt-tbd[data-placeholder]){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Coming Soon (2026-10-27, Wayne: "highlighting MBKT with a Coming
   Soon approach", launch planned for early 2027) ----------------------------
   The public page leads with the plan and the inquiry. Sections that would
   only hold stand-ins step aside on the public site until the editor fills
   them: the three room cards while every room name is still a stand-in, and
   the floor plan while it is still the placeholder drawing. The editor
   canvas (no [data-mb-page] wrapper) keeps every stand-in visible. */
[data-mb-page] section:has(.kt-spaces):not(:has(.kt-space h3:not([data-placeholder]))),
[data-mb-page] section:has(img[data-placeholder="floor-plan"]){display:none !important}

/* at a glance: Location, Opening and Inquiries, plus Size and Capacity once
   they are filled, in production's ledger */
.kt-essentials .kt-ledger{grid-template-columns:repeat(5,minmax(0,1fr))}
[data-mb-page] .kt-essentials .kt-ledger:has(> .lg-item > h3.kt-tbd[data-placeholder]){grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1080px){
  .kt-essentials .kt-ledger{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:700px){
  .kt-essentials .kt-ledger,
  [data-mb-page] .kt-essentials .kt-ledger:has(> .lg-item > h3.kt-tbd[data-placeholder]){grid-template-columns:1fr}
}

/* the gallery follows the floor plan with no top padding; while the plan
   still steps aside on the public page, it keeps its own section padding */
[data-mb-page] section:has(img[data-placeholder="floor-plan"]) + .kt-gallery-section{padding-top:var(--mb-section-y,100px)}

/* ---- design pass with Wayne's content (2026-10-27) -------------------------
   1.0's own patterns, scoped to this page. */

/* hero: the copy sits over close faces, so the shade comes from the text
   side and is held across the words' column, then gone before the right of
   the photo (the inner page hero scrim of css/hero.css, which this 1.0 page
   does not load). Phones keep the foot scrim above. */
@media (min-width:901px){
  .kt-hero{--kt-tx:max(var(--edge,56px), (100% - var(--container,1328px)) / 2)}
  .kt-hero .cg-hero-vignette{
    background:
      linear-gradient(180deg, rgba(20,12,18,.42) 0, rgba(20,12,18,0) 120px),
      linear-gradient(90deg,
        rgba(20,12,18,.9) 0,
        rgba(20,12,18,.84) calc(var(--kt-tx) + 480px),
        rgba(20,12,18,.42) calc(var(--kt-tx) + 820px),
        rgba(20,12,18,0) calc(var(--kt-tx) + 1160px)),
      linear-gradient(0deg, rgba(20,12,18,.7) 0%, rgba(20,12,18,0) 45%);
  }
  .kt-hero .cg-hero-content > :is(h1,p){text-shadow:0 1px 18px rgba(20,12,18,.35)}
}
@media (max-width:900px){
  .kt-hero .cg-hero-vignette{
    background:linear-gradient(0deg,rgba(20,12,18,.88) 0%,rgba(20,12,18,.7) 45%,rgba(20,12,18,.3) 75%,rgba(20,12,18,.45) 100%);
  }
}

/* at a glance: the inquiries entry is a link to the form, in the ledger's
   own type, with the site's arrow */
.kt-glance-link{color:inherit;transition:color .2s ease}
.kt-glance-link:is(:hover,:focus-visible){color:var(--yellow)}

/* the gallery and the inquiry share the cream: one section gap between */
.kt-gallery-section{padding-bottom:0}

/* questions: the head beside the list, as the about section, and no second
   label over a single group */
.kt-faq .wrap{
  display:grid;grid-template-columns:minmax(280px,1fr) 1.4fr;
  gap:48px;align-items:start;
}
.kt-faq .cg-head{margin-bottom:0}
.kt-faq .faq-grid--single{max-width:none}
@media (max-width:900px){
  .kt-faq .wrap{grid-template-columns:1fr;gap:36px}
  .kt-faq .faq-row .q{font-size:20px;line-height:1.25}
}

/* ---------------------------------------------------------------------------
   PHONE PASS (2026-11-03): thumb sized targets, the phone section rhythm,
   and the fact card's stats wrapping between whole facts (its type sizes
   come from spotlights-group.css). Desktop untouched.
   --------------------------------------------------------------------------- */
@media (max-width:900px){
  :is(.page-koreatown,[data-mb-page="/koreatown"]) .fc-stats .kt-nw{white-space:nowrap}
  /* the glance row's link reaches a full thumb without moving the row */
  :is(.page-koreatown,[data-mb-page="/koreatown"]) .kt-glance-link{position:relative}
  :is(.page-koreatown,[data-mb-page="/koreatown"]) .kt-glance-link::after{content:"";position:absolute;inset:-8px -6px}
  :is(body.page-koreatown,[data-mb-page="/koreatown"]) .fe-tab{min-height:44px}
  /* the phone section rhythm (56px) the rest of the page keeps */
  :is(.page-koreatown,[data-mb-page="/koreatown"]) .kt-brief{padding-top:56px;padding-bottom:64px}
  :is(.page-koreatown,[data-mb-page="/koreatown"]) #floor-plan.fe{padding-top:56px;padding-bottom:56px}
}

/* ==========================================================================
   KOREATOWN ON A PHONE (second mobile pass, 2026-11-03): one rhythm between
   sections, the facts in two columns, the plan edge to edge with its rooms as
   chips right under it (a tapped room fills the frame, js/venue-explorer.js),
   the photos a swipe row. Every word stays. Desktop untouched.
   ========================================================================== */
@media (max-width:900px){
  .fc-stats .kt-nw{white-space:nowrap}
}
@media (max-width:640px),(max-width:950px) and (max-height:500px){
  [data-mb-page] .section.kt-essentials,
  [data-mb-page] .section.kt-gallery-section,
  [data-mb-page] .section.location-section,
  [data-mb-page] .section.kt-faq,
  [data-mb-page] .section.inquiry-section{padding-block:48px}
  .kt-essentials .cg-head,.kt-gallery-section .cg-head{margin-bottom:22px}
  .kt-brief{padding-block:48px}

  .kt-essentials .kt-ledger{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}
  .kt-essentials .kt-ledger .lg-item{padding-top:12px}
  .kt-essentials .kt-ledger .lg-item .lg-k{margin-bottom:8px}
  .kt-essentials .kt-ledger .lg-item h3{font-size:21px;margin-bottom:4px}
  .kt-essentials .kt-ledger .lg-item p{line-height:1.45}
  .kt-essentials .kt-ledger .lg-item:last-child{grid-column:1 / -1}

  .kt-gallery{
    display:flex;gap:10px;grid-template-rows:none;
    margin-inline:calc(var(--edge,20px) * -1);padding-inline:var(--edge,20px);
    overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;scroll-padding-inline:var(--edge,20px);
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .kt-gallery::-webkit-scrollbar{display:none}
  .kt-gallery .kt-frame{flex:0 0 76%;height:260px;aspect-ratio:auto;scroll-snap-align:start}
}
@media (max-width:640px){
  /* the rooms sit right under the plan as chips, so a tap and its result
     share the screen */
  #floor-plan .vx-plan{background:var(--cream)}
  #floor-plan .vx-ledger{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
  #floor-plan .vx-ledger-item,
  #floor-plan .vx-ledger-item:last-child{border:0}
  #floor-plan .vx-ledger-row{
    width:auto;min-height:44px;align-items:center;padding:0 14px;
    border:1px solid rgba(36,42,47,.2);border-radius:8px;
  }
  #floor-plan .vx-room-sf:empty{display:none}
  #floor-plan .vx-ledger-item.is-selected .vx-ledger-row{background:var(--yellow);border-color:var(--yellow);padding:0 14px}
  #floor-plan .vx-room-name{font-size:17px}
  #floor-plan .vx-callout{margin-top:12px;padding:14px 16px}
  #floor-plan .kt-fp-note{margin-top:10px}
}
