/* /horoscope/ hub. Palette = the /muhurta/ hub (landing-new/muhurta-review.css): ink, soft ink, lavender panel, violet pill, deep-purple call to action.
   scripts/tests/horoscope-hub-look.test.mjs keeps the two hubs on the same tokens. */
:root {
  --hor-ink: #2d174c;
  --hor-soft: #5f5470;
  --hor-night: #2d174c;
  --hor-paper: #f8f6f2;
  --hor-panel: #ede7f6;
  --hor-line: rgba(45, 23, 76, .16);
  --hor-violet: #6d36b5;
  --hor-radius: 30px;
  /* One text inset for the hero copy, the today-signs panel and the call-to-action panel, so their text shares one left edge. */
  --hor-inset: clamp(28px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hor-paper); color: var(--hor-ink); font-family: PPNeue, Arial, sans-serif; line-height: 1.5; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--hor-violet); outline-offset: 3px; }

main { padding: 116px 24px 0; }
.hero,
.signs,
.months,
.kundali { width: min(1264px, 100%); margin-inline: auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--hor-line);
  border-radius: var(--hor-radius);
  background: var(--hor-panel);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--hor-inset); }
.eyebrow { margin: 0 0 22px; color: var(--hor-violet); font: 500 12px/1.2 Simplon, monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 8ch; margin: 0; line-height: .92; letter-spacing: -.065em; }
.intro { max-width: 470px; margin: 28px 0 34px; color: var(--hor-soft); font-size: 19px; }
/* L22: page-system's `.hero-copy > p:not(.kicker)` (0,2,1) wins over `.eyebrow` / `.intro` (0,1,0) and paints both in its grey --ink-soft on the hero panel (4.4:1); colour only, scoped to this page's hero. */
.hero .hero-copy > p.eyebrow, .hero .hero-copy > p.intro { color: var(--hor-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.today-link { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px; border-radius: 999px; background: var(--hor-violet); color: #fff; font-weight: 450; text-decoration: none; transition: background .2s; }
.today-link strong { color: var(--hor-panel); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.today-link:hover,
.today-link:focus-visible { background: var(--hor-ink); }
/* The Hindi guide stays one tap away, as a quiet outline pill that says (Hindi), same as the quiet button on /today. */
.today-link--hindi { padding: 0 22px; border: 1px solid var(--hor-ink); background: rgba(255, 255, 255, .55); color: var(--hor-ink); }
.today-link--hindi strong { color: var(--hor-ink); font-size: 14px; letter-spacing: 0; }
.today-link--hindi:hover,
.today-link--hindi:focus-visible { color: #fff; }
.today-link--hindi:hover strong,
.today-link--hindi:focus-visible strong { color: #fff; }
.hero-media { min-height: 100%; margin: 0; background: var(--hor-panel); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }

.signs,
.months { padding: clamp(56px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 42px); }
/* page-system caps `.section-head h2` at 14ch, which broke "Today's horoscope / by sign." and "Browse 2026 / by month." into two short lines. */
.section-head h2 { max-width: none; margin: 0; letter-spacing: -.055em; }
.section-head > p { max-width: 600px; margin: 18px 0 0; color: var(--hor-soft); font-size: 17px; }

.sign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sign-grid a { min-height: 140px; display: grid; grid-template-columns: 28px 1fr auto; gap: 16px; align-items: center; padding: 24px; border: 1px solid var(--hor-line); border-radius: 20px; background: rgba(255, 255, 255, .72); text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.sign-grid a:hover,
.sign-grid a:focus-visible { transform: translateY(-2px); outline: none; background: var(--hor-ink); color: #fff; }
.sign-grid i { color: var(--hor-soft); font-style: normal; font-size: 12px; }
.sign-grid span { display: flex; flex-direction: column; }
.sign-grid strong { font-size: 24px; font-weight: 520; letter-spacing: -.035em; }
.sign-grid small { margin-top: 5px; color: var(--hor-soft); font-size: 14px; }
.sign-grid a:hover small,
.sign-grid a:focus-visible small,
.sign-grid a:hover i,
.sign-grid a:focus-visible i { color: var(--hor-panel); }

.month-line,
.archive { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.month-line a,
.archive a { min-height: 52px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--hor-line); border-radius: 16px; background: rgba(255, 255, 255, .72); font-size: 14px; text-align: center; text-decoration: none; transition: background .2s, color .2s; }
.month-line a:hover,
.month-line a:focus-visible,
.archive a:hover,
.archive a:focus-visible { outline: none; background: var(--hor-ink); color: #fff; }
.month-line a:focus-visible,
.archive a:focus-visible { outline: 2px solid var(--hor-violet); outline-offset: 3px; }
.months details { margin-top: 22px; }
.months summary { width: fit-content; display: list-item; list-style-position: inside; padding: 12px 0; cursor: pointer; color: var(--hor-soft); font-size: 15px; }
.archive { margin-top: 8px; }

/* Today's horoscope by sign: the Today hub's band (heading left, links right) on the lavender panel, so the twelve signs fill the width instead of sitting under a tall empty grey panel. */
.today-signs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: var(--hor-inset); border: 1px solid var(--hor-line); border-radius: var(--hor-radius); background: var(--hor-panel); }
.today-signs .section-head { margin: 0; }
.today-signs .month-line { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.today-signs .month-line a { grid-column: span 2; }
.today-signs .month-line a:nth-last-child(-n + 2) { grid-column: span 3; }

.kundali { margin-block: clamp(24px, 3vw, 40px); padding: var(--hor-inset); border-radius: var(--hor-radius); background: var(--hor-night); color: #fff; }
.kundali h2 { max-width: 720px; margin: 0 0 20px; letter-spacing: -.055em; }
.kundali > p { max-width: 590px; margin: 0; color: var(--hor-panel); }
.kundali a { min-height: 54px; width: fit-content; display: grid; place-items: center; margin-top: 26px; padding: 0 24px; border-radius: 27px; background: #fff; color: var(--hor-night); font-weight: 450; text-decoration: none; transition: background .2s; }
.kundali a:hover,
.kundali a:focus-visible { background: var(--hor-panel); }
.kundali a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
  main { padding-top: 96px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; }
  .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-signs { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  main { padding: 84px 12px 0; }
  .hero { min-height: 0; border-radius: 22px; }
  .intro { font-size: 17px; }
  .hero-media { min-height: 290px; }
  .signs,
  .months { padding: 48px 0 20px; }
  .today-signs { padding: var(--hor-inset); }
  .sign-grid { grid-template-columns: 1fr; }
  .sign-grid a { min-height: 100px; padding: 20px; }
  .month-line,
  .archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-signs,
  .kundali { border-radius: 22px; }
  .today-signs .month-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .today-signs .month-line a,
  .today-signs .month-line a:nth-last-child(-n + 2) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .sign-grid a:hover, .sign-grid a:focus-visible { transform: none; }
}
