/* ============================================================
   ETCTAX — Corporate Tax Consultant Theme for Ghost v5
   Color Reference: Direktorat Jenderal Pajak (pajak.go.id)
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
    /* DJP Color Palette */
    --djp-navy:         #003580;   /* Primary navy blue */
    --djp-navy-deep:    #002060;   /* Deeper navy */
    --djp-navy-light:   #004FB4;   /* Lighter navy */
    --djp-blue:         #0068B4;   /* Medium blue */
    --djp-blue-light:   #E8F1FB;   /* Very light blue tint */
    --djp-gold:         #F5A623;   /* Gold accent */
    --djp-gold-dark:    #D4881C;   /* Darker gold */
    --djp-gold-light:   #FEF3DC;   /* Gold tint */
    --djp-red:          #C0392B;   /* Government red (alert) */

    /* Semantic Colors */
    --color-primary:        var(--djp-navy);
    --color-primary-hover:  var(--djp-navy-deep);
    --color-secondary:      var(--djp-blue);
    --color-accent:         var(--djp-gold);
    --color-accent-hover:   var(--djp-gold-dark);

    /* Text */
    --text-primary:     #0D1B2A;
    --text-secondary:   #3A4A5C;
    --text-muted:       #6B7C93;
    --text-light:       #9BAFC4;

    /* Backgrounds */
    --bg-white:         #FFFFFF;
    --bg-light:         #F5F7FA;
    --bg-lighter:       #EEF2F7;
    --bg-blue-tint:     var(--djp-blue-light);
    --bg-gold-tint:     var(--djp-gold-light);
    --bg-dark:          var(--djp-navy);
    --bg-deeper:        var(--djp-navy-deep);

    /* Borders */
    --border-light:     #DDE3EC;
    --border-medium:    #C4CDD8;
    --border-accent:    var(--djp-gold);

    /* Shadows */
    --shadow-xs:    0 1px 3px rgba(0,53,128,.08);
    --shadow-sm:    0 2px 8px rgba(0,53,128,.10);
    --shadow-md:    0 4px 16px rgba(0,53,128,.12);
    --shadow-lg:    0 8px 32px rgba(0,53,128,.14);
    --shadow-xl:    0 16px 48px rgba(0,53,128,.18);

    /* Typography */
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Source Sans 3', 'Helvetica Neue', sans-serif;
    --font-mono:     'JetBrains Mono', 'Courier New', monospace;

    /* 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;

    /* Layout */
    --container:      1180px;
    --content-width:  760px;
    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --radius-xl:      20px;
    --radius-full:    9999px;

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Header */
    --header-height: 72px;
}

/* ── 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-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-secondary); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--djp-gold); color: var(--djp-navy-deep); }

/* ── Skip Link (Accessibility) ────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 9999;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--bg-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: .875rem;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: .625rem 1.375rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    transition: background var(--transition-base), color var(--transition-base),
                transform var(--transition-fast), box-shadow var(--transition-base),
                border-color var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--sm { padding: .4375rem 1rem; font-size: .875rem; }
.btn--lg { padding: .875rem 1.875rem; font-size: 1rem; }

.btn--primary {
    background: var(--djp-navy);
    color: #fff;
    border: 2px solid var(--djp-navy);
}
.btn--primary:hover {
    background: var(--djp-navy-deep);
    border-color: var(--djp-navy-deep);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: var(--djp-gold);
    color: var(--djp-navy-deep);
    border: 2px solid var(--djp-gold);
}
.btn--accent:hover {
    background: var(--djp-gold-dark);
    border-color: var(--djp-gold-dark);
    color: var(--djp-navy-deep);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--djp-navy);
    border: 2px solid var(--djp-navy);
}
.btn--outline:hover {
    background: var(--djp-navy);
    color: #fff;
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}

.btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

/* ── Header / Navigation ──────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--djp-navy);
    box-shadow: 0 2px 0 rgba(0,0,0,.12);
}

/* Top accent stripe */
.site-header::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--djp-gold) 0%, var(--djp-gold-dark) 100%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: var(--header-height);
}

/* Logo */
.site-header__logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo { height: 42px; width: auto; }

.site-header__text-logo {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}
.logo-etc { color: #fff; }
.logo-tax { color: var(--djp-gold); }

/* Nav list */
.site-header__nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-list__link {
    display: block;
    padding: .5rem .875rem;
    border-radius: var(--radius-md);
    font-size: .9375rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-list__link:hover,
.nav-list__item.active .nav-list__link {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.nav-list__item.active .nav-list__link {
    color: var(--djp-gold);
}

/* Header actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    background: var(--djp-navy-deep);
    border-top: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-slow);
}
.mobile-nav.is-open { max-height: 400px; }
.mobile-nav__list { padding: var(--space-md) 0; }
.mobile-nav__link {
    display: block;
    padding: .75rem var(--space-xl);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav__link:hover,
.mobile-nav__link.active { color: var(--djp-gold); background: rgba(255,255,255,.05); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--djp-navy-deep) 0%, var(--djp-navy) 50%, var(--djp-blue) 100%);
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,.8) 0px, rgba(255,255,255,.8) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.8) 0px, rgba(255,255,255,.8) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
}

.hero__bg-pattern::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--djp-gold) 0%, transparent 70%);
    opacity: .12;
}

.hero__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--djp-gold);
}
.label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--djp-gold);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.8); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: var(--space-lg);
    letter-spacing: -.02em;
}

.hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255,255,255,.75);
    max-width: 540px;
    margin-bottom: var(--space-2xl);
}

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

/* Stats */
.hero__stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex-shrink: 0;
}

.stat-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 150px;
    transition: background var(--transition-base), border-color var(--transition-base);
}
.stat-card:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.25);
}

.stat-card__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--djp-gold);
    line-height: 1;
    margin-bottom: .25rem;
}
.stat-card__label {
    display: block;
    font-size: .8125rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    letter-spacing: .03em;
}

/* ── Services Strip ───────────────────────────────────────── */
.services-strip {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-lg) 0;
    overflow: hidden;
}
.services-strip__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}
.service-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: .5rem 1.125rem;
    border-radius: var(--radius-full);
    background: var(--bg-blue-tint);
    border: 1px solid rgba(0,104,180,.18);
    font-size: .875rem;
    font-weight: 600;
    color: var(--djp-navy);
    transition: background var(--transition-fast), border-color var(--transition-fast);
    cursor: default;
}
.service-pill:hover {
    background: var(--djp-blue-light);
    border-color: rgba(0,104,180,.3);
}
.service-pill svg { color: var(--djp-blue); flex-shrink: 0; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}
.section-header__label {
    display: inline-block;
    margin-bottom: var(--space-sm);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--djp-gold-dark);
}
.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--djp-navy);
    margin-bottom: var(--space-md);
    letter-spacing: -.02em;
}
.section-header__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Home Posts ───────────────────────────────────────────── */
.home-posts { padding: var(--space-4xl) 0; background: var(--bg-light); }
.home-posts__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ── Post Cards ───────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

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

/* Hero card (first post) */
.post-card--hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
    min-height: 380px;
}
.post-card--hero .post-card__image-link { height: 100%; }
.post-card--hero .post-card__image-wrap { height: 100%; }
.post-card--hero .post-card__image { height: 100%; width: 100%; object-fit: cover; }
.post-card--hero .post-card__content { padding: var(--space-2xl) var(--space-2xl); display: flex; flex-direction: column; justify-content: center; }
.post-card--hero .post-card__title--large { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.25; }
.post-card--hero .post-card__excerpt--long { -webkit-line-clamp: 4; }

.post-card__image-link { display: block; overflow: hidden; flex-shrink: 0; }
.post-card__image-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}
.post-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.post-card:hover .post-card__image { transform: scale(1.04); }

.post-card__featured-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .625rem;
    border-radius: var(--radius-full);
    background: var(--djp-gold);
    color: var(--djp-navy-deep);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
}

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

.post-card__tag {
    display: inline-block;
    margin-bottom: var(--space-sm);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--djp-blue);
    transition: color var(--transition-fast);
}
.post-card__tag:hover { color: var(--djp-navy); }

.post-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    flex: 1;
}
.post-card__title-link { color: inherit; }
.post-card__title-link:hover { color: var(--djp-navy); }

.post-card__excerpt {
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-card__author-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
}
.post-card__author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}
.post-card__author-avatar--fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--djp-navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.post-card__author-name {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-card__date {
    font-size: .8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--djp-navy-deep) 0%, var(--djp-navy) 60%, var(--djp-blue) 100%);
    position: relative;
    overflow: hidden;
}
.cta-section__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
    z-index: 1;
}
.cta-section__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(245,166,35,.12) 0%, transparent 60%);
    pointer-events: none;
}
.cta-section__content { max-width: 640px; }
.cta-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    letter-spacing: -.02em;
}
.cta-section__text {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    margin-bottom: var(--space-2xl);
}
.cta-section__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ── Post Page ────────────────────────────────────────────── */
.post-page { --content-max: 760px; }

.post-header {
    background: linear-gradient(180deg, var(--djp-navy) 0%, var(--djp-navy-deep) 100%);
    padding: var(--space-4xl) 0 var(--space-3xl);
    position: relative;
}
.post-header--no-image { padding-bottom: var(--space-4xl); }
.post-header__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.post-tag-badge {
    display: inline-block;
    margin-bottom: var(--space-lg);
    padding: .3125rem .875rem;
    border-radius: var(--radius-full);
    background: rgba(245,166,35,.18);
    border: 1px solid rgba(245,166,35,.35);
    color: var(--djp-gold);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.post-tag-badge:hover {
    background: rgba(245,166,35,.28);
    border-color: rgba(245,166,35,.5);
    color: var(--djp-gold);
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.875rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: var(--space-lg);
    letter-spacing: -.025em;
}
.post-excerpt {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: rgba(255,255,255,.72);
    margin-bottom: var(--space-xl);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,.12);
}
.post-meta__author { display: flex; align-items: center; gap: var(--space-md); }
.post-meta__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.3);
}
.post-meta__avatar--fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--djp-gold);
    color: var(--djp-navy-deep);
    font-size: 1.125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.2);
}
.post-meta__author-name { font-size: .9375rem; font-weight: 700; color: #fff; }
.post-meta__author-title { font-size: .8125rem; color: rgba(255,255,255,.62); }
.post-meta__details { font-size: .875rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: .5rem; }
.post-meta__sep { opacity: .4; }

.post-feature-image {
    background: var(--djp-navy-deep);
}
.post-feature-image__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.post-feature-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}
.post-feature-image figcaption {
    padding: var(--space-sm) var(--space-xl);
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    text-align: center;
    font-style: italic;
}

/* Post Body Layout (sidebar TOC) */
.post-body { padding: var(--space-4xl) 0; background: var(--bg-white); }
.post-body__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-3xl);
    align-items: start;
}

/* Table of Contents */
.post-toc {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--djp-navy);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-lg);
    order: 2;
    font-size: .875rem;
}
.post-toc__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--djp-navy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}
.post-toc__nav { display: flex; flex-direction: column; gap: .25rem; }
.post-toc__nav a {
    display: block;
    padding: .3125rem .5rem;
    border-radius: var(--radius-sm);
    font-size: .8125rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
    line-height: 1.45;
}
.post-toc__nav a:hover,
.post-toc__nav a.is-active { color: var(--djp-navy); background: var(--bg-blue-tint); }
.post-toc__nav a.toc-h3 { padding-left: 1.25rem; font-size: .8rem; }

/* ── GH Content (Post Content) ───────────────────────────── */
.gh-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--djp-navy);
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-top: 2.25em;
    margin-bottom: .75em;
}
.gh-content h2 {
    font-size: 1.625rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border-light);
}
.gh-content h3 { font-size: 1.25rem; }
.gh-content h4 { font-size: 1.0625rem; }

.gh-content a {
    color: var(--djp-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0,104,180,.3);
    text-underline-offset: 3px;
}
.gh-content a:hover {
    color: var(--djp-navy);
    text-decoration-color: var(--djp-navy);
}

.gh-content strong { font-weight: 700; color: var(--djp-navy-deep); }
.gh-content em { font-style: italic; }

.gh-content ul, .gh-content ol {
    padding-left: 1.75em;
    list-style: revert;
}
.gh-content li + li { margin-top: .5em; }
.gh-content li > ul, .gh-content li > ol { margin-top: .5em; margin-bottom: .5em; }

.gh-content blockquote {
    border-left: 4px solid var(--djp-gold);
    background: var(--bg-gold-tint);
    margin: 2em 0;
    padding: 1.25em 1.5em;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.gh-content blockquote cite {
    display: block;
    margin-top: .75em;
    font-size: .875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--djp-gold-dark);
}

.gh-content pre {
    background: var(--djp-navy-deep);
    border-radius: var(--radius-md);
    padding: 1.5em;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.6;
    color: #e8edf5;
    margin: 2em 0;
}
.gh-content code {
    font-family: var(--font-mono);
    font-size: .875em;
    background: var(--bg-blue-tint);
    color: var(--djp-blue);
    padding: .125em .4em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,104,180,.18);
}
.gh-content pre code { background: none; padding: 0; color: inherit; border: none; font-size: 1em; }

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: .9375rem;
}
.gh-content th {
    background: var(--djp-navy);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: .75rem 1rem;
    font-size: .875rem;
    letter-spacing: .03em;
}
.gh-content td {
    padding: .6875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}
.gh-content tr:nth-child(even) td { background: var(--bg-light); }
.gh-content tr:hover td { background: var(--bg-blue-tint); }

.gh-content figure { margin: 2em 0; }
.gh-content figure img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-md); }
.gh-content figcaption {
    text-align: center;
    font-size: .875rem;
    color: var(--text-muted);
    margin-top: .75rem;
    font-style: italic;
}

.gh-content hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 2.5em 0;
}

/* Callout card (Ghost v5 card) */
.gh-card { border-radius: var(--radius-md); overflow: hidden; }

/* ── Post Footer ──────────────────────────────────────────── */
.post-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: var(--space-2xl) 0;
}
.post-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xl);
    justify-content: space-between;
}

.post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.post-tags__label { font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.post-tag {
    display: inline-block;
    padding: .3rem .875rem;
    border-radius: var(--radius-full);
    background: var(--bg-blue-tint);
    border: 1px solid rgba(0,104,180,.2);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--djp-navy);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.post-tag:hover { background: var(--djp-blue-light); border-color: rgba(0,104,180,.4); color: var(--djp-navy); }

.post-share { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.post-share__label { font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.post-share__buttons { display: flex; gap: var(--space-sm); }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .4375rem 1rem;
    border-radius: var(--radius-md);
    font-size: .8125rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    border: 1px solid transparent;
}
.share-btn:active { transform: scale(.97); }

.share-btn--wa {
    background: #25D366;
    color: #fff;
}
.share-btn--wa:hover { background: #1da851; color: #fff; }

.share-btn--li {
    background: #0A66C2;
    color: #fff;
}
.share-btn--li:hover { background: #004182; color: #fff; }

.share-btn--copy {
    background: var(--bg-lighter);
    color: var(--text-secondary);
    border-color: var(--border-light);
}
.share-btn--copy:hover { background: var(--border-light); color: var(--text-primary); }
.share-btn--copy.copied { background: #d4edda; color: #1b5e20; border-color: #a5d6a7; }

/* ── Author Bio ───────────────────────────────────────────── */
.author-bio { padding: var(--space-3xl) 0; background: var(--bg-white); border-top: 1px solid var(--border-light); }
.author-bio__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-xl); }
.author-bio__card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: var(--bg-blue-tint);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,104,180,.15);
}
.author-bio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--djp-navy);
}
.author-bio__avatar--fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--djp-navy);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-bio__label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--djp-gold-dark); margin-bottom: .25rem; display: block; }
.author-bio__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--djp-navy); margin-bottom: var(--space-sm); }
.author-bio__text { font-size: .9375rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-md); }
.author-bio__link { font-size: .9rem; font-weight: 700; color: var(--djp-blue); }
.author-bio__link:hover { color: var(--djp-navy); }

/* ── Related Posts ────────────────────────────────────────── */
.related-posts { padding: var(--space-3xl) 0 var(--space-4xl); background: var(--bg-light); }
.related-posts__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-xl); }
.related-posts__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--djp-navy);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
    letter-spacing: -.02em;
}
.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* ── Archive / Tag / Author ───────────────────────────────── */
.archive-page {}
.archive-header {
    background: linear-gradient(135deg, var(--djp-navy-deep) 0%, var(--djp-navy) 100%);
    padding: var(--space-3xl) 0;
}
.archive-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}
.archive-header__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.3);
}
.archive-header__type {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--djp-gold);
    margin-bottom: .5rem;
}
.archive-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: -.02em;
}
.archive-header__desc { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 600px; }
.archive-header__count {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: .25rem .75rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.1);
    font-size: .8125rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}

.archive-header--author .archive-header__author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.3);
    flex-shrink: 0;
}
.archive-header--author .archive-header__author-fallback {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--djp-gold);
    color: var(--djp-navy-deep);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archive-posts { padding: var(--space-4xl) 0; background: var(--bg-light); }
.archive-posts__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}
.author-socials { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }
.author-social-link {
    padding: .25rem .75rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.1);
    font-size: .8125rem;
    color: rgba(255,255,255,.8);
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.author-social-link:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Page (static) ────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--djp-navy-deep) 0%, var(--djp-navy) 100%);
    padding: var(--space-4xl) 0 var(--space-3xl);
}
.page-header--no-image { padding-bottom: var(--space-4xl); }
.page-header__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-xl); }
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.2;
}
.page-excerpt { font-size: 1.125rem; color: rgba(255,255,255,.72); margin-top: var(--space-md); line-height: 1.6; }

.page-body { padding: var(--space-4xl) 0; }
.page-body__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-xl); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { padding: var(--space-2xl) var(--space-xl); }
.pagination__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: .5625rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-medium);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--djp-navy);
    background: var(--bg-white);
    transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}
.pagination__btn:hover {
    background: var(--djp-navy);
    border-color: var(--djp-navy);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.pagination__info { font-size: .9375rem; color: var(--text-muted); font-weight: 500; }

/* ── Error Page ───────────────────────────────────────────── */
.error-page {
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
    background: var(--bg-light);
}
.error-page__inner { max-width: 480px; }
.error-page__code {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 700;
    color: var(--djp-navy);
    line-height: 1;
    opacity: .12;
    margin-bottom: -.5rem;
}
.error-page__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--djp-navy);
    margin-bottom: var(--space-md);
}
.error-page__message { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: var(--space-2xl); }

/* ── No Posts ─────────────────────────────────────────────── */
.no-posts { text-align: center; padding: var(--space-4xl); color: var(--text-muted); font-size: 1.0625rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--djp-navy-deep);
    color: rgba(255,255,255,.7);
    padding-top: var(--space-4xl);
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-3xl);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
}

.footer-logo { filter: brightness(10); opacity: .9; height: 40px; width: auto; }
.footer-tagline {
    font-size: .9375rem;
    line-height: 1.65;
    color: rgba(255,255,255,.6);
    margin: var(--space-md) 0;
    max-width: 280px;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: .4375rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(245,166,35,.12);
    border: 1px solid rgba(245,166,35,.25);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--djp-gold);
    margin-top: var(--space-md);
}
.badge-icon { font-size: 1rem; }

.footer-heading {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: var(--space-lg);
}

.footer-nav-list li { margin-bottom: var(--space-sm); }
.footer-nav-list a {
    font-size: .9375rem;
    color: rgba(255,255,255,.68);
    transition: color var(--transition-fast);
}
.footer-nav-list a:hover { color: var(--djp-gold); }

.footer-contact-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.social-link, .contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: .9375rem;
    color: rgba(255,255,255,.68);
    transition: color var(--transition-fast);
}
.social-link:hover { color: var(--djp-gold); }
.contact-item svg { opacity: .6; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.15);
}
.footer-bottom__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.copyright {
    font-size: .875rem;
    color: rgba(255,255,255,.45);
}
.copyright a { color: rgba(255,255,255,.6); text-decoration: underline; }
.copyright a:hover { color: rgba(255,255,255,.9); }

.footer-trust-marks { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.trust-mark {
    padding: .25rem .75rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .post-body__inner { grid-template-columns: 1fr; }
    .post-toc { position: static; order: -1; margin-bottom: var(--space-xl); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; row-gap: var(--space-2xl); }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__stats { flex-direction: row; justify-content: flex-start; }
    .stat-card { min-width: 140px; }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2.25rem;
        --header-height: 64px;
    }

    .site-header__nav, .site-header__actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .mobile-nav { display: block; }

    .hero__inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .hero__stats { flex-direction: row; flex-wrap: wrap; }

    .post-card--hero { grid-template-columns: 1fr; }
    .post-card--hero .post-card__image-link { max-height: 280px; }
    .post-card--hero .post-card__image-wrap { padding-top: 56.25%; position: relative; }

    .posts-grid { grid-template-columns: 1fr; }
    .related-posts__grid { grid-template-columns: 1fr; }

    .site-footer__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom__inner { flex-direction: column; text-align: center; }

    .post-meta { flex-direction: column; align-items: flex-start; gap: var(--space-md); }

    .author-bio__card { flex-direction: column; text-align: center; align-items: center; }

    .post-footer__inner { flex-direction: column; align-items: flex-start; }
    .post-share { flex-wrap: wrap; }

    .archive-header__inner { flex-direction: column; text-align: center; }

    .cta-section__actions { flex-direction: column; }
    .cta-section__actions .btn { justify-content: center; }

    .service-pill { font-size: .8125rem; padding: .4375rem .875rem; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { justify-content: center; }
    .hero__stats { flex-direction: column; }
    .stat-card { text-align: center; }
    .share-btn span { display: none; }
}

/* ── Utility ──────────────────────────────────────────────── */
.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;
}

/* Loading skeleton */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-lighter) 25%, var(--bg-light) 50%, var(--bg-lighter) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--djp-navy);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
    pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--djp-navy-deep); }

/* ============================================================
   KOENIG EDITOR — Required Card CSS (Ghost v5)
   https://ghost.org/docs/themes/content/
   ============================================================ */

/* ── Width modifiers ──────────────────────────────────────── */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 2em calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    margin: 2em calc(50% - 50vw);
}

/* ── Image Card ───────────────────────────────────────────── */
.kg-image-card {
    margin: 2em 0;
}
.kg-image-card img {
    border-radius: var(--radius-lg);
}
.kg-image-card figcaption {
    margin-top: .75rem;
    font-size: .875rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ── Gallery Card ─────────────────────────────────────────── */
.kg-gallery-card {
    margin: 2em 0;
}
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kg-gallery-row {
    display: flex;
    gap: 6px;
}
.kg-gallery-image {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kg-gallery-card figcaption {
    margin-top: .75rem;
    font-size: .875rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ── Embed / Bookmark Card ────────────────────────────────── */
.kg-embed-card {
    margin: 2em 0;
}
.kg-embed-card iframe,
.kg-embed-card video {
    width: 100%;
    border-radius: var(--radius-md);
    border: none;
}

.kg-bookmark-card {
    margin: 2em 0;
}
.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: var(--bg-white);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
    min-height: 140px;
}
.kg-bookmark-container:hover {
    border-color: var(--djp-navy);
    box-shadow: var(--shadow-md);
}
.kg-bookmark-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.kg-bookmark-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}
.kg-bookmark-description {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}
.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.kg-bookmark-icon {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
}
.kg-bookmark-author,
.kg-bookmark-publisher {
    font-size: .8125rem;
    color: var(--text-muted);
    font-weight: 500;
}
.kg-bookmark-author::after { content: ' · '; }
.kg-bookmark-thumbnail {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Callout Card ─────────────────────────────────────────── */
.kg-callout-card {
    margin: 2em 0;
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--bg-blue-tint);
    border-left: 4px solid var(--djp-navy);
}
.kg-callout-card-grey  { background: var(--bg-lighter); border-left-color: var(--border-medium); }
.kg-callout-card-white { background: var(--bg-white); border: 1px solid var(--border-light); border-left: 4px solid var(--djp-navy); }
.kg-callout-card-blue  { background: var(--bg-blue-tint); border-left-color: var(--djp-blue); }
.kg-callout-card-green { background: #f0faf5; border-left-color: #2e7d52; }
.kg-callout-card-yellow { background: var(--bg-gold-tint); border-left-color: var(--djp-gold-dark); }
.kg-callout-card-red   { background: #fdf2f2; border-left-color: #c0392b; }
.kg-callout-card-pink  { background: #fdf2f7; border-left-color: #c0396b; }
.kg-callout-card-purple { background: #f5f2fd; border-left-color: #6c39c0; }

.kg-callout-emoji {
    font-size: 1.375rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.kg-callout-text {
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--text-primary);
}
.kg-callout-text p:first-child { margin-top: 0; }
.kg-callout-text p:last-child  { margin-bottom: 0; }

/* ── Toggle Card ──────────────────────────────────────────── */
.kg-toggle-card {
    margin: 2em 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.kg-toggle-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--space-lg);
    cursor: pointer;
    background: var(--bg-light);
    user-select: none;
    gap: var(--space-md);
}
.kg-toggle-heading-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--djp-navy);
}
.kg-toggle-card-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}
.kg-toggle-card[open] .kg-toggle-card-icon {
    transform: rotate(180deg);
}
.kg-toggle-content {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-light);
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.kg-toggle-content p:first-child { margin-top: 0; }
.kg-toggle-content p:last-child  { margin-bottom: 0; }

/* ── Button Card ──────────────────────────────────────────── */
.kg-button-card {
    margin: 2em 0;
    display: flex;
}
.kg-button-card a {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-md);
    background: var(--djp-navy);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-base), box-shadow var(--transition-base);
    letter-spacing: .01em;
}
.kg-button-card a:hover {
    background: var(--djp-navy-deep);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* ── NFT Card ─────────────────────────────────────────────── */
.kg-nft-card {
    margin: 2em 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
}
.kg-nft-card a {
    display: block;
    text-decoration: none;
}
.kg-nft-image { width: 100%; }
.kg-nft-metadata { padding: var(--space-lg); }
.kg-nft-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .25rem; }
.kg-nft-description { font-size: .875rem; color: var(--text-secondary); }

/* ── Product Card ─────────────────────────────────────────── */
.kg-product-card {
    margin: 2em 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl);
    gap: var(--space-md);
}
.kg-product-card-image { max-width: 200px; border-radius: var(--radius-md); }
.kg-product-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--djp-navy); }
.kg-product-card-description { font-size: .9375rem; color: var(--text-secondary); line-height: 1.6; }
.kg-product-card-rating-star { fill: var(--djp-gold); }
.kg-product-card-btn {
    display: inline-flex;
    align-items: center;
    padding: .625rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--djp-navy);
    color: #fff;
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-base);
}
.kg-product-card-btn:hover { background: var(--djp-navy-deep); color: #fff; }

/* ── Header Card ──────────────────────────────────────────── */
.kg-header-card {
    margin: 2em 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--djp-navy-deep), var(--djp-blue));
    position: relative;
    overflow: hidden;
}
.kg-header-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    letter-spacing: -.02em;
}
.kg-header-card p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.78);
    max-width: 560px;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}
.kg-header-card .kg-btn {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.875rem;
    border-radius: var(--radius-md);
    background: var(--djp-gold);
    color: var(--djp-navy-deep);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-base);
}
.kg-header-card .kg-btn:hover { background: var(--djp-gold-dark); }

/* ── Signup Card ──────────────────────────────────────────── */
.kg-signup-card {
    margin: 2em 0;
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--bg-blue-tint);
    border: 1px solid rgba(0,104,180,.15);
    text-align: center;
}
.kg-signup-card h2 {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--djp-navy);
    margin-bottom: var(--space-sm);
}
.kg-signup-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}
.kg-signup-card input[type="email"] {
    padding: .6875rem 1.125rem;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-white);
    width: 100%;
    max-width: 360px;
    margin-bottom: var(--space-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.kg-signup-card input[type="email"]:focus {
    outline: none;
    border-color: var(--djp-blue);
    box-shadow: 0 0 0 3px rgba(0,104,180,.15);
}
.kg-signup-card button[type="submit"] {
    padding: .6875rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--djp-navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background var(--transition-base);
}
.kg-signup-card button[type="submit"]:hover { background: var(--djp-navy-deep); }

/* ── Video Card ───────────────────────────────────────────── */
.kg-video-card {
    margin: 2em 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}
.kg-video-card video {
    width: 100%;
    display: block;
}
.kg-video-card figcaption {
    padding: .625rem var(--space-md);
    font-size: .875rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    background: var(--bg-light);
}

/* ── Audio Card ───────────────────────────────────────────── */
.kg-audio-card {
    margin: 2em 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    padding: var(--space-lg);
}

/* ── File Card ────────────────────────────────────────────── */
.kg-file-card {
    margin: 2em 0;
}
.kg-file-card a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    text-decoration: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-fast);
}
.kg-file-card a:hover {
    border-color: var(--djp-navy);
    box-shadow: var(--shadow-md);
    background: var(--bg-blue-tint);
}
.kg-file-card-icon svg { color: var(--djp-navy); flex-shrink: 0; }
.kg-file-card-contents { flex: 1; min-width: 0; }
.kg-file-card-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--djp-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kg-file-card-caption { font-size: .8125rem; color: var(--text-muted); margin-top: 2px; }
.kg-file-card-metadata {
    font-size: .8125rem;
    color: var(--text-muted);
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--space-sm);
}
.kg-file-card-size { font-weight: 600; }

/* ── Code Card ────────────────────────────────────────────── */
.kg-code-card {
    margin: 2em 0;
}
.kg-code-card pre {
    border-radius: var(--radius-lg);
    overflow-x: auto;
}
.kg-code-card figcaption {
    margin-top: .5rem;
    font-size: .8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── HR Card ──────────────────────────────────────────────── */
.kg-divider-card {
    margin: 2.5em 0;
    border: none;
    border-top: 2px solid var(--border-light);
}

/* ── Related posts card ───────────────────────────────────── */
.kg-related-card { margin: 2em 0; }

/* ── Paywall ──────────────────────────────────────────────── */
.kg-paywall-card {
    margin: 2em 0;
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--djp-navy-deep), var(--djp-navy));
    text-align: center;
    color: #fff;
}
.kg-paywall-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.kg-paywall-card p { color: rgba(255,255,255,.75); margin-bottom: var(--space-xl); line-height: 1.6; }

/* ── Responsive Koenig ────────────────────────────────────── */
@media (max-width: 1200px) {
    .kg-width-wide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .kg-width-full {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .kg-bookmark-thumbnail {
        display: none;
    }
    .kg-product-card {
        padding: var(--space-xl) var(--space-lg);
    }
}
