/* =============================================
   MIDWEST TENANT ADVISOR — GHOST THEME v2
   ============================================= */

:root {
    --navy: #1a2744;
    --red: #c8202f;
    --gold: #b8a06a;
    --light: #f7f6f2;
    --white: #ffffff;
    --gray: #666;
    --border: #e5e2d9;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Source Sans 3', system-ui, sans-serif;
    --max-w: 1200px;
    --content-w: 720px;
}

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

html { font-size: 16px; }

body {
    font-family: var(--sans);
    font-weight: 400;
    color: #1a1a1a;
    background: var(--white);
    line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---- SITE WRAPPER ---- */
.gh-site { display: flex; flex-direction: column; min-height: 100vh; }

/* ---- HEADER ---- */
.gh-head {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.gh-head-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.gh-head-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark {
    width: 40px; height: 40px;
    background: var(--red);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.logo-title {
    display: block;
    color: #fff;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}
.logo-sub {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gh-head-menu { display: flex; align-items: center; gap: 4px; }
.gh-head-menu .nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    text-decoration: none;
}
.gh-head-menu .nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.gh-head-cta {
    background: var(--red);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
}
.gh-head-cta:hover { background: #a51824; text-decoration: none; }

/* ---- MAIN ---- */
.gh-main { flex: 1; }

/* ---- HERO ---- */
.gh-hero {
    background: var(--navy);
    padding: 64px 24px;
    text-align: center;
}
.gh-hero-inner { max-width: 680px; margin: 0 auto; }
.gh-hero-eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.gh-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.gh-hero h1 span { color: var(--gold); }
.gh-hero-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- LAYOUT ---- */
.gh-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* ---- FEED ---- */
.gh-feed-header { margin-bottom: 32px; border-bottom: 2px solid var(--navy); padding-bottom: 16px; }
.gh-feed-title { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); font-weight: 700; }
.gh-feed-subtitle { color: var(--gray); font-size: 0.85rem; margin-top: 4px; }

.gh-post-featured {
    background: var(--light);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    border-left: 4px solid var(--red);
}
.gh-post-meta, .gh-post-list-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gray); margin-bottom: 12px; }
.gh-meta-dot { color: var(--border); }
.gh-post-title { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); line-height: 1.3; margin-bottom: 12px; }
.gh-post-title-link { text-decoration: none; color: inherit; }
.gh-post-title-link:hover .gh-post-title { color: var(--red); }
.gh-post-excerpt { color: #444; line-height: 1.7; margin-bottom: 16px; }
.gh-read-more { color: var(--red); font-weight: 600; font-size: 0.9rem; }
.gh-read-more:hover { text-decoration: underline; }

.gh-post-list-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.gh-post-list-thumb {
    width: 80px; height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--light);
}
.gh-post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gh-post-list-thumb-placeholder { width: 100%; height: 100%; background: var(--navy); }
.gh-post-tag {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    text-decoration: none;
}
.gh-post-list-title {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    text-decoration: none;
}
.gh-post-list-title:hover { color: var(--red); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 12px; padding: 32px 0 0; }
.pagination a {
    background: var(--navy); color: #fff;
    padding: 8px 20px; border-radius: 4px; font-size: 0.875rem;
    text-decoration: none;
}
.pagination a:hover { background: var(--red); }

/* ---- ARTICLE ---- */
.gh-article { min-width: 0; }
.gh-article-header { margin-bottom: 32px; }
.gh-article-tag {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 16px;
    text-decoration: none;
}
.gh-article-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 16px;
}
.gh-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
}
.gh-article-excerpt {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 16px;
}
.gh-article-image {
    margin: 0 0 40px;
    border-radius: 8px;
    overflow: hidden;
}
.gh-article-image img { width: 100%; height: auto; }

/* ---- CONTENT ---- */
.gh-content { font-size: 1.05rem; line-height: 1.8; color: #222; }
.gh-content h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.gh-content h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin: 32px 0 12px; }
.gh-content p { margin-bottom: 20px; }
.gh-content strong { color: var(--navy); }
.gh-content em { font-style: italic; }
.gh-content a { color: var(--red); }
.gh-content a:hover { text-decoration: underline; }
.gh-content ul, .gh-content ol { margin: 0 0 20px 24px; }
.gh-content li { margin-bottom: 8px; }
.gh-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--light);
    font-style: italic;
    color: #444;
}

/* ---- ARTICLE FOOTER ---- */
.gh-article-footer { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.gh-author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--navy);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.gh-author-photo {
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}
.gh-author-photo img { width: 100%; height: 100%; object-fit: cover; }
.gh-author-name { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.gh-author-title { color: var(--gold); font-size: 0.8rem; margin-bottom: 6px; }
.gh-author-email { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-decoration: none; }
.gh-author-email:hover { color: #fff; }
.gh-post-cta {
    background: var(--light);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.gh-post-cta a { font-weight: 600; }
.gh-post-tags { font-size: 0.8rem; color: var(--gray); }

/* ---- SIDEBAR ---- */
.gh-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }

.gh-team-card {
    background: var(--navy);
    border-radius: 8px;
    overflow: hidden;
}
.gh-team-header {
    background: rgba(0,0,0,0.2);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gh-team-header h3 { color: #fff; font-family: var(--serif); font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.gh-team-header p { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gh-team-members { padding: 8px 0; }
.gh-team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gh-team-member:last-child { border-bottom: none; }
.gh-member-photo {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.8rem; font-weight: 700;
}
.gh-member-photo img { width: 100%; height: 100%; object-fit: cover; }
.gh-member-name { color: #fff; font-size: 0.875rem; font-weight: 600; }
.gh-member-title { color: var(--gold); font-size: 0.7rem; }
.gh-member-phone { color: rgba(255,255,255,0.6); font-size: 0.7rem; }

.gh-cta-card {
    background: var(--red);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}
.gh-cta-card h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; }
.gh-cta-card p { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }
.gh-cta-btn {
    display: block;
    background: #fff;
    color: var(--red) !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
}
.gh-cta-btn:hover { background: var(--navy); color: #fff !important; }

.gh-topic-tags { background: var(--light); border-radius: 8px; padding: 20px; }
.gh-topic-tags h4 { font-family: var(--serif); font-size: 0.9rem; color: var(--navy); margin-bottom: 12px; }
.gh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-tag {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
}
.gh-tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- FOOTER ---- */
.gh-foot {
    background: var(--navy);
    margin-top: 64px;
}
.gh-foot-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.gh-foot-title { color: #fff; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; display: block; margin-bottom: 12px; }
.gh-foot-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; }
.gh-foot-col h5 { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.gh-foot-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 6px; text-decoration: none; }
.gh-foot-col a:hover { color: #fff; }
.gh-foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
    text-align: center;
}
.gh-foot-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .gh-layout { grid-template-columns: 1fr; }
    .gh-sidebar { position: static; }
    .gh-foot-inner { grid-template-columns: 1fr; gap: 24px; }
    .gh-head-actions { display: none; }
}
@media (max-width: 600px) {
    .gh-head-menu { display: none; }
    .gh-post-featured { padding: 20px; }
    .gh-layout { padding: 24px 16px; }
}

/* ---- GHOST CARD WIDTH CLASSES (required) ---- */
.gh-content .kg-width-wide {
    grid-column: wide-start / wide-end;
    width: 85vw;
    min-width: 100%;
    margin: 0 auto;
}
.gh-content .kg-width-full {
    grid-column: full-start / full-end;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
}
.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
    height: auto;
}
