/* components.css — tokenized add-ons layered on style.css (generated-shell elements:
   breadcrumb, byline, ad slot, related strip, footer links + disclosure, consent banner).
   Uses the existing design tokens from style.css (:root). */

/* Breadcrumb */
.breadcrumb {
    max-width: var(--max-w);
    margin: 22px auto 0;
    padding: 0 24px;
    font-size: 0.82rem;
    color: var(--slate);
    letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--saddle); }
.breadcrumb span { color: var(--ink); }

/* Article byline */
.article-byline {
    max-width: var(--max-w);
    margin: 10px auto 0;
    padding: 0 24px;
    font-size: 0.9rem;
    color: var(--slate);
}
.article-byline a { color: var(--saddle); text-decoration: none; font-weight: 600; }
.article-byline a:hover { text-decoration: underline; }

/* In-content ad slot (only rendered on content pages when AdSense is enabled) */
.ad-slot {
    max-width: var(--max-w);
    margin: 36px auto;
    padding: 0 24px;
    text-align: center;
}
.ad-slot::before {
    content: "Advertisement";
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 8px;
}
.ad-slot ins { display: block; }

/* Related articles strip */
.related-strip {
    max-width: var(--max-w-wide);
    margin: 56px auto 0;
    padding: 36px 24px 0;
    border-top: 1px solid var(--border);
}
.related-strip h2 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: var(--ink);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.related-card {
    display: block;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease;
}
.related-card:hover { border-color: var(--saddle); }
.related-card .tag { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--saddle); }
.related-card h3 { font-size: 0.98rem; margin-top: 6px; line-height: 1.3; }

/* Footer additions */
.footer-links {
    margin-bottom: 10px;
}
.footer-links a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.85rem;
    opacity: 0.85;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-disclosure {
    max-width: 640px;
    margin: 12px auto 0;
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* Consent banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ink);
    color: #f3efe8;
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.45;
}
.consent-banner.show { display: flex; }
.consent-banner p { max-width: 720px; margin: 0; }
.consent-banner a { color: #e8c9a8; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn {
    border: none;
    border-radius: 5px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.consent-accept { background: var(--saddle); color: #fff; }
.consent-accept:hover { background: var(--saddle-hover); }
.consent-decline { background: transparent; color: #cfc7ba; border: 1px solid #574f44; }
