/* Public lookup pages: sign compatibility, Saturn return calculator,
   retrograde calendar. Matches the blog's night-sky palette. */

.main-content.lookup-main,
.lookup-page {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: rgba(224, 224, 224, 0.88);
}

.lookup-hero {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px 28px;
    text-align: center;
}

.lookup-breadcrumbs {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lookup-breadcrumbs a {
    color: rgba(212, 175, 55, 0.75);
    text-decoration: none;
}

.lookup-breadcrumbs a:hover,
.lookup-breadcrumbs a:focus-visible { color: #d4af37; text-decoration: underline; }

.lookup-breadcrumbs span[aria-current] { color: rgba(224, 224, 224, 0.6); }

.lookup-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 14px;
}

.lookup-hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(26px, 4.5vw, 44px);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(138, 43, 226, 0.5);
    line-height: 1.25;
    margin-bottom: 18px;
}

.lookup-lede {
    font-size: clamp(17px, 2.1vw, 21px);
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.8);
    max-width: 680px;
    margin: 0 auto;
}

.lookup-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 24px 16px;
    font-size: 18px;
    line-height: 1.8;
}

.lookup-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: #d4af37;
    margin: 40px 0 16px;
    letter-spacing: 0.5px;
}

.lookup-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    color: rgba(212, 175, 55, 0.9);
    margin: 26px 0 10px;
}

.lookup-body p { margin-bottom: 18px; }

.lookup-body a { color: #d4af37; text-underline-offset: 3px; }

.lookup-card {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.25), rgba(25, 25, 112, 0.25));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 0 24px;
}

.lookup-card-highlight {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 8px 30px rgba(123, 47, 190, 0.35);
}

/* Fact table ("at a glance") and date tables. */
.lookup-table-wrap {
    overflow-x: auto;
    margin: 0 0 28px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.lookup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5;
    font-variant-numeric: lining-nums tabular-nums;
}

.lookup-table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 14px 8px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(212, 175, 55, 0.9);
}

.lookup-table th,
.lookup-table td {
    padding: 9px 14px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.lookup-table thead th {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(224, 224, 224, 0.75);
}

.lookup-table td time { white-space: nowrap; }

.lookup-table tbody th {
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
}

.lookup-table tr.is-now td,
.lookup-table tr.is-now th,
.lookup-table tr.is-next td,
.lookup-table tr.is-next th {
    background: rgba(212, 175, 55, 0.08);
}

.lookup-table tr.is-past td,
.lookup-table tr.is-past th { color: rgba(224, 224, 224, 0.55); }

.lookup-badge {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #f1d77a;
    white-space: nowrap;
}

.lookup-badge-past {
    border-color: rgba(224, 224, 224, 0.25);
    color: rgba(224, 224, 224, 0.6);
}

/* Index: sign picker and pair grid. */
.lookup-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    justify-content: center;
}

.lookup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.lookup-field label {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(224, 224, 224, 0.85);
}

.lookup-field select,
.lookup-field input {
    min-height: 44px;
    min-width: 180px;
    padding: 8px 12px;
    font-size: 17px;
    font-family: inherit;
    color: #f4f4f4;
    background: rgba(10, 10, 35, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    color-scheme: dark;
}

.lookup-field select:focus-visible,
.lookup-field input:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.7);
    outline-offset: 2px;
}

.lookup-field-error input { border-color: #ff8a8a; }

.lookup-error {
    color: #ffb4b4;
    font-size: 16px;
    margin-top: 10px;
}

.lookup-button,
.lookup-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7b2fbe 0%, #4b0082 100%);
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(123, 47, 190, 0.5);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.lookup-button:hover,
.lookup-cta-btn:hover,
.lookup-button:focus-visible,
.lookup-cta-btn:focus-visible {
    background: linear-gradient(135deg, #9b3fd8 0%, #6a0dad 100%);
    box-shadow: 0 8px 30px rgba(123, 47, 190, 0.7), 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.lookup-cta-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lookup-sign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 24px 40px;
}

.lookup-sign-card h3 {
    margin-top: 0;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 4px;
}

.lookup-sign-meta {
    font-size: 15px;
    color: rgba(224, 224, 224, 0.65);
    margin-bottom: 12px;
}

.lookup-pair-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.lookup-pair-list a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 3px 10px;
    font-size: 15px;
    color: #e8e8e8;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    text-decoration: none;
}

.lookup-pair-list a:hover,
.lookup-pair-list a:focus-visible {
    border-color: #d4af37;
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

/* Closing CTA card. */
.lookup-cta {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 24px 72px;
}

.lookup-cta-card {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.35), rgba(25, 25, 112, 0.35));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    padding: 40px 32px;
    text-align: center;
}

.lookup-cta-card h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(20px, 3.4vw, 28px);
    color: #ffffff;
    margin-bottom: 12px;
}

.lookup-cta-card p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.78);
    margin-bottom: 22px;
}

.lookup-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
}

.lookup-related ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 18px;
}

.lookup-related li a { font-size: 16px; }

.lookup-faq dt {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: #e8e8e8;
    margin: 18px 0 6px;
}

.lookup-faq dd { margin: 0 0 8px; }

.lookup-note {
    font-size: 15px;
    color: rgba(224, 224, 224, 0.62);
}

@media (max-width: 600px) {
    .lookup-hero { padding: 40px 16px 20px; }
    .lookup-body, .lookup-cta { padding-left: 16px; padding-right: 16px; }
    .lookup-sign-grid { grid-template-columns: 1fr; padding: 8px 16px 32px; }
    .lookup-field select, .lookup-field input { min-width: 0; width: 100%; }
    .lookup-picker .lookup-field { width: 100%; }
    .lookup-cta-card { padding: 30px 18px; }
}
