/*
Theme Name: PBN Base
Theme URI: https://github.com/playjoy-co/private-blog-network
Description: First-party base theme for the iGaming review network. No third-party code. Fast (system fonts, one small CSS file, no jQuery), accessible (WCAG AA), and security-conscious (all output escaped). Brand child themes override the CSS custom properties below.
Author: PBN
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: pbn
*/

/* ==========================================================================
   0. FONTS — self-hosted (first-party, no CDN). Latin variable subsets.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('//blog.wing.ph/app/themes/pbn-base/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. DESIGN TOKENS
   Child themes override --sportsnewsph-accent etc. via their own :root. Everything in
   this stylesheet is built on these names — treat them as a public contract.
   ========================================================================== */
:root {
  /* Brand / accent */
  --sportsnewsph-accent: #2563b8;          /* refined editorial blue */
  --sportsnewsph-accent-ink: #ffffff;      /* text on accent surfaces */
  --sportsnewsph-accent-2: #0e9f8e;        /* secondary / teal highlight */

  /* Neutral palette (light) */
  --sportsnewsph-bg: #f7f8fa;              /* page background */
  --sportsnewsph-surface: #ffffff;        /* cards, header, raised surfaces */
  --sportsnewsph-ink: #16202c;            /* primary text */
  --sportsnewsph-muted: #5a6675;          /* secondary text / meta */
  --sportsnewsph-border: #e3e8ef;         /* hairlines, dividers */

  /* ---------------------------------------------------------------------
     READABILITY CONTRACT — header & footer surfaces.
     The wordmark (.sportsnewsph-site-title) renders in BOTH the header and the footer.
     A child theme that wants a dark header MUST retune these tokens rather
     than hardcoding `.sportsnewsph-site-title a { color:#fff }`, which would leak white
     text into a light footer (white-on-white). Set *-bg and its matching *-ink
     together so text always has contrast against its own region.
     --------------------------------------------------------------------- */
  --sportsnewsph-header-bg: color-mix(in srgb, var(--sportsnewsph-surface) 88%, transparent);
  --sportsnewsph-header-ink: var(--sportsnewsph-ink);        /* site title + nav + toggle in the header */
  --sportsnewsph-header-border: var(--sportsnewsph-border);
  --sportsnewsph-footer-bg: var(--sportsnewsph-surface);
  --sportsnewsph-footer-ink: var(--sportsnewsph-muted);      /* footer body text + links */
  --sportsnewsph-footer-title-ink: var(--sportsnewsph-ink);  /* footer wordmark + column titles */
  --sportsnewsph-footer-border: var(--sportsnewsph-border);

  /* Status */
  --sportsnewsph-success: #1d8a4e;
  --sportsnewsph-warning: #b7791f;
  --sportsnewsph-danger:  #c53030;

  /* Shape & depth */
  --sportsnewsph-radius: 10px;
  --sportsnewsph-radius-lg: 18px;
  --sportsnewsph-shadow: 0 1px 2px rgba(16, 32, 44, .06), 0 2px 8px rgba(16, 32, 44, .05);
  --sportsnewsph-shadow-lg: 0 10px 30px -8px rgba(16, 32, 44, .18), 0 4px 12px rgba(16, 32, 44, .06);

  /* Typography — self-hosted Inter for UI/body; brands override the heading face. */
  --sportsnewsph-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --sportsnewsph-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sportsnewsph-font-features: "cv11", "ss01";  /* Inter stylistic sets: single-storey a, etc. */

  /* Layout widths */
  --sportsnewsph-max: 720px;              /* comfortable reading column */
  --sportsnewsph-wide: 1120px;            /* page shell */

  /* Fluid type scale (clamp: min, preferred vw-based, max) */
  --sportsnewsph-step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --sportsnewsph-step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --sportsnewsph-step-1:  clamp(1.20rem, 1.13rem + 0.35vw, 1.42rem);
  --sportsnewsph-step-2:  clamp(1.44rem, 1.32rem + 0.60vw, 1.80rem);
  --sportsnewsph-step-3:  clamp(1.73rem, 1.54rem + 0.95vw, 2.28rem);
  --sportsnewsph-step-4:  clamp(2.07rem, 1.78rem + 1.45vw, 2.89rem);
  --sportsnewsph-step-5:  clamp(2.49rem, 2.05rem + 2.20vw, 3.66rem);

  /* Spacing scale */
  --sportsnewsph-space-1: 0.25rem;
  --sportsnewsph-space-2: 0.5rem;
  --sportsnewsph-space-3: 0.75rem;
  --sportsnewsph-space-4: 1rem;
  --sportsnewsph-space-5: 1.5rem;
  --sportsnewsph-space-6: 2rem;
  --sportsnewsph-space-7: 3rem;
  --sportsnewsph-space-8: 4.5rem;
}

/* Dark mode: override neutrals + depth only. Accent flows from :root so child
   overrides keep working in both schemes. */
@media (prefers-color-scheme: dark) {
  :root {
    --sportsnewsph-bg: #0f1419;
    --sportsnewsph-surface: #161d26;
    --sportsnewsph-ink: #e8edf3;
    --sportsnewsph-muted: #9aa7b6;
    --sportsnewsph-border: #283441;
    --sportsnewsph-accent: #5b9be8;        /* lighter for contrast on dark; child themes may re-override */
    --sportsnewsph-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .35);
    --sportsnewsph-shadow-lg: 0 12px 34px -8px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .4);
  }
}

/* ==========================================================================
   2. MODERN RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -moz-tab-size: 4;
  tab-size: 4;
}
body {
  font-family: var(--sportsnewsph-font);
  font-size: var(--sportsnewsph-step-0);
  line-height: 1.65;
  color: var(--sportsnewsph-ink);
  background: var(--sportsnewsph-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: var(--sportsnewsph-font-features, normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--sportsnewsph-font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, pre, table) + :where(h2, h3) { margin-top: var(--sportsnewsph-space-6); }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.sportsnewsph-container { width: 100%; max-width: var(--sportsnewsph-max); margin-inline: auto; padding-inline: var(--sportsnewsph-space-5); }
.sportsnewsph-shell     { width: 100%; max-width: var(--sportsnewsph-wide); margin-inline: auto; padding-inline: var(--sportsnewsph-space-5); }
.sportsnewsph-main { flex: 1 0 auto; padding-block: var(--sportsnewsph-space-7); width: 100%; }

/* Visually hidden but available to assistive tech */
.sportsnewsph-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sportsnewsph-accent); color: var(--sportsnewsph-accent-ink);
  padding: var(--sportsnewsph-space-3) var(--sportsnewsph-space-4); border-radius: 0 0 var(--sportsnewsph-radius) 0;
  z-index: 1000; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   4. LINKS, FOCUS, TYPOGRAPHY HELPERS
   ========================================================================== */
a { color: var(--sportsnewsph-accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-color: color-mix(in srgb, var(--sportsnewsph-accent) 55%, transparent); }

:focus-visible {
  outline: 3px solid var(--sportsnewsph-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: color-mix(in srgb, var(--sportsnewsph-accent) 22%, transparent); }

.sportsnewsph-eyebrow {
  font-family: var(--sportsnewsph-font);
  font-size: var(--sportsnewsph-step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sportsnewsph-accent);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.sportsnewsph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sportsnewsph-space-2);
  padding: var(--sportsnewsph-space-3) var(--sportsnewsph-space-5);
  font-size: var(--sportsnewsph-step-0); font-weight: 600; line-height: 1.1;
  border: 1px solid var(--sportsnewsph-border);
  border-radius: var(--sportsnewsph-radius);
  background: var(--sportsnewsph-surface); color: var(--sportsnewsph-ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.sportsnewsph-btn:hover { box-shadow: var(--sportsnewsph-shadow); transform: translateY(-1px); }
.sportsnewsph-btn:active { transform: translateY(0); }
.sportsnewsph-btn--primary {
  background: var(--sportsnewsph-accent); color: var(--sportsnewsph-accent-ink); border-color: transparent;
}
.sportsnewsph-btn--primary:hover { background: color-mix(in srgb, var(--sportsnewsph-accent) 88%, #000); }

/* ==========================================================================
   6. TAGS / CATEGORY CHIPS
   ========================================================================== */
.sportsnewsph-chip {
  display: inline-flex; align-items: center;
  padding: 0.2em 0.7em;
  font-family: var(--sportsnewsph-font);
  font-size: var(--sportsnewsph-step--1); font-weight: 600; line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--sportsnewsph-accent);
  background: color-mix(in srgb, var(--sportsnewsph-accent) 10%, var(--sportsnewsph-surface));
  border: 1px solid color-mix(in srgb, var(--sportsnewsph-accent) 22%, transparent);
  border-radius: 999px;
  text-decoration: none;
}
a.sportsnewsph-chip:hover { background: color-mix(in srgb, var(--sportsnewsph-accent) 18%, var(--sportsnewsph-surface)); }
.sportsnewsph-tags { display: flex; flex-wrap: wrap; gap: var(--sportsnewsph-space-2); list-style: none; padding: 0; }

/* ==========================================================================
   7. HEADER + NAV
   ========================================================================== */
.sportsnewsph-site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sportsnewsph-header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sportsnewsph-header-border);
}
.sportsnewsph-site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sportsnewsph-space-5);
  padding-block: var(--sportsnewsph-space-4);
}
.sportsnewsph-site-branding { display: flex; align-items: center; gap: var(--sportsnewsph-space-3); min-width: 0; }
.sportsnewsph-site-title { font-family: var(--sportsnewsph-font-heading); font-size: var(--sportsnewsph-step-1); margin: 0; line-height: 1.1; }
/* Wordmark color is REGION-scoped (header vs footer) so a dark header never
   leaks white text into a light footer. See the readability contract in :root. */
.sportsnewsph-site-header .sportsnewsph-site-title a { color: var(--sportsnewsph-header-ink); text-decoration: none; }
.sportsnewsph-site-branding .custom-logo-link { display: block; }
.sportsnewsph-site-branding img.custom-logo { max-height: 48px; width: auto; }

.sportsnewsph-nav-toggle {
  display: none; /* shown only on small screens, and only when JS removes [hidden] */
  align-items: center; gap: var(--sportsnewsph-space-2);
  background: transparent; border: 1px solid currentColor;
  border-radius: var(--sportsnewsph-radius); padding: var(--sportsnewsph-space-2) var(--sportsnewsph-space-3);
  color: var(--sportsnewsph-header-ink); font-weight: 600; font-size: var(--sportsnewsph-step--1);
}
.sportsnewsph-nav-toggle__bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.sportsnewsph-nav-toggle__bars::before,
.sportsnewsph-nav-toggle__bars::after,
.sportsnewsph-nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
}
.sportsnewsph-nav-toggle__bars::before { top: 0; }
.sportsnewsph-nav-toggle__bars span { top: 5px; }
.sportsnewsph-nav-toggle__bars::after { bottom: 0; }

.sportsnewsph-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sportsnewsph-space-3) var(--sportsnewsph-space-5); margin: 0; padding: 0; }
.sportsnewsph-nav a {
  color: var(--sportsnewsph-header-ink); text-decoration: none; font-weight: 500; font-size: var(--sportsnewsph-step-0);
  padding-block: var(--sportsnewsph-space-1);
}
.sportsnewsph-nav a:hover { color: var(--sportsnewsph-accent); }
.sportsnewsph-nav .current-menu-item > a { color: var(--sportsnewsph-accent); }

/* ==========================================================================
   8. CARDS + POST GRID
   ========================================================================== */
.sportsnewsph-grid {
  display: grid; gap: var(--sportsnewsph-space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  margin-block: var(--sportsnewsph-space-6);
}
.sportsnewsph-card {
  display: flex; flex-direction: column;
  background: var(--sportsnewsph-surface);
  border: 1px solid var(--sportsnewsph-border);
  border-radius: var(--sportsnewsph-radius-lg);
  overflow: hidden;
  box-shadow: var(--sportsnewsph-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sportsnewsph-card:hover { transform: translateY(-4px); box-shadow: var(--sportsnewsph-shadow-lg); border-color: color-mix(in srgb, var(--sportsnewsph-accent) 30%, var(--sportsnewsph-border)); }
.sportsnewsph-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--sportsnewsph-ink) 6%, var(--sportsnewsph-surface)); }
.sportsnewsph-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sportsnewsph-card:hover .sportsnewsph-card__media img { transform: scale(1.04); }
/* Branded fallback when a post has no featured image. */
.sportsnewsph-thumb-fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--sportsnewsph-accent) 78%, #fff) 0%, transparent 60%),
    linear-gradient(135deg, var(--sportsnewsph-accent), color-mix(in srgb, var(--sportsnewsph-accent) 55%, #000));
}
.sportsnewsph-thumb-fallback__label {
  color: var(--sportsnewsph-accent-ink); font-family: var(--sportsnewsph-font-heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: var(--sportsnewsph-step-1);
  text-align: center; padding: 0 1rem; opacity: .95;
}
.sportsnewsph-card:hover .sportsnewsph-thumb-fallback { filter: brightness(1.05); }
.sportsnewsph-card__body { display: flex; flex-direction: column; gap: var(--sportsnewsph-space-3); padding: var(--sportsnewsph-space-5); flex: 1 0 auto; }
.sportsnewsph-card__title { font-size: var(--sportsnewsph-step-1); margin: 0; }
.sportsnewsph-card__title a { color: var(--sportsnewsph-ink); text-decoration: none; }
.sportsnewsph-card__title a:hover { color: var(--sportsnewsph-accent); }
.sportsnewsph-card__excerpt { color: var(--sportsnewsph-muted); margin: 0; font-size: var(--sportsnewsph-step-0); }
.sportsnewsph-card__meta { margin-top: auto; padding-top: var(--sportsnewsph-space-2); color: var(--sportsnewsph-muted); font-size: var(--sportsnewsph-step--1); }

/* ==========================================================================
   9. ENTRY META
   ========================================================================== */
.sportsnewsph-entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sportsnewsph-space-2) var(--sportsnewsph-space-3);
  color: var(--sportsnewsph-muted); font-size: var(--sportsnewsph-step--1); margin: 0;
}
.sportsnewsph-entry-meta__sep { opacity: .5; }
.sportsnewsph-entry-meta a { color: var(--sportsnewsph-muted); }
.sportsnewsph-entry-meta a:hover { color: var(--sportsnewsph-accent); }

/* ==========================================================================
   10. SINGLE / PAGE ARTICLE
   ========================================================================== */
.sportsnewsph-article-header { margin-bottom: var(--sportsnewsph-space-6); display: flex; flex-direction: column; gap: var(--sportsnewsph-space-4); }
.sportsnewsph-entry-title { font-size: var(--sportsnewsph-step-4); margin: 0; }
.sportsnewsph-page-title { font-size: var(--sportsnewsph-step-3); margin: 0 0 var(--sportsnewsph-space-5); }

.sportsnewsph-featured { margin: var(--sportsnewsph-space-6) 0; }
.sportsnewsph-featured img { width: 100%; border-radius: var(--sportsnewsph-radius-lg); box-shadow: var(--sportsnewsph-shadow); }
.sportsnewsph-featured figcaption { margin-top: var(--sportsnewsph-space-2); color: var(--sportsnewsph-muted); font-size: var(--sportsnewsph-step--1); text-align: center; }

/* Prose / vertical rhythm in article body */
.sportsnewsph-prose { font-size: var(--sportsnewsph-step-1); }
.sportsnewsph-prose > * + * { margin-top: var(--sportsnewsph-space-5); }
.sportsnewsph-prose h2 { font-size: var(--sportsnewsph-step-3); margin-top: var(--sportsnewsph-space-7); }
.sportsnewsph-prose h3 { font-size: var(--sportsnewsph-step-2); margin-top: var(--sportsnewsph-space-6); }
.sportsnewsph-prose ul, .sportsnewsph-prose ol { padding-left: 1.4em; }
.sportsnewsph-prose li + li { margin-top: var(--sportsnewsph-space-2); }
.sportsnewsph-prose img { border-radius: var(--sportsnewsph-radius); box-shadow: var(--sportsnewsph-shadow); }
.sportsnewsph-prose a { font-weight: 500; }
.sportsnewsph-prose blockquote {
  margin-inline: 0;
  padding: var(--sportsnewsph-space-2) var(--sportsnewsph-space-5);
  border-left: 4px solid var(--sportsnewsph-accent);
  color: var(--sportsnewsph-muted); font-style: italic;
  font-size: var(--sportsnewsph-step-1);
}
.sportsnewsph-prose pre {
  background: color-mix(in srgb, var(--sportsnewsph-ink) 92%, #000); color: #f4f6f8;
  padding: var(--sportsnewsph-space-4); border-radius: var(--sportsnewsph-radius); overflow-x: auto;
  font-size: var(--sportsnewsph-step--1);
}
.sportsnewsph-prose code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
.sportsnewsph-prose :not(pre) > code { background: color-mix(in srgb, var(--sportsnewsph-ink) 8%, var(--sportsnewsph-surface)); padding: 0.1em 0.4em; border-radius: 5px; }
.sportsnewsph-prose table { width: 100%; border-collapse: collapse; font-size: var(--sportsnewsph-step-0); }
.sportsnewsph-prose th, .sportsnewsph-prose td { border: 1px solid var(--sportsnewsph-border); padding: var(--sportsnewsph-space-3); text-align: left; }
.sportsnewsph-prose th { background: color-mix(in srgb, var(--sportsnewsph-ink) 4%, var(--sportsnewsph-surface)); }

.sportsnewsph-article-footer {
  margin-top: var(--sportsnewsph-space-7);
  padding-top: var(--sportsnewsph-space-5);
  border-top: 1px solid var(--sportsnewsph-border);
  display: flex; flex-direction: column; gap: var(--sportsnewsph-space-4);
}
.sportsnewsph-article-footer__label { font-weight: 600; font-family: var(--sportsnewsph-font); font-size: var(--sportsnewsph-step--1); color: var(--sportsnewsph-muted); }

/* ==========================================================================
   11. PAGINATION
   ========================================================================== */
.sportsnewsph-pagination { margin-top: var(--sportsnewsph-space-7); }
.sportsnewsph-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--sportsnewsph-space-2); justify-content: center; }
.sportsnewsph-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6em; padding: var(--sportsnewsph-space-2) var(--sportsnewsph-space-3);
  border: 1px solid var(--sportsnewsph-border); border-radius: var(--sportsnewsph-radius);
  background: var(--sportsnewsph-surface); color: var(--sportsnewsph-ink);
  text-decoration: none; font-weight: 600;
}
.sportsnewsph-pagination .page-numbers:hover { border-color: var(--sportsnewsph-accent); color: var(--sportsnewsph-accent); }
.sportsnewsph-pagination .page-numbers.current { background: var(--sportsnewsph-accent); color: var(--sportsnewsph-accent-ink); border-color: transparent; }
.sportsnewsph-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ==========================================================================
   12. SEARCH FORM
   ========================================================================== */
.sportsnewsph-search-form { display: flex; gap: var(--sportsnewsph-space-2); width: 100%; }
.sportsnewsph-search-form__field { flex: 1 1 auto; }
.sportsnewsph-search-form input[type="search"] {
  width: 100%;
  padding: var(--sportsnewsph-space-3) var(--sportsnewsph-space-4);
  border: 1px solid var(--sportsnewsph-border); border-radius: var(--sportsnewsph-radius);
  background: var(--sportsnewsph-surface); color: var(--sportsnewsph-ink);
}
.sportsnewsph-search-form input[type="search"]::placeholder { color: var(--sportsnewsph-muted); }

/* ==========================================================================
   13. PAGE / 404 / SEARCH HEADERS
   ========================================================================== */
.sportsnewsph-archive-header { margin-bottom: var(--sportsnewsph-space-6); }
.sportsnewsph-archive-title { font-size: var(--sportsnewsph-step-3); margin: 0 0 var(--sportsnewsph-space-3); }
.sportsnewsph-archive-description { color: var(--sportsnewsph-muted); max-width: var(--sportsnewsph-max); }

.sportsnewsph-empty { text-align: center; padding-block: var(--sportsnewsph-space-7); }
.sportsnewsph-empty__title { font-size: var(--sportsnewsph-step-3); margin-bottom: var(--sportsnewsph-space-4); }
.sportsnewsph-empty p { color: var(--sportsnewsph-muted); margin-bottom: var(--sportsnewsph-space-5); }
.sportsnewsph-empty .sportsnewsph-search-form { max-width: 420px; margin-inline: auto; }

.sportsnewsph-404-code { font-family: var(--sportsnewsph-font-heading); font-size: var(--sportsnewsph-step-5); color: var(--sportsnewsph-accent); line-height: 1; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.sportsnewsph-site-footer {
  background: var(--sportsnewsph-footer-bg);
  border-top: 1px solid var(--sportsnewsph-footer-border);
  margin-top: var(--sportsnewsph-space-8);
  padding-block: var(--sportsnewsph-space-7) var(--sportsnewsph-space-6);
  color: var(--sportsnewsph-footer-ink); font-size: var(--sportsnewsph-step-0);
}
.sportsnewsph-footer-cols {
  display: grid; gap: var(--sportsnewsph-space-6);
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: var(--sportsnewsph-space-6);
}
.sportsnewsph-footer-col__title { font-family: var(--sportsnewsph-font); font-size: var(--sportsnewsph-step--1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--sportsnewsph-footer-title-ink); margin-bottom: var(--sportsnewsph-space-3); }
.sportsnewsph-footer-brand .sportsnewsph-site-title { font-size: var(--sportsnewsph-step-2); }
/* Footer wordmark is region-scoped to the footer ink (mirrors the header rule). */
.sportsnewsph-site-footer .sportsnewsph-site-title a { color: var(--sportsnewsph-footer-title-ink); text-decoration: none; }
.sportsnewsph-footer-brand p { margin-top: var(--sportsnewsph-space-3); max-width: 36ch; }
.sportsnewsph-footer-tagline { font-weight: 600; color: var(--sportsnewsph-footer-title-ink); }
.sportsnewsph-footer-text { opacity: .85; }
.sportsnewsph-footer-social { flex-direction: row !important; flex-wrap: wrap; gap: var(--sportsnewsph-space-4) !important; margin-top: var(--sportsnewsph-space-3) !important; }
.sportsnewsph-footer-nav--primary { margin-top: var(--sportsnewsph-space-3); }
.sportsnewsph-footer-nav--primary ul { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--sportsnewsph-space-2) var(--sportsnewsph-space-4); margin: 0; padding: 0; }
.sportsnewsph-footer-nav--primary a { color: var(--sportsnewsph-footer-ink); text-decoration: none; font-size: var(--sportsnewsph-step--1); }
.sportsnewsph-footer-nav--primary a:hover { color: var(--sportsnewsph-accent); }
.sportsnewsph-site-footer nav ul, .sportsnewsph-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sportsnewsph-space-2); margin: 0; padding: 0; }
.sportsnewsph-site-footer a { color: var(--sportsnewsph-footer-ink); text-decoration: none; }
.sportsnewsph-site-footer a:hover { color: var(--sportsnewsph-accent); text-decoration: underline; text-underline-offset: 0.16em; }
.sportsnewsph-footer-bottom {
  border-top: 1px solid var(--sportsnewsph-footer-border);
  padding-top: var(--sportsnewsph-space-5);
  font-size: var(--sportsnewsph-step--1);
}

/* ==========================================================================
   15. RESPONSIVE — mobile nav
   ========================================================================== */
@media (max-width: 720px) {
  .sportsnewsph-entry-title { font-size: var(--sportsnewsph-step-3); }

  /* Toggle visible on mobile (JS removes [hidden]; without JS it stays hidden
     and the nav remains fully visible — progressive enhancement). */
  .sportsnewsph-nav-toggle:not([hidden]) { display: inline-flex; }

  /* Only collapse the nav once JS has flagged the header as enhanced. */
  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav { display: none; }
  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav.is-open { display: block; }

  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav.is-open {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sportsnewsph-header-bg);
    border-bottom: 1px solid var(--sportsnewsph-header-border);
    box-shadow: var(--sportsnewsph-shadow-lg);
    padding: var(--sportsnewsph-space-4) var(--sportsnewsph-space-5);
  }
  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav.is-open ul {
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav.is-open li { border-bottom: 1px solid color-mix(in srgb, var(--sportsnewsph-header-ink) 18%, transparent); }
  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav.is-open li:last-child { border-bottom: 0; }
  .sportsnewsph-site-header.is-enhanced .sportsnewsph-nav.is-open a { display: block; padding-block: var(--sportsnewsph-space-3); }
}

/* ==========================================================================
   16. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/*
Theme Name: SportsNews PH
Theme URI: https://sportsnewsph.net
Description: Brand child theme for sportsnewsph.net — an editorial, credible, newspaper-like sports news & commentary brand. Child of the first-party PBN Base theme. Inherits structure; overrides design tokens and component styling for a serious, trustworthy publication feel (green accent, serif headings, kicker labels, thin rules, flat editorial cards). No third-party CSS/JS, no build step, system fonts only.
Author: PBN
Template: sportsnewsph-base
Version: 0.2.0
Text Domain: pbn
*/

/* Self-hosted editorial serif for a credible newspaper headline voice. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('//blog.wing.ph/app/themes/sportsnewsph/assets/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ============================================================
   SPORTSNEWS PH — design tokens
   Editorial, credible, calm, newspaper-like. Green-forward.
   Restrained and trustworthy. Built on the shared --sportsnewsph-*
   contract; every visible token is backed by a component rule.
   ============================================================ */
:root {
  /* Accent system */
  --sportsnewsph-accent: #0a7d33;        /* SportsNews green (white on it ≈ 5.26:1, AA pass) */
  --sportsnewsph-accent-ink: #ffffff;    /* text/icons ON the accent */
  --sportsnewsph-accent-2: #0c2a17;      /* deep forest — masthead / serious headings */

  /* Header & footer readability contract (see sportsnewsph-base :root). Light "newsprint"
     masthead + footer with a deep-forest wordmark — readable in both regions. */
  --sportsnewsph-header-bg: var(--sportsnewsph-surface);
  --sportsnewsph-header-ink: var(--sportsnewsph-accent-2);   /* deep-forest wordmark on white masthead */
  --sportsnewsph-header-border: var(--sportsnewsph-border);
  --sportsnewsph-footer-bg: #f3f1ea;                /* slightly deeper newsprint than surface */
  --sportsnewsph-footer-ink: var(--sportsnewsph-muted);
  --sportsnewsph-footer-title-ink: var(--sportsnewsph-accent-2);
  --sportsnewsph-footer-border: var(--sportsnewsph-border);

  /* Surfaces & ink — warm paper tone for a print-news feel */
  --sportsnewsph-bg: #fbfaf7;            /* off-white "newsprint" */
  --sportsnewsph-surface: #ffffff;       /* clean card panels lift off the paper bg */
  --sportsnewsph-ink: #1a2230;          /* near-black editorial ink */
  --sportsnewsph-muted: #5a6573;         /* on paper bg ≈ 6.1:1, AA pass */
  --sportsnewsph-border: #dcd8cf;        /* warm hairline rules */

  /* Status */
  --sportsnewsph-success: #0a7d33;
  --sportsnewsph-warning: #b45309;
  --sportsnewsph-danger:  #b91c1c;

  /* Shape — gentle radius, mostly flat & squared (print discipline) */
  --sportsnewsph-radius: 2px;
  --sportsnewsph-radius-lg: 4px;
  --sportsnewsph-shadow: 0 1px 2px rgba(26, 34, 48, .06);
  --sportsnewsph-shadow-lg: 0 6px 20px rgba(26, 34, 48, .10);

  /* Type — serif headings for editorial gravitas; sans body for screen legibility */
  --sportsnewsph-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sportsnewsph-font-heading: 'Source Serif 4', Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  /* Layout & spacing */
  --sportsnewsph-max: 760px;
  --sportsnewsph-wide: 1080px;
  --sportsnewsph-space-1: 4px;
  --sportsnewsph-space-2: 8px;
  --sportsnewsph-space-3: 12px;
  --sportsnewsph-space-4: 16px;
  --sportsnewsph-space-5: 24px;
  --sportsnewsph-space-6: 32px;
  --sportsnewsph-space-7: 48px;
  --sportsnewsph-space-8: 64px;
}

/* ============================================================
   Base surface — warm newsprint paper
   ============================================================ */
body {
  background: var(--sportsnewsph-bg);
  -webkit-font-smoothing: antialiased;
}

/* Links: understated, accent with subtle underline (editorial trust) */
a {
  color: var(--sportsnewsph-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(10, 125, 51, .35);
}
a:hover { text-decoration-color: var(--sportsnewsph-accent); }

/* ============================================================
   Headings — serif, news-publication gravitas
   (base inherits --sportsnewsph-font; force --sportsnewsph-font-heading here)
   ============================================================ */
.sportsnewsph-site-title,
.sportsnewsph-entry-title,
.sportsnewsph-card h2,
.sportsnewsph-entry-content h2,
.sportsnewsph-entry-content h3 {
  font-family: var(--sportsnewsph-font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sportsnewsph-accent-2);
}
.sportsnewsph-entry-title {
  font-size: 36px;
  line-height: 1.18;
}

/* ============================================================
   Header — SIGNATURE: clean masthead, thin top rule + kicker
   White masthead with a thin green rule on top and a small
   uppercase "kicker" label above the wordmark. Restrained,
   credible, newspaper nameplate energy.
   ============================================================ */
.sportsnewsph-site-header {
  background: var(--sportsnewsph-surface);
  border-top: 3px solid var(--sportsnewsph-accent);
  border-bottom: 1px solid var(--sportsnewsph-border);
}
.sportsnewsph-site-header .sportsnewsph-container {
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
}
.sportsnewsph-site-title {
  font-family: var(--sportsnewsph-font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-top: 16px;
}
.sportsnewsph-site-title a { color: var(--sportsnewsph-accent-2); }
/* Editorial kicker above the nameplate.
   Scoped to the text wordmark default — WordPress adds .wp-custom-logo to
   <body> when a logo is uploaded (and the SVG already carries its own kicker),
   so we suppress this CSS kicker in that case to avoid a double render. */
body:not(.wp-custom-logo) .sportsnewsph-site-title::before {
  content: "SPORTS NEWS · COMMENTARY · ANALYSIS";
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--sportsnewsph-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sportsnewsph-accent);
  white-space: nowrap;   /* keep the kicker on one line above the nameplate */
}

/* Nav — quiet, serif-adjacent caps, green underline on hover */
.sportsnewsph-nav a {
  color: var(--sportsnewsph-ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.sportsnewsph-nav a:hover,
.sportsnewsph-nav .current-menu-item > a {
  border-bottom-color: var(--sportsnewsph-accent);
  color: var(--sportsnewsph-accent);
}

/* ============================================================
   Cards — flat editorial list items separated by hairline rules,
   with a small green kicker accent. No lift, no shadow drama.
   ============================================================ */
.sportsnewsph-card {
  background: transparent;
  border-bottom: 1px solid var(--sportsnewsph-border);
  border-left: none;
  border-radius: 0;
  padding: 20px 0;
  margin-bottom: 0;
  box-shadow: none;
}
.sportsnewsph-card h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 6px;
  /* thin green tick before the headline — newspaper section marker */
  padding-left: 12px;
  border-left: 3px solid var(--sportsnewsph-accent);
}
.sportsnewsph-card h2 a { color: var(--sportsnewsph-accent-2); text-decoration: none; }
.sportsnewsph-card h2 a:hover { color: var(--sportsnewsph-accent); }
.sportsnewsph-card .sportsnewsph-entry-meta { margin-bottom: 8px; padding-left: 12px; }
.sportsnewsph-card .sportsnewsph-entry-summary { padding-left: 12px; }

/* ============================================================
   Buttons — restrained, near-rectangular, solid green.
   Not styled in base; full definition (review components use .sportsnewsph-btn).
   ============================================================ */
.sportsnewsph-btn {
  display: inline-block;
  background: var(--sportsnewsph-accent);
  color: var(--sportsnewsph-accent-ink);
  font-family: var(--sportsnewsph-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 14px;
  line-height: 1;
  padding: 13px 22px;
  border: 1px solid var(--sportsnewsph-accent);
  border-radius: var(--sportsnewsph-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease;
}
.sportsnewsph-btn:hover {
  background: #086628;
  border-color: #086628;
  text-decoration: none;
}
.sportsnewsph-btn:focus-visible { outline: 3px solid var(--sportsnewsph-accent-2); outline-offset: 2px; }
/* Outline variant for secondary, low-key calls to action */
.sportsnewsph-btn--ghost {
  background: transparent;
  color: var(--sportsnewsph-accent);
}
.sportsnewsph-btn--ghost:hover {
  background: var(--sportsnewsph-accent);
  color: var(--sportsnewsph-accent-ink);
}

/* ============================================================
   Article body — drop cap nod + tidy images & pagination
   ============================================================ */
.sportsnewsph-entry-content img,
.sportsnewsph-featured img { border-radius: var(--sportsnewsph-radius-lg); }

.sportsnewsph-pagination a,
.sportsnewsph-pagination span {
  border: 1px solid var(--sportsnewsph-border);
  border-radius: var(--sportsnewsph-radius);
  font-weight: 600;
  text-decoration: none;
}
.sportsnewsph-pagination a:hover {
  border-color: var(--sportsnewsph-accent);
  color: var(--sportsnewsph-accent);
}
.sportsnewsph-pagination .current {
  background: var(--sportsnewsph-accent);
  color: var(--sportsnewsph-accent-ink);
  border-color: var(--sportsnewsph-accent);
}

/* Footer — thin green top rule, quiet */
.sportsnewsph-site-footer {
  border-top: 1px solid var(--sportsnewsph-border);
  box-shadow: inset 0 3px 0 var(--sportsnewsph-accent);
}
.sportsnewsph-site-footer a:hover { color: var(--sportsnewsph-accent); }
