/*
 * Styles shared by two or more public pages.
 *
 * Load this file after the vendor stylesheets (Bootstrap, DataTables, highlight.js)
 * and before the page's own <style> block, using {{template "common_public_css"}}.
 * Rules used by a single page, and page-specific overrides, stay in that page's <style>.
 */

/* ===== Page hero ===== */
.hero-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}
.hero-section p {
    font-size: 1.25rem;
}
.daily-lists-hero {
    padding: 64px 0;
    background: #f8f9fa;
}
.datasets-hero,
.history-hero {
    padding: 72px 0;
    background: #f8f9fa;
}
.enterprise-hero,
.usecase-hero {
    padding: 72px 0;
    background: #f8f9fa;
    text-align: center;
}
.hero-section h1,
.daily-lists-hero h1,
.datasets-hero h1,
.enterprise-hero h1,
.history-hero h1,
.usecase-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
}

/* ===== Landing page sections (home, zone) ===== */
.allzf-section {
    padding: 64px 0;
    scroll-margin-top: 24px;
}
.home-section-nav,
.zone-section-nav {
    overflow-x: auto;
    white-space: nowrap;
}
.home-section-nav a,
.zone-section-nav a {
    display: inline-block;
    padding: 16px 12px;
}
.home-skip,
.zone-skip {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 1100;
}
.home-skip:focus,
.zone-skip:focus {
    top: 12px;
}
.home-code,
.zone-code {
    background: #132238;
    color: #e8eef7;
    padding: 24px;
    border-radius: 12px;
    font-size: .85rem;
    line-height: 1.7;
    overflow-x: auto;
}
.home-code code.hljs,
.zone-code code.hljs {
    display: inline;
    padding: 0;
    background: transparent;
}

/* ===== Cards ===== */
.allzf-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

/* ===== Text columns ===== */
.about-section,
.main-section {
    max-width: 60%;
    margin: 0 auto;
}
.allzf-copy {
    max-width: 780px;
}
.enterprise-copy,
.history-copy {
    max-width: 820px;
    margin-inline: auto;
}

/* ===== Statistics ===== */
.hero-stat,
.home-stat,
.zone-stat {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0d6efd;
}
.stats-chart,
.zone-chart {
    width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}
.home-stats-table,
.stats-table,
.zone-stats-table {
    max-height: 440px;
    overflow-y: auto;
}
.home-stats-table thead th,
.stats-table thead th,
.zone-stats-table thead th {
    position: sticky;
    top: 0;
}

/* ===== FAQ ===== */
.allzf-faq details {
    padding: 18px 0;
    border-bottom: 1px solid #dee2e6;
}
.allzf-faq summary {
    cursor: pointer;
    font-weight: 600;
}
.allzf-faq details p {
    margin-top: 12px;
}

/* ===== Table of contents ===== */
.toc-item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: .88rem;
    color: #212529;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.toc-item a:hover {
    background: rgba(13, 110, 253, .07);
    color: #0d6efd;
}
.toc-num {
    font-family: monospace;
    font-size: .72rem;
    font-weight: 700;
    color: #0d6efd;
    background: rgba(13, 110, 253, .08);
    padding: 1px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===== Pricing ===== */
.pricing-card {
    max-width: 460px;
    margin: 0 auto;
}
.pricing-card.featured {
    border: 2px solid #0d6efd !important;
    position: relative;
}
.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 4px 18px;
    border-radius: 20px;
    white-space: nowrap;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    text-align: left;
}
.check-item i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Articles ===== */
.blockquote-footer {
    margin-top: .5rem !important; /* remove Bootstrap's negative margin */
    display: block;               /* ensure it sits on its own line */
}
table.comparison-table td,
table.comparison-table th {
    vertical-align: middle;
}
.badge-soft {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    font-weight: 500;
}
.red-icon {
    color: red;
}

/* ===== AI analysis blocks (zone pages) ===== */
.ai-analysis {
    border-left: 3px solid #0d6efd;
    background: rgba(13, 110, 253, .04);
    border-radius: 0 8px 8px 0;
    padding: 14px 20px;
}
.ai-analysis .ai-analysis-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-analysis ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}
.ai-analysis li {
    font-size: .92rem;
    color: #343a40;
    margin-bottom: 6px;
}
.ai-analysis li:last-child {
    margin-bottom: 0;
}

/* ===== Blog listings ===== */
.section-articles {
    list-style: none;
    padding-left: 0;
}
.section-articles li {
    padding: .75rem 0;
    border-bottom: 1px solid #f0f2f5;
}
.section-articles li:last-child {
    border-bottom: none;
}
.article-summary {
    color: #6c757d;
    font-size: .875rem;
    margin-top: .2rem;
}

/* ===== Legal pages ===== */
.legal-section {
    width: 100%;
    max-width: 900px;
}
.legal-section h1 {
    font-weight: 600;
}
.legal-section h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
}
.legal-section li {
    margin-bottom: .6rem;
}

/* ===== Auth pages ===== */
.signup-container {
    max-width: 700px;
    margin: 80px auto;
    padding: 30px;
}
.btn-google {
    color: #545454;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 1px #ddd;
}
.btn-google:hover {
    background-color: #f1f1f1;
}

/* ===== Zone directory pages (domain extensions A-Z, by country) ===== */
.directory-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
    white-space: nowrap;
}
.directory-nav a {
    display: inline-block;
    padding: 12px 8px;
    font-weight: 600;
    text-decoration: none;
}
.directory-nav a:hover {
    text-decoration: underline;
}
.directory-section {
    padding-top: 40px;
    scroll-margin-top: 48px;
}
.directory-copy {
    max-width: 780px;
}
.hero-section p.directory-source {
    font-size: .875rem;
}
.directory-zones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 6px 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-wrap: anywhere;
}
.directory-zones li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.directory-zone-qty {
    flex: none;
    font-variant-numeric: tabular-nums;
}
.directory-zones a,
.directory-country-zones a {
    text-decoration: none;
}
.directory-zones a:hover,
.directory-country-zones a:hover {
    text-decoration: underline;
}
.directory-country-zones > * {
    display: inline-block;
    margin-right: 12px;
}
