/* WOWSight Theme C - Combined: Serif display + Modern minimal + Clean cards */
:root {
  --ws-primary: #C31023;
  --ws-primary-hover: #A00D1C;
  --ws-bg: #FAFAFA;
  --ws-surface: #FFFFFF;
  --ws-text: #18181B;
  --ws-text-secondary: #71717A;
  --ws-border: #E4E4E7;
  --ws-radius: 4px;
  --ws-transition: 180ms ease;
  --ws-font-body: 'Chocolate Classical Sans', -apple-system, sans-serif;
  --ws-font-heading: 'Newsreader', 'Chocolate Classical Sans', serif;
  --ws-font-mono: ui-monospace, 'SF Mono', monospace;
  --ws-content-width: 720px;
  --ws-wide-width: 1200px;
}
[data-theme="dark"] {
  --wp--preset--color--background: #0A0A0A !important;
  --wp--preset--color--surface: #141414 !important;
  --wp--preset--color--text: #FAFAFA !important;
  --wp--preset--color--text-secondary: #A1A1AA !important;
  --wp--preset--color--border: #27272A !important;
  --ws-bg: #0A0A0A; --ws-surface: #141414; --ws-text: #FAFAFA;
  --ws-text-secondary: #A1A1AA; --ws-border: #27272A;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--ws-bg) !important; color: var(--ws-text); font-family: var(--ws-font-body); font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; margin: 0; transition: background var(--ws-transition), color var(--ws-transition); }
a { color: inherit; text-decoration: none; } a:hover { color: var(--ws-primary); }
img { max-width: 100%; height: auto; border-radius: var(--ws-radius); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
:focus-visible { outline: 2px solid var(--ws-primary); outline-offset: 2px; }
button, [role="button"], a { cursor: pointer; }

.ws-header { position: sticky; top: 0; z-index: 1000; background: var(--ws-surface); border-bottom: 1px solid var(--ws-border); padding: 0.875rem 2rem; }
.ws-header__inner { max-width: var(--ws-wide-width); margin: 0 auto; align-items: center; gap: 2rem; }
.ws-header__nav a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ws-text-secondary); }
.ws-header__nav a:hover { color: var(--ws-primary); }
.ws-theme-toggle { background: none; border: 1px solid var(--ws-border); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--ws-text); transition: all var(--ws-transition); }
.ws-theme-toggle:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
[data-theme="dark"] .ws-icon-sun { display: block; } [data-theme="dark"] .ws-icon-moon { display: none; }
:root:not([data-theme="dark"]) .ws-icon-sun { display: none; } :root:not([data-theme="dark"]) .ws-icon-moon { display: block; }

/* Hero - image with subtle overlay, text at bottom */
.ws-hero__item { position: relative; overflow: hidden; border-radius: var(--ws-radius); margin-bottom: 4rem; }
.ws-hero__image img { width: 100%; object-fit: cover;
  max-height: 75vh; object-position: center top; }
.ws-hero__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem 2rem 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); border-radius: 0 0 var(--ws-radius) var(--ws-radius); }
.ws-hero__cat a { font-family: var(--ws-font-mono); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #fff !important; background: var(--ws-primary); padding: 0.25rem 0.6rem; border-radius: 2px; }
.ws-hero__title { font-family: var(--ws-font-heading); color: #fff !important; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0.75rem !important; }
.ws-hero__title a { color: inherit !important; }
.ws-hero__date { color: rgba(255,255,255,0.65) !important; font-size: 0.75rem; font-family: var(--ws-font-mono); font-variant-numeric: tabular-nums; }

/* Cards */
.ws-card { background: var(--ws-surface); border-radius: var(--ws-radius); overflow: hidden; border: 1px solid var(--ws-border); transition: border-color var(--ws-transition); }
.ws-card:hover { border-color: var(--ws-primary); }
.ws-card__image img { width: 100%; object-fit: cover; border-radius: var(--ws-radius) var(--ws-radius) 0 0; }
.ws-card__content { padding: 1.25rem; }
.ws-card__cat a { font-family: var(--ws-font-mono); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ws-primary) !important; }
.ws-card__title { font-family: var(--ws-font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-top: 0.4rem !important; }
.ws-card__title a { color: var(--ws-text); } .ws-card__title a:hover { color: var(--ws-primary) !important; }
.ws-card__date { font-family: var(--ws-font-mono); font-size: 0.7rem; color: var(--ws-text-secondary); font-variant-numeric: tabular-nums; margin-top: 0.4rem; }

.ws-featured__grid { gap: 1.25rem; margin-bottom: 4rem; }

.ws-latest__image { flex-shrink: 0; width: 260px; } .ws-latest__image img { width: 100%; object-fit: cover; }
.ws-latest__title { font-family: var(--ws-font-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.ws-latest__title a { color: var(--ws-text); } .ws-latest__title a:hover { color: var(--ws-primary) !important; }
.ws-latest__excerpt { color: var(--ws-text-secondary); font-size: 0.875rem; margin-top: 0.4rem; }
.ws-section-title { font-family: var(--ws-font-heading); font-size: 1.25rem; font-weight: 700; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ws-primary); margin-bottom: 1.5rem !important; display: inline-block; }

.ws-single__hero img { width: 100%; max-height: 60vh; object-fit: cover; border-radius: 0; }
.ws-single__container { padding-top: 2.5rem; }
.ws-single__title { font-family: var(--ws-font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ws-single__meta { font-family: var(--ws-font-mono); color: var(--ws-text-secondary); font-size: 0.8rem; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ws-border); margin-bottom: 2rem !important; }
.ws-single__content { font-size: 1.0625rem; line-height: 1.85; }
.ws-single__tags a { display: inline-block; border: 1px solid var(--ws-border); padding: 0.2rem 0.6rem; font-size: 0.75rem; margin: 0.2rem; border-radius: 2px; }
.ws-single__tags a:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
.ws-share { padding: 2rem 0; margin-top: 2rem !important; border-top: 1px solid var(--ws-border); gap: 1rem; }
.ws-related { padding: 4rem 0; margin-top: 3rem !important; border-top: 1px solid var(--ws-border); }
.ws-archive__title { font-family: var(--ws-font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 2rem !important; }
.ws-404 { text-align: center; padding: 8rem 2rem; }
.ws-404__title { color: var(--ws-primary) !important; font-family: var(--ws-font-heading); }
.ws-footer { background: var(--ws-surface); border-top: 1px solid var(--ws-border); padding: 3rem 2rem 2rem; margin-top: 4rem; }
.ws-footer__inner { gap: 2rem; } .ws-footer__desc { color: var(--ws-text-secondary); }
.ws-footer__nav a { font-size: 0.8rem; color: var(--ws-text-secondary); } .ws-footer__nav a:hover { color: var(--ws-primary); }
.ws-footer__social-links .wp-social-link { background: transparent !important; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); }
.ws-footer__social-links .wp-social-link:hover { border-color: var(--ws-primary); background: var(--ws-primary) !important; }
.ws-footer__divider { border-color: var(--ws-border) !important; margin: 2rem 0 !important; }
.ws-footer__copyright { color: var(--ws-text-secondary); font-size: 0.8rem; }
.wp-block-query-pagination { margin-top: 2rem; gap: 0.4rem; }
.wp-block-query-pagination-numbers .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next { padding: 0.4rem 0.9rem; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); font-size: 0.8rem; }
.wp-block-query-pagination-numbers .page-numbers.current, .wp-block-query-pagination-numbers .page-numbers:hover { background: var(--ws-primary); color: #fff; border-color: var(--ws-primary); }
.ws-post-grid { gap: 1.25rem; }
.ws-main { padding: 2.5rem 2rem; }
@media (max-width: 768px) { .ws-header { padding: 0.625rem 1rem; } .ws-main { padding: 1.25rem 1rem; } .ws-hero__title { font-size: 1.4rem; } .ws-featured__grid, .ws-post-grid { grid-template-columns: 1fr !important; } .ws-latest__item { flex-direction: column; gap: 0.75rem; } .ws-latest__image { width: 100%; } .ws-footer__inner { flex-direction: column; } }

/* Fallback for missing featured images */
.ws-card__image:empty,
.ws-wf-card__image:empty,
.ws-hero__image:empty,
.ws-latest__image:empty {
  background: linear-gradient(135deg, var(--ws-primary) 0%, #1a1a1a 100%);
  min-height: 200px;
  border-radius: var(--ws-radius) var(--ws-radius) 0 0;
}
.ws-hero__image:empty { min-height: 300px; border-radius: var(--ws-radius); }

/* Fix WP block image figure when no image */
.wp-block-post-featured-image:empty {
  background: linear-gradient(135deg, var(--ws-primary) 0%, #2a2a2a 100%);
  min-height: 180px;
  display: block;
}

/* === Vertical Floating Nav (Desktop) === */
.ws-vnav {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: 100px;
  padding: 0.75rem 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: background var(--ws-transition), border-color var(--ws-transition);
}

.ws-vnav__logo {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ws-border);
}

.ws-vnav__links { display: flex; flex-direction: column; gap: 0.15rem; }

.ws-vnav__item {
  padding: 0.5rem;
  border-radius: 12px;
  transition: background var(--ws-transition);
  text-decoration: none;
}
.ws-vnav__item:hover { background: rgba(195, 16, 35, 0.08); }
.ws-vnav__item:hover .ws-vnav__label { color: var(--ws-primary); }

.ws-vnav__icon { font-size: 1.25rem; line-height: 1; }
.ws-vnav__label { font-size: 0.55rem; font-weight: 600; color: var(--ws-text-secondary); margin-top: 0.2rem; letter-spacing: 0.02em; }

.ws-vnav .ws-theme-toggle {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ws-border);
  border-radius: 50%;
  width: 32px; height: 32px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ws-text-secondary);
}
.ws-vnav .ws-theme-toggle:hover { color: var(--ws-primary); }

/* === Bottom Tab Bar (Mobile) === */
.ws-btab {
  display: none;
  bottom: 0;
  left: 0; right: 0;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  justify-content: space-around;
}

.ws-btab__item {
  gap: 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.ws-btab__item:hover, .ws-btab__item--active { color: var(--ws-primary); }
.ws-btab__emoji { font-size: 1.25rem; }
.ws-btab__item svg { fill: currentColor; }

/* Adjust main content padding for vertical nav */
.ws-main { padding-left: 5.5rem !important; }

/* Hide old sticky header styles */
.ws-header { position: static; border: none; padding: 0; background: none; }

/* Responsive */
@media (max-width: 768px) {
  .ws-vnav { display: none; }
  .ws-btab { display: flex; }
  .ws-main { padding-left: 1rem !important; padding-bottom: 4.5rem !important; }
}

/* YouTube / iframe responsive */
.wp-block-embed__wrapper,
.entry-content iframe,
.ws-single__content iframe,
iframe[src*="youtube"],
iframe[src*="youtu.be"] {
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto !important;
  border-radius: var(--ws-radius);
}
.wp-block-embed { max-width: 100%; }
.wp-block-embed__wrapper { position: relative; }

/* Fix nav - override WP block nav styles */
.ws-vnav__links { display: flex !important; flex-direction: column; gap: 0.15rem; }
.ws-vnav { display: flex !important; }
.ws-btab { display: none !important; }
@media (max-width: 768px) {
  .ws-vnav { display: none !important; }
  .ws-btab { display: flex !important; }
}

/* Override any WP generated nav block that might be hiding */
.wp-block-navigation { display: none; }

/* FORCE nav positioning - override WP layout */
.wp-site-blocks { overflow: visible !important; }

nav.ws-vnav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--ws-surface);
  border-right: 1px solid var(--ws-border);
  border-radius: 0;
  padding: 2rem 0.5rem;
  width: 56px;
  justify-content: center;
  overflow: hidden;
  transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

nav.ws-vnav .ws-vnav__links {
  gap: 0.15rem !important;
}

nav.ws-vnav .ws-vnav__item {
  padding: 0.5rem !important;
  border-radius: 12px !important;
}

nav.ws-btab {
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  border-top: 1px solid var(--ws-border) !important;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom)) !important;
  justify-content: space-around !important;
}

@media (min-width: 769px) {
  nav.ws-vnav { display: flex !important; }
  nav.ws-btab { display: none !important; }
}
@media (max-width: 768px) {
  nav.ws-vnav { display: none !important; }
  nav.ws-btab { display: flex !important; }
}

/* Byline - top of article */
.ws-byline {
  gap: 0.75rem;
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 2rem !important;
  font-size: 0.85rem;
}
.ws-byline__name a {
  color: var(--ws-text);
}
.ws-byline__name a:hover { color: var(--ws-primary) !important; }
.ws-byline__date { font-variant-numeric: tabular-nums; }
.ws-byline__date::before { content: '·'; margin-right: 0.75rem; }

/* Author Card - end of article */
.ws-author-card {
  margin-top: 3rem !important;
  padding: 1.5rem;
  background: var(--ws-bg);
  gap: 1rem;
  align-items: flex-start;
}
.ws-author-card__bio {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Push content right to avoid nav overlap */
.wp-site-blocks {
  padding-left: 72px !important;
}
@media (max-width: 768px) {
    padding-left: 0 !important;
    padding-bottom: 4rem !important;
  }
}

/* === Typography Scale (UI/UX Pro Max + Open Design) === */
/* Minimum body: 16px, scale: 12·14·16·20·24·32·48 */
html { font-size: 16px; }

h1, .ws-single__title, .ws-hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem) !important; /* 32-48px */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2, .ws-section-title, .ws-archive__title {
  font-size: clamp(1.5rem, 3vw, 2rem) !important; /* 24-32px */
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h3, .ws-card__title, .ws-latest__title {
  font-size: clamp(1rem, 2vw, 1.25rem) !important; /* 16-20px */
  line-height: 1.4;
}

h4 { font-size: 1rem !important; font-weight: 600; } /* 16px */
h5 { font-size: 0.875rem !important; font-weight: 600; } /* 14px */
h6 { font-size: 0.75rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } /* 12px */

/* Body minimum */
body, p, .ws-single__content { font-size: 1rem !important; line-height: 1.75; } /* 16px min */
.ws-single__content { font-size: 1.0625rem !important; } /* 17px for readability */

/* Small text minimum 12px */
small, .ws-card__date, .ws-byline__date, .ws-card__cat a, .ws-vnav__label {
  font-size: max(0.75rem, 12px) !important;
}

/* Social icons - red default, scale on hover */
.ws-footer__social-links .wp-social-link {
  background: transparent !important;
  border: none !important;
  color: var(--ws-primary) !important;
  transition: transform 200ms ease !important;
}
.ws-footer__social-links .wp-social-link a {
  padding: 0.4rem !important;
}
.ws-footer__social-links .wp-social-link svg {
  fill: var(--ws-primary) !important;
  width: 24px !important;
  height: 24px !important;
}
.ws-footer__social-links .wp-social-link:hover {
  transform: scale(1.25);
}

/* Breadcrumb */
.ws-breadcrumb { font-size: 0.75rem; color: var(--ws-text-secondary); margin-bottom: 1rem; }
.ws-breadcrumb a { color: var(--ws-text-secondary); }
.ws-breadcrumb a:hover { color: var(--ws-primary); }
.ws-breadcrumb span { margin: 0 0.4rem; }

/* Blockquote */
.ws-single__content blockquote,
.wp-block-quote { border-left: 3px solid var(--ws-primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--ws-bg); font-style: italic; color: var(--ws-text-secondary); }
.ws-single__content blockquote p { margin: 0; }

/* Code blocks */
.ws-single__content pre,
.wp-block-code { background: #1a1a2e; color: #e0e0e0; padding: 1.25rem; border-radius: var(--ws-radius); overflow-x: auto; font-size: 0.875rem; line-height: 1.6; }
.ws-single__content code:not(pre code) { background: var(--ws-bg); border: 1px solid var(--ws-border); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.875rem; }

/* Tables */
.ws-single__content table,
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ws-single__content table th,
.wp-block-table th { background: var(--ws-bg); font-weight: 600; text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid var(--ws-border); }
.ws-single__content table td,
.wp-block-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--ws-border); }

/* Back to top */
.ws-back-top { position: fixed; bottom: 2rem; right: 1.5rem; z-index: 999; width: 40px; height: 40px; border-radius: 50%; background: var(--ws-primary); color: #fff; border: none; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform 200ms ease, opacity 200ms ease; }
.ws-back-top.visible { display: flex; }
.ws-back-top:hover { transform: scale(1.1); }
@media (max-width: 768px) { .ws-back-top { bottom: 5rem; right: 1rem; } }

/* Reading progress bar */
.ws-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--ws-primary); z-index: 10000; width: 0%; transition: width 50ms linear; }

/* Reading time */
.ws-reading-time { font-size: 0.8rem; color: var(--ws-text-secondary); }
.ws-reading-time::before { content: '⏱ '; }

/* Search results no-results */
.wp-block-query-no-results { text-align: center; padding: 3rem; color: var(--ws-text-secondary); }

/* Page template */
.ws-page { padding-top: 3rem; }

/* Print styles */
@media print {
  nav.ws-vnav, nav.ws-btab, .ws-back-top, .ws-progress, .ws-theme-toggle,
  .ws-share, .ws-related, .ws-footer, .ws-header, .ws-ad-slot { display: none !important; }
  .wp-site-blocks { padding-left: 0 !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .ws-single__title { font-size: 24pt; }
  .ws-single__content { font-size: 11pt; line-height: 1.6; }
  .ws-single__content img { max-width: 100%; page-break-inside: avoid; }
  a { color: #000 !important; text-decoration: underline; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
  .ws-single__content a[href]::after { content: none; }
}

/* Comments styling */
.wp-block-comments, #comments {
  margin-top: 3rem;
  padding-top: 2rem;
}
#comments .comment-list { list-style: none; padding: 0; }
#comments .comment { padding: 1.25rem 0; border-bottom: 1px solid var(--ws-border); }
#comments .comment-author { font-weight: 600; font-size: 0.9rem; }
#comments .comment-meta { font-size: 0.75rem; color: var(--ws-text-secondary); margin-bottom: 0.5rem; }
#comments .comment-content { font-size: 0.9375rem; line-height: 1.7; }
#comments .reply a { font-size: 0.8rem; color: var(--ws-primary); font-weight: 600; }
#respond { margin-top: 2rem; }
#respond input[type="text"], #respond input[type="email"], #respond textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--ws-border); border-radius: var(--ws-radius);
  font-family: inherit; font-size: 0.9375rem; background: var(--ws-surface); color: var(--ws-text);
  transition: border-color 200ms ease;
}
#respond input:focus, #respond textarea:focus { border-color: var(--ws-primary); outline: none; }
#respond input[type="submit"] {
  background: var(--ws-primary); color: #fff; border: none; padding: 0.75rem 2rem;
  border-radius: var(--ws-radius); font-weight: 600; cursor: pointer; transition: background 200ms ease;
}
#respond input[type="submit"]:hover { background: var(--ws-primary-hover, #A00D1C); }

/* Latest section - 2 column grid */
.ws-latest .wp-block-post-template,
.ws-latest__list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ws-latest__item {
  gap: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  overflow: hidden;
  transition: border-color var(--ws-transition);
}
.ws-latest__item:hover { border-color: var(--ws-primary); }
.ws-latest__image { width: 100% !important; }
.ws-latest__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.ws-latest__content { padding: 1.25rem !important; }
@media (max-width: 768px) {
  .ws-latest__list { grid-template-columns: 1fr; }
}

/* Lightbox */
.ws-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.ws-lightbox.active { opacity: 1; pointer-events: all; }
.ws-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.ws-lightbox__close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.ws-lightbox__close:hover { color: var(--ws-primary); }

/* TOC */
.ws-toc { margin-bottom: 2rem; padding: 1.25rem; background: var(--ws-bg); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); }
.ws-toc__title { font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--ws-text); }
.ws-toc__list { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.ws-toc__item { margin: 0.3rem 0; font-size: 0.875rem; line-height: 1.5; }
.ws-toc__item--h3 { padding-left: 1rem; font-size: 0.8125rem; color: var(--ws-text-secondary); }
.ws-toc__item a { color: var(--ws-text-secondary); }
.ws-toc__item a:hover { color: var(--ws-primary); }

/* Enhanced pager - jump to page */
.ws-pager-jump { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--ws-text-secondary); }
.ws-pager-jump__input { width: 3.5rem; padding: 0.3rem 0.5rem; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); font-size: 0.8rem; text-align: center; background: var(--ws-surface); color: var(--ws-text); }
.ws-pager-jump__input:focus { border-color: var(--ws-primary); outline: none; }
.ws-pager-jump button { padding: 0.3rem 0.75rem; background: var(--ws-primary); color: #fff; border: none; border-radius: var(--ws-radius); font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.ws-pager-jump button:hover { opacity: 0.85; }

/* Fix images - full width, auto height */
.ws-single__content img,
.wp-block-image img,
.wp-block-post-featured-image img,
.ws-card__image img,
.ws-hero__image img {
  max-height: none;
  object-fit: contain;
}
.ws-single__content .wp-block-image {
  margin: 1.5rem 0;
}
.ws-single__content .wp-block-image img {
}

/* Dark mode - override WP generated classes */
[data-theme="dark"] .has-background-background-color { background-color: #0A0A0A !important; }
[data-theme="dark"] .has-surface-background-color { background-color: #141414 !important; }
[data-theme="dark"] .has-text-color { color: #FAFAFA !important; }
[data-theme="dark"] .has-text-secondary-color { color: #A1A1AA !important; }
[data-theme="dark"] .wp-block-post-featured-image { background: #141414; }
[data-theme="dark"] figure { background: transparent; }

/* Fix old WP captions and figures overflowing on mobile */
.wp-caption,
.wp-block-image,
figure {
  max-width: 100% !important;
}
.wp-caption img,
figure img {
}
/* Prevent any element from causing horizontal scroll */
.ws-single__content,
.ws-main,
  overflow-x: hidden;
}

/* Author page */
.ws-author-hero {
  text-align: center;
  padding: 2rem 0;
}
.ws-author-hero__avatar img {
  border-radius: 50% !important;
  border: 3px solid var(--ws-primary);
  width: 96px !important;
  height: 96px !important;
  object-fit: cover;
}
.ws-author-hero__name {
  font-family: var(--ws-font-heading);
  font-size: 1.75rem !important;
  margin-top: 1rem !important;
}
.ws-author-hero__bio {
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0.5rem auto 0;
}
.ws-author-hero__divider {
  border-color: var(--ws-border) !important;
  margin: 2rem 0 !important;
}

/* === Nav: collapsed by default, expand on hover === */
  max-width: 48px !important;
  transition: max-width 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
nav.ws-vnav:hover {
  max-width: 80px !important;
}
nav.ws-vnav .ws-vnav__label {
  opacity: 1;
  transform: none;
  white-space: nowrap;
}
nav.ws-vnav:hover .ws-vnav__label {
  opacity: 1;
  transform: translateY(0);
}
nav.ws-vnav .ws-vnav__icon svg {
  stroke: var(--ws-text-secondary);
  transition: stroke 200ms ease;
}
nav.ws-vnav .ws-vnav__item:hover .ws-vnav__icon svg {
  stroke: var(--ws-primary);
}

/* === Hero overlay strengthened === */
.ws-hero__overlay {
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.85) 100%) !important;
}
.ws-hero__title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
}
.ws-hero__title a {
  text-shadow: inherit;
}

/* Mobile btab SVG */
.ws-btab__item svg {
  width: 20px;
  height: 20px;
}
.ws-btab__item--active svg,
.ws-btab__item:hover svg {
}

/* === Typography fix: bolder headings === */
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

/* === 1440px breakpoint === */
@media (min-width: 1440px) {
  .ws-main { max-width: 1400px; margin: 0 auto; }
  .ws-hero__title { font-size: 3.5rem !important; }
  .ws-latest .wp-block-post-template { grid-template-columns: repeat(3, 1fr); }
}

/* === Search Overlay === */
.ws-search-overlay {
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  padding-top: 20vh;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.ws-search-overlay.active {
  pointer-events: all;
}
.ws-search-overlay__inner {
  width: min(600px, 90vw);
}
.ws-search-overlay__form {
  gap: 0;
  width: 100%;
}
.ws-search-overlay__input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-family: inherit;
  color: var(--ws-text);
  border: 2px solid var(--ws-border);
  border-right: none;
  border-radius: var(--ws-radius) 0 0 var(--ws-radius);
  outline: none;
}
.ws-search-overlay__input:focus {
  border-color: var(--ws-primary);
}
.ws-search-overlay__input::placeholder {
}
.ws-search-overlay__btn {
  background: var(--ws-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--ws-radius) var(--ws-radius) 0;
  cursor: pointer;
}
.ws-search-overlay__btn:hover { opacity: 0.85; }
.ws-search-overlay__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
}
.ws-search-overlay__hint {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* === Unified card/list text sizes === */
.ws-card__title,
.ws-latest__title,
.ws-wf-card__title,
h3.wp-block-post-title {
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
}
.ws-card__content p,
.ws-latest__excerpt,
.wp-block-post-excerpt,
.ws-card__date,
.ws-latest__content .ws-card__date {
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}
.ws-card__cat a,
.ws-latest__content .ws-card__cat a {
  font-size: 0.75rem !important;
}

/* === Social Feed Waterfall === */
.ws-social-feed {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}
.ws-social-feed__grid {
  columns: 4;
  column-gap: 0.75rem;
}
.ws-social-feed__grid .ws-ig-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  position: relative;
}
.ws-social-feed__grid .ws-ig-item img {
  height: auto;
  transition: transform 300ms ease;
}
.ws-social-feed__grid .ws-ig-item:hover img {
  transform: scale(1.03);
}
.ws-social-feed__grid .ws-ig-item::after {
  content: '';
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.4));
  transition: opacity 200ms ease;
}
.ws-social-feed__grid .ws-ig-item:hover::after { opacity: 1; }

.ws-social-feed__cta {
  margin-top: 1.5rem;
}
.ws-social-feed__btn {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ws-social-feed__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ws-social-feed__btn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff !important;
}
.ws-social-feed__btn--fb {
  background: #1877F2;
}

@media (max-width: 1024px) { .ws-social-feed__grid { columns: 3; } }
@media (max-width: 768px) { .ws-social-feed__grid { columns: 2; column-gap: 0.5rem; } .ws-social-feed { padding: 0 1rem; } .ws-social-feed__cta { flex-direction: column; align-items: center; } }

.ws-social-feed__btn--yt { background: #FF0000; color: #fff !important; }

/* Stronger hero readability */
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.88) 100%) !important;
}

/* Footer nav flat links */
.ws-footer__nav-links {
  flex-wrap: wrap;
}
.ws-footer__nav-links a {
}
.ws-footer__nav-links a:hover { color: var(--ws-primary); }

/* Floating LINE CTA */
.ws-line-cta {
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  transition: bottom 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ws-line-cta.visible { bottom: 1.5rem; }
@media (max-width: 768px) { .ws-line-cta.visible { bottom: 5rem; } }
.ws-line-cta__inner {
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.ws-line-cta__btn {
  background: #06C755;
  padding: 0.4rem 1rem;
}
.ws-line-cta__btn:hover { opacity: 0.85; }
.ws-line-cta__close {
  padding: 0 0.25rem;
}
@media (max-width: 600px) {
  .ws-line-cta__inner span { display: none; }
}

/* Channel Switcher */
.ws-channel-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.25rem;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: 100px;
  width: fit-content;
}
.ws-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--ws-text-secondary);
  transition: all 200ms ease;
}
.ws-channel-btn:hover { color: var(--ws-text); }
.ws-channel-btn--active { background: var(--ws-primary); color: #fff; }
.ws-channel-btn--active[data-channel="esports"] { background: #7C3AED; }
.ws-channel-btn svg { stroke: currentColor; }
.ws-channel-btn--active[data-channel="esports"] {
  background: #7C3AED !important;
}
.ws-channel-btn svg { stroke: currentColor; }

/* Copy link button in share */
.ws-copy-link button { background: none; border: 1px solid var(--ws-border); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ws-text-secondary); font-size: 0.7rem; transition: all 180ms ease; }
.ws-copy-link button:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
/* LINE green */
.ws-share__links .wp-social-link:nth-child(3) a { color: #06C755 !important; }

/* === OD Posture Fix: remove shadows, restrain accent === */

.ws-line-cta__inner { box-shadow: none; border: 1px solid var(--ws-border); }
.ws-social-feed__btn:hover { box-shadow: none; transform: translateY(-1px); }
.ws-back-top { box-shadow: none; border: 1px solid var(--ws-border); background: var(--ws-surface); color: var(--ws-text); }
.ws-back-top:hover { background: var(--ws-text); color: var(--ws-bg); }

/* Progress bar: neutral instead of red */
.ws-progress { background: var(--ws-text-secondary); }

/* Radius: 4px → 2px globally */
:root { --ws-radius: 2px; }

/* Back-to-top no longer red */
.ws-back-top { background: var(--ws-surface); }

/* Nav text larger */
nav.ws-vnav .ws-vnav__label { font-size: 0.7rem !important; }
nav.ws-vnav .ws-vnav__icon svg { width: 24px !important; height: 24px !important; }


.ws-btab__item span { font-size: 0.7rem !important; }
.ws-btab__item svg { width: 22px !important; height: 22px !important; }

/* Footer nav links larger */
.ws-footer__nav-links a { font-size: 1rem !important; }

/* Archive page - hero + grid */
.ws-archive__title { font-family: var(--ws-font-heading); font-size: 2rem !important; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 2rem !important; }
.ws-archive-hero { margin-bottom: 2.5rem; }
.ws-archive__grid .ws-card { display: flex; flex-direction: column; }
.ws-archive__grid .ws-card__image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
@media (max-width: 768px) {
  .ws-archive__grid .ws-post-grid { grid-template-columns: 1fr !important; }
}

/* jf open 粉圓 - self-hosted webfont */
@font-face {
  font-family: 'jf open huninn';
  src: url('../fonts/jf-openhuninn-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Override heading to use huninn */
:root { --ws-font-heading: 'jf open huninn', 'Newsreader', serif !important; }
h1, h2, h3, .ws-hero__title, .ws-single__title, .ws-section-title, .ws-card__title, .ws-latest__title, .ws-archive__title {
  font-family: 'jf open huninn', 'Newsreader', serif !important;
}

/* === WOWSight Display: Barlow Condensed (EN) + Noto Sans TC Black (ZH) === */
@font-face {
  font-family: 'WOWSight Display';
  src: url('https://fonts.gstatic.com/s/barlowcondensed/v12/HTxxL3I-JCGChYJ8VI-L6OO_au7B497y_3HcuKECcrs.woff2') format('woff2');
  font-weight: 900;
  unicode-range: U+0000-007F, U+0080-00FF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  src: url('https://fonts.gstatic.com/s/notosanstc/v44/nKM-HGmMVSEr0TPI0KQPXM-8bpMH.woff2') format('woff2');
  unicode-range: U+3000-303F, U+3100-312F, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}

/* Apply to headings - override previous */
:root { --ws-font-heading: 'WOWSight Display', -apple-system, sans-serif !important; }
  font-family: 'WOWSight Display', -apple-system, sans-serif !important;
  letter-spacing: -0.03em;
}
.ws-hero__title { letter-spacing: -0.04em !important; }

/* Mobile single post padding */
@media (max-width: 768px) {
  .ws-single__container { padding: 0 1rem !important; }
  .ws-byline { padding-left: 1rem; padding-right: 1rem; }
  .ws-breadcrumb { padding-left: 1rem; }
  .ws-single__tags { padding: 0 1rem; }
  .ws-share { padding-left: 1rem; padding-right: 1rem; }
  .ws-single__content { padding: 0 1rem !important; }
}

/* Social CTA compact on mobile */
@media (max-width: 768px) {
    flex-direction: row !important;
  }
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  .ws-social-feed { padding: 0 1rem; margin-top: 2rem; }
  .ws-social-feed .ws-section-title { font-size: 1.25rem !important; }
}

/* Hide social feed section on mobile - footer handles it */
@media (max-width: 768px) {
  .ws-social-feed { display: none !important; }
}

/* === Category/Archive Header Banner === */
.ws-archive__title {
  background: var(--ws-text);
  color: var(--ws-bg) !important;
  padding: 2.5rem 2rem !important;
  margin: 0 -2rem 2.5rem !important;
  border-radius: 0 !important;
  font-size: 2rem !important;
}
.ws-archive__title span { color: var(--ws-primary); }
@media (max-width: 768px) {
  .ws-archive__title { padding: 2rem 1rem !important; margin: 0 -1rem 2rem !important; font-size: 1.5rem !important; }
}

/* Breadcrumb fix */
.ws-breadcrumb {
  padding: 0.75rem 0;
}

/* Global mobile padding fix */
@media (max-width: 768px) {
  .ws-related,
  .ws-footer,
  .ws-author-card,
  .ws-archive__grid,
  .ws-section-title,
  .wp-block-query-pagination {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .ws-hero__item { margin-left: 0; margin-right: 0; }
  .ws-card__content { padding: 1rem !important; }
  .wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }
  .wp-site-blocks > * { padding-left: 1rem; padding-right: 1rem; }
  .wp-site-blocks > * .ws-hero__image,
  .wp-site-blocks > * .ws-single__hero { margin-left: -1rem; margin-right: -1rem; padding: 0 !important; }
}

/* Share buttons - fix copy link icon visibility */
.ws-share__links li:last-child button,
.ws-copy-link button {
  background: var(--ws-bg) !important;
  color: var(--ws-text-secondary);
  width: 40px; height: 40px;
  display: flex !important; align-items: center; justify-content: center;
}
.ws-share__links li:last-child button:hover,
.ws-copy-link button:hover {
  border-color: var(--ws-primary) !important;
}

/* Mobile footer - extra bottom padding for LINE CTA + tab bar */
@media (max-width: 768px) {
  .ws-footer { padding-bottom: 7rem !important; }
}

/* === OD Fix: Hero text readability on any image === */
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.92) 100%) !important;
  padding: 6rem 2rem 2rem !important;
}
.ws-hero__title,
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4) !important;
}
.ws-hero__date {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .ws-hero__overlay { padding: 4rem 1rem 1.5rem !important; }
  .ws-hero__title { font-size: 1.25rem !important; line-height: 1.35 !important; }
}

/* Hero title smaller + overlay tighter to bottom */
@media (max-width: 768px) {
  .ws-hero__title { font-size: 1.1rem !important; }
  .ws-hero__overlay { padding: 3rem 1rem 1rem !important; }
}
.ws-hero__overlay { padding-bottom: 1.25rem !important; }

/* Date outside overlay - beside category */
  position: relative !important;
  text-shadow: none !important;
  display: none !important;
}
/* Show date in card content area instead */
.ws-hero__item .ws-hero__overlay .ws-hero__date { display: none !important; }

/* Archive hero cards: date + category on same line below image */
.ws-card__content { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.ws-card__content .ws-card__cat { order: 1; }
.ws-card__content .ws-card__date { order: 2; margin-top: 0 !important; }
.ws-card__content .ws-card__title { order: 3; width: 100%; }
.ws-card__content .ws-latest__excerpt { order: 4; width: 100%; }

/* === Category Header: B style with breathing animation === */
  border-left: 3px solid var(--ws-primary);
  border-left: none;
  padding: 2rem 2rem !important;
  margin: 0 0 2.5rem !important;
  border-radius: var(--ws-radius) !important;
  animation: ws-breathe 4s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

@keyframes ws-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
  50% { transform: scale(1.005); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .ws-archive__title { animation: none; }
}
@media (max-width: 768px) {
  .ws-archive__title { padding: 1.5rem 1rem !important; font-size: 1.375rem !important; margin: 0 0 1.5rem !important; }
}

/* === Top Brand Bar === */
.ws-brand-bar {
  padding: 1rem 0 0.75rem;
  margin-bottom: 1.5rem;
}
.ws-brand-bar__name {
  font-family: 'WOWSight Display', var(--ws-font-heading);
  font-size: 1.75rem;
  display: inline-block;
}
.ws-brand-bar__name:hover { color: var(--ws-primary); }
.ws-brand-bar__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
@media (max-width: 768px) {
  .ws-brand-bar { padding: 0.75rem 0 0.5rem; }
  .ws-brand-bar__name { font-size: 1.25rem; }
}

/* === Related Articles - OD fix: tighter spacing, consistent cards === */
.ws-related { padding: 2rem 0 3rem !important; margin-top: 2rem !important; }
.ws-related .ws-section-title { margin-bottom: 1.25rem !important; }
.ws-related .wp-block-post-template { gap: 1rem !important; }
.ws-related .ws-card {
}
.ws-related .ws-card__image img {
}
.ws-related .ws-card__content {
  padding: 0.75rem 1rem 1rem !important;
}
.ws-related .ws-card__title {
  font-size: 0.9rem !important;
  margin-top: 0.25rem !important;
}
.ws-related .ws-card__date {
  font-size: 0.7rem !important;
}
/* Remove excess whitespace above related */
.ws-author-card + .ws-related,
.ws-share + .ws-related { margin-top: 1.5rem !important; }


@media (max-width: 768px) { .wp-site-blocks .ws-archive__title { padding-left: 1rem; } }

/* Full-height nav - content offset */
.wp-site-blocks { padding-left: 72px; }
@media (max-width: 768px) { .wp-site-blocks { padding-left: 0; } }

/* Fix: category header padding consistent */
.ws-archive__title { padding: 1.5rem 2rem 1.5rem 2rem; margin: 0 0 2rem; }

/* Fix: search overlay not visible by default */
.ws-search-overlay { display: none; }
.ws-search-overlay.active { display: flex; }



/* Nav: hide logo (brand bar handles it), center items vertically */
.ws-vnav__logo { display: none; }

/* === FINAL NAV OVERRIDE === */
body nav.ws-vnav {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 72px !important;
  max-width: none !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border-right: 1px solid var(--ws-border) !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  padding: 2rem 0.5rem !important;
  justify-content: center !important;
  overflow: hidden;
  transition: width 250ms ease !important;
}

body .ws-vnav__logo { display: block !important; }

/* === Category Header C: Magazine cover style === */
.ws-archive__title {
  background: var(--ws-bg) !important;
  color: var(--ws-text) !important;
  border: none !important;
  padding: 3rem 2rem !important;
  margin-bottom: 2.5rem !important;
  animation: none !important;
  box-shadow: none !important;
  text-align: left;
}
.ws-cat-header__name {
  font-family: var(--ws-font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: block;
  color: var(--ws-text);
}
.ws-cat-header__line {
  width: 3rem;
  height: 3px;
  background: var(--ws-primary);
  margin: 0.75rem 0 1rem;
}
.ws-cat-header__tags {
  font-size: 0.85rem;
  color: var(--ws-text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.ws-cat-header__count {
  font-family: var(--ws-font-mono);
  font-size: 0.75rem;
  color: var(--ws-text-secondary);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .ws-cat-header__name { font-size: 2rem; }
  .ws-archive__title { padding: 2rem 1rem !important; }
}

/* === Category Header: Tag Cloud Pills === */
.ws-cat-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; width: 100%; }
.ws-cat-hero__left { flex: 1; }
.ws-cat-hero__name { font-family: var(--ws-font-heading); font-size: 3.5rem; font-weight: 900; letter-spacing: -0.04em; display: block; line-height: 1.1; }
.ws-cat-hero__line { width: 3rem; height: 4px; background: var(--ws-primary); margin: 1rem 0 1.25rem; border-radius: 2px; }
.ws-cat-hero__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ws-tag-pill { display: inline-block; padding: 0.4rem 1rem; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 100px; color: var(--ws-text-secondary); font-weight: 500; text-decoration: none; transition: all 200ms ease; white-space: nowrap; }
.ws-tag-pill:hover { background: var(--ws-primary); color: #fff; border-color: var(--ws-primary); transform: translateY(-2px); }
.ws-cat-hero__meta { font-family: var(--ws-font-mono); font-size: 0.8rem; color: var(--ws-text-secondary); white-space: nowrap; padding-top: 0.5rem; }
.ws-cat-hero__count { font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .ws-cat-hero { flex-direction: column; gap: 1rem; }
  .ws-cat-hero__name { font-size: 2.5rem; }
  .ws-tag-pill { font-size: 0.75rem !important; padding: 0.3rem 0.75rem; }
}

/* Header padding aligned with content */
.ws-archive__title { padding-left: 2rem; margin-left: 0; }
.ws-main .ws-archive__title { padding-left: 0; }

/* FINAL: header aligns with content - remove own padding, use parent's */
.ws-archive__title { padding: 2rem 0 !important; margin: 0 0 2rem !important; background: transparent !important; border: none !important; }

/* === Alignment: hero bleeds to nav edge, text stays padded === */
.ws-hero__item, .ws-archive-hero .ws-hero__item {
  margin-left: calc(-1 * (100vw - 100% + 0px) / 2 + (100vw - 100%) / 2 - 0px);
  margin-left: -2rem;
  margin-right: -2rem;
  border-radius: 0;
  width: calc(100% + 4rem);
}
.ws-hero__image img { border-radius: 0; }
@media (max-width: 768px) {
  .ws-hero__item, .ws-archive-hero .ws-hero__item { margin-left: -1rem; margin-right: -1rem; width: calc(100% + 2rem); }
}

/* Fix: force latest section to 2-col grid on main site */
.ws-latest .wp-block-post-template,
.ws-latest .wp-block-post-template.is-layout-flow {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}
.ws-latest__item.is-layout-flex {
  flex-direction: column !important;
  gap: 0 !important;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  overflow: hidden;
}
.ws-latest__image { width: 100% !important; }
.ws-latest__image img { width: 100% !important; aspect-ratio: 16/9; object-fit: cover; }
.ws-latest__content { padding: 1.25rem !important; }
@media (max-width: 768px) {
  .ws-latest .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* Hide WP navigation hamburger/pager from footer/header */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container,
.wp-block-navigation { display: none !important; }

/* Fix mobile tab bar icons */
nav.ws-btab .ws-btab__item svg {
  fill: none !important;
  stroke: var(--ws-text-secondary) !important;
  width: 22px !important;
  height: 22px !important;
}
nav.ws-btab .ws-btab__item--active svg,
nav.ws-btab .ws-btab__item:hover svg {
  stroke: var(--ws-primary) !important;
  fill: none !important;
}
nav.ws-btab .ws-btab__item { color: var(--ws-text-secondary); }
nav.ws-btab .ws-btab__item--active,
nav.ws-btab .ws-btab__item:hover { color: var(--ws-primary); }

/* === Ad exclusion zones - prevent Auto Ads from breaking layout === */
.ws-hero__item ins.adsbygoogle,
.ws-hero__overlay ins.adsbygoogle,
.ws-brand-bar ins.adsbygoogle,
.ws-brand-bar + ins.adsbygoogle,
.ws-channel-switcher ins.adsbygoogle,
.ws-vnav ins.adsbygoogle,
.ws-btab ins.adsbygoogle,
.ws-cat-hero ins.adsbygoogle,
.ws-archive__title ins.adsbygoogle,
.ws-byline ins.adsbygoogle,
.ws-single__title + ins.adsbygoogle,
.ws-breadcrumb + ins.adsbygoogle,
header ins.adsbygoogle { display: none !important; height: 0 !important; overflow: hidden !important; }

/* Limit ad size so it doesn't dominate */
ins.adsbygoogle { max-height: 280px; margin: 1.5rem 0; }

/* Fix: latest section image sizing on mobile */
.ws-latest__image { width: 100% !important; max-width: none !important; }
.ws-latest__image figure { width: 100% !important; aspect-ratio: 16/9; }
.ws-latest__image figure img { width: 100% !important; height: 100% !important; object-fit: cover; }

/* Force fix: override WP inline width on latest figures */
.ws-latest__item figure[style] { width: 100% !important; aspect-ratio: 16/9 !important; }
.ws-latest__item figure[style] img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Force latest items to vertical card layout */
.ws-latest__item.is-layout-flex {
  flex-direction: column !important;
  flex-wrap: wrap !important;
}
.ws-latest__item.is-layout-flex > * { width: 100% !important; flex: none !important; }
.ws-latest__item figure[style] { max-width: 100% !important; height: auto !important; }

/* Mobile: latest section single column */
@media (max-width: 768px) {
  .ws-latest .wp-block-post-template,
  .ws-latest .wp-block-post-template.is-layout-flow {
    grid-template-columns: 1fr !important;
  }
}

/* Hide broken ad after footer */
.ws-footer ~ ins.adsbygoogle,
.ws-footer ~ div[id^="google_ads"],
.ws-footer ~ iframe,
footer ~ ins.adsbygoogle,
footer ~ div[id^="google_ads"],
footer ~ iframe { display: none !important; }
/* Also prevent dark ad boxes */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
ins.adsbygoogle { background: transparent !important; }
