/* Rapid City Gazette — honest aggregator rebuild, 2026-07 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1a2744;
    --navy-dark: #121c33;
    --red: #d7263d;
    --paper: #f7f6f2;
    --card: #ffffff;
    --ink: #1c1c1c;
    --ink-dim: #565656;
    --ink-faint: #8a8a8a;
    --rule: #dcdad2;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif;
}

html { overflow-x: clip; scroll-behavior: smooth; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
}

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

/* ---------------- Masthead ---------------- */
.masthead {
    background: var(--navy);
    border-bottom: 4px solid var(--red);
    padding: 18px 0 0;
}

.masthead-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 16px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    flex-wrap: wrap;
}

.masthead-logo img { height: 64px; width: auto; display: block; }

.masthead-title h1 {
    color: #fff;
    font-size: 2rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}

.masthead-title .tagline {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: #b0bfd8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.masthead-nav {
    background: rgba(0, 0, 0, 0.25);
}

.masthead-nav ul {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 8px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.masthead-nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: #ccd6f6;
    font-family: var(--sans);
    font-size: 0.78rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.masthead-nav li a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------------- Aggregator notice ---------------- */
.agg-notice {
    background: #fdf4e3;
    border-bottom: 1px solid #e8ddc4;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: #6b5b32;
    text-align: center;
    padding: 8px 16px;
}

.agg-notice a { color: #6b5b32; }

/* ---------------- Layout ---------------- */
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 16px; }

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    max-width: 1150px;
    margin: 28px auto 0;
    padding: 0 16px;
}

.main-layout > * { min-width: 0; }

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

/* ---------------- Sections ---------------- */
.feed-section { margin-bottom: 40px; }

.feed-section h2,
.sidebar-widget h3,
.page h2 {
    font-size: 1.35rem;
    color: var(--navy);
    border-bottom: 3px solid var(--red);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.feed-credit {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: block;
}

.feed-list { list-style: none; }

.feed-list li {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.feed-list li a {
    font-size: 1.02rem;
    font-weight: bold;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.35;
    display: block;
}

.feed-list li a:hover { color: var(--red); text-decoration: underline; }

.feed-meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-top: 5px;
    display: block;
}

.feed-status {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-dim);
    background: var(--card);
    border: 1px dashed var(--rule);
    border-radius: 4px;
    padding: 14px 16px;
}

.feed-status a { color: var(--navy); font-weight: bold; }

/* ---------------- Sidebar ---------------- */
.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.sidebar-widget h3 { font-size: 1rem; margin-bottom: 4px; }

.sidebar-widget .feed-credit { margin-bottom: 10px; }

.wx-list { list-style: none; }

.wx-list li {
    border-bottom: 1px solid #efede7;
    padding: 8px 0;
    font-size: 0.88rem;
}

.wx-list li:last-child { border-bottom: none; }

.wx-name { font-family: var(--sans); font-weight: bold; font-size: 0.78rem; color: var(--navy); display: block; }

.wx-temp { color: var(--red); font-weight: bold; }

.source-list { list-style: none; }

.source-list li {
    border-bottom: 1px solid #efede7;
    padding: 8px 0;
    font-size: 0.88rem;
    font-family: var(--sans);
}

.source-list li:last-child { border-bottom: none; }

.source-list .src-note { display: block; font-size: 0.72rem; color: var(--ink-faint); }

/* ---------------- Ads ---------------- */
.ad-unit {
    margin: 24px 0;
    padding: 12px 0;
    border-top: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
    text-align: center;
    overflow: hidden;
    min-height: 120px;
}

.ad-unit ins.adsbygoogle { max-width: 100%; }

.ad-label {
    font-family: var(--sans);
    font-size: 0.62rem;
    color: var(--ink-faint);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ---------------- Support ---------------- */
.support-module {
    background: var(--card);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--red);
    border-radius: 4px;
    padding: 22px;
    margin: 32px 0;
    text-align: center;
}

.support-module h3 { color: var(--navy); margin-bottom: 8px; }

.support-module p { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 16px; }

.pp-BPYVX5XFD6Z2G {
    text-align: center; border: none; border-radius: 0.25rem;
    min-width: 11.625rem; padding: 0 2rem; height: 2.625rem;
    font-weight: bold; background-color: #FFD140; color: #000;
    font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1rem;
    line-height: 1.25rem; cursor: pointer;
}

/* ---------------- Static pages ---------------- */
.page {
    max-width: 780px;
    margin: 32px auto;
    padding: 0 16px;
}

.page h1 { color: var(--navy); font-size: 1.9rem; margin-bottom: 6px; }

.page h2 { margin-top: 36px; margin-bottom: 14px; }

.page p, .page li { margin-bottom: 16px; color: var(--ink); }

.page ul { padding-left: 22px; }

.page .updated {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-bottom: 24px;
    display: block;
}

.plain-box {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 18px 20px;
    margin: 20px 0;
    font-family: var(--sans);
    font-size: 0.9rem;
}

/* ---------------- Footer ---------------- */
footer {
    background: var(--navy);
    color: #b0bfd8;
    padding: 2.2rem 16px;
    margin-top: 3rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    text-align: center;
}

footer a { color: #ccd6f6; }
footer a:hover { color: #fff; }

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    margin-bottom: 12px;
}

footer p { margin: 6px auto; max-width: 820px; line-height: 1.55; }

.footer-fine { color: #7f8db0; font-size: 0.75rem; }

/* ---------------- Cookie banner ---------------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #26262b;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    z-index: 9999;
    font-family: var(--sans);
    font-size: 0.82rem;
    display: none;
}

#cookie-banner button {
    margin-left: 12px;
    padding: 8px 16px;
    min-height: 36px;
    background: var(--red);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.82rem;
}

@media (max-width: 600px) {
    .masthead-title h1 { font-size: 1.5rem; }
    .masthead-logo img { height: 48px; }
    .masthead-nav li a { padding: 0 10px; font-size: 0.72rem; }
}
