/* /care-settings/urgent-care: the film band, the clinic-fit list and monthly
   return, the kiosk walkthrough, the label bench and the waiting-room TV.
   Colours and type come from site.css tokens. The printed media are paper
   and ink in every mode, so they carry their own two tokens. */

.uc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.uc-hero-actions .button { margin-top: 10px; }

/* Film band */
.uc-cinema { --cinema: #05090d; background: var(--cinema); color: var(--night-ink); padding-block: clamp(32px, 6vw, 72px); }
.uc-cinema .eyebrow { color: var(--mint); }
.uc-film-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.uc-film-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); margin-top: 8px; }
.uc-film-meta { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.uc-film .film-embed video, .uc-film .film-embed img { border-color: var(--night-line); border-radius: 16px; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.uc-film .film-embed figcaption { display: none; }
.uc-film .film-badge { position: absolute; left: 16px; top: 16px; }
.uc-chapters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
@media (max-width: 900px) { .uc-chapters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .uc-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uc-chapters button { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--night-line); background: transparent; color: var(--night-muted); font: 500 13px/1.3 var(--sans); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.uc-chapters button b { font: 600 11px var(--mono); letter-spacing: .1em; }
.uc-chapters button:hover, .uc-chapters button[aria-current="true"] { border-color: var(--mint); color: var(--night-ink); background: rgba(185, 231, 216, .07); }
.uc-chapters button[aria-current="true"] b { color: var(--mint); }
.uc-chapters button:focus-visible { outline-color: var(--mint); }

/* 01 Clinic fit */
.uc-fit { margin: 32px 0 0; display: grid; border-top: 1px solid var(--rule); }
.uc-fit > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 32px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) { .uc-fit > div { grid-template-columns: minmax(0, 1fr); } }
.uc-fit dt { font-weight: 700; letter-spacing: -.01em; }
.uc-fit dd { margin: 0; color: var(--muted); }

/* 02 Kiosk walkthrough. Without the script every screen is listed in order. */
.uc-walk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .uc-walk { grid-template-columns: minmax(0, 1fr); } }
.uc-device { margin: 0; }
.uc-device-frame { margin-inline: auto; width: min(100%, 360px); aspect-ratio: 1424 / 2048; border-radius: 28px; padding: 13px; background: linear-gradient(160deg, #2b3640, #0e1419); box-shadow: 0 40px 80px -40px rgba(15, 30, 46, .55); transition: aspect-ratio .4s var(--ease), width .4s var(--ease); }
.uc-device.is-wide .uc-device-frame { width: min(100%, 520px); aspect-ratio: 16 / 10; }
.uc-device-screen { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: var(--night); }
.uc-device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.uc-device-screen img.is-wide { object-fit: contain; }
.uc-device-screen img.is-on { opacity: 1; }
.uc-device-stand { width: 30%; height: 46px; margin: 0 auto; background: linear-gradient(#1a232b, #0e1419); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.uc-device figcaption { text-align: center; margin-top: 12px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.uc-walk-side { display: grid; gap: 22px; min-width: 0; }
.uc-screens { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: screen; }
.uc-screens li { counter-increment: screen; display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.uc-screens li::before { content: "Screen " counter(screen, decimal-leading-zero); font: 600 12px var(--mono); letter-spacing: .12em; color: var(--green); text-transform: uppercase; }
.uc-screens h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.uc-screens li > p:not(.uc-says) { color: var(--muted); max-width: 52ch; }
.uc-says { font-size: 14.5px; border-left: 2px solid var(--mint); padding-left: 12px; color: var(--ink-2); font-style: italic; }
.uc-screens .inline-link { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
/* Enhanced: one screen at a time, chosen from a tab list. */
.uc-walk.is-live .uc-screens { gap: 22px; }
.uc-walk.is-live .uc-screens li { display: none; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--white); }
.uc-walk.is-live .uc-screens li.is-on { display: grid; }
.uc-screen-tabs { display: grid; border-top: 1px solid var(--rule); }
.uc-screen-tabs button { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline; gap: 8px; text-align: left; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--muted); font: 600 16.5px var(--sans); letter-spacing: -.01em; cursor: pointer; transition: color .2s, padding .2s; }
.uc-screen-tabs button span { font: 500 12px var(--mono); letter-spacing: .08em; }
.uc-screen-tabs button:hover { color: var(--ink); }
.uc-screen-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--green); padding-left: 14px; }
.uc-screen-tabs button[aria-selected="true"] span { color: var(--green); }
.uc-emergency { margin-top: 28px; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 12px; background: var(--paper-2); font-size: 15.5px; }
.uc-emergency strong { font-size: 18px; letter-spacing: .02em; color: var(--alert); }

/* 03 Label bench */
.uc-print { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .uc-print { grid-template-columns: minmax(0, 1fr); } }
.uc-bench { --label-paper: #ffffff; --label-ink: #111417; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; display: grid; gap: 18px; justify-items: center; }
.uc-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); }
.uc-tabs button { border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.uc-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.uc-printer { position: relative; z-index: 2; width: min(100%, 300px); height: 96px; border-radius: 20px 20px 8px 8px; background: linear-gradient(170deg, #4a545d, #1b2126); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6); }
.uc-printer-name { position: absolute; left: 18px; top: 16px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c9d3d0; }
.uc-led { position: absolute; right: 20px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #5fd39c; box-shadow: 0 0 10px #5fd39c; }
.uc-led.is-busy { background: #f2b24c; box-shadow: 0 0 10px #f2b24c; }
.uc-slot { position: absolute; left: 12%; right: 12%; bottom: 12px; height: 6px; border-radius: 3px; background: #07090b; }
.uc-feed { position: relative; z-index: 1; margin-top: -10px; display: grid; justify-items: center; gap: 14px; width: 100%; overflow: hidden; padding: 0 8px 12px; }
.uc-media { margin: 0; background: var(--label-paper); color: var(--label-ink); font-family: var(--mono); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .45); }
.uc-media.is-printing { animation: uc-feed 1.4s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes uc-feed { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.uc-label { width: min(100%, 260px); padding: 18px 16px 12px; border-radius: 0 0 6px 6px; display: grid; gap: 4px; }
.uc-l-name { font: 700 17px var(--sans); letter-spacing: -.01em; }
.uc-l-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.uc-barcode { display: block; height: 38px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--label-ink) 0 2px, transparent 2px 3px, var(--label-ink) 3px 4px, transparent 4px 7px, var(--label-ink) 7px 10px, transparent 10px 11px, var(--label-ink) 11px 12px, transparent 12px 15px); }
.uc-band { width: min(100%, 460px); height: 72px; border-radius: 0 0 36px 36px; padding: 10px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) 90px auto; gap: 14px; align-items: center; }
.uc-band-text { display: grid; font-size: 11.5px; min-width: 0; }
.uc-band-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-band-text .uc-l-name { font-size: 14px; }
.uc-band .uc-barcode { height: 40px; margin: 0; }
.uc-hole { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.uc-ticket { width: 180px; padding: 22px 16px 16px; text-align: center; display: grid; gap: 6px; border-radius: 0 0 4px 4px; }
.uc-t-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.uc-t-code { font: 800 34px var(--sans); letter-spacing: .02em; }
.uc-t-s { font-size: 11px; color: #555c60; }
.uc-spec { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); text-align: center; }
.uc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.uc-facts li { padding-left: 16px; border-left: 2px solid var(--mint); color: var(--muted); font-size: 15.5px; }
.uc-facts b { color: var(--ink); display: block; font-size: 16px; }
.uc-facts-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
@media (max-width: 720px) { .uc-facts-cols { grid-template-columns: minmax(0, 1fr); } }

/* 04 Waiting-room TV. Without the script it shows its default settings. */
.uc-tv-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.uc-tv-controls fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.uc-tv-controls legend { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; }
.uc-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); }
.uc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uc-seg label { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.uc-seg input:checked + label { background: var(--green); color: var(--white); }
.uc-seg input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.uc-tv-shell { margin-top: 18px; border-radius: 14px; border: 12px solid #121a21; background: #121a21; box-shadow: 0 30px 70px -40px rgba(15, 30, 46, .6); }
.uc-tv { container-type: inline-size; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 4px; overflow: hidden; background: var(--night); color: var(--night-ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.4cqw; padding: 3cqw; }
.uc-tv-left { display: grid; grid-template-rows: auto 1fr auto; gap: 1.6cqw; min-width: 0; }
.uc-tv-head { display: flex; justify-content: space-between; font: 600 1.5cqw var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.uc-tv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .9cqw; align-content: start; }
.uc-tv-rows li { display: flex; justify-content: space-between; gap: 1cqw; padding: 1.1cqw 1.4cqw; border-radius: 1cqw; background: var(--night-2); font-size: 1.9cqw; }
.uc-tv-rows li span:last-child { color: var(--mint); font-weight: 600; white-space: nowrap; }
.uc-tv-rows li.is-behind span:last-child { color: #f2c27a; }
.uc-tv-rows li.is-away span:last-child { color: var(--night-muted); }
.uc-tv-tile { border-radius: 1.2cqw; padding: 1.6cqw; background: linear-gradient(140deg, #17423d, #112435); display: grid; gap: .4cqw; }
.uc-tv-k { font: 600 1.3cqw var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.uc-tv-band { font-size: 3.6cqw; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.uc-tv-range { font-size: 1.8cqw; }
.uc-tv-note { font-size: 1.3cqw; color: var(--night-muted); }
.uc-tv.no-tile .uc-tv-tile { display: none; }
.uc-tv-panels { display: grid; gap: 1.6cqw; min-width: 0; }
.uc-tv.one-panel .uc-tv-panel[data-panel="2"] { display: none; }
.uc-tv-panel { position: relative; border-radius: 1.4cqw; background: var(--night-2); overflow: hidden; }
.uc-tv-slide { position: absolute; inset: 0; padding: 2.2cqw; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2cqw; align-items: center; opacity: 0; transition: opacity .8s ease; }
.uc-tv-slide:first-child, .uc-tv-slide.is-on { opacity: 1; }
.uc-tv.is-live .uc-tv-slide:first-child:not(.is-on) { opacity: 0; }
.uc-tv-slide h4 { margin: 0; font-size: 3cqw; letter-spacing: -.03em; line-height: 1.08; }
.uc-tv.one-panel .uc-tv-slide h4 { font-size: 3.8cqw; }
.uc-tv-slide p { font-size: 1.6cqw; color: var(--night-muted); margin-top: .8cqw; line-height: 1.4; }
.uc-qr { width: 9cqw; aspect-ratio: 1; border: .7cqw solid #fff; border-radius: .6cqw; background: repeating-conic-gradient(var(--night) 0 25%, #fff 0 50%) 0 0 / 33.4% 33.4%; }
.uc-caption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* 05 and 06 */
.uc-who { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }

/* 07 Films */
.uc-films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 28px 4px; }
@media (max-width: 760px) { .uc-films { grid-template-columns: minmax(0, 1fr); } }
.uc-films .film-embed figcaption { margin-top: 10px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .uc-media.is-printing { animation: none; }
  .uc-tv-slide, .uc-device-screen img, .uc-device-frame { transition: none; }
}
