/* ==========================================================================
   LEXCORP — Corporate Legal Services Ghost Theme
   Primary stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Palette */
    --color-navy:        #0d1b2a;
    --color-navy-light:  #1a2e45;
    --color-navy-dark:   #070e15;
    --color-gold:        #c8a96e;
    --color-gold-light:  #dfc28f;
    --color-gold-dark:   #a8893e;
    --color-white:       #ffffff;
    --color-offwhite:    #f8f6f2;
    --color-muted:       #8a9bb0;
    --color-border:      #e2ddd5;
    --color-text:        #1c2a38;
    --color-text-light:  #4a5568;
    --color-error:       #c0392b;
    --color-success:     #27ae60;

    /* Typography */
    --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max:    1200px;
    --container-narrow: 740px;
    --container-wide:   1400px;

    /* Radii */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --shadow-xl:  0 24px 48px rgba(0,0,0,.18);

    /* Transitions */
    --transition: 0.22s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-gold-dark);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-navy); }
a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 2px; }

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-navy-dark);
    border-color: var(--color-gold);
}
.btn--primary:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.btn--outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 0.9375rem; }
.btn--full { width: 100%; }

/* --------------------------------------------------------------------------
   6. Section Utilities
   -------------------------------------------------------------------------- */
.section-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
    color: var(--color-navy);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    max-width: 540px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header--row {
    text-align: left;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   7. Site Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    height: 72px;
}

.site-header__brand { flex-shrink: 0; }

.site-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo { height: 40px; width: auto; }

.site-header__logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.site-nav { flex: 1; }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.site-nav__list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.02em;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.site-nav__list a:hover,
.site-nav__list a.nav-current {
    color: var(--color-navy);
    border-bottom-color: var(--color-gold);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
}

/* Centered nav layout (driven by @custom.navigation_layout) */
.site-header--centered .site-header__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.site-header--centered .site-header__brand {
    width: 100%;
    text-align: center;
    order: -1;
}
.site-header--centered .site-nav { flex: none; }
.site-header--centered .site-header__actions { margin-left: 0; }

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--color-navy);
    transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
}
.mobile-nav__list { display: flex; flex-direction: column; gap: var(--space-xs); }
.mobile-nav__list a {
    display: block;
    padding: 0.625rem var(--space-lg);
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-md);
}
.mobile-nav__list a:hover { background: var(--color-offwhite); }

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background: var(--color-navy);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200, 169, 110, 0.08) 0%, transparent 70%),
        linear-gradient(135deg, rgba(13,27,42,0.95) 0%, rgba(26,46,69,0.9) 100%);
    z-index: 1;
}

/* Subtle texture lines */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.015) 40px,
        rgba(255,255,255,0.015) 41px
    );
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xl);
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

.hero__content { max-width: 640px; }

.hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    padding-left: 36px;
    position: relative;
}
.hero__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 1px;
    background: var(--color-gold);
}

.hero__heading {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.hero__subheading {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Hero badge */
.hero__badge {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(200, 169, 110, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero__badge::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: 50%;
}
.hero__badge-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero__badge-years {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}
.hero__badge-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    max-width: 90px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
    background: var(--color-offwhite);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.trust-bar__item strong {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
}
.trust-bar__item span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.trust-bar__divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* --------------------------------------------------------------------------
   10. Practice Areas
   -------------------------------------------------------------------------- */
.practice-areas {
    padding: var(--space-5xl) 0;
    background: var(--color-white);
}

.practice-areas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.practice-card {
    padding: var(--space-2xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.practice-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold-light);
    transform: translateY(-3px);
}

.practice-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-offwhite);
    border-radius: var(--radius-md);
    color: var(--color-gold-dark);
    margin-bottom: var(--space-lg);
}

.practice-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.practice-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.practice-card__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gold-dark);
    letter-spacing: 0.02em;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.practice-card__link:hover { border-bottom-color: var(--color-gold-dark); color: var(--color-gold-dark); }

/* --------------------------------------------------------------------------
   11. Featured Insights
   -------------------------------------------------------------------------- */
.featured-insights {
    padding: var(--space-5xl) 0;
    background: var(--color-navy-dark);
}
.featured-insights .section-eyebrow { color: var(--color-gold); }
.featured-insights .section-title { color: var(--color-white); }
.featured-insights .section-subtitle { color: rgba(255,255,255,0.6); }

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.featured-card {
    background: var(--color-navy-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.featured-card--large {
    grid-column: span 2;
    flex-direction: row;
}
.featured-card--large .featured-card__image-wrap {
    width: 50%;
    flex-shrink: 0;
}
.featured-card--large .featured-card__image {
    height: 100%;
    object-fit: cover;
}

.featured-card__image-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.featured-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-card:hover .featured-card__image { transform: scale(1.04); }

.featured-card__body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card__tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.featured-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    flex: 1;
}
.featured-card__title a { color: var(--color-white); transition: color var(--transition); }
.featured-card__title a:hover { color: var(--color-gold-light); }

.featured-card__excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.featured-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    margin-top: auto;
}
.featured-card__author { color: rgba(255,255,255,0.7); }
.featured-card__meta span + span::before { content: '·'; margin-right: var(--space-sm); }

/* --------------------------------------------------------------------------
   12. Latest Articles
   -------------------------------------------------------------------------- */
.latest-articles {
    padding: var(--space-5xl) 0;
}

/* --------------------------------------------------------------------------
   13. Post Grid & Cards
   -------------------------------------------------------------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

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

.post-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.post-card__image-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__image { transform: scale(1.04); }

.post-card__body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-sm);
}

.post-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    flex: 1;
}
.post-card__title a { color: var(--color-navy); transition: color var(--transition); }
.post-card__title a:hover { color: var(--color-gold-dark); }

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.post-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.post-card__author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.post-card__author-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.post-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.78rem;
    color: var(--color-muted);
    gap: 2px;
}
.post-card__read-time { font-size: 0.76rem; }

/* --------------------------------------------------------------------------
   14. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-2xl) 0;
    font-size: 0.875rem;
}
.pagination a { color: var(--color-navy); font-weight: 500; }
.pagination .page-number { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   15. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
    background: var(--color-navy);
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border: 1px solid rgba(200, 169, 110, 0.12);
    border-radius: 50%;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    border: 1px solid rgba(200, 169, 110, 0.08);
    border-radius: 50%;
}

.cta-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.cta-banner__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-banner__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    line-height: 1.7;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   16. Post Full (Single Article)
   -------------------------------------------------------------------------- */
.post-full { padding-bottom: var(--space-5xl); }

.post-header {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-3xl);
}

.post-header__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-md);
    padding: 0.3rem 0.75rem;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 100px;
}

.post-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin-bottom: var(--space-lg);
}

.post-header__excerpt {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.post-header__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.post-header__authors {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.post-header__author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}
.post-header__author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-header__author-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-navy);
    color: var(--color-gold);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.post-header__author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-navy);
}

.post-header__date-read {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 1px;
}

.post-header__share {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.share-btn:hover { color: var(--color-navy); border-color: var(--color-navy); background: var(--color-offwhite); }

/* Feature Image */
.post-feature-image {
    margin-bottom: var(--space-3xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.post-feature-image img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}
.post-feature-image figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-muted);
    padding: var(--space-sm) 0;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   17. Post Content (gh-content)
   -------------------------------------------------------------------------- */
.gh-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-3xl);
}

/* --- Koenig card widths (required by GScan) --- */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw * 0.85);
    transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Constrain wide/full inside narrow container */
.container--narrow .kg-width-wide  { width: min(85vw, 1000px); }
.container--narrow .kg-width-full  { width: 100vw; }

/* --- Koenig card generic --- */
.kg-card { margin: 2em 0; }
.kg-image { max-width: 100%; }
.kg-image-card img { border-radius: var(--radius-md); }

.gh-content > * + * { margin-top: 1.6em; }

.gh-content h2, .gh-content h3, .gh-content h4 {
    margin-top: 2.5em;
    margin-bottom: 0.6em;
}

.gh-content h2 { font-size: 1.75rem; }
.gh-content h3 { font-size: 1.375rem; }
.gh-content h4 { font-size: 1.125rem; }

.gh-content p { margin-bottom: 1.4em; }

.gh-content a {
    color: var(--color-gold-dark);
    border-bottom: 1px solid rgba(168, 137, 62, 0.3);
    transition: border-color var(--transition), color var(--transition);
}
.gh-content a:hover { border-bottom-color: var(--color-gold-dark); }

.gh-content blockquote {
    margin: 2em 0;
    padding: var(--space-xl) var(--space-2xl);
    border-left: 3px solid var(--color-gold);
    background: var(--color-offwhite);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-navy);
}

.gh-content ul, .gh-content ol {
    padding-left: var(--space-xl);
    margin: 1.4em 0;
}
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li { margin-bottom: 0.4em; }

.gh-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-3xl) 0;
}

.gh-content figure { margin: 2em 0; }
.gh-content figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: var(--space-sm);
    font-style: italic;
}

.gh-content img { border-radius: var(--radius-md); }

.gh-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875em;
    background: var(--color-offwhite);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.gh-content pre {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.85);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.875rem;
}
.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin: 2em 0;
}
.gh-content th {
    background: var(--color-navy);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
}
.gh-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.gh-content tr:hover td { background: var(--color-offwhite); }

/* --------------------------------------------------------------------------
   18. Post Footer
   -------------------------------------------------------------------------- */
.post-footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-3xl);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.post-footer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag-pill {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-navy);
    background: var(--color-offwhite);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 0.3rem 0.8rem;
    transition: background var(--transition), border-color var(--transition);
}
.tag-pill:hover { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

.post-footer__share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-muted);
}
.share-link {
    font-weight: 500;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
    transition: border-color var(--transition);
}
.share-link:hover { border-bottom-color: var(--color-navy); }

/* --------------------------------------------------------------------------
   19. Author Bio
   -------------------------------------------------------------------------- */
.author-bio {
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
}

.author-bio__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: var(--color-offwhite);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.author-bio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-md);
}

.author-bio__name {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.author-bio__bio {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.author-bio__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gold-dark);
}
.author-bio__link:hover { color: var(--color-navy); }

/* --------------------------------------------------------------------------
   20. Related Posts
   -------------------------------------------------------------------------- */
.related-posts {
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.related-posts__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   21. Archive Header
   -------------------------------------------------------------------------- */
.archive-header {
    background: var(--color-navy);
    padding: var(--space-5xl) 0;
}

.archive-header__inner { max-width: 640px; }

.archive-header__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.archive-header__title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.archive-header__desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.archive-header__count {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
}

.archive-content { padding: var(--space-4xl) 0; }

/* --------------------------------------------------------------------------
   22. Author Header
   -------------------------------------------------------------------------- */
.author-header {
    background: var(--color-offwhite);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4xl) 0;
}

.author-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.author-header__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.author-header__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-sm);
}

.author-header__name { margin-bottom: var(--space-sm); }

.author-header__bio {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.author-header__social {
    display: flex;
    gap: var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
}
.author-header__social a { color: var(--color-gold-dark); }
.author-header__social a:hover { color: var(--color-navy); }

/* --------------------------------------------------------------------------
   23. Page Header
   -------------------------------------------------------------------------- */
.page-header {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-3xl);
}

.page-header__title { margin-bottom: var(--space-md); }

.page-header__excerpt {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-style: italic;
    line-height: 1.65;
}

.page-feature-image { margin-bottom: var(--space-3xl); border-radius: var(--radius-lg); overflow: hidden; }
.page-feature-image img { width: 100%; max-height: 480px; object-fit: cover; }
.page-content { padding-bottom: var(--space-5xl); }

/* --------------------------------------------------------------------------
   24. Error Page
   -------------------------------------------------------------------------- */
.error-page {
    padding: var(--space-5xl) 0;
    text-align: center;
}

.error-page__inner { max-width: 480px; margin: 0 auto; }

.error-page__code {
    display: block;
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-border);
    margin-bottom: var(--space-md);
}

.error-page__title {
    margin-bottom: var(--space-md);
}

.error-page__message {
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   25. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.75);
}

.site-footer__top {
    padding: var(--space-5xl) 0 var(--space-3xl);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
}

.site-footer__logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.site-footer__logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
}

.site-footer__tagline {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--color-gold-light);
    font-style: italic;
    margin: var(--space-sm) 0;
}

.site-footer__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.site-footer__social {
    display: flex;
    gap: var(--space-md);
}
.site-footer__social a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.site-footer__social a:hover { color: var(--color-gold-light); }

.site-footer__col-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--space-lg);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer__links a, .site-footer__links li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--color-gold-light); }

.site-footer__newsletter-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.site-footer__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-footer__input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition), background var(--transition);
}
.site-footer__input::placeholder { color: rgba(255,255,255,0.35); }
.site-footer__input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.12);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-xl) 0;
    display: flex;
}
.site-footer__bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.site-footer__copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

.site-footer__disclaimer {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    margin-top: 2px;
    font-style: italic;
}

.site-footer__legal-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}
.site-footer__legal-links a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
}
.site-footer__legal-links a:hover { color: rgba(255,255,255,0.7); }

/* --------------------------------------------------------------------------
   26. Ghost Members / Subscription Cards (built-in)
   -------------------------------------------------------------------------- */
.gh-card { border-radius: var(--radius-lg); }
.kg-signup-card { background: var(--color-navy) !important; }

/* --------------------------------------------------------------------------
   27. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-card--large { grid-column: span 2; }
}

@media (max-width: 900px) {
    .hero__badge { display: none; }
    .site-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .post-grid--3 { grid-template-columns: 1fr 1fr; }
    .cta-banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
    .container { padding: 0 var(--space-lg); }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card--large { flex-direction: column; }
    .featured-card--large .featured-card__image-wrap { width: 100%; aspect-ratio: 16/9; }
    .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
    .trust-bar__inner { gap: var(--space-xl); }
    .trust-bar__divider { display: none; }
    .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .author-bio__inner { flex-direction: column; }
    .post-header__meta { flex-direction: column; align-items: flex-start; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .section-header--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero { min-height: 520px; }
    .hero__inner { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }
}

/* ==========================================================================
   28. Ghost Koenig Editor Card Styles
   Required by GScan: .kg-width-wide, .kg-width-full, and card variants
   ========================================================================== */

/* Width modifiers — applied to any card inside .gh-content */
.gh-content .kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw * .85);
    transform: translateX(calc(50vw - 50%));
}

.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* --------------------------------------------------------------------------
   Image card
   -------------------------------------------------------------------------- */
.kg-image-card { margin: 0 auto; }
.kg-image-card img { margin: 0 auto; }
.kg-image-card figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-muted);
    padding: var(--space-sm) 0;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Gallery card
   -------------------------------------------------------------------------- */
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 4px; margin-bottom: 4px; }
.kg-gallery-image { flex: 1 1 auto; overflow: hidden; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Bookmark card
   -------------------------------------------------------------------------- */
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
    display: flex;
    min-height: 148px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.kg-bookmark-container:hover { border-color: var(--color-gold-light); box-shadow: var(--shadow-md); }
.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-lg);
}
.kg-bookmark-title { font-weight: 600; font-size: 0.9375rem; color: var(--color-navy); margin-bottom: var(--space-xs); }
.kg-bookmark-description { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.55; margin-bottom: var(--space-md); }
.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-muted);
}
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail {
    position: relative;
    min-width: 160px;
    max-height: 148px;
    overflow: hidden;
    flex-shrink: 0;
}
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Callout card
   -------------------------------------------------------------------------- */
.kg-callout-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--color-offwhite);
    border-left: 3px solid var(--color-gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-xl) 0;
}
.kg-callout-card-white { background: var(--color-white); border: 1px solid var(--color-border); border-left: 3px solid var(--color-gold); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.kg-callout-emoji { font-size: 1.375rem; flex-shrink: 0; line-height: 1; }
.kg-callout-text { font-size: 0.9375rem; line-height: 1.65; color: var(--color-text); }

/* --------------------------------------------------------------------------
   Toggle card
   -------------------------------------------------------------------------- */
.kg-toggle-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-lg) 0;
}
.kg-toggle-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    background: var(--color-offwhite);
}
.kg-toggle-heading-text { font-size: 1rem; color: var(--color-navy); }
.kg-toggle-content {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
}
.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-content { display: block; }
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }

/* --------------------------------------------------------------------------
   Video card
   -------------------------------------------------------------------------- */
.kg-video-card { position: relative; }
.kg-video-card video { width: 100%; display: block; border-radius: var(--radius-md); }

/* --------------------------------------------------------------------------
   Audio card
   -------------------------------------------------------------------------- */
.kg-audio-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-offwhite);
}
.kg-audio-thumbnail { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.kg-audio-player-container { flex: 1; }
.kg-audio-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--space-xs); }
.kg-audio-player { width: 100%; }

/* --------------------------------------------------------------------------
   File card
   -------------------------------------------------------------------------- */
.kg-file-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-offwhite);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.kg-file-card:hover { border-color: var(--color-gold-light); box-shadow: var(--shadow-sm); }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-weight: 600; font-size: 0.9375rem; color: var(--color-navy); }
.kg-file-card-caption { font-size: 0.8125rem; color: var(--color-muted); margin-top: 2px; }
.kg-file-card-metadata { font-size: 0.8125rem; color: var(--color-muted); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */
.kg-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.kg-product-card-image { width: 100%; object-fit: cover; }
.kg-product-card-title { font-size: 1.25rem; font-weight: 700; padding: var(--space-lg) var(--space-lg) 0; }
.kg-product-card-rating { padding: 0 var(--space-lg); }
.kg-product-card-description { padding: var(--space-sm) var(--space-lg) var(--space-lg); color: var(--color-text-light); }
.kg-product-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 var(--space-lg) var(--space-lg);
    padding: 0.65rem 1.5rem;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}
.kg-product-card-button:hover { background: var(--color-gold-dark); color: var(--color-white); }

/* --------------------------------------------------------------------------
   Header card
   -------------------------------------------------------------------------- */
.kg-header-card {
    padding: var(--space-5xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.kg-header-card h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); color: inherit; }
.kg-header-card p { font-size: 1.0625rem; margin-top: var(--space-md); opacity: 0.8; }
.kg-header-card-button {
    margin-top: var(--space-xl);
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: opacity var(--transition);
}
.kg-header-card-button:hover { opacity: 0.88; }

/* --------------------------------------------------------------------------
   Button card
   -------------------------------------------------------------------------- */
.kg-button-card { display: flex; }
.kg-button-card a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.kg-button-card a:hover { background: var(--color-gold-dark); color: var(--color-white); }

/* --------------------------------------------------------------------------
   Divider / HR card
   -------------------------------------------------------------------------- */
.kg-divider { border: none; border-top: 1px solid var(--color-border); margin: var(--space-3xl) 0; }

/* --------------------------------------------------------------------------
   NFT / Embed cards
   -------------------------------------------------------------------------- */
.kg-nft-card, .kg-embed-card { margin: var(--space-xl) auto; }
.kg-embed-card iframe { display: block; width: 100%; border: none; }

/* --------------------------------------------------------------------------
   Signup card (Ghost Members)
   -------------------------------------------------------------------------- */
.kg-signup-card {
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
    background: var(--color-navy);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}
.kg-signup-card h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.kg-signup-card p { color: rgba(255,255,255,0.7); margin-bottom: var(--space-xl); }
.kg-signup-card form { display: flex; gap: var(--space-sm); max-width: 460px; margin: 0 auto; }
.kg-signup-card input[type="email"] {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}
.kg-signup-card input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }

/* --------------------------------------------------------------------------
   Header centering layout (custom setting)
   -------------------------------------------------------------------------- */
.site-header--centered .site-header__inner { justify-content: center; flex-wrap: wrap; }
.site-header--centered .site-nav { flex: none; order: 3; width: 100%; }
.site-header--centered .site-nav__list { justify-content: center; }
.site-header--centered .site-header__brand { order: 1; margin: 0 auto; }
.site-header--centered .site-header__actions { order: 2; margin-left: 0; }

/* ---- Navigation fix ---- */
.site-header {
    background: var(--color-white) !important;
}
/* Компактные отступы чтобы все пункты меню влезали */
.site-header__inner {
    gap: var(--space-md);
}
.site-nav__list {
    gap: var(--space-md);
    flex-wrap: nowrap;
}
.site-nav__list a,
.site-nav__list a:visited {
    color: var(--color-text) !important;
    white-space: nowrap;
    font-size: 0.8125rem;
}
/* Кнопка написать - компактная */
.site-header__actions .btn--sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Логотип не растягивается */
.site-header__brand {
    flex-shrink: 0;
}
/* Nav занимает только нужное место */
.site-nav {
    flex: 0 1 auto;
}

/* ---- Navigation fix ---- */
.site-header {
    background: var(--color-white) !important;
}
.site-header__inner {
    gap: var(--space-md);
}
.site-nav {
    flex: 0 1 auto;
}
.site-nav__list {
    gap: var(--space-md);
    flex-wrap: nowrap;
}
.site-nav__list a,
.site-nav__list a:visited {
    color: var(--color-text) !important;
    white-space: nowrap;
    font-size: 0.8125rem;
}
.site-header__brand {
    flex-shrink: 0;
}
.site-header__actions {
    flex-shrink: 0;
}
.site-header__actions .btn--sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}
