/*
Theme Name: Debatable
Theme URI: https://podcastsoftware.co/
Description: Editorial directory theme in the Sounds Debatable style. Colors, fonts, header, homepage and footer are all set in Appearance > Customize > Theme settings. Pairs with the Podcast Software Directory plugin.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Podcast Software
Text Domain: debatable
License: GPL-2.0-or-later
*/

/* Values here are fallbacks; the Customizer prints the real ones. */
:root {
	--deb-bg: #FFFFFF;
	--deb-surface: #FAFAF8;
	--deb-ink: #17181B;
	--deb-muted: #5F636B;
	--deb-line: #E7E6E2;
	--deb-accent: #2B44E0;
	--deb-accent-ink: #FFFFFF;
	--deb-band: #F5F5F2;
	--deb-band-ink: #17181B;
	--deb-font-h: ui-serif, Georgia, serif;
	--deb-font-b: ui-sans-serif, system-ui, sans-serif;
	--deb-h-weight: 500;
	--deb-size: 17px;
	--deb-radius: 14px;
	--deb-wrap: 1200px;
	--deb-gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--deb-bg);
	color: var(--deb-ink);
	font-family: var(--deb-font-b);
	font-size: var(--deb-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deb-accent); }
:focus-visible { outline: 2px solid var(--deb-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
	font-family: var(--deb-font-h);
	font-weight: var(--deb-h-weight);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--deb-accent); }
p { margin: 0 0 1em; }

.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;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--deb-ink); color: var(--deb-bg); border-radius: 999px;
}

.wrap { width: 100%; max-width: var(--deb-wrap); margin: 0 auto; padding: 0 var(--deb-gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--deb-gutter)); }
.section-pad { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons ---------- */
.btn, .pd-button, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px;
	border: 1px solid var(--deb-ink); border-radius: 999px;
	background: var(--deb-ink); color: var(--deb-bg);
	font: 500 0.94rem/1 var(--deb-font-b); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .pd-button:hover, button[type="submit"]:hover { background: var(--deb-accent); border-color: var(--deb-accent); color: var(--deb-accent-ink); }
.btn--ghost { background: transparent; color: var(--deb-ink); border-color: var(--deb-line); }
.btn--ghost:hover { background: transparent; color: var(--deb-ink); border-color: var(--deb-ink); }
.btn--light { background: var(--deb-band-ink); color: var(--deb-band); border-color: var(--deb-band-ink); }
.btn--light:hover { background: transparent; color: var(--deb-band-ink); border-color: var(--deb-band-ink); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--deb-band); color: var(--deb-band-ink); text-align: center; font-size: 0.875rem; padding: 9px var(--deb-gutter); border-bottom: 1px solid var(--deb-line); }
.announce a { text-decoration: underline; }
.announce a:hover { color: var(--deb-band-ink); opacity: .8; }

.site-header { background: var(--deb-bg); border-bottom: 1px solid var(--deb-line); z-index: 50; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-brand { flex: none; }
.site-brand img, .custom-logo { max-height: 44px; width: auto; display: block; }
.site-brand__name { font-family: var(--deb-font-h); font-size: 1.35rem; font-weight: var(--deb-h-weight); text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.site-actions { display: flex; gap: 10px; flex: none; }
.site-actions .btn { min-height: 40px; padding: 0 16px; white-space: nowrap; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: 10px 11px; font-size: 0.94rem; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.site-nav .menu > li > a:hover { background: var(--deb-surface); color: var(--deb-ink); }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { text-decoration: underline; }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--deb-surface); border: 1px solid var(--deb-line); border-radius: var(--deb-radius);
	box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--deb-ink) 25%, transparent);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .sub-menu .sub-menu { top: -8px; left: 100%; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a:hover { background: var(--deb-bg); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--deb-line); border-radius: 999px; background: transparent; cursor: pointer; padding: 0; color: var(--deb-ink); }
.nav-toggle:hover { background: var(--deb-surface); color: var(--deb-ink); border-color: var(--deb-ink); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--deb-gutter) 24px; background: var(--deb-bg); border-bottom: 1px solid var(--deb-line); max-height: calc(100vh - 72px); overflow-y: auto; }
	.site-header { position: relative; }
	.has-sticky-header .site-header { position: sticky; }
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; min-width: 0; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-actions { flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--deb-line); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--wall .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: 0.4em; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--deb-muted); max-width: 48ch; margin-bottom: 28px; }
.hero__search { display: flex; gap: 8px; max-width: 520px; margin-bottom: 16px; padding: 6px; border: 1px solid var(--deb-line); border-radius: 999px; background: var(--deb-surface); }
.hero__search:focus-within { border-color: var(--deb-ink); }
.hero__search input[type="search"] { flex: 1; border: 0; background: transparent; min-height: 44px; padding-left: 14px; }
.hero__search input[type="search"]:focus { outline: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Logo wall: the tools themselves, as a tilted app-icon grid. */
.hero__wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); transform: rotate(-4deg); }
.hero__wall li:nth-child(3n+2) { transform: translateY(18%); }
.hero__wall a { display: block; aspect-ratio: 1; border-radius: calc(var(--deb-radius) * 1.3); overflow: hidden; background: var(--deb-surface); border: 1px solid var(--deb-line); box-shadow: 0 1px 0 var(--deb-line), 0 18px 32px -24px color-mix(in srgb, var(--deb-ink) 45%, transparent); }
.hero__wall a:hover { border-color: var(--deb-ink); }
.hero__wall img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(40px, 6vw, 72px); }
.hero__chips-label { font-size: 0.875rem; color: var(--deb-muted); margin-right: 4px; }

@media (max-width: 900px) {
	.hero--wall .hero__grid { grid-template-columns: 1fr; }
	.hero__wall { grid-template-columns: repeat(6, 1fr); transform: none; max-width: 520px; }
	.hero__wall li:nth-child(n) { transform: none; }
	.hero__wall li:nth-child(n+7) { display: none; }
}

/* ---------- Resource cards ---------- */
.res-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.res-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; text-decoration: none; background: var(--deb-surface); border: 1px solid var(--deb-line); border-radius: var(--deb-radius); }
.res-card a:hover { border-color: var(--deb-ink); color: var(--deb-ink); }
.res-card a:hover .res-card__title { text-decoration: underline; }
.res-card__title { font-family: var(--deb-font-h); font-size: 1.2rem; line-height: 1.2; }
.res-card__text { font-size: 0.9rem; color: var(--deb-muted); line-height: 1.45; }
.res-card__host { margin-top: auto; padding-top: 10px; font-size: 0.8rem; color: var(--deb-muted); }

/* ---------- Forms ---------- */
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
	width: 100%; min-height: 44px; padding: 10px 16px;
	font: inherit; color: var(--deb-ink); background: var(--deb-surface);
	border: 1px solid var(--deb-line); border-radius: 999px;
}
textarea { border-radius: var(--deb-radius); min-height: 120px; }
select { border-radius: var(--deb-radius); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--deb-ink); }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-again { margin-bottom: 40px; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(16px, 3vw, 32px); }
.page-head__title { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 20ch; }
.page-head__text { font-size: 1.125rem; color: var(--deb-muted); max-width: 60ch; }

/* ---------- Homepage blocks ---------- */
.home-block { padding: clamp(32px, 5vw, 56px) 0; }
.home-block + .home-block { border-top: 1px solid var(--deb-line); }
.home-block__title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 24px; }
.notice-inline { padding: 16px; border: 1px dashed var(--deb-line); border-radius: var(--deb-radius); color: var(--deb-muted); }

/* ---------- Directory: sections ---------- */
.pd-section { margin: 0 0 clamp(36px, 5vw, 56px); }
.pd-section[hidden] { display: none; }
.pd-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.pd-section__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.pd-section__desc { color: var(--deb-muted); margin: 6px 0 0; max-width: 60ch; }
.pd-section__more { flex: none; font-size: 0.94rem; white-space: nowrap; }

/* ---------- Directory: grids & cards ---------- */
.pd-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.pd-grid--list { grid-template-columns: 1fr; gap: 0; }
.pd-grid--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }

.pd-card {
	position: relative; display: flex; flex-direction: column; gap: 6px;
	padding: 20px; background: var(--deb-surface);
	border: 1px solid var(--deb-line); border-radius: var(--deb-radius);
}
.pd-card[hidden] { display: none; }
.pd-card:hover { border-color: color-mix(in srgb, var(--deb-ink) 35%, var(--deb-line)); }
.pd-card__logo { margin-bottom: 10px; }
.pd-card__title { font-family: var(--deb-font-b); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.005em; margin: 0; line-height: 1.3; }
.pd-card__title a { text-decoration: none; }
.pd-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.pd-card__maker, .pd-card__note, .pd-card__excerpt { margin: 0; font-size: 0.875rem; color: var(--deb-muted); line-height: 1.45; }
.pd-card__note { font-style: italic; }
.pd-card__badge { margin: 0; font-size: 0.875rem; color: var(--deb-ink); }
.pd-card__cta {
	position: relative; z-index: 1; /* above the stretched title link */
	align-self: flex-start; margin-top: auto; padding-top: 14px;
	font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em;
}
.pd-card__cta:hover { color: var(--deb-accent); }

/* Pick cards: label leads, larger. */
.pd-card--pick { padding: 24px; }
.pd-card--pick .pd-card__badge { font-family: var(--deb-font-h); font-size: 1.25rem; line-height: 1.2; margin-bottom: 4px; order: -1; }
.pd-card--pick .pd-card__logo { order: -2; }
.pd-card--pick .pd-card__title { font-size: 0.94rem; font-weight: 500; color: var(--deb-muted); }
.pd-card--pick .pd-card__body { display: flex; flex-direction: column; gap: 2px; }
.pd-card--pick .pd-card__cta { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; margin-top: 18px; border: 1px solid var(--deb-ink); border-radius: 999px; text-decoration: none; }
.pd-card--pick .pd-card__cta:hover { background: var(--deb-ink); color: var(--deb-bg); }

@media (max-width: 600px) {
	.pd-grid { grid-template-columns: 1fr; gap: 10px; }
	.pd-card:not(.pd-card--pick) { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
	.pd-card:not(.pd-card--pick) .pd-card__logo { margin: 0; grid-row: span 2; }
	.pd-card:not(.pd-card--pick) .pd-logo { width: 48px; height: 48px; }
	.pd-card:not(.pd-card--pick) .pd-card__cta { grid-column: 2; padding-top: 6px; }
}

/* List rows. */
.pd-card--list { flex-direction: row; align-items: center; gap: 16px; border-radius: 0; border-width: 0 0 1px; background: transparent; padding: 16px 0; }
.pd-card--list .pd-card__logo { margin: 0; }
.pd-card--list .pd-card__body { flex: 1; }
.pd-card--list .pd-card__cta { margin: 0; padding: 0; }

/* Compact chips. */
.pd-card--compact { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.pd-card--compact .pd-card__logo { margin: 0; }
.pd-card--compact .pd-logo { width: 36px; height: 36px; border-radius: 9px; }

.pd-logo { text-decoration: none; display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: calc(var(--deb-radius) * 0.75); overflow: hidden; background: var(--deb-bg); border: 1px solid var(--deb-line); }
.pd-logo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-logo__letter { font-family: var(--deb-font-h); font-size: 1.5rem; color: var(--deb-muted); }
.pd-logo--xs { width: 24px; height: 24px; border-radius: 6px; }
.pd-logo--xs .pd-logo__letter { font-size: 0.75rem; }
.pd-logo--xl { width: 112px; height: 112px; border-radius: calc(var(--deb-radius) * 1.4); }
.pd-logo--xl .pd-logo__letter { font-size: 3rem; }

/* ---------- Directory: filter bar ---------- */
.pd-filter { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--deb-line); }
.pd-filter__search { max-width: 420px; }
.pd-filter__chips, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
	font: 500 0.875rem/1 var(--deb-font-b); color: var(--deb-ink); text-decoration: none;
	background: transparent; border: 1px solid var(--deb-line); border-radius: 999px; cursor: pointer;
}
.pd-chip:hover { border-color: var(--deb-ink); color: var(--deb-ink); }
.pd-chip.is-active { background: var(--deb-ink); color: var(--deb-bg); border-color: var(--deb-ink); }
.pd-chip__count { color: var(--deb-muted); font-weight: 400; }
.pd-empty { padding: 24px; border: 1px dashed var(--deb-line); border-radius: var(--deb-radius); color: var(--deb-muted); }
.pd-empty[hidden] { display: none; }
.chip-row { margin-bottom: 32px; }
.tax-picks { margin-bottom: 16px; }
.other-cats { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--deb-line); }

/* ---------- Directory: category columns ---------- */
.pd-catgrid { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 40px; }
.pd-catgrid__title { font-size: 1.25rem; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--deb-ink); }
.pd-catgrid__title a { text-decoration: none; }
.pd-catgrid__list { list-style: none; margin: 0 0 12px; padding: 0; }
.pd-catgrid__list a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.94rem; text-decoration: none; }
.pd-catgrid__list a:hover { text-decoration: underline; }
.pd-catgrid__more { font-size: 0.875rem; color: var(--deb-muted); }

/* ---------- Submit form ---------- */
.pd-form { max-width: 560px; }
.pd-form label { display: block; font-weight: 500; font-size: 0.94rem; margin-bottom: 6px; }
.pd-form__hp { position: absolute; left: -9999px; }
.pd-form__notice { padding: 12px 16px; border-radius: var(--deb-radius); background: var(--deb-surface); border: 1px solid var(--deb-line); }
.pd-form__notice--ok { border-color: var(--deb-ink); }

/* ---------- Single tool: article + info box ---------- */
.tool-wrap { padding-top: clamp(28px, 4vw, 48px); }
.crumbs { font-size: 0.875rem; color: var(--deb-muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--deb-muted); }
.crumbs a:hover { color: var(--deb-ink); }
.tool-title { padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--deb-line); }
.tool-title__name { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.tool-title__badge { margin: 10px 0 0; font-family: var(--deb-font-h); font-style: italic; font-size: 1.2rem; color: var(--deb-accent); }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px clamp(32px, 5vw, 64px); align-items: start; }
.tool-layout .infobox { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
.tool-layout .tool-article { grid-column: 1; grid-row: 1; }

.infobox { border: 1px solid var(--deb-line); border-radius: var(--deb-radius); background: var(--deb-surface); overflow: hidden; font-size: 0.9rem; }
.infobox__head { padding: 10px 16px; background: var(--deb-band); border-bottom: 1px solid var(--deb-line); font-family: var(--deb-font-h); font-size: 1.15rem; text-align: center; }
.infobox__logo { display: flex; justify-content: center; padding: 20px 16px 8px; }
.infobox__logo .pd-logo { width: 128px; height: 128px; border-radius: calc(var(--deb-radius) * 1.3); background: var(--deb-bg); }
.infobox__logo .pd-logo__letter { font-size: 3rem; }
.infobox__table { width: 100%; border-collapse: collapse; }
.infobox__table th, .infobox__table td { padding: 9px 16px; vertical-align: top; text-align: left; border-top: 1px solid var(--deb-line); line-height: 1.4; }
.infobox__table th { width: 38%; font-weight: 600; color: var(--deb-ink); }
.infobox__table td { color: var(--deb-ink); overflow-wrap: anywhere; }
.infobox__table a { color: var(--deb-accent); }
.infobox__cta { padding: 16px; border-top: 1px solid var(--deb-line); }
.infobox__cta .btn { width: 100%; }
.infobox__note { margin: 10px 0 0; font-size: 0.8rem; color: var(--deb-muted); text-align: center; }
.infobox__admin { margin: 0; padding: 10px 16px; font-size: 0.8rem; border-top: 1px solid var(--deb-line); }
.infobox__admin.is-ok { background: color-mix(in srgb, #1a7f37 9%, var(--deb-surface)); color: #135c28; }
.infobox__admin.is-warn { background: color-mix(in srgb, #b26200 12%, var(--deb-surface)); color: #7a4300; font-weight: 600; }
.infobox__admin a { color: inherit; }

.tool-article { max-width: 70ch; }
.tool-article__lede { font-size: 1.2rem; line-height: 1.55; margin: 0 0 20px; }
.tool-article__body { font-size: 1.02rem; }
.tool-article__body h2, .tool-article__body h3 { padding-bottom: 6px; border-bottom: 1px solid var(--deb-line); }
.tool-article__body img { max-width: 100%; height: auto; }
.related { border-top: 1px solid var(--deb-line); margin-top: clamp(40px, 6vw, 64px); }
.related__all { margin: 28px 0 0; }

@media (max-width: 900px) {
	.tool-layout { grid-template-columns: 1fr; }
	.tool-layout .infobox, .tool-layout .tool-article { grid-column: 1; grid-row: auto; position: static; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--deb-radius); background: var(--deb-surface); border: 1px solid var(--deb-line); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { font-size: 0.875rem; color: var(--deb-muted); margin: 0 0 6px; }
.post-card__meta a { color: inherit; }
.post-card__title { font-size: 1.35rem; margin: 0 0 8px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { color: var(--deb-muted); margin: 0; font-size: 0.97rem; }
.article__media img { border-radius: var(--deb-radius); display: block; width: 100%; }
.post-navigation { display: grid; gap: 16px; padding: 32px 0; border-top: 1px solid var(--deb-line); }
.post-navigation .nav-links { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; font-family: var(--deb-font-h); font-size: 1.125rem; }
.nav-label { display: block; font-family: var(--deb-font-b); font-size: 0.8rem; color: var(--deb-muted); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--deb-line); border-radius: 999px; text-decoration: none; font-size: 0.94rem; }
.pagination .page-numbers.current { background: var(--deb-ink); color: var(--deb-bg); border-color: var(--deb-ink); }

/* ---------- Content (blocks, Elementor text) ---------- */
.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > .pd-directory, .entry-content > .pd-grid, .entry-content > .pd-picks, .entry-content > .pd-catgrid, .entry-content > .wp-block-shortcode { max-width: none; }
.entry-content--full > * { max-width: none; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--deb-accent); font-family: var(--deb-font-h); font-size: 1.25rem; }
.entry-content img { border-radius: calc(var(--deb-radius) * 0.6); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--deb-line); }
.entry-content .table-scroll, .entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--deb-surface); border: 1px solid var(--deb-line); border-radius: var(--deb-radius); font-size: 0.9rem; }
.alignwide { max-width: calc(var(--deb-wrap) - 2 * var(--deb-gutter)); }
.wp-block-button__link { border-radius: 999px; background: var(--deb-ink); color: var(--deb-bg); }

/* ---------- Band ---------- */
.band { background: var(--deb-band); color: var(--deb-band-ink); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--deb-line); }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 22ch; margin-bottom: 12px; }
.band__text { color: color-mix(in srgb, var(--deb-band-ink) 72%, var(--deb-band)); max-width: 52ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deb-bg); color: var(--deb-ink); padding: clamp(48px, 6vw, 72px) 0 32px; border-top: 1px solid var(--deb-line); }
.site-footer a { color: var(--deb-ink); }
.site-footer a:hover { color: var(--deb-accent); }
.site-footer__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.site-footer__heading { font-family: var(--deb-font-b); font-size: 0.875rem; font-weight: 600; margin: 0 0 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 9px; font-size: 0.94rem; }
.site-footer__col a { text-decoration: none; color: var(--deb-muted); }
.site-footer__col a:hover { color: var(--deb-ink); text-decoration: underline; }
.site-footer__widgets { padding-bottom: 32px; }
.site-footer .custom-logo { max-height: 48px; margin-bottom: 16px; }
.site-footer__tagline { font-family: var(--deb-font-h); font-size: 1.5rem; line-height: 1.2; margin: 0 0 6px; max-width: 24ch; }
.site-footer__sub { color: var(--deb-muted); margin: 0 0 20px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__bottom .site-footer__social a { color: var(--deb-muted); }
.site-footer__nav ul, .site-footer__bottom ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: 10px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--deb-line); font-size: 0.875rem; color: var(--deb-muted); }
.site-footer__bottom a { color: var(--deb-muted); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--deb-ink); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .widget-title { font-family: var(--deb-font-b); font-size: 0.94rem; font-weight: 600; }
@media (max-width: 760px) {
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.site-footer__top { grid-template-columns: 1fr; }
}

/* ---------- Comments ---------- */
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--deb-line); }
.comment-form textarea { border-radius: var(--deb-radius); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Keep theme chrome independent of page-builder globals ---------- */
body.deb-theme { background: var(--deb-bg); color: var(--deb-ink); }
.deb-theme .site-header a, .deb-theme .site-footer a, .deb-theme .hero a:not(.btn), .deb-theme .pd-card a:not(.pd-card__cta) { font-family: var(--deb-font-b); }
.deb-theme .btn, .deb-theme .pd-button, .deb-theme button[type="submit"] { font-family: var(--deb-font-b); text-transform: none; letter-spacing: normal; }

/* ---------- Submit-your-tool banner ---------- */
.submit-banner { padding: clamp(28px, 4vw, 44px) 0; }
.submit-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(24px, 3.5vw, 40px); border: 1.5px solid var(--deb-ink); border-radius: calc(var(--deb-radius) * 1.4); background: var(--deb-surface); max-width: calc(var(--deb-wrap) - 2 * var(--deb-gutter)); }
.submit-banner__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 6px; }
.submit-banner__text { margin: 0; color: var(--deb-muted); max-width: 60ch; }

/* Banner shortcode inside content. */
.pd-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; margin: 24px 0; border: 1.5px solid var(--deb-ink); border-radius: var(--deb-radius); background: var(--deb-surface); }
.pd-banner__title { font-family: var(--deb-font-h); font-size: 1.35rem; margin: 0 0 4px; }
.pd-banner__body { margin: 0; color: var(--deb-muted); }

/* ---------- Submission form ---------- */
.pd-submit { max-width: 680px; }
.pd-submit__rule { padding: 20px 24px; margin-bottom: 28px; border-left: 3px solid var(--deb-accent); background: var(--deb-surface); border-radius: 0 var(--deb-radius) var(--deb-radius) 0; }
.pd-submit__rule p { margin: 0; color: var(--deb-muted); }
.pd-submit__rule .pd-submit__rule-title { font-family: var(--deb-font-h); font-size: 1.35rem; color: var(--deb-ink); margin-bottom: 4px; }
.pd-form { max-width: none; }
.pd-form__group { border: 0; padding: 0; margin: 0 0 28px; }
.pd-form__group legend { font-family: var(--deb-font-h); font-size: 1.25rem; margin-bottom: 12px; padding: 0; }
.pd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .pd-form__row { grid-template-columns: 1fr; } }
.pd-form p { margin: 0 0 16px; }
.pd-form input[type="file"] { min-height: 0; padding: 10px 0; border: 0; background: transparent; border-radius: 0; }
.pd-form__hint { font-size: 0.94rem; padding: 10px 14px; border-radius: var(--deb-radius); }
.pd-form__hint.is-free { background: color-mix(in srgb, #1a7f37 10%, var(--deb-bg)); color: #135c28; }
.pd-form__hint.is-paid { background: color-mix(in srgb, #b26200 10%, var(--deb-bg)); color: #7a4300; }
.pd-form__hint[hidden] { display: none; }
.pd-form__notice { margin: 0 0 24px; }
.pd-form__notice p:last-child { margin-bottom: 0; }
.pd-form__notice--error { border-color: #b32d2e; color: #8a2424; }

/* Elementor content keeps its kit fonts/colors, but never the kit's page background. */
.entry-content[class*="elementor-kit-"] { background: transparent !important; color: inherit; }

.search-summary { color: var(--deb-muted); margin: -16px 0 32px; }
.search-block + .search-block { margin-top: 48px; }

/* ---------- Submit strip (top of every page) ---------- */
.submit-strip { border-bottom: 1px solid var(--deb-line); background: var(--deb-surface); font-size: 0.9rem; }
.submit-strip__inner { display: flex; justify-content: center; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-height: 44px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.submit-strip a { font-weight: 600; }
.submit-strip a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }

/* Full banner sits close under the hero / page heading. */
.hero + .submit-banner, .page-head + .submit-banner { padding-top: clamp(20px, 3vw, 32px); padding-bottom: 0; }

/* ---------- Listing options on the submit page ---------- */
.pd-tiers { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--deb-line); border-radius: var(--deb-radius); overflow: hidden; }
.pd-tier { padding: 22px 22px 24px; background: var(--deb-surface); }
.pd-tier + .pd-tier { border-left: 1px solid var(--deb-line); }
.pd-tier p { margin: 0; }
.pd-tier__name { font-size: 0.875rem; font-weight: 600; color: var(--deb-muted); }
.pd-tier__price { font-family: var(--deb-font-h); font-size: 1.5rem; line-height: 1.2; margin: 6px 0 10px !important; }
.pd-tier__text { font-size: 0.9rem; color: var(--deb-muted); line-height: 1.5; }
.pd-tier--feature { background: var(--deb-bg); }
.pd-tier--feature .pd-tier__price { font-style: italic; color: var(--deb-accent); }
@media (max-width: 680px) {
	.pd-tiers { grid-template-columns: 1fr; }
	.pd-tier + .pd-tier { border-left: 0; border-top: 1px solid var(--deb-line); }
}
.pd-submit { max-width: 760px; }

.pd-form__choice { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pd-form__choice legend { width: 100%; font-family: var(--deb-font-b); font-size: 0.94rem; font-weight: 500; margin-bottom: 8px; }
.pd-form__choice label, .pd-form__check label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.pd-form input[type="radio"], .pd-form input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--deb-ink); }
.pd-form [data-pd-program-link][hidden] { display: none; }
.pd-form__notice-title { font-family: var(--deb-font-h); font-size: 1.35rem; margin-bottom: 6px !important; }

/* ---------- Text-only blog cards ---------- */
.post-card { padding-top: 18px; border-top: 1px solid var(--deb-ink); }
.post-card:has(.post-card__media) { padding-top: 0; border-top: 0; }
.post-card__title { font-size: 1.4rem; }

/* ---------- Leaderboard (Power Rankings) ---------- */
.lb-num { font-family: "Barlow Condensed", var(--deb-font-b); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.lb-head { padding: clamp(40px, 6vw, 72px) 0 0; border-bottom: 2px solid var(--deb-ink); }
.lb-head__title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 14px; }
.lb-head__text { font-size: 1.125rem; color: var(--deb-muted); max-width: 58ch; margin-bottom: 6px; }
.lb-head__meta { font-size: 0.875rem; color: var(--deb-muted); margin-bottom: 28px; }
.lb-tabs { display: flex; gap: 4px; }
.lb-tab { position: relative; padding: 14px 22px 12px; border: 0; background: transparent; cursor: pointer; font: 700 1.35rem/1 "Barlow Condensed", var(--deb-font-b); color: var(--deb-muted); }
.lb-tab[aria-selected="true"] { color: var(--deb-ink); }
.lb-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--deb-accent); }
.lb-tab:hover { color: var(--deb-ink); }
.lb-league { padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 64px); }
.lb-league[hidden] { display: none; }
.lb-section-title { font-size: 1.5rem; margin: 0 0 16px; }

/* Podium */
.lb-podium { list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; }
.lb-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 22px; background: var(--deb-surface); border: 1px solid var(--deb-line); border-radius: var(--deb-radius); }
.lb-step--1 { padding-top: 40px; padding-bottom: 34px; border: 2px solid var(--deb-ink); background: var(--deb-bg); }
.lb-step__rank { position: absolute; top: 10px; left: 16px; font: italic 700 3.25rem/1 "Barlow Condensed", var(--deb-font-b); color: var(--deb-line); }
.lb-step--1 .lb-step__rank { font-size: 4.5rem; color: var(--deb-accent); }
.lb-step__logo { width: 76px; height: 76px; margin-bottom: 6px; }
.lb-step--1 .lb-step__logo { width: 96px; height: 96px; }
.lb-step__name { font-family: var(--deb-font-h); font-size: 1.3rem; line-height: 1.15; text-decoration: none; }
.lb-step--1 .lb-step__name { font-size: 1.6rem; }
.lb-step__name:hover { text-decoration: underline; }
.lb-step__div { font-size: 0.85rem; color: var(--deb-muted); }
.lb-step__score { margin-top: 6px; font-size: 2.25rem; line-height: 1; }
.lb-step--1 .lb-step__score { font-size: 3rem; }

/* Table + divisions */
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.lb-scroll { overflow-x: auto; border-top: 2px solid var(--deb-ink); }
.lb-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.lb-table th { padding: 10px 10px; text-align: left; font: 700 1rem/1 "Barlow Condensed", var(--deb-font-b); color: var(--deb-muted); border-bottom: 1px solid var(--deb-line); white-space: nowrap; }
.lb-table td { padding: 10px 10px; border-bottom: 1px solid var(--deb-line); vertical-align: middle; }
.lb-table abbr { text-decoration: none; }
.lb-table tr.is-top td:first-child { box-shadow: inset 3px 0 0 var(--deb-accent); }
.lb-table tbody tr:hover { background: var(--deb-surface); }
.lb-c-rank { width: 48px; text-align: center !important; }
.lb-c-rank .lb-num { font-size: 1.35rem; }
.lb-c-move { width: 56px; }
.lb-c-tool a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 200px; }
.lb-c-tool a:hover .lb-tool__name { text-decoration: underline; }
.pd-logo--sm { width: 34px; height: 34px; border-radius: 8px; }
.pd-logo--sm .pd-logo__letter { font-size: 1rem; }
.lb-tool__text { display: flex; flex-direction: column; line-height: 1.25; }
.lb-tool__name { font-weight: 600; }
.lb-tool__maker { font-size: 0.8rem; color: var(--deb-muted); }
.lb-c-div { color: var(--deb-muted); white-space: nowrap; }
.lb-c-div a { color: inherit; text-decoration: none; }
.lb-c-div a:hover { color: var(--deb-ink); text-decoration: underline; }
.lb-c-score { width: 170px; white-space: nowrap; }
.lb-c-score .lb-num { display: inline-block; width: 32px; text-align: right; font-size: 1.25rem; vertical-align: middle; }
.lb-bar { display: inline-block; width: 110px; height: 6px; margin-right: 10px; border-radius: 3px; background: var(--deb-line); vertical-align: middle; overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: var(--deb-ink); }
.lb-table tr.is-top .lb-bar span { background: var(--deb-accent); }

.lb-move { display: inline-flex; align-items: center; gap: 2px; font: 700 0.95rem/1 "Barlow Condensed", var(--deb-font-b); }
.lb-move span { font-size: 0.6rem; }
.lb-move--up { color: #137333; }
.lb-move--down { color: #b3261e; }
.lb-move--same { color: var(--deb-muted); }
.lb-move--new { padding: 3px 6px; border-radius: 4px; background: var(--deb-ink); color: var(--deb-bg); font-size: 0.75rem; letter-spacing: 0.04em; }

.lb-divisions { display: grid; gap: 14px; }
.lb-div { border: 1px solid var(--deb-line); border-radius: var(--deb-radius); overflow: hidden; background: var(--deb-bg); }
.lb-div__head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; background: var(--deb-ink); color: var(--deb-bg); }
.lb-div__head h3 { margin: 0; font: 700 1.1rem/1.1 "Barlow Condensed", var(--deb-font-b); letter-spacing: 0.01em; }
.lb-div__head a { color: var(--deb-bg); font-size: 0.8rem; opacity: .8; }
.lb-div__head a:hover { color: var(--deb-bg); opacity: 1; }
.lb-div__list { list-style: none; margin: 0; padding: 4px 0; }
.lb-div__list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 14px; font-size: 0.9rem; }
.lb-div__list li + li { border-top: 1px solid var(--deb-line); }
.lb-div__list a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-div__list a:hover { text-decoration: underline; }
.lb-div__rank { color: var(--deb-muted); font-size: 1.05rem; text-align: center; }
.lb-div__list li:first-child .lb-div__rank { color: var(--deb-accent); }
.lb-div__score { font-size: 1.1rem; }
.lb-method { padding-bottom: clamp(40px, 6vw, 64px); max-width: calc(760px + 2 * var(--deb-gutter)); margin-left: 0; }
.lb-method p { color: var(--deb-muted); }

@media (max-width: 980px) {
	.lb-grid { grid-template-columns: 1fr; }
	.lb-divisions { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
	.lb-podium { grid-template-columns: 1fr; }
	.lb-step--1 { order: -1; }
	.lb-c-div { display: none; }
	.lb-bar { width: 60px; }
	.lb-c-score { width: auto; }
}
