:root { color-scheme: light; font: 15px/1.5 system-ui, sans-serif; color: #242b2a; background: #f6f7f8; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
.public-header { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid #dce1e2; font-weight: 650; }
.public-header img { object-fit: contain; }
main { max-width: 1280px; padding: 24px; margin: auto; }
h2 { font-size: 28px; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 12px; }
h4 { margin: 0; font-size: 16px; }
p { margin: 8px 0; }
.section-hero { padding-bottom: 18px; }
.section-hero h3 { font-size: 16px; font-weight: 400; }
.topbar-kicker, .ephemeris-report-kicker { color: #526a65; font-size: 12px; font-weight: 600; }
.card { padding: 22px 0; border-top: 1px solid #dce1e2; }
.card .card { border: 0; padding: 0; }
.ephemeris-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
button, input, select, .button-link { font: inherit; min-height: 42px; border-radius: 6px; border: 1px solid #b6c4c0; padding: 8px 12px; max-width: 100%; }
input, select { background: #fff; color: #242b2a; min-width: 0; }
button, .button-link { background: #166653; color: #fff; cursor: pointer; text-decoration: none; }
button:hover, .button-link:hover { background: #104c3e; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #a24718; outline-offset: 3px; }
.secondary-btn { color: #713c32; background: #fff; }
.ephemeris-note { color: #596362; font-size: 14px; }
.ephemeris-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ephemeris-summary-card span { display: block; color: #596362; font-size: 13px; }
.ephemeris-sequence-table { overflow-x: auto; margin-top: 18px; }
.ephemeris-sequence-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; font-size: 13px; }
.ephemeris-table { width: 100%; border-collapse: collapse; white-space: nowrap; background: #fff; }
.ephemeris-table th, .ephemeris-table td { text-align: left; padding: 10px; border: 1px solid #dce1e2; font-size: 13px; }
.ephemeris-table th { background: #e9efed; }
.planet-timeline-button-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.planet-timeline-button { text-align: left; background: #fff; color: #242b2a; }
.planet-timeline-button:hover { background: #e9efed; }
.planet-timeline-button strong, .planet-timeline-button span { display: block; }
.planet-timeline-button span { font-size: 13px; color: #596362; }
.transit-finder-rows { display: grid; gap: 12px; }
.transit-finder-row { display: grid; grid-template-columns: 28px repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: center; }
.transit-finder-index { text-align: center; font-weight: 600; }
.file-item { padding: 10px 0; border-bottom: 1px solid #dce1e2; }
.rashi-pill { display: inline-block; padding: 2px 6px; border-radius: 4px; }
.rashi-pill.green { color: #165c43; background: #e1f2e7; }
.rashi-pill.red { color: #953d43; background: #f8e7e8; }
.popup { position: fixed; inset: 0; z-index: 10; background: #111b2280; display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup-box { width: 720px; max-width: 100%; max-height: 90dvh; overflow: auto; background: #fff; padding: 24px; border-radius: 8px; }
.planet-timeline-popup-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hidden, [hidden] { display: none !important; }
@media (max-width: 650px) {
  main { padding: 16px; }
  .planet-timeline-button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transit-finder-row { grid-template-columns: 28px minmax(0, 1fr); }
  .transit-finder-row > :nth-child(n+3) { grid-column: 2; }
  .popup { padding: 12px; }
  .popup-box { padding: 16px; }
}
