/* FooterWidget — shared Navigator footer (footer-widget.js): newsletter
   signup + attribution. Loaded by both products; var() fallbacks keep it
   identical on either stylesheet's tokens. */

.footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border, rgba(55, 65, 81, 0.12));
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
}

.footer a {
    color: var(--blue, #2451c9);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-attribution {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    padding: 16px 0 4px;
    line-height: 1.6;
}

/* Newsletter Box */
.newsletter-box {
    max-width: 480px;
    margin: 0 auto;
    padding: 4px 0 8px;
    text-align: center;
}

.newsletter-header {
    margin-bottom: 16px;
}

.newsletter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #374151);
    margin-bottom: 4px;
}

.newsletter-subtitle {
    font-size: 13px;
    color: var(--text-light, #6b7280);
    margin: 0;
    line-height: 1.5;
}

/* Toggle pills */
.newsletter-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.newsletter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-light, #6b7280);
    background: transparent;
    border: 1px solid var(--border, rgba(55, 65, 81, 0.12));
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-toggle:hover {
    border-color: var(--gold-border, rgba(236, 187, 45, 0.38));
}

.newsletter-toggle.selected {
    color: var(--text, #374151);
    background: var(--gold-soft, rgba(236, 187, 45, 0.14));
    border-color: var(--gold-border, rgba(236, 187, 45, 0.38));
}

.newsletter-toggle-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border, rgba(55, 65, 81, 0.12));
    color: transparent;
    transition: all 0.2s ease;
}

.newsletter-toggle.selected .newsletter-toggle-check {
    background: var(--gold, #ecbb2d);
    border-color: var(--gold, #ecbb2d);
    color: white;
    transform: scale(1);
    animation: checkPop 0.2s ease;
}

@keyframes checkPop {
    0% { transform: scale(0.8); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Newsletter form */
.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-row {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text, #374151);
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(55, 65, 81, 0.12));
    border-radius: 8px;
    box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted, #9ca3af);
}

.newsletter-input:focus {
    border-color: var(--gold-border, rgba(236, 187, 45, 0.38));
    box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.04)), 0 0 0 3px var(--gold-soft, rgba(236, 187, 45, 0.14));
}

.newsletter-submit {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--blue, #2451c9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.newsletter-submit:hover:not(:disabled) {
    background: var(--blue-deep, #1a3d9e);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Newsletter error */
.newsletter-error {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--error, #b42318);
    background: var(--error-bg, rgba(220, 38, 38, 0.06));
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    text-align: left;
}

/* Newsletter success */
.newsletter-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #16a34a;
}

