/* Western sun sign pages: /horoscope, /zodiac, /zodiac-compatibility
   (jyoti/web/seo/horoscope.py, zodiac.py). Loaded after /static/seo.css and
   /static/web/site-base.css, which own the tokens, cards and buttons; this
   file adds only what these pages need. Inline SVG in these pages reads
   --el (the sign's element colour, set inline), --ink, --ink-muted, --line
   and --card, each with a literal fallback in the SVG itself.

   The site is dark. The light block at the end keeps the pictures readable
   if a page is ever shown on a light surface. */

.western {
  --ink: var(--on-dark, #E4E1EE);
  --ink-muted: var(--muted-dark, #ABA9C2);
  --line: #8A86A8;
  --card: #1A2149;
}

.westernNav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.westernNav a,
.viewTabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--seo-hair, rgba(240, 200, 120, .22));
  border-radius: 999px;
  color: var(--on-dark, #E4E1EE);
  font-size: 15px;
  text-decoration: none;
}
.westernNav a[aria-current="page"],
.viewTabs a[aria-current="page"] {
  background: rgba(240, 200, 120, .16);
  border-color: var(--gold, #D9AB4C);
  color: var(--gold-2, #F0C878);
  font-weight: 700;
}
.westernNav a:hover,
.viewTabs a:hover { border-color: var(--gold-2, #F0C878); }

.viewTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.signHead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 12px;
}
.signHead .glyph { flex: none; }
.signHead h1 { margin: 0; }
.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tzForm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 22px;
  font-size: 15px;
}
.tzForm select,
.calcForm select,
.calcForm input {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--seo-hair, rgba(240, 200, 120, .3));
  background: rgba(255, 255, 255, .06);
  color: var(--on-dark-head, #fff);
  font: inherit;
  max-width: 100%;
}
.tzForm .btn-secondary { min-height: 44px; padding: 6px 16px; font-size: 15px; }

.western .readSection p,
.western .card p { line-height: 1.65; max-width: 68ch; }
.western .eventLine {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--el, var(--gold, #D9AB4C));
  background: rgba(255, 255, 255, .04);
  border-radius: 0 14px 14px 0;
  line-height: 1.6;
}
.western .lead { max-width: 64ch; }
.western .bestTime .tip { color: var(--gold-2, #F0C878); font-weight: 600; }

.glyphGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.glyphCard {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "g n" "g s";
  align-items: center;
  column-gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--seo-hair, rgba(240, 200, 120, .22));
  border-left: 4px solid var(--el);
  border-radius: 16px;
  background: rgba(30, 37, 84, .72);
  color: var(--on-dark-head, #fff);
  text-decoration: none;
}
.glyphCard:hover { border-color: var(--el); background: var(--indigo-3, #222A5C); }
.glyphCard .glyph { grid-area: g; }
.glyphCard .gcName { grid-area: n; font-weight: 700; font-size: 17px; align-self: end; }
.glyphCard .gcSub { grid-area: s; font-size: 12.5px; color: var(--ink-muted); align-self: start; }
.pageWrap .card a.glyphCard { color: var(--on-dark-head, #fff); }

.dayList { list-style: none; margin: 14px 0 0; padding: 0; }
.dayList li { padding: 10px 0; border-bottom: 1px solid var(--seo-hair, rgba(240, 200, 120, .2)); line-height: 1.55; }
.dayList li:last-child { border-bottom: 0; }
.dayWord { font-size: 13px; color: var(--ink-muted); margin-left: 6px; }

.traitList { margin: 0; padding-left: 20px; }
.traitList li { margin: 0 0 12px; line-height: 1.6; max-width: 68ch; }

.tableScroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.western table { border-collapse: collapse; width: 100%; font-size: 15px; }
.western th,
.western td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(240, 200, 120, .16);
}
.western td.pts { text-align: right; font-weight: 600; white-space: nowrap; }

.skyFacts { margin: 0 0 8px; }
.skyFacts div {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 4px 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--seo-hair, rgba(240, 200, 120, .16));
}
.skyFacts div:last-child { border-bottom: 0; }
.skyFacts dt { color: var(--ink-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.skyFacts dd { margin: 0; line-height: 1.5; }

.wheelCard { text-align: center; }
.wheel { display: block; width: min(100%, 360px); height: auto; margin: 4px auto 12px; }
.energyBars { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 0 10px; }
.glyph { flex: none; }

.vsVedic p { max-width: 68ch; }
.vedicNote { color: var(--gold-2, #F0C878); }

/* Calls to action */
.ctaRow { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.pageWrap .ctaBlock .btn-primary { color: var(--gold-on, #1A1530); }
.pageWrap .ctaBlock .btn-secondary { color: var(--on-dark-head, #fff); }
.western .pairLinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px 18px;
}

/* Forms */
.calcForm { display: grid; gap: 16px; max-width: 460px; }
.calcForm .field { display: grid; gap: 6px; }
.calcForm label { font-weight: 600; }
.fieldHint { margin: 0; font-size: 13.5px; color: var(--ink-muted); }
.formError { color: var(--seo-bad, #FFA3A3); font-weight: 600; margin: 12px 0 0; }

.bigAnswer { font-size: clamp(30px, 6vw, 44px); font-weight: 700; margin: 4px 0 8px; }
.bigThree { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 12px; }
.bigThreeItem { padding: 14px 16px; border: 1px solid var(--seo-hair, rgba(240, 200, 120, .22)); border-radius: 16px; }
.bigThreeItem.focus { border-color: var(--gold, #D9AB4C); background: rgba(240, 200, 120, .1); }
.bigThreeItem dt { color: var(--ink-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bigThreeItem dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.bigThreeItem .deg { display: block; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.bigThreeItem .vedicLine { display: block; font-size: 13.5px; font-weight: 500; color: var(--gold-2, #F0C878); }

/* Compatibility pair */
.pairHead { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 5vw, 36px); margin: 8px 0 18px; }
.pairGlyph { display: inline-flex; padding: 12px; border: 2px solid var(--el); border-radius: 22px; background: rgba(30, 37, 84, .72); }
.scoreBadge {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid var(--gold, #D9AB4C);
  background: rgba(240, 200, 120, .1);
}
.scoreNum { font-size: 40px; font-weight: 800; line-height: 1; color: var(--gold-2, #F0C878); }
.scoreOf { font-size: 11px; color: var(--ink-muted); margin-top: -18px; }

@media (max-width: 520px) {
  .signHead { align-items: flex-start; }
  .skyFacts div { grid-template-columns: 1fr; }
  .glyphGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glyphCard { grid-template-columns: 36px 1fr; padding: 10px; }
  .glyphCard .glyph { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .westernNav a, .viewTabs a, .glyphCard { transition: none; }
}
@media (prefers-color-scheme: light) {
  html[data-theme="light"] .western {
    --ink: #1B1B2F;
    --ink-muted: #55536E;
    --line: #6C6A86;
    --card: #FFFFFF;
  }
}
