/* =============================================
   VISA SPONSORSHIP GUIDES — STYLESHEET
   Fast-loading, AdSense-compliant, mobile-first
   ============================================= */

:root {
  --blue:      #1a3c6e;
  --blue-mid:  #2558a7;
  --blue-lite: #e8f0fb;
  --gold:      #e8a020;
  --gold-dark: #b87c10;
  --text:      #1c1c1e;
  --muted:     #6b7280;
  --border:    #e0e5ee;
  --bg:        #f7f9fc;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --max-w:     1140px;
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── HEADER ── */
.site-header {
  background: var(--blue);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff !important; text-decoration: none;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 900;
}
.logo-icon { font-size: 1.4rem; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,.88);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: .92rem; font-weight: 600;
  transition: background .15s;
}
.main-nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 6px; }

@media(max-width:768px){
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav   { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-header.nav-open .main-nav { display: flex; }
}

/* ── ADS ── */
.ad-unit {
  text-align: center;
  margin: 20px auto;
  max-width: 100%;
}
.ad-label {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ad-sidebar { max-width: 336px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #3a7bd5 100%);
  color: #fff;
  padding: 52px 0 44px;
  text-align: center;
}
.hero h1 { font-family: var(--font-head); font-size: clamp(1.6rem,4vw,2.6rem); line-height: 1.25; }
.hero p  { font-size: 1.1rem; margin: 14px auto 0; max-width: 620px; opacity: .9; }
.hero-search { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.hero-search input {
  padding: 12px 18px; border-radius: var(--radius);
  border: none; font-size: 1rem; width: 320px; max-width: 100%;
}
.hero-search button {
  padding: 12px 24px; background: var(--gold); color: #1a1a1a;
  border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer;
  font-size: 1rem; transition: background .15s;
}
.hero-search button:hover { background: var(--gold-dark); color: #fff; }

/* ── PILL CATEGORIES ── */
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 10px; }
.pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem; font-weight: 700;
  background: var(--blue-lite);
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
  transition: all .15s;
  text-decoration: none !important;
}
.pill:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ── POST GRID ── */
.section-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--blue);
  margin: 32px 0 16px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.post-card-img  { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--blue-lite); }
.post-card-img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,var(--blue) 0%,var(--blue-mid) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.post-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat  { font-size: .75rem; font-weight: 700; color: var(--blue-mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.post-card h2   { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; color: var(--text); }
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--blue-mid); text-decoration: none; }
.post-card-excerpt { font-size: .93rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.read-more { font-size: .88rem; font-weight: 700; color: var(--blue-mid); display: flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; text-decoration: none; }

/* ── LAYOUT (Content + Sidebar) ── */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 36px 0; }
@media(max-width:900px){ .layout { grid-template-columns: 1fr; } }

/* ── SINGLE POST ── */
.post-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; background: var(--blue-lite); }
.post-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.post-meta .cat-badge { background: var(--blue-mid); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; }
.post-meta .post-date { color: var(--muted); font-size: .88rem; }
.post-title { font-family: var(--font-head); font-size: clamp(1.5rem,3.5vw,2.1rem); line-height: 1.25; color: var(--blue); margin-bottom: 20px; }
.post-content { font-size: 1.05rem; line-height: 1.8; }
.post-content h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--blue); margin: 32px 0 12px; }
.post-content h3 { font-size: 1.1rem; color: var(--blue); margin: 24px 0 8px; }
.post-content p  { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 8px 0 16px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--blue); }

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 28px 28px 24px;
  border-radius: var(--radius);
  margin: 32px 0;
  border-left: 5px solid var(--gold);
}
.cta-box h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; }
.cta-box p  { font-size: .97rem; margin-bottom: 18px; opacity: .92; }
.cta-secondary { background: linear-gradient(135deg, #1a4a2e 0%, #256b3f 100%); }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a !important;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-size: .97rem;
  transition: background .15s, transform .12s;
}
.cta-btn:hover { background: var(--gold-dark); color: #fff !important; transform: translateY(-1px); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-box { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.sidebar-box h3 { font-family: var(--font-head); font-size: 1rem; color: var(--blue); margin-bottom: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border: none; }
.sidebar-list a { display: block; padding: 10px 0; font-size: .93rem; color: var(--text); font-weight: 600; transition: color .15s; }
.sidebar-list a:hover { color: var(--blue-mid); text-decoration: none; }

/* ── NEWSLETTER / CTA SIDEBAR ── */
.cta-sidebar { background: var(--blue); color: #fff; }
.cta-sidebar h3 { color: #fff; border-bottom-color: var(--gold); }
.cta-sidebar p  { font-size: .93rem; margin-bottom: 14px; opacity: .9; }
.cta-sidebar input { width: 100%; padding: 10px 12px; border-radius: 6px; border: none; margin-bottom: 10px; font-size: .95rem; }
.cta-sidebar button { width: 100%; background: var(--gold); border: none; padding: 11px; font-weight: 700; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.cta-sidebar button:hover { background: var(--gold-dark); color: #fff; }

/* ── STATIC PAGES ── */
.static-page { padding: 40px 0; max-width: 800px; }
.static-page h1 { font-family: var(--font-head); font-size: 2rem; color: var(--blue); margin-bottom: 20px; }
.static-page h2 { font-family: var(--font-head); font-size: 1.25rem; color: var(--blue); margin: 28px 0 10px; }
.static-page p  { margin-bottom: 14px; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 14px 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--blue-mid); }
.breadcrumb span { margin: 0 6px; }

/* ── FOOTER ── */
.site-footer { background: var(--blue); color: rgba(255,255,255,.8); padding: 40px 0 24px; margin-top: 60px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { font-size: .9rem; margin-top: 4px; opacity: .8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: .82rem; opacity: .6; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }

/* ── CONTACT FORM ── */
.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 680px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .93rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 1rem; font-family: var(--font-body);
  transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue-mid); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit { background: var(--blue); color: #fff; border: none; padding: 13px 32px; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.form-submit:hover { background: var(--blue-mid); }
.success-msg { background: #d1fae5; color: #065f46; padding: 14px 18px; border-radius: var(--radius); margin-top: 16px; display: none; }

/* ══════════════════════════════════════════
   UPDATES v2 — Clean URLs, No Images,
   3-Slot Ads, Mobile Polish
   ══════════════════════════════════════════ */

/* Remove image placeholders from cards */
.post-card-img-placeholder { display: none !important; }
.post-hero-img             { display: none !important; }

/* Post cards without images — cleaner look */
.post-card {
  border-top: 3px solid var(--blue-mid);
}
.post-card-body {
  padding: 22px 22px 18px;
}
.post-card h2 { font-size: 1.08rem; }

/* ── POST HEADER META ── */
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: .85rem;
  color: var(--muted);
}
.post-meta svg { vertical-align: middle; margin-right: 3px; }
.post-date { display: flex; align-items: center; gap: 4px; }
.read-time  { display: flex; align-items: center; gap: 4px; }

/* ── POST EXCERPT (italic intro under title) ── */
.post-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 28px;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  line-height: 1.65;
}

/* ── AD UNITS — tighter mobile spacing ── */
.ad-unit {
  margin: 24px 0;
  border-radius: 4px;
  overflow: hidden;
}
.ad-unit.ad-after_para_1,
.ad-unit.ad-after_para_3 {
  margin: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

/* ── STICKY SIDEBAR AD ── */
.sidebar-sticky {
  position: sticky;
  top: 80px;
  z-index: 10;
}

/* ── POST FOOTER BAR ── */
.post-footer-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 16px 20px;
  background: var(--blue-lite);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .92rem;
}
.post-footer-bar span { color: var(--muted); }
.post-footer-bar a { color: var(--blue-mid); font-weight: 600; }

/* ── RELATED POSTS GRID ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-mid);
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: box-shadow .15s, transform .15s;
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-cat   { font-size: .72rem; font-weight: 700; color: var(--blue-mid); text-transform: uppercase; letter-spacing: .06em; }
.related-title { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.related-arrow { font-size: .85rem; color: var(--muted); }

/* ── MOBILE RESPONSIVE IMPROVEMENTS ── */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 1.55rem; }
  .hero p  { font-size: 1rem; }
  .hero-search input  { width: 100%; }
  .hero-search button { width: 100%; }
  .hero-search { flex-direction: column; }

  .category-pills { gap: 8px; margin-top: 20px; }
  .pill { font-size: .8rem; padding: 5px 13px; }

  .post-card-body { padding: 16px 16px 14px; }
  .post-card h2 { font-size: 1rem; }

  .post-title { font-size: 1.4rem !important; }
  .post-excerpt { font-size: .97rem; }
  .post-content { font-size: 1rem; }
  .post-content h2 { font-size: 1.15rem; }

  .cta-box { padding: 20px 18px 18px; }
  .cta-box h3 { font-size: 1rem; }

  .post-footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; }

  .related-grid { grid-template-columns: 1fr; }

  .breadcrumb { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .ad-unit.ad-header_banner { min-height: 50px !important; }

  /* Sidebar drops below content on mobile — sticky disabled */
  .sidebar-sticky { position: static; }
  .layout { gap: 24px; padding: 24px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .site-logo .logo-text { font-size: 1rem; }
  .post-meta { gap: 10px; }
  .section-title { font-size: 1.15rem; }
}

/* ── CLEAN CARD HOVER ACCENT ── */
.post-card:hover { border-top-color: var(--gold); }

/* ── HEADER AD WRAP (shows on homepage/category, hidden on posts) ── */
.header-ad-wrap {
  padding: 4px 0;
  text-align: center;
}

/* ══════════════════════════════════════════
   AdX / GPT AD UNIT STYLES
   ══════════════════════════════════════════ */

/* All ad units */
.ad-unit {
  text-align: center;
  margin: 20px auto;
  overflow: hidden;
}
.ad-label {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Header banner — centered, full width container */
.ad-header-banner {
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.ad-header-banner > div {
  max-width: 336px; /* max ad width */
  margin: 0 auto;
}

/* In-content ads (para 1 & 3) */
.ad-after-para1,
.ad-after-para3 {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  margin: 28px 0;
  background: #fafbfd;
  border-radius: 4px;
}
.ad-after-para1 > div,
.ad-after-para3 > div {
  max-width: 336px;
  margin: 0 auto;
}

/* Sidebar ad */
.sidebar-sticky .ad-unit > div {
  max-width: 300px;
  margin: 0 auto;
}

/* Mobile: ensure ads don't overflow */
@media (max-width: 640px) {
  .ad-unit > div,
  .ad-header-banner > div,
  .ad-after-para1 > div,
  .ad-after-para3 > div {
    min-width: 250px !important;
    max-width: 100% !important;
  }
}

/* ══════════════════════════════════════════
   MOBILE STICKY BOTTOM AD BAR
   Shows only on screens < 900px
   Uses AD 2 (Grants/2) — 300x250 or 250x250
   ══════════════════════════════════════════ */

/* Hidden on desktop */
.mobile-sticky-ad { display: none; }

@media (max-width: 900px) {

  /* Sidebar ad hidden on mobile — replaced by sticky bottom bar */
  .sidebar-sticky { display: none; }

  /* Sticky bottom ad bar */
  .mobile-sticky-ad {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 2px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
    text-align: center;
    padding: 6px 0 4px;
  }

  .mobile-sticky-ad .ad-label {
    font-size: .65rem;
    color: var(--muted);
    display: block;
    margin-bottom: 3px;
  }

  /* Close button — required for policy compliance */
  .mobile-sticky-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--muted);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
    z-index: 10000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-sticky-close:hover { background: #333; }

  /* Push page content up so sticky bar doesn't cover last line */
  body { padding-bottom: 280px; }
  body.sticky-ad-closed { padding-bottom: 0; }

  /* Mobile sticky ad inner div */
  .mobile-sticky-ad #div-gpt-ad-mobile-sticky {
    min-width: 250px;
    min-height: 250px;
    max-width: 336px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════
   POST SINGLE COLUMN + ALL 3 ADX ADS — MOBILE SAFE
   ══════════════════════════════════════════════════════ */

/* Single column post — max readable width, centred */
.post-container { padding-top: 0; padding-bottom: 40px; }
.post-single {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ── ADX WRAPPER — all 3 ads use these classes ── */
.adx-wrap {
  text-align: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Ad label */
.adx-wrap .ad-label {
  display: block;
  font-size: .68rem;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* The actual GPT slot div — let GAM control its own size */
.adx-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px; /* reserves space so page doesn't jump */
  overflow: hidden;
}

/* ── AD 2: HEADER BANNER (below nav, all pages) ── */
.adx-header {
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  padding: 8px 0 6px;
  margin-bottom: 0;
}
.adx-header .adx-slot {
  max-width: 336px;
  margin: 0 auto;
}

/* ── AD 1 & AD 3: IN-CONTENT (after para 1 & para 3) ── */
.adx-incontent {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0 8px;
  margin: 28px 0;
  border-radius: 4px;
}
.adx-incontent .adx-slot {
  max-width: 336px;
  margin: 0 auto;
}

/* ── MOBILE — guarantee all 3 ads show properly ──────── */
@media (max-width: 640px) {

  /* Full bleed on mobile for maximum ad real estate */
  .adx-header,
  .adx-incontent {
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 0;
    padding: 8px 0;
  }

  /* Ad slot fills screen width but GPT controls actual ad size */
  .adx-slot,
  .adx-header .adx-slot,
  .adx-incontent .adx-slot {
    max-width: 100%;
    min-height: 250px;
  }

  /* No padding-bottom needed — no sticky bar */
  body { padding-bottom: 0 !important; }

  /* Sidebar entirely hidden on mobile */
  .sidebar { display: none !important; }
  .sidebar-sticky { display: none !important; }

  /* Single column takes full width */
  .post-single { max-width: 100%; }
}

@media (max-width: 400px) {
  /* Very small phones — allow ad to shrink to 250px wide */
  .adx-slot { min-height: 250px; }
}

/* Remove old mobile sticky bar if present from previous version */
.mobile-sticky-ad { display: none !important; }

/* ══════════════════════════════════════════════════════
   PAGE LOADING SKELETON — Post pages only
   ══════════════════════════════════════════════════════ */

/* Progress bar — top of page */
#page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 99999;
  background: transparent;
  pointer-events: none;
}
#page-progress-fill {
  height: 3px;
  width: 0%;
  background: #e8a020;
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* Shimmer animation */
@keyframes sk-shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}
.skel {
  background: linear-gradient(
    90deg,
    #e8eaed 0%,
    #f5f6f7 40%,
    #e8eaed 80%
  );
  background-size: 700px 100%;
  animation: sk-shimmer 1.5s infinite linear;
  border-radius: 5px;
  display: block;
}

/* Dark mode shimmer */
@media (prefers-color-scheme: dark) {
  .skel {
    background: linear-gradient(
      90deg,
      #2a2d31 0%,
      #383c40 40%,
      #2a2d31 80%
    );
    background-size: 700px 100%;
    animation: sk-shimmer 1.5s infinite linear;
  }
}

/* Skeleton overlay — covers real content while loading */
#skeleton-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: var(--bg, #f7f9fc);
  overflow-y: auto;
}
@media (prefers-color-scheme: dark) {
  #skeleton-overlay { background: #1a1b1e; }
}

/* Fade out skeleton */
#skeleton-overlay.sk-fade-out {
  animation: sk-fade 0.35s ease forwards;
}
@keyframes sk-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Skeleton nav bar */
.sk-nav {
  height: 62px;
  background: #1a3c6e;
  width: 100%;
  margin-bottom: 0;
}

/* Skeleton body — mirrors .post-single layout */
.sk-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Skeleton ad blocks */
.sk-ad {
  text-align: center;
  padding: 8px 0 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8eaed;
  background: #f9fafb;
}
@media (prefers-color-scheme: dark) {
  .sk-ad { background: #22252a; border-bottom-color: #33373d; }
}
.sk-ad-inline {
  margin: 24px 0;
  border: 1px solid #e8eaed;
  border-radius: 5px;
  border-bottom: 1px solid #e8eaed;
  padding: 10px 0;
}
.sk-ad-label {
  display: block;
  font-size: 10px;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: system-ui, sans-serif;
}
.sk-ad-box {
  width: 300px;
  height: 250px;
  margin: 0 auto;
  border-radius: 6px;
}

/* Breadcrumb skeleton */
.sk-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 14px;
}
.sk-breadcrumb span { height: 11px; border-radius: 3px; display: inline-block; }
.sk-breadcrumb span:first-child { width: 50px; }
.sk-breadcrumb i {
  display: inline-block;
  width: 5px; height: 11px;
  background: #dde0e4;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Meta row */
.sk-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.sk-badge { width: 95px; height: 22px; border-radius: 20px; }
.sk-date  { width: 110px; height: 12px; border-radius: 3px; }

/* Title */
.sk-title { height: 30px; border-radius: 6px; margin-bottom: 10px; width: 100%; }

/* Lines */
.sk-line { height: 13px; border-radius: 3px; margin-bottom: 9px; width: 100%; }

/* Section heading */
.sk-heading { height: 20px; width: 42%; border-radius: 5px; margin: 24px 0 16px; }

/* Mobile — full bleed ad skeletons */
@media (max-width: 640px) {
  .sk-ad, .sk-ad-inline {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }
  .sk-ad-box { width: 100%; max-width: 300px; }
}
