.tribune-header__tools,
.tribune-header__quick {
	display: none;
}

@media (max-width: 767px) {
	/* One row: menu, nameplate, Subscribe, search. The nameplate sits left so
	   Subscribe fits beside search. */
	/* The nameplate starts right of the menu button and takes the width left
	   before Subscribe (88px) and search (54px), up to 150px. */
	.td-header-mobile-wrap .vc_column:has(.tdb_header_logo) {
		position: absolute !important;
		top: 0;
		/* The theme pads the column 24px; the nameplate itself starts at 64px. */
		left: 40px;
		display: flex !important;
		align-items: center;
		width: auto !important;
		height: 54px;
		margin: 0;
	}

	.td-header-mobile-wrap .tdb-logo-img {
		max-width: min(150px, calc(100vw - 64px - 54px - 88px - 14px));
		height: auto;
	}

	.td-header-mobile-wrap .tdb_header_logo .tdb-logo-a,
	.td-header-mobile-wrap .tdb_header_logo h1 {
		justify-content: flex-start;
	}

	.tribune-header__tools {
		position: absolute;
		top: 0;
		right: 54px;
		z-index: 2;
		display: flex;
		align-items: center;
		height: 54px;
	}

	.tribune-header__tools .tdm-btn,
	.tribune-header__subscribe {
		position: static;
		display: inline-flex;
		align-items: center;
		min-height: 30px;
		margin: 0;
		padding: 0 10px;
		border: 1px solid #111;
		background: #111;
		color: #fff;
		font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0;
		text-decoration: none;
		text-transform: none;
		white-space: nowrap;
	}

	/* The theme sets the button's own text in capitals with wide spacing. */
	.tribune-header__tools a *,
	.tribune-header__tools a {
		text-transform: none !important;
		letter-spacing: 0 !important;
	}

	/* A 30px button inside the 54px row; the row's height is the tap area. */
	.tribune-header__tools .tribune-header__subscribe::after,
	.tribune-header__tools .tdm-btn::after {
		content: "";
		position: absolute;
		inset: 0;
	}

	/* Section links: one line of plain links, no pills, no scrollbar. A
	   narrow phone can still swipe the line sideways. */
	.tribune-header__quick {
		display: flex;
		justify-content: space-between;
		gap: 4px;
		margin: 0;
		padding: 0 12px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		border-bottom: 1px solid #ddd;
	}

	.tribune-header__quick::-webkit-scrollbar {
		display: none;
	}

	.tribune-header__quick a {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		min-height: 44px;
		padding: 0 4px;
		color: #111;
		font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
		font-size: 15px;
		font-weight: 600;
		text-decoration: none;
	}

	.tribune-header__quick a:focus-visible {
		outline: 2px solid #0b4f8a;
		outline-offset: -4px;
	}
}

.td-mobile-main-menu .tribune-header__label {
	margin: 14px 16px 4px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	color: #d0d0d0;
	font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.td-mobile-main-menu li:has(> a[href*="/category/news/local-3/"]),
.tdb-menu li:has(> a[href*="/category/news/local-3/"]),
.td-header-menu-wrap li:has(> a[href*="/category/news/local-3/"]),
.td-footer-template-wrap li:has(> a[href*="/category/news/local-3/"]) {
	display: none;
}

.td-footer-template-wrap .td-pb-padding-side > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-top: 4px;
	padding-bottom: 4px;
}

/* The translate control, at the end of the phone menu. */
.td-mobile-main-menu .tribune-header__language {
	margin: 4px 16px 20px;
}

/* GTranslate pins its wrapper to a corner of the screen. Here it sits in the page. */
.tribune-header__language #gt_float_wrapper,
.tribune-header__language-desk #gt_float_wrapper {
	position: static !important;
}

.td-mobile-main-menu .tribune-header__language .gt_float_switcher {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	transform: none !important;
	margin: 0;
	opacity: 1 !important;
	box-shadow: none;
	border: 1px solid #ccc;
}

/* The theme hides overflow on the page wrapper, which stops a header from
   staying put. Clipping looks the same and lets it stay. */
@supports (overflow: clip) {
	body #td-outer-wrap {
		overflow: clip;
	}
}

/* The theme writes position: relative on this element's own style attribute. */
.td-header-template-wrap.tribune-header--stick {
	position: sticky !important;
	top: var(--tribune-header-stick, 0px);
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

@media (min-width: 783px) {
	.admin-bar .td-header-template-wrap.tribune-header--stick {
		top: calc(var(--tribune-header-stick, 0px) + 32px);
	}
}

@media (min-width: 768px) {
	/* One nameplate size on every page: a masthead, not a banner. */
	.td-header-desktop-wrap .tdb_header_logo .tdb-logo-img {
		width: 100%;
		max-width: 560px;
		height: auto;
	}

	/* The empty spacer row under the menu would hang below it while it stays. */
	.td-header-desktop-wrap .tdc-row:has(.tdb_header_menu) ~ .tdc-row:not(:has(.td_block_wrap)) {
		display: none;
	}

	.td-header-template-wrap {
		margin-bottom: 20px;
	}

	body.home .td-header-template-wrap {
		margin-bottom: 0;
	}

	/* Subscribe and the social icons share one line, even in the narrow tablet column. */
	.td-header-desktop-wrap .wpb_wrapper:has(> .tribune-header__subscribe-link) {
		white-space: nowrap;
	}

	/* The top bar's right side (Print edition, Magazine, Subscribe, social
	   icons) takes the width it needs; the date on the left takes the rest.
	   The theme's fixed quarter-width column ran them off a tablet screen. */
	.td-header-desktop-wrap .tdc-row:has(.tribune-header__subscribe-link) > .vc_row {
		display: flex;
		align-items: center;
	}

	.td-header-desktop-wrap .tdc-row:has(.tribune-header__subscribe-link) > .vc_row::before,
	.td-header-desktop-wrap .tdc-row:has(.tribune-header__subscribe-link) > .vc_row::after {
		content: none;
	}

	/* The theme sets each column's width in its own generated rules, so
	   these widths are marked important. */
	.td-header-desktop-wrap .tdc-row:has(.tribune-header__subscribe-link) > .vc_row > .vc_column {
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
		float: none;
	}

	.td-header-desktop-wrap .tdc-row:has(.tribune-header__subscribe-link) > .vc_row > .vc_column:has(.tribune-header__subscribe-link) {
		flex: 0 0 auto;
		max-width: none !important;
	}

	.tribune-header__bar-link,
	.tribune-header__subscribe-link {
		display: inline-flex;
		align-items: center;
		min-height: 24px;
		margin-right: 12px;
		vertical-align: middle;
		color: #111;
		font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-decoration: none;
		text-transform: uppercase;
	}

	.tribune-header__bar-link:hover,
	.tribune-header__bar-link:focus-visible,
	.tribune-header__subscribe-link:hover,
	.tribune-header__subscribe-link:focus-visible {
		color: #111;
		text-decoration: underline;
	}
}

/* Phone search button, in the nameplate row that stays on scroll. */
.tribune-header__search {
	display: none;
}

@media (max-width: 767px) {
	.tribune-header__search {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 54px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: #111;
		cursor: pointer;
	}

	.tribune-header__search:focus-visible {
		outline: 2px solid #111;
		outline-offset: -6px;
	}
}

/* The translate control in the desktop menu row, left of search. Its list
   opens downward, because the row stays at the top of the screen. */
.tribune-header__language-desk {
	display: none;
}

@media (min-width: 768px) {
	.tribune-header__language-desk {
		position: relative;
		float: right;
		display: flex;
		align-items: center;
		height: 48px;
		margin-right: 4px;
	}

	.tribune-header__language-desk .gt_float_switcher {
		position: relative;
		overflow: visible;
		background: transparent;
		box-shadow: none;
		font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
		font-size: 13px;
		line-height: 1;
		opacity: 1 !important;
	}

	.tribune-header__language-desk .gt_float_switcher img {
		width: 20px;
		margin: 0;
		border-radius: 2px;
	}

	.tribune-header__language-desk .gt_float_switcher .gt-selected {
		overflow: visible;
		background: transparent;
	}

	.tribune-header__language-desk .gt_float_switcher .gt-selected .gt-current-lang {
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 8px;
		color: #111;
		font-weight: 700;
	}

	.tribune-header__language-desk .gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code {
		top: 0;
	}

	.tribune-header__language-desk .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
		height: 12px;
		transform: rotate(0deg);
	}

	.tribune-header__language-desk .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow.gt_arrow_rotate {
		transform: rotate(-180deg);
	}

	.tribune-header__language-desk .gt_float_switcher .gt-selected:focus-visible {
		outline: 2px solid #111;
		outline-offset: 2px;
	}

	.tribune-header__language-desk .gt_float_switcher .gt_options {
		position: absolute;
		top: 100%;
		right: 0;
		z-index: 1000;
		min-width: 200px;
		max-height: none;
		overflow: visible;
		border: 1px solid rgba(0, 0, 0, 0.15);
		background: #fff;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
		font-size: 14px;
		line-height: 1.3;
		transform: none;
		transition: opacity 0.15s linear;
	}

	.tribune-header__language-desk .gt_float_switcher .gt_options a {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 9px 12px;
		color: #111;
		white-space: nowrap;
	}

	.tribune-header__language-desk .gt_float_switcher .gt_options a.gt-current {
		display: none;
	}

	.tribune-header__language-desk .gt_float_switcher .gt_options a:hover,
	.tribune-header__language-desk .gt_float_switcher .gt_options a:focus-visible {
		background: #f2f2f2;
		color: #111;
	}
}

/* Section dropdowns: a plain list of the active sub-sections. */
.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu {
	min-width: 230px;
	padding: 8px 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu:has(> li:nth-child(9)) {
	width: 460px;
	columns: 2;
	column-gap: 0;
}

.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu > li {
	break-inside: avoid;
	float: none;
	width: auto;
}

.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu > li > a {
	display: block;
	padding: 8px 18px;
	font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	color: #111;
}

.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu > li > a:hover,
.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu > li > a:focus-visible {
	background: #f2f2f2;
	color: #0b4f8a;
}

.td-header-desktop-wrap .tdb-menu > li > ul.sub-menu > li.tribune-menu-all > a {
	font-weight: 700;
}

/* Watch: Cullman Today's videos and live streams. */
.td-mobile-main-menu .tribune-menu-watch > a::before,
.td-header-desktop-wrap .tribune-menu-watch .tdb-menu-item-text::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 7px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #c8102e;
	vertical-align: 1px;
}

.td-mobile-main-menu .tribune-menu-live > a::after,
.td-header-desktop-wrap .tribune-menu-live .tdb-menu-item-text::after {
	content: "Live";
	display: inline-block;
	margin-left: 7px;
	padding: 2px 5px 1px;
	border-radius: 2px;
	background: #c8102e;
	color: #fff;
	font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	vertical-align: 2px;
}

.tribune-header__quick a[href*="/cullman-today"]::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 6px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #c8102e;
}

.td-header-desktop-wrap .tribune-menu-watch .tdb-menu-item-text {
	display: inline-flex;
	align-items: center;
}

/* Tablet and small laptop: seven sections, the language control, and search
   on one line. Up to 1140 px the page is 980 px wide, where the full spacing
   left the menu 2 px too wide: it dropped under the language control for an
   instant as the page loaded, moving everything below it. */
@media (min-width: 768px) and (max-width: 1140px) {
	.td-header-desktop-wrap .tdb-menu > li > a {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}

	.td-header-desktop-wrap .tdb-menu > li > a .tdb-menu-item-text {
		font-size: 13px;
	}

	.td-header-desktop-wrap .tdb-menu > li > a .tdb-sub-menu-icon {
		margin-left: 2px;
	}

	.td-header-desktop-wrap .tribune-header__language-desk {
		margin-right: 0;
	}

	.td-header-desktop-wrap .tribune-header__language-desk .gt_float_switcher .gt-selected .gt-current-lang {
		padding-left: 4px;
		padding-right: 4px;
	}
}
