/* AffiliateCountry.com - cleaned network stylesheet */

:root {
    --ink: #1e2528;
    --muted: #68747a;
    --rule: #d8e0e3;
    --paper: #ffffff;
    --soft: #f4f7f8;
    --accent: #f3a831;
    --accent-dark: #1a3858;
    --navy: #1a3858;
    --gold: #f3a831;
    --black: #101719;
    --max: 1180px;
    --content: 820px;
    --sidebar: 300px;
    --gap: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.68;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--navy);
}

.shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

/* Utility bar */

.utility-bar {
    background: var(--navy);
    color: #ffffff;
    border-bottom: 3px solid var(--gold);
    font: 700 0.78rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
}

.utility-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.utility-bar a {
    color: #ffffff;
    text-decoration: none;
}

.utility-bar img {
    display: none;
}

/* Main masthead and centered logo */

.masthead {
    padding: 28px 0 16px;
    text-align: center;
    border-bottom: 4px double var(--navy);
}

.masthead > a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.site-title {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
}

.site-title img {
    display: block;
    width: min(700px, 88vw);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: min(500px, 90vw);
    height: auto;
    margin: 0 auto;
}

.masthead .tagline {
    margin: 14px auto 0;
    max-width: 760px;
    color: var(--navy);
    font: 800 clamp(0.95rem, 2vw, 1.18rem)/1.45 Arial, Helvetica, sans-serif;
}

.section-nav {
    margin-top: 18px;
    padding: 11px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: center;
    gap: 8px 24px;
    flex-wrap: wrap;
    font: 800 0.72rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-nav a {
    color: var(--ink);
    text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus {
    color: var(--navy);
}

/* Article header */

.article-header {
    padding: 34px 0 24px;
    border-bottom: 1px solid var(--rule);
}

.breadcrumb {
    margin: 0 0 12px;
    color: var(--muted);
    font: 700 0.72rem/1.4 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.article-category {
    margin: 0 0 8px;
    color: var(--navy);
    font: 800 0.78rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-header h1 {
    margin: 0 0 14px;
    max-width: 980px;
    color: var(--ink);
    font: 800 clamp(2.2rem, 5vw, 4.35rem)/1 Arial, Helvetica, sans-serif;
    letter-spacing: -0.04em;
}

.article-deck {
    max-width: 900px;
    margin: 0 0 16px;
    color: #3d474a;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.55;
}

.article-meta {
    margin: 0;
    color: var(--muted);
    font: 700 0.75rem/1.5 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.affiliate-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    font-style: italic;
}

/* Article layout */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--content)) var(--sidebar);
    gap: var(--gap);
    align-items: start;
    padding: 30px 0 46px;
}

.article-feature {
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--soft);
}

.article-feature img {
    width: 100%;
    height: auto;
}

.article-body {
    font-family: Georgia, "Times New Roman", serif;
}

.article-body p {
    margin: 0 0 1.08em;
    font-size: 1.075rem;
}

.article-body h2 {
    margin: 1.4em 0 0.5em;
    color: var(--navy);
    font: 800 clamp(1.55rem, 3.4vw, 2.25rem)/1.1 Arial, Helvetica, sans-serif;
}

.article-body h3 {
    margin: 1.25em 0 0.4em;
    color: var(--navy);
    font: 800 1.35rem/1.2 Arial, Helvetica, sans-serif;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.2em 1.4em;
    padding: 0;
}

.article-body li {
    margin-bottom: 0.45em;
    font-size: 1.04rem;
}

.article-body blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--gold);
    background: var(--soft);
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.94rem;
}

.article-body th,
.article-body td {
    border: 1px solid var(--rule);
    padding: 10px;
    vertical-align: top;
    text-align: left;
}

/* Sidebar */

.ad-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
}

.ad-slot {
    padding: 18px;
    border: 1px solid var(--rule);
    background: var(--soft);
}

.ad-label {
    margin: 0 0 8px;
    color: var(--muted);
    font: 700 0.66rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-box {
    min-height: 170px;
    display: grid;
    place-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #aab5b8;
    color: var(--muted);
    font-size: 0.8rem;
}

.ad-box img {
    max-width: 100%;
    height: auto;
}

.ad-slot h4 {
    margin: 14px 0 6px;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-top: 8px;
    padding: 0 14px;
    background: var(--navy);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.button:hover,
.button:focus {
    background: #102b47;
}

.disclosure {
    font-size: 0.72rem;
    color: var(--muted);
}

/* Related content */

.related {
    border-top: 1px solid var(--rule);
    padding: 28px 0 40px;
}

.related h2 {
    font: 800 1.5rem/1.2 Arial, Helvetica, sans-serif;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    padding: 16px;
    border: 1px solid var(--rule);
    background: var(--soft);
}

.related-card a {
    font-weight: 800;
    text-decoration: none;
}

/* Homepage and archives */

.home-intro {
    padding: 34px 0 24px;
    border-bottom: 1px solid var(--rule);
}

.home-intro h1 {
    margin: 0.2em 0;
    font: 900 clamp(2rem, 5vw, 4rem)/1 Arial, Helvetica, sans-serif;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 28px 0;
}

.story-card {
    padding: 18px;
    border: 1px solid var(--rule);
    background: var(--soft);
}

.story-card h2,
.story-card h3 {
    margin: 0.3em 0;
    font-family: Arial, Helvetica, sans-serif;
}

.story-label {
    color: var(--navy);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.archive-list {
    display: grid;
    gap: 14px;
    padding: 28px 0;
}

.archive-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.archive-item h2 {
    margin: 0 0 6px;
    font: 800 1.35rem/1.2 Arial, Helvetica, sans-serif;
}

.archive-item p {
    margin: 0;
}

.section-summary {
    padding: 0 0 42px;
}

.section-summary h2 {
    font: 800 1.5rem/1.2 Arial, Helvetica, sans-serif;
}

.section-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 0;
    list-style: none;
}

.section-list a {
    font-weight: 800;
    text-decoration: none;
}

.site-count {
    color: var(--muted);
    font-weight: 700;
}

/* Legal pages */

.legal-page {
    max-width: 900px;
    padding: 38px 0 52px;
}

.legal-page h1 {
    margin: 0 0 20px;
    font: 900 clamp(2rem, 5vw, 3.5rem)/1.05 Arial, Helvetica, sans-serif;
    letter-spacing: -0.035em;
}

.legal-page p {
    font-size: 1.05rem;
    line-height: 1.72;
}

/* Footer */

.site-footer {
    margin-top: 20px;
    background: var(--navy);
    color: #dfe7e9;
    padding: 28px 0;
    border-top: 4px solid var(--gold);
}

.site-footer a {
    color: #ffffff;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    font: 700 0.74rem/1.4 Arial, Helvetica, sans-serif;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-grid,
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-title img {
        width: min(620px, 90vw);
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(var(--max), calc(100% - 22px));
    }

    .utility-inner {
        justify-content: center;
        text-align: center;
    }

    .masthead {
        padding-top: 20px;
    }

    .site-title img {
        width: min(500px, 94vw);
    }

    .article-header h1 {
        font-size: 2.25rem;
    }

    .ad-sidebar,
    .related-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: center;
    }
}