/*
 * Site frontend styles — extracted from partials/site-preferences.blade.php
 * (previously ~400 lines of inline <style> repeated on every single page load).
 *
 * This file is 100% static (no Blade/setting() values) and is now loaded via
 * Vite as a normal cached stylesheet instead of being inlined into every response.
 * The one dynamic value (--site-primary, from Website Settings) is still set
 * inline in site-preferences.blade.php, in a ~5-line <style> block.
 *
 * NOTE: rules are preserved exactly as they were (including overlapping/
 * duplicate !important rules across the old V16/V27/V31/V32 sections) to avoid
 * any visual regression. Logically de-duplicating those is a separate, lower-risk
 * follow-up once there's a chance to visually QA every page.
 */

/* ===== Base theme variables + preloader + dark mode + RTL base rules ===== */
:root {
        --site-primary: #E50914; /* default brand color — actual value is set inline per-request from Website Settings */
        --site-bg: #ffffff;
        --site-surface: #ffffff;
        --site-text: #111111;
        --site-muted: #666666;
        --site-border: #e5e5e5;
    }
    /* Preloader rule moved to site-preferences.blade.php — it needs the
       actual site title (from Website Settings), which a static CSS file
       can't render dynamically. */

body.site-dark {
        --site-bg: #111315;
        --site-surface: #191c20;
        --site-text: #f2f4f7;
        --site-muted: #aeb5bd;
        --site-border: #30353b;
        background: var(--site-bg) !important;
        color: var(--site-text) !important;
    }
    body.site-dark .header,
    body.site-dark .article-card,
    body.site-dark .article-header,
    body.site-dark .article-body,
    body.site-dark .article-content,
    body.site-dark .article-img,
    body.site-dark .article-inline-image,
    body.site-dark .related-main,
    body.site-dark .left-category,
    body.site-dark .right-sidebar,
    body.site-dark .news-area,
    body.site-dark .side-box,
    body.site-dark .website-tool-card,
    body.site-dark .card,
    body.site-dark .top,
    body.site-dark .article-main,
    body.site-dark .article-content,
    body.site-dark .related-list,
    body.site-dark .related-item,
    body.site-dark .trending,
    body.site-dark .section,
    body.site-dark .big-news,
    body.site-dark .news-card,
    body.site-dark .rashifal-card,
    body.site-dark .rashi-card {
        background: var(--site-surface) !important;
        color: var(--site-text) !important;
        border-color: var(--site-border) !important;
    }
    body.site-dark a,
    body.site-dark .header-menu a,
    body.site-dark .category-link,
    body.site-dark .article-meta,
    body.site-dark .content,
    body.site-dark .meta,
    body.site-dark .opinion-author,
    body.site-dark .opinion-excerpt {
        color: var(--site-muted);
    }
    body.site-dark h1,
    body.site-dark h2,
    body.site-dark h3,
    body.site-dark strong,
    body.site-dark .big-title,
    body.site-dark .card-title,
    body.site-dark .article-title,
    body.site-dark .website-tool-title,
    body.site-dark .category-heading {
        color: var(--site-text) !important;
    }
    body.site-dark input,
    body.site-dark textarea,
    body.site-dark select {
        background: #111315;
        color: var(--site-text);
        border-color: var(--site-border);
    }
    body.site-dark .category-link:hover { background: #24282d !important; }
    body.site-dark .category-link.active { background: #2a2f35 !important; color: #ff6b6b !important; }
    body.site-dark .header { box-shadow: 0 1px 6px rgba(0,0,0,.35) !important; }
    html[dir="rtl"] .header-menu,
    html[dir="rtl"] .header-right,
    html[dir="rtl"] .trending,
    html[dir="rtl"] .author-share-row { direction: rtl; }
    html[dir="rtl"] .category-link { text-align: right; }

/* ===== V16 global preference hardening ===== */
/* V16 global preference hardening: page-level CSS must not defeat Website Settings. */
html.site-dark, html.site-dark body, body.site-dark {
    background: var(--site-bg, #111315) !important;
    color: var(--site-text, #f2f4f7) !important;
}
body.site-dark .header,
body.site-dark .header-inner,
body.site-dark .layout,
body.site-dark .news-area,
body.site-dark .left-category,
body.site-dark .right-sidebar,
body.site-dark .page-head,
body.site-dark .rashi-card,
body.site-dark .article-rashi,
body.site-dark .rashifal-list,
body.site-dark .side-box,
body.site-dark .card,
body.site-dark .section,
body.site-dark .big-news,
body.site-dark .news-card,
body.site-dark .article-card {
    background: var(--site-surface) !important;
    color: var(--site-text) !important;
    border-color: var(--site-border) !important;
}
body.site-dark .rashi-text,
body.site-dark .rashi-meta,
body.site-dark .meta,
body.site-dark .page-head p,
body.site-dark .article-meta,
body.site-dark .excerpt,
body.site-dark .content {
    color: var(--site-muted) !important;
}
body.site-dark .rashi-title,
body.site-dark .title,
body.site-dark .page-head h1,
body.site-dark .card-title,
body.site-dark .big-title,
body.site-dark h1,
body.site-dark h2,
body.site-dark h3,
body.site-dark strong {
    color: var(--site-text) !important;
}
body.site-dark .rashi-symbol { background:#22272d !important; border-color:var(--site-border) !important; }
body.site-dark .mobile-category-nav .category-link,
body.site-dark .category-link { color:var(--site-text) !important; }
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .layout { direction: rtl; }
html[dir="rtl"] .header-inner { direction: rtl; }
html[dir="rtl"] .rashi-card,
html[dir="rtl"] .card,
html[dir="rtl"] .article-header,
html[dir="rtl"] .article-content { text-align: right; }
html[dir="rtl"] .rashi-card .read-more { margin-left:0; margin-right:auto; }

/* ===== V27 global preference enforcement ===== */
/* V27 global preference enforcement: page-level inline/theme rules must follow Website Settings. */
html,body{color-scheme:light}
html[dir="rtl"] body{text-align:right}
body.site-dark{color-scheme:dark!important;background:var(--site-bg,#111315)!important;color:var(--site-text,#f2f4f7)!important}
body.site-dark header,body.site-dark nav,body.site-dark main,body.site-dark section,body.site-dark aside,body.site-dark footer,body.site-dark div,body.site-dark article,body.site-dark form,body.site-dark .public-layout,body.site-dark .layout{border-color:var(--site-border,#30353b)}
body.site-dark [style*="background:#fff"],body.site-dark [style*="background: #fff"],body.site-dark [style*="background:#ffffff"],body.site-dark [style*="background: #ffffff"]{background:var(--site-surface,#191c20)!important;color:var(--site-text,#f2f4f7)!important}
body.site-dark [style*="color:#111"],body.site-dark [style*="color: #111"],body.site-dark [style*="color:#222"],body.site-dark [style*="color: #222"],body.site-dark [style*="color:#333"],body.site-dark [style*="color: #333"]{color:var(--site-text,#f2f4f7)!important}
body.site-dark input,body.site-dark textarea,body.site-dark select{color:var(--site-text,#f2f4f7)!important;background:var(--site-surface,#191c20)!important;border-color:var(--site-border,#30353b)!important}
body.site-dark .header,body.site-dark .site-page-header{background:var(--site-surface,#191c20)!important;color:var(--site-text,#f2f4f7)!important;border-color:var(--site-border,#30353b)!important}
html[dir="rtl"] .public-layout,html[dir="rtl"] .site-page-header-inner,html[dir="rtl"] .header-inner{direction:rtl}
html[dir="rtl"] .card-image,html[dir="rtl"] .category-card-image{order:1}
html[dir="rtl"] .card-body,html[dir="rtl"] .category-card-body{order:2}

/* ===== V31 — Bhaskar-source-informed public UI system (mobile) ===== */
/* V31 — Bhaskar-source-informed public UI system.  Layout metrics are adapted, not copied. */
:root{
  --news-font:'Noto Sans Devanagari',LocalFont,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --news-font-bold:'Noto Sans Devanagari',LocalFontBold,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --news-card-border:var(--site-border,#e5e5e5);
}
html,body{font-family:var(--news-font)!important}
body.site-dark{--news-card-border:var(--site-border,#30353b)}

/* Bhaskar-like compact horizontal category rail */
@media(max-width:900px){
  .public-mobile-nav{padding:0!important;box-shadow:none!important;border-bottom:1px solid var(--news-card-border)!important;background:var(--site-surface,#fff)!important}
  .public-mobile-nav .category-navigation{
    display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;
    gap:0!important;width:max-content!important;min-width:100%!important;padding:0!important;overflow:visible!important
  }
  .public-mobile-nav .category-link,
  .public-mobile-nav .state-city-trigger .category-link{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;
    min-height:40px!important;width:max-content!important;padding:0 10px!important;margin:0!important;
    border:0!important;border-radius:0!important;background:transparent!important;color:var(--site-text,#333)!important;
    font-size:14px!important;font-weight:700!important;line-height:40px!important;white-space:nowrap!important;
    position:relative!important;flex:0 0 auto!important
  }
  .public-mobile-nav .category-link .category-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;flex:0 0 auto!important;font-size:15px!important;line-height:1!important}
  .public-mobile-nav .category-link.active{color:var(--site-primary,#e53935)!important;background:transparent!important}
  .public-mobile-nav .category-link.active:after{
    content:'';position:absolute;left:10px;right:10px;bottom:0;height:2px;background:var(--site-primary,#e53935);border-radius:0
  }
  .public-mobile-nav .category-link:hover{background:transparent!important}
}

/* Compact feed cards: 17px/24px type and 108x81 mobile thumbnail, matching the measured reference rhythm. */
.card,.category-card{font-family:var(--news-font)!important}
@media(max-width:900px){
  .card{padding:12px 16px!important;border-top:1px solid var(--news-card-border)!important}
  .card-main{gap:10px!important;align-items:stretch!important}
  .card-body{min-width:0!important}
  .card-title{font-family:var(--news-font-bold)!important;font-size:17px!important;font-weight:700!important;line-height:24px!important;letter-spacing:0!important;padding-right:8px!important}
  .card-media{width:108px!important;flex:0 0 108px!important}
  .card-image{width:108px!important;height:81px!important;min-height:81px!important;max-height:81px!important;border-radius:4px!important}
  .card-image img{width:100%!important;height:100%!important;object-fit:cover!important}
  .card-featured{font-size:11px!important;line-height:16px!important;padding:3px 0 0!important}
  .card-badge{font-size:11px!important;line-height:16px!important;padding:0!important;margin:7px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--site-muted,#777)!important}
  .home-live-badge,.category-card-live{font-size:.9em!important;line-height:normal!important;padding:0 6px!important;border-radius:4px!important;margin-right:6px!important}

  .category-card{padding:12px 16px!important;border-top:1px solid var(--news-card-border)!important}
  .category-card-main{gap:10px!important}
  .category-card-title{font-family:var(--news-font-bold)!important;font-size:17px!important;font-weight:700!important;line-height:24px!important;letter-spacing:0!important}
  .category-card-image-wrap{width:108px!important;flex:0 0 108px!important}
  .category-card-image{width:108px!important;height:81px!important;border-radius:4px!important}
  .category-card-excerpt{font-size:11px!important;line-height:16px!important}
  .category-card-badge{font-size:11px!important;line-height:16px!important;padding:0!important;margin-top:7px!important;border:0!important;border-radius:0!important;color:var(--site-muted,#777)!important}
  .category-card-featured{font-size:11px!important;line-height:16px!important;padding:3px 0 0!important;margin-top:0!important}
}
@media(max-width:480px){
  .card,.category-card{padding-left:16px!important;padding-right:16px!important}
  .card-title,.category-card-title{font-size:17px!important;line-height:24px!important}
  .card-media,.category-card-image-wrap{width:108px!important;flex-basis:108px!important}
  .card-image,.category-card-image{width:108px!important;height:81px!important}
}

/* Main/secondary story rhythm */
@media(max-width:900px){
  .home-trending{padding:8px 0 9px!important;margin-bottom:0!important}
  .home-trending-chip{border:0!important;border-radius:0!important;background:transparent!important;padding:4px 8px!important;font-size:12px!important}
  .home-secondary{grid-template-columns:minmax(0,1fr) 108px!important;gap:10px!important;padding:12px 16px!important}
  .home-secondary-title{font-family:var(--news-font-bold)!important;font-size:17px!important;line-height:24px!important;font-weight:700!important}
  .home-secondary-image{width:108px!important;height:81px!important;border-radius:4px!important}
  .home-secondary-excerpt{font-size:11px!important;line-height:16px!important}
  .home-secondary-category{font-size:11px!important;line-height:16px!important;padding:0!important;margin-top:7px!important;border:0!important;border-radius:0!important;color:var(--site-muted,#777)!important}
  .home-google-strip{min-height:58px!important;padding:10px 16px!important;font-size:13px!important;line-height:20px!important}
  .big-title{font-family:var(--news-font-bold)!important;font-size:20px!important;line-height:28px!important;font-weight:700!important}
}

/* Public page containers: clean white feed, no floating-card treatment on mobile. */
@media(max-width:900px){
  .public-layout{padding:0!important}
  .public-main{width:100%!important}
  .public-page-head{padding:10px 16px!important;margin:0!important;border-top:2px solid var(--site-primary,#e53935)!important}
  .public-page-head h1{font-size:20px!important;line-height:28px!important}
  .public-page-head p{font-size:12px!important;line-height:18px!important}
  .public-right{margin-top:14px!important;padding:0 16px!important}
}

/* Article feed/list spacing follows the same measured mobile rhythm without touching LIVE functionality. */
@media(max-width:900px){
  .article-title{font-family:var(--news-font-bold)!important;font-weight:700!important;line-height:28px!important}
  .article-meta{font-size:12px!important;line-height:18px!important}
  .related-item{padding:12px 0!important}
}

/* Dark mode keeps the same geometry while respecting Website Settings. */
body.site-dark .public-mobile-nav .category-link,
body.site-dark .public-mobile-nav .state-city-trigger .category-link{color:var(--site-text,#f2f4f7)!important}
body.site-dark .card-badge,
body.site-dark .category-card-badge{color:var(--site-muted,#aeb5bd)!important}

/* ===== V31 desktop reference metrics ===== */
/* V31 desktop reference metrics */
@media(min-width:901px){
  .card{padding:20px 20px 8px!important}
  .card-main{gap:14px!important}
  .card-title{font-family:var(--news-font-bold)!important;font-size:20px!important;font-weight:700!important;line-height:30px!important;padding-right:20px!important}
  .card-media{width:144px!important;flex:0 0 144px!important}
  .card-image{width:144px!important;height:108px!important;border-radius:4px!important}
  .category-card{padding:20px 20px 8px!important}
  .category-card-main{gap:14px!important}
  .category-card-title{font-family:var(--news-font-bold)!important;font-size:20px!important;font-weight:700!important;line-height:30px!important;padding-right:20px!important}
  .category-card-image-wrap{width:144px!important;flex:0 0 144px!important}
  .category-card-image{width:144px!important;height:108px!important;border-radius:4px!important}
}

/* ===== V32 — Full Bhaskar-reference public polish ===== */
/* V32 — Full Bhaskar-reference public polish. Source-informed geometry; brand/content remain CMS driven. */
:root{
  --news-max:1250px;
  --news-left:210px;
  --news-right:300px;
  --news-gap:15px;
  --news-orange:#ff8400;
}
html{background:var(--site-bg,#fff)}
body{font-family:'Mukta','Noto Sans Devanagari',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif!important}
.site-page-header{height:64px!important;box-shadow:0 1px 4px rgba(0,0,0,.045)!important}
.site-page-header-inner{max-width:var(--news-max)!important;padding:0 15px!important;gap:18px!important}
.site-page-header .header-menu{gap:20px!important}
.site-page-header .header-menu a{font-size:14px!important;font-weight:700!important;white-space:nowrap}
.site-page-header .header-right{gap:12px!important}
.site-logo-picture{max-width:210px!important;height:44px!important}
.site-logo-image{max-width:210px!important;max-height:42px!important}
.site-logo-text{font-size:26px!important}
.public-layout{max-width:var(--news-max)!important;grid-template-columns:var(--news-left) minmax(0,1fr) var(--news-right)!important;gap:var(--news-gap)!important;padding:15px!important}
.public-left{border-radius:5px!important;padding:7px!important;box-shadow:0 1px 5px rgba(0,0,0,.065)!important}
.public-right{top:79px!important}
.public-left{top:79px!important}
.public-page-head{border-top-width:2px!important;padding:10px 0 11px!important}
.public-page-head h1{font-size:22px!important;line-height:30px!important}
.public-page-head p{font-size:12px!important;line-height:18px!important}
/* Desktop feed: flat newspaper rows rather than rounded app cards. */
.card,.category-card{border-radius:0!important;box-shadow:none!important}
.card:hover,.category-card:hover{background:rgba(0,0,0,.012)!important}
.card-title,.category-card-title{font-family:'Mukta','Noto Sans Devanagari',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important}
.card-title{font-size:20px!important;line-height:30px!important;font-weight:700!important}
.category-card-title{font-size:20px!important;line-height:30px!important;font-weight:700!important}
.card-image,.category-card-image{border-radius:4px!important}
.card-featured,.category-card-featured{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important}
/* Google follow strip stays editorial and compact. */
.home-google-strip{border-radius:0!important;box-shadow:none!important}
/* Mobile: reproduce the compact feed rhythm visible in the reference. */
@media(max-width:900px){
  .site-page-header{height:56px!important}
  .site-page-header-inner{padding:0 12px!important}
  .site-page-header .header-menu{display:none!important}
  .site-page-header .header-right{gap:5px!important}
  .site-logo-picture{max-width:170px!important;height:40px!important}
  .site-logo-image{max-width:170px!important;max-height:38px!important}
  .site-logo-text{font-size:22px!important}
  .public-mobile-nav{top:56px!important;z-index:900!important}
  .public-layout{display:block!important;padding:0!important}
  .public-left{display:none!important}
  .public-main{width:100%!important}
  .public-right{position:static!important;margin-top:14px!important;padding:0 12px!important}
  .public-page-head{padding:9px 12px 10px!important}
  .public-page-head h1{font-size:20px!important;line-height:28px!important}
  .card,.category-card{padding:12px 12px!important;border-top:1px solid var(--news-card-border)!important}
  .card-main,.category-card-main{gap:10px!important}
  .card-title,.category-card-title{font-size:17px!important;line-height:24px!important;font-weight:700!important;padding-right:0!important}
  .card-media,.category-card-image-wrap{width:108px!important;flex:0 0 108px!important}
  .card-image,.category-card-image{width:108px!important;height:81px!important}
  .card-badge,.category-card-badge{margin-top:5px!important;font-size:11px!important;line-height:16px!important}
  .card-featured,.category-card-featured{font-size:10px!important;line-height:15px!important;padding-top:2px!important}
  .home-secondary{padding-left:12px!important;padding-right:12px!important}
  .home-google-strip{padding-left:12px!important;padding-right:12px!important}
}
@media(max-width:480px){
  .site-logo-picture{max-width:150px!important}
  .site-logo-image{max-width:150px!important}
  .site-logo-text{font-size:21px!important}
  .card,.category-card{padding-left:12px!important;padding-right:12px!important}
  .card-title,.category-card-title{font-size:17px!important;line-height:24px!important}
  .card-media,.category-card-image-wrap,.card-image,.category-card-image{width:108px!important}
  .card-image,.category-card-image{height:81px!important}
}
/* Respect dark mode without changing geometry. */
body.site-dark .site-page-header,body.site-dark .public-mobile-nav{box-shadow:none!important}

/* ===== V48 audit — hairline rail rules and unified hover state ===== */
/* V48 audit: hairline rail rules and unified hover state across public pages. */
@media(min-width:901px){
  .public-left{border-right:1px solid #eeeeee!important;padding-right:10px!important;}
  .public-right{border-left:1px solid #eeeeee!important;padding-left:12px!important;}
  .left-category{border-right:1px solid #eeeeee!important;padding-right:12px!important;}
  .right-sidebar{border-left:1px solid #eeeeee!important;padding-left:12px!important;}
}
.card,.category-card,.related-card,.home-secondary{transition:background-color .16s ease,box-shadow .16s ease;}
.card:hover,.category-card:hover,.related-card:hover,.home-secondary:hover{background:#fafafa!important;}
.card:hover .card-title,.category-card:hover .category-card-title,.related-card:hover .related-title,.home-secondary:hover .home-secondary-title{color:inherit;}
@media(max-width:900px){
 .public-left,.public-right,.left-category,.right-sidebar{border:0!important;padding-left:0!important;padding-right:0!important;}
 .card:hover,.category-card:hover,.related-card:hover,.home-secondary:hover{background:#fafafa!important;}
}

/* ===== HOME MASTER — shared public frontend shell ===== */
/* HOME MASTER: one shared public frontend shell for every news page. */
html body{overflow-x:hidden!important;}
html body .header,html body .site-page-header{position:fixed!important;left:0!important;right:0!important;top:0!important;height:68px!important;z-index:5000!important;background:#fafafa!important;border-bottom:1px solid #e6e6e6!important;box-shadow:0 1px 2px rgba(0,0,0,.035)!important;}
html body .header-inner,html body .site-page-header-inner{max-width:1250px!important;height:100%!important;margin:0 auto!important;padding:0 15px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;}
html body .layout,html body .public-layout{width:100%!important;max-width:1270px!important;margin:0 auto!important;padding:15px!important;display:grid!important;grid-template-columns:230px minmax(0,1fr) 320px!important;gap:14px!important;align-items:start!important;}
html body .left-category,html body .public-left{grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;overflow:visible!important;position:sticky!important;top:83px!important;}
html body .left-category .category-heading{background:#f5f5f5!important;border-radius:4px!important;}
html body .public-left>.left-category{position:static!important;width:100%!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;}
html body .news-area,html body .public-main{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;}
html body .right-sidebar,html body .public-right{grid-column:3!important;grid-row:1!important;min-width:0!important;width:100%!important;position:sticky!important;top:83px!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;}
html body .public-right .right-sidebar{position:static!important;width:100%!important;}
html body .right-sidebar .website-tool-card:not(.rashifal-widget),html body .right-sidebar .side-box:not(.rashifal-widget),html body .right-sidebar .poll-card,html body .right-sidebar .content-widget{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
html body .right-sidebar .rashifal-widget{background:#fff!important;border:1px solid #e5e5e5!important;border-radius:8px!important;box-shadow:none!important;}
html body .layout,html body .public-layout,html body .news-area,html body .public-main,html body .left-category,html body .public-left,html body .right-sidebar,html body .public-right{height:auto!important;max-height:none!important;overflow-y:visible!important;}
html body{padding-top:68px!important;}
@media(max-width:1050px){html body .layout,html body .public-layout{grid-template-columns:190px minmax(0,1fr)!important;gap:14px!important;max-width:100%!important;}html body .right-sidebar,html body .public-right{display:none!important;}html body .left-category,html body .public-left{grid-column:1!important;width:190px!important;}html body .news-area,html body .public-main{grid-column:2!important;}}
@media(max-width:900px){html body .layout,html body .public-layout{display:block!important;max-width:100%!important;padding:8px!important;}html body .left-category,html body .public-left{display:none!important;}html body .news-area,html body .public-main{width:100%!important;max-width:100%!important;}html body .right-sidebar,html body .public-right{display:block!important;width:100%!important;max-width:100%!important;position:static!important;margin-top:14px!important;}html body .header,html body .site-page-header{height:58px!important;}html body{padding-top:58px!important;}html body .header-inner,html body .site-page-header-inner{padding:0 12px!important;}}

/* ===== Mobile category master (final) ===== */
@media(max-width:900px){
.public-mobile-nav,.mobile-category-nav{display:block!important;position:sticky!important;top:58px!important;z-index:900!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;background:var(--site-surface,#fff)!important;border-bottom:1px solid var(--site-border,#ddd)!important;box-shadow:none!important;-webkit-overflow-scrolling:touch!important}
.public-mobile-nav .category-navigation,.mobile-category-nav .category-navigation{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:0!important;width:max-content!important;min-width:max-content!important;padding:0!important;margin:0!important;overflow:visible!important}
.public-mobile-nav .category-link,.mobile-category-nav .category-link,.public-mobile-nav .state-city-trigger .category-link,.mobile-category-nav .state-city-trigger .category-link{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:42px!important;height:42px!important;width:auto!important;min-width:0!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--site-text,#333)!important;font-size:14px!important;font-weight:700!important;line-height:42px!important;white-space:nowrap!important;flex:0 0 auto!important;text-decoration:none!important}
.public-mobile-nav .category-link .category-icon,.mobile-category-nav .category-link .category-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;flex:0 0 auto!important;font-size:15px!important;line-height:1!important}
.public-mobile-nav .category-link.active,.mobile-category-nav .category-link.active,.public-mobile-nav .state-city-trigger .category-link.active,.mobile-category-nav .state-city-trigger .category-link.active{color:var(--site-primary,#e53935)!important;background:transparent!important}
.public-mobile-nav .category-link.active:after,.mobile-category-nav .category-link.active:after,.public-mobile-nav .state-city-trigger .category-link.active:after,.mobile-category-nav .state-city-trigger .category-link.active:after{content:""!important;position:absolute!important;left:10px!important;right:10px!important;bottom:0!important;height:2px!important;background:var(--site-primary,#e53935)!important;border-radius:0!important}
.public-mobile-nav .category-link:hover,.mobile-category-nav .category-link:hover,.public-mobile-nav .state-city-trigger .category-link:hover,.mobile-category-nav .state-city-trigger .category-link:hover{background:transparent!important}
}

/* ===== CWV global safe — geometry/stability hardening ===== */
/* Global CWV hardening — geometry/stability only. No overflow/scroll containers are changed. */
img,video{max-width:100%;}
.card-image,.category-card-image,.home-secondary-image,.related-image,.video-thumb,.live-update-photo{overflow:hidden;}
.card-image img,.category-card-image img,.home-secondary-image img,.related-image img,.video-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
/* Keep media boxes stable before network images arrive. */
.card-image{aspect-ratio:4/3;}
.category-card-image{aspect-ratio:4/3;}
.home-secondary-image{aspect-ratio:150/92;}
.related-image{aspect-ratio:150/96;}
.video-thumb{aspect-ratio:16/9;}
/* Never force horizontal clipping on the page: horizontal scrollers remain usable. */
html{overflow-x:visible;}
body{overflow-x:clip;}
/* Ads keep their own reserved geometry; their inner code cannot enlarge the page. */
.kl-ad-slot,.kl-ad-box{min-width:0;max-width:100%;box-sizing:border-box;}
.kl-ad-box{overflow:hidden;}
.kl-ad-code,.kl-ad-code iframe,.kl-ad-code ins{max-width:100%!important;box-sizing:border-box!important;}
/* Third-party embeds should not become a critical layout blocker. */
iframe{max-width:100%;}

/* ===== Ad slot styles (moved out of partials/ad.blade.php — was repeated
   once per ad slot on every page; now loaded once via this shared file) ===== */
.kl-ad-slot{display:block;width:100%;max-width:100%;min-width:0;margin:4px 0 14px;padding:0;box-sizing:border-box;overflow:hidden;text-align:center;line-height:1.2}
.kl-ad-label{display:block;margin:0 0 2px;font-size:10px;line-height:14px;font-weight:500;color:#999;text-align:center}
.kl-ad-box{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;min-height:var(--ad-h);aspect-ratio:var(--ad-w) / var(--ad-h);box-sizing:border-box;border:1px solid #e5e5e5;background:#fafafa;overflow:hidden}
.kl-ad-link{display:block;max-width:100%;min-width:0;line-height:0}
.kl-ad-box img{display:block;width:auto;max-width:100%;height:auto;max-height:var(--ad-h);margin:0 auto;object-fit:contain}
.kl-ad-code{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;line-height:normal}
.kl-ad-code>*{max-width:100%!important;box-sizing:border-box!important}
@media(max-width:767px){
  .kl-ad-desktop-slot{display:none!important}
  .kl-ad-mobile-slot{display:block!important}
  .kl-ad-slot{margin:3px 0 12px}
  .kl-ad-box{width:100%;max-width:100%;min-height:var(--ad-h);height:auto;aspect-ratio:var(--ad-w) / var(--ad-h)}
  .kl-ad-box img{max-width:100%!important;width:auto!important;height:auto!important}
}
@media(min-width:768px){
  .kl-ad-mobile-slot{display:none!important}
  .kl-ad-desktop-slot{display:block!important}
}
