/* ============================================================
   AVANA SURGICAL — GHOST BLOG THEME
   screen.css — all brand styles for the Ghost blog
   Matches avanasurgical.com brand: navy + gold + cream + Arimo
   ============================================================ */

/* =================== RESET + VARIABLES =================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-navy:        #243447;
    --color-gold:        #b27f0d;
    --color-gold-hover:  #8a6300;
    --color-gold-soft:   rgba(178, 127, 13, 0.10);
    --color-cream:       #e0d8cd;
    --color-soft-cream:  #FAFAF8;
    --color-white:       #FFFFFF;
    --color-text:        #1F1F1F;
    --color-muted:       #6C6C6C;
    --color-border:      #D9D9D9;

    --font-body:    'Arimo', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Fira Sans', Georgia, serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm:  0 4px 12px rgba(36, 52, 71, 0.08);
    --shadow-md:  0 12px 30px rgba(36, 52, 71, 0.10);
    --shadow-lg:  0 20px 60px rgba(36, 52, 71, 0.16);

    --nav-h:    72px;
    --topbar-h: 44px;
    --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
}

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

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem; font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1.4;
}
.btn--primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}
.btn--primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(178, 127, 13, 0.25);
}
.btn--outline {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}
.btn--outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* =================== OSTEOKART LAUNCH BANNER (full-width 1920x280) =================== */
.osteokart-banner {
    display: block;
    width: 100%;
    line-height: 0;
    transition: filter 0.2s ease;
}
.osteokart-banner:hover { filter: brightness(1.04); }
.osteokart-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
}

/* =================== ANNOUNCE BAR (sitewide highlight strip) =================== */
.announce-bar {
    background: linear-gradient(90deg, #8a6300 0%, #b27f0d 100%);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
    position: relative;
    z-index: 20;
}
.announce-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.announce-bar__icon { font-size: 1rem; line-height: 1; }
.announce-bar__text { font-weight: 500; }
.announce-bar__cta {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 1px;
    transition: border-bottom-color 0.2s;
}
.announce-bar__cta:hover { border-bottom-color: #fff; }
.announce-bar { position: sticky; top: 0; z-index: 2000; }
.announce-bar__slides {
    position: relative; flex: 1; min-height: 22px;
    display: flex; align-items: center; justify-content: center;
}
.announce-bar__slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap;
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.announce-bar__slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.announce-bar__blink {
    animation: announceBlink 1.4s ease-in-out infinite;
    will-change: opacity;
}
@keyframes announceBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
    .announce-bar__blink { animation: none; }
}
.announce-bar__close {
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    padding: 2px 8px;
    margin-left: 8px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.75;
    transition: opacity 0.15s, background-color 0.15s;
}
.announce-bar__close:hover,
.announce-bar__close:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}
@media (max-width: 640px) {
    .announce-bar { font-size: 0.78rem; padding: 6px 0; }
    .announce-bar .container { gap: 8px; }
    .announce-bar__close { font-size: 1.2rem; padding: 2px 6px; }
}

/* =================== TOP BAR =================== */
.top-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 10px 0;
    font-size: 13px;
    min-height: var(--topbar-h);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-bar__left { display: flex; gap: 20px; }
.top-bar__item {
    color: var(--color-white);
    text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    transition: opacity 0.2s;
    min-height: 44px;
}
.top-bar__item:hover { opacity: 0.8; }
.top-bar__right { display: flex; gap: 8px; align-items: center; }
.top-bar__social {
    color: var(--color-white);
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: all 0.25s;
    flex-shrink: 0;
}
.top-bar__social:hover { background-color: var(--color-gold); transform: translateY(-2px); }
.top-bar__social svg { width: 14px; height: 14px; fill: currentColor; }

/* =================== SITE HEADER =================== */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.25s;
    height: var(--nav-h);
}
.site-header.scrolled { box-shadow: 0 4px 14px rgba(36, 52, 71, 0.10); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; }

.main-nav__list {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}
.main-nav__link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 4px 0;
}
.main-nav__link:hover { color: var(--color-gold); }
.main-nav__link--back {
    color: var(--color-muted);
    font-size: 0.88rem;
}
.main-nav__link--back:hover { color: var(--color-navy); }

.header-cta {
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    display: flex; align-items: center;
}
.header-cta:hover { background-color: var(--color-gold-hover); }

/* =================== MOBILE TOGGLE =================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all 0.25s;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== MOBILE NAV =================== */
.mobile-nav {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.2s ease;
    z-index: 99;
}
.mobile-nav[hidden] { display: none; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav__list {
    list-style: none;
    padding: 16px 0 24px;
}
.mobile-nav__list li a {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid #f1f1eb;
    transition: color 0.2s;
    min-height: 44px;
}
.mobile-nav__list li:last-child a { border-bottom: 0; }
.mobile-nav__list li a:hover { color: var(--color-gold); }
.mobile-nav__cta {
    display: inline-flex !important;
    align-items: center;
    background-color: var(--color-gold);
    color: var(--color-white) !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-weight: 600 !important;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 0 !important;
}
.mobile-nav__cta:hover { background-color: var(--color-gold-hover) !important; }

/* =================== BLOG HERO =================== */
.blog-hero {
    background: linear-gradient(135deg, var(--color-cream) 0%, #EDEDED 100%);
    padding: 72px 0 48px;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(178, 127, 13, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.blog-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}
.blog-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 680px;
    color: var(--color-navy);
}
.blog-hero-image {
    width: 100%; height: 280px;
    overflow: hidden;
    background: var(--color-navy);
}
.blog-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

/* =================== FEATURED POST =================== */
.featured-post { margin-bottom: 64px; }
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 360px;
}
.featured-card__image {
    display: block;
    overflow: hidden;
}
.featured-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.featured-card:hover .featured-card__image img { transform: scale(1.04); }
.featured-card__body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.featured-card__label {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--color-white);
    background-color: var(--color-gold);
    padding: 3px 10px;
    border-radius: 4px;
    width: fit-content;
}
.featured-card__title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    line-height: 1.2;
}
.featured-card__title a { color: var(--color-navy); text-decoration: none; }
.featured-card__title a:hover { color: var(--color-gold); }
.featured-card__excerpt {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* =================== POST GRID =================== */
.blog-listing { padding: 64px 0 88px; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* =================== POST CARD =================== */
.post-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-soft-cream);
}
.post-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.post-card:hover .post-card__image img { transform: scale(1.05); }
.post-card__body {
    padding: 24px 24px 28px;
    display: flex; flex-direction: column; flex: 1;
    gap: 8px;
}
.post-card__tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--color-gold);
    text-decoration: none;
}
.post-card__tag:hover { text-decoration: underline; }
.post-card__title {
    font-size: 1.15rem;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__title a { color: var(--color-navy); }
.post-card__title a:hover { color: var(--color-gold); }
.post-card__excerpt {
    color: var(--color-muted);
    font-size: 0.93rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--color-muted);
    margin-top: 4px;
    flex-wrap: wrap;
}
.post-card__avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.post-card__avatar--lg { width: 36px; height: 36px; }
.post-card__author { font-weight: 500; color: var(--color-text); }
.post-card__sep { color: var(--color-border); }
.post-card--no-image .post-card__body { padding-top: 28px; }

/* =================== ARCHIVE HERO =================== */
.archive-hero {
    background: var(--color-cream);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--color-border);
}
.archive-hero__desc {
    max-width: 600px;
    color: var(--color-muted);
    font-size: 1.05rem;
    margin-top: 12px;
}
.archive-hero__count {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-top: 8px;
}
.author-archive-head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.author-archive-head__avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-gold);
}
.author-archive-head__location { color: var(--color-muted); font-size: 0.9rem; }

/* =================== SINGLE POST =================== */
.post-full { background-color: var(--color-white); }
.post-full__cover {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background-color: var(--color-navy);
}
.post-full__cover img {
    width: 100%; max-height: 520px;
    object-fit: cover;
    display: block;
}
.post-full__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 0 80px;
}
.post-full__header { margin-bottom: 40px; }
.post-full__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.18;
    margin: 12px 0 16px;
}
.post-full__excerpt {
    font-size: 1.15rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}
.post-full__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--color-muted);
    flex-wrap: wrap;
}
.post-full__author-link {
    display: flex; align-items: center; gap: 8px;
    color: var(--color-text); text-decoration: none;
    font-weight: 500;
}
.post-full__author-link:hover { color: var(--color-gold); }

/* =================== POST CONTENT STYLES =================== */
.gh-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}
.gh-content h2 {
    font-size: 1.65rem;
    margin: 40px 0 16px;
    padding-top: 8px;
}
.gh-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
}
.gh-content h4 {
    font-size: 1.1rem;
    margin: 24px 0 10px;
}
.gh-content p { margin: 0 0 20px; }
.gh-content p:last-child { margin-bottom: 0; }
.gh-content ul, .gh-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}
.gh-content li { margin-bottom: 8px; }
.gh-content strong { color: var(--color-navy); font-weight: 600; }
.gh-content em { font-style: italic; }
.gh-content a { color: var(--color-gold); font-weight: 500; text-decoration: underline; }
.gh-content a:hover { color: var(--color-gold-hover); }
.gh-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 16px 24px;
    margin: 32px 0;
    background-color: var(--color-gold-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-navy);
    font-size: 1.08rem;
}
.gh-content blockquote p { margin: 0; }
.gh-content figure { margin: 32px 0; }
.gh-content figure img { border-radius: var(--radius-md); width: 100%; }
.gh-content figcaption {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}
.gh-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 48px 0;
}
.gh-content pre {
    background-color: var(--color-navy);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 24px 0;
}
.gh-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(36, 52, 71, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.gh-content pre code { background: transparent; padding: 0; }

/* Gallery card (Ghost card blocks) */
.gh-content .kg-image-card,
.gh-content .kg-gallery-card { margin: 32px 0; }
.gh-content .kg-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.gh-content .kg-gallery-image img { border-radius: var(--radius-sm); }

/* Callout card */
.gh-content .kg-callout-card {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--color-gold-soft);
    border-radius: var(--radius-md);
    margin: 28px 0;
}
.gh-content .kg-callout-emoji { font-size: 1.4rem; flex-shrink: 0; }
.gh-content .kg-callout-text { color: var(--color-navy); line-height: 1.6; }

/* =================== POST FOOTER =================== */
.post-full__footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}
.post-full__tags-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-right: 8px;
}
.post-full__tags a {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-decoration: none;
}
.post-full__tags a:hover { text-decoration: underline; }

/* =================== POST NAV (prev/next) =================== */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--color-border);
}
.post-nav__link:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.post-nav__link--next { text-align: right; }
.post-nav__dir {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
}
.post-nav__title {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =================== AUTHOR BIO =================== */
.author-bio-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 56px;
    padding: 28px;
    background-color: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.author-bio-card__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-bio-card__name { font-size: 1.05rem; margin-bottom: 6px; }
.author-bio-card__bio { color: var(--color-muted); font-size: 0.95rem; line-height: 1.65; }
.author-bio-card__link {
    display: inline-block;
    margin-top: 8px;
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.author-bio-card__link:hover { text-decoration: underline; }

/* =================== PAGINATION =================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.pagination__btn {
    display: inline-flex; align-items: center;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem; font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    transition: all 0.2s;
    min-height: 44px;
}
.pagination__btn:hover:not(.pagination__btn--disabled) {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}
.pagination__btn--disabled {
    border-color: var(--color-border);
    color: var(--color-muted);
    cursor: not-allowed;
    opacity: 0.55;
}
.pagination__info {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* =================== ERROR PAGE =================== */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.error-page__inner {
    text-align: center;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.error-page__code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-gold-soft);
    line-height: 1;
    display: block;
}
.error-page__title { font-size: 2rem; }
.error-page__message {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 480px;
}
.error-page__inner .btn { margin: 8px 6px 0; }

/* =================== SITE FOOTER =================== */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 64px 0 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.site-footer__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.site-footer__desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.site-footer__address {
    font-style: normal;
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.site-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.site-footer__contact-info a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    min-height: 44px;
    display: flex; align-items: center;
}
.site-footer__contact-info a:hover { color: var(--color-gold); }
.site-footer__socials { display: flex; gap: 10px; }
.site-footer__socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s;
}
.site-footer__socials a:hover { background-color: var(--color-gold); transform: translateY(-3px); }
.site-footer__socials svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}
.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: 10px; }
.site-footer__links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.93rem;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    min-height: 28px;
    line-height: 28px;
}
.site-footer__links a:hover { color: var(--color-gold); }
.site-footer__trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.60);
}
.site-footer__bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.40);
}
.site-footer__bottom a { color: var(--color-gold); text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }

/* =================== BACK TO TOP =================== */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none;
    transition: all 0.3s;
    z-index: 200;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background-color: var(--color-gold); transform: translateY(-3px); }

/* =================== RESPONSIVE =================== */
@media (max-width: 968px) {
    .main-nav, .header-cta { display: none; }
    .mobile-menu-toggle { display: flex; }

    .site-header .container { justify-content: space-between; }

    .post-grid { grid-template-columns: repeat(2, 1fr); }

    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-card__image { max-height: 280px; }
    .featured-card__body { padding: 32px 28px; }

    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__col:first-child { grid-column: 1 / -1; }

    .post-nav { grid-template-columns: 1fr; }
    .post-nav__link--next { text-align: left; }

    .top-bar__left { display: none; }
}

@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }

    .blog-hero { padding: 48px 0 36px; }
    .blog-hero__title { font-size: 1.65rem; }

    .post-full__inner { padding: 36px 0 56px; }
    .post-full__title { font-size: 1.7rem; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__col:first-child { grid-column: 1; }
    .site-footer__trust { gap: 16px; font-size: 0.8rem; }
    .site-footer__bottom { flex-direction: column; text-align: center; gap: 8px; }

    .author-archive-head { flex-direction: column; gap: 16px; }
    .author-archive-head__avatar { width: 64px; height: 64px; }

    .author-bio-card { flex-direction: column; }
    .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 375px) {
    .container { padding: 0 16px; }
    .top-bar { display: none; }
    .post-full__inner { padding: 28px 0 48px; }
    .gh-content h2 { font-size: 1.35rem; }
}

/* =========================================================
   KOENIG EDITOR IMAGE CARDS (required by Ghost's validator)
   Applied when authors insert an image card with "Wide" or
   "Full" width from the Ghost editor.
========================================================= */
.gh-content .kg-width-wide,
.gh-content .kg-width-wide img,
.gh-content .kg-width-wide figure {
    max-width: 85vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
@media (min-width: 1200px) {
    .gh-content .kg-width-wide,
    .gh-content .kg-width-wide img,
    .gh-content .kg-width-wide figure {
        max-width: 1080px;
    }
}
.gh-content .kg-width-full,
.gh-content .kg-width-full img,
.gh-content .kg-width-full figure {
    max-width: 100vw;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}
.gh-content figure { margin: 32px 0; }
.gh-content figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted, #6b5a45);
    margin-top: 10px;
    font-style: italic;
}

/* ===== MAIN SITE HEADER + FOOTER (ported v1.0.8) =====
   Verbatim styles extracted from avanasurgical.com (index.html + mega-menu.css)
   so the Ghost blog visually matches the main site. These rules appear AFTER
   the theme's earlier header/footer styles so the main-site look wins for
   the site-nav / site-footer partials. Mega-menu-specific rules and
   .mobile-nav / .mobile-menu-toggle styles are loaded via
   /assets/css/mega-menu.css (referenced from default.hbs).
   ====================================================== */

:root {
    /* Main-site color tokens (aliased to the theme's existing palette so
       both naming schemes resolve to the same brand colors). */
    --color-primary:         #243447;
    --color-bg:              #e0d8cd;
    --color-accent:          #b27f0d;
    --color-accent-hover:    #8a6300;
    --color-accent-emphasis: #C0392B;
    --color-light-bg:        #EDEDED;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 0;
    font-size: 14px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar__left { display: flex; gap: 24px; }
.top-bar__item {
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}
.top-bar__item:hover { opacity: 0.8; }
.top-bar__right { display: flex; gap: 10px; align-items: center; }
.top-bar__social {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}
.top-bar__social:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}
.top-bar__social svg { width: 14px; height: 14px; fill: currentColor; }

/* ===== HEADER ===== */
.site-header {
    background-color: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 12px rgba(36, 52, 71, 0.1); }
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 24px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.site-logo img {
    height: 48px;
    width: auto;
    display: block;
}
.main-nav__list {
    display: flex;
    gap: 36px;
    list-style: none;
}
.main-nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav__link:hover { color: var(--color-accent); }
.main-nav__link--active,
.main-nav__link.is-active { color: var(--color-accent); }

.header-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
}
.header-cta:hover { background-color: var(--color-accent-hover); }

/* ===== FOOTER ===== */
.site-footer {
    background-color: #1a2836;
    color: var(--color-white);
    padding: 64px 0 24px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
    align-items: start;
}
.site-footer__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-white);
    letter-spacing: 0.5px;
}
.site-footer__logo {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-white);
}
.site-footer__logo img {
    height: 56px;
    width: auto;
    display: block;
}
.site-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    transition: all 0.3s;
}
.site-footer__socials a:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}
.site-footer__socials svg { width: 16px; height: 16px; fill: currentColor; }

.site-footer__desc {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}
.site-footer__address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
    font-style: normal;
}
.site-footer__address p { margin: 0; }
.site-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}
.site-footer__contact-info a:hover { color: var(--color-accent); }
.site-footer__links {
    list-style: none;
    padding: 0;
}
.site-footer__links li { margin-bottom: 12px; }
.site-footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.site-footer__links a:hover { color: var(--color-accent); }
.site-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}
.site-footer__bottom a { color: var(--color-accent); text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }

/* ===== MOBILE RESPONSIVE — hide desktop nav, show hamburger =====
   The .mobile-menu-toggle / .mobile-nav visual rules live in
   /assets/css/mega-menu.css; this block just triggers the swap and
   collapses the footer grid. */
@media (max-width: 968px) {
    .main-nav__list { display: none; }
    .top-bar__left { display: none; }
    .site-footer { padding: 48px 0 20px; }
}
@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}
@media (max-width: 640px) {
    .site-footer { padding: 40px 0 16px; }
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
    .site-footer__heading { font-size: 0.9rem; margin-bottom: 16px; }
    .site-footer__logo img { height: 40px; }
    .site-footer__desc { font-size: 0.85rem; margin-bottom: 16px; }
    .site-footer__address { font-size: 0.85rem; margin-bottom: 16px; }
    .site-footer__contact-info a { font-size: 0.85rem; }
    .site-footer__links a { font-size: 0.85rem; margin-bottom: 8px; }
    .site-footer__socials { gap: 10px; margin-top: 16px; }
    .site-footer__socials a { width: 32px; height: 32px; }
    .site-footer__bottom { font-size: 0.75rem; padding-top: 16px; }
}
