:root {
    --bah-dark: #1F3D2B;
    --bah-darker: #1A2A1F;
    --bah-cream: #F5F1E8;
    --bah-cream-light: #F2F5EF;
    --bah-accent: #8A6308;
    --bah-border: #DDE3D6;
    --bah-border-light: #E3E8DC;
    --bah-photo-placeholder: #C9B896;
    --bah-text-muted: #4F5F52;
    --bah-text-muted-light: #5E6B5F;
    --bah-hero-subtext: #C9D6C4;
    --bah-card-bg: #fff;
}

body {
    background: var(--bah-cream);
    color: var(--bah-darker);
    font-family: Georgia, 'Times New Roman', serif;
}

/* Site header */
.bah-header {
    background: var(--bah-cream);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bah-border);
}

.bah-header .bah-logo {
    font-weight: 700;
    color: var(--bah-dark);
    font-size: 18px;
    text-decoration: none;
}

.bah-header nav {
    font-size: 13px;
    color: var(--bah-text-muted);
    display: flex;
    gap: 18px;
}

.bah-header nav a {
    color: var(--bah-text-muted);
    text-decoration: none;
}

/* Homepage hero */
.bah-hero {
    background: var(--bah-dark);
    color: var(--bah-cream-light);
    padding: 40px 28px;
    text-align: center;
}

.bah-hero h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.bah-hero p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--bah-hero-subtext);
}

.bah-main-content {
    padding: 28px;
}

/* Cards (Featured Guide + Latest Articles grid) */
.bah-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bah-accent);
    margin-bottom: 12px;
}

.bah-featured-card {
    display: flex;
    flex-direction: row;
    gap: 0;
    background: var(--bah-card-bg);
    border: 1px solid var(--bah-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.bah-featured-card:hover,
.bah-featured-card:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 20px rgba(31, 61, 43, 0.18);
}

.bah-featured-card .bah-photo {
    flex: 0 0 260px;
    width: 260px;
    max-width: 260px;
    min-width: 0;
    height: 200px;
    background: var(--bah-photo-placeholder);
    overflow: hidden;
    position: relative;
}

.bah-featured-card .bah-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
}

.bah-featured-card .bah-body {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px;
}

@media (max-width: 640px) {
    .bah-featured-card {
        flex-direction: column;
    }
    .bah-featured-card .bah-photo {
        flex: none;
        width: 100%;
        max-width: none;
        height: 180px;
    }
}

.bah-featured-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bah-darker);
    margin: 0;
}

.bah-featured-card p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--bah-text-muted);
}

.bah-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.bah-article-card {
    background: var(--bah-card-bg);
    border: 1px solid var(--bah-border);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.bah-article-card:hover,
.bah-article-card:focus-visible {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(31, 61, 43, 0.18);
}

.bah-article-card .bah-photo {
    height: 140px;
    background: var(--bah-border);
    overflow: hidden;
    position: relative;
    font-size: 11px;
    color: var(--bah-text-muted);
}

.bah-article-card .bah-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
}

.bah-article-card .bah-body {
    padding: 12px;
}

.bah-article-card h4 {
    font-weight: 700;
    font-size: 14px;
    color: var(--bah-darker);
    margin: 0;
}

.bah-article-card .bah-category {
    font-size: 12px;
    color: var(--bah-text-muted-light);
    margin-top: 6px;
}

/* Single article */
.bah-article {
    padding: 32px 28px 40px;
    max-width: 680px;
    margin: 0 auto;
}

.bah-article .bah-category-label {
    font-size: 12px;
    color: var(--bah-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bah-article h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--bah-darker);
    margin-top: 8px;
    line-height: 1.2;
}

.bah-article .bah-meta {
    font-size: 13px;
    color: var(--bah-text-muted-light);
    margin-top: 10px;
}

.bah-article .bah-featured-photo {
    margin-top: 20px;
    height: 320px;
    background: var(--bah-photo-placeholder);
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bah-dark);
    font-size: 12px;
}

.bah-article .bah-featured-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bah-quick-answer {
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--bah-cream-light);
    border: 1px solid var(--bah-border-light);
    border-radius: 8px;
}

.bah-quick-answer .bah-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--bah-accent);
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.bah-quick-answer p {
    font-size: 15px;
    color: var(--bah-darker);
    line-height: 1.5;
    margin: 0;
}

.bah-article .bah-content {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.7;
}

.bah-faq {
    margin-top: 32px;
    padding: 18px;
    background: var(--bah-cream-light);
    border-radius: 6px;
}

.bah-faq h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bah-darker);
    margin: 0 0 10px;
}

.bah-faq .bah-qa {
    font-size: 14px;
    color: var(--bah-darker);
    margin-bottom: 8px;
}

#rank-math-faq.rank-math-block {
    margin-top: 32px;
    padding: 18px;
    background: var(--bah-cream-light);
    border-radius: 6px;
    list-style: none;
}

#rank-math-faq .rank-math-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#rank-math-faq .rank-math-list-item {
    margin-bottom: 12px;
}

#rank-math-faq .rank-math-question {
    font-size: 14px;
    font-weight: 700;
    color: var(--bah-darker);
    margin: 0 0 4px;
}

#rank-math-faq .rank-math-answer {
    font-size: 14px;
    color: var(--bah-darker);
}

#rank-math-faq .rank-math-answer p {
    margin: 0;
}

/* Category archive page */
.bah-archive {
    padding: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.bah-archive-header {
    margin-bottom: 28px;
}

.bah-archive-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--bah-darker);
    margin: 6px 0 0;
}

.bah-archive-desc {
    font-size: 14px;
    color: var(--bah-text-muted);
    margin-top: 8px;
}

.bah-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 720px) {
    .bah-archive-grid {
        grid-template-columns: 1fr;
    }
}

.nav-links {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.nav-links a,
.nav-links span {
    color: var(--bah-dark);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--bah-border);
    border-radius: 4px;
}

.nav-links .current {
    background: var(--bah-dark);
    color: var(--bah-cream);
    border-color: var(--bah-dark);
}

/* Footer */
.bah-footer {
    background: var(--bah-darker);
    color: var(--bah-hero-subtext);
    padding: 20px 28px;
    margin-top: 40px;
    font-size: 13px;
}

.bah-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 960px;
    margin: 0 auto;
}

.bah-footer-nav {
    display: flex;
    gap: 16px;
}

.bah-footer-nav a {
    color: var(--bah-hero-subtext);
    text-decoration: none;
}

.bah-footer-nav a:hover {
    color: var(--bah-cream);
    text-decoration: underline;
}

/* Related articles (reuses .bah-article-grid / .bah-article-card from the homepage) */
.bah-related {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--bah-border);
}

.bah-related .bah-eyebrow {
    margin-bottom: 12px;
}

.bah-related-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .bah-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bah-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Recommended gear (Amazon affiliate) */
.bah-gear {
    margin: 32px 0;
    padding: 22px 22px 24px;
    background: var(--bah-cream-light);
    border: 1px solid var(--bah-border);
    border-radius: 12px;
}

.bah-gear-note {
    margin: 6px 0 16px;
    font-size: 12px;
    color: var(--bah-hero-subtext);
    color: #6b6b6b;
}

.bah-gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.bah-gear-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--bah-border);
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.bah-gear-card:hover,
.bah-gear-card:focus-visible {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.bah-gear-name {
    font-weight: 700;
    color: var(--bah-dark);
    line-height: 1.3;
}

.bah-gear-why {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.bah-gear-cta {
    font-size: 13px;
    font-weight: 600;
    color: #b5651d;
}

/* Ad units */
.bah-ad {
    margin: 28px 0;
    text-align: center;
    min-height: 1px;
    overflow: hidden;
}

/* Cookie-consent notice */
.bah-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: var(--bah-darker);
    color: var(--bah-cream);
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

.bah-consent[hidden] {
    display: none;
}

.bah-consent p {
    margin: 0;
    max-width: 760px;
    font-size: 12px;
}

.bah-consent a {
    color: var(--bah-cream);
    text-decoration: underline;
}

.bah-consent button {
    background: var(--bah-cream);
    color: var(--bah-darker);
    border: 0;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
