/* ============================================================================
   POUND FOR POUND HOME — D3 layer (page-scoped)
   Applies only where <html data-theme="d3"> is set (the P4P home shell) and
   only to .p4ph-* markup rendered by p4p-home.js, plus scoped re-skins of the
   shell furniture inside .p4p-wrap on this page. Tokens: design-tokens-d3.css.
   Brick is fills/rules/display only; small accent text uses --d3-accent-text.
   Radii: 2px. No pills. Contrast: body text >= 10:1 on ground, meta 6.16:1,
   accent text 5.50:1 (all >= 4.5:1).
   ========================================================================== */

/* fight-hub.css pins .fight-night background with !important — outrank it in scope. */
html[data-theme="d3"] body { background: var(--d3-ground) !important; }
html[data-theme="d3"] .p4p-wrap { max-width: 1180px; }

/* ---- Bible chrome + footer (same treatment as the sports family's D3 layer) ---- */
html[data-theme="d3"] .b-scope { background: var(--d3-ground); }
html[data-theme="d3"] .b-topbar { background: var(--d3-ground); border-bottom: 2px solid var(--d3-accent); }
html[data-theme="d3"] .b-wordmark { font-family: "Previously Display", Georgia, serif; color: var(--d3-text); } /* MARATHON FONT PHASE 1: shared header wordmark */
html[data-theme="d3"] .b-wordmark em { color: var(--d3-accent); font-style: normal; }
html[data-theme="d3"] .b-nav-link, html[data-theme="d3"] .b-dateline { color: var(--d3-text-2); }
html[data-theme="d3"] .b-nav-link:hover { color: var(--d3-text); }
html[data-theme="d3"] .b-topnav a { color: var(--d3-text-2); }
html[data-theme="d3"] .b-nav-dropmenu { background: var(--d3-surface-1); border: 1px solid var(--d3-line); border-radius: 2px; } /* SHEET GLASS (James, 2026-10-16): .b-drop-group tray removed — menu groups are not boxes. */
html[data-theme="d3"] .b-drop-glabel { color: var(--d3-text-3); }
html[data-theme="d3"] .b-drop-link { color: var(--d3-text-2); }
html[data-theme="d3"] .b-drop-link:hover { color: var(--d3-text); background: var(--d3-surface-2); }
html[data-theme="d3"] .pv-signin { background: var(--d3-accent); color: var(--d3-text); border: 1px solid var(--d3-accent); border-radius: 2px; font-weight: 600; }
html[data-theme="d3"] .pv-signin:hover { background: var(--d3-accent-deep); color: var(--d3-text); text-decoration: none; }
html[data-theme="d3"] .pv-bell { color: var(--d3-text-2); }
html[data-theme="d3"] .b-m-head { background: var(--d3-ground); }
html[data-theme="d3"] .b-sec-strip { background: var(--d3-ground); border-bottom: 1px solid var(--d3-line); }
html[data-theme="d3"] .b-sec-strip a { color: var(--d3-text-2); }
html[data-theme="d3"] .b-tabbar, html[data-theme="d3"] .b-bottomnav { background: var(--d3-surface-1); border-top: 1px solid var(--d3-line); }
html[data-theme="d3"] .b-tabbar a, html[data-theme="d3"] .b-bottomnav a { color: var(--d3-text-2); }
html[data-theme="d3"] .pv-league-nav { background: var(--d3-surface-1); border-bottom: 1px solid var(--d3-line); }
html[data-theme="d3"] .pv-league-nav a { color: var(--d3-text-2); }
html[data-theme="d3"] .pv-league-nav a:hover { color: var(--d3-text); }
html[data-theme="d3"] .pvf-footer { background: var(--d3-ground); border-top: 1px solid var(--d3-line); color: var(--d3-text-2); }
html[data-theme="d3"] .pvf-footer__wordmark { font-family: Fraunces, Georgia, serif; color: var(--d3-text); }
html[data-theme="d3"] .pvf-footer__wordmark-dot { color: var(--d3-accent); }
html[data-theme="d3"] .pvf-footer__tagline { color: var(--d3-text-3); }
html[data-theme="d3"] .pvf-footer a { color: var(--d3-text-2); }
html[data-theme="d3"] .pvf-footer a:hover { color: var(--d3-text); }
html[data-theme="d3"] .pvf-footer__legal { color: var(--d3-text-3); }

/* ---- masthead + crumbs re-skin (this page only) ---- */
html[data-theme="d3"] .p4p-mast {
  background: var(--d3-surface-1);
  border-bottom: 3px solid var(--d3-accent);
  border-radius: 2px;
  padding: 26px 22px 22px;
}
html[data-theme="d3"] .p4p-mast .kicker { color: var(--d3-accent-text); }
html[data-theme="d3"] .p4p-mast .fh-mast-wordmark { color: var(--d3-text); }
html[data-theme="d3"] .p4p-mast .fh2-standfirst { color: var(--d3-text-2); }
html[data-theme="d3"] .p4p-crumbs { color: var(--d3-text-3); }
html[data-theme="d3"] .p4p-crumbs a { color: var(--d3-text-2); }

/* ---- shared bits ---- */
.p4ph-kicker {
  font: 700 11px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--d3-accent-text); margin: 0 0 6px;
}
.p4ph-meta { color: var(--d3-text-3); font-size: 13px; margin: 2px 0 0; }
.p4ph-case { color: var(--d3-text-2); font-size: 14.5px; line-height: 1.45; margin: 5px 0 0; }
.p4ph-note { color: var(--d3-text-3); font-size: 13px; margin: 12px 0 0; }
.p4ph-note a, .p4ph-links a { color: var(--d3-accent-text); }
.p4ph-badge {
  display: inline-block; margin-left: 8px; padding: 1px 6px;
  border: 1px solid var(--d3-accent); border-radius: 2px;
  color: var(--d3-accent-text); font: 700 10px/1.6 Inter, system-ui, sans-serif;
  letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px;
}
.p4ph-face { display: block; overflow: hidden; border-radius: 2px; background: var(--d3-inset); flex: none; }
.p4ph-face img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.p4ph-face--mono { display: flex; align-items: center; justify-content: center; }
.p4ph-face--mono span { font: 600 20px Fraunces, Georgia, serif; color: var(--d3-text-3); }

/* ---- intro ---- */
.p4ph-intro { border-left: 3px solid var(--d3-accent); padding: 4px 0 4px 16px; margin: 22px 0 6px; }
.p4ph-intro p:last-child {
  font: 400 19px/1.5 Fraunces, Georgia, serif; color: var(--d3-text); margin: 0; max-width: 62ch;
}

/* ---- sport tabs: rule-led, no pills ---- */
.p4ph-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--d3-line); margin: 20px 0 22px; }
.p4ph-tab {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 0 2px 10px;
  font: 600 24px/1.1 Fraunces, Georgia, serif; color: var(--d3-text-3);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.p4ph-tab:hover { color: var(--d3-text-2); }
.p4ph-tab[aria-selected="true"] { color: var(--d3-text); border-bottom-color: var(--d3-accent); }
.p4ph-tab:focus-visible { outline: 2px solid var(--d3-accent-text); outline-offset: 3px; }

/* ---- No. 1 spotlights ---- */
.p4ph-spots { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
.p4ph-hero {
  display: grid; grid-template-columns: 1fr; background: var(--d3-surface-1);
  border: 1px solid var(--d3-line); border-radius: 2px; overflow: hidden;
}
.p4ph-face--hero { aspect-ratio: 16/9; width: 100%; }
.p4ph-hero-body { padding: 20px 20px 18px; }
.p4ph-hero-name { font: 900 40px/1.02 Fraunces, Georgia, serif; margin: 0; letter-spacing: -.01em; }
html[data-theme="d3"] .p4ph-hero-name a { color: var(--d3-text); text-decoration: none; }
html[data-theme="d3"] .p4ph-hero-name a:hover { color: var(--d3-accent-text); }
.p4ph-hero-case { color: var(--d3-text-2); font-size: 16.5px; line-height: 1.5; margin: 10px 0 0; max-width: 58ch; }
.p4ph-hero-link { margin: 12px 0 0; }
.p4ph-hero-link a { color: var(--d3-accent-text); font: 700 13px Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.p4ph-spotcard {
  display: flex; gap: 16px; background: var(--d3-surface-1);
  border: 1px solid var(--d3-line); border-radius: 2px; padding: 16px; align-items: flex-start;
}
.p4ph-face--card { width: 104px; height: 128px; }
.p4ph-spotcard-name { font: 700 26px/1.08 Fraunces, Georgia, serif; margin: 0; }
html[data-theme="d3"] .p4ph-spotcard-name a { color: var(--d3-text); text-decoration: none; }
html[data-theme="d3"] .p4ph-spotcard-name a:hover { color: var(--d3-accent-text); }
@media (min-width: 900px) {
  .p4ph-spots { grid-template-columns: 7fr 5fr; align-items: stretch; }
  .p4ph-hero { grid-template-columns: 5fr 7fr; }
  .p4ph-face--hero { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .p4ph-hero-body { align-self: center; padding: 26px 28px; }
  .p4ph-spotcard { flex-direction: column; }
  .p4ph-face--card { width: 100%; height: 190px; }
  .p4ph-face--card img { object-position: 60% 25%; }
}

/* ---- list boards ---- */
.p4ph-lists { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1080px) { .p4ph-lists { grid-template-columns: 1fr 1fr; align-items: start; } }
.p4ph-board { background: var(--d3-surface-1); border: 1px solid var(--d3-line); border-radius: 2px; overflow: hidden; }
.p4ph-board-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 14px;
  background: var(--d3-surface-2); padding: 14px 16px 12px; border-bottom: 1px solid var(--d3-line);
}
.p4ph-board-title { font: 700 22px/1.15 Fraunces, Georgia, serif; color: var(--d3-text); margin: 0; }
.p4ph-updated { color: var(--d3-text-3); font-size: 12px; margin: 0; white-space: nowrap; }
.p4ph-list { list-style: none; margin: 0; padding: 0; }
.p4ph-row { display: flex; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--d3-line); align-items: flex-start; }
.p4ph-row:last-child { border-bottom: 0; }
.p4ph-row--top { background: var(--d3-inset); }
.p4ph-rank { font: 900 27px/1 Fraunces, Georgia, serif; color: var(--d3-text-3); min-width: 34px; padding-top: 2px; }
.p4ph-row--top .p4ph-rank { color: var(--d3-accent-text); }
.p4ph-row .p4ph-face { width: 52px; height: 62px; }
.p4ph-main { min-width: 0; }
.p4ph-name { font: 600 18.5px/1.2 Fraunces, Georgia, serif; margin: 0; }
html[data-theme="d3"] .p4ph-name a { color: var(--d3-text); text-decoration: none; }
html[data-theme="d3"] .p4ph-name a:hover { color: var(--d3-accent-text); }
.p4ph-move { color: var(--d3-text-3); font-size: 13px; }

/* ---- ranked & booked ---- */
.p4ph-booked { margin-top: 14px; background: var(--d3-surface-1); border: 1px solid var(--d3-line); border-radius: 2px; overflow: hidden; padding-bottom: 14px; }
.p4ph-booked .p4ph-note { padding: 0 16px; }
.p4ph-booked-list { list-style: none; margin: 0; padding: 0; }
.p4ph-booked-row { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--d3-line); }
.p4ph-booked-row:last-child { border-bottom: 0; }
.p4ph-booked-when {
  flex: none; min-width: 86px; background: var(--d3-inset); border-radius: 2px;
  color: var(--d3-text); font: 700 12.5px/1.35 Inter, system-ui, sans-serif;
  padding: 7px 9px; text-align: center; align-self: flex-start;
}
.p4ph-booked-name { font: 600 16.5px/1.25 Fraunces, Georgia, serif; color: var(--d3-text); margin: 0; }
.p4ph-booked-meta { color: var(--d3-text-3); font-size: 13px; margin: 2px 0 0; }

/* ---- UFC champions strip ---- */
.p4ph-champs { margin-top: 14px; background: var(--d3-surface-1); border: 1px solid var(--d3-line); border-radius: 2px; overflow: hidden; }
.p4ph-champgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--d3-line); }
.p4ph-champcard { background: var(--d3-surface-1); padding: 12px; text-decoration: none; display: block; }
.p4ph-champcard:hover { background: var(--d3-surface-2); }
.p4ph-champcard .p4ph-face { width: 100%; height: 128px; margin-bottom: 9px; }
.p4ph-champ-div { display: block; color: var(--d3-accent-text); font: 700 10.5px Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.p4ph-champ-name { display: block; color: var(--d3-text); font: 600 16.5px/1.2 Fraunces, Georgia, serif; margin-top: 3px; }
.p4ph-champ-rec { display: block; color: var(--d3-text-3); font-size: 12.5px; margin-top: 2px; }

/* ---- links band + how we rank ---- */
.p4ph-links { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 2px 2px; }
.p4ph-links a { font: 700 13.5px Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.p4ph-how { margin-top: 14px; background: var(--d3-inset); border: 1px solid var(--d3-line); border-radius: 2px; padding: 18px; }
.p4ph-how p { color: var(--d3-text-2); font-size: 15px; line-height: 1.55; }
.p4ph-how ol { color: var(--d3-text-2); font-size: 15px; line-height: 1.55; padding-left: 20px; }
.p4ph-how b { color: var(--d3-text); }
