/*
 * VolleyBond Design System — 1.6.4
 * --------------------------------------------------------------------------
 * Final shared layer for repeated UI primitives. Page/CPT styles may define
 * their own structure, but shared semantics (container, type scale, section
 * headers, related cards, source lists and mobile containment) resolve here.
 * New visual changes should prefer this file over one-off version patches.
 */

:root{
  /* Brand */
  --vb-paper:#f8f5ef;
  --vb-surface:#fbf8f2;
  --vb-ink:#1b2922;
  --vb-heading:#10283f;
  --vb-green:#173229;
  --vb-red:#b4452c;
  --vb-gold:#efc54e;
  --vb-line:#d5cdc0;
  --vb-muted:#52605a;

  /* Layout */
  --vb-container:var(--theme-container-width);
  --vb-container-pad:30px;
  --vb-container-pad-mobile:20px;
  --vb-reading:860px;

  /* Type */
  --vb-h1:clamp(42px,4.3vw,64px);
  --vb-h1-weight:800;
  --vb-h2:38px;
  --vb-h2-mobile:30px;
  --vb-card-title:21px;
  --vb-body:16px;
  --vb-body-small:14px;
  --vb-meta:13px;
  --vb-meta-weight:600;

  /* Rhythm */
  --vb-section-space:62px;
  --vb-section-space-mobile:48px;
  --vb-head-rule:3px;
}

/* ---------- Canonical page containment ---------- */
.vb-wrap{
  width:min(var(--vb-container),100%);
  max-width:none;
  margin-inline:auto;
  padding-inline:var(--vb-container-pad);
  box-sizing:border-box;
}

.vb-home *,
.vb-rankings-page *,
.vb-brand-page *,
.vb-directory-page *,
.vb-tax-page *,
.vb-player-profile *,
.vb-team-profile *,
.vb-coach-profile *,
.vb-tournament-profile *,
.vb-league-profile *{box-sizing:border-box}

.vb-home :where(.vb-wrap>*),
.vb-rankings-page :where(.vb-wrap>*),
.vb-brand-page :where(.vb-wrap>*),
.vb-player-profile :where(.vb-wrap>*),
.vb-team-profile :where(.vb-wrap>*),
.vb-coach-profile :where(.vb-wrap>*),
.vb-tournament-profile :where(.vb-wrap>*),
.vb-league-profile :where(.vb-wrap>*){min-width:0}

/* ---------- Shared breadcrumb component ---------- */
/* Breadcrumbs appear on hubs, CPT archives, taxonomy pages and editorial
   archives, so their base styling belongs here rather than Entity CSS. */
.vb-breadcrumbs{
  padding-top:12px;
  padding-bottom:12px;
  color:var(--vb-muted);
  font:600 var(--vb-meta)/1.5 Manrope,sans-serif;
}
.vb-breadcrumbs nav,
.vb-breadcrumbs .rank-math-breadcrumb p{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0;
}
.vb-breadcrumbs a,
.vb-breadcrumbs span{
  color:var(--vb-muted)!important;
  font-size:inherit;
  text-decoration:none!important;
}
.vb-breadcrumbs a:hover{color:var(--vb-red)!important}
.vb-breadcrumbs i,
.vb-breadcrumbs .separator{
  color:#aaa196!important;
  font-size:inherit;
  font-style:normal;
}

/* Prose gets a reading rail; data/modules keep the full site container. */
.vb-brand-reading,
.vb-reading{max-width:var(--vb-reading)}
.vb-instagram-article-body>p,
.vb-instagram-article-body>ul,
.vb-instagram-article-body>ol{max-width:var(--vb-reading)}

/* ---------- Canonical semantic type tiers ---------- */
.vb-rankings-intro-grid h1,
.vb-instagram-page .vb-brand-hero h1{font-size:var(--vb-h1);font-weight:var(--vb-h1-weight)}

.vb-player-section-head h2,
.vb-team-section-head h2,
.vb-tournament-section-head h2,
.vb-tournament-related-head h2,
.vb-league-section-head h2,
.vb-instagram-explore-head h2{
  font-family:Manrope,sans-serif;
  font-size:var(--vb-h2);
  font-weight:800;
  line-height:1.12;
  letter-spacing:-.04em;
}

.vb-player-section-kicker,
.vb-team-profile .vb-section-kicker,
.vb-coach-profile .vb-section-kicker,
.vb-tournament-profile .vb-tournament-section-head small,
.vb-tournament-profile .vb-tournament-related-head small,
.vb-league-profile-eyebrow,
.vb-league-profile .vb-league-eyebrow,
.vb-instagram-explore-head small,
.vb-instagram-method small,
.vb-ranking-sources header small{
  font-size:var(--vb-meta)!important;
  font-weight:var(--vb-meta-weight)!important;
  line-height:1.35;
  letter-spacing:.13em;
  text-transform:uppercase;
}

/* Reader-facing metadata should not fall below 13px in modern templates. */
.vb-rankings-page .vb-fivb-updated,
.vb-rankings-page .vb-rankings-updated span,
.vb-rankings-page .vb-rankings-updated strong,
.vb-rankings-page .vb-league-table-head small,
.vb-rankings-page .vb-league-table-head>span,
.vb-rankings-page .vb-league-columns,
.vb-rankings-page .vb-league-rows li,
.vb-rankings-page .vb-league-table footer a,
.vb-instagram-copy small,
.vb-instagram-copy strong span,
.vb-instagram-link,
.vb-instagram-snapshot-label,
.vb-instagram-explore-grid small,
.vb-league-profile-pill,
.vb-league-quick dt,
.vb-league-table-note,
.vb-league-stat .vb-league-stat-detail,
.vb-league-rule .vb-league-rule-detail,
.vb-league-record-row .vb-league-record-detail{
  font-size:var(--vb-meta)!important;
}

/* Top utility bar is still utility chrome, but must remain readable. */
.vb-topline strong,.vb-topline nav a{font-size:13px}

/* ---------- Shared taxonomy-chip component ---------- */
/*
 * Chips are used outside entity profiles too (notably the homepage featured
 * athlete). Their base visuals therefore belong to the shared design system,
 * not to entity-templates.css.
 */
.vb-taxonomy-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:20px 0;
}
.vb-chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:8px 12px;
  border:1px solid #c8bfb1;
  border-radius:999px;
  color:#46534c!important;
  font-family:Manrope,sans-serif;
  font-size:var(--vb-meta)!important;
  font-weight:600;
  line-height:1.35;
  text-decoration:none!important;
  white-space:normal;
  overflow-wrap:anywhere;
}
.vb-chip:hover{
  color:var(--vb-red)!important;
  border-color:#b9aa99;
}

/* ---------- One section-header rhythm ---------- */
.vb-player-section-head,
.vb-team-section-head,
.vb-tournament-section-head,
.vb-tournament-related-head,
.vb-league-section-head,
.vb-instagram-explore-head{
  gap:28px;
}

/* ---------- One references/source-list component ---------- */
.vb-ranking-source-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:36px;
}
.vb-ranking-source-list>a{
  display:grid;
  grid-template-columns:minmax(0,1fr) 18px;
  gap:12px;
  align-items:center;
  min-width:0;
  border-bottom:1px solid var(--vb-line);
  color:var(--vb-ink)!important;
  padding:16px 0;
}
.vb-ranking-source-list b{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:var(--vb-meta)!important;
  line-height:1.45;
}
.vb-ranking-source-list i{
  color:var(--vb-red);
  font-style:normal;
  text-align:right;
}
.vb-ranking-source-list span{display:none!important}

/* ---------- Data-module containment ---------- */
.vb-instagram-article-body,
.vb-instagram-article-body>.wp-block-volleybond-instagram-ranking,
.vb-instagram-article-body .vb-instagram-ranking-data,
.vb-instagram-podium,
.vb-instagram-full-list,
.vb-instagram-player,
.vb-instagram-list-row,
.vb-rankings-page .vb-league-table,
.vb-league-profile .vb-league-table{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

/* No component is allowed to create page-level horizontal scrolling. Wide data
   tables scroll inside their own card instead. */
.vb-tournament-standing-box.has-stats,
.vb-league-profile-current .vb-league-table{max-width:100%}

@media(max-width:900px){
  .vb-ranking-source-list{grid-template-columns:1fr}
}

@media(max-width:820px){
  :root{--vb-container-pad:var(--vb-container-pad-mobile)}
  .vb-wrap{
    width:100%;
    max-width:none;
    margin-inline:auto;
    padding-inline:var(--vb-container-pad-mobile);
  }

  .vb-player-section-head,
  .vb-team-section-head,
  .vb-tournament-section-head,
  .vb-tournament-related-head,
  .vb-league-section-head,
  .vb-instagram-explore-head{
    align-items:flex-start;
  }

  .vb-player-section-head h2,
  .vb-team-section-head h2,
  .vb-tournament-section-head h2,
  .vb-tournament-related-head h2,
  .vb-league-section-head h2,
  .vb-instagram-explore-head h2{font-size:var(--vb-h2-mobile)}
}

@media(max-width:620px){
  /* The Instagram ranking once used negative margins to fake full bleed. That
     conflicts with the canonical mobile container, so 1.6.1 makes containment
     explicit instead of relying on patch-order. */
  .vb-instagram-page-content .vb-instagram-ranking-data,
  .vb-instagram-article-body .vb-instagram-ranking-data{
    width:100%;
    max-width:100%;
    margin-left:0!important;
    margin-right:0!important;
  }
  .vb-instagram-podium,
  .vb-instagram-full-list{width:100%;min-width:0}
  .vb-instagram-player,
  .vb-instagram-list-row,
  .vb-instagram-copy{min-width:0}
}

/* ========================================================================== */
/* 1.6.2 — Shared Editorial Archive                                           */
/* ========================================================================== */
.vb-editorial-archive{
  background:var(--vb-paper);
  color:var(--vb-ink);
  font-family:Manrope,sans-serif;
  min-height:100vh;
}
.vb-editorial-archive *{box-sizing:border-box}
.vb-editorial-archive :where(.vb-wrap>*){min-width:0}

.vb-editorial-hero{padding:16px 0 56px}
.vb-editorial-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.7fr);
  gap:70px;
  align-items:end;
  border-bottom:2px solid var(--vb-ink);
  padding:30px 0 36px;
}
.vb-editorial-kicker{
  display:block;
  color:var(--vb-red);
  font-size:var(--vb-meta);
  font-weight:700;
  line-height:1.35;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.vb-editorial-hero h1{
  margin:10px 0 0;
  color:var(--vb-heading);
  font-family:Manrope,sans-serif;
  font-size:var(--vb-h1);
  font-weight:800;
  line-height:1;
  letter-spacing:-.055em;
}
.vb-editorial-hero-grid>p{
  max-width:520px;
  margin:0;
  color:var(--vb-muted);
  font-size:16px;
  line-height:1.75;
}

.vb-editorial-featured{padding:64px 0 72px}
.vb-editorial-feature-card{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);
  min-width:0;
  background:var(--vb-surface);
  border:1px solid var(--vb-line);
}
.vb-editorial-feature-media{
  display:block;
  min-width:0;
  min-height:500px;
  overflow:hidden;
  background:#d8d0c2;
}
.vb-editorial-feature-media img{
  display:block;
  width:100%;
  height:100%;
  min-height:500px;
  object-fit:cover;
}
.vb-editorial-feature-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  justify-content:center;
  padding:54px 52px;
}
.vb-editorial-meta{
  display:block;
  color:var(--vb-red);
  font-size:var(--vb-meta);
  font-weight:700;
  line-height:1.4;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.vb-editorial-feature-copy h2{
  margin:12px 0 18px;
  color:var(--vb-heading);
  font-size:42px;
  font-weight:800;
  line-height:1.06;
  letter-spacing:-.045em;
}
.vb-editorial-feature-copy h2 a,
.vb-editorial-card h3 a{color:inherit!important}
.vb-editorial-feature-copy p{
  margin:0 0 26px;
  color:var(--vb-muted);
  font-size:16px;
  line-height:1.75;
}
.vb-editorial-read{
  color:var(--vb-red)!important;
  font-size:14px;
  font-weight:800;
  line-height:1.45;
}
.vb-editorial-feature-stats{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--vb-line);
  color:var(--vb-muted);
  font-size:var(--vb-meta);
  line-height:1.45;
}

.vb-editorial-latest{padding:0 0 80px}
.vb-editorial-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  border-bottom:3px solid var(--vb-green);
  padding-bottom:20px;
  margin-bottom:30px;
}
.vb-editorial-section-head h2{
  margin:6px 0 0;
  color:var(--vb-heading);
  font-family:Manrope,sans-serif;
  font-size:var(--vb-h2);
  font-weight:800;
  line-height:1.12;
  letter-spacing:-.04em;
}
.vb-editorial-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.vb-editorial-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  background:var(--vb-surface);
  border:1px solid var(--vb-line);
}
.vb-editorial-card-media{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#d9d1c4;
}
.vb-editorial-card-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.vb-editorial-card-copy{
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  padding:20px 20px 22px;
}
.vb-editorial-card-copy h3{
  margin:8px 0 10px;
  color:var(--vb-heading);
  font-family:Manrope,sans-serif;
  font-size:var(--vb-card-title);
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
.vb-editorial-card-copy p{
  margin:0 0 20px;
  color:var(--vb-muted);
  font-size:14px;
  line-height:1.6;
}
.vb-editorial-card-copy .vb-editorial-read{margin-top:auto}

/* ---------- Canonical archive pagination ---------- */
.vb-pagination{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:40px;
}
.vb-pagination .page-numbers{
  display:inline-grid;
  min-width:42px;
  height:42px;
  place-items:center;
  margin:0;
  padding:0 10px;
  border:1px solid var(--vb-line);
  background:var(--vb-surface);
  color:var(--vb-ink)!important;
  font-family:Manrope,sans-serif;
  font-size:var(--vb-meta);
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
}
.vb-pagination .page-numbers:hover{
  border-color:var(--vb-green);
  color:var(--vb-green)!important;
}
.vb-pagination .page-numbers.current{
  background:var(--vb-green);
  border-color:var(--vb-green);
  color:#fff!important;
}
.vb-pagination .page-numbers.dots{
  min-width:auto;
  padding-inline:4px;
  border-color:transparent;
  background:transparent;
}

.vb-editorial-empty{
  max-width:760px;
  padding:44px 0 24px;
  border-top:1px solid var(--vb-line);
}
.vb-editorial-empty h2{
  margin:0 0 10px;
  color:var(--vb-heading);
  font-size:30px;
  letter-spacing:-.035em;
}
.vb-editorial-empty p{margin:0;color:var(--vb-muted);font-size:15px;line-height:1.7}

@media(max-width:980px){
  .vb-editorial-hero-grid,
  .vb-editorial-feature-card{grid-template-columns:1fr}
  .vb-editorial-hero-grid{gap:26px}
  .vb-editorial-feature-media{min-height:380px}
  .vb-editorial-feature-media img{min-height:380px}
  .vb-editorial-feature-copy{padding:38px 34px}
  .vb-editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  .vb-editorial-hero{padding-bottom:42px}
  .vb-editorial-hero-grid{padding-top:20px}
  .vb-editorial-hero h1{font-size:42px}
  .vb-editorial-hero-grid>p{font-size:14px}
  .vb-editorial-featured{padding:44px 0 52px}
  .vb-editorial-feature-media{min-height:0;aspect-ratio:16/11}
  .vb-editorial-feature-media img{min-height:0}
  .vb-editorial-feature-copy{padding:28px 22px}
  .vb-editorial-feature-copy h2{font-size:31px}
  .vb-editorial-feature-copy p{font-size:15px}
  .vb-editorial-feature-stats{flex-direction:column;gap:5px}
  .vb-editorial-section-head{align-items:flex-start;flex-direction:column;gap:10px}
  .vb-editorial-section-head h2{font-size:var(--vb-h2-mobile)}
  .vb-editorial-grid{grid-template-columns:1fr}
  .vb-editorial-latest{padding-bottom:56px}
}

/* ==========================================================================\n   1.6.4 — SIMPLE EDITORIAL SINGLE POST\n   --------------------------------------------------------------------------\n   Standard WordPress posts deliberately keep Blocksy's own title/featured-\n   image controls. VolleyBond only normalizes the reading surface, metadata,\n   modification stamp and admin edit link here. Rich CTAs/related modules are\n   separate opt-in components and are not forced into every article.\n   ========================================================================== */

/* Last updated is a shared component, not an Entity-only component. */
.vb-last-updated{
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin-top:18px;
  color:var(--vb-muted);
  font-family:Manrope,sans-serif;
  font-size:var(--vb-meta);
  line-height:1.5;
}
.vb-last-updated span{
  font-size:var(--vb-meta);
  font-weight:800;
  letter-spacing:.04em;
}
.vb-last-updated time{
  color:var(--vb-heading);
  font-size:var(--vb-meta);
  font-weight:700;
}
.vb-last-updated--hero{color:#d8e0dc}
.vb-last-updated--hero span{color:var(--vb-gold);text-transform:uppercase;letter-spacing:.06em}
.vb-last-updated--hero time{color:#fff}
.vb-last-updated--article{
  margin:0 0 30px;
  padding-left:12px;
  border-left:3px solid var(--vb-red);
}
.vb-last-updated--article span{color:var(--vb-red);font-weight:700}
.vb-instagram-article-meta .vb-last-updated{display:inline-flex;width:auto;margin:0}
.vb-instagram-article-meta .vb-last-updated span{color:var(--vb-red)}

/* Standard editorial post surface. Dedicated post templates such as the
   Instagram Ranking own their internal layout and are unaffected by these
   generic entry-header / entry-content selectors. */
body.single-post{
  background:#fff;
}
body.single-post :where(.site-main,#main-container,.ct-container-full){
  background:#fff;
}

/* Blocksy entry metadata: keep the native data and controls, just make the
   presentation publication-like instead of looking like raw WP metadata. */
body.single-post .entry-header .entry-meta,
body.single-post .entry-header .ct-entry-meta,
body.single-post .entry-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 11px;
  color:var(--vb-muted);
  font-family:Manrope,sans-serif;
  font-size:var(--vb-meta)!important;
  font-weight:var(--vb-meta-weight);
  line-height:1.55;
}
body.single-post .entry-header .entry-meta :where(a,span,time),
body.single-post .entry-header .ct-entry-meta :where(a,span,time),
body.single-post .entry-meta :where(a,span,time){
  font-size:var(--vb-meta)!important;
  line-height:1.55;
}
body.single-post .entry-header .entry-meta a,
body.single-post .entry-header .ct-entry-meta a,
body.single-post .entry-meta a{
  color:var(--vb-heading);
  text-decoration:none;
}
body.single-post .entry-header .entry-meta .meta-categories a,
body.single-post .entry-header .ct-entry-meta .meta-categories a,
body.single-post .entry-meta .meta-categories a{
  color:var(--vb-red);
  font-weight:800;
}
body.single-post .entry-header .entry-meta .avatar,
body.single-post .entry-header .ct-entry-meta .avatar,
body.single-post .entry-meta .avatar{
  display:none!important;
}

/* Standard post article typography intentionally inherits Blocksy / Gutenberg.
   Do not override body copy, heading color, line-height, or H2/H3 spacing here.
   This keeps the Blocksy Theme Options as the single source of truth for
   simple editorial posts; VolleyBond only skins metadata and opt-in modules. */

/* WordPress' front-end Edit link remains available to admins but visually
   recedes from reader-facing content. */
body.single-post .post-edit-link,
body.single-post .edit-link a{
  color:var(--vb-muted)!important;
  font-family:Manrope,sans-serif;
  font-size:var(--vb-meta)!important;
  font-weight:600;
  text-decoration:none!important;
}
body.single-post .post-edit-link:hover,
body.single-post .edit-link a:hover{color:var(--vb-red)!important}

@media(max-width:700px){
  .vb-last-updated{flex-wrap:wrap}
  .vb-last-updated--hero{margin-top:15px}
  body.single-post .entry-header .entry-meta,
  body.single-post .entry-header .ct-entry-meta,
  body.single-post .entry-meta{gap:5px 9px}
}


/* ---------- 1.6.5 — Blocksy-native simple editorial post alignment ---------- */
/* Keep Blocksy in charge of title typography/layout, but treat its post meta as
   one clean editorial component. The update stamp is moved beside this markup
   by editorial-single.js instead of visually starting the article body. */
body.single-post .entry-header .entry-meta,
body.single-post .entry-header .ct-entry-meta,
body.single-post .hero-section .entry-meta,
body.single-post .hero-section .ct-entry-meta{
  padding-bottom:18px;
  border-bottom:1px solid var(--vb-line);
}

/* Blocksy wraps author avatars in a media container rather than necessarily
   applying .avatar to the image itself. Hide only that tiny metadata avatar. */
body.single-post .entry-meta .meta-author :where(.ct-media-container,img.avatar,.avatar),
body.single-post .ct-entry-meta .meta-author :where(.ct-media-container,img.avatar,.avatar),
body.single-post .entry-meta :where(.author-avatar,.ct-author-avatar),
body.single-post .ct-entry-meta :where(.author-avatar,.ct-author-avatar){
  display:none!important;
}

body.single-post .entry-header .vb-last-updated--article,
body.single-post .hero-section .vb-last-updated--article{
  display:inline-flex;
  width:auto;
  margin:16px 0 0;
  padding-left:12px;
  border-left:3px solid var(--vb-red);
}

/* Before the tiny adapter runs, keep the stamp unobtrusive in its original
   content position. Once moved, normal article content starts cleanly. */
body.single-post .entry-content > .vb-last-updated--article:not(.is-positioned){
  margin-top:0;
}

@media(max-width:700px){
  body.single-post .entry-header .vb-last-updated--article,
  body.single-post .hero-section .vb-last-updated--article{
    margin-top:14px;
  }
}
