/* Read-only compositions for a shared screen. The regular site keeps its full detail. */
.tv-access-head { display: none; }
html.tv main > #restricted { display: block; }
html.tv .mapbox { padding: 0; overflow: hidden; }
html.tv .has-selection #map-canvas { inset: 0 var(--tv-sheet-width, 72%) 0 0; height: 100%; }
html.tv .sheet {
  position: absolute; inset: 0 0 0 auto; width: var(--tv-sheet-width, 72%); max-height: none;
  /* The wordmark lives over the map; the beach needs only its own top margin. */
  margin: 0; padding: var(--tv-beach-top, 24px) 0 0; overflow: hidden; background: var(--panel);
  border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none;
  animation: none; backdrop-filter: none;
}
html.tv .sheet .detail, html.tv #restricted > .wrap, html.tv #island > .wrap {
  max-width: none; margin: 0; transform-origin: top left;
  transform: translateX(var(--tv-offset, 0px)) scale(var(--tv-fit, 1));
}
html.tv .sheet .detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 0 20px 16px; }
html.tv .detail-head { grid-column: 1 / -1; order: 0; }
html.tv .detail-head h3 { font-size: 36px; }
html.tv .detail-col { display: grid; align-content: start; gap: 14px; min-width: 0; }
html.tv .detail-col > * { order: 0; }
html.tv .sheet .gallery-slide { aspect-ratio: 16 / 10; cursor: default; }
html.tv .sheet .gallery-access-slide { background: var(--plan-paper); }
html.tv .sheet .gallery-access-slide img { object-fit: contain; }
html.tv .sheet .gallery-track { scrollbar-width: none; }
html.tv .sheet .gallery-track::-webkit-scrollbar { display: none; }
html.tv .sheet .gallery-btn { cursor: default; }
html.tv .sheet .gallery-btn img { height: 100%; object-fit: cover; }
html.tv .sheet .metric { padding: 8px 10px; }
html.tv .sheet .forecast-charts { grid-template-columns: 1fr 1fr; gap: 12px; }
html.tv .sheet .forecast-charts .chart text { font-size: 14px; }
html.tv .sheet .forecast-rain { grid-column: 1 / -1; }
html.tv .sheet .forecast-heading { flex-wrap: wrap; }
html.tv .sheet .access-plan, html.tv .sheet .detail-cams, html.tv .sheet .detail-webcam,
html.tv .sheet .linkrow, html.tv .sheet .spacewrap, html.tv .sheet .srcline,
html.tv .sheet .flags, html.tv .sheet .facts ~ .note,
html.tv .sheet p:has(> a:only-child), html.tv .sheet .access-banner > a { display: none; }
/* Retain the required photo attribution as plain text, without link affordances. */
html.tv .photo-credit a, html.tv #island .panel-foot a { color: inherit; text-decoration: none; }

html.tv #restricted, html.tv #island {
  position: fixed; inset: 0; z-index: 1001; margin: 0;
  padding: 104px 40px 24px; border: 0; background: var(--bg); overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s, visibility 0s .6s;
}
html.tv.tv-access #restricted, html.tv.tv-island #island {
  opacity: 1; visibility: visible; transition: opacity .6s;
}
html.tv #restricted > .wrap, html.tv #island > .wrap { padding: 0; }
html.tv :is(#restricted, #island) .sec-head h2 { font-size: 38px; }
html.tv :is(#restricted, #island) .sec-head p { font-size: 16px; }
/* The summary slides share the wordmark's left edge and a balanced canvas. */
html.tv:is(.tv-access, .tv-island) .topbar { top: 28px; left: var(--tv-summary-inset, clamp(24px, 4vw, 80px)); }
html.tv:is(.tv-access, .tv-island) .topbar .wrap { padding: 0; }
html.tv :is(#restricted, #island) { padding: 116px clamp(24px, 4vw, 80px) 36px; }
html.tv :is(#restricted, #island) .sec-head { margin-bottom: 24px; }

/* Access is one status board: current state, summer rule and bus service for every beach. */
html.tv #restricted .access-src, html.tv #restricted .alines,
html.tv #restricted .access-source-links, html.tv #restricted [data-i18n="restricted.intro"] { display: none; }
html.tv #restricted {
  --access-columns: 48px minmax(190px, 1.2fr) minmax(120px, .65fr) minmax(240px, 1.25fr) minmax(210px, 1fr);
}
html.tv #restricted .groups { grid-template-columns: 1fr; gap: 20px; }
html.tv #restricted .area { display: block; grid-column: 1 / -1; border: 0; border-radius: 0; }
html.tv #restricted :is(.arow, .tv-access-head) {
  display: grid;
  grid-template-columns: var(--access-columns);
  grid-template-areas: none; gap: 8px 20px; padding: 10px 0; background: none;
}
html.tv #restricted .tv-access-head {
  align-items: start; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--muted); font: 600 12px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
html.tv #restricted .tv-access-head > :first-child { grid-column: 1 / 3; }
html.tv #restricted .tv-access-head small {
  display: block; margin-top: 3px; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none;
}
html.tv #restricted .arow > *, html.tv #restricted .arow-details > * { grid-area: auto; }
html.tv #restricted .arow.ahead { display: block; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
html.tv #restricted .arow.ahead h3 { margin: 0; color: var(--sea); font-size: 16px; font-weight: 500; }
html.tv #restricted .arow.ahead > span { display: none; }
html.tv #restricted .arow.ahead + .arow { border-top: 0; }
html.tv #restricted .arow-photo { width: 48px; height: 48px; }
html.tv #restricted .arow-name button { font-size: 21px; }
html.tv #restricted .arow-details { display: contents; }
html.tv #restricted .astatus { max-width: none; justify-self: start; }
html.tv #restricted .astatus b { font-size: 17px; }
html.tv #restricted .arow-rule, html.tv #restricted .arow-bus { font-size: 16px; }
html.tv #restricted .arow-bus .bus-state { font-size: 14px; font-weight: 400; }
html.tv #restricted .access-foot { padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
html.tv #restricted .access-foot p { max-width: 1100px; }

/* Two focused views: seasonal passengers/population, then arrivals/visitor origins. */
html.tv #island > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; }
html.tv #island .sec-head { grid-column: 1 / -1; margin-bottom: 0; }
html.tv #island .sec-head p:has(a) { display: none; }
html.tv #island .tv-island-page { align-self: start; padding-top: 10px; color: var(--muted); font: 400 14px var(--font-data); letter-spacing: .08em; }
html.tv #island .island-grid { display: contents; margin: 0; }
html.tv #island .panel { display: grid; padding: 18px 0 0; gap: 18px; }
html.tv:not(.tv-island-flights) #island .panel { grid-row: 2 / span 4; grid-template-rows: subgrid; }
html.tv #island #airport-panel { grid-column: 1; }
html.tv #island #visitors-panel { grid-column: 2; }
html.tv:not(.tv-island-flights) #island .island-flights,
html.tv.tv-island-flights #island .island-grid:not(.island-flights) { display: none; }
html.tv.tv-island-flights #island > .wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
html.tv #island .panel-head h3 { font-size: 25px; }
html.tv #island .bigstat .v { font-size: 38px; }
html.tv #island .panel-head > div:first-child { flex-basis: auto; }
html.tv #island .airport-controls, html.tv #island .airport-toolbar,
html.tv #island .population-tabs, html.tv #island .population-filters,
html.tv #island .viewseg, html.tv #island .airport-range, html.tv #island .history-values,
html.tv #island .population-method, html.tv #island .history-tooltip, html.tv #island .history-hit,
html.tv #island .origins-rest > :not(summary), html.tv #island .origins-rest > summary::after { display: none; }
html.tv #island .airport-selection { display: none; }
html.tv #island .history-plot > svg, html.tv #island .population-chart { height: var(--tv-chart-height, 250px); max-height: none; }
html.tv #island .arrivals-chart .history-plot > svg { height: auto; }
html.tv #island .airport-legend { gap: 0 14px; }
html.tv #island .airport-legend button { border: 0; padding: 0; min-height: 22px; }
html.tv #island .orow { grid-template-columns: 20px minmax(0, 1fr) minmax(32px, 20%) 64px; gap: 8px; padding-block: 10px; }
html.tv #island .orow-val small { display: block; margin: 2px 0 0; font-size: 11px; }
html.tv #island .origins-rest > summary .orow-name::after { content: none; }
html.tv #island .panel-foot { font-size: 12px; }

/* Shorter presentation screens keep readable type by tightening the rows first. */
@media (min-width: 561px) and (max-height: 850px) {
  html.tv :is(#restricted, #island) { padding-top: 104px; padding-bottom: 24px; }
  html.tv #restricted .sec-head { margin-bottom: 18px; }
  html.tv #restricted .groups { gap: 12px; }
  html.tv #restricted .tv-access-head { padding-bottom: 10px; margin-bottom: 10px; }
  html.tv #restricted .arow:not(.ahead) { padding-block: 6px; }
  html.tv #restricted .arow-photo { width: 40px; height: 40px; }
  html.tv #restricted .access-foot { padding-top: 10px; }
  html.tv #island .panel { gap: 12px; }
  html.tv #island .arr-pair { gap: 12px; }
  html.tv #island .history-plot > svg, html.tv #island .population-chart { height: var(--tv-chart-height, 220px); }
  html.tv #island .arrivals-chart .history-plot > svg { height: auto; }
}

@media (max-width: 800px) {
  html.tv .topbar { top: 8px; left: 8px; }
  html.tv .brand b { font-size: 20px; }
  html.tv .brand-mark { width: 34px; height: 34px; }
  html.tv .brand-domain { font-size: 13px; }
  html.tv #restricted, html.tv #island { padding: 80px 16px 16px; }
  html.tv:is(.tv-access, .tv-island) .topbar { top: 16px; left: 16px; }
  html.tv .sheet { inset: 80px 12px 16px; width: auto; padding: 0; }
  html.tv .has-selection #map-canvas { right: 0; opacity: .12; }
}
@media (max-width: 560px) {
  html.tv .sheet .detail { gap: 12px; padding-inline: 8px; }
  html.tv .detail-head h3 { font-size: 28px; }
  html.tv .sheet .detail-head .sub { font-size: 12px; }
  html.tv .sheet .forecast-today, html.tv .sheet .crowdblock { display: none; }
  html.tv .sheet .scorebig { padding: 8px; gap: 8px; }
  html.tv .sheet .ring { width: 48px; height: 48px; }
  html.tv .sheet .ring span { width: 38px; height: 38px; font-size: 18px; }
  html.tv .sheet .metrics { grid-template-columns: 1fr 1fr; }
  html.tv .sheet .metric { padding: 6px; }
  html.tv .sheet .metric .k { font-size: 11px; }
  html.tv .sheet .metric .v { font-size: 16px; }
  html.tv .sheet .facts { grid-template-columns: 1fr; }
  html.tv .sheet .note { font-size: 11px; }
  html.tv #restricted .arow { grid-template-columns: 30px 1fr auto; gap: 4px 8px; padding-block: 8px; }
  html.tv #restricted .tv-access-head { display: none; }
  html.tv #restricted .groups { gap: 16px; }
  html.tv #restricted .arow.ahead { display: block; }
  html.tv #restricted .arow.ahead > span { display: none; }
  html.tv #restricted .arow.ahead h3 { font-size: 16px; }
  html.tv #restricted .arow-photo { grid-row: 1 / 3; width: 30px; height: 30px; }
  html.tv #restricted .arow-name button { font-size: 16px; }
  html.tv #restricted .astatus { grid-column: 3; grid-row: 1; padding: 3px 6px; }
  html.tv #restricted .astatus b { font-size: 12px; }
  html.tv #restricted .arow-rule { grid-column: 2; font-size: 11px; }
  html.tv #restricted .arow-bus { grid-column: 3; font-size: 10px; }
  html.tv #restricted .arow-bus .bus-state { font-size: 10px; }
  html.tv #restricted .arow-bus .lineno { min-width: 22px; padding-inline: 4px; font-size: 11px; }
  html.tv #restricted .access-foot { font-size: 11px; }
  html.tv :is(#restricted, #island) .sec-head h2 { font-size: 28px; }
  html.tv :is(#restricted, #island) .sec-head p { font-size: 12px; }
  html.tv #island .sec-head { flex-wrap: nowrap; gap: 12px; }
  html.tv #island > .wrap, html.tv.tv-island-flights #island > .wrap { grid-template-columns: 1fr; gap: 16px; }
  html.tv #island .panel { gap: 10px; padding-top: 12px; }
  html.tv:not(.tv-island-flights) #island .panel { grid-row: auto; grid-template-rows: none; }
  html.tv #island #airport-panel, html.tv #island #visitors-panel { grid-column: auto; }
  html.tv #island .panel-head h3 { font-size: 19px; }
  html.tv #island .panel-head .note { font-size: 11px; }
  html.tv #island .bigstat { gap: 6px 12px; }
  html.tv #island .bigstat .v { font-size: 25px; }
  html.tv #island .bigstat .k { font-size: 11px; }
  html.tv #island .history-plot > svg, html.tv #island .population-chart { height: auto; max-height: 170px; }
  html.tv #island .orows { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  html.tv #island .orow { grid-template-columns: 18px minmax(0, 1fr) auto; min-height: 30px; padding-block: 4px; font-size: 11px; }
  html.tv #island .orow-bar, html.tv #island .orow-name small, html.tv #island .orow-val small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.tv #restricted, html.tv #island { transition: none; }
}
