/*
Theme Name:   Lottery Sambad Child
Theme URI:    https://sambadlive.in
Description:  GeneratePress Child Theme — Ultra-fast, SEO-optimized, Mobile-First for Lottery Sambad. Targets 90+ Core Web Vitals. Schema markup, internal linking, programmatic SEO, auto result pages.
Author:       sambadlive.in
Template:     generatepress
Version:      1.1.0
Text Domain:  lottery-sambad-child
Tags:         lottery, sambad, nagaland, dear-lottery, seo, fast, mobile-first
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ls-primary:        #1E4C7D;
  --ls-primary-dark:   #16396A;
  --ls-primary-light:  #2A6BAD;
  --ls-accent:         #E8A020;
  --ls-accent-dark:    #C47D0A;
  --ls-success:        #166534;
  --ls-danger:         #B91C1C;
  --ls-bg:             #F0F4F9;
  --ls-surface:        #FFFFFF;
  --ls-border:         #D1DCE8;
  --ls-text:           #1A2533;
  --ls-muted:          #5A6D82;
  --ls-radius:         10px;
  --ls-radius-sm:      6px;
  --ls-shadow:         0 2px 12px rgba(30,76,125,.10);
  --ls-shadow-lg:      0 6px 28px rgba(30,76,125,.16);
  --ls-font:           'Inter', system-ui, -apple-system, sans-serif;
  --ls-font-mono:      'JetBrains Mono', monospace;
  --ls-1pm:            #1E40AF;
  --ls-6pm:            #166534;
  --ls-8pm:            #92400E;
  --ls-1pm-bg:         #DBEAFE;
  --ls-6pm-bg:         #DCFCE7;
  --ls-8pm-bg:         #FEF3C7;
}

/* ============================================================
   RESET / BASE OVERRIDES FOR GENERATEPRESS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--ls-font);
  background:  var(--ls-bg);
  color:       var(--ls-text);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* Remove GP default styles that we override */
.site-content { padding-top: 0; }
.inside-article { padding: 24px 28px; }
@media (max-width: 768px) { .inside-article { padding: 16px; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--ls-primary);
  margin-top: 0;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
a  { color: var(--ls-primary); text-decoration: none; }
a:hover { color: var(--ls-primary-dark); text-decoration: underline; }
p  { margin: 0 0 1rem; }

/* ============================================================
   TOP NOTICE BAR
   ============================================================ */
.ls-notice-bar {
  background: var(--ls-primary);
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  position: relative;
  z-index: 100;
}
.ls-notice-bar a { color: var(--ls-accent); text-decoration: none; }
.ls-notice-bar .ls-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  margin-right: 6px;
  animation: ls-pulse 1.5s infinite;
}
@keyframes ls-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}

/* ============================================================
   SITE HEADER (GeneratePress Override)
   ============================================================ */
.site-header {
  background: var(--ls-primary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
  padding: 0 !important;
}
.site-header .inside-header {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.site-title, .site-title a {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
}
.site-description { color: rgba(255,255,255,.75) !important; font-size: .8rem !important; }
.main-navigation a { color: rgba(255,255,255,.9) !important; font-weight: 600 !important; font-size: .9rem !important; }
.main-navigation a:hover { color: var(--ls-accent) !important; text-decoration: none !important; }
.main-navigation li.current-menu-item > a { color: var(--ls-accent) !important; border-bottom: 2px solid var(--ls-accent); }

/* Mobile menu button */
button.menu-toggle {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.5) !important;
  color: #fff !important;
  border-radius: var(--ls-radius-sm) !important;
  padding: 6px 12px !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ls-breadcrumb {
  background: rgba(30,76,125,.06);
  border-bottom: 1px solid var(--ls-border);
  padding: 8px 0;
  font-size: .82rem;
}
.ls-breadcrumb .inside {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.ls-breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ls-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.ls-breadcrumb li + li::before { content: '›'; color: var(--ls-muted); }
.ls-breadcrumb a { color: var(--ls-primary); }
.ls-breadcrumb span[aria-current] { color: var(--ls-muted); }

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.ls-hero {
  background: linear-gradient(135deg, var(--ls-primary) 0%, var(--ls-primary-dark) 60%, #0F2847 100%);
  color: #fff;
  text-align: center;
  padding: 36px 20px 28px;
  position: relative;
  overflow: hidden;
}
.ls-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.08)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.ls-hero h1 { color: #fff; font-size: clamp(1.5rem, 5vw, 2.5rem); margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ls-hero p  { color: rgba(255,255,255,.85); font-size: clamp(.9rem, 2vw, 1.05rem); margin-bottom: 22px; }

/* Live timer badge in hero */
.ls-hero-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.ls-hero-timer .ls-live-dot { width: 10px; height: 10px; }

/* ============================================================
   TIME-SLOT BUTTONS (Main CTAs)
   ============================================================ */
.ls-time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 8px;
}
@media (max-width: 500px) { .ls-time-slots { grid-template-columns: 1fr; gap: 8px; } }

.ls-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.28);
  border-radius: var(--ls-radius);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, border-color .2s;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.ls-slot-btn:hover { background: rgba(255,255,255,.22); border-color: var(--ls-accent); transform: translateY(-2px); color: #fff; text-decoration: none; }
.ls-slot-btn .ls-slot-icon { font-size: 1.5rem; }
.ls-slot-btn .ls-slot-time { font-size: .82rem; opacity: .85; font-weight: 600; }
.ls-slot-btn .ls-slot-label { font-size: 1rem; }
.ls-slot-btn.ls-active { background: var(--ls-accent); border-color: var(--ls-accent-dark); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ls-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ls-primary);
}
.ls-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ls-section-header h2 .ls-section-icon { font-size: 1.2rem; }
.ls-view-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ls-primary);
  border: 1.5px solid var(--ls-primary);
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.ls-view-all:hover { background: var(--ls-primary); color: #fff; text-decoration: none; }

/* ============================================================
   RESULT CARDS GRID (from plugin [lottery_results_grid])
   ============================================================ */
.ls-results-section {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--ls-shadow);
  border: 1px solid var(--ls-border);
}
@media (max-width: 600px) { .ls-results-section { padding: 16px; } }

/* Override plugin grid inside our section */
.ls-results-section .lsp-results-grid { gap: 14px; }
.ls-results-section .lsp-result-card {
  border: 1.5px solid var(--ls-border) !important;
  border-radius: var(--ls-radius) !important;
  overflow: hidden !important;
  transition: box-shadow .2s, transform .2s !important;
  box-shadow: var(--ls-shadow) !important;
}
.ls-results-section .lsp-result-card:hover {
  box-shadow: var(--ls-shadow-lg) !important;
  transform: translateY(-3px) !important;
}
.ls-results-section .lsp-card-header {
  background: var(--ls-primary) !important;
  color: #fff !important;
  padding: 10px 14px !important;
}
.ls-results-section .lsp-card-date { color: rgba(255,255,255,.9) !important; font-size: .82rem !important; }
.ls-results-section .lsp-btn { border-radius: var(--ls-radius-sm) !important; }

/* ============================================================
   TODAY RESULT BOX (plugin override)
   ============================================================ */
.ls-today-box .lsp-results-box {
  background: var(--ls-surface) !important;
  border: 2px solid var(--ls-primary) !important;
  border-radius: var(--ls-radius) !important;
  box-shadow: var(--ls-shadow-lg) !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.ls-today-box .lsp-box-title {
  font-size: 1.1rem !important;
  color: var(--ls-primary) !important;
  padding-bottom: 12px !important;
}
.ls-today-box .lsp-buttons-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}
@media (max-width: 480px) {
  .ls-today-box .lsp-buttons-row { grid-template-columns: 1fr !important; }
}
.ls-today-box .lsp-btn {
  width: 100% !important;
  padding: 12px 8px !important;
  border-radius: var(--ls-radius) !important;
  font-size: .95rem !important;
  justify-content: center !important;
  background: var(--ls-primary) !important;
  transition: background .2s, transform .15s !important;
}
.ls-today-box .lsp-btn:hover { background: var(--ls-primary-dark) !important; transform: translateY(-1px) !important; }

/* ============================================================
   QUICK LINKS / KEYWORD NAVIGATION
   ============================================================ */
.ls-quick-links {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--ls-shadow);
  border: 1px solid var(--ls-border);
}
.ls-quick-links h3 { font-size: 1rem; margin-bottom: 12px; color: var(--ls-primary); }
.ls-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
@media (max-width: 400px) { .ls-quick-links-grid { grid-template-columns: 1fr 1fr; } }
.ls-quick-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--ls-bg);
  border: 1.5px solid var(--ls-border);
  border-radius: var(--ls-radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ls-primary);
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.ls-quick-link:hover { background: var(--ls-primary); color: #fff; border-color: var(--ls-primary); text-decoration: none; }
.ls-quick-link .ls-ql-icon { font-size: 1rem; flex-shrink: 0; }

/* Time-specific quick link variants */
.ls-quick-link.ls-1pm { border-left: 3px solid var(--ls-1pm); }
.ls-quick-link.ls-6pm { border-left: 3px solid var(--ls-6pm); }
.ls-quick-link.ls-8pm { border-left: 3px solid var(--ls-8pm); }

/* ============================================================
   OLD RESULTS FORM (plugin override)
   ============================================================ */
.ls-old-results .lsp-old-results-box {
  max-width: 100% !important;
  margin: 0 !important;
  border: 2px solid var(--ls-border) !important;
  border-radius: var(--ls-radius) !important;
}
.ls-old-results .lsp-old-form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
  gap: 10px !important;
  align-items: end !important;
}
.ls-old-results .lsp-field-group label {
  font-size: .8rem !important;
  font-weight: 600 !important;
  color: var(--ls-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  display: block !important;
  margin-bottom: 4px !important;
}
.ls-old-results select {
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1.5px solid var(--ls-border) !important;
  border-radius: var(--ls-radius-sm) !important;
  font-size: .9rem !important;
  background: var(--ls-surface) !important;
  color: var(--ls-text) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E4C7D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  cursor: pointer !important;
}
.ls-old-results .lsp-btn {
  background: var(--ls-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 11px 20px !important;
  border-radius: var(--ls-radius-sm) !important;
  width: 100% !important;
}
.ls-old-results .lsp-btn:hover { background: var(--ls-accent-dark) !important; }

/* ============================================================
   KEYWORD INFO BOXES
   ============================================================ */
.ls-info-box {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--ls-shadow);
  border: 1px solid var(--ls-border);
}
.ls-info-box.ls-info-1pm { border-top: 4px solid var(--ls-1pm); }
.ls-info-box.ls-info-6pm { border-top: 4px solid var(--ls-6pm); }
.ls-info-box.ls-info-8pm { border-top: 4px solid var(--ls-8pm); }
.ls-info-box h3 { margin-bottom: 10px; font-size: 1.05rem; }
.ls-info-box p  { margin-bottom: 8px; font-size: .92rem; color: var(--ls-muted); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.ls-faq { background: var(--ls-surface); border-radius: var(--ls-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--ls-shadow); border: 1px solid var(--ls-border); }
.ls-faq-item { border-bottom: 1px solid var(--ls-border); }
.ls-faq-item:last-child { border-bottom: none; }
.ls-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ls-primary);
  list-style: none;
  gap: 10px;
}
.ls-faq-q::marker, .ls-faq-q::-webkit-details-marker { display: none; }
.ls-faq-q .ls-faq-arrow { font-size: .75rem; transition: transform .25s; flex-shrink: 0; }
details[open] .ls-faq-q .ls-faq-arrow { transform: rotate(180deg); }
.ls-faq-a { padding: 0 0 14px; font-size: .9rem; color: var(--ls-muted); line-height: 1.7; }

/* ============================================================
   RELATED POSTS / INTERNAL LINKS BOX
   ============================================================ */
.ls-related {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--ls-shadow);
  border: 1px solid var(--ls-border);
}
.ls-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ls-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--ls-bg);
  border: 1.5px solid var(--ls-border);
  border-radius: var(--ls-radius-sm);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.ls-related-card:hover { border-color: var(--ls-primary); background: rgba(30,76,125,.04); text-decoration: none; }
.ls-related-card .ls-rc-date { font-size: .78rem; color: var(--ls-muted); }
.ls-related-card .ls-rc-title { font-size: .9rem; font-weight: 600; color: var(--ls-primary); }
.ls-related-card .ls-rc-badge { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; align-self: flex-start; }
.ls-rc-badge.ls-1pm { background: var(--ls-1pm-bg); color: var(--ls-1pm); }
.ls-rc-badge.ls-6pm { background: var(--ls-6pm-bg); color: var(--ls-6pm); }
.ls-rc-badge.ls-8pm { background: var(--ls-8pm-bg); color: var(--ls-8pm); }

/* ============================================================
   LOTTERY TYPES NAVIGATION (Category Pages)
   ============================================================ */
.ls-type-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ls-type-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  border: 2px solid var(--ls-border);
  color: var(--ls-muted);
  text-decoration: none;
  transition: all .15s;
}
.ls-type-tab:hover, .ls-type-tab.ls-active {
  background: var(--ls-primary);
  color: #fff;
  border-color: var(--ls-primary);
  text-decoration: none;
}
.ls-type-tab.ls-active { cursor: default; }

/* ============================================================
   SINGLE RESULT POST
   ============================================================ */
.ls-single-result { max-width: 860px; }
.ls-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--ls-bg);
  border-radius: var(--ls-radius-sm);
  border: 1px solid var(--ls-border);
}
.ls-result-meta-item { display: flex; align-items: center; gap: 5px; font-size: .88rem; color: var(--ls-muted); font-weight: 500; }
.ls-result-meta-item strong { color: var(--ls-text); }
.ls-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
}
.ls-time-badge.ls-1pm { background: var(--ls-1pm-bg); color: var(--ls-1pm); }
.ls-time-badge.ls-6pm { background: var(--ls-6pm-bg); color: var(--ls-6pm); }
.ls-time-badge.ls-8pm { background: var(--ls-8pm-bg); color: var(--ls-8pm); }

/* Result image viewer */
.ls-result-image-wrap {
  background: var(--ls-surface);
  border: 2px solid var(--ls-border);
  border-radius: var(--ls-radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--ls-shadow-lg);
}
.ls-result-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.ls-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: var(--ls-bg);
  border-top: 1px solid var(--ls-border);
}

/* ============================================================
   BUTTONS (Global)
   ============================================================ */
.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--ls-radius-sm);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.ls-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); text-decoration: none; }
.ls-btn-primary   { background: var(--ls-primary);   color: #fff; }
.ls-btn-accent    { background: var(--ls-accent);     color: #fff; }
.ls-btn-outline   { background: transparent; color: var(--ls-primary); border: 2px solid var(--ls-primary); }
.ls-btn-sm        { padding: 7px 14px; font-size: .82rem; }
.ls-btn-full      { width: 100%; justify-content: center; }
.ls-btn-primary:hover { background: var(--ls-primary-dark); color: #fff; }
.ls-btn-accent:hover  { background: var(--ls-accent-dark); color: #fff; }

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.ls-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ls-font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ls-accent);
  letter-spacing: 1px;
}
.ls-countdown-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 3px 8px;
  min-width: 36px;
}
.ls-countdown-unit span:first-child { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.ls-countdown-unit span:last-child  { font-size: .6rem; font-weight: 600; opacity: .75; text-transform: uppercase; }
.ls-countdown-sep { font-size: 1.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; color: rgba(255,255,255,.6); }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.ls-widget {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--ls-shadow);
  border: 1px solid var(--ls-border);
}
.ls-widget-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ls-primary);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ls-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ls-widget ul { list-style: none; margin: 0; padding: 0; }
.ls-widget ul li { border-bottom: 1px solid var(--ls-bg); }
.ls-widget ul li:last-child { border-bottom: none; }
.ls-widget ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ls-text);
  text-decoration: none;
}
.ls-widget ul li a:hover { color: var(--ls-primary); padding-left: 4px; }
.ls-widget ul li a::before { content: '▸'; color: var(--ls-primary); font-size: .75rem; flex-shrink: 0; }

/* Ad / Sponsorship placeholder */
.ls-ad-slot {
  width: 100%;
  min-height: 90px;
  background: var(--ls-bg);
  border: 2px dashed var(--ls-border);
  border-radius: var(--ls-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ls-muted);
  font-size: .8rem;
  margin: 12px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ls-primary-dark) !important;
  color: rgba(255,255,255,.8) !important;
  padding: 0 !important;
}
.ls-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) { .ls-footer-main { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 500px) { .ls-footer-main { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px 16px; } }

.ls-footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.15); }
.ls-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ls-footer-col ul li { margin-bottom: 6px; }
.ls-footer-col ul li a { color: rgba(255,255,255,.7); font-size: .87rem; text-decoration: none; transition: color .15s; }
.ls-footer-col ul li a:hover { color: var(--ls-accent); }
.ls-footer-desc { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.7; }

.ls-footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 14px 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.ls-footer-bottom a { color: rgba(255,255,255,.6); }

/* ============================================================
   PAGE-SPECIFIC: Archive / Category Pages
   ============================================================ */
.ls-archive-header {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--ls-shadow);
  border-left: 5px solid var(--ls-primary);
}
.ls-archive-header h1 { font-size: 1.4rem; margin-bottom: 6px; }
.ls-archive-header p  { color: var(--ls-muted); font-size: .9rem; margin: 0; }

.ls-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.ls-pagination a, .ls-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  border-radius: var(--ls-radius-sm);
  font-size: .9rem; font-weight: 600;
  border: 1.5px solid var(--ls-border);
  color: var(--ls-primary);
  text-decoration: none;
  transition: all .15s;
}
.ls-pagination a:hover, .ls-pagination span.current {
  background: var(--ls-primary); color: #fff; border-color: var(--ls-primary);
}

/* ============================================================
   TABLES (Winner List, Charts)
   ============================================================ */
.ls-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--ls-radius); }
.ls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  overflow: hidden;
}
.ls-table th {
  background: var(--ls-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ls-table td { padding: 11px 16px; border-bottom: 1px solid var(--ls-bg); }
.ls-table tr:last-child td { border-bottom: none; }
.ls-table tr:hover td { background: rgba(30,76,125,.04); }
.ls-table .ls-prize-first { font-weight: 800; color: var(--ls-primary); font-size: 1rem; }
.ls-table .ls-prize-amt   { font-weight: 700; color: var(--ls-success); }

/* ============================================================
   LIVE BADGE & STATUS INDICATORS
   ============================================================ */
.ls-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #DCFCE7;
  color: var(--ls-success);
  border: 1px solid #BBF7D0;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ls-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF3C7;
  color: var(--ls-8pm);
  border: 1px solid #FDE68A;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.ls-new-badge {
  background: #DBEAFE;
  color: var(--ls-1pm);
  border: 1px solid #BFDBFE;
  border-radius: 50px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.ls-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--ls-surface);
  border-top: 2px solid var(--ls-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  padding: 10px 12px;
}
@media (max-width: 768px) { .ls-mobile-sticky { display: block; } }
.ls-mobile-sticky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.ls-mobile-sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--ls-radius-sm);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.ls-mobile-sticky-btn .ls-ms-icon { font-size: 1.2rem; }
.ls-mobile-sticky-btn.ls-ms-1pm { background: var(--ls-1pm-bg); color: var(--ls-1pm); }
.ls-mobile-sticky-btn.ls-ms-6pm { background: var(--ls-6pm-bg); color: var(--ls-6pm); }
.ls-mobile-sticky-btn.ls-ms-8pm { background: var(--ls-8pm-bg); color: var(--ls-8pm); }
/* Push page content above sticky on mobile */
@media (max-width: 768px) { body { padding-bottom: 72px; } }

/* ============================================================
   SEARCH BOX
   ============================================================ */
.ls-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ls-search-box input {
  flex: 1;
  padding: 11px 16px;
  border: 2px solid var(--ls-border);
  border-radius: var(--ls-radius-sm);
  font-size: .95rem;
  color: var(--ls-text);
  background: var(--ls-surface);
  outline: none;
  transition: border-color .15s;
}
.ls-search-box input:focus { border-color: var(--ls-primary); }
.ls-search-box button { padding: 11px 20px; background: var(--ls-primary); color: #fff; border: none; border-radius: var(--ls-radius-sm); font-weight: 700; cursor: pointer; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .ls-notice-bar, .ls-mobile-sticky, .ls-hero, .ls-quick-links, nav, .site-footer { display: none !important; }
  .ls-result-image-wrap img { max-width: 100%; page-break-inside: avoid; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.ls-text-center { text-align: center; }
.ls-text-muted   { color: var(--ls-muted); }
.ls-mt-0 { margin-top: 0 !important; }
.ls-mb-0 { margin-bottom: 0 !important; }
.ls-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.ls-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ls-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ls-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) { .ls-grid-2, .ls-grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   GENERATEPRESS CONTENT AREA LAYOUT
   ============================================================ */
.content-area { width: 100%; }
.page-content-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 20px; }
@media (max-width: 768px) { .page-content-wrap { padding: 12px 12px; } }

/* GP sidebar layout override */
.sidebar-primary { width: 300px; flex-shrink: 0; }
@media (max-width: 1024px) { .sidebar-primary { width: 260px; } }
@media (max-width: 900px) { .sidebar-primary { display: none; } }

/* No sidebar on mobile—full width */
@media (max-width: 900px) {
  .content-area { width: 100% !important; }
  .sidebar-layout .content-area { max-width: 100% !important; }
}


/* ============================================================
   v1.1.0 — MOBILE-FIRST OVERFLOW & LAYOUT FIXES
   ============================================================ */

/* ------ Global overflow prevention ------ */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ------ Notice bar: flex-wrap so it never breaks layout ------ */
.ls-notice-bar {
  padding: 6px 12px;
  overflow: hidden;
}
.ls-notice-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.6;
  max-width: 100%;
}
@media (max-width: 480px) {
  .ls-notice-inner { font-size: .74rem; gap: 2px; }
}

/* ------ Hero: overflow safe, date on own line ------ */
.ls-hero { overflow: hidden; }
.ls-hero-date {
  display: block;
  font-size: .65em;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
}
.ls-hero-trust {
  margin-top: 12px;
  font-size: .78rem;
  opacity: .7;
  padding: 0 8px;
  text-align: center;
  overflow-wrap: break-word;
}
.ls-hero-timer {
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 16px;
}
.ls-ht-label { white-space: nowrap; font-weight: 600; }
.ls-ht-sep   { opacity: .5; }
.ls-countdown {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
@media (max-width: 360px) {
  .ls-hero-timer { font-size: .78rem; padding: 5px 10px; }
}

/* ------ Time slots: 3-col → 1-col on tiny screens ------ */
.ls-time-slots {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 100%;
  padding: 0 4px;
}
@media (max-width: 420px) {
  .ls-time-slots { grid-template-columns: 1fr; gap: 8px; }
}

/* ------ Type nav: horizontal scroll, no wrap ------ */
.ls-type-nav-wrap {
  background: var(--ls-surface);
  border-radius: var(--ls-radius);
  padding: 10px 14px 8px;
  margin-bottom: 16px;
  box-shadow: var(--ls-shadow);
  border: 1px solid var(--ls-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ls-type-nav-wrap::-webkit-scrollbar { display: none; }
.ls-type-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: max-content;
  margin-bottom: 0;
}
.ls-type-tab {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 13px;
  font-size: .82rem;
  border-radius: 50px;
}

/* ------ Section header: allow h2 to shrink without overflow ------ */
.ls-section-header {
  overflow: hidden;
  gap: 10px;
}
.ls-section-header h2 {
  min-width: 0;
  flex: 1;
  white-space: normal;
  overflow: hidden;
  word-break: break-word;
  gap: 6px;
}
.ls-section-date {
  font-size: .78rem;
  color: var(--ls-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ------ Results section: prevent inner overflow ------ */
.ls-results-section {
  overflow: hidden;
  word-break: break-word;
}

/* ------ Time split grid: replaces inline style ------ */
.ls-time-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .ls-time-split-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ------ TODAY'S DRAW STATUS CARDS ------ */
.ls-today-draws {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.ls-draw-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--ls-radius);
  border: 2px solid var(--ls-border);
  background: var(--ls-surface);
  text-decoration: none;
  transition: box-shadow .2s, transform .15s;
  overflow: hidden;
  min-height: 70px;
}
.ls-draw-status-card:hover {
  box-shadow: var(--ls-shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}
.ls-draw-status-card.ls-dc-1pm { border-left: 4px solid var(--ls-1pm); }
.ls-draw-status-card.ls-dc-6pm { border-left: 4px solid var(--ls-6pm); }
.ls-draw-status-card.ls-dc-8pm { border-left: 4px solid var(--ls-8pm); }

.ls-dc-icon  { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.ls-dc-body  { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.ls-dc-title { font-weight: 700; font-size: 1rem; color: var(--ls-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-dc-sub   { font-size: .82rem; color: var(--ls-muted); }

.ls-dc-status-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
.ls-badge-waiting { background: #FEF9C3; color: #92400E; border: 1px solid #FDE68A; }
.ls-badge-live    { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; animation: ls-pulse 1.5s infinite; }
.ls-badge-updated { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ------ EMPTY STATE (when plugin has no results yet) ------ */
.ls-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  color: var(--ls-muted);
  gap: 8px;
}
.ls-empty-icon { font-size: 2rem; line-height: 1; }
.ls-empty-state p { font-size: .88rem; margin: 0; }

/* ------ MOBILE MENU OVERLAY (fixes white space on right) ------ */
.ls-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9890;
  cursor: pointer;
}
.ls-menu-overlay.active { display: block; }

/* Prevent body scroll when menu open */
body.ls-menu-open {
  overflow: hidden;
  /* push content — not transform, avoids layout shifts */
}

/* ------ GP off-canvas nav: constrain to viewport ------ */
.main-navigation,
.nav-menu-wrapper {
  max-width: 100vw;
}
@media (max-width: 768px) {
  /* Ensure GP's slide-in panel doesn't exceed screen */
  .main-navigation.toggled,
  .main-navigation[aria-expanded="true"] {
    max-width: 85vw !important;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* ------ Bottom sticky: always 3 equal columns ------ */
.ls-mobile-sticky-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px;
  max-width: 100%;
}
.ls-mobile-sticky-btn {
  min-width: 0;
  overflow: hidden;
}
.ls-mobile-sticky-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Active state for sticky nav */
.ls-ms-active {
  box-shadow: 0 0 0 2px var(--ls-primary) inset;
}

/* ------ Page content wrap: prevent overflow ------ */
.page-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 24px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .page-content-wrap { padding: 10px 10px 20px; }
}

/* ------ Footer mobile alignment ------ */
@media (max-width: 500px) {
  .ls-footer-main  { padding: 20px 12px 12px; }
  .ls-footer-bottom { padding: 10px 12px; font-size: .75rem; }
}

/* ------ Plugin card override: prevent overflow ------ */
.lsp-result-card,
.lsp-results-grid,
.lsp-results-box,
.lsp-old-results-box {
  max-width: 100% !important;
  overflow: hidden !important;
  word-break: break-word !important;
}
.lsp-results-grid {
  width: 100% !important;
}

/* ------ Utility: live status box ------ */
.ls-live-status-box {
  overflow: hidden;
  flex-wrap: wrap;
}

/* ------ Header scrolled state ------ */
.ls-header-scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,.22) !important;
}
