/* Applied only when the visitor enables TV mode. */
html.portal-tv-mode {
  font-size: 21px;
  scroll-behavior: auto;
  --portal-tv-focus: #8ae9ff;
}

html.portal-tv-mode body {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  padding-left: 4vw !important;
  padding-right: 4vw !important;
  padding-bottom: 3rem !important;
}

html.portal-tv-mode body > main,
html.portal-tv-mode body > .wrap,
html.portal-tv-mode body > .shell {
  width: 100%;
  max-width: 80rem;
  box-sizing: border-box;
}

html.portal-tv-mode .panel { background: #102436; }
html.portal-tv-mode #login,
html.portal-tv-mode #change { max-width: 42rem; margin: 0 auto; }

html.portal-tv-mode .services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

html.portal-tv-mode .service {
  min-height: 108px;
  padding: 1rem;
  font-size: 1.15rem;
}

html.portal-tv-mode label,
html.portal-tv-mode input,
html.portal-tv-mode select,
html.portal-tv-mode textarea,
html.portal-tv-mode button {
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

html.portal-tv-mode button,
html.portal-tv-mode select,
html.portal-tv-mode input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html.portal-tv-mode textarea {
  min-height: 54px;
  padding: 0.65rem 0.8rem;
}

html.portal-tv-mode input[type="checkbox"],
html.portal-tv-mode input[type="radio"] {
  width: 1.3rem !important;
  height: 1.3rem;
  min-height: 0;
  accent-color: #53d4a5;
}

html.portal-tv-mode .file-input input[type="file"] {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  height: auto !important;
}

html.portal-tv-mode body > .nav {
  position: relative !important;
  top: auto !important;
  flex-wrap: wrap;
}

html.portal-tv-mode h1 { font-size: 1.8rem; }
html.portal-tv-mode h2 { font-size: 1.3rem; }

html.portal-tv-mode select option { background: #102030; color: #edf7ff; }
html.portal-tv-mode small,
html.portal-tv-mode .small,
html.portal-tv-mode .status,
html.portal-tv-mode .pill,
html.portal-tv-mode header p { font-size: 0.85rem; }

html.portal-tv-mode :focus,
html.portal-tv-mode .portal-tv-focus {
  outline: 4px solid var(--portal-tv-focus) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 8px rgba(104, 185, 255, 0.25) !important;
}

html.portal-tv-mode[data-portal-tv-editing="true"] .portal-tv-focus {
  outline-color: #a1f3d6 !important;
}

html.portal-tv-mode video { max-width: 100%; max-height: 65vh; }
html.portal-tv-mode *,
html.portal-tv-mode *::before,
html.portal-tv-mode *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

@media (max-width: 900px) {
  html.portal-tv-mode .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html.portal-tv-mode { font-size: 19px; }
  html.portal-tv-mode .services { grid-template-columns: 1fr; }
}
