/*
 * Premium 3 ('capital-suite') preview styles - mirror of frontend/src/premium3/.
 *
 * EVERY VALUE IS REACT NATIVE dp (Figma px / 2), copied verbatim from
 * premium3/theme/tokens.ts and the component StyleSheets. Geometry that the
 * renderer computes (tile widths, gaps) is set inline from the generated P3
 * object in tokens.js; this file carries the static part.
 */

.p3-root { overflow: hidden; }

/* Header.tsx */
.p3-header { position: absolute; top: 20px; left: 40px; right: 40px; height: 44px;
             align-items: center; justify-content: space-between; }
.p3-side { width: 220px; justify-content: center; }
.p3-right { align-items: flex-end; }
.p3-centre { flex: 1 1 0%; align-items: center; justify-content: center; }
.p3-greeting { color: #B0B0B0; font-size: 12px; margin-bottom: 6px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-guest { color: #fff; font-size: 20px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-logo { width: 163px; height: 46px; object-fit: contain; }
.p3-hotel { color: #fff; font-size: 20px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-time { color: #fff; font-size: 20px; margin-bottom: 6px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-date { color: #B0B0B0; font-size: 14px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }

/* Chrome.tsx content slot */
.p3-content { position: absolute; top: 91px; left: 40px; right: 40px; bottom: 28px; }

/* WeatherOverlay.tsx: live conditions band; the fade flips with the tone. */
.p3-weather { position: absolute; top: 0; left: 0; right: 0; padding: 10px 10px 18px; }
.p3-weather-dark  { background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%); }
.p3-weather-light { background: linear-gradient(to bottom, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.2) 70%, rgba(255,255,255,0) 100%); }

/* Chrome.tsx bottom bar: the shared TickerBar run at P3.infoBar.h (28). The
   .ticker / .tick-* classes come from preview.css (home.js markup). */
.p3-tickerwrap { position: absolute; left: 0; right: 0; bottom: 0; }
.p3-tickerwrap .ticker { height: 28px; }

/* BackTitle.tsx */
/* min-height, not height: with a subtitle the fixed box overflowed under
   the next block. Mirrors BackTitle.tsx exactly (no extra margin). */
.p3-titlerow { align-items: center; min-height: 40px; }
.p3-backglyph { margin-right: 8px; flex: none; }
.p3-title { color: #fff; font-size: 27px; line-height: 31px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-subtitle { color: #B0B0B0; font-size: 16px; margin-top: 2px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }

/* MediaTile.tsx + FocusRing.tsx */
.p3-tile { position: relative; border-radius: 5px; background: #161616; overflow: hidden; flex: none; }
.p3-pic { border-radius: 5px; }
.p3-blank { border-radius: 5px; background: #161616; border: 1px solid #323232; }
.p3-scrim { border-radius: 5px; background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.85) 100%); }
.p3-label-wrap { position: absolute; left: 12px; right: 12px; bottom: 10px; }
.p3-label { color: #fff; font-family: var(--font-heading), inherit; }
.p3-sublabel { color: #fff; font-size: 14px; margin-top: 4px; font-family: var(--font-body), inherit;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; display: none; }
/* Title-only at rest (details take NO space, so the title hugs the card
   bottom); they appear on focus and push the title up (Capital, 2026-09-02). */
.p3-tile[data-focused] .p3-sublabel { display: -webkit-box; }
.p3-tile { transition: none; }
.p3-tile[data-focused] .p3-label-wrap, .p3-tile[data-focused] .p3-item { transform: translateY(-6px); transition: transform 180ms ease; }
.p3-ring { border: 2px solid transparent; border-radius: 6px; pointer-events: none; transition: border-color 120ms ease; }
[data-focused] > .p3-ring, .p3-tile[data-focused] .p3-ring { border-color: #EBA318; }
.p3-play { align-items: center; justify-content: center; pointer-events: none; }

/* HomeScreen.tsx */
.p3-hero { flex: none; }
.p3-railwrap { position: relative; width: 100%; }
.p3-rail { overflow: hidden; align-items: flex-start; }
.p3-arrow { position: absolute; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 16px;
            background: rgba(0,0,0,0.75); border: 1px solid #323232; align-items: center; justify-content: center; }
.p3-arrow-l { left: -16px; }
.p3-arrow-r { right: -16px; }

/* ExploreScreen.tsx: the gold pill shows on the focused tile only */
.p3-cta { position: absolute; left: 12px; bottom: 10px; display: none; }
.p3-tile[data-focused] .p3-cta { display: flex; }
.p3-tile[data-focused] .p3-label-wrap { bottom: 48px; }
.p3-pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid; font-size: 14px;
           font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-pill-solid { background: #EBA318; border-color: #EBA318; color: #000; }
.p3-pill-outline { background: transparent; border-color: #fff; color: #fff; }
.p3-pill[data-focused] { box-shadow: 0 0 0 2px #EBA318; }

/* CardScreen.tsx carousel items */
.p3-item { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.p3-item-title-row { align-items: flex-end; justify-content: space-between; }
.p3-item-title { color: #fff; font-size: 24px; line-height: 28px; flex-shrink: 1; font-family: var(--font-heading), inherit; }
.p3-item-meta-inline { color: #EBA318; font-size: 16px; margin-left: 8px; margin-bottom: 2px; white-space: nowrap; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-item-text { color: #fff; font-size: 14px; line-height: 20px; margin-top: 6px; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-body), inherit; display: none; }
.p3-tile[data-focused] .p3-item-text { display: -webkit-box; }
/* Meta line + chips take no space at rest, appear on focus. */
.p3-item .p3-item-meta-line, .p3-item .p3-chips { display: none; }
.p3-tile[data-focused] .p3-item-meta-line { display: block; }
.p3-tile[data-focused] .p3-chips { display: flex; }
.p3-item-meta-line { color: #EBA318; font-size: 16px; margin-top: 6px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-chips { flex-wrap: wrap; margin-top: 4px; }
.p3-chip { color: #fff; font-size: 12px; background: #242424; border: 1px solid #323232; border-radius: 999px;
           padding: 3px 9px; margin-right: 6px; margin-top: 6px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }

/* CardScreen.tsx reader layouts */
.p3-subtitle-gold { color: #EBA318; font-size: 20px; margin-bottom: 12px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-blocks { flex-wrap: wrap; justify-content: space-between; overflow-y: auto; flex: 1 1 0%; padding-bottom: 20px; }
.p3-banner { width: 100%; border-radius: 5px; object-fit: cover; display: block; background: #161616; }
.p3-panel { background: #161616; border: 1px solid #323232; border-radius: 5px; padding: 10px 12px; margin-top: 12px; }
.p3-panel-title { color: #fff; font-size: 16px; margin-bottom: 4px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-panel-text { color: #B0B0B0; font-size: 14px; line-height: 21px; white-space: pre-line; font-family: var(--font-body), inherit; }
.p3-gold { color: #EBA318; }
.p3-qrtile { background: #fff; padding: 8px; border-radius: 5px; }
.p3-caption { color: #B0B0B0; font-size: 12px; margin-top: 6px; text-align: center; }
.p3-notice { color: #B0B0B0; font-size: 16px; margin-top: 20px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }

/* WifiScreen.tsx */
.p3-cols { flex: 1 1 0%; }
.p3-ssid { height: 85px; background: #161616; border: 1px solid #323232; border-radius: 5px; align-items: center; padding: 0 10px; margin-bottom: 15px; }
.p3-ssid-name { color: #fff; font-size: 20px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-ssid-net { color: #B0B0B0; font-size: 14px; margin-top: 4px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-qr-small { background: #fff; padding: 4px; border-radius: 4px; flex: none; }
.p3-steps { background: #161616; border: 1px solid #323232; border-radius: 5px; padding: 10px; min-height: 233px; }
.p3-how-title { color: #fff; font-size: 20px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-how-sub { color: #B0B0B0; font-size: 14px; margin-top: 4px; margin-bottom: 6px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-step { align-items: flex-start; margin-top: 8px; }
.p3-stepnum { width: 20px; height: 20px; border-radius: 10px; margin-right: 8px; margin-top: 1px; flex: none;
              background: #242424; border: 1px solid #EBA318; align-items: center; justify-content: center; }
.p3-stepnum .t { color: #EBA318; font-size: 12px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-steptext { flex: 1 1 0%; color: #B0B0B0; font-size: 14px; line-height: 20px; font-family: var(--font-body), inherit; }
.p3-step-sm { margin-top: 6px; }
.p3-stepnum-sm { width: 18px; height: 18px; border-radius: 9px; }
.p3-stepnum-sm .t { font-size: 11px; }
.p3-steptext-sm { flex: 1 1 0%; color: #B0B0B0; font-size: 12px; line-height: 17px; font-family: var(--font-body), inherit; }

/* CastScreen.tsx */
.p3-castpanel { flex: 425 1 0%; margin-right: 30px; background: #161616; border: 1px solid #323232; border-radius: 5px; padding: 12px; height: 318px; }
.p3-castbody { color: #B0B0B0; font-size: 16px; line-height: 24px; font-family: var(--font-body), inherit; }
.p3-pairrow { align-items: flex-end; margin-top: auto; }

/* FlightsScreen.tsx */
.p3-tabs { margin-top: -6px; margin-bottom: 14px; gap: 8px; }
.p3-fpanel { flex: 1 1 0%; background: #161616; border: 1px solid #323232; border-radius: 5px; padding: 0 10px; overflow: hidden; }
.p3-frow { height: 44px; align-items: center; border-bottom: 1px solid #323232; }
.p3-frow[data-focused] { background: rgba(255,255,255,0.06); }
.p3-flogo { width: 52px; align-items: flex-start; }
.p3-flogo-text { color: #B0B0B0; font-size: 10px; }
.p3-fnum { width: 90px; color: #fff; font-size: 16px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-fplace { flex: 1 1 0%; color: #fff; font-size: 16px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-ftime { width: 120px; color: #fff; font-size: 16px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-struck { text-decoration: line-through; opacity: 0.6; }
.p3-fstatus { width: 130px; text-align: right; font-size: 16px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }

/* AppsScreen.tsx */
.p3-appgrid { flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.p3-apppill { position: relative; height: 100px; align-items: center; justify-content: center; background: #000000;
              border: 1px solid #323232; border-radius: 5px; padding: 0 10px; }
.p3-appart { width: 85%; height: 76px; border-radius: 3px; object-fit: contain; }
.p3-applabel { color: #fff; font-size: 16px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-signout { position: relative; height: 47px; align-items: center; justify-content: center; background: #161616;
              border: 1px solid #E4292F; border-radius: 5px; margin-bottom: 14px; }
.p3-signout-title { color: #E4292F; font-size: 18px; font-family: var(--p3-font-bold, var(--font-body)), inherit; }
.p3-signout-sub { color: #B0B0B0; font-size: 12px; margin-top: 2px; font-family: var(--font-body), inherit; }

/* WeatherOverlay motion: the TV floats the icon and cycles the detail line;
   the preview approximates with the float only. */
.p3-weather-icon { animation: p3WeatherFloat 3.6s ease-in-out infinite; display: inline-block; }
@keyframes p3WeatherFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Promo-video caption + rail-tile icon fallback (Capital, 2026-09-02). */
.p3-video-cap { position: absolute; left: 14px; bottom: 14px; color: rgba(255,255,255,0.92);
  font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.6); pointer-events: none; }
.p3-rail-icon { position: absolute; top: 12px; left: 12px; pointer-events: none; }
.p3-rail-icon svg { width: 30px; height: 30px; }

/* RevealBody focus scrim (Capital, 2026-09-02): darker panel behind the
   revealed text on focus, matching the RN 0.55 scrim. */
.p3-tile[data-focused] .p3-item, .p3-tile[data-focused] .p3-label-wrap {
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  padding-top: 24px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;
}
