/*
Theme Name: Thirstier Theme
Theme URI: https://thirstier.news/
Author: Immix Tachyon Synergy Network LLC
Author URI: https://its.network/
Description: An original, private WordPress news theme created for the Thirstier website network. It uses a dark panel design, responsive news layouts, accessible controls, and independently configurable colors.
Version: 0.3.7
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: thirstier-theme
Tags: news, blog, custom-colors, custom-header, custom-logo, custom-menu, featured-images, right-sidebar, accessibility-ready
*/

/*
 * Thirstier branding and original media are not granted under this PHP theme's
 * GPL license. See BRAND-ASSET-NOTICE.md. No third-party theme stylesheet was
 * used as the basis for this file.
 */

:root {
	--thirstier-canvas: #060817;
	--thirstier-site-shell: #0a1026;
	--thirstier-panel: #111d3d;
	--thirstier-panel-alternate: #0d1733;
	--thirstier-header-footer: #090317;
	--thirstier-input-background: #0b1631;
	--thirstier-border-primary: #8cebf2;
	--thirstier-border-secondary: #2e9fd0;
	--thirstier-border-subtle: #244b78;
	--thirstier-focus: #ffd166;
	--thirstier-text: #63bdf1;
	--thirstier-heading: #d39a75;
	--thirstier-link: #48aaf5;
	--thirstier-muted: #829ec2;
	--thirstier-accent: #e28a2c;
	--thirstier-active: #f2534b;
	--thirstier-button-text: #f2a23b;
	--thirstier-radius-small: 0.5rem;
	--thirstier-radius: 0.8rem;
	--thirstier-radius-large: 1.05rem;
	--thirstier-shadow: 0 0 0 1px color-mix(in srgb, var(--thirstier-border-primary) 25%, transparent), 0 0.55rem 1.6rem rgb(0 0 0 / 28%);
	--thirstier-width: 1440px;
	--thirstier-reading-width: 76ch;
	--thirstier-space-1: 0.35rem;
	--thirstier-space-2: 0.65rem;
	--thirstier-space-3: 1rem;
	--thirstier-space-4: 1.5rem;
	--thirstier-space-5: 2.25rem;
}

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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--thirstier-canvas);
	color: var(--thirstier-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
}

body.admin-bar .site-header {
	--wp-admin-bar-offset: 32px;
}

a {
	color: var(--thirstier-link);
	text-decoration-color: color-mix(in srgb, currentColor 48%, transparent);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--thirstier-border-primary);
	text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--thirstier-focus);
	outline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--thirstier-border-subtle);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var(--thirstier-heading);
	font-family: Georgia, "Times New Roman", ui-serif, serif;
	line-height: 1.18;
	text-wrap: balance;
}

p,
ul,
ol {
	margin-top: 0;
}

input,
button,
select,
textarea {
	font: inherit;
}

input,
select,
textarea {
	max-width: 100%;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: var(--thirstier-radius-small);
	background: var(--thirstier-input-background);
	color: var(--thirstier-text);
	padding: 0.7rem 0.8rem;
}

textarea {
	width: 100%;
}

button,
.button,
.button-link,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid var(--thirstier-border-primary);
	border-radius: var(--thirstier-radius-small);
	background: var(--thirstier-panel-alternate);
	color: var(--thirstier-button-text);
	cursor: pointer;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.7rem 1rem;
	text-decoration: none;
}

button:hover,
.button:hover,
.button-link:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--thirstier-border-subtle);
	color: var(--thirstier-border-primary);
}

blockquote {
	margin: var(--thirstier-space-4) 0;
	border-left: 4px solid var(--thirstier-accent);
	background: var(--thirstier-panel-alternate);
	padding: var(--thirstier-space-3) var(--thirstier-space-4);
}

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

th,
td {
	border: 1px solid var(--thirstier-border-subtle);
	padding: 0.65rem;
	text-align: left;
}

th {
	background: var(--thirstier-panel-alternate);
	color: var(--thirstier-heading);
}

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

.screen-reader-text:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	clip: auto;
	background: var(--thirstier-header-footer);
	color: var(--thirstier-focus);
	font-weight: 700;
	padding: 0.8rem 1rem;
}

.site {
	min-height: 100vh;
	background-color: var(--thirstier-site-shell);
	background-image:
		linear-gradient(rgb(6 8 23 / 76%), rgb(10 16 38 / 84%)),
		url("assets/images/thirstier-ocean-background.png");
	background-position: center top;
	background-size: cover;
	background-attachment: fixed;
}

.site-width {
	width: min(calc(100% - 2rem), var(--thirstier-width));
	margin-inline: auto;
}

.panel {
	border: 1px solid var(--thirstier-border-primary);
	border-radius: var(--thirstier-radius);
	background: var(--thirstier-panel);
	box-shadow: var(--thirstier-shadow);
}

.utility-bar {
	border-bottom: 1px solid var(--thirstier-border-secondary);
	background: var(--thirstier-header-footer);
	color: var(--thirstier-muted);
	font-size: 0.85rem;
}

.utility-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 2.2rem;
	gap: var(--thirstier-space-3);
}

.utility-identity {
	display: flex;
	align-items: center;
	gap: var(--thirstier-space-3);
}

.utility-site-name {
	color: inherit;
	font: inherit;
}

.utility-home {
	color: var(--thirstier-button-text);
	font-weight: 700;
}

.masthead-panel {
	margin-top: var(--thirstier-space-3);
	overflow: hidden;
	background: var(--thirstier-header-footer);
}

.masthead-image-link {
	display: block;
	aspect-ratio: 19 / 6;
	background: var(--thirstier-header-footer);
}

.masthead-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
}

.site-branding {
	display: grid;
	place-items: center;
	min-height: 13rem;
	padding: var(--thirstier-space-5);
	text-align: center;
}

.site-title {
	margin-bottom: 0.35rem;
	font-size: clamp(2.1rem, 6vw, 4.6rem);
}

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

.site-description {
	margin: 0;
	color: var(--thirstier-muted);
	font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.primary-navigation {
	margin-top: var(--thirstier-space-3);
}

.navigation-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--thirstier-space-3);
	padding: 0.45rem 0.65rem;
	background: var(--thirstier-header-footer);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.45rem;
}

.primary-menu-container {
	min-width: 0;
}

.primary-menu,
.primary-menu-container .menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* wp_page_menu() wraps its list inside a .primary-menu div. */
.primary-menu > ul {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	direction: rtl;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > ul > li {
	display: flex;
	align-items: center;
}

.primary-menu > ul > li + li::before {
	content: "|";
	color: var(--thirstier-accent-warm);
	padding: 0 0.2rem;
}

.primary-menu > ul > li > a {
	direction: ltr;
	padding: 0.38rem 0.48rem;
	font-size: 0.9rem;
}

.primary-menu li,
.primary-menu-container .menu li {
	position: relative;
}

.primary-menu a,
.primary-menu-container .menu a {
	display: block;
	border: 1px solid transparent;
	border-radius: var(--thirstier-radius-small);
	color: var(--thirstier-link);
	font-weight: 700;
	padding: 0.55rem 0.72rem;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu-container .menu a:hover,
.primary-menu-container .menu .current_page_item > a {
	border-color: var(--thirstier-border-secondary);
	background: var(--thirstier-panel);
	color: var(--thirstier-button-text);
}

.primary-menu .sub-menu,
.primary-menu-container .menu .children {
	position: absolute;
	z-index: 50;
	top: 100%;
	left: 0;
	display: none;
	min-width: 15rem;
	margin: 0;
	border: 1px solid var(--thirstier-border-primary);
	border-radius: var(--thirstier-radius-small);
	background: var(--thirstier-header-footer);
	box-shadow: var(--thirstier-shadow);
	padding: 0.4rem;
	list-style: none;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu-container .menu li:hover > .children,
.primary-menu-container .menu li:focus-within > .children {
	display: block;
}

.header-search {
	flex: 0 1 24rem;
}

.search-form {
	display: flex;
	align-items: stretch;
	gap: 0.4rem;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	height: 100%;
}

.search-submit {
	flex: 0 0 auto;
}

.popular-tags {
	display: flex;
	align-items: center;
	gap: var(--thirstier-space-3);
	margin-top: var(--thirstier-space-3);
	padding: 0.65rem 0.9rem;
	overflow: hidden;
}

.popular-tags > strong {
	flex: 0 0 auto;
	color: var(--thirstier-heading);
}

.popular-tags ul {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.popular-tags a,
.category-chip {
	display: inline-block;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: 999px;
	background: var(--thirstier-panel-alternate);
	color: var(--thirstier-link);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	padding: 0.3rem 0.58rem;
	text-decoration: none;
	white-space: nowrap;
}

.popular-tags a:hover,
.category-chip:hover {
	border-color: var(--thirstier-border-primary);
	color: var(--thirstier-button-text);
}

.site-main {
	padding-block: var(--thirstier-space-4) var(--thirstier-space-5);
}

.homepage-sections {
	display: flex;
	flex-direction: column;
}

.homepage-sections > .home-order-1 {
	order: 1;
}

.homepage-sections > .home-order-2 {
	order: 2;
}

.homepage-sections > .home-order-3 {
	order: 3;
}

.homepage-sections > .home-order-4 {
	order: 4;
}

.section-title {
	display: flex;
	align-items: center;
	gap: var(--thirstier-space-3);
	margin: 0 0 var(--thirstier-space-3);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.section-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--thirstier-border-secondary), transparent);
}

.section-title span {
	position: relative;
	display: inline-block;
	border: 1px solid var(--thirstier-border-primary);
	border-bottom: 3px solid var(--thirstier-accent);
	border-radius: var(--thirstier-radius-small) var(--thirstier-radius-small) 0 0;
	background: var(--thirstier-panel-alternate);
	box-shadow: 0 0.3rem 0.9rem rgb(0 0 0 / 24%);
	padding: 0.42rem 0.85rem 0.34rem;
}

.exclusive-strip {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: var(--thirstier-space-4);
	margin-bottom: var(--thirstier-space-4);
	padding: var(--thirstier-space-3);
}

.exclusive-strip .section-title {
	margin: 0;
	font-size: 1.15rem;
}

.exclusive-strip .section-title::after {
	display: none;
}

.exclusive-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: exclusive;
}

.exclusive-list li {
	position: relative;
	min-width: 0;
	border-left: 1px solid var(--thirstier-border-subtle);
	padding: 0.2rem 0.65rem 0.2rem 2.4rem;
	counter-increment: exclusive;
}

.exclusive-list li::before {
	content: counter(exclusive);
	position: absolute;
	top: 0.2rem;
	left: 0.6rem;
	display: grid;
	place-items: center;
	width: 1.4rem;
	height: 1.4rem;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: 50%;
	color: var(--thirstier-accent);
	font-size: 0.72rem;
	font-weight: 800;
}

.exclusive-list a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.news-ticker {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	margin-bottom: var(--thirstier-space-4);
	overflow: hidden;
}

.news-ticker .section-title {
	display: grid;
	place-items: center;
	min-width: 8.5rem;
	margin: 0;
	background: var(--thirstier-active);
	color: var(--thirstier-header-footer);
	font-size: 0.9rem;
	text-align: center;
	text-transform: uppercase;
}

.news-ticker .section-title::after {
	display: none;
}

.news-ticker .section-title span {
	border: 0;
	padding: 0.7rem 1rem;
}

.ticker-window {
	min-width: 0;
	overflow: hidden;
}

.ticker-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ticker;
}

.ticker-list li {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	border-left: 1px solid var(--thirstier-border-subtle);
	padding: 0.6rem 0.8rem 0.6rem 2.7rem;
	counter-increment: ticker;
}

.ticker-list li:nth-child(n + 4) {
	display: none;
}

.ticker-list li::before {
	content: counter(ticker);
	position: absolute;
	left: 0.7rem;
	display: grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: 50%;
	color: var(--thirstier-button-text);
	font-size: 0.72rem;
	font-weight: 800;
}

.ticker-list a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	font-size: 0.86rem;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none;
}

.featured-news {
	margin-bottom: var(--thirstier-space-5);
}

.featured-news-grid {
	display: grid;
	grid-template-columns: minmax(14rem, 0.88fr) minmax(24rem, 1.42fr) minmax(17rem, 1.05fr);
	align-items: stretch;
	gap: var(--thirstier-space-3);
}

.featured-ranked,
.featured-lead,
.featured-tabs {
	min-width: 0;
	overflow: hidden;
}

.featured-ranked-list,
.featured-tab-stories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.featured-ranked-list {
	counter-reset: featured-rank;
}

.featured-ranked-list > li {
	counter-increment: featured-rank;
}

.featured-ranked-list > li + li,
.featured-tab-stories > li + li {
	border-top: 1px solid var(--thirstier-border-subtle);
}

.featured-ranked-story {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem;
	min-height: 6.7rem;
	padding: 0.75rem;
}

.featured-rank::before {
	content: counter(featured-rank);
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 0.2rem;
	background: var(--thirstier-accent);
	color: var(--thirstier-header-footer);
	font-weight: 900;
}

.featured-ranked-content,
.featured-tab-content {
	min-width: 0;
}

.featured-ranked .category-chip,
.featured-tabs .category-chip {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	font-size: 0.7rem;
}

.featured-ranked .entry-title,
.featured-tabs .entry-title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0.25rem 0 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 0.9rem;
	line-height: 1.35;
}

.featured-lead {
	display: flex;
	flex-direction: column;
}

.featured-lead-media {
	display: block;
	min-height: 20rem;
	flex: 1 1 auto;
	overflow: hidden;
	background: var(--thirstier-panel-alternate);
}

.featured-lead-media img,
.featured-tab-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.featured-lead:hover .featured-lead-media img,
.featured-tab-story:hover .featured-tab-media img {
	transform: scale(1.025);
}

.featured-lead-content {
	padding: var(--thirstier-space-3);
}

.featured-lead .entry-title {
	margin: 0.45rem 0;
	font-size: clamp(1.35rem, 2.3vw, 2.15rem);
	line-height: 1.2;
}

.featured-tab-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-tab-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 0;
	border: 0;
	border-bottom: 1px solid var(--thirstier-border-subtle);
	border-radius: 0;
	background: var(--thirstier-panel-alternate);
	color: var(--thirstier-heading);
	padding: 0.8rem 0.45rem;
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
}

.featured-tab-button + .featured-tab-button {
	border-left: 1px solid var(--thirstier-border-subtle);
}

.featured-tab-button.is-active,
.featured-tab-button[aria-selected="true"] {
	border-bottom-color: var(--thirstier-accent);
	background: var(--thirstier-accent);
	color: var(--thirstier-header-footer);
}

.featured-tab-button:focus-visible {
	position: relative;
	z-index: 1;
}

.featured-tab-panel[hidden] {
	display: none;
}

.featured-tab-story {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	align-items: stretch;
	min-height: 6.7rem;
}

.featured-tab-media {
	display: block;
	min-height: 6.7rem;
	overflow: hidden;
	background: var(--thirstier-panel-alternate);
}

.featured-tab-content {
	align-self: center;
	padding: 0.65rem 0.75rem;
}

.hero-section {
	margin-bottom: var(--thirstier-space-5);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	gap: var(--thirstier-space-3);
}

.hero-card,
.news-card {
	position: relative;
	overflow: hidden;
}

.hero-card--lead {
	grid-row: span 2;
}

.card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--thirstier-panel-alternate);
}

.hero-card--lead .card-media {
	height: 100%;
	min-height: 31rem;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.hero-card:hover .card-media img,
.news-card:hover .card-media img {
	transform: scale(1.025);
}

.image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--thirstier-border-secondary) 48%, transparent), transparent 26%),
		linear-gradient(135deg, var(--thirstier-panel-alternate), var(--thirstier-header-footer));
}

.hero-card__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(transparent, color-mix(in srgb, var(--thirstier-header-footer) 94%, transparent) 34%);
	padding: 5.5rem var(--thirstier-space-3) var(--thirstier-space-3);
}

.hero-card .entry-title,
.news-card .entry-title,
.post-list-item .entry-title {
	margin: 0.45rem 0;
}

.hero-card .entry-title {
	font-size: clamp(1.02rem, 1.7vw, 1.4rem);
}

.hero-card--lead .entry-title {
	font-size: clamp(1.55rem, 3vw, 2.6rem);
}

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

.entry-title a:hover {
	color: var(--thirstier-border-primary);
}

.entry-meta,
.single-meta {
	color: var(--thirstier-muted);
	font-size: 0.8rem;
}

.content-sidebar-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
	align-items: start;
	gap: var(--thirstier-space-4);
}

.home-content-column,
.archive-content,
.singular-content {
	min-width: 0;
}

.editors-picks,
.latest-news {
	margin-bottom: var(--thirstier-space-5);
}

.editors-picks--bottom {
	margin-top: var(--thirstier-space-5);
}

.card-grid {
	display: grid;
	gap: var(--thirstier-space-3);
}

.card-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card__content {
	padding: var(--thirstier-space-3);
}

.related-category-posts {
	margin-top: var(--thirstier-space-5);
}

.related-category-grid {
	margin-top: var(--thirstier-space-3);
}

.related-category-item[hidden] {
	display: none;
}

.related-category-item .news-card {
	height: 100%;
}

.news-card .entry-title {
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.post-list {
	display: grid;
	gap: var(--thirstier-space-3);
}

.post-list-item {
	display: grid;
	grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
	overflow: hidden;
}

.post-list-item__media {
	min-height: 12rem;
	background: var(--thirstier-panel-alternate);
}

.post-list-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-list-item__content {
	padding: var(--thirstier-space-3) var(--thirstier-space-4);
}

.post-list-item .entry-title {
	font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.entry-summary {
	color: var(--thirstier-text);
	font-size: 0.95rem;
}

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

.widget-area {
	position: sticky;
	top: calc(var(--wp-admin-bar-offset, 0px) + 1rem);
	display: grid;
	gap: var(--thirstier-space-3);
}

.widget {
	padding: var(--thirstier-space-3);
	overflow-wrap: anywhere;
}

.widget-title {
	margin-bottom: var(--thirstier-space-3);
	border: 1px solid var(--thirstier-border-secondary);
	border-bottom: 3px solid var(--thirstier-accent);
	border-radius: var(--thirstier-radius-small) var(--thirstier-radius-small) 0 0;
	background: var(--thirstier-panel-alternate);
	font-size: 1.25rem;
	padding: 0.42rem 0.65rem 0.34rem;
}

.widget-disclosure > summary.widget-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--thirstier-space-2);
	margin: 0;
	color: var(--thirstier-heading);
	list-style: none;
	cursor: pointer;
}

.widget-disclosure > summary.widget-title::-webkit-details-marker {
	display: none;
}

.widget-disclosure > summary.widget-title::after {
	content: "▾";
	display: inline-grid;
	place-items: center;
	width: 1.65rem;
	height: 1.65rem;
	flex: 0 0 auto;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: 50%;
	color: var(--thirstier-button-text);
	font-size: 0.8rem;
	transition: transform 160ms ease;
}

.widget-disclosure[open] > summary.widget-title {
	margin-bottom: var(--thirstier-space-3);
}

.widget-disclosure[open] > summary.widget-title::after {
	transform: rotate(180deg);
}

.widget-disclosure > summary.widget-title:focus-visible {
	border-radius: var(--thirstier-radius-small);
	outline: 3px solid var(--thirstier-focus);
	outline-offset: 4px;
}

.widget ul {
	margin: 0;
	padding-left: 1.15rem;
}

.widget .category-tree,
.widget .category-tree__children {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.widget .category-tree__children {
	margin-top: 0.55rem;
	margin-left: 0.45rem;
	border-left: 1px solid var(--thirstier-border-subtle);
	padding-left: 0.85rem;
}

.widget .category-tree__children[hidden] {
	display: none;
}

.category-tree__heading {
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
}

.category-tree__heading > a,
.category-tree__group-label {
	min-width: 0;
	font-weight: 700;
}

.category-tree__count {
	color: var(--thirstier-muted);
}

.category-tree__toggle {
	display: inline-grid;
	place-items: center;
	width: 1.65rem;
	height: 1.65rem;
	margin-left: auto;
	flex: 0 0 auto;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: 50%;
	background: var(--thirstier-panel-alternate);
	color: var(--thirstier-button-text);
	cursor: pointer;
	transition: transform 160ms ease;
}

.category-tree__toggle[aria-expanded="true"] {
	transform: rotate(180deg);
}

.category-tree__toggle:focus-visible {
	outline: 3px solid var(--thirstier-focus);
	outline-offset: 3px;
}

.widget li + li {
	margin-top: 0.55rem;
}

.archive-header,
.no-results,
.error-404 {
	margin-bottom: var(--thirstier-space-4);
	padding: var(--thirstier-space-4);
}

.archive-title,
.page-title {
	margin-bottom: 0.4rem;
	font-size: clamp(1.7rem, 3.5vw, 2.7rem);
}

.archive-description > :last-child {
	margin-bottom: 0;
}

.single-entry,
.page-entry {
	overflow: hidden;
	padding: clamp(1rem, 3vw, 2.4rem);
}

.single-entry > .entry-header,
.page-entry > .entry-header,
.single-entry > .entry-content,
.page-entry > .entry-content,
.single-entry > .entry-footer {
	width: min(100%, var(--thirstier-reading-width));
	margin-inline: auto;
}

.single-entry .entry-title,
.page-entry .entry-title {
	margin: 0.55rem 0;
	font-size: clamp(2rem, 5vw, 3.8rem);
}

.single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.single-featured-image {
	width: min(100%, 80rem);
	margin: var(--thirstier-space-4) auto;
	overflow: hidden;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: var(--thirstier-radius);
}

.single-featured-image img {
	width: 100%;
}

.entry-content {
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	overflow-wrap: break-word;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content a {
	word-break: break-word;
}

.entry-content .alignwide {
	width: min(100vw - 4rem, 1040px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: min(100vw - 2rem, var(--thirstier-width));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
}

.entry-footer {
	margin-top: var(--thirstier-space-4);
	border-top: 1px solid var(--thirstier-border-subtle);
	color: var(--thirstier-muted);
	font-size: 0.9rem;
	padding-top: var(--thirstier-space-3);
}

.entry-footer > * + * {
	margin-top: 0.45rem;
}

.post-navigation,
.posts-navigation,
.pagination {
	margin-top: var(--thirstier-space-4);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--thirstier-space-3);
}

.post-navigation a {
	display: block;
	height: 100%;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: var(--thirstier-radius);
	background: var(--thirstier-panel);
	padding: var(--thirstier-space-3);
	text-decoration: none;
}

.nav-subtitle {
	display: block;
	color: var(--thirstier-muted);
	font-size: 0.8rem;
	text-transform: uppercase;
}

.nav-title {
	display: block;
	margin-top: 0.3rem;
	color: var(--thirstier-heading);
	font-family: Georgia, "Times New Roman", ui-serif, serif;
	font-weight: 700;
}

.pagination {
	display: flex;
	justify-content: center;
}

.pagination .nav-links,
.pagination > ul.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.3rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 0.35rem;
	list-style: none;
	border: 1px solid var(--thirstier-border-primary);
	border-radius: var(--thirstier-radius-small);
	background: var(--thirstier-panel-alternate);
}

.pagination > ul.page-numbers > li {
	margin: 0;
	list-style: none;
}

.pagination .nav-links > .page-numbers,
.pagination > ul.page-numbers > li > .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.15rem;
	height: 2.15rem;
	border: 1px solid var(--thirstier-border-secondary);
	border-radius: var(--thirstier-radius-small);
	background: var(--thirstier-panel);
	font-weight: 700;
	line-height: 1;
	padding: 0 0.4rem;
	text-decoration: none;
}

.pagination .dots {
	min-width: 1.35rem;
	border-color: transparent;
	background: transparent;
	padding-inline: 0.1rem;
}

.pagination .current {
	border-color: var(--thirstier-border-primary);
	color: var(--thirstier-button-text);
}

.comments-area {
	margin-top: var(--thirstier-space-4);
	padding: var(--thirstier-space-4);
}

.comment-list {
	padding-left: 1.4rem;
}

.comment-body {
	margin-bottom: var(--thirstier-space-3);
	border-bottom: 1px solid var(--thirstier-border-subtle);
	padding-bottom: var(--thirstier-space-3);
}

.comment-form label {
	display: block;
	color: var(--thirstier-heading);
	font-weight: 700;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]) {
	width: min(100%, 32rem);
}

.error-404 {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--thirstier-active);
	font-size: clamp(4rem, 18vw, 10rem);
	font-weight: 900;
	line-height: 0.9;
}

.error-404 .search-form {
	max-width: 38rem;
	margin: var(--thirstier-space-4) auto;
}

.site-footer {
	border-top: 1px solid var(--thirstier-border-secondary);
	background: var(--thirstier-header-footer);
	padding-block: var(--thirstier-space-4);
}

.footer-panel {
	padding: var(--thirstier-space-4);
	text-align: center;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--thirstier-space-3);
	margin-bottom: var(--thirstier-space-4);
	text-align: left;
}

.footer-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--thirstier-space-3);
	margin: 0 0 var(--thirstier-space-3);
	padding: 0;
	list-style: none;
}

.relationship-statement {
	margin-bottom: 0.35rem;
	color: var(--thirstier-heading);
	font-weight: 700;
}

.site-info {
	margin: 0;
	color: var(--thirstier-muted);
	font-size: 0.85rem;
}

.wp-caption,
.gallery-caption {
	color: var(--thirstier-muted);
	font-size: 0.85rem;
}

.bypostauthor {
	border-color: var(--thirstier-accent);
}

.sticky {
	position: relative;
}

@media (max-width: 1180px) {
	.featured-news-grid {
		grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.35fr);
	}

	.featured-tabs {
		grid-column: 1 / -1;
	}

	.featured-tab-stories {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.featured-tab-stories > li:nth-child(2) {
		border-top: 0;
	}

	.featured-tab-stories > li:nth-child(even) {
		border-left: 1px solid var(--thirstier-border-subtle);
	}

	.exclusive-strip {
		grid-template-columns: 1fr;
	}

	.exclusive-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: var(--thirstier-space-3);
	}

	.hero-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-card--lead {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.hero-card--lead .card-media {
		min-height: 27rem;
	}
}

@media (max-width: 900px) {
	body.admin-bar .site-header {
		--wp-admin-bar-offset: 46px;
	}

	.navigation-panel {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.js .menu-toggle {
		display: inline-flex;
	}

	.primary-menu-container {
		order: 3;
		width: 100%;
	}

	.js .primary-navigation:not(.is-open) .primary-menu-container {
		display: none;
	}

	.primary-menu,
	.primary-menu-container .menu {
		display: block;
	}

	.primary-menu a,
	.primary-menu-container .menu a {
		border-bottom-color: var(--thirstier-border-subtle);
		border-radius: 0;
	}

	.primary-menu .sub-menu,
	.primary-menu-container .menu .children {
		position: static;
		display: block;
		min-width: 0;
		margin-left: var(--thirstier-space-3);
		border: 0;
		box-shadow: none;
	}

	.header-search {
		margin-left: auto;
	}

	.content-sidebar-grid {
		grid-template-columns: 1fr;
	}

	.featured-news-grid {
		grid-template-columns: 1fr;
	}

	.featured-tabs {
		grid-column: auto;
	}

	.widget-area {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	:root {
		--thirstier-space-4: 1.1rem;
		--thirstier-space-5: 1.7rem;
	}

	.site {
		background-attachment: scroll;
	}

	.site-width {
		width: min(calc(100% - 1rem), var(--thirstier-width));
	}

	.masthead-panel,
	.primary-navigation,
	.popular-tags {
		margin-top: 0.55rem;
	}

	.navigation-panel {
		gap: 0.5rem;
	}

	.header-search {
		flex-basis: 100%;
		order: 2;
	}

	.news-ticker {
		grid-template-columns: 1fr;
	}

	.news-ticker .section-title {
		min-width: 0;
	}

	.ticker-list {
		grid-template-columns: 1fr;
	}

	.ticker-list li {
		border-top: 1px solid var(--thirstier-border-subtle);
		border-left: 0;
	}

	.ticker-list li:nth-child(n + 2) {
		display: none;
	}

	.featured-ranked-story {
		min-height: 0;
	}

	.featured-lead-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.featured-tab-stories {
		display: block;
	}

	.featured-tab-stories > li:nth-child(2) {
		border-top: 1px solid var(--thirstier-border-subtle);
	}

	.featured-tab-stories > li:nth-child(even) {
		border-left: 0;
	}

	.featured-tab-button {
		gap: 0.25rem;
		font-size: 0.76rem;
	}

	.exclusive-list {
		grid-template-columns: 1fr;
	}

	.exclusive-list li {
		border-left: 0;
		border-top: 1px solid var(--thirstier-border-subtle);
		padding-block: 0.55rem;
	}

	.hero-grid,
	.card-grid--two,
	.widget-area,
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.hero-card--lead {
		grid-column: auto;
	}

	.hero-card--lead .card-media {
		height: auto;
		min-height: 0;
	}

	.hero-card__content {
		position: static;
		background: var(--thirstier-panel);
		padding: var(--thirstier-space-3);
	}

	.post-list-item {
		grid-template-columns: 1fr;
	}

	.post-list-item__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.single-entry .entry-title,
	.page-entry .entry-title {
		font-size: clamp(1.75rem, 10vw, 2.7rem);
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		width: 100%;
		margin-left: 0;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.utility-bar,
	.primary-navigation,
	.popular-tags,
	.exclusive-strip,
	.widget-area,
	.site-footer,
	.post-navigation,
	.comments-area {
		display: none !important;
	}

	body,
	.site,
	.panel {
		background: #ffffff !important;
		color: #000000 !important;
		box-shadow: none !important;
	}

	a,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		color: #000000 !important;
	}

	.content-sidebar-grid {
		display: block;
	}
}
