/* ============================================================
   LottoGuide Theme — main.css
   Prefix: lg-   |   Font: Source Sans 3   |   Width: 1160px
   Colors: --lg-navy #1a2744  --lg-gold #f5a623  --lg-red #e63946
   ============================================================ */

/* --- Reset & Variables ---------------------------------------- */
:root {
  --lg-navy:       #1a2744;
  --lg-navy-light: #243360;
  --lg-gold:       #f5a623;
  --lg-gold-dark:  #d4880e;
  --lg-red:        #e63946;
  --lg-white:      #ffffff;
  --lg-offwhite:   #f7f8fc;
  --lg-border:     #e2e6f0;
  --lg-text:       #222c3c;
  --lg-muted:      #6b7a99;
  --lg-radius:     6px;
  --lg-shadow:     0 2px 8px rgba(26,39,68,.12);
  --lg-wrap:       1160px;
  --lg-font:       'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--lg-font);
  color: var(--lg-text);
  background: var(--lg-offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Layout --------------------------------------------------- */
.lg-wrap { max-width: var(--lg-wrap); margin: 0 auto; padding: 0 20px; }

.lg-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 40px;
}

/* --- Header --------------------------------------------------- */
.lg-header {
  background: var(--lg-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.lg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.lg-logo { display: flex; align-items: center; gap: 10px; }
.lg-logo img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.lg-logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lg-white);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lg-logo__text span { color: var(--lg-gold); }

/* Nav */
.lg-nav { display: flex; align-items: center; gap: 8px; }
.lg-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--lg-radius);
  transition: background .15s, color .15s;
}
.lg-nav a:hover, .lg-nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--lg-white);
  text-decoration: none;
}

/* Hamburger */
.lg-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.lg-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lg-white);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

/* --- Jackpot Bar --------------------------------------------- */
.lg-jackpot-bar {
  background: var(--lg-navy-light);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 8px 0;
}
.lg-jackpot-bar__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  flex-wrap: wrap;
}
.lg-jackpot-item { display: flex; align-items: center; gap: 8px; }
.lg-jackpot-item__label { font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.lg-jackpot-item__amount { font-weight: 700; color: var(--lg-gold); font-size: .95rem; }
.lg-jackpot-item__draw { color: rgba(255,255,255,.55); font-size: .78rem; }

/* --- Breadcrumbs -------------------------------------------- */
.lg-breadcrumbs {
  background: var(--lg-white);
  border-bottom: 1px solid var(--lg-border);
  padding: 9px 0;
  font-size: .8rem;
  color: var(--lg-muted);
}
.lg-breadcrumbs a { color: var(--lg-muted); }
.lg-breadcrumbs a:hover { color: var(--lg-navy); }
.lg-breadcrumbs__sep { margin: 0 6px; }

/* --- Main Content ------------------------------------------- */
.lg-content {
  background: var(--lg-white);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  padding: 32px 36px;
  min-width: 0;
}

/* Post title */
.lg-content h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--lg-navy);
  line-height: 1.25;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--lg-gold);
}

/* Heading hierarchy */
.lg-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lg-navy);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--lg-gold);
}
.lg-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lg-navy-light);
  margin: 22px 0 8px;
}
.lg-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lg-text);
  margin: 16px 0 6px;
}
.lg-content p { margin-bottom: 14px; }
.lg-content ul, .lg-content ol { margin: 0 0 14px 22px; }
.lg-content li { margin-bottom: 5px; }
.lg-content strong { color: var(--lg-navy); }

/* Tables */
.lg-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .9rem;
}
.lg-content th {
  background: var(--lg-navy);
  color: var(--lg-white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lg-content td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--lg-border);
  vertical-align: middle;
}
.lg-content tr:nth-child(even) td { background: var(--lg-offwhite); }
.lg-content tr:hover td { background: #eef1fb; }
.lg-content td.yes { color: #2a8a4a; font-weight: 700; }
.lg-content td.no  { color: var(--lg-red); font-weight: 700; }

/* Scrollable table wrapper */
.lg-content .scrollit {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 18px;
}

/* FAQ / Accordion */
.lg-content .faq-item {
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.lg-content .faq-item summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--lg-offwhite);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lg-content .faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--lg-gold); }
.lg-content .faq-item[open] summary::after { content: '−'; }
.lg-content .faq-item .faq-body { padding: 14px 16px; }

/* Lottery number balls */
.la-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lg-navy);
  color: var(--lg-white);
  font-weight: 700;
  font-size: .85rem;
  margin: 2px;
  box-shadow: 0 2px 6px rgba(26,39,68,.3);
}
.la-ball--special {
  background: var(--lg-gold);
  color: var(--lg-navy);
  box-shadow: 0 2px 6px rgba(245,166,35,.4);
}

/* Lotto full display */
.la-lotto-full { background: var(--lg-offwhite); border-radius: var(--lg-radius); padding: 16px; margin: 16px 0; }
.la-lotto-full__row { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--lg-border); }
.la-lotto-full__row:last-child { border-bottom: none; }
.la-lotto-full__label { min-width: 130px; font-weight: 700; font-size: .85rem; color: var(--lg-muted); text-transform: uppercase; letter-spacing: .04em; }
.la-lotto-full__value--jackpot { font-weight: 800; font-size: 1.1rem; color: var(--lg-navy); }
.la-no-data { color: var(--lg-muted); font-style: italic; }

/* --- Sidebar ------------------------------------------------ */
.lg-sidebar { position: sticky; top: 76px; }

.lg-widget {
  background: var(--lg-white);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.lg-widget__title {
  background: var(--lg-navy);
  color: var(--lg-white);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 10px 16px;
}
.lg-widget__body { padding: 0; }

/* State list */
.lg-state-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 0; }
.lg-state-list li { break-inside: avoid; }
.lg-state-list a {
  display: block;
  padding: 7px 14px;
  font-size: .83rem;
  color: var(--lg-text);
  border-bottom: 1px solid var(--lg-border);
  transition: background .1s, color .1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-state-list a:hover { background: var(--lg-offwhite); color: var(--lg-navy); text-decoration: none; }
.lg-state-list a.current { background: #eef1fb; color: var(--lg-navy); font-weight: 700; }

/* Quick links widget */
.lg-quick-links { list-style: none; margin: 0; padding: 8px 0; }
.lg-quick-links li { border-bottom: 1px solid var(--lg-border); }
.lg-quick-links li:last-child { border-bottom: none; }
.lg-quick-links a { display: block; padding: 9px 16px; font-size: .87rem; }

/* --- Footer ----------------------------------------------- */
.lg-footer {
  background: var(--lg-navy);
  color: rgba(255,255,255,.65);
  margin-top: 40px;
}
.lg-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lg-footer__col h4 {
  color: var(--lg-white);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}
.lg-footer__col ul { list-style: none; }
.lg-footer__col li { margin-bottom: 6px; }
.lg-footer__col a { color: rgba(255,255,255,.55); font-size: .85rem; }
.lg-footer__col a:hover { color: var(--lg-gold); text-decoration: none; }
.lg-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 8px;
}
.lg-footer__rg {
  background: rgba(255,255,255,.06);
  border-radius: var(--lg-radius);
  padding: 14px 20px;
  font-size: .8rem;
  line-height: 1.5;
  margin: 20px 0 0;
  border-left: 3px solid var(--lg-gold);
  color: rgba(255,255,255,.55);
}
.lg-footer__rg strong { color: rgba(255,255,255,.8); }

/* Illinois / Indiana disclaimer */
.lg-state-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--lg-radius);
  padding: 14px 18px;
  font-size: .83rem;
  color: #78350f;
  margin: 28px 0 0;
}

/* --- Homepage ---------------------------------------------- */
.lg-hero {
  background: linear-gradient(135deg, var(--lg-navy) 0%, var(--lg-navy-light) 60%, #2d4a8a 100%);
  padding: 48px 0 52px;
  color: var(--lg-white);
}
.lg-hero__inner { max-width: var(--lg-wrap); margin: 0 auto; padding: 0 20px; }
.lg-hero h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.lg-hero h1 span { color: var(--lg-gold); }
.lg-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 560px; margin-bottom: 24px; }

/* Jackpot cards on homepage */
.lg-jackpot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}
.lg-jackpot-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 20px 22px;
  backdrop-filter: blur(4px);
}
.lg-jackpot-card__game { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.lg-jackpot-card__amount { font-size: 2rem; font-weight: 900; color: var(--lg-gold); line-height: 1.1; }
.lg-jackpot-card__draw { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 6px; }

/* State grid */
.lg-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.lg-state-grid a {
  display: block;
  background: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 12px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--lg-navy);
  transition: all .15s;
  text-align: center;
}
.lg-state-grid a:hover {
  background: var(--lg-navy);
  color: var(--lg-white);
  border-color: var(--lg-navy);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,39,68,.2);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-sidebar { position: static; }
  .lg-state-list { columns: 3; }
}

@media (max-width: 640px) {
  .lg-header__inner { height: 56px; }
  .lg-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--lg-navy); flex-direction: column; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .lg-nav.open { display: flex; }
  .lg-nav a { padding: 10px 20px; border-radius: 0; width: 100%; }
  .lg-nav-toggle { display: block; }
  .lg-content { padding: 20px 18px; }
  .lg-content h1 { font-size: 1.5rem; }
  .lg-hero h1 { font-size: 1.6rem; }
  .lg-state-list { columns: 2; }
  .lg-jackpot-bar__inner { gap: 12px; }
}

/* --- TOC Plugin Overrides ----------------------------------- */
#toc_container { background: var(--lg-offwhite); border: 1px solid var(--lg-border); border-radius: var(--lg-radius); padding: 14px 18px; margin: 20px 0; }
#toc_container .toc_title { font-weight: 700; color: var(--lg-navy); }
#toc_container li a { color: var(--lg-navy); }

/* --- Yoast breadcrumb override ----------------------------- */
.yoast-breadcrumbs { font-size: .8rem; color: var(--lg-muted); }
.yoast-breadcrumbs a { color: var(--lg-muted); }
