/*
Theme Name: Philly Sports Talk
Theme URI: https://phillysports.talk
Author: Chuck
Description: News, hot takes and fan forums for Philadelphia sports. Team-colored coverage for the Eagles, Phillies, Sixers, Flyers, Union and college teams, bbPress forum styling, and built-in tie-ins to Philly Tailgates and Philly.beer.
Version: 1.3.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pst
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, post-formats
*/

/* ==========================================================
   Tokens
   ========================================================== */
:root {
	--ink: #101318;
	--ink-2: #2a2f38;
	--muted: #646b76;
	--line: #dedad1;
	--paper: #f5f3ee;
	--surface: #ffffff;
	--signal: #d7192d;
	--signal-dark: #a80f20;
	--team: var(--signal);

	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Source Serif 4", Georgia, serif;
	--font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 3vw, 32px);
	--radius: 6px;
	--shadow: 0 1px 2px rgba(16, 19, 24, .06), 0 6px 20px rgba(16, 19, 24, .06);
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.55;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.005em; margin: 0 0 .4em; text-transform: uppercase; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	left: 12px; top: 12px; padding: 10px 16px; background: var(--ink); color: #fff;
}

/* ==========================================================
   Buttons, chips
   ========================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .4em;
	padding: .7em 1.2em; border-radius: var(--radius);
	border: 2px solid var(--ink); background: var(--ink); color: #fff;
	font-family: var(--font-ui); font-weight: 600; font-size: .95rem; line-height: 1;
	text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn--small { padding: .55em .9em; font-size: .85rem; }
.btn--accent { background: var(--signal); border-color: var(--signal); }
.btn--accent:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.chip {
	display: inline-block; padding: .28em .6em; border-radius: 3px;
	background: var(--ink); color: #fff;
	font-family: var(--font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; line-height: 1.2;
}
.chip:hover { color: #fff; filter: brightness(1.15); }
.chip--team { background: var(--team); }
.chip--hot { background: transparent; color: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal); }
.chip--hot::before { content: "🔥 "; }
.chip--video { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .6em; }

.eyebrow {
	font-family: var(--font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; margin: 0 0 .5em; opacity: .85;
}

/* ==========================================================
   Network bar + header
   ========================================================== */
.network-bar { background: var(--ink); color: #c9ccd2; font-size: .8rem; }
.network-bar__inner { display: flex; align-items: center; gap: 14px; min-height: 34px; overflow-x: auto; white-space: nowrap; }
.network-bar__label { opacity: .7; }
.network-bar ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.network-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.network-bar a:hover { color: #ffb3bb; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.brand { min-width: 0; }
.brand__tagline { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.custom-logo { max-height: 60px; width: auto; }
.site-logo { display: inline-block; line-height: 0; }
.site-logo svg { height: 62px; width: auto; display: block; }
.site-logo--footer svg { height: 54px; }

.wordmark {
	display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink);
	font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
	font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: .9; letter-spacing: -.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark__sports { color: var(--signal); }
.wordmark__talk { text-transform: lowercase; font-weight: 700; color: var(--muted); font-size: .62em; margin-left: 2px; }
.wordmark--light { color: #fff; }
.wordmark--light:hover { color: #fff; }
.wordmark--light .wordmark__talk { color: #9aa0aa; }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 0; border-radius: var(--radius); background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--paper); }
.menu-toggle { display: none; }

.header-search { border-top: 1px solid var(--line); padding: 14px 0; background: var(--surface); }

.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > .wrap > ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.primary-nav a {
	display: block; padding: 12px 0; text-decoration: none;
	font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em;
}
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--signal); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	display: none; position: absolute; left: -14px; top: 100%; min-width: 200px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 14px; z-index: 30;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 8px 0; font-size: 1rem; }

/* Team strip */
.team-strip { background: var(--paper); border-top: 1px solid var(--line); }
.team-strip ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.team-strip ul::-webkit-scrollbar { display: none; }
.team-strip a {
	display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px;
	border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.team-strip a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--team); }
.team-strip a:hover, .team-strip a[aria-current] { background: var(--team); border-color: var(--team); color: #fff; }
.team-strip a:hover::before, .team-strip a[aria-current]::before { background: #fff; }

/* ==========================================================
   Layout
   ========================================================== */
.site-content { padding-bottom: 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.no-sidebar .layout { grid-template-columns: minmax(0, 1fr) 300px; }
.layout__side { position: sticky; top: 20px; }

.page-header { padding: 40px 0 24px; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-title {
	font-size: 1.5rem; display: flex; align-items: center; gap: 10px;
	padding-bottom: 8px; border-bottom: 3px solid var(--ink); margin-bottom: 18px;
}
.section-title--team { border-bottom-color: var(--team); }
.section-title--team::before { content: ""; width: 14px; height: 14px; background: var(--team); border-radius: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 18px; }
.team-rail .section-head { border-bottom-color: var(--team); }
.section-head .section-title { border: 0; padding: 0; margin: 0 0 8px; }
.section-link { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ==========================================================
   Cards
   ========================================================== */
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--team); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	color: rgba(255,255,255,.9); font-family: var(--font-display); font-weight: 800;
	font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em;
	background: linear-gradient(135deg, var(--team), color-mix(in srgb, var(--team) 60%, #000));
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.45rem; margin-bottom: .35em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__chips, .byline a { position: relative; z-index: 1; }
.card__excerpt { font-family: var(--font-body); color: var(--ink-2); font-size: 1rem; margin-bottom: .8em; }
.card .byline { margin-top: auto; }

.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--lead .card__body { padding: 22px 24px 24px; border-top: 6px solid var(--team); }
.card--lead .card__title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.card--lead .card__excerpt { font-size: 1.15rem; }

.card--compact { box-shadow: none; background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); }
.card--compact .card__body { padding: 12px 0 14px 14px; border-left: 4px solid var(--team); }
.card--compact .card__title { font-size: 1.2rem; }
.card--compact .card__chips { margin-bottom: .4em; }

.card--row { flex-direction: row; }
.card--row .card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 180px; }
.card--row .card__title { font-size: 1.6rem; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--3 .card__title { font-size: 1.25rem; }
.card-grid--3 .card__excerpt { display: none; }
.card-list { display: grid; gap: 22px; }

.byline { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.byline a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.byline a:hover { color: var(--signal); }
.byline__sep { opacity: .6; }

/* ==========================================================
   Home
   ========================================================== */
.home-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; padding: 32px 0 40px; }
.home-top__latest .card--compact:last-child { border-bottom: 0; }
.home-section { margin-bottom: 44px; }
.empty-state { padding: 60px 0; text-align: center; }
.empty-state .search-form { max-width: 520px; margin: 20px auto 0; }
.admin-note { padding: 14px 16px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.promo-slot { margin-bottom: 44px; }

/* Forum pulse / topic list */
.topic-list { list-style: none; margin: 0; padding: 0; counter-reset: topic; }
.topic-list__item { counter-increment: topic; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.topic-list__item::before { content: counter(topic); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--signal); }
.topic-list__title { font-weight: 600; text-decoration: none; line-height: 1.3; }
.topic-list__meta { font-size: .78rem; color: var(--muted); }
.forum-pulse .topic-list { background: var(--surface); border-radius: var(--radius); padding: 4px 18px; box-shadow: var(--shadow); }
.forum-pulse .topic-list__item:last-child { border-bottom: 0; }

/* ==========================================================
   Promos and CTAs
   ========================================================== */
.promo {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 28px 30px; margin: 0 0 44px; border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(215, 25, 45, .55), transparent 55%),
		linear-gradient(135deg, #0b3b40, #004C54 60%, #0a2a2e);
	color: #fff; position: relative; overflow: hidden;
}
.promo::after {
	content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
	border: 14px solid rgba(255,255,255,.07); border-radius: 50%;
}
.promo__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; }
.promo__text { margin: 0; opacity: .9; max-width: 52ch; }
.promo .btn { position: relative; z-index: 1; }
.promo--compact { flex-direction: column; align-items: flex-start; padding: 22px; margin: 32px 0; }
.promo--compact .promo__title { font-size: 1.4rem; }
.sidebar .promo--compact { margin: 0 0 28px; }

.join-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	background: var(--ink); color: #fff; padding: 30px; border-radius: var(--radius); margin: 44px 0;
	border-left: 8px solid var(--signal);
}
.join-cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.join-cta p { margin: 0; color: #c9ccd2; max-width: 52ch; }
.join-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================
   Archives
   ========================================================== */
.archive-banner { background: var(--ink); color: #fff; padding: 44px 0 36px; margin-bottom: 36px; }
.archive-banner--team { background: linear-gradient(120deg, var(--team), color-mix(in srgb, var(--team) 55%, #000)); }
.archive-banner--forums { background: linear-gradient(120deg, var(--ink), #2b1116); border-bottom: 6px solid var(--signal); }
.archive-banner .page-title { margin: 0; }
.archive-description { max-width: 65ch; opacity: .9; margin-top: 10px; font-family: var(--font-body); font-size: 1.1rem; }
.archive-description p:last-child { margin: 0; }

.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; padding: 8px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================
   Article
   ========================================================== */
.article__header { max-width: 900px; padding: 44px 0 24px; }
.article__title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .25em; }
.article__dek { font-family: var(--font-body); font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-2); line-height: 1.45; }
.article__hero { margin: 0 0 36px; }
.article__hero img { width: 100%; border-radius: var(--radius); }
.article__hero figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.single .layout__main { max-width: 760px; }

.entry-content { font-family: var(--font-body); font-size: 1.18rem; line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 2rem; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.6rem; margin-top: 1.3em; }
.entry-content a { color: var(--signal); }
.entry-content blockquote, .format-quote .entry-content > blockquote:first-child {
	margin-left: 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--team);
	font-size: 1.35rem; font-style: italic;
}
.entry-content .wp-block-pullquote { border-top: 4px solid var(--team); border-bottom: 4px solid var(--team); padding: 24px 0; text-align: center; }
.entry-content .wp-block-pullquote p { font-family: var(--font-display); font-weight: 800; font-style: normal; text-transform: uppercase; font-size: 2rem; line-height: 1.05; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }

.article__footer { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags a { font-size: .8rem; padding: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.share__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share a, .share button { font-size: .85rem; font-weight: 600; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.author-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.author-box img { border-radius: 50%; }
.author-box__name { font-weight: 700; margin-bottom: .2em; }
.author-box p { font-size: .9rem; margin: 0; }
.related { margin-top: 44px; }

/* ==========================================================
   Comments (takes)
   ========================================================== */
.comments { margin-top: 44px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; border-left: 2px solid var(--line); padding-left: 16px; }
.comment-body { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .75rem; margin: 2px 0 8px 54px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { font-family: var(--font-body); font-size: 1.05rem; }
.reply a { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--signal); }
.bypostauthor > .comment-body { box-shadow: inset 4px 0 0 var(--signal); }
.comment-respond { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.comment-reply-title { font-size: 1.6rem; }
.comment-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
	width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius);
	background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(215, 25, 45, .18); }
.search-form { display: flex; gap: 8px; }
.search-form__input { flex: 1; }

/* ==========================================================
   Sidebar + widgets
   ========================================================== */
.sidebar .widget { margin-bottom: 30px; }
.widget-title { font-size: 1.2rem; padding-bottom: 6px; border-bottom: 3px solid var(--ink); margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ranked { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ranked li::before { content: counter(r); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--signal); line-height: 1; }
.ranked a { text-decoration: none; font-weight: 600; line-height: 1.3; }

/* ==========================================================
   404, pages
   ========================================================== */
.page-wrap { max-width: 820px; }
.error-404 { max-width: 720px; padding-top: 70px; text-align: center; }
.error-404__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12vw, 7rem); line-height: .9; color: var(--signal); text-transform: uppercase; margin: 0 0 .2em; }
.error-404 .search-form { margin: 24px 0; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--ink); color: #c9ccd2; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb3bb; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid #2a2f38; }
.site-footer__brand p { margin: 12px 0 16px; max-width: 46ch; }
.footer-heading { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.site-footer__network ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__network li { display: flex; flex-direction: column; }
.site-footer__network a { font-weight: 700; }
.site-footer__network span { font-size: .8rem; color: #8d939d; }
.social-links { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid #2a2f38; }
.site-footer .widget-title { color: #fff; border-color: #2a2f38; }
.site-footer .widget li { border-color: #2a2f38; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .8rem; color: #8d939d; }
.site-footer__bottom p { margin: 0; }
.footer-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================
   WordPress core classes
   ========================================================== */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .8rem; color: var(--muted); }
.sticky .card__body { border-top-color: var(--signal); }
.page-links { margin: 20px 0; font-weight: 600; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
	.layout, .no-sidebar .layout { grid-template-columns: 1fr; }
	.layout__side { position: static; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
	.home-top { grid-template-columns: 1fr; }
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.promo, .join-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
	.menu-toggle { display: inline-grid; }
	.site-header__actions .btn--ghost { display: none; }
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav > .wrap > ul { flex-direction: column; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
	.card-grid, .card-grid--3 { grid-template-columns: 1fr; }
	.card-grid--3 .card__excerpt { display: block; }
	.card--row { flex-direction: column; }
	.card--row .card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.site-footer__top, .site-footer__widgets { grid-template-columns: 1fr; }
	.brand__tagline { display: none; }
	.site-logo svg { height: 46px; }
}
@media (max-width: 420px) {
	.site-header__actions .btn--small:not(.btn--accent) { display: none; }
	.search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Staff writers
   ========================================================== */
.staff-avatar {
	display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%;
	background: var(--team); color: #fff;
	font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; line-height: 1;
}
.author-box__beat { font-size: .7rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px !important; }
.beat-writer { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
.beat-writer .staff-avatar { background: #fff; color: var(--team); }
.beat-writer p { margin: 0; font-size: .9rem; }
.beat-writer span { opacity: .8; margin-right: 4px; }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; font-family: var(--font-ui); }
.staff-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.staff-card__beat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.staff-card__name { font-size: 1.5rem; margin: 0 0 6px; }
.staff-card__name a { text-decoration: none; color: var(--ink); }
.staff-card__bio { font-size: .95rem; line-height: 1.5; margin: 0; color: var(--ink-2); }
.staff-note { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); margin-top: 18px; }
@media (max-width: 760px) { .staff-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Social feed slots (Smash Balloon etc.)
   ========================================================== */
.feed-slot__body { min-height: 120px; content-visibility: auto; contain-intrinsic-size: auto 400px; }
.feed-slot--home .feed-slot__body { background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.feed-slot--sidebar .section-head { border-bottom: 0; margin-bottom: 0; }
.feed-slot--sidebar .section-head .widget-title { flex: 1; }
.feed-slot--footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 44px; }
.feed-slot--footer .section-title { margin-bottom: 8px; }
.feed-slot img, .feed-slot iframe, .feed-slot video { max-width: 100%; }
