/**
 * tvm front-end styles.
 *
 * Look: sky background, one translucent blue panel holding both columns,
 * charcoal hanging menu tabs with an orange current tab, bright blue
 * sidebar widgets, navy headings and a separate pale footer strip.
 *
 * Contents
 * 1. Tokens
 * 2. Base
 * 3. Accessibility helpers
 * 4. Layout (993px panel: 16 + 220 + 16 + 725 + 16)
 * 5. Menu tabs
 * 6. Sidebar & widgets
 * 7. Slider
 * 8. Content
 * 9. Blocks & media
 * 10. Comments
 * 11. Forms & pagination
 * 12. Footer
 * 13. Responsive
 * 14. Reduced motion
 */

/* 1. Tokens ------------------------------------------------------------- */

:root {
	--tvm-sky: #4f8fcf;
	--tvm-panel-top: rgba(200, 224, 252, 0.93);
	--tvm-panel-bottom: rgba(214, 233, 252, 0.8);
	--tvm-footer: rgba(215, 233, 250, 0.92);

	--tvm-tab: #353535;
	--tvm-tab-hover: #4a4a4a;
	--tvm-tab-active: #d23600;

	--tvm-widget: #268dc6;
	--tvm-widget-light: #3a9fd8;
	--tvm-widget-edge: #1b73a6;

	--tvm-heading: #00487e;
	--tvm-list: #0b4a78;
	--tvm-text: #333333;
	--tvm-muted: #5a6d80;
	--tvm-link: #0b5fa5;
	--tvm-line: rgba(0, 72, 126, 0.18);

	--tvm-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
	--tvm-font-heading: "Segoe UI", "Trebuchet MS", "Lucida Grande", Arial, sans-serif;
	--tvm-font-light: "Segoe UI Light", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	--tvm-container: 993px; /* 16 + 220 + 16 + 725 + 16. */
	--tvm-pad: 16px;
	--tvm-sidebar: 220px;
	--tvm-column-gap: 16px;
	--tvm-stack-gap: 20px;
	--tvm-radius: 6px;
}

/* 2. Base --------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--tvm-sky);
	color: var(--tvm-text);
	font-family: var(--tvm-font);
	font-size: 14px;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.4em 0 0.5em;
	font-family: var(--tvm-font-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--tvm-heading);
}

h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
h5,
h6 { font-size: 14px; }

p,
ul,
ol,
dl,
blockquote,
figure,
table,
pre {
	margin: 0 0 1.1em;
}

a {
	color: var(--tvm-link);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--tvm-heading);
}

:focus-visible {
	outline: 2px solid var(--tvm-tab-active);
	outline-offset: 2px;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

hr {
	border: 0;
	border-top: 1px solid var(--tvm-line);
	margin: 1.75em 0;
}

blockquote {
	margin-inline: 0;
	padding: 0.25em 0 0.25em 1em;
	border-left: 3px solid var(--tvm-widget);
	color: var(--tvm-list);
	font-style: italic;
}

code,
kbd,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	overflow-x: auto;
	padding: 1em;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 4px;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.45em 0.7em;
	border-bottom: 1px solid var(--tvm-line);
	text-align: left;
}

/* 3. Accessibility helpers ---------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: var(--tvm-heading);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 4. Layout ------------------------------------------------------------- */

.site {
	width: 100%;
	max-width: var(--tvm-container);
	margin: 0 auto;
}

/* The translucent panel holding sidebar + content. */
.site-content {
	position: relative;
	display: grid;
	grid-template-columns: var(--tvm-sidebar) minmax(0, 1fr);
	grid-template-areas: "sidebar main";
	column-gap: var(--tvm-column-gap);
	row-gap: var(--tvm-stack-gap);
	align-items: start;
	min-height: 560px;
	padding: var(--tvm-pad);
	padding-top: 16px;
	background: linear-gradient(to bottom, var(--tvm-panel-top), var(--tvm-panel-bottom));
	border-radius: 0 0 var(--tvm-radius) var(--tvm-radius);
	box-shadow: 0 2px 10px rgba(0, 40, 90, 0.3);
}

.site-main {
	grid-area: main;
	min-width: 0;
}

.site-sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: var(--tvm-stack-gap);
	min-width: 0;
}

/* 5. Menu tabs ---------------------------------------------------------- */

/* The panel colour continues up behind the tabs to the top of the page. */
.site-header {
	position: relative;
	z-index: 50;
	padding: 0 var(--tvm-pad);
	background: var(--tvm-panel-top);
	box-shadow: 0 2px 10px rgba(0, 40, 90, 0.3);
	clip-path: inset(0 -20px 0 -20px);
}

.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 5px;
}

.main-navigation li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

/* Top-level tabs hang from the top edge of the page. */
/* Tabs share the row and stretch to fill the full width. */
.main-navigation .menu > li {
	flex: 1 1 auto;
	background: linear-gradient(to bottom, #2c2c2c, var(--tvm-tab) 45%, #3d3d3d);
	border-radius: 0 0 5px 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.main-navigation .menu > li:hover,
.main-navigation .menu > li.is-open {
	background: linear-gradient(to bottom, #3c3c3c, var(--tvm-tab-hover));
}

.main-navigation .menu > .current-menu-item,
.main-navigation .menu > .current-menu-ancestor,
.main-navigation .menu > .current_page_item,
.main-navigation .menu > .current_page_ancestor {
	background: linear-gradient(to bottom, #bf3000, var(--tvm-tab-active) 45%, #e04a12);
}

.main-navigation a {
	display: block;
	flex: 1 1 auto;
	padding: 9px 12px 10px;
	text-align: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45);
	white-space: nowrap;
}

.main-navigation a:hover {
	color: #fff;
}

.submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	margin-left: -12px;
	padding: 0 10px 0 2px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.submenu-toggle__icon {
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s ease;
}

.is-open > .submenu-toggle .submenu-toggle__icon {
	transform: translateY(2px) rotate(-135deg);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 16px;
	border: 0;
	border-radius: 0 0 5px 5px;
	background: linear-gradient(to bottom, #2c2c2c, var(--tvm-tab) 45%, #3d3d3d);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* Desktop dropdowns. */
@media (min-width: 768px) {
	.main-navigation .menu ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 100;
		display: block;
		min-width: 210px;
		padding: 4px 0;
		background: #262626;
		border-radius: 0 0 5px 5px;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.15s ease, visibility 0s linear 0.15s;
	}

	.main-navigation .menu ul ul {
		top: -4px;
		left: 100%;
		border-radius: 5px;
	}

	.main-navigation li:hover > ul,
	.main-navigation li.is-open > ul,
	.no-js .main-navigation li:focus-within > ul {
		visibility: visible;
		opacity: 1;
		transition-delay: 0s;
	}

	.main-navigation ul ul li {
		width: 100%;
	}

	.main-navigation ul ul a {
		padding: 8px 16px;
		font-weight: 400;
		text-align: left;
		white-space: normal;
	}

	.main-navigation ul ul li:hover,
	.main-navigation ul ul .current-menu-item,
	.main-navigation ul ul .current_page_item {
		background: var(--tvm-tab-active);
	}

	.main-navigation ul ul .submenu-toggle__icon {
		transform: rotate(-45deg);
	}

	.main-navigation ul ul .is-open > .submenu-toggle .submenu-toggle__icon {
		transform: rotate(135deg);
	}
}

/* 6. Sidebar & widgets -------------------------------------------------- */

/* Logo sits directly on the panel, no box. */
.site-branding {
	overflow-wrap: anywhere;
}

.site-logo,
.site-logo .custom-logo-link {
	display: block;
}

.site-logo img,
.custom-logo {
	display: block;
	max-width: 100%; /* Sidebar is 220px, so the logo is at most 220px. */
	height: auto;
}

.site-title {
	margin: 0;
	font-family: var(--tvm-font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.site-title a {
	color: var(--tvm-heading);
	text-decoration: none;
}

.site-description {
	margin: 4px 0 0;
	color: var(--tvm-list);
	font-size: 12px;
}

/* Blue widget boxes. */
.widget {
	padding: 10px 12px 14px;
	background: linear-gradient(to bottom, var(--tvm-widget-light), var(--tvm-widget) 60px);
	border: 1px solid var(--tvm-widget-edge);
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1px 3px rgba(0, 40, 90, 0.25);
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.widget a {
	color: #fff;
	text-decoration: none;
}

.widget a:hover {
	color: #fff;
	text-decoration: underline;
}

.widget :focus-visible {
	outline-color: #fff;
}

.widget-title {
	margin: 0 0 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.8);
	color: #fff;
	font-family: var(--tvm-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* White triangle bullets. */
.widget ul li {
	position: relative;
	margin: 0 0 7px;
	padding-left: 12px;
}

.widget ul li:last-child {
	margin-bottom: 0;
}

.widget ul li::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: 1px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid #fff;
}

.widget p:last-child {
	margin-bottom: 0;
}

/* Latest News: bold titles. */
.news-list__item a {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.news-list__date {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	opacity: 0.85;
}

/* Phone Numbers. */
.widget_tvm_phone {
	padding: 12px 16px 14px;
}

.widget ul.phone-list li {
	margin: 0;
	padding: 0;
}

.widget ul.phone-list li::before {
	content: none;
}

.phone-list__item + .phone-list__item {
	margin-top: 14px !important;
	padding-top: 12px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.phone-list__number {
	display: block;
	font-family: var(--tvm-font-light);
	font-size: 30px;
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.5px;
	white-space: nowrap;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.phone-list__label {
	display: block;
	font-size: 12px;
}

/* Custom Image. */
.tvm-image-widget {
	margin: 0;
}

.tvm-image-widget img {
	display: block;
	width: 100%;
	height: auto;
}

/* Weather Embed: the provider's widget sits in the blue frame. */
.tvm-weather-embed {
	overflow: hidden;
}

.tvm-weather-embed iframe,
.tvm-weather-embed img {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	border: 0;
}

/* Core widgets placed in the sidebar. */
.widget select,
.widget input[type="search"] {
	max-width: 100%;
	border-color: var(--tvm-widget-edge);
}

.widget_calendar table {
	font-size: 12px;
}

.widget_calendar th,
.widget_calendar td {
	border-color: rgba(255, 255, 255, 0.3);
}

/* 7. Slider ------------------------------------------------------------- */

.tvm-slider {
	position: relative;
	margin: 0 0 40px;
	aspect-ratio: 725 / 290;
	overflow: hidden;
	background: #0d3b66;
	box-shadow: 0 1px 4px rgba(0, 40, 90, 0.3);
}

.tvm-slider__viewport,
.tvm-slider__track {
	height: 100%;
}

.tvm-slider__viewport {
	position: relative;
	overflow: hidden;
}

.tvm-slider__slide {
	position: relative;
	height: 100%;
}

.tvm-slider--fade .tvm-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.tvm-slider--fade .tvm-slider__slide.is-active {
	z-index: 1;
	opacity: 1;
}

.tvm-slider--slide .tvm-slider__track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.tvm-slider--slide .tvm-slider__slide {
	flex: 0 0 100%;
}

.tvm-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tvm-slider__link {
	display: block;
	height: 100%;
	color: inherit;
}

.tvm-slider__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 28px 64px 34px 18px;
	background: linear-gradient(to bottom, rgba(0, 30, 60, 0), rgba(0, 30, 60, 0.78));
	color: #fff;
	font-family: var(--tvm-font-heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Controls appear only when the script runs. On mouse devices the arrows
   stay hidden until the slider is hovered or focused, as in the design. */
.tvm-slider__control,
.tvm-slider__toggle,
.tvm-slider__dots {
	display: none;
}

.tvm-slider.is-ready .tvm-slider__control,
.tvm-slider.is-ready .tvm-slider__toggle,
.tvm-slider.is-ready .tvm-slider__dots {
	display: flex;
}

.tvm-slider__control,
.tvm-slider__toggle {
	position: absolute;
	z-index: 3;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

@media (hover: hover) {
	.tvm-slider.is-ready .tvm-slider__control,
	.tvm-slider.is-ready .tvm-slider__toggle {
		opacity: 0;
	}
}

.tvm-slider:hover .tvm-slider__control,
.tvm-slider:focus-within .tvm-slider__control,
.tvm-slider:focus-within .tvm-slider__toggle,
.tvm-slider:hover .tvm-slider__toggle,
.tvm-slider__control:focus-visible,
.tvm-slider__toggle:focus-visible {
	opacity: 1;
}

.tvm-slider__control:hover,
.tvm-slider__toggle:hover {
	background: var(--tvm-tab-active);
}

.tvm-slider__control:focus-visible,
.tvm-slider__toggle:focus-visible,
.tvm-slider__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.tvm-slider__control {
	top: 50%;
	width: 38px;
	height: 38px;
	transform: translateY(-50%);
}

.tvm-slider__control--prev { left: 10px; }
.tvm-slider__control--next { right: 10px; }

.tvm-slider__toggle {
	right: 10px;
	bottom: 8px;
	width: 30px;
	height: 30px;
}

.tvm-slider__toggle svg {
	width: 14px;
	height: 14px;
}

.tvm-slider__toggle .icon-play,
.tvm-slider__toggle.is-paused .icon-pause {
	display: none;
}

.tvm-slider__toggle.is-paused .icon-play {
	display: block;
}

.tvm-slider__dots {
	position: absolute;
	bottom: 8px;
	left: 50%;
	z-index: 3;
	gap: 2px;
	transform: translateX(-50%);
}

.tvm-slider__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.tvm-slider__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	transform: translate(-50%, -50%);
}

.tvm-slider__dot[aria-current="true"]::before {
	background: #fff;
}

/* Admin-only reminder shown in place of an under-filled slider. */
.tvm-admin-notice {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
	font-size: 13px;
}

.tvm-admin-notice p {
	margin: 0;
}

.tvm-admin-notice__note {
	margin-top: 4px !important;
	color: var(--tvm-muted);
	font-size: 12px;
}

/* 8. Content ------------------------------------------------------------ */

.page-header {
	margin-bottom: 12px;
}

.page-title,
.entry-title {
	margin: 0;
	font-size: 22px;
}

.archive-description {
	margin-top: 6px;
	color: var(--tvm-muted);
}

.search-query {
	color: var(--tvm-link);
}

.entry {
	margin-bottom: 32px;
}

.entry--summary {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--tvm-line);
}

.entry--summary:last-of-type {
	border-bottom: 0;
}

.entry--summary .entry-title {
	font-size: 19px;
}

.entry-title a {
	color: var(--tvm-heading);
	text-decoration: none;
}

.entry-title a:hover {
	text-decoration: underline;
}

.sticky .entry-title::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 8px;
	vertical-align: middle;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 7px solid var(--tvm-tab-active);
}

.entry-meta,
.entry-footer {
	color: var(--tvm-muted);
	font-size: 12px;
}

.entry-meta {
	margin-top: 4px;
}

.entry-meta > span + span::before,
.entry-footer > span + span::before {
	content: "|";
	margin: 0 0.5em;
	opacity: 0.5;
}

.entry-footer {
	margin-top: 12px;
}

.entry-footer .more-link {
	display: inline-block;
	margin-right: 1em;
	font-weight: 700;
}

.updated:not(.published) {
	display: none;
}

.post-thumbnail {
	display: block;
	margin: 14px 0;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

.entry-content {
	margin-top: 12px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

/* Blue bulleted lists, as in the design. */
.entry-content ul {
	padding-left: 34px;
	color: var(--tvm-list);
	list-style: disc;
}

.entry-content ol {
	padding-left: 34px;
	color: var(--tvm-list);
}

.entry-content li {
	margin: 0.2em 0;
}

.entry-content li strong {
	color: var(--tvm-heading);
}

.entry-content strong {
	color: #222;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.page-links {
	clear: both;
	margin: 1.5em 0;
	font-weight: 700;
}

.page-links a,
.page-links > .post-page-numbers {
	display: inline-block;
	min-width: 2em;
	margin-left: 0.25em;
	text-align: center;
}

.post-navigation {
	margin: 24px 0;
	padding: 14px 0;
	border-top: 1px solid var(--tvm-line);
	border-bottom: 1px solid var(--tvm-line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-navigation a {
	text-decoration: none;
}

.nav-subtitle {
	display: block;
	color: var(--tvm-muted);
	font-size: 12px;
}

.nav-title {
	color: var(--tvm-heading);
	font-family: var(--tvm-font-heading);
	font-weight: 700;
}

/* 404 page reuses the News widget; show it in the blue style. */
.error-404 .widget {
	margin-top: 24px;
	max-width: 320px;
}

/* 9. Blocks & media ----------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.3em 1.25em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.25em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

/* The content column is fixed-width; wide and full blocks use its full 725px. */
.alignwide,
.alignfull {
	width: 100%;
	max-width: 100%;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	margin-top: 0.4em;
	color: var(--tvm-muted);
	font-size: 12px;
	text-align: center;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
	gap: 8px;
}

.gallery-columns-2 { --gallery-columns: 2; }
.gallery-columns-4 { --gallery-columns: 4; }

.gallery-item {
	margin: 0;
}

.wp-block-button__link {
	background: var(--tvm-widget);
	color: #fff;
}

.wp-block-pullquote {
	border-top: 3px solid var(--tvm-widget);
	border-bottom: 3px solid var(--tvm-widget);
}

embed,
iframe,
object {
	max-width: 100%;
}

/* 10. Comments ---------------------------------------------------------- */

.comments-area {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--tvm-line);
}

.comments-title,
.comment-reply-title {
	margin-top: 0;
	font-size: 19px;
}

.comment-list,
.comment-list .children {
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 20px;
	padding-left: 14px;
	border-left: 2px solid var(--tvm-line);
}

.comment-body {
	margin-bottom: 20px;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: 12px;
}

.comment-author .avatar {
	float: left;
	margin-right: 10px;
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata,
.comment-metadata a {
	color: var(--tvm-muted);
}

.comment-content {
	clear: both;
	margin-top: 6px;
}

.reply {
	font-size: 12px;
	font-weight: 700;
}

.bypostauthor > .comment-body .fn::after {
	content: " \2605";
	color: var(--tvm-tab-active);
}

.comment-form label {
	display: block;
	margin-bottom: 3px;
	font-weight: 700;
	font-size: 13px;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

/* 11. Forms & pagination ------------------------------------------------ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid #8fb3d6;
	border-radius: 3px;
	background: #fff;
	color: var(--tvm-text);
	font: inherit;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--tvm-widget);
	outline-offset: 0;
}

button,
input[type="submit"],
.search-submit {
	padding: 7px 16px;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(to bottom, #bf3000, var(--tvm-tab-active) 45%, #e04a12);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.search-submit:hover {
	background: #b02d00;
}

/* The menu and slider buttons keep their own styles. */
.main-navigation button,
.tvm-slider button {
	text-shadow: none;
}

.search-form {
	display: flex;
	gap: 6px;
	margin-bottom: 1.1em;
}

.search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
}

.widget .search-form {
	margin-bottom: 0;
}

.pagination,
.comments-pagination {
	margin-top: 24px;
}

.pagination .nav-links,
.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.page-numbers {
	display: inline-block;
	min-width: 34px;
	padding: 5px 10px;
	border: 1px solid #8fb3d6;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.55);
	text-align: center;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--tvm-widget-edge);
	background: var(--tvm-widget);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* 12. Footer ------------------------------------------------------------ */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 20px;
	margin: 12px 0 24px;
	padding: 12px 20px;
	background: var(--tvm-footer);
	border-radius: var(--tvm-radius);
	box-shadow: 0 2px 8px rgba(0, 40, 90, 0.3);
	color: #222;
	font-size: 11px;
}

.site-footer a {
	color: var(--tvm-link);
}

.site-info .copyright {
	margin: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

/* 13. Responsive -------------------------------------------------------- */

/* Tablet / mobile: columns stack; order set in Customizer > Layout. */
@media (max-width: 767.98px) {
	/*
	 * Single column. The logo always comes first; the widgets go below the
	 * content or above it (Customizer > Layout).
	 */
	.site-content {
		display: flex;
		flex-direction: column;
		gap: var(--tvm-stack-gap);
		align-items: stretch;
		min-height: 0;
		border-radius: 0;
	}

	.site-sidebar {
		display: contents;
	}

	.site-sidebar .site-branding {
		order: -2;
	}

	.site-main {
		order: 0;
	}

	.site-sidebar > .widget {
		order: 1;
	}

	.tvm-sidebar-mobile-above .site-sidebar > .widget {
		order: -1;
	}

	.site-sidebar .site-branding {
		text-align: center;
	}

	.site-logo img,
	.custom-logo {
		margin: 0 auto;
	}

	/* Hamburger menu. */
	.site-header {
		padding: 0;
		clip-path: none;
	}

	.menu-toggle {
		display: flex;
		border-radius: 0;
	}

	.main-navigation .menu {
		display: none;
		flex-direction: column;
		gap: 0;
		background: #262626;
	}

	.main-navigation.is-toggled .menu,
	.no-js .main-navigation .menu {
		display: flex;
	}

	.no-js .menu-toggle {
		display: none;
	}

	.main-navigation .menu > li {
		border-radius: 0;
		box-shadow: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.main-navigation a {
		padding: 12px 16px;
		text-align: left;
		white-space: normal;
	}

	.main-navigation .menu ul {
		display: none;
		flex-basis: 100%;
		background: rgba(255, 255, 255, 0.06);
	}

	.main-navigation li.is-open > ul,
	.no-js .main-navigation .menu ul {
		display: block;
	}

	.main-navigation ul ul a {
		padding-left: 32px;
		font-weight: 400;
	}

	.main-navigation ul ul ul a {
		padding-left: 48px;
	}

	.submenu-toggle {
		min-width: 48px;
		margin-left: 0;
		padding: 0;
	}

	.tvm-slider {
		margin-bottom: 24px;
	}

	.tvm-slider__caption {
		padding: 20px 14px 30px;
		font-size: 14px;
	}

	.tvm-slider__control {
		width: 34px;
		height: 34px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 1;
	}

	.alignleft,
	.alignright {
		float: none;
		margin-right: 0;
		margin-left: 0;
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 0;
		border-radius: 0;
	}
}

/* 14. Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}
