/*
Theme Name: SteelQueens
Theme URI: https://steelqueens.com
Description: Custom theme for SteelQueens — the definitive media site for female bodybuilding. Modern, fast, SEO-optimized.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steelqueens
*/

/* ========================================================================
   GOOGLE FONTS
   Loaded via wp_enqueue_style() in functions.php for performance.
   Fallback @import kept for standalone CSS usage:
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@400;500;600;700&display=swap');

/* ========================================================================
   CSS CUSTOM PROPERTIES (Dark Theme Palette)
   ======================================================================== */

:root {
  --sq-primary-dark: #0d0d0d;
  --sq-accent-gold: #d4af37;
  --sq-accent-gold-light: #e8c84a;
  --sq-accent-crimson: #c41e3a;
  --sq-bg: #121212;
  --sq-card-bg: #1a1a1a;
  --sq-card-bg-hover: #222222;
  --sq-text: #e8e8e8;
  --sq-text-muted: #888888;
  --sq-text-subtle: #666666;
  --sq-border: #2a2a2a;
  --sq-border-light: #333333;
  --sq-footer-bg: #0a0a0a;
  --sq-font-heading: 'Oswald', 'Impact', 'Arial Black', sans-serif;
  --sq-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================================================
   CSS RESET & BASE
   ======================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sq-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sq-text);
  background-color: var(--sq-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--sq-accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--sq-accent-crimson);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sq-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--sq-text);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1em;
}

/* Custom selection highlight */
::selection {
  background: var(--sq-accent-gold);
  color: #000;
}

::-moz-selection {
  background: var(--sq-accent-gold);
  color: #000;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--sq-bg);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sq-accent-gold);
}

/* ========================================================================
   LAYOUT
   ======================================================================== */

.sq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sq-content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}

.sq-main {
  flex: 1 1 0;
  min-width: 0;
}

.sq-sidebar {
  flex: 0 0 300px;
  min-width: 0;
}

@media (max-width: 768px) {
  .sq-content-area {
    flex-direction: column;
  }
  .sq-sidebar {
    flex: 1 1 auto;
  }
}

/* ========================================================================
   TOP BAR (Tagline)
   ======================================================================== */

.sq-top-bar {
  background: var(--sq-primary-dark);
  border-bottom: 1px solid var(--sq-border);
  padding: 0.4rem 0;
  text-align: center;
}

.sq-top-bar-text {
  font-family: var(--sq-font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sq-accent-gold);
  margin: 0;
}

/* ========================================================================
   HEADER
   ======================================================================== */

.sq-header {
  background: var(--sq-primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--sq-accent-gold);
}

.sq-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sq-site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sq-site-branding img {
  max-height: 50px;
  width: auto;
}

.sq-site-title {
  font-family: var(--sq-font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.sq-site-title a {
  color: var(--sq-accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-site-title a:hover {
  color: var(--sq-accent-gold-light);
  text-decoration: none;
}

.sq-site-description {
  display: none;
}

/* Mobile menu toggle */
.sq-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--sq-accent-gold);
  color: var(--sq-accent-gold);
  padding: 0.4rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.sq-menu-toggle:hover {
  background: var(--sq-accent-gold);
  color: #000;
}

/* Primary navigation */
.sq-primary-nav ul {
  display: flex;
  gap: 0.25rem;
}

.sq-primary-nav a {
  color: #aaa;
  padding: 0.5rem 0.75rem;
  display: block;
  font-family: var(--sq-font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  position: relative;
}

.sq-primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--sq-accent-gold);
  transition: width 0.3s ease;
}

.sq-primary-nav a:hover::after,
.sq-primary-nav .current-menu-item a::after,
.sq-primary-nav .current_page_item a::after {
  width: 80%;
}

.sq-primary-nav a:hover,
.sq-primary-nav .current-menu-item a,
.sq-primary-nav .current_page_item a {
  color: var(--sq-accent-gold);
  background: transparent;
  text-decoration: none;
}

@media (max-width: 768px) {
  .sq-menu-toggle {
    display: block;
  }
  .sq-primary-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .sq-primary-nav.is-open {
    display: block;
  }
  .sq-primary-nav ul {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .sq-primary-nav a::after {
    display: none;
  }
  .sq-header-inner {
    flex-wrap: wrap;
  }
}

/* ========================================================================
   HEADER AD ZONE
   ======================================================================== */

.sq-ad-header {
  background: var(--sq-primary-dark);
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sq-border);
}

.sq-ad-header:empty {
  display: none;
}

/* ========================================================================
   ARTICLE CARDS (Index / Archive)
   ======================================================================== */

.sq-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .sq-posts-grid {
    grid-template-columns: 1fr;
  }
}

.sq-card {
  background: var(--sq-card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
  border-color: var(--sq-accent-gold);
}

.sq-card-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2a2a1a 100%);
}

.sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Athlete cards use the HCFBB → Wikimedia → Iron Card cascade. Real
   photos are usually portrait, so we anchor toward the face (top-third)
   to avoid cropping it out of a 16:9 card frame. */
.sq-card-thumbnail.sq-thumb-athlete img {
  object-position: center 25%;
}

/* Iron Card SVG fallback is portrait-ish with the figure centered;
   contain so we don't crop the silhouette + name strip. */
.sq-card-thumbnail.sq-thumb-iron-card {
  background: radial-gradient(ellipse at center, rgba(184,115,51,0.10) 0%, transparent 60%),
              linear-gradient(180deg, #13151A 0%, #06070A 100%);
}
.sq-card-thumbnail.sq-thumb-iron-card img {
  object-fit: contain;
  padding: 6px 0;
}

.sq-card-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--sq-accent-gold);
  color: #000;
  font-family: var(--sq-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  z-index: 1;
}

.sq-card-category a {
  color: #000;
  text-decoration: none;
}

.sq-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sq-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.sq-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-card-title a:hover {
  color: var(--sq-accent-gold);
}

.sq-card-excerpt {
  font-size: 0.9rem;
  color: var(--sq-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.75rem;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-card-meta {
  font-size: 0.8rem;
  color: var(--sq-text-subtle);
  display: flex;
  gap: 1rem;
  margin-top: auto;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

/* ========================================================================
   SINGLE POST
   ======================================================================== */

.sq-single-header {
  margin-bottom: 1.5rem;
}

.sq-single-category {
  display: inline-block;
  background: var(--sq-accent-gold);
  color: #000;
  font-family: var(--sq-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.sq-single-category a {
  color: #000;
  text-decoration: none;
}

.sq-single-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: #fff;
}

@media (max-width: 480px) {
  .sq-single-title {
    font-size: 1.5rem;
  }
}

.sq-single-meta {
  font-size: 0.85rem;
  color: var(--sq-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sq-border);
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-featured-image {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.sq-featured-image img {
  width: 100%;
  height: auto;
}

/* External featured image (hotlinked via plugin) */
.sq-external-featured-image {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.sq-external-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* CSS-generated branded placeholder for missing featured images */
.sq-featured-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, rgba(212, 175, 55, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.sq-featured-placeholder::after {
  content: "SQ";
  font-family: var(--sq-font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.15);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Post content */
.sq-post-content {
  background: var(--sq-card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--sq-border);
}

@media (max-width: 480px) {
  .sq-post-content {
    padding: 1.25rem;
  }
}

.sq-entry-content {
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-entry-content h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sq-accent-gold);
}

.sq-entry-content h3 {
  margin-top: 1.5rem;
}

.sq-entry-content ul,
.sq-entry-content ol {
  margin: 0 0 1em 1.5em;
}

.sq-entry-content ul {
  list-style: disc;
}

.sq-entry-content ol {
  list-style: decimal;
}

.sq-entry-content li {
  margin-bottom: 0.3em;
}

.sq-entry-content blockquote {
  border-left: 4px solid var(--sq-accent-gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(212, 175, 55, 0.05);
  font-style: italic;
  color: var(--sq-text-muted);
}

.sq-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.sq-entry-content th,
.sq-entry-content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--sq-border);
  text-align: left;
}

.sq-entry-content th {
  background: var(--sq-primary-dark);
  color: var(--sq-accent-gold);
  font-weight: 600;
  font-family: var(--sq-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sq-entry-content td {
  color: var(--sq-text);
}

.sq-entry-content iframe {
  max-width: 100%;
  margin: 1rem 0;
}

/* ========================================================================
   SOURCE ATTRIBUTION (pipeline class)
   ======================================================================== */

.sq-source {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--sq-text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sq-border);
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-source a {
  color: var(--sq-accent-gold);
}

/* ========================================================================
   AI DISCLOSURE (pipeline class)
   ======================================================================== */

.sq-ai-disclosure {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--sq-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--sq-text-muted);
  line-height: 1.5;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-ai-disclosure a {
  color: var(--sq-accent-gold);
}

/* ========================================================================
   AFFILIATE NOTICE (pipeline class)
   ======================================================================== */

.sq-affiliate-notice {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--sq-border);
  border-left: 4px solid var(--sq-accent-gold);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--sq-text-muted);
  line-height: 1.5;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-affiliate-notice a {
  color: var(--sq-accent-gold);
  text-decoration: underline;
}

/* ========================================================================
   RELATED POSTS
   ======================================================================== */

.sq-related-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sq-accent-gold);
}

.sq-related-posts h2 {
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  border-bottom: none;
  color: var(--sq-accent-gold);
}

.sq-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .sq-related-grid {
    grid-template-columns: 1fr;
  }
}

.sq-related-card {
  background: var(--sq-card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: transform 0.2s, border-color 0.3s;
}

.sq-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--sq-accent-gold);
}

.sq-related-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, rgba(212, 175, 55, 0.2) 100%);
}

.sq-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-related-card-body {
  padding: 0.75rem;
}

.sq-related-card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sq-related-card-body h3 a {
  color: #fff;
  text-decoration: none;
}

.sq-related-card-body h3 a:hover {
  color: var(--sq-accent-gold);
}

.sq-related-date {
  font-size: 0.75rem;
  color: var(--sq-text-subtle);
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

/* ========================================================================
   IN-CONTENT AD ZONE
   ======================================================================== */

.sq-ad-in-content {
  margin: 1.5rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 4px;
}

.sq-ad-in-content:empty {
  display: none;
}

/* ========================================================================
   SIDEBAR
   ======================================================================== */

.sq-sidebar .widget {
  background: var(--sq-card-bg);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sq-border);
}

.sq-sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sq-accent-gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sq-accent-gold);
}

.sq-sidebar .widget ul {
  list-style: none;
}

.sq-sidebar .widget li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--sq-border);
}

.sq-sidebar .widget li:last-child {
  border-bottom: none;
}

.sq-sidebar .widget a {
  color: var(--sq-text);
  font-size: 0.9rem;
}

.sq-sidebar .widget a:hover {
  color: var(--sq-accent-gold);
}

.sq-ad-sidebar {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sq-ad-sidebar:empty {
  display: none;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.sq-footer {
  background: var(--sq-footer-bg);
  color: #aaa;
  padding: 0 0 1rem;
  margin-top: 2rem;
  border-top: 3px solid var(--sq-accent-gold);
}

.sq-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
}

.sq-footer-brand {
  flex: 1 1 280px;
}

.sq-footer-brand-name {
  font-family: var(--sq-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sq-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.sq-footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--sq-text-muted);
  font-family: var(--sq-font-body);
}

.sq-footer-nav {
  flex: 0 1 auto;
}

.sq-footer-nav-title {
  font-family: var(--sq-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sq-accent-gold);
  margin-bottom: 0.75rem;
}

.sq-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.sq-footer-nav a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-footer-nav a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-footer-categories {
  flex: 0 1 auto;
}

.sq-footer-categories-title {
  font-family: var(--sq-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sq-accent-gold);
  margin-bottom: 0.75rem;
}

.sq-footer-categories ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sq-footer-categories a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-footer-categories a:hover {
  color: var(--sq-accent-gold);
}

.sq-footer-tagline {
  text-align: center;
  font-family: var(--sq-font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sq-text-subtle);
  padding: 1.5rem 0 0;
  max-width: 1200px;
  margin: 1rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-footer-bottom {
  text-align: center;
  padding-top: 1rem;
  margin-top: 0.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.sq-footer-copyright {
  font-size: 0.8rem;
  color: var(--sq-text-subtle);
  font-family: var(--sq-font-body);
}

.sq-ad-footer {
  text-align: center;
  padding: 0.5rem 0;
  max-width: 1200px;
  margin: 1rem auto 0;
}

.sq-ad-footer:empty {
  display: none;
}

@media (max-width: 768px) {
  .sq-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .sq-footer-nav ul {
    justify-content: center;
  }
  .sq-footer-categories ul {
    align-items: center;
  }
}

/* ========================================================================
   PAGINATION
   ======================================================================== */

.sq-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.sq-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  background: var(--sq-card-bg);
  color: var(--sq-text);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--sq-border);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sq-pagination .page-numbers.current,
.sq-pagination .page-numbers:hover {
  background: var(--sq-accent-gold);
  color: #000;
  border-color: var(--sq-accent-gold);
}

/* ========================================================================
   SEARCH
   ======================================================================== */

.sq-search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sq-search-form input[type="search"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--sq-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--sq-font-body);
  background: var(--sq-card-bg);
  color: var(--sq-text);
  transition: border-color 0.2s;
}

.sq-search-form input[type="search"]:focus {
  border-color: var(--sq-accent-gold);
  outline: none;
}

.sq-search-form input[type="search"]::placeholder {
  color: var(--sq-text-subtle);
}

.sq-search-form button {
  background: var(--sq-accent-gold);
  color: #000;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-family: var(--sq-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.sq-search-form button:hover {
  background: var(--sq-accent-gold-light);
}

/* ========================================================================
   404 PAGE
   ======================================================================== */

.sq-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.sq-404-code {
  font-family: var(--sq-font-heading);
  font-size: 6rem;
  font-weight: 900;
  color: var(--sq-accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sq-404 h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #fff;
}

.sq-404 p {
  font-size: 1.1rem;
  color: var(--sq-text-muted);
  margin-bottom: 2rem;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-btn {
  display: inline-block;
  background: var(--sq-accent-gold);
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: var(--sq-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s;
}

.sq-btn:hover {
  background: var(--sq-accent-gold-light);
  color: #000;
  text-decoration: none;
}

/* ========================================================================
   PAGE TEMPLATE
   ======================================================================== */

.sq-page-content {
  background: var(--sq-card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--sq-border);
}

@media (max-width: 480px) {
  .sq-page-content {
    padding: 1.25rem;
  }
}

.sq-page-content h1 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sq-accent-gold);
  color: #fff;
}

/* ========================================================================
   BEEHIIV NEWSLETTER EMBED
   ======================================================================== */

.sq-newsletter-embed {
  background: linear-gradient(135deg, var(--sq-primary-dark) 0%, var(--sq-card-bg) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid var(--sq-accent-gold);
}

.sq-newsletter-embed h3 {
  color: var(--sq-accent-gold);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.sq-newsletter-embed p {
  color: var(--sq-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

/* ========================================================================
   ARCHIVE HEADER
   ======================================================================== */

.sq-archive-header {
  background: var(--sq-card-bg);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sq-border);
}

.sq-archive-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--sq-accent-gold);
}

.sq-archive-description {
  font-size: 0.9rem;
  color: var(--sq-text-muted);
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

.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;
}

.screen-reader-text:focus {
  background-color: var(--sq-accent-gold);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(212, 175, 55, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #000;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ========================================================================
   WORDPRESS CORE ALIGNMENT CLASSES
   ======================================================================== */

.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.aligncenter {
  display: block;
  margin: 1em auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  padding: 0.5rem 0;
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

@media print {
  .sq-header,
  .sq-footer,
  .sq-sidebar,
  .sq-ad-header,
  .sq-ad-in-content,
  .sq-ad-sidebar,
  .sq-ad-footer,
  .sq-related-posts,
  .sq-menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .sq-post-content {
    border: none;
    background: #fff;
  }
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: COMPETITION RESULTS
   ======================================================================== */

.sq-results-box {
  background: var(--sq-card-bg);
  border-top: 4px solid var(--sq-accent-gold);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sq-border);
  border-top: 4px solid var(--sq-accent-gold);
}

.sq-results-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.sq-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sq-results-table th {
  background: var(--sq-primary-dark);
  color: var(--sq-accent-gold);
  font-family: var(--sq-font-heading);
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sq-results-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--sq-border);
  color: var(--sq-text);
}

.sq-results-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.sq-results-table tr:nth-child(odd) {
  background: transparent;
}

.sq-results-table td:first-child {
  font-weight: 700;
  text-align: center;
  min-width: 2.5rem;
}

.sq-results-table tr:first-child td {
  background: rgba(212, 175, 55, 0.15);
  font-weight: 700;
}

.sq-federation-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  color: #fff;
  line-height: 1.4;
  vertical-align: middle;
}

.sq-federation-badge--ifbb {
  background: var(--sq-accent-gold);
  color: #000;
}

.sq-federation-badge--npc {
  background: #2a6496;
}

.sq-federation-badge--nabba {
  background: #7b4397;
}

.sq-federation-badge--wff {
  background: #c0392b;
}

.sq-results-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sq-results-summary > * {
  flex: 1 1 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--sq-text-muted);
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-results-summary strong {
  display: block;
  font-size: 1.1rem;
  color: var(--sq-accent-gold);
  margin-bottom: 0.15rem;
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: ATHLETE SPOTLIGHT
   ======================================================================== */

.sq-athlete-card {
  display: flex;
  gap: 1.5rem;
  background: var(--sq-card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  margin-bottom: 1.5rem;
}

.sq-athlete-card > img,
.sq-athlete-card > .sq-athlete-card-image {
  flex: 0 0 240px;
  object-fit: cover;
  min-height: 280px;
}

.sq-athlete-card-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .sq-athlete-card {
    flex-direction: column;
  }
  .sq-athlete-card > img,
  .sq-athlete-card > .sq-athlete-card-image {
    flex: none;
    width: 100%;
    max-height: 260px;
    min-height: auto;
  }
  .sq-athlete-card-body {
    padding: 1.25rem;
  }
}

.sq-athlete-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1rem 0;
}

.sq-athlete-stats > * {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--sq-border);
}

.sq-athlete-stats > *:nth-child(odd) {
  border-right: 1px solid var(--sq-border);
}

.sq-athlete-stats strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #999;
  margin-bottom: 0.15rem;
}

.sq-athlete-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.sq-athlete-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--sq-accent-gold);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.sq-athlete-social a:hover {
  background: var(--sq-accent-gold);
  color: #000;
  text-decoration: none;
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: PREP & TRAINING
   ======================================================================== */

.sq-training-overview {
  background: rgba(74, 144, 217, 0.08);
  border-left: 4px solid #4A90D9;
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sq-text);
}

.sq-key-takeaways {
  background: rgba(39, 174, 96, 0.08);
  border-left: 4px solid #27ae60;
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sq-key-takeaways h4 {
  margin-bottom: 0.5rem;
  color: #4cd97b;
}

.sq-key-takeaways ul {
  list-style: disc;
  margin: 0 0 0 1.25em;
}

.sq-key-takeaways li {
  margin-bottom: 0.35em;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sq-text);
}

.sq-difficulty-indicator {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  vertical-align: middle;
}

.sq-difficulty-indicator::before {
  content: "";
  display: none;
}

.sq-difficulty-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.sq-difficulty-dot.is-filled {
  background: var(--sq-accent-gold);
}

/* CSS-only variant using data attribute: .sq-difficulty-indicator[data-level="3"]
   renders 5 dots with the first 3 filled */
.sq-difficulty-indicator[data-level]::after {
  display: none;
}

.sq-difficulty-indicator[data-level] .sq-difficulty-dot:nth-child(1) { background: #444; }
.sq-difficulty-indicator[data-level] .sq-difficulty-dot:nth-child(2) { background: #444; }
.sq-difficulty-indicator[data-level] .sq-difficulty-dot:nth-child(3) { background: #444; }
.sq-difficulty-indicator[data-level] .sq-difficulty-dot:nth-child(4) { background: #444; }
.sq-difficulty-indicator[data-level] .sq-difficulty-dot:nth-child(5) { background: #444; }

.sq-difficulty-indicator[data-level="1"] .sq-difficulty-dot:nth-child(-n+1),
.sq-difficulty-indicator[data-level="2"] .sq-difficulty-dot:nth-child(-n+2),
.sq-difficulty-indicator[data-level="3"] .sq-difficulty-dot:nth-child(-n+3),
.sq-difficulty-indicator[data-level="4"] .sq-difficulty-dot:nth-child(-n+4),
.sq-difficulty-indicator[data-level="5"] .sq-difficulty-dot:nth-child(-n+5) {
  background: var(--sq-accent-gold);
}

.sq-training-disclaimer {
  background: rgba(240, 173, 78, 0.08);
  border: 1px solid rgba(240, 173, 78, 0.2);
  border-left: 4px solid #f0ad4e;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #d4a43a;
  line-height: 1.55;
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: NUTRITION
   ======================================================================== */

.sq-nutrition-snapshot {
  background: var(--sq-card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sq-border);
}

.sq-nutrition-snapshot h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.sq-macro-bar {
  display: flex;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #333;
}

.sq-macro-protein {
  background: #4A90D9;
}

.sq-macro-carbs {
  background: #7BC47F;
}

.sq-macro-fats {
  background: #F5A623;
}

.sq-macro-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 0 0.4rem;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 360px) {
  .sq-macro-bar span {
    font-size: 0;
  }
}

.sq-macro-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--sq-text-muted);
  margin-top: 0.5rem;
}

.sq-macro-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.sq-macro-legend .sq-legend-protein::before {
  background: #4A90D9;
}

.sq-macro-legend .sq-legend-carbs::before {
  background: #7BC47F;
}

.sq-macro-legend .sq-legend-fats::before {
  background: #F5A623;
}

.sq-meal-plan-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.sq-meal-plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sq-meal-plan-table th {
  background: #1a3a2a;
  color: #4cd97b;
  font-family: var(--sq-font-heading);
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sq-meal-plan-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--sq-border);
  color: var(--sq-text);
}

.sq-meal-plan-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.sq-nutrition-disclaimer {
  background: rgba(240, 173, 78, 0.08);
  border: 1px solid rgba(240, 173, 78, 0.2);
  border-left: 4px solid #f0ad4e;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #d4a43a;
  line-height: 1.55;
}

.sq-diet-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  background: rgba(39, 174, 96, 0.15);
  color: #4cd97b;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  vertical-align: middle;
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: INDUSTRY NEWS
   ======================================================================== */

.sq-news-dateline {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.65rem 1rem;
  border-radius: 6px 6px 0 0;
  font-size: 0.82rem;
  color: var(--sq-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0;
}

.sq-key-facts {
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid var(--sq-accent-gold);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sq-key-facts h4 {
  margin-bottom: 0.5rem;
  color: var(--sq-accent-gold);
}

.sq-key-facts ul {
  list-style: disc;
  margin: 0 0 0 1.25em;
}

.sq-key-facts li {
  margin-bottom: 0.35em;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sq-text);
}

.sq-analysis-box {
  background: rgba(74, 63, 138, 0.1);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(74, 63, 138, 0.2);
}

.sq-analysis-box h4,
.sq-analysis-box h3 {
  color: #9b8fdb;
  margin-bottom: 0.6rem;
}

.sq-analysis-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sq-text);
}

.sq-source-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--sq-accent-gold);
  color: #000;
  vertical-align: middle;
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: INTERVIEW
   ======================================================================== */

.sq-interviewee-card {
  display: flex;
  gap: 1rem;
  background: var(--sq-card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  margin-bottom: 1.5rem;
  padding: 1rem;
  align-items: center;
}

.sq-interviewee-card > img,
.sq-interviewee-card > .sq-interviewee-image {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.sq-interviewee-card-body {
  flex: 1;
  min-width: 0;
}

.sq-interviewee-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.sq-interviewee-card-body p {
  font-size: 0.85rem;
  color: var(--sq-text-muted);
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .sq-interviewee-card {
    flex-direction: column;
    text-align: center;
  }
  .sq-interviewee-card > img,
  .sq-interviewee-card > .sq-interviewee-image {
    margin: 0 auto;
  }
}

.sq-qa-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sq-accent-gold);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.sq-qa-question::before {
  content: "Q: ";
  font-weight: 800;
}

.sq-qa-answer {
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--sq-text);
}

.sq-pull-quote {
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  color: var(--sq-text);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  border-top: 3px solid var(--sq-accent-gold);
  border-bottom: 3px solid var(--sq-accent-gold);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .sq-pull-quote {
    font-size: 1.1rem;
    padding: 1.25rem 1rem;
  }
}

/* ========================================================================
   CATEGORY-SPECIFIC STYLES: VIDEO SPOTLIGHT
   ======================================================================== */

.sq-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  background: #000;
}

.sq-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sq-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.sq-video-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sq-text);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.sq-video-channel::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sq-accent-gold);
  flex-shrink: 0;
}

.sq-video-meta .sq-video-date,
.sq-video-meta .sq-video-duration {
  font-size: 0.8rem;
  color: var(--sq-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.sq-key-moments {
  margin-bottom: 1.5rem;
}

.sq-key-moments h4 {
  margin-bottom: 0.6rem;
}

.sq-key-moments ol {
  list-style: decimal;
  margin: 0 0 0 1.5em;
}

.sq-key-moments li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sq-timestamp {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--sq-accent-gold);
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.4rem;
}

.sq-timestamp:hover {
  text-decoration: underline;
}

/* ========================================================================
   GENERAL CATEGORY DISCLAIMERS
   ======================================================================== */

.sq-disclaimer {
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.55;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.sq-disclaimer::before {
  content: "\26A0";
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.sq-disclaimer--warning {
  background: rgba(240, 173, 78, 0.08);
  border: 1px solid rgba(240, 173, 78, 0.2);
  border-left: 4px solid #f0ad4e;
  color: #d4a43a;
}

.sq-disclaimer--warning::before {
  content: "\26A0\FE0F";
}

.sq-disclaimer--info {
  background: rgba(74, 144, 217, 0.08);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-left: 4px solid #4A90D9;
  color: #6bb3f0;
}

.sq-disclaimer--info::before {
  content: "\2139\FE0F";
}

/* ========================================================================
   CATEGORY-SPECIFIC RESPONSIVE OVERRIDES
   ======================================================================== */

@media (max-width: 640px) {
  /* Tables scroll horizontally on mobile */
  .sq-results-table-wrap,
  .sq-meal-plan-table-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Results summary stacks */
  .sq-results-summary {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Athlete stats single column on very small screens */
  .sq-athlete-stats {
    grid-template-columns: 1fr;
  }

  .sq-athlete-stats > *:nth-child(odd) {
    border-right: none;
  }

  /* Pull quote smaller */
  .sq-pull-quote {
    margin: 1.5rem 0;
  }

  /* Video meta wraps */
  .sq-video-meta {
    gap: 0.4rem;
  }

  /* Disclaimer full width */
  .sq-disclaimer {
    border-radius: 0;
  }
}

/* ========================================================================
   CATEGORY TEMPLATE: ADDITIONAL STRUCTURAL STYLES
   ======================================================================== */

/* --- Competition Results template additions --- */

.sq-results-box-title {
  font-size: 1.125rem;
  color: var(--sq-accent-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sq-border);
}

.sq-results-box-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sq-results-box-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sq-results-box-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sq-text-muted);
}

.sq-results-box-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sq-text);
}

.sq-full-results {
  margin-top: 1.5rem;
  border: 1px solid var(--sq-border);
  border-radius: 6px;
  overflow: hidden;
}

.sq-full-results details {
  padding: 0;
}

.sq-full-results summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  list-style: none;
}

.sq-full-results summary::-webkit-details-marker {
  display: none;
}

.sq-full-results summary::before {
  content: "+ ";
  font-weight: 700;
  color: var(--sq-accent-gold);
}

.sq-full-results details[open] summary::before {
  content: "- ";
}

.sq-full-results summary h2 {
  display: inline;
  font-size: 1.125rem;
  margin: 0;
  border-bottom: none;
}

.sq-full-results-content {
  padding: 1.25rem;
}

@media (max-width: 480px) {
  .sq-results-box-meta {
    grid-template-columns: 1fr;
  }
}

/* --- Athlete Spotlight template additions --- */

.sq-athlete-card-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sq-athlete-card-photo {
  flex: 0 0 180px;
  border-radius: 6px;
  overflow: hidden;
}

.sq-athlete-card-photo .sq-featured-image,
.sq-athlete-card-photo .sq-external-featured-image,
.sq-athlete-card-photo .sq-featured-placeholder {
  margin-bottom: 0;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
}

.sq-athlete-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-athlete-card-info {
  flex: 1;
  min-width: 0;
}

.sq-athlete-card-name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.sq-athlete-stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sq-athlete-stats-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

.sq-athlete-stats-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.sq-athlete-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--sq-accent-gold);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.sq-athlete-social-link:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
  text-decoration: none;
}

.sq-entry-content-athlete {
  font-size: 1.05rem;
  line-height: 1.8;
}

.sq-career-highlights {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sq-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.sq-career-highlights h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sq-accent-gold);
}

.sq-career-highlights-content ul {
  list-style: disc;
  margin-left: 1.25rem;
}

.sq-career-highlights-content li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

/* Athlete card uses dark background from the sq-post-athlete-spotlight context */
.sq-post-athlete-spotlight .sq-athlete-card {
  background: linear-gradient(135deg, var(--sq-primary-dark) 0%, #1a1a2a 100%);
  color: #fff;
  padding: 1.5rem;
  border: 1px solid var(--sq-accent-gold);
}

@media (max-width: 600px) {
  .sq-athlete-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sq-athlete-card-photo {
    flex: 0 0 auto;
    width: 160px;
  }
}

/* --- Prep & Training template additions --- */

.sq-training-overview-title {
  font-size: 1.125rem;
  color: var(--sq-accent-gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sq-border);
}

.sq-training-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.sq-training-overview-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sq-training-overview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sq-text-muted);
}

.sq-training-overview-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sq-text);
}

.sq-difficulty-dot-filled {
  background: var(--sq-accent-gold);
}

.sq-difficulty-dot-empty {
  background: #444;
}

.sq-key-takeaways h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sq-key-takeaways-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .sq-training-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Nutrition template additions --- */

.sq-nutrition-snapshot-title {
  font-size: 1.125rem;
  color: var(--sq-accent-gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sq-border);
}

.sq-macro-bar-wrapper {
  margin-bottom: 1rem;
}

.sq-macro-bar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.sq-macro-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--sq-text-muted);
  font-size: 0.8rem;
}

.sq-macro-legend-item::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.sq-macro-legend-protein::before {
  background: #4A90D9;
}

.sq-macro-legend-carbs::before {
  background: #7BC47F;
}

.sq-macro-legend-fats::before {
  background: #F5A623;
}

.sq-nutrition-snapshot-calories {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.75rem;
}

.sq-nutrition-snapshot-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sq-text-muted);
}

.sq-nutrition-snapshot-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sq-accent-gold);
}

.sq-nutrition-snapshot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sq-nutrition-snapshot-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  background: rgba(39, 174, 96, 0.15);
  color: #4cd97b;
}

/* --- Industry News template additions --- */

.sq-news-dateline-separator {
  color: #ccc;
}

.sq-key-facts-title {
  font-size: 1rem;
  color: var(--sq-accent-gold);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sq-border);
}

.sq-key-facts-content ul {
  list-style: disc;
  margin: 0 0 0 1.25em;
}

.sq-key-facts-content li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--sq-text);
}

.sq-analysis-box h2 {
  font-size: 1.125rem;
  color: #9b8fdb;
  margin-bottom: 0.6rem;
  border-bottom: none;
}

.sq-analysis-box-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sq-text);
}

/* --- Interview template additions --- */

.sq-interviewee-card-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.sq-interviewee-card-photo {
  flex: 0 0 100px;
  border-radius: 50%;
  overflow: hidden;
}

.sq-interviewee-card-photo .sq-featured-image,
.sq-interviewee-card-photo .sq-external-featured-image,
.sq-interviewee-card-photo .sq-featured-placeholder {
  margin-bottom: 0;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.sq-interviewee-card-photo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.sq-interviewee-card-info {
  flex: 1;
  min-width: 0;
}

.sq-interviewee-card-name {
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 0.25rem;
  border-bottom: none;
}

.sq-interviewee-card-title {
  font-size: 0.9rem;
  color: var(--sq-accent-gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.sq-interviewee-card-bio {
  font-size: 0.85rem;
  color: var(--sq-text-muted);
  line-height: 1.5;
  margin: 0;
}

.sq-notable-quotes {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sq-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.sq-notable-quotes h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sq-accent-gold);
}

@media (max-width: 600px) {
  .sq-interviewee-card-inner {
    flex-direction: column;
    text-align: center;
  }
  .sq-interviewee-card-photo {
    flex: 0 0 auto;
    margin: 0 auto;
  }
}

/* --- Video Spotlight template additions --- */

.sq-video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.sq-video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sq-video-meta-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  color: var(--sq-text-muted);
  display: block;
}

.sq-video-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
  color: var(--sq-text);
}

.sq-key-moments h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sq-accent-gold);
}

.sq-key-moments-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sq-key-moments-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sq-border);
}

.sq-key-moments-item:last-child {
  border-bottom: none;
}

.sq-key-moments-desc {
  font-size: 0.9rem;
  color: var(--sq-text);
  line-height: 1.5;
}

/* ========================================================================
   HERO SECTION (Front Page Only)
   ======================================================================== */

.sq-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  margin-bottom: 1rem;
}

.sq-hero-title {
  font-family: var(--sq-font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--sq-accent-gold) 0%, #f0d060 40%, var(--sq-accent-gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.sq-hero-subtitle {
  font-family: var(--sq-font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sq-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .sq-hero-title {
    font-size: 2.25rem;
  }
  .sq-hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
  .sq-hero {
    padding: 2rem 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .sq-hero-title {
    font-size: 1.75rem;
  }
}

/* ========================================================================
   ATHLETE DIRECTORY PAGE
   ======================================================================== */

.sq-athletes-page {
  padding: 2rem 0 3rem;
}

.sq-athletes-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sq-athletes-header .sq-page-title {
  font-family: var(--sq-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sq-accent-gold);
  margin: 0 0 0.5rem;
}

.sq-page-subtitle {
  color: var(--sq-text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.sq-athletes-controls {
  margin-bottom: 2rem;
}

.sq-search-wrap {
  margin-bottom: 1rem;
}

.sq-athlete-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1c2028;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #f2efe8;
  font-family: var(--sq-font-body);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.sq-athlete-search-input::placeholder {
  color: rgba(242,239,232,0.55);
  opacity: 1;
}
.sq-athlete-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sq-athlete-search-input::-webkit-input-placeholder { color: rgba(242,239,232,0.55); }

.sq-athlete-search-input:focus {
  outline: none;
  border-color: var(--sq-accent-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.sq-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sq-filter-btn {
  padding: 0.5rem 1rem;
  background: var(--sq-card-bg);
  border: 1px solid var(--sq-border-light);
  border-radius: 20px;
  color: var(--sq-text);
  cursor: pointer;
  font-family: var(--sq-font-body);
  font-size: 0.85rem;
  transition: all 0.2s;
  line-height: 1.2;
}

.sq-filter-btn:hover {
  background: var(--sq-card-bg-hover);
  border-color: var(--sq-accent-gold);
  color: var(--sq-accent-gold);
}

.sq-filter-btn.active {
  background: var(--sq-accent-gold);
  color: #000;
  border-color: var(--sq-accent-gold);
  font-weight: 600;
}

.sq-athletes-count {
  color: var(--sq-text-muted);
  font-size: 0.85rem;
}

.sq-athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.sq-athletes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--sq-text-muted);
}

.sq-athletes-empty p {
  margin: 0.25rem 0;
}

.sq-athlete-dir-card {
  background: var(--sq-card-bg);
  border: 1px solid var(--sq-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sq-athlete-dir-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
  border-color: var(--sq-border-light);
}

.sq-athlete-dir-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sq-accent-gold), var(--sq-accent-crimson));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sq-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0 auto 0.75rem;
}

.sq-athlete-dir-name {
  font-family: var(--sq-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--sq-text);
}

.sq-athlete-dir-division {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--sq-accent-gold);
}

/* Division-specific badge colors */
.sq-badge-women-s-bodybuilding {
  background: rgba(196, 30, 58, 0.2);
  color: #e8425a;
}

.sq-badge-women-s-physique {
  background: rgba(100, 149, 237, 0.2);
  color: #6495ed;
}

.sq-badge-figure {
  background: rgba(147, 112, 219, 0.2);
  color: #9370db;
}

.sq-badge-bikini {
  background: rgba(255, 105, 180, 0.2);
  color: #ff69b4;
}

.sq-badge-wellness {
  background: rgba(80, 200, 120, 0.2);
  color: #50c878;
}

.sq-badge-fitness {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}

.sq-athlete-dir-meta {
  font-size: 0.8rem;
  color: var(--sq-text-muted);
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.sq-athlete-dir-meta span:empty {
  display: none;
}

.sq-athlete-dir-titles {
  font-size: 0.75rem;
  color: var(--sq-accent-gold);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.sq-athlete-dir-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.sq-athlete-dir-links a {
  font-size: 0.8rem;
  color: var(--sq-accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.sq-athlete-dir-links a:hover {
  color: var(--sq-accent-gold-light);
  text-decoration: underline;
}

.sq-athletes-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--sq-card-bg);
  border: 1px solid var(--sq-border);
  border-radius: 8px;
}

.sq-athletes-cta h3 {
  font-family: var(--sq-font-heading);
  font-size: 1.25rem;
  color: var(--sq-text);
  margin: 0 0 0.5rem;
}

.sq-athletes-cta p {
  color: var(--sq-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.sq-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--sq-accent-gold);
  color: #000;
  border-radius: 6px;
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s;
}

.sq-cta-button:hover {
  background: var(--sq-accent-gold-light);
}

.sq-noscript-msg {
  text-align: center;
  padding: 2rem;
  color: var(--sq-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .sq-athletes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .sq-athletes-header .sq-page-title {
    font-size: 1.75rem;
  }
  .sq-page-subtitle {
    font-size: 0.95rem;
  }
  .sq-filter-buttons {
    gap: 0.375rem;
  }
  .sq-filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .sq-athletes-grid {
    grid-template-columns: 1fr;
  }
  .sq-athletes-page {
    padding: 1rem 0 2rem;
  }
}

/* ========================================================================
   HOMEPAGE: FULL-WIDTH MAIN (no sidebar on front page)
   ======================================================================== */

.sq-main--home {
  padding: 2rem 0;
}

/* ========================================================================
   HOMEPAGE: FEATURED ARTICLE
   ======================================================================== */

.sq-featured-article {
  margin-bottom: 2.5rem;
}

.sq-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--sq-card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}

.sq-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.18);
  border-color: var(--sq-accent-gold);
}

.sq-featured-card-image {
  display: block;
  text-decoration: none;
}

.sq-featured-card-image .sq-card-thumbnail {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.sq-featured-card-image .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-featured-card-image .sq-featured-placeholder {
  height: 100%;
  margin-bottom: 0;
  border-radius: 0;
}

.sq-featured-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sq-featured-card-body .sq-card-category {
  position: static;
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.sq-featured-card-title {
  font-size: 1.625rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.sq-featured-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-featured-card-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-featured-card-excerpt {
  font-size: 0.95rem;
  color: var(--sq-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-family: var(--sq-font-body);
  text-transform: none;
  letter-spacing: normal;
}

.sq-featured-card-body .sq-card-meta {
  margin-top: auto;
}

@media (max-width: 768px) {
  .sq-featured-card {
    grid-template-columns: 1fr;
  }

  .sq-featured-card-body {
    padding: 1.25rem;
  }

  .sq-featured-card-title {
    font-size: 1.3rem;
  }
}

/* ========================================================================
   HOMEPAGE: CATEGORY SECTION ROWS
   ======================================================================== */

.sq-category-section {
  margin-bottom: 2.5rem;
}

.sq-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--sq-accent-gold);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.sq-section-title {
  font-family: var(--sq-font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sq-text);
  margin: 0;
}

.sq-view-all {
  font-family: var(--sq-font-body);
  font-size: 0.85rem;
  color: var(--sq-accent-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sq-view-all:hover {
  color: var(--sq-accent-crimson);
  text-decoration: none;
}

.sq-category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sq-category-card {
  background: var(--sq-card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sq-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
  border-color: var(--sq-accent-gold);
}

.sq-category-card-image {
  display: block;
  text-decoration: none;
}

.sq-category-card-image .sq-card-thumbnail {
  aspect-ratio: 16 / 9;
}

.sq-category-card-image .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-category-card-image .sq-featured-placeholder {
  margin-bottom: 0;
  border-radius: 0;
}

.sq-category-card-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sq-category-card-body .sq-card-category {
  position: static;
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
}

.sq-category-card-title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.sq-category-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-category-card-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-category-card-body .sq-card-meta {
  font-size: 0.75rem;
  margin-top: auto;
}

/* ========================================================================
   HOMEPAGE: CATEGORY BADGE COLORS
   ======================================================================== */

.sq-badge-competition-results { background: #d4af37; color: #000; }
.sq-badge-competition-results a { color: #000; }
.sq-badge-athlete-spotlight { background: #c41e3a; color: #fff; }
.sq-badge-athlete-spotlight a { color: #fff; }
.sq-badge-prep-training { background: #2196f3; color: #fff; }
.sq-badge-prep-training a { color: #fff; }
.sq-badge-video-spotlight { background: #f44336; color: #fff; }
.sq-badge-video-spotlight a { color: #fff; }
.sq-badge-industry-news { background: #9c27b0; color: #fff; }
.sq-badge-industry-news a { color: #fff; }
.sq-badge-nutrition { background: #4caf50; color: #fff; }
.sq-badge-nutrition a { color: #fff; }
.sq-badge-interview { background: #ff9800; color: #000; }
.sq-badge-interview a { color: #000; }

/* ========================================================================
   HOMEPAGE: CATEGORY ROW RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
  .sq-category-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sq-category-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .sq-section-header {
    padding-left: 0.75rem;
  }

  .sq-section-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .sq-category-row {
    grid-template-columns: 1fr;
  }

  .sq-category-section {
    margin-bottom: 2rem;
  }
}

/* ========================================================================
   HOMEPAGE V2: NEWS MAGAZINE LAYOUT
   ======================================================================== */

/* --- General homepage section spacing --- */

.sq-hp-section {
  margin-bottom: 2.5rem;
}

/* --- SECTION 1: Hero Grid (featured + side cards) --- */

.sq-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sq-hero-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
  background: var(--sq-card-bg);
}

.sq-hero-main-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sq-hero-main-link:hover {
  text-decoration: none;
}

.sq-hero-main-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sq-hero-main-image .sq-card-thumbnail {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.sq-hero-main-image .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-hero-main-image .sq-featured-placeholder {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.sq-hero-main-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
}

.sq-hero-main-overlay .sq-card-category {
  position: static;
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}

.sq-hero-main-title {
  font-family: var(--sq-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sq-hero-main-excerpt {
  font-family: var(--sq-font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-hero-main-readmore {
  font-family: var(--sq-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sq-accent-gold);
  transition: color 0.2s ease;
}

.sq-hero-main-link:hover .sq-hero-main-readmore {
  color: var(--sq-accent-gold-light);
}

.sq-hero-main-link:hover .sq-hero-main-title {
  color: var(--sq-accent-gold);
}

/* Hero side cards stack */
.sq-hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sq-side-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--sq-card-bg);
  border-radius: 6px;
  border: 1px solid var(--sq-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
  flex: 1;
  min-height: 0;
}

.sq-side-card:hover {
  border-color: var(--sq-accent-gold);
  transform: translateX(2px);
}

.sq-side-card-thumb {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
}

.sq-side-card-thumb .sq-card-thumbnail {
  aspect-ratio: 1 / 1;
  width: 100px;
  height: 100%;
}

.sq-side-card-thumb .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-side-card-thumb .sq-featured-placeholder {
  width: 100px;
  height: 100%;
  min-height: 70px;
  margin-bottom: 0;
  border-radius: 4px;
  aspect-ratio: auto;
}

.sq-side-card-thumb .sq-featured-placeholder::after {
  font-size: 1.5rem;
}

.sq-side-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.sq-side-card-title {
  font-family: var(--sq-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-side-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-side-card-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-side-card-date {
  font-family: var(--sq-font-body);
  font-size: 0.75rem;
  color: var(--sq-text-subtle);
  text-transform: none;
  letter-spacing: normal;
}

/* Small category badge variant */
.sq-card-category--small {
  position: static !important;
  display: inline-block;
  width: fit-content;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.25rem;
}

/* Tiny category badge for trending */
.sq-card-category--tiny {
  position: static !important;
  display: inline-block;
  width: fit-content;
  font-size: 0.55rem;
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
}

/* --- SECTION 2 & 6: Horizontal row of 4 compact cards --- */

.sq-hp-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sq-hp-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sq-hp-compact-card {
  background: var(--sq-card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sq-hp-compact-card:hover {
  transform: translateY(-2px);
  border-color: var(--sq-accent-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.sq-hp-compact-card-image {
  display: block;
  text-decoration: none;
}

.sq-hp-compact-card-image .sq-card-thumbnail {
  aspect-ratio: 16 / 9;
}

.sq-hp-compact-card-image .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-hp-compact-card-image .sq-featured-placeholder {
  margin-bottom: 0;
  border-radius: 0;
}

.sq-hp-compact-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
}

.sq-hp-compact-card-title {
  font-family: var(--sq-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-hp-compact-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-hp-compact-card-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-hp-compact-card-date {
  font-family: var(--sq-font-body);
  font-size: 0.72rem;
  color: var(--sq-text-subtle);
  margin-top: auto;
  text-transform: none;
  letter-spacing: normal;
}

/* --- SECTION 3: Split layout (Athlete Spotlight + Trending) --- */

.sq-split-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.sq-split-left,
.sq-split-right {
  min-width: 0;
}

/* Athlete feature: large card + stacked small cards */
.sq-athlete-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

.sq-athlete-feature-large {
  background: var(--sq-card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: border-color 0.2s ease;
}

.sq-athlete-feature-large:hover {
  border-color: var(--sq-accent-gold);
}

.sq-athlete-feature-large-image {
  display: block;
  text-decoration: none;
}

.sq-athlete-feature-large-image .sq-card-thumbnail {
  aspect-ratio: 4 / 3;
}

.sq-athlete-feature-large-image .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-athlete-feature-large-image .sq-featured-placeholder {
  margin-bottom: 0;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.sq-athlete-feature-large-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sq-athlete-feature-large-title {
  font-family: var(--sq-font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-athlete-feature-large-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.sq-athlete-feature-large-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-athlete-feature-large-excerpt {
  font-family: var(--sq-font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--sq-text-muted);
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-athlete-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Trending numbered list */
.sq-trending-list {
  background: var(--sq-card-bg);
  border-radius: 6px;
  border: 1px solid var(--sq-border);
  padding: 0.25rem 0;
}

.sq-trending-list--standalone {
  max-width: 600px;
}

.sq-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sq-border);
  transition: background 0.2s ease;
}

.sq-trending-item:last-child {
  border-bottom: none;
}

.sq-trending-item:hover {
  background: rgba(212, 175, 55, 0.04);
}

.sq-trending-number {
  font-family: var(--sq-font-heading);
  font-size: 1.5rem;
  color: var(--sq-accent-gold);
  font-weight: 700;
  min-width: 30px;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.sq-trending-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.sq-trending-item-title {
  font-family: var(--sq-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-trending-item-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-trending-item-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-trending-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sq-font-body);
  font-size: 0.72rem;
  color: var(--sq-text-subtle);
  text-transform: none;
  letter-spacing: normal;
}

/* --- SECTION 4: Dual compact lists (Training + Nutrition) --- */

.sq-dual-list-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sq-dual-list-col {
  min-width: 0;
}

.sq-compact-list {
  background: var(--sq-card-bg);
  border-radius: 6px;
  border: 1px solid var(--sq-border);
}

.sq-list-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sq-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s ease;
}

.sq-list-item:last-child {
  border-bottom: none;
}

.sq-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sq-list-item-border {
  width: 3px;
  align-self: stretch;
  min-height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sq-list-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.sq-list-item-title {
  font-family: var(--sq-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-list-item-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-list-item-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-list-item-date {
  font-family: var(--sq-font-body);
  font-size: 0.72rem;
  color: var(--sq-text-subtle);
  text-transform: none;
  letter-spacing: normal;
}

/* --- SECTION 5: Video Spotlight cards with play overlay --- */

.sq-video-card {
  background: var(--sq-card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sq-video-card:hover {
  transform: translateY(-2px);
  border-color: #f44336;
  box-shadow: 0 4px 16px rgba(244, 67, 54, 0.15);
}

.sq-video-card-image {
  display: block;
  text-decoration: none;
  position: relative;
}

.sq-video-card-image .sq-card-thumbnail {
  aspect-ratio: 16 / 9;
}

.sq-video-card-image .sq-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-video-card-image .sq-featured-placeholder {
  margin-bottom: 0;
  border-radius: 0;
}

.sq-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(244, 67, 54, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  pointer-events: none;
  padding-left: 3px;
}

.sq-video-card:hover .sq-video-play-btn {
  background: rgba(244, 67, 54, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.sq-video-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.sq-video-card-title {
  font-family: var(--sq-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sq-video-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sq-video-card-title a:hover {
  color: var(--sq-accent-gold);
  text-decoration: none;
}

.sq-video-card-date {
  font-family: var(--sq-font-body);
  font-size: 0.72rem;
  color: var(--sq-text-subtle);
  margin-top: auto;
  text-transform: none;
  letter-spacing: normal;
}

/* --- "More Articles" / Older Posts link --- */

.sq-hp-older-link {
  text-align: center;
  margin-top: 1.5rem;
}

/* ========================================================================
   HOMEPAGE V2: RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
  .sq-hp-row-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .sq-athlete-feature-grid {
    grid-template-columns: 1fr;
  }

  .sq-athlete-feature-stack {
    flex-direction: row;
  }

  .sq-athlete-feature-stack .sq-side-card {
    flex: 1;
  }
}

@media (max-width: 768px) {
  /* Hero grid stacks */
  .sq-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sq-hero-main {
    min-height: 300px;
  }

  .sq-hero-main-title {
    font-size: 1.35rem;
  }

  .sq-hero-main-overlay {
    padding: 1.25rem;
  }

  .sq-hero-side {
    gap: 0.5rem;
  }

  /* 4-column row becomes 2 */
  .sq-hp-row-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* 3-column row becomes 2 */
  .sq-hp-row-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Split section stacks */
  .sq-split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Athlete feature grid stacks */
  .sq-athlete-feature-grid {
    grid-template-columns: 1fr;
  }

  .sq-athlete-feature-stack {
    flex-direction: column;
  }

  /* Dual list stacks */
  .sq-dual-list-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Section titles smaller */
  .sq-hp-section .sq-section-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .sq-hero-main {
    min-height: 250px;
  }

  .sq-hero-main-title {
    font-size: 1.15rem;
  }

  .sq-hero-main-excerpt {
    display: none;
  }

  .sq-hero-main-overlay {
    padding: 1rem;
  }

  /* All multi-column rows become single column */
  .sq-hp-row-4,
  .sq-hp-row-3 {
    grid-template-columns: 1fr;
  }

  .sq-side-card {
    grid-template-columns: 80px 1fr;
  }

  .sq-side-card-thumb .sq-card-thumbnail {
    width: 80px;
  }

  .sq-side-card-thumb .sq-featured-placeholder {
    width: 80px;
  }

  .sq-hp-section {
    margin-bottom: 2rem;
  }

  .sq-trending-number {
    font-size: 1.25rem;
    min-width: 26px;
  }
}

/* ========================================================================
   INSTAGRAM EMBED STYLING
   ======================================================================== */

.sq-ig-embed,
.instagram-media {
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 1rem 0 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

/* When used as featured image in cards - crop and hide chrome */
.sq-card-thumbnail .instagram-media,
.sq-card-thumbnail .sq-ig-embed {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Instagram embed as featured image - show only the image part */
.sq-ig-featured {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.sq-ig-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide Instagram embed footer/header when used as card image */
.sq-ig-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.sq-ig-card-image iframe {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    border: none;
}

/* Full Instagram embed in article body */
.sq-entry-content .instagram-media {
    margin: 1.5rem auto !important;
    background: var(--sq-card-bg, #1a1a1a) !important;
    border: 1px solid var(--sq-border, #2a2a2a) !important;
}

/* Instagram embed loading placeholder */
.sq-ig-embed:not([data-instgrm-processed]) {
    background: var(--sq-card-bg, #1a1a1a);
    border: 1px solid var(--sq-border, #2a2a2a);
    padding: 1rem;
    text-align: center;
    color: var(--sq-text-muted, #888);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sq-ig-embed:not([data-instgrm-processed])::after {
    content: 'Loading Instagram...';
    font-size: 0.85rem;
}

/* Footer Legal Links */
.sq-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--sq-border, #2a2a2a);
    margin-top: 1rem;
}

.sq-footer-legal a {
    color: var(--sq-text-muted, #888);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.sq-footer-legal a:hover {
    color: var(--sq-accent-gold, #d4af37);
}
