/*
Theme Name: MMAOB
Theme URI: https://www.mmaoddsbreaker.com/
Description: Classic theme for MMA OddsBreaker, replacing Bimber 7.7 + WPBakery. The approved modern design of 29 Nov 2026 (design/modern-2026-11-29), on the theme engine (setup, listing counts, template tags, collections, advert slots, embeds, settings). See docs/theme-build/ENGINE.md and TEMPLATES.md.
Version: 0.9.2
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mmaob
*/

/* ==========================================================================
   MMA OddsBreaker: the theme's one stylesheet.
   Started from design/modern-2026-11-29/modern.css (tokens kept), adapted to
   the WordPress markup, with the engine's structural rules (embeds, advert
   slots, video facade) folded in, and styles for Ninja Tables, Contact Form 7,
   Easy Social Share Buttons, captions, alignments, embeds and the WPBakery
   pages rendered by inc/wpbakery.php.

   Order: 0 fonts, 1 tokens, 2 base, 3 layout, 4 header and menu, 5 adverts,
   6 page head and breadcrumbs, 7 section heads, 8 cards and lists, 9 podcasts,
   10 pagination, 11 article and post text, 12 odds, 13 staff picks (Ninja
   Tables), 14 player and embeds, 15 article end, 16 footer, 17 pages, 404,
   search and collections, 18 plugins (CF7, ESSB), 19 WPBakery pages,
   20 motion and print.
   ========================================================================== */

/* 0. Fonts: self-hosted WOFF2, Latin, font-display swap (OFL, see assets/fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks, so text barely moves when the fonts arrive */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow"), local("ArialNarrow"), local("Liberation Sans Narrow"), local("Arial");
  size-adjust: 88%;
  ascent-override: 113.6%;
  descent-override: 22.7%;
  line-gap-override: 0%;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour, named by job. Contrast values are in design NOTES.md. */
  --c-header: #000000;      /* header and footer band */
  --c-page: #0e0f11;        /* page */
  --c-raised: #17191c;      /* one raised surface: panels, tables, adverts */
  --c-raised-2: #202328;    /* hover on raised, menus, inputs */
  --c-line: #2a2d33;        /* hairlines */
  --c-line-strong: #3a3e45; /* button outlines, table group rules */
  --c-input: #60656e;       /* form field borders: 3:1 against the field and the page */
  --c-text: #f4f3ef;        /* headings, primary */
  --c-text-body: #dcdde0;   /* long reading text */
  --c-text-2: #b9bcc3;      /* secondary: labels, standfirsts */
  --c-text-3: #8f949c;      /* meta: dates, bylines, underdog lines */
  --c-red: #d7262d;         /* brand red: fills (line under the header, buttons, current page) */
  --c-red-hover: #b81d24;   /* hover darkens: white text stays above 4.5:1 */
  --c-red-text: #ff6b6b;    /* red as text on dark: links in body text */
  --c-focus: #ffffff;
  --c-scrim: rgba(0, 0, 0, 0.6);
  --c-img-ring: rgba(255, 255, 255, 0.08);

  /* Type */
  --f-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-48: 3rem;
  --fs-56: 3.5rem;
  --fs-64: 4rem;
  --fs-72: 4.5rem;
  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-ui: 1.35;
  --lh-text: 1.65;

  /* Space: 4/8 scale */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;

  /* Radii: 4 controls, 8 images and panels */
  --r-4: 4px;
  --r-8: 8px;

  /* Layout */
  --w-max: 1280px;
  --w-text: 680px;
  --w-rail: 320px;
  --gutter: 32px;
  --h-header: 64px;
  --red-line: 4px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --h-header: 56px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--h-header) + 16px); }
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text-body);
  font-family: var(--f-text);
  font-size: var(--fs-16);
  line-height: var(--lh-ui);
  font-feature-settings: "tnum" 1, "cv11" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-text); }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--c-text);
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-red); color: #fff; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }
.vh, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; word-wrap: normal !important;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-text); color: var(--c-page); font-weight: 600; border-radius: var(--r-4); }
.skip:focus { top: 8px; color: var(--c-page); }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--w-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { padding-bottom: var(--s-64); }
.section { margin-top: var(--s-64); }
.section--first { margin-top: var(--s-16); }
.grid { display: grid; gap: var(--s-32) var(--s-24); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .row-full { grid-column: 1 / -1; }
.empty { margin-top: var(--s-32); color: var(--c-text-2); font-size: var(--fs-18); }
.empty a { color: var(--c-red-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section { margin-top: var(--s-48); }
  .section--first { margin-top: var(--s-8); }
}

/* 4. Header and menu ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-header);
  border-bottom: var(--red-line) solid var(--c-red);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__bar { position: relative; display: flex; align-items: center; gap: var(--s-16); height: var(--h-header); }
.brand { flex: none; display: block; }
.brand img { height: 48px; width: auto; }
.menu-btn, .search-btn {
  display: none; flex: none; width: 44px; height: 44px; margin-left: -10px;
  align-items: center; justify-content: center; padding: 0;
  background: none; border: 0; border-radius: var(--r-4); color: var(--c-text); cursor: pointer;
}
.menu-btn svg, .search-btn svg { width: 24px; height: 24px; }

/* Desktop menu: the "Principal" menu, two levels, every item and sub-item */
.nav { flex: 1 1 auto; min-width: 0; height: 100%; }
.nav__list { display: flex; align-items: stretch; height: 100%; list-style: none; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__link {
  position: relative; display: flex; align-items: center;
  padding: 0 8px; color: var(--c-text);
  font-size: var(--fs-16); font-weight: 600; white-space: nowrap;
}
.nav__item.has-sub > .nav__link { padding-right: 2px; }
.nav__toggle {
  display: flex; align-items: center; justify-content: center; flex: none;
  padding: 0 8px 0 4px; background: none; border: 0; color: var(--c-text-3); cursor: pointer;
}
.nav__toggle .chev { flex: none; width: 10px; height: 10px; transition: transform var(--t-fast) var(--ease); }
.nav__item:hover, .nav__item:focus-within { background: var(--c-raised); }
.nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { color: #fff; }
.nav__item.is-open > .nav__toggle .chev { transform: rotate(180deg); }
/* the current section: the red line under the header rises under this item */
.nav__item.is-current::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: var(--red-line); background: var(--c-red); pointer-events: none;
}
.nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 248px;
  margin-top: var(--red-line); padding: var(--s-8);
  list-style: none; background: var(--c-raised-2);
  border: 1px solid var(--c-line); border-radius: 0 0 var(--r-8) var(--r-8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__item.is-closed > .nav__sub { opacity: 0; visibility: hidden; }
.nav__sub a { display: block; padding: 12px; border-radius: var(--r-4); color: var(--c-text-2); font-size: var(--fs-16); font-weight: 500; line-height: 1.3; }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--c-raised); color: var(--c-text); }
.nav__sub a[aria-current="page"] { color: var(--c-text); }
.nav__drawer-head { display: none; }

/* Search: a real GET form to /?s= */
.search { flex: none; position: relative; width: 168px; }
.search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px;
  background: var(--c-raised); border: 1px solid var(--c-input); border-radius: var(--r-4);
  color: var(--c-text); font-size: var(--fs-14);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--c-text-3); }
.search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--c-text-3); pointer-events: none; }
.search button { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Between 1200 and 1359 px the search field folds into a button so the full menu fits */
@media (min-width: 1200px) and (max-width: 1359px) {
  .site-header .search { display: none; }
  .search-btn { display: inline-flex; margin: 0 -10px 0 auto; }
  .site-header.search-open .search { display: block; position: absolute; right: 0; top: calc(var(--h-header) + 8px); width: 320px; }
}

/* Phone and tablet: menu button, logo, search; the same menu becomes a drawer */
.sections { display: none; }
@media (max-width: 1199px) {
  .menu-btn { display: inline-flex; }
  .site-header__bar { gap: var(--s-12); }
  .brand { margin-right: auto; }
  .nav {
    position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(360px, 88vw); height: 100vh; height: 100dvh;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--c-raised); border-right: 1px solid var(--c-line);
    transform: translateX(-102%); visibility: hidden;
    transition: transform 220ms var(--ease), visibility 0s linear 220ms;
    padding-bottom: var(--s-48);
  }
  .drawer-open .nav { transform: none; visibility: visible; transition: transform 220ms var(--ease); box-shadow: 24px 0 64px rgba(0, 0, 0, 0.6); }
  .drawer-open, .drawer-open body { overflow: hidden; }
  .drawer-scrim { position: fixed; inset: 0; z-index: 70; background: var(--c-scrim); opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), visibility 0s linear 220ms; }
  .drawer-open .drawer-scrim { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease); }
  .nav__drawer-head {
    display: flex; align-items: center; justify-content: space-between; height: var(--h-header);
    padding: 0 var(--s-8) 0 var(--s-16); border-bottom: var(--red-line) solid var(--c-red); background: var(--c-header);
  }
  .nav__drawer-head img { height: 32px; width: auto; }
  .menu-btn--close { display: inline-flex; margin: 0; }
  .nav__list { display: block; height: auto; padding: var(--s-8) 0; }
  .nav__item { display: block; border-bottom: 1px solid var(--c-line); }
  .nav__item:hover, .nav__item:focus-within { background: none; }
  .nav__link { min-height: 52px; padding: 0 var(--s-16); font-size: var(--fs-18); }
  .nav__item.has-sub > .nav__link { padding-right: var(--s-16); }
  .nav__toggle { display: none; }
  .nav__item.is-current::after { display: none; }
  .nav__item.is-current > .nav__link { color: var(--c-red-text); }
  /* sub-items are always listed in the drawer: nothing hides behind a tap */
  .nav__sub, .nav__item.is-closed > .nav__sub {
    position: static; display: grid; grid-template-columns: 1fr; min-width: 0; margin: 0;
    padding: 0 var(--s-16) var(--s-12); background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: inherit; transform: none; transition: none;
  }
  .nav__sub a { padding: 8px 0; font-size: var(--fs-16); color: var(--c-text-2); }
  .nav__sub a:hover { background: none; }
  .search { width: 240px; }
  /* a sideways row of the eight main sections under the bar */
  .sections { display: block; background: var(--c-header); border-top: 1px solid #1a1c20; }
  .sections ul {
    display: flex; gap: var(--s-4); list-style: none; overflow-x: auto; scrollbar-width: none;
    padding: 0 var(--gutter); margin-inline: auto; max-width: calc(var(--w-max) + 2 * var(--gutter));
  }
  .sections ul::-webkit-scrollbar { display: none; }
  .sections a {
    position: relative; display: flex; align-items: center; height: 44px; padding: 0 var(--s-12);
    color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600; white-space: nowrap;
  }
  .sections a[aria-current="true"] { color: var(--c-text); }
  .sections a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: var(--red-line); background: var(--c-red); }
}
@media (max-width: 767px) {
  .brand img { height: 36px; }
  .site-header .search { display: none; }
  .search-btn { display: inline-flex; margin: 0 -10px 0 0; }
  .site-header.search-open .search { display: block; position: absolute; left: 0; right: 0; top: calc(var(--h-header) + 8px); width: auto; z-index: 5; }
  .site-header.search-open .search input { height: 44px; font-size: var(--fs-16); }
  .site-header.search-open .search svg { top: 14px; }
}

/* 5. Adverts: the engine's slots (inc/ads.php), reserved space, a label ---- */
.mmaob-ad { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 100%; margin: 0 auto; text-align: center; clear: both; }
.mmaob-ad__label { color: var(--c-text-3); font-size: var(--fs-12); line-height: 1; letter-spacing: 0.02em; }
.mmaob-ad__slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: var(--mmaob-ad-w-sm, 300px); max-width: 100%; min-height: var(--mmaob-ad-h-sm, 250px); overflow: hidden;
  background: var(--c-raised); border: 1px solid var(--c-line); border-radius: var(--r-4);
}
@media (min-width: 768px) {
  .mmaob-ad__slot { width: var(--mmaob-ad-w, 728px); min-height: var(--mmaob-ad-h, 90px); }
}
.mmaob-ad__item { max-width: 100%; }
.mmaob-ad__item img, .mmaob-ad__item iframe { margin-inline: auto; }
.ad-band { padding: var(--s-12) 0 var(--s-16); background: var(--c-page); border-bottom: 1px solid var(--c-line); }
.ad-row { margin-block: var(--s-48); }
.article .mmaob-ad { align-items: flex-start; }
.article .ad-row { margin-block: var(--s-48) var(--s-16); }
@media (max-width: 767px) {
  .ad-band { padding: var(--s-8) 0 var(--s-12); }
  .ad-row { margin-block: var(--s-32); }
}
/* Phone sticky: phones only, fixed to the bottom, closable (engine.js) */
.mmaob-ad--phone-sticky {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 55; margin: 0; gap: 0;
  padding: 18px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  background: var(--c-header); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}
.mmaob-ad--phone-sticky .mmaob-ad__label { position: absolute; top: 4px; left: 8px; }
.mmaob-ad--phone-sticky .mmaob-ad__slot { min-height: var(--mmaob-ad-h-sm, 50px); background: none; border: 0; }
.mmaob-ad__close {
  position: absolute; top: -18px; right: 8px; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--c-line-strong); border-radius: 50%; background: var(--c-raised-2); color: var(--c-text);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.mmaob-ad[hidden] { display: none !important; }
@media (min-width: 768px) {
  .mmaob-ad--phone-sticky { display: none; }
}
/* One ad in the first phone screen: the sticky replaces the header phone banner */
@media (max-width: 767px) {
  .mmaob-has-phone-sticky .ad-band, .mmaob-has-phone-sticky .mmaob-ad--header-leaderboard { display: none; }
  .mmaob-has-phone-sticky { padding-bottom: 80px; }
}

/* 6. Page head and breadcrumbs --------------------------------------------- */
.intro { display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); padding-block: var(--s-24) var(--s-16); }
.intro h1 { font-size: var(--fs-28); font-weight: 600; line-height: 1.1; color: var(--c-text-2); }
.intro--collection { padding-top: var(--s-16); }
.intro--collection h1 { color: var(--c-text); font-size: var(--fs-56); font-weight: 700; line-height: var(--lh-tight); }
.crumbs { padding-top: var(--s-24); color: var(--c-text-3); font-size: var(--fs-14); line-height: 1.6; }
.crumbs a { color: var(--c-text-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.crumbs a:hover { color: var(--c-text); text-decoration-color: currentColor; }
.crumbs .breadcrumb_last, .crumbs [aria-current] { color: var(--c-text-3); }
.archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-24); padding-block: var(--s-16) var(--s-24); }
.archive-head h1 { font-size: var(--fs-56); line-height: var(--lh-tight); }
.archive-head p, .archive-head__desc { margin-top: var(--s-12); max-width: 64ch; color: var(--c-text-2); font-size: var(--fs-18); line-height: 1.55; }
.archive-head__desc p + p { margin-top: var(--s-8); }
.archive-head__desc a { color: var(--c-red-text); text-decoration: underline; text-underline-offset: 3px; }
.archive-head--search .search--page { margin-top: 0; }
@media (max-width: 767px) {
  .intro { flex-direction: column; align-items: flex-start; gap: var(--s-12); padding-block: var(--s-16) var(--s-8); }
  .intro h1 { font-size: var(--fs-20); }
  .intro--collection h1 { font-size: var(--fs-40); }
  .archive-head { display: block; padding-bottom: var(--s-16); }
  .archive-head h1 { font-size: var(--fs-40); }
  .archive-head--search .search--page { margin-top: var(--s-16); }
  .crumbs { padding-top: var(--s-16); }
}

/* Quick links: Latest / Popular / Hot / Trending (real links, styled as a segmented control) */
.quick { display: inline-flex; padding: 3px; gap: 2px; list-style: none; background: var(--c-raised); border: 1px solid var(--c-line); border-radius: var(--r-8); }
.quick a { display: flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-4); color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600; }
.quick a:hover { color: var(--c-text); background: var(--c-raised-2); }
.quick a[aria-current] { color: #fff; background: var(--c-red); }
@media (max-width: 767px) {
  .intro nav { width: 100%; }
  .quick { display: flex; width: 100%; }
  .quick li { flex: 1 1 auto; }
  .quick a { justify-content: center; height: 44px; padding: 0 8px; }
}

/* 7. Section heads --------------------------------------------------------- */
.sec-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-4) var(--s-16); margin-bottom: var(--s-24); padding-bottom: var(--s-12); border-bottom: 1px solid var(--c-line); }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: var(--red-line); background: var(--c-red); }
.sec-head h2 { font-size: var(--fs-32); line-height: 1; }
.sec-head a.more { color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: 4px; }
.sec-head a.more:hover { color: var(--c-text); text-decoration-color: currentColor; }
@media (max-width: 767px) {
  .sec-head { margin-bottom: var(--s-8); }
  .sec-head h2 { font-size: var(--fs-28); }
}

/* 8. Cards and lists ------------------------------------------------------- */
/* One card: picture, kind label, headline, byline. No border; the headline link covers the card. */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-8); background: var(--c-raised); }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-img-ring); pointer-events: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease); }
.card:hover .thumb img { transform: scale(1.03); }
/* Posts without a featured image (most of 2012 to 2016): a text card, no empty frame */
.card--text { padding-top: var(--s-16); border-top: 1px solid var(--c-line); }
.card--noimg { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "body" !important; }
.card--text .card__body { padding-top: 0; gap: var(--s-8); }
.card--text .excerpt { font-size: var(--fs-16); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--text::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--c-line-strong); }
/* Podcast artwork: the square centre of the poster in a fixed dark frame, the title stays in text */
.thumb--art { display: flex; justify-content: center; background: #060707; }
.thumb--art img { width: auto; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding-top: var(--s-12); }
.kind { position: relative; z-index: 2; align-self: flex-start; color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600; line-height: 1.2; }
a.kind:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
.card__title { font-size: var(--fs-24); font-weight: 600; line-height: 1.1; }
.card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c-red); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::before { outline: 2px solid var(--c-focus); outline-offset: 4px; border-radius: var(--r-4); }
.byline { position: relative; z-index: 2; color: var(--c-text-3); font-size: var(--fs-14); line-height: 1.35; }
.byline a { color: var(--c-text-2); }
.byline a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
.mmaob-byline__author::after { content: ","; }
.mmaob-byline__author:last-child::after { content: none; }
.excerpt { color: var(--c-text-2); font-size: var(--fs-18); line-height: 1.55; text-wrap: pretty; }

/* Compact row: small picture, then the headline (lists, the lead's companions, the second half of a feed) */
.card--row { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: var(--s-16); align-items: center; padding-block: var(--s-16); border-bottom: 1px solid var(--c-line); }
.card--row .card__body { padding-top: 0; gap: 4px; }
.card--row .card__title { font-size: var(--fs-20); line-height: 1.12; }
.list2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-32); border-top: 1px solid var(--c-line); }

/* The lead story: picture and headline side by side, its two companions as rows underneath */
.lead { display: grid; gap: var(--s-8); }
.card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-32); align-items: end; }
.card--lead .card__body { gap: var(--s-12); padding: 0 0 var(--s-4); }
.card--lead .card__title { font-size: var(--fs-48); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.005em; }
.card--lead .excerpt { max-width: 62ch; }
.card--lead.card--text { padding-top: var(--s-24); }
.card--lead.card--text .card__body { max-width: 900px; }
.lead__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-32); margin-top: var(--s-16); border-top: 1px solid var(--c-line); }
.lead__side .card--row { border-bottom: 0; }
.card--lead.is-podcast { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; }
.card--lead.is-podcast .thumb { aspect-ratio: 1 / 1; }
.card--lead.is-podcast .card__title { font-size: var(--fs-56); }
.card--lead.is-podcast .card__body { padding-right: var(--s-48); }
@media (max-width: 1199px) {
  .card--lead .card__title, .card--lead.is-podcast .card__title { font-size: var(--fs-40); }
}
@media (max-width: 1023px) {
  .card--lead, .card--lead.is-podcast { grid-template-columns: 1fr; row-gap: var(--s-16); }
  .card--lead.is-podcast .thumb { max-width: 320px; }
  .list2 { grid-template-columns: 1fr; }
}

/* Phone: after the lead, compact rows with the picture on the right */
@media (max-width: 767px) {
  .card--lead .card__title, .card--lead.is-podcast .card__title { font-size: var(--fs-32); }
  .card--lead .excerpt { font-size: var(--fs-16); }
  .card--lead.is-podcast { display: block; padding-top: var(--s-8); }
  .card--lead.is-podcast .thumb { float: right; width: 104px; height: 104px; margin: 4px 0 var(--s-8) var(--s-16); border-radius: var(--r-4); }
  .card--lead.is-podcast .card__body { display: block; padding: 0; }
  .card--lead.is-podcast .card__body > * + * { margin-top: var(--s-8); }
  .card--lead.is-podcast::after { content: ""; display: block; clear: both; }
  .card--lead.is-podcast .card__title { font-size: var(--fs-28); }
  .lead { gap: 0; }
  .lead__side { grid-template-columns: 1fr; margin-top: 0; border-top: 0; }
  .lead__side .card--row { border-bottom: 1px solid var(--c-line); }
  .card--row, .grid > .card {
    display: grid; grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: "body thumb";
    gap: var(--s-16); align-items: start; padding-block: var(--s-16); border-bottom: 1px solid var(--c-line);
  }
  .card--row .thumb, .grid > .card .thumb { grid-area: thumb; border-radius: var(--r-4); }
  .card--row .card__body, .grid > .card .card__body { grid-area: body; padding-top: 0; gap: 4px; }
  .card--row .card__title, .grid > .card .card__title { font-size: var(--fs-20); line-height: 1.12; }
  .list2 { border-top: 0; }
  .grid > .card--text { display: block; padding-top: var(--s-16); border-top: 0; }
  .card--text::before { display: none; }
  .card--lead { padding-bottom: var(--s-16); border-bottom: 1px solid var(--c-line); }
}

/* 9. Podcasts: the episode list (poster in a fixed square frame, title as text) */
.pods { padding: var(--s-24); background: var(--c-raised); border-radius: var(--r-8); }
.pods .sec-head { border-bottom-color: var(--c-line-strong); }
.pods__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16) var(--s-32); list-style: none; }
.pod { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-16); align-items: center; }
.pod--noimg { grid-template-columns: minmax(0, 1fr); }
.pod__art { position: relative; overflow: hidden; width: 88px; height: 88px; border-radius: var(--r-4); background: #000; }
.pod__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pod__art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-img-ring); }
.pod__title { color: var(--c-text); font-family: var(--f-text); font-size: var(--fs-16); font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.pod__title a::before { content: ""; position: absolute; inset: 0; }
.pod:hover .pod__title a { text-decoration: underline; text-underline-offset: 3px; }
.pod__meta { margin-top: 4px; color: var(--c-text-3); font-size: var(--fs-14); }
.rail .pods { padding: var(--s-16) var(--s-16) var(--s-24); }
.rail .pods__list { grid-template-columns: 1fr; gap: var(--s-16); }
.rail .pod { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-12); align-items: start; }
.rail .pod--noimg { grid-template-columns: minmax(0, 1fr); }
.rail .pod__art { width: 72px; height: 72px; }
.rail .pod__title { font-size: var(--fs-14); }
.rail .sec-head h2 { font-size: var(--fs-24); }
@media (max-width: 1023px) { .pods__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .pods { padding: var(--s-16); margin-inline: calc(-1 * var(--gutter) + 8px); }
  .pods__list { grid-template-columns: 1fr; gap: var(--s-12); }
  .pod { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-12); }
  .pod__art { width: 64px; height: 64px; }
}

/* 10. Pagination: numbered, crawlable /page/N/ links (core paginate_links list) */
.pagination { margin-top: var(--s-48); }
.mmaob-pagination ul.page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-8); list-style: none; }
.mmaob-pagination li { display: flex; }
.mmaob-pagination .page-numbers:not(ul) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 var(--s-12);
  border-radius: var(--r-4); color: var(--c-text-2); font-size: var(--fs-16); font-weight: 600;
}
.mmaob-pagination a.page-numbers { background: var(--c-raised); border: 1px solid var(--c-line); }
.mmaob-pagination a.page-numbers:hover { color: var(--c-text); background: var(--c-raised-2); border-color: var(--c-line-strong); }
.mmaob-pagination .page-numbers.current { color: #fff; background: var(--c-red); }
.mmaob-pagination .page-numbers.dots { min-width: 24px; padding: 0; color: var(--c-text-3); }
.mmaob-pagination .prev.page-numbers, .mmaob-pagination .next.page-numbers { padding: 0 var(--s-16); color: var(--c-text); }
.mmaob-pagination .next.page-numbers::after, .mmaob-pagination .prev.page-numbers::before {
  content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.mmaob-pagination .next.page-numbers::after { margin-left: 10px; transform: rotate(45deg); }
.mmaob-pagination .prev.page-numbers::before { margin-right: 10px; transform: rotate(-135deg); }
.pagination__note { margin-top: var(--s-12); text-align: center; color: var(--c-text-3); font-size: var(--fs-12); }
@media (max-width: 767px) {
  .mmaob-pagination ul.page-numbers { gap: 6px; }
  .mmaob-pagination li.hide-s { display: none; }
}

/* 11. Article -------------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 728px) minmax(0, 1fr) var(--w-rail); align-items: start; }
.article-layout > .article { grid-column: 1; min-width: 0; }
.article-layout > .rail { grid-column: 3; position: sticky; top: calc(var(--h-header) + var(--red-line) + 24px); }
/* the staff picks table needs the full width: it runs under the rail, which then does not stay in place */
.single-picks .article-layout > .rail { position: static; }
.entry.entry--picks .ninja_table_wrapper { width: calc(min(100vw, var(--w-max) + 2 * var(--gutter)) - 2 * var(--gutter)); max-width: none; position: relative; z-index: 1; }
.article-head { padding-top: var(--s-16); }
.article-head h1 { font-size: var(--fs-56); line-height: var(--lh-tight); letter-spacing: -0.005em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); margin-top: var(--s-24); padding-block: var(--s-16); border-block: 1px solid var(--c-line); }
.article-meta .byline { font-size: var(--fs-16); }
.article-meta .mmaob-byline__author-link { color: var(--c-text); font-weight: 600; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); }
.figure { margin: var(--s-24) 0 0; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-8); background: var(--c-raised); }
.figure--portrait img { width: auto; max-width: 100%; max-height: 560px; aspect-ratio: auto; }
.figure figcaption { margin-top: var(--s-8); color: var(--c-text-3); font-size: var(--fs-14); }

/* Post body: printed exactly as stored; only styled */
.entry { max-width: 728px; margin-top: var(--s-32); color: var(--c-text-body); font-size: var(--fs-18); line-height: var(--lh-text); text-wrap: pretty; overflow-wrap: anywhere; }
.entry::after { content: ""; display: table; clear: both; }
.entry > * + *, .entry .vc-text > * + *, .entry .vc-col > * + * { margin-top: 1.1em; }
.entry a { color: var(--c-red-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { color: #ff8c8c; }
.entry a[href=""] { color: inherit; text-decoration: none; pointer-events: none; }
.entry strong, .entry b { color: var(--c-text); font-weight: 600; }
.entry ul, .entry ol { padding-left: 1.25em; }
.entry li + li { margin-top: 0.6em; }
.entry li > ul, .entry li > ol { margin-top: 0.6em; }
.entry li::marker { color: var(--c-text-3); }
.entry h1 { margin-top: 1.4em; font-size: var(--fs-40); }
.entry h2 { margin-top: 1.6em; font-size: var(--fs-32); }
.entry h3 { margin-top: 1.4em; font-size: var(--fs-24); }
.entry h4, .entry h5, .entry h6 { margin-top: 1.4em; font-size: var(--fs-20); }
.entry > :first-child { margin-top: 0; }
.entry blockquote { margin: 0; padding-left: var(--s-24); border-left: 3px solid var(--c-line-strong); color: var(--c-text); }
.entry blockquote p + p { margin-top: 0.8em; }
.entry hr { height: 0; border: 0; border-top: 1px solid var(--c-line); }
.entry pre { overflow-x: auto; padding: var(--s-16); background: var(--c-raised); border-radius: var(--r-4); font-size: var(--fs-14); }
.entry img { border-radius: var(--r-4); }
.entry iframe, .entry embed, .entry object, .entry video { max-width: 100%; }
.entry table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: var(--fs-16); line-height: 1.4; }
.entry table:not(.foo-table) th, .entry table:not(.foo-table) td { padding: 8px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.entry table:not(.foo-table) thead th { color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600; }
/* alignments and captions (classic editor) */
.entry .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
.entry .aligncenter { display: block; margin-inline: auto; }
.entry .alignnone { max-width: 100%; }
.entry .wp-caption { max-width: 100% !important; }
.entry .wp-caption img { display: block; }
.entry .wp-caption-text, .entry figcaption { margin-top: var(--s-8); color: var(--c-text-3); font-size: var(--fs-14); line-height: 1.45; }
.entry .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-8); }
.entry .gallery-item { margin: 0; }
/* core blocks, in case a post holds any (none in the sample) */
.entry .wp-block-image img { border-radius: var(--r-4); }
.entry .wp-block-image.aligncenter, .entry .wp-block-image .aligncenter { text-align: center; }
.entry .wp-block-quote { margin: 0; padding-left: var(--s-24); border-left: 3px solid var(--c-line-strong); }
.entry .wp-block-pullquote { padding: var(--s-24) 0; border-block: 2px solid var(--c-line-strong); text-align: center; font-size: var(--fs-24); }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--c-line); }
.entry .wp-block-table { overflow-x: auto; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-16); border-radius: var(--r-4); background: var(--c-red); color: #fff; font-size: var(--fs-16); font-weight: 600; text-decoration: none; }
.entry .wp-block-embed { margin-inline: 0; }
.entry .wp-block-embed__wrapper { position: relative; }
.entry .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.entry .wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 4 / 3; }
.entry [class*="wp-embed-aspect-"] .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry .wp-block-columns { display: flex; flex-wrap: wrap; gap: var(--s-24); }
.entry .wp-block-column { flex: 1 1 240px; min-width: 0; }
.entry .has-text-align-center { text-align: center; }
.entry .has-text-align-right { text-align: right; }
.entry .twitter-tweet, .entry .instagram-media { max-width: 100% !important; margin-inline: 0 !important; }
.entry .wp-embedded-content { max-width: 100%; }
/* A paragraph that is only bold text works as the writer's subheading */
.entry p:has(> strong:only-child) { margin-top: 1.6em; color: var(--c-text); font-family: var(--f-display); font-size: var(--fs-28); font-weight: 700; line-height: 1.1; }
.entry p:has(> strong:only-child) strong { font-weight: 700; }
@media (max-width: 1199px) {
  .article-layout { grid-template-columns: minmax(0, 728px) minmax(0, 1fr); }
  .article-layout > .rail { grid-column: 1; position: static; }
  .entry.entry--picks .ninja_table_wrapper { width: 100%; }
}
@media (max-width: 767px) {
  .article-head h1 { font-size: var(--fs-32); line-height: 1.06; }
  .article-meta { margin-top: var(--s-16); padding-block: var(--s-12); }
  .figure { margin-inline: calc(-1 * var(--gutter)); }
  .figure img { border-radius: 0; }
  .figure--portrait { display: flex; justify-content: center; }
  .figure figcaption { padding-inline: var(--gutter); }
  .entry { font-size: 17px; margin-top: var(--s-24); }
  .entry p:has(> strong:only-child) { font-size: var(--fs-24); }
  .entry .alignleft, .entry .alignright { float: none; margin: 0; max-width: 100%; }
  .entry table:not(.foo-table) { display: block; overflow-x: auto; }
}

/* 12. Odds (phase 1): the writer's own lines ("Name -108<br>Name -108"), one fight per paragraph, styled as rows */
.entry--odds p:has(> br) {
  margin-top: 0; padding: 12px 16px; background: var(--c-raised); border-bottom: 1px solid var(--c-line);
  color: var(--c-text); font-size: var(--fs-18); font-weight: 500; line-height: 1.7;
}
.entry--odds :not(p:has(> br)) + p:has(> br) { margin-top: var(--s-16); border-radius: var(--r-8) var(--r-8) 0 0; }
.entry--odds > p:has(> br):first-child { border-radius: var(--r-8) var(--r-8) 0 0; }
.entry--odds p:has(> br):not(:has(+ p > br)) { border-bottom: 0; border-radius: 0 0 var(--r-8) var(--r-8); }
.entry--odds :not(p:has(> br)) + p:has(> br):not(:has(+ p > br)) { border-radius: var(--r-8); }
.entry--odds p:has(> br) + :not(p:has(> br)) { margin-top: var(--s-32); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-16); border-radius: var(--r-4); font-size: var(--fs-16); font-weight: 600; }
.btn--red, .entry a.btn--red { background: var(--c-red); color: #fff; text-decoration: none; }
.btn--red:hover, .entry a.btn--red:hover { background: var(--c-red-hover); color: #fff; }

/* 13. Staff picks: Ninja Tables output, restyled (data and order as published).
   Ninja Tables loads its own white Semantic UI styles on live; these win over
   them, and the table shows without its script. */
.entry .ninja_table_wrapper { max-width: 100%; margin-block: var(--s-24); overflow-x: auto; background: var(--c-raised) !important; border: 1px solid var(--c-line); border-radius: var(--r-8); -webkit-overflow-scrolling: touch; }
.entry--picks { max-width: none; }
.entry--picks > :not(.ninja_table_wrapper):not(.mmaob-ad):not(.ad-row) { max-width: 728px; }
.ninja_table_wrapper.loading_ninja_table, .ninja_table_wrapper.loading_ninja_table table { visibility: visible !important; opacity: 1 !important; }
.entry .ninja_table_wrapper table.foo-table { width: 100%; min-width: 860px; margin: 0; table-layout: fixed; border: 0 !important; border-collapse: separate; border-spacing: 0; background: transparent !important; color: var(--c-text) !important; font-family: var(--f-text); font-size: var(--fs-16); line-height: 1.3; }
.entry .ninja_table_wrapper table.foo-table thead th:first-child { width: 132px; }
.entry .ninja_table_wrapper table.foo-table th, .entry .ninja_table_wrapper table.foo-table td { display: table-cell !important; padding: 12px; border: 0 !important; border-bottom: 1px solid var(--c-line) !important; text-align: center; white-space: nowrap; }
.entry .ninja_table_wrapper table.foo-table thead th { position: sticky; top: 0; padding-block: 16px; background: #121417 !important; color: var(--c-text-2) !important; font-size: var(--fs-14); font-weight: 600; white-space: normal; vertical-align: bottom; line-height: 1.25; }
.entry .ninja_table_wrapper table.foo-table thead th:first-child { color: var(--c-text) !important; font-family: var(--f-display); font-size: var(--fs-24); font-weight: 700; text-align: left; }
.entry .ninja_table_wrapper table.foo-table td:first-child, .entry .ninja_table_wrapper table.foo-table th:first-child {
  position: sticky; left: 0; z-index: 1; min-width: 116px; text-align: left; background: var(--c-raised) !important; color: var(--c-text-2) !important; font-weight: 600;
  box-shadow: 1px 0 0 var(--c-line);
}
.entry .ninja_table_wrapper table.foo-table thead th:first-child { z-index: 2; background: #121417 !important; }
.entry .ninja_table_wrapper table.foo-table tbody td { background: var(--c-raised) !important; color: var(--c-text) !important; }
.entry .ninja_table_wrapper table.foo-table tbody tr:nth-child(even) td { background: #1a1c20 !important; }
.entry .ninja_table_wrapper table.foo-table tbody tr:hover td { background: var(--c-raised-2) !important; }
/* the two record rows sit under a stronger rule and read as totals */
.entry .ninja_table_wrapper tbody tr:has(+ tr + tr > td:empty) td,
.entry .ninja_table_wrapper tbody tr:has(+ tr > td:empty):not(:has(td:empty)) td { font-weight: 600; }
.entry .ninja_table_wrapper tbody tr:has(+ tr + tr > td:empty) td { border-top: 2px solid var(--c-line-strong) !important; }
/* footnote rows (text in the first cell, the rest empty) span the table as plain notes */
.entry .ninja_table_wrapper tbody tr:has(> td:empty) td { background: var(--c-raised) !important; border-bottom: 0 !important; }
.entry .ninja_table_wrapper tbody tr:has(> td:empty) td:first-child { position: static; overflow: visible; padding-block: 4px; color: var(--c-text-3) !important; font-size: var(--fs-12); font-weight: 400; white-space: nowrap; box-shadow: none; }
.entry .ninja_table_wrapper tbody tr:has(> td:empty):last-child td:first-child { padding-bottom: 16px; }
/* Footable's phone toggles and detail rows: the table scrolls in its box instead */
.ninja_table_wrapper .footable-toggle, .ninja_table_wrapper tr.footable-detail-row, .ninja_table_wrapper .footable-empty { display: none !important; }
.ninja_table_wrapper .footable-filtering, .ninja_table_wrapper .footable-paging { background: var(--c-raised) !important; color: var(--c-text-2) !important; }
/* the writer's "Scroll table to see full content" note right after the table */
.entry .ninja_table_wrapper + p { margin-top: calc(-1 * var(--s-12)); color: var(--c-text-3); font-size: var(--fs-14); }
.entry .ninja_table_wrapper + p strong { color: inherit; font-weight: 500; }

/* 14. Player and embeds: the engine's ratio wrapper (inc/embeds.php), MediaAce's box, the facade */
.mmaob-embed {
  display: block; position: relative; width: 100%; max-width: 100%;
  aspect-ratio: var(--mmaob-ar, 16 / 9); margin: 0; overflow: hidden; border-radius: var(--r-8); background: #000;
}
.entry .mmaob-embed + *, .entry * + .mmaob-embed { margin-top: 1.1em; }
.mmaob-embed > iframe, .mmaob-embed > object, .mmaob-embed > embed, .mmaob-embed > video, .mmaob-embed > .mace-youtube, .mmaob-embed > .mmaob-yt {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
/* Bimber's wrapper in pasted HTML (and the test bed's copies of post bodies) */
.g1-fluid-wrapper { width: 100% !important; max-width: 100% !important; }
.g1-fluid-wrapper-inner { position: relative; height: 0; overflow: hidden; border-radius: var(--r-8); background: #000; }
.g1-fluid-wrapper-inner > iframe, .g1-fluid-wrapper-inner > .mace-youtube { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* the click-to-load box: MediaAce's, or the engine's facade */
.mmaob-yt, .mace-youtube {
  display: block; padding: 0; margin: 0; border: 0; cursor: pointer;
  background: #000 var(--mmaob-yt-thumb, none) center / cover no-repeat;
}
.mace-youtube { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mmaob-yt::before, .mace-youtube::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%); }
.mmaob-yt__play, .mace-play-button {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--c-red); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast);
}
.mmaob-yt__play::after, .mace-play-button::after {
  content: ""; position: absolute; left: 30px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff;
}
.mmaob-yt:hover .mmaob-yt__play, .mmaob-yt:focus-visible .mmaob-yt__play, .mace-youtube:hover .mace-play-button, .mace-youtube:focus-visible .mace-play-button { transform: scale(1.06); background: var(--c-red-hover); }
.mace-youtube iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.player-note { margin-top: var(--s-8); color: var(--c-text-3); font-size: var(--fs-14); }
.pod-head { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-32); align-items: center; padding-top: var(--s-16); }
.pod-head .poster { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-8); background: #000; }
.pod-head .poster img { width: 100%; height: 100%; object-fit: cover; }
.pod-head h1 { font-size: var(--fs-48); line-height: var(--lh-tight); }
@media (max-width: 767px) {
  .pod-head { grid-template-columns: 1fr; gap: var(--s-16); }
  .pod-head h1 { font-size: var(--fs-32); }
  .mmaob-yt__play, .mace-play-button { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .mmaob-yt__play::after, .mace-play-button::after { left: 25px; top: 20px; border-width: 12px 0 12px 19px; }
}

/* 15. Article end: author, previous and next, more in the category ---------- */
.author-box { display: flex; align-items: center; gap: var(--s-16); margin-top: var(--s-48); padding: var(--s-16) 0; border-top: 1px solid var(--c-line); }
.avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c-raised-2); color: var(--c-text); font-weight: 700; font-size: var(--fs-16); }
.author-box h2 { font-family: var(--f-text); font-size: var(--fs-16); font-weight: 600; line-height: 1.3; }
.author-box__bio { margin-block: 4px; color: var(--c-text-2); font-size: var(--fs-14); line-height: 1.5; }
.author-box a { color: var(--c-text-2); font-size: var(--fs-14); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line-strong); }
.author-box a:hover { color: var(--c-text); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); margin-top: var(--s-16); }
.prevnext a { display: block; padding: var(--s-16); background: var(--c-raised); border-radius: var(--r-8); }
.prevnext a:hover { background: var(--c-raised-2); }
.prevnext small { display: block; margin-bottom: 6px; color: var(--c-text-3); font-size: var(--fs-12); }
.prevnext h3 { font-size: var(--fs-20); font-weight: 600; line-height: 1.15; }
.prevnext .next { text-align: right; }
@media (max-width: 767px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { text-align: left; } .prevnext > span:empty { display: none; } }
.rail { display: grid; gap: var(--s-32); align-content: start; padding-top: var(--s-24); }

/* 16. Footer --------------------------------------------------------------- */
.site-footer { margin-top: var(--s-64); padding-block: var(--s-48) var(--s-24); background: var(--c-header); border-top: 1px solid var(--c-line); color: var(--c-text-2); font-size: var(--fs-16); line-height: 1.6; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-48); }
.footer__logo { width: 123px; height: auto; margin-bottom: var(--s-16); }
.site-footer h2 { margin-bottom: var(--s-12); color: var(--c-text); font-family: var(--f-text); font-size: var(--fs-16); font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-block; padding-block: 4px; }
.site-footer a:hover { color: var(--c-text); }
.site-footer p a { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line-strong); }
.social { display: flex; gap: var(--s-8); margin-top: var(--s-16); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-line-strong); border-radius: 50%; color: var(--c-text); }
.social a:hover { background: var(--c-raised-2); }
.social svg { width: 18px; height: 18px; }
.footer__base { margin-top: var(--s-48); padding-top: var(--s-24); border-top: 1px solid var(--c-line); color: var(--c-text-3); font-size: var(--fs-12); }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-32); } }
@media (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-32); }
  .site-footer { margin-top: var(--s-48); }
  .site-footer li a { padding-block: 10px; }
}

/* 17. Pages, 404, search and collections ----------------------------------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 760px) var(--w-rail); justify-content: space-between; gap: var(--s-64); }
.page-layout--single { grid-template-columns: minmax(0, 860px); }
.page-body { min-width: 0; }
.page-body .article-head h1, .page-full .article-head h1 { font-size: var(--fs-56); line-height: var(--lh-tight); }
.entry--page, .entry--full { max-width: none; }
.subnav { margin-top: var(--s-32); padding: var(--s-16); background: var(--c-raised); border-radius: var(--r-8); }
.subnav h2 { margin-bottom: var(--s-8); font-family: var(--f-text); font-size: var(--fs-14); font-weight: 600; color: var(--c-text-2); }
.subnav ul { list-style: none; }
.subnav a { display: block; padding: 12px; border-radius: var(--r-4); color: var(--c-text); font-size: var(--fs-16); font-weight: 500; }
.subnav a:hover { background: var(--c-raised-2); }
.subnav a[aria-current="page"] { background: var(--c-raised-2); color: var(--c-red-text); font-weight: 600; }
.rail--page { padding-top: var(--s-24); }
@media (max-width: 1023px) { .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.entry ul.uk-list-line { padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.entry ul.uk-list-line li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); font-size: var(--fs-18); line-height: 1.45; }
/* the stats page: the tool runs the full width, in a frame of about 1,900 px on desktop */
.entry--full .vc-raw iframe, .entry--full > iframe { display: block; width: 100%; border: 0; background: var(--c-raised); border-radius: var(--r-8); }
@media (min-width: 1024px) {
  .page-full iframe[src*="shinyapps.io"] { height: 1900px; }
}
.notfound { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-64); padding-top: var(--s-48); }
.notfound h1 { font-size: var(--fs-72); line-height: 0.95; }
.notfound .lede { margin-top: var(--s-16); color: var(--c-text-2); font-family: var(--f-text); font-size: var(--fs-20); font-weight: 400; line-height: 1.45; }
.search--page { display: block; width: 100%; max-width: 480px; margin-top: var(--s-32); }
.search--page input { height: 52px; font-size: var(--fs-16); padding-left: 44px; padding-right: 110px; }
.search--page svg { left: 16px; top: 18px; }
.search--page button { right: 6px; top: 6px; width: auto; height: 40px; overflow: visible; clip: auto; padding: 0 var(--s-16); background: var(--c-red); border: 0; border-radius: var(--r-4); color: #fff; font-weight: 600; cursor: pointer; }
.search--page button:hover { background: var(--c-red-hover); }
.helps { display: grid; gap: var(--s-24); margin-top: var(--s-32); }
.helps h2 { font-family: var(--f-text); font-size: var(--fs-16); font-weight: 600; }
.helps p { margin-top: 4px; color: var(--c-text-2); font-size: var(--fs-16); line-height: 1.5; }
.helps a { color: var(--c-red-text); text-decoration: underline; text-underline-offset: 3px; }
.stack { display: grid; gap: var(--s-24); }
@media (max-width: 1023px) { .notfound { grid-template-columns: 1fr; gap: var(--s-48); } }
@media (max-width: 767px) {
  .notfound { padding-top: var(--s-24); }
  .notfound h1 { font-size: var(--fs-48); }
  .page-body .article-head h1, .page-full .article-head h1 { font-size: var(--fs-40); }
  .stack { gap: 0; }
}

/* 18. Plugins -------------------------------------------------------------- */
/* Contact Form 7 */
.wpcf7 { max-width: 640px; }
.wpcf7 form > * + *, .wpcf7 form p + p { margin-top: var(--s-16); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 textarea, .wpcf7 select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--c-raised); border: 1px solid var(--c-input); border-radius: var(--r-4);
  color: var(--c-text); font-size: var(--fs-16); line-height: 1.4;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--c-text-3); opacity: 1; }
.wpcf7 select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-text-3) 50%), linear-gradient(135deg, var(--c-text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit { min-height: 48px; padding: 0 var(--s-24); background: var(--c-red); border: 0; border-radius: var(--r-4); color: #fff; font-weight: 600; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--c-red-hover); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 4px; color: var(--c-red-text); font-size: var(--fs-14); }
.wpcf7 .wpcf7-response-output { margin: var(--s-16) 0 0; padding: var(--s-12) var(--s-16); border: 1px solid var(--c-line-strong); border-radius: var(--r-4); color: var(--c-text); font-size: var(--fs-16); }
.wpcf7 .unafila { display: flex; flex-wrap: wrap; gap: var(--s-16); margin-top: var(--s-16); }
.wpcf7 .unmedio { flex: 1 1 240px; min-width: 0; }
.wpcf7 .lapalabra p { color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wpcf7 fieldset { margin: 0; padding: 0; border: 0; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
/* Easy Social Share Buttons: its own buttons where its settings put them, styled to the design */
.essb_links { margin: 0 0 var(--s-24) !important; }
.essb_links .essb_links_list, .essb_links ul { display: flex !important; flex-wrap: wrap; gap: var(--s-8); margin: 0 !important; padding: 0 !important; list-style: none !important; }
.essb_links li { margin: 0 !important; }
.essb_links li a, .essb_links .essb_link_svg_icon { display: inline-flex !important; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px !important; background: none !important; border: 1px solid var(--c-line-strong) !important; border-radius: var(--r-4) !important; color: var(--c-text) !important; font-family: var(--f-text) !important; font-size: var(--fs-14) !important; font-weight: 600 !important; text-decoration: none !important; box-shadow: none !important; }
.essb_links li a:hover { background: var(--c-raised-2) !important; }
.essb_links li a svg, .essb_links .essb_icon { color: currentColor !important; fill: currentColor; }
.entry .essb_links a { text-decoration: none; }
.essb_links h6, .essb_links .essb_message_before { margin: 0 0 var(--s-8) !important; color: var(--c-text-3) !important; font-family: var(--f-text) !important; font-size: var(--fs-14) !important; font-weight: 500 !important; }
@media (max-width: 767px) { .essb_links li a { min-height: 44px; } }

/* 19. WPBakery pages, rendered by inc/wpbakery.php once WPBakery is off ---- */
.vc-row { display: flex; flex-wrap: wrap; gap: var(--s-24) var(--s-32); }
.entry > .vc-row + .vc-row { margin-top: var(--s-32); }
.vc-col { flex: 1 1 100%; min-width: 0; }
.vc-col--1-2 { flex-basis: calc(50% - 16px); }
.vc-col--1-3 { flex-basis: calc(33.333% - 22px); }
.vc-col--2-3 { flex-basis: calc(66.666% - 11px); }
.vc-col--1-4 { flex-basis: calc(25% - 24px); }
.vc-col--3-4 { flex-basis: calc(75% - 8px); }
.vc-col--1-6 { flex-basis: calc(16.666% - 27px); }
.vc-col--5-6 { flex-basis: calc(83.333% - 6px); }
.vc-heading { margin: 0; font-size: var(--fs-28); }
.entry .vc-heading a { color: var(--c-text); text-decoration: none; }
.entry .vc-heading a:hover { text-decoration: underline; text-decoration-color: var(--c-red); text-underline-offset: 4px; }
.vc-heading + .vc-text { margin-top: var(--s-8); }
.vc-sep { margin: var(--s-24) 0; }
.vc-raw { max-width: 100%; }
.vc-image img { border-radius: var(--r-4); }
.vc-toggle { padding: var(--s-12) var(--s-16); background: var(--c-raised); border-radius: var(--r-4); }
.vc-toggle summary { color: var(--c-text); font-weight: 600; cursor: pointer; }
.vc-message { padding: var(--s-16); background: var(--c-raised); border-left: 3px solid var(--c-red); border-radius: var(--r-4); }
@media (max-width: 767px) {
  .vc-col[class*="vc-col--"] { flex-basis: 100%; }
}

/* 20. Motion and print ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card:hover .thumb img { transform: none; }
}
@media print {
  .site-header, .sections, .mmaob-ad, .ad-band, .ad-row, .site-footer, .rail, .share, .essb_links, .pagination, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .entry, .entry strong, h1, h2, h3 { color: #000; }
}

/* Sub-section links on category listings (kept from Bimber, 29 Nov parity crawl) */
.subcats { margin-top: var(--s-16); }
.subcats ul { display: flex; flex-wrap: wrap; gap: var(--s-8); list-style: none; margin: 0; padding: 0; }
.subcats a { display: inline-block; padding: 6px 12px; border: 1px solid var(--c-line, #2a2d33); border-radius: 999px; color: var(--c-text-2); font-size: var(--fs-14, 14px); text-decoration: none; }
.subcats a:hover, .subcats a:focus-visible { color: var(--c-text, #fff); border-color: var(--c-red, #e03131); }
