/* Sign outlooks: the pages tools/outlooks/build.ts writes to web/vedic/ and web/western/ (cd api && npm run outlooks).
   Layout from the design handoff's "Sign Outlooks". Tokens only (nocturne.css); the timeline, key dates and
   legend keep their shared classes in site.css and are only adjusted here. */

.ol { gap: clamp(40px, 6vw, 64px); padding-top: 0; }

/* ---- Top: heading, Sun / Moon / Rising switch, hint, sign picker ---- */
.ol-hero { display: flex; flex-direction: column; padding-top: var(--hero-pad); }
.ol-crumbs { margin-bottom: 14px; font-size: var(--fs-meta); color: var(--text-meta); }
.ol-crumbs a { text-decoration: none; }
.ol-crumbs-kicker { margin-bottom: 14px; }
.ol-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.ol-head h1 { margin: 0; }
.ol-hint { max-width: 60ch; margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--text-meta); }
/* Columns that divide twelve (3, 4, 6), so no sign is left alone on a row; twelve across would not fit "Sagittarius". */
.ol-signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid-dense); margin-top: 26px; }
@media (min-width: 480px) { .ol-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .ol-signs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ol-sign {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0;
  padding: 12px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm);
  color: var(--text-strong); text-decoration: none;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ol-sign:hover { transform: var(--lift); color: var(--text-strong); }
.ol-sign[aria-current="page"] { background: var(--fill-selected); box-shadow: var(--ring-selected); }
.ol-sign .icon { width: 20px; height: 20px; color: var(--text-accent); }
.ol-sign-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.ol-sign-name { font-size: 14px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.ol-sign-en { font-size: 12px; line-height: 1.2; color: var(--text-meta); }
.ol-index-more { max-width: 68ch; }

/* ---- Two columns: the sign and its ruler; the period and the houses ---- */
.ol-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px clamp(32px, 6vw, 80px); }
.ol-left { flex: 1 1 300px; min-width: 0; max-width: 420px; }
.ol-right { flex: 1.5 1 420px; min-width: 0; }
.ol-el { display: flex; align-items: center; gap: 8px; }
.ol-el .icon { width: 16px; height: 16px; color: inherit; }
.ol-sign-title { margin-top: 14px; font-size: clamp(44px, 5vw, 68px); line-height: 1; overflow-wrap: anywhere; }
.ol-sub { margin-top: 10px; font-size: 15px; color: var(--text-meta); }
.ol-ruler { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.ol-ruler .planet { width: 72px; height: 72px; }
.ol-ruler-name { margin-top: 4px; font: var(--font-heading-weight) 26px/1.2 var(--font-heading); letter-spacing: -0.02em; color: var(--text-strong); }
.ol-ruler .meta { margin-top: 4px; }
.ol-facts { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--text-body); }

.ol-period { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.ol-span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-body); }
.ol-span .btn-icon { width: 32px; min-height: 32px; padding: 0; }
.ol-step-gap { display: inline-block; width: 32px; }
.ol-kick { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.ol-when { margin-top: 6px; }
.ol-houses { list-style: none; margin: 8px 0 0; padding: 0; }
.ol-houses li { display: flex; align-items: center; gap: 14px; padding: 11px 0; background: var(--rule) no-repeat bottom / 100% 1px; }
.ol-houses .planet { width: 36px; height: 36px; }
.ol-house-what { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ol-house-name { font-size: 16px; font-weight: 500; color: var(--text-strong); }
.ol-house-where { display: flex; flex-direction: column; align-items: flex-end; flex: 0 1 auto; max-width: 48%; text-align: right; }
.ol-house-num { font-size: 16px; color: var(--text-strong); white-space: nowrap; }
.ol-interp { margin-top: 32px; }
.ol-interp .interp-passage { margin-top: 12px; color: var(--color-neutral-200); max-width: 36em; }
.ol-pending { margin-top: 10px; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--text-meta); }
.ol-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---- Timeline and key dates (shared classes in site.css) ---- */
.tl-planet { overflow: visible; }
.tl-list .planet { width: 24px; height: 24px; }
.ol-dates li { grid-template-columns: 28px 120px minmax(0, 1fr); }
.ol-dates .planet { width: 28px; height: 28px; }
.ol-dates span { color: var(--text-body); }

/* ---- The one reading prompt, after the free content ---- */
.ol-prompt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 16px 20px; border-radius: var(--radius-lg); background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-accent-700); color: var(--text-strong); text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ol-prompt:hover { transform: var(--lift-feature); box-shadow: var(--ring-selected); color: var(--text-strong); }
.ol-prompt .planet { width: 52px; height: 52px; }
.ol-prompt-text { display: flex; flex-direction: column; flex: 1 1 260px; min-width: 0; }
.ol-prompt-text .kicker { font-size: var(--fs-label); }
.ol-prompt-title { margin-top: 4px; font: var(--font-heading-weight) 22px/1.2 var(--font-heading); letter-spacing: -0.02em; color: var(--text-strong); }
.ol-prompt-sub { margin-top: 4px; font-size: 14px; color: var(--text-body); }

.ol-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; font-size: 15px; }
.ol-pager .meta { flex: 1 1 100%; }

@media (max-width: 520px) {
  .ol-dates li { grid-template-columns: 28px minmax(0, 1fr); row-gap: 2px; }
  .ol-dates li > span { grid-column: 2; }
  .ol-houses li { gap: 12px; }
  .ol-house-where { max-width: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .ol-sign, .ol-prompt { transition: none; }
  .ol-sign:hover, .ol-prompt:hover { transform: none; }
}
