/* =========================================
   The Chalet Edit — Theme Stylesheet
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --color-tan:       #B5997B;
    --color-tan-dark:  #9a7f62;
    --color-navy:      #141929;
    --color-black:     #101828;
    --color-white:     #ffffff;
    --color-gray-100:  #f2f4f7;
    --color-gray-200:  #e4e7ec;
    --color-gray-400:  #98a2b3;
    --color-gray-500:  #667085;
    --color-gray-700:  #344054;
    --font-display:    'Playfair Display', Georgia, serif;
    --font-body:       'Inter', system-ui, sans-serif;
    --header-height:   72px;
    --transition:      all 0.3s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; }

h1 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================================
   HEADER
   ========================================= */

/* --- Skip link --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--color-tan);
    color: var(--color-white);
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Site Header wrapper (handles mobile + desktop) --- */
.site-header-wrapper {
    position: relative;
    width: 100%;
    z-index: 50;
}

/* Mobile header bar */
.mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
}

.mobile-header-bar .site-logo img { height: 36px; width: auto; }

.mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 4px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* --- Mobile Drawer Overlay --- */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 998;
}

.mobile-drawer-overlay.is-open { display: block; }

/* --- Mobile Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-inner { padding: 2rem; }

.mobile-drawer-logo {
    display: flex;
    justify-content: center;
    margin: 2.5rem auto 2.5rem;
}

.mobile-drawer-logo img { height: 36px; width: auto; }

.mobile-drawer-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-tan);
    font-family: var(--font-body);
}

/* Mobile Nav */
.mobile-nav { display: flex; flex-direction: column; gap: 0.75rem; }

.mobile-nav-item { border-bottom: 1px solid var(--color-gray-200); padding-bottom: 0.75rem; }

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    padding: 0.25rem 0;
}

.mobile-nav-toggle svg { width: 16px; height: 16px; transition: transform 0.2s; flex-shrink: 0; }
.mobile-nav-toggle.is-open svg { transform: rotate(180deg); }

.mobile-nav-dropdown { display: none; padding-left: 1.25rem; margin-top: 0.5rem; }
.mobile-nav-dropdown.is-open { display: flex; flex-direction: column; gap: 0.5rem; }

.mobile-nav-dropdown a {
    font-size: 0.875rem;
    color: var(--color-black);
    display: block;
    padding: 0.25rem 0;
}

.mobile-nav-dropdown a:hover { color: var(--color-tan); }

/* Sub-dropdown (countries) */
.mobile-nav-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-black);
    padding: 0.25rem 0;
}

.mobile-nav-sub-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.mobile-nav-sub-toggle.is-open svg { transform: rotate(180deg); }

.mobile-nav-sub-dropdown { display: none; padding-left: 1rem; margin-top: 0.25rem; }
.mobile-nav-sub-dropdown.is-open { display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-nav-sub-dropdown a { font-size: 0.8125rem; }

.mobile-nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    display: block;
    padding: 0.25rem 0;
}

.mobile-nav-link:hover { color: var(--color-tan); }

/* Mobile drawer footer actions */
.mobile-drawer-support { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-gray-200); }

.mobile-drawer-support p {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.mobile-drawer-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.mobile-drawer-signin {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: 2.5rem;
}

.mobile-drawer-signin a { color: var(--color-black); text-decoration: underline; }

/* --- Primary Site Header (desktop, lg+) --- */
#primary-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);

    display: none; /* hidden on mobile, shown at lg via media query */
}

@media (min-width: 1024px) {
    #primary-header { display: block; }
    .mobile-header-bar { display: none; }
    .site-main { padding-top: var(--header-height); }
}

/* When page is not the homepage, or after scroll / hover */
#primary-header.is-solid,
body.is-inner-page #primary-header {
    background: var(--color-white) !important;
    color: var(--color-black) !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 91.666%;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.primary-nav .site-logo img { height: 36px; width: auto; }

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: 1.5rem;
}

.nav-link-item a {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: inherit;
    transition: color 0.2s;
    position: relative;
}

.nav-link-item a:hover { color: var(--color-tan); }

/* Right side icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.2s;
    position: relative;
}

.nav-icon-btn:hover { color: var(--color-tan); }

.nav-icon-btn a {
    color: inherit;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-icon-btn a:hover { color: var(--color-tan); }

/* Phone tooltip */
.nav-phone-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-phone-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background: #1d2939;
    color: var(--color-white);
    font-size: 0.75rem;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.nav-phone-wrap:hover .nav-phone-tooltip { display: block; }

.nav-phone-tooltip p { color: var(--color-white); font-family: var(--font-body); }
.nav-phone-tooltip p.phone-label { font-weight: 600; margin-bottom: 2px; }

/* Enquire CTA */
.btn-enquire {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--color-tan);
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-enquire:hover { background: var(--color-tan-dark); color: var(--color-white); }

/* Primary / Secondary links (reused in mobile drawer) */
.btn-primary {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--color-tan);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--color-tan-dark); }

.btn-secondary {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    border: 1px solid var(--color-black);
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover { background: var(--color-black); color: var(--color-white); }

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    position: relative;
    background: var(--color-navy);
    padding: 5rem 0 3rem;
    z-index: 10;
}

.site-footer a { color: var(--color-white); font-family: var(--font-body); font-size: 0.875rem; }
.site-footer a:hover { color: var(--color-tan); }
.site-footer p { color: var(--color-white); font-family: var(--font-body); }
.site-footer li { margin-bottom: 0.5rem; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-logos { grid-column: 1 / -1; }
    .footer-nav-columns { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-nav-columns { grid-template-columns: 1fr !important; }
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    grid-column: span 1;
}

.footer-logos img { height: 36px; width: auto; }

.footer-nav-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    grid-column: span 4;
}

@media (max-width: 767px) {
    .footer-nav-columns { grid-template-columns: 1fr 1fr; grid-column: 1; }
}

.footer-nav-col h5 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-nav-col ul { margin: 0; padding: 0; }

.footer-contact {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact h5 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-contact ul { margin-bottom: 1.25rem; }

.footer-contact .btn-primary,
.footer-contact .btn-secondary {
    max-width: 200px;
}

.footer-contact .btn-secondary {
    color: var(--color-white);
    border-color: var(--color-white);
}

.footer-contact .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-navy);
}

/* Trustpilot placeholder */
.footer-trustpilot {
    padding: 2.5rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer bottom row */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}

@media (max-width: 767px) {
    .footer-bottom { grid-template-columns: 1fr; }
    .footer-social { justify-content: flex-start !important; }
}

.footer-copyright p { font-size: 0.8125rem; margin-bottom: 1rem; }

.footer-payment { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.footer-payment p { font-size: 0.8125rem; }

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
}

.footer-social-label { color: var(--color-white); font-size: 0.9375rem; white-space: nowrap; }

.footer-social-icons { display: flex; gap: 1.25rem; }

.footer-social-icons a {
    font-size: 1.25rem;
    color: var(--color-white);
    transition: color 0.2s;
}

.footer-social-icons a:hover { color: var(--color-tan); }

/* =========================================
   MAIN CONTENT AREA
   ========================================= */

.site-main {
    min-height: 60vh;
}

/* =========================================
   BLOG ARCHIVE & POSTS LIST
   ========================================= */

/* --- Blog Hero Banner --- */
.blog-hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
}

.blog-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero__content h1 {
    color: var(--color-white);
    font-family: 'Lora', var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* --- Blog Search Bar --- */
.blog-search {
    margin: 2.5rem auto 0;
    width: 100%;
    max-width: 672px;
    padding: 0 1.5rem;
}

.blog-search__form {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-tan);
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-white);
}

.blog-search__input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-black);
    border: none;
    border-right: 1px solid var(--color-gray-200);
    outline: none;
    background: transparent;
}

.blog-search__input::placeholder { color: var(--color-gray-400); }

.blog-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    color: var(--color-tan);
    transition: color 0.2s;
}

.blog-search__btn:hover { color: var(--color-tan-dark); }
.blog-search__btn svg { width: 24px; height: 24px; flex-shrink: 0; }

/* --- Blog Post Grid --- */
.blog-grid-wrap {
    background: var(--color-white);
    margin-top: 2.5rem;
    padding-bottom: 2rem;
}

.blog-grid-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

@media (min-width: 1024px) {
    .blog-grid-inner { padding: 0 2rem 3rem; }
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    row-gap: 5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Post Card --- */
.post-card {
    display: block;
    color: inherit;
}

.post-card:hover .post-card__title { color: var(--color-tan); }

.post-card__thumbnail {
    width: 100%;
    display: block;
    overflow: hidden;
}

.post-card__thumbnail img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

@media (max-width: 639px) {
    .post-card__thumbnail img { aspect-ratio: 16 / 9; }
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.03);
}

.post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.post-card__date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-black);
}

.post-card__category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--color-tan);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    line-height: 1;
    transition: background 0.2s;
}

.post-card__category:hover { background: var(--color-gray-700); }

.post-card__title {
    font-family: 'Lora', var(--font-display);
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--color-black);
    margin-top: 0.75rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.post-card__excerpt {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    margin-top: 1.25rem;
    line-height: 1.6;

    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.post-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    background: var(--color-gray-100);
    flex-shrink: 0;
}

.post-card__author-name {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-black);
    font-weight: 500;
}

/* --- Blog Pagination --- */
.blog-pagination {
    width: 100%;
    max-width: 672px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Override the nav-links flex from the header */
    margin-left: 0;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-black);
    border: 1px solid var(--color-gray-200);
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
}

.blog-pagination .page-numbers:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
}

.blog-pagination .page-numbers.current {
    background: var(--color-tan);
    border-color: var(--color-tan);
    color: var(--color-white);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

/* --- Newsletter / Pre-footer Section --- */
.newsletter-section {
    background: #424755;
    padding: 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.newsletter-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.newsletter-section p {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 672px;
}

.newsletter-form {
    width: 100%;
    max-width: 576px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .newsletter-form { flex-direction: row; }
}

.newsletter-form__input {
    flex: 1;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #D3D9E0;
    color: #111827;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.15s;
}

.newsletter-form__input::placeholder { color: #4b5563; }

.newsletter-form__input:focus {
    box-shadow: 0 0 0 2px var(--color-tan);
}

.newsletter-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--color-tan);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.2s;
}

.newsletter-form__btn:hover { background: var(--color-tan-dark); }

/* --- No posts state --- */
.blog-no-posts {
    text-align: center;
    padding: 5rem 1.5rem;
    color: var(--color-gray-500);
}

.blog-no-posts h2 { margin-bottom: 1rem; }

/* =========================================
   SINGLE POST
   ========================================= */

.single-post-hero {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center bottom;
    display: block;
}

.single-post-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.single-post-body h1 {
    font-family: var(--font-display);
    color: var(--color-black);
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.single-post-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.single-post-meta {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    margin-bottom: 2rem;
}

.single-post-content {
    max-width: 91.666%;
    margin: 0 auto;
}

.single-post-content a {
    color: var(--color-tan);
    text-decoration: underline;
}

.single-post-content p { color: var(--color-black); margin-bottom: 1.25rem; }
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 { margin: 2rem 0 1rem; color: var(--color-black); }
.single-post-content img { max-width: 100%; margin: 1.5rem auto; border-radius: 4px; }

/* =========================================
   RESPONSIVE — mobile header shows,
   desktop header hides until lg
   ========================================= */

@media (min-width: 1024px) {
    .mobile-header-bar { display: none; }
    #primary-header { display: block; }
}
