/*
Theme Name: The Hub
Theme URI: https://example.com/the-hub
Author: Custom Build
Author URI: https://example.com
Description: A social-media aggregation hub theme. Pulls in Twitter/X, Instagram, YouTube, and TikTok posts into a filterable feed, with occasional original blog posts surfaced as larger featured cards. Built as a modernized successor to a classic fan-blog format.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: thehub
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root {
  --color-ink: #03244d;
  --color-ink-light: #0c3a70;
  --color-black: #14161c;
  --color-accent: #dd550c;
  --color-accent-dark: #b8440a;
  --color-bg: #f4f5f7;
  --color-card: #ffffff;
  --color-border: #e3e5ea;
  --color-text: #1c2430;
  --color-text-muted: #667085;
  --color-blog-badge: #dd550c;
  --heading-color: #14161c;
  --heading-scale: 1;
  --body-scale: 1;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-card-hover: 0 4px 10px rgba(16, 24, 40, 0.10), 0 2px 4px rgba(16, 24, 40, 0.08);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(100% * var(--body-scale)); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. Site header
   ========================================================================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
}
.site-branding img.custom-logo { max-height: 46px; width: auto; }
.site-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem);
  letter-spacing: 0.5px;
  color: var(--color-black);
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.site-title a { color: var(--color-black); }
.site-title__accent { color: var(--color-accent); }
.site-tagline {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  white-space: nowrap;
}
.site-header__icons { flex: 0 0 auto; }
.primary-nav { flex: 1 1 auto; min-width: 0; overflow: visible; }
.primary-nav > ul { display: flex; gap: 4px; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-end; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--color-black);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--color-accent); }

/* Dropdown for nested (child) menu items */
.primary-nav li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  z-index: 110;
}
.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}
.primary-nav .sub-menu a { color: var(--color-text); font-size: 0.82rem; }
.primary-nav .sub-menu a:hover { color: var(--color-accent); background: var(--color-bg); }
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }

.site-header__icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  color: var(--color-black);
  border-radius: var(--radius-sm);
}
.icon-btn:hover { background: var(--color-bg); }
.menu-toggle { display: none; }

.header-search {
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid var(--color-border);
  transition: max-height 0.2s ease;
}
.header-search.is-open { max-height: 90px; border-top-width: 1px; }
.header-search .container { padding: 14px 20px; }
.header-search input[type="search"],
.header-search input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ==========================================================================
   3. Hub hero + filter bar
   ========================================================================== */
.hub-hero {
  background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-light) 100%);
  color: #fff;
  padding: 44px 0 28px;
}
.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 6px;
}
.hub-hero p {
  margin: 0;
  color: #aebadd;
  font-size: 1.02rem;
  max-width: 560px;
}

/* Archive (legacy posts) page */
.archive-hero p { max-width: 620px; }

/* Search results page */
.search-sort-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.86rem;
}
.search-sort-toggle__label { color: #aebadd; }
.search-sort-toggle a {
  color: #cdd6e6;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.search-sort-toggle a.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.search-sort-toggle a:hover:not(.is-active) { border-color: #fff; color: #fff; }

.search-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.search-crosslinks .hero__cta { color: #fff; border-color: rgba(255,255,255,0.5); }
.search-crosslinks .hero__cta:hover { color: var(--color-accent); border-color: var(--color-accent); }
.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  max-width: 720px;
}
.archive-filter-bar input[type="search"] {
  flex: 1 1 240px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.92rem;
}
.archive-filter-bar select {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.92rem;
  flex: 0 1 200px;
}
.archive-filter-bar .btn { flex: 0 0 auto; }
.archive-filter-bar__clear {
  align-self: center;
  font-size: 0.82rem;
  color: #cdd6e6;
  text-decoration: underline;
}
.archive-filter-bar__clear:hover { color: #fff; }

.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-black);
}
.archive-pagination .page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }
.archive-pagination .page-numbers.current { background: var(--color-black); border-color: var(--color-black); color: #fff; }
.archive-pagination .page-numbers.dots { border: none; background: none; }

.feed-toolbar {
  position: sticky;
  top: 66px;
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--color-accent); color: var(--color-ink); }
.filter-pill.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.filter-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ==========================================================================
   3b. Homepage: hero feature
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
}
.eyebrow--accent { color: var(--color-accent); }

.hero { padding: 40px 0 44px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: calc(clamp(2rem, 4.6vw, 3.2rem) * var(--heading-scale));
  line-height: 1.05;
  color: var(--heading-color);
  text-transform: uppercase;
  margin: 8px 0 16px;
}
.hero__title a { color: inherit; }
.hero__excerpt {
  font-size: 1.02rem;
  color: #333;
  max-width: 46ch;
  margin: 0 0 20px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 4px;
}
.hero__cta:hover { color: var(--color-accent); border-color: var(--color-accent); }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

.hero--coming-soon { padding: 64px 0; }
.hero__inner--coming-soon {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 640px;
  margin: 0 auto;
}
.hero__inner--coming-soon .hero__excerpt { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   3c. Homepage: recent content row
   ========================================================================== */
.recent-content { padding: 8px 0 44px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: calc(1.05rem * var(--heading-scale));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
  color: var(--heading-color);
}
.view-all { font-size: 0.82rem; font-weight: 800; color: var(--color-accent); }
.view-all:hover { text-decoration: underline; }

/* The Blogle Hall of Fame — larger, serif, not the small-caps label look
   the other section headings use, so it reads as a distinct destination. */
.section-heading--hof h2 {
  font-family: var(--font-display);
  font-size: calc(1.7rem * var(--heading-scale));
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  padding-left: 34px;
}
.section-heading--hof h2::before {
  content: "🏆";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.3rem;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .recent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recent-grid { grid-template-columns: 1fr; } }

.recent-tile {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.recent-tile:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.recent-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: #e9ebef;
}
.recent-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.recent-tile__media-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#e9ebef,#dadde3); }
.recent-tile__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.recent-tile__play svg {
  background: rgba(255,255,255,0.92);
  color: var(--color-black);
  border-radius: 50%;
  width: 40px; height: 40px; padding: 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.recent-tile__body { padding: 12px 14px 16px; }
.recent-tile__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 8px;
  color: var(--color-black);
}
.recent-tile__title a { color: inherit; }
.recent-tile__title a:hover { color: var(--color-accent); }
.recent-tile__date { font-size: 0.78rem; color: var(--color-text-muted); }

/* Dark quote card (latest Social Post) — same grid slot as a recent-tile */
.quote-card {
  background: var(--color-black);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-card__head { display: flex; align-items: center; justify-content: space-between; }
.quote-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-accent);
}
.quote-card__mark { color: #fff; opacity: 0.9; }
.quote-card__text { font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0; flex: 1; }
.quote-card__meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
}
.quote-card__stats {
  display: flex; gap: 12px;
  font-size: 0.76rem; color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 10px;
}
.quote-card__link { font-size: 0.78rem; font-weight: 700; color: var(--color-accent); }
.quote-card__link:hover { text-decoration: underline; }

/* ==========================================================================
   3d. Homepage: newsletter bar
   ========================================================================== */
.newsletter-bar {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.newsletter-bar__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 780px) {
  .newsletter-bar__inner--split { grid-template-columns: 1fr; }
}
.newsletter-bar__main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-bar__intro { display: flex; align-items: center; gap: 12px; }
.newsletter-bar__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
}
.newsletter-bar__intro h3 { margin: 0; font-size: calc(1rem * var(--heading-scale)); color: var(--heading-color); line-height: 1.3; }
.newsletter-bar__intro p { margin: 0; font-size: 0.84rem; color: var(--color-text-muted); line-height: 1.3; }
.newsletter-form { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 200px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.newsletter-form .btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}
.newsletter-form__note {
  flex-basis: 100%;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 6px 0 0;
}
.newsletter-bar__side { display: flex; align-items: center; }
.newsletter-bar__side-widget { width: 100%; }
.btn--accent { background: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-dark); }

/* ==========================================================================
   3e. Homepage: search + archive promo + merch (combined row)
   ========================================================================== */
.search-promo { padding: 44px 0; }
.search-promo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.search-promo__inner--with-merch {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.search-promo__search h2 {
  font-size: calc(1.5rem * var(--heading-scale));
  margin: 0 0 14px;
  color: var(--heading-color);
}
.search-promo__search h2 .eyebrow--accent { display: inline; }
.search-form,
.search-promo__search form,
.header-search form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.search-form label,
.search-promo__search form label,
.header-search form label {
  flex: 1;
  display: flex;
  margin: 0;
}
.search-form .search-field,
.search-promo__search input[type="search"],
.header-search input[type="search"] {
  flex: 1; border: none; padding: 12px 14px; font-size: 0.95rem; width: 100%;
}
.search-form .search-submit,
.search-promo__search input[type="submit"],
.header-search input[type="submit"] {
  background: var(--color-black);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.popular-terms { margin: 14px 0 0; font-size: 0.86rem; color: var(--color-text-muted); }
.popular-terms a { color: var(--color-black); font-weight: 600; }
.popular-terms a:hover { color: var(--color-accent); }

.search-promo__quicklinks {
  margin: 16px 0 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.search-promo__quicklinks a {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-accent);
}
.search-promo__quicklinks a:hover { text-decoration: underline; }
.search-promo__media img { border-radius: var(--radius-md); width: 100%; }

/* Merch column — compact card so it sits comfortably beside search/promo */
.search-promo__merch {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  align-self: stretch;
}
.search-promo__merch-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.search-promo__merch h2 { font-size: calc(1.2rem * var(--heading-scale)); margin: 6px 0 6px; color: var(--heading-color); }
.search-promo__merch p { color: var(--color-text-muted); margin: 0 0 14px; font-size: 0.9rem; }

@media (max-width: 900px) {
  .search-promo__inner--with-merch { grid-template-columns: 1fr 1fr; }
  .search-promo__merch { grid-column: span 2; }
}
@media (max-width: 640px) {
  .search-promo__inner,
  .search-promo__inner--with-merch { grid-template-columns: 1fr; }
  .search-promo__merch { grid-column: auto; }
}

.recent-grid--3up { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .recent-grid--3up { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recent-grid--3up { grid-template-columns: 1fr; } }

.category-row { padding-top: 0; }

.greatest-hits { padding: 8px 0 8px; }
.hit-tile__views {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20,22,28,0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.hit-tile__rank {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
}

/* ==========================================================================
   3g. Homepage: podcast player
   ========================================================================== */
.podcast-section {
  background: var(--color-black);
  color: #fff;
  padding: 24px 0;
}
.podcast-section__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.podcast-section__intro { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.podcast-section__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  flex: 0 0 auto;
}
.podcast-section__intro h3 { margin: 2px 0 0; font-size: 1rem; color: #fff; }
.podcast-section__player { flex: 1 1 320px; min-width: 280px; }
.podcast-embed iframe { width: 100%; border: none; border-radius: var(--radius-sm); display: block; }

/* ==========================================================================
   4. Feed grid
   ========================================================================== */
.hub-feed-wrap { padding: 28px 0 60px; }
.hub-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.hub-feed[data-filtering] .feed-card { display: none; }
.hub-feed[data-filtering] .feed-card.is-visible { display: flex; }

.feed-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feed-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.feed-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px 0;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
}
.platform-badge--twitter { background: #14171a; }
.platform-badge--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.platform-badge--youtube { background: #ff0000; }
.platform-badge--tiktok { background: #010101; }
.platform-badge--facebook { background: #1877f2; }
.platform-badge--blog { background: var(--color-blog-badge); }
.feed-card__archive-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 9px;
}

.feed-card__time {
  font-size: 0.76rem;
  color: var(--color-text-muted);
}
.feed-card__embed {
  padding: 12px 14px 0;
}
.feed-card__embed iframe,
.feed-card__embed .wp-embed,
.feed-card__embed blockquote { width: 100%; border: 0; }
.feed-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-top: 12px;
}
.feed-card__body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.feed-card__caption { font-size: 0.93rem; color: var(--color-text); }
.feed-card__title { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.3; }
.feed-card__source-link {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}
.feed-card__source-link:hover { text-decoration: underline; }

/* Blog cards get more visual weight so they read as "occasional features" */
.feed-card--blog {
  grid-column: span 2;
}
.feed-card--blog .feed-card__thumb { aspect-ratio: 16/8; margin-top: 0; }
.feed-card--blog .feed-card__title { font-family: var(--font-display); font-size: 1.35rem; }
.feed-card--blog .feed-card__excerpt { color: var(--color-text-muted); font-size: 0.95rem; }
.feed-card--blog .feed-card__author {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--color-text-muted); margin-top: 4px;
}
.feed-card--blog .feed-card__author img { width: 22px; height: 22px; border-radius: 50%; }

@media (max-width: 640px) {
  .feed-card--blog { grid-column: span 1; }
}

.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
}
.btn:hover { background: var(--color-ink-light); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ==========================================================================
   4b. Ad / media widget slots
   ========================================================================== */
.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.ad-slot--leaderboard {
  margin: 18px 0;
  padding: 12px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  text-align: center;
  overflow: hidden;
}
.ad-slot--leaderboard:empty { display: none; }

.feed-card--ad {
  grid-column: span 2;
  padding: 14px;
  background: var(--color-card);
  border: 1px dashed var(--color-border);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.feed-card--ad:empty { display: none; }
@media (max-width: 640px) {
  .feed-card--ad { grid-column: span 1; }
}

/* Widget area sidebar too — Custom HTML / Audio-Video widgets should sit
   flush inside the card without fighting the theme's own spacing. */
.widget iframe,
.widget video,
.widget audio,
.ad-slot iframe,
.feed-card--ad iframe {
  max-width: 100%;
}

/* ==========================================================================
   Share buttons
   ========================================================================== */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: var(--color-card);
}
.share-buttons--top { margin: 0; padding: 8px 12px; flex: 0 0 auto; }
.share-buttons--bottom { display: inline-flex; width: auto; margin: 0; }
.share-buttons__label {
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-black);
  margin-right: 6px;
}
.share-buttons__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 8px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.share-buttons__item svg { width: 18px; height: 18px; }
.share-buttons__item:hover { transform: translateY(-1px); }
.share-buttons__item--x { background: #000; }
.share-buttons__item--x:hover { background: #262626; }
.share-buttons__item--facebook { background: #1877f2; }
.share-buttons__item--facebook:hover { background: #145dbf; }
.share-buttons__item--reddit { background: #ff4500; }
.share-buttons__item--reddit:hover { background: #d93b00; }
.share-buttons__item--email { background: #6b7280; }
.share-buttons__item--email:hover { background: #565c66; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-title { font-family: var(--font-display); font-size: calc(1.4rem * var(--heading-scale)); color: var(--heading-color); margin: 0 0 20px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children {
  margin-left: 28px;
  margin-top: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--color-border);
}
.comment-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.comment-list > .comment-item:last-child,
.comment-list .children > .comment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.comment-item__row { display: flex; gap: 12px; }
.comment-item__avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.comment-list .children .comment-item__avatar img { width: 36px; height: 36px; }
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-item__author { font-weight: 700; font-size: 0.92rem; color: var(--color-black); }
.comment-item__date { font-size: 0.78rem; color: var(--color-text-muted); }
.comment-item__date:hover { color: var(--color-accent); }
.comment-item__pending { font-size: 0.8rem; color: var(--color-accent-dark); font-style: italic; margin: 4px 0; }
.comment-item__content p { margin: 0 0 0.8em; font-size: 0.96rem; }
.comment-item__content p:last-child { margin-bottom: 0; }
.comment-item__reply { margin-top: 6px; }
.comment-item__reply a { font-size: 0.78rem; font-weight: 700; color: var(--color-accent); }
.comments-closed { color: var(--color-text-muted); font-size: 0.9rem; }

.comment-respond { margin-top: 28px; }
.comments-area:not(.has-comments) .comment-respond { margin-top: 0; }
.comment-reply-title { font-family: var(--font-display); font-size: calc(1.15rem * var(--heading-scale)); color: var(--heading-color); margin: 0 0 16px; }
.comment-form__field { margin: 0 0 16px; }
.comment-form__field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--color-black); }
.comment-form__field input[type="text"],
.comment-form__field input[type="email"],
.comment-form__field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  box-sizing: border-box;
}
.comment-form__field textarea { resize: vertical; }
.comment-notes, .logged-in-as { font-size: 0.82rem; color: var(--color-text-muted); margin: 0 0 16px; }

/* ==========================================================================
   Podcast player widget (dropdown + play button, up to 2 shows)
   ========================================================================== */
.podcast-player { display: flex; flex-direction: column; gap: 10px; }
.podcast-player__select {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  background: var(--color-bg);
}
.podcast-player__show-name { font-size: 0.86rem; font-weight: 700; color: var(--color-text-muted); }
.podcast-player__episode { display: flex; align-items: center; gap: 10px; }
.podcast-player__play {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
}
.podcast-player__play:hover { background: var(--color-accent-dark); }
.podcast-player__title { font-size: 0.86rem; color: var(--color-text); line-height: 1.3; }

/* ==========================================================================
   YouTube videos widget
   ========================================================================== */
.youtube-widget--single .youtube-widget__item { display: block; }
.youtube-widget--grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.youtube-widget__item .featured-video-trigger { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-sm); }
.youtube-widget__item .featured-video-trigger img { width: 100%; height: 100%; object-fit: cover; }
.youtube-widget__title { margin: 8px 0 0; font-size: 0.86rem; font-weight: 700; color: var(--color-text); line-height: 1.3; }

/* ==========================================================================
   Featured video (hero / single-post) — poster + play button that opens
   the real embed in a size-agnostic popup, so a vertical TikTok and a
   horizontal YouTube video both look natural without the hero banner
   itself needing to change shape.
   ========================================================================== */
.featured-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.featured-video-trigger img { width: 100%; display: block; }
.featured-video-trigger__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-video-trigger__play svg {
  background: rgba(0,0,0,0.65);
  color: #fff;
  border-radius: 50%;
  width: 64px; height: 64px; padding: 18px;
  transition: background 0.15s, transform 0.15s;
}
.featured-video-trigger:hover .featured-video-trigger__play svg {
  background: var(--color-accent);
  transform: scale(1.06);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.is-open { display: flex; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,12,0.82); }
.video-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  overflow-y: auto;
  background: #000;
  border-radius: var(--radius-md);
}
.video-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal__close:hover { background: var(--color-accent); }
.video-modal__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 160px;
}
.video-modal__body iframe,
.video-modal__body blockquote {
  max-width: 92vw;
  max-height: 92vh;
}
.video-modal__spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: thehub-spin 0.8s linear infinite;
}
@keyframes thehub-spin { to { transform: rotate(360deg); } }
.video-modal__error { color: #fff; padding: 24px; text-align: center; }

/* ==========================================================================
   5. Sidebar / widgets
   ========================================================================== */
.hub-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .hub-layout { grid-template-columns: 1fr; } }
.widget-area .widget,
.single-post-sidebar .widget {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.social-follow-list { display: flex; flex-direction: column; gap: 10px; }
.social-follow-list a {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 0.9rem;
}

/* ==========================================================================
   6. Single blog post
   ========================================================================== */
.single-post-wrap { padding: 0; }
.single-post-wrap--no-comments { padding-bottom: 40px; }

/* Full-bleed featured image at the very top of the page */
.single-post-thumb--top {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  margin: 0 0 32px;
}
.single-post-thumb--top img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .single-post-thumb--top, .single-post-thumb--top img { max-height: 280px; height: 280px; }
}

.single-post-header { margin: 0 0 20px; }
.single-post-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.single-post-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--color-ink);
  border-radius: 999px;
  padding: 5px 12px;
}
.single-post-badge:hover { background: var(--color-ink-light); }
.single-post-badge--format { background: var(--color-accent); }
.single-post-badge--format:hover { background: var(--color-accent-dark); }
.single-post-header h1 {
  font-family: var(--font-display);
  font-size: calc(clamp(1.8rem, 4vw, 2.4rem) * var(--heading-scale));
  margin: 0 0 8px;
  line-height: 1.15;
  color: var(--heading-color);
}
.single-post-header h1 a { color: inherit; }
.single-post-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--color-text-muted); font-size: 0.96rem;
}
.single-post-meta__info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.single-post-meta__item { display: inline-flex; align-items: center; gap: 4px; }
.single-post-meta img { width: 28px; height: 28px; border-radius: 50%; }
.single-post-meta__sep { color: var(--color-border); }
.single-post-thumb { max-width: 900px; margin: 0 auto 24px; border-radius: var(--radius-md); overflow: hidden; }

/* Post footer row: author bio card on the left, share buttons on the
   right, side by side. */
.single-post-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.author-card {
  display: flex;
  gap: 20px;
  flex: 1 1 320px;
  align-items: stretch;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 18px;
}
.author-card__avatar { flex: 0 0 auto; display: flex; }
.author-card__avatar img { width: auto; height: 100%; min-height: 84px; max-width: 140px; border-radius: 12px; display: block; object-fit: contain; }
.author-card__name { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; font-family: var(--font-body); }
.author-card__name a { color: var(--color-black); }
.author-card__name a:hover { color: var(--color-accent); }
.author-card__bio { margin: 0 0 12px; font-size: 0.92rem; color: var(--color-text-muted); line-height: 1.6; }
.author-card__social { display: flex; align-items: center; gap: 16px; }
.author-card__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
}
.author-card__social a:hover { color: var(--color-accent); }
.author-card__social svg { width: 18px; height: 18px; }

/* Content layout: centered by default, becomes a grid with optional
   left/right ad sidebars once either widget area has something in it. */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}
.single-post-layout--left { grid-template-columns: 240px 1fr; max-width: 1080px; }
.single-post-layout--right { grid-template-columns: 1fr 240px; max-width: 1080px; }
.single-post-layout--both { grid-template-columns: 240px 1fr 240px; max-width: 1180px; }
.single-post-sidebar { min-width: 0; }
@media (max-width: 900px) {
  .single-post-layout--left,
  .single-post-layout--right,
  .single-post-layout--both { grid-template-columns: 1fr; max-width: 760px; }
  .single-post-sidebar { order: 2; }
}

/* Comments box reuses the same grid so it matches the content pane's
   width exactly, without duplicating the sidebar ad widgets a second
   time — it just aligns into whichever column the content pane itself
   occupies for the current sidebar configuration. */
.single-post-ad-wrap { margin-top: 8px; }
.single-post-comments-wrap { margin-top: 8px; }
.single-post-layout--comments-only.single-post-layout--left .single-post-content,
.single-post-layout--comments-only.single-post-layout--both .single-post-content {
  grid-column: 2;
}
.single-post-layout--comments-only.single-post-layout--right .single-post-content {
  grid-column: 1;
}
@media (max-width: 900px) {
  .single-post-layout--comments-only .single-post-content { grid-column: 1; }
}

.single-post-top-spacer { padding-top: 40px; }

/* Content pane — visually separated card, not just bare text on the page
   background */
.single-post-content {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px 44px;
  font-size: 1.08rem;
  min-width: 0;
}
@media (max-width: 640px) { .single-post-content { padding: 24px 20px; } }
.single-post-content--comments { padding-top: 8px; }

.single-post-content p { margin: 0 0 1.2em; }
.single-post-body a { color: var(--color-accent); text-decoration: none; font-weight: inherit; }
.single-post-body a:hover { text-decoration: underline; }
.single-post-content p:empty { display: none; }
.single-post-content p:has(> br:only-child) { display: none; }
.single-post-content p:has(> iframe:only-child),
.single-post-content p:has(> blockquote:only-child) { margin-bottom: 0; }
.single-post-content h2 { font-family: var(--font-display); margin: 1.6em 0 0.6em; font-size: calc(1.5em * var(--heading-scale)); color: var(--heading-color); }
.single-post-content h3 { font-family: var(--font-display); margin: 1.6em 0 0.6em; font-size: calc(1.17em * var(--heading-scale)); color: var(--heading-color); }
.single-post-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5em 0; padding: 4px 0 4px 18px;
  color: var(--color-text-muted); font-style: italic;
}
.single-post-content img { margin: 1.5em 0; max-width: 100%; height: auto; }

/* WordPress' standard image alignment classes — these were never actually
   defined anywhere in the theme, so floated images had nothing to make
   them float; they just fell back to plain block display, stacking on
   their own line instead of wrapping with text like the original site. */
.single-post-content .alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.single-post-content .alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.single-post-content .aligncenter { display: block; float: none; margin-left: auto; margin-right: auto; }
.single-post-content .alignnone { float: none; }
.single-post-content::after { content: ""; display: table; clear: both; }

/* Older-style [caption] shortcode output wraps the image (and its
   alignment class) in a .wp-caption div rather than putting the class
   directly on the <img> — very likely present throughout migrated
   content. */
.single-post-content .wp-caption { max-width: 100%; }
.single-post-content .wp-caption.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.single-post-content .wp-caption.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.single-post-content .wp-caption.aligncenter { float: none; margin-left: auto; margin-right: auto; }
.single-post-content .wp-caption img { display: block; margin: 0; }
.single-post-content .wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; padding: 6px 4px 0; margin: 0; }

/* Video embeds (YouTube/Vimeo specifically, identified by source domain
   rather than a guessed class name) span the full width of the content
   pane, with height computed from a 16:9 aspect ratio so they don't
   stretch out of proportion. This is deliberately "opt-in" — only these
   two domains get the forced ratio — rather than applying it to every
   iframe and trying to exclude Twitter/X by a class name that may not
   actually be present on the iframe itself (that mismatch was the root
   cause of tweets rendering with a clipped/cut-off bottom: the wrong
   height was still being forced onto them). */
.single-post-content iframe[src*="youtube.com"],
.single-post-content iframe[src*="youtube-nocookie.com"],
.single-post-content iframe[src*="player.vimeo.com"] {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  max-width: 100%;
  border: none;
  margin: 1.5em 0;
  display: block;
}

/* Every other iframe (Twitter/X, and anything else) — full width only,
   no forced aspect ratio or height, so it can size itself based on its
   own content exactly as the platform's own script intends. */
.single-post-content iframe {
  max-width: 100%;
}

.single-post-content .wp-block-embed,
.single-post-content .wp-block-embed__wrapper,
.single-post-content figure.wp-embed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Card-style embeds (X/Twitter, Instagram, TikTok) are inherently narrow
   by platform design, but stretched to fill the pane per request. Nothing
   else about their appearance is touched — no border, no radius — the
   platform's own script fully controls how it renders; our border was
   creating a mismatched double-edge look against Twitter's own internal
   rounded card. Margin is half of what it was — width/spacing only. */
.single-post-content blockquote.twitter-tweet,
.single-post-content blockquote.instagram-media,
.single-post-content blockquote.tiktok-embed {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}
.single-post-content iframe[src*="platform.twitter.com"],
.single-post-content iframe[src*="twitframe.com"],
.single-post-content iframe[src*="x.com"] {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  margin: 0.75em 0 !important;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-title { font-size: 1.8rem; }
.footer-brand .custom-logo-link { display: inline-block; }
.footer-brand .custom-logo-link img { height: 150px; width: auto; max-width: 100%; }
.footer-brand .site-tagline { margin-top: 4px; }

.footer-grid h4 {
  color: var(--color-black);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 12px;
}
.footer-grid ul li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid ul a { color: var(--color-text-muted); }
.footer-grid ul a:hover { color: var(--color-accent); }
.footer-connect-hint { font-size: 0.8rem; color: var(--color-text-muted); }

/* ==========================================================================
   Social icons (header row + footer widget)
   ========================================================================== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-black);
  transition: background 0.15s, color 0.15s;
}
.social-icons a:hover { background: var(--color-bg); }
.social-icons__item--x a:hover { color: #000; background: #f0f0f0; }
.social-icons__item--instagram a:hover { color: #e1306c; background: #fdf0f4; }
.social-icons__item--facebook a:hover { color: #1877f2; background: #eef4fe; }
.social-icons__item--youtube a:hover { color: #ff0000; background: #fff0f0; }
.social-icons__item--tiktok a:hover { color: #000; background: #f0f0f0; }
.social-icons__item--discord a:hover { color: #5865f2; background: #eef0fe; }
.social-icons__item--email a:hover { color: var(--color-accent); background: var(--color-bg); }

.top-bar { padding: 8px 0 0; }
.top-bar__inner { display: flex; justify-content: flex-end; }
.top-bar__box {
  display: inline-flex;
  align-items: center;
  background: var(--color-ink);
  border-radius: 999px;
  padding: 3px 6px;
}
.social-icons--topbar a { width: 28px; height: 28px; color: rgba(255,255,255,0.75); }
.social-icons--topbar a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.social-icons--topbar svg { width: 14px; height: 14px; }

.social-icons--footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.social-icons--footer .social-icons__item { list-style: none; }
.social-icons--footer a {
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  gap: 10px;
  justify-content: flex-start;
  background: var(--color-bg);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-black);
}
.social-icons--footer svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-icons--footer .social-icons__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .social-icons--footer { grid-template-columns: 1fr; } }

.newsletter-form--footer { flex-direction: column; }
.newsletter-form--footer input[type="email"] { min-width: 0; width: 100%; }
.newsletter-form--footer .btn { width: 100%; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ==========================================================================
   8. Responsive nav
   ========================================================================== */
@media (max-width: 780px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; order: 3; flex: 1 1 100%; font-size: 0.86rem !important; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; flex-wrap: wrap; white-space: normal; }
  .primary-nav .sub-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: 0;
  }
  .primary-nav li.menu-item-has-children:hover > .sub-menu,
  .primary-nav li.menu-item-has-children:focus-within > .sub-menu {
    display: flex; /* always expanded on mobile, no hover available */
  }
  .site-header__inner { flex-wrap: wrap; }
  .site-branding { flex: 1 1 auto; }
}
