*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%
}

/* ── CSS VARIABLES ── */
:root {
    --gold: #F5A623;
    --gold-dark: #C8841A;
    --gold-light: #FFD080;
    --green: #00B67A;
    --blue: #4A9EFF;
    --red: #FF6B6B;
    --dark: #0A0E1A;
    --dark-2: #131929;
    --dark-3: #1C2438;
    --dark-4: #252E45;
    --dark-5: #2F3A55;
    --text: #E8EDF8;
    --text-muted: #8A96B0;
    --text-dim: #5A6480;
    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 166, 35, 0.30);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
    --shadow-gold: 0 8px 32px rgba(245, 166, 35, 0.20);
    --content-width: 720px;
    --sidebar-width: 300px;
}

/* ── BODY & BACKGROUND ── */
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(245, 166, 35, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 182, 122, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, var(--dark-2) 0%, var(--dark) 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ── LAYOUT ── */
.site-wrap {
    position: relative;
    z-index: 1
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

.container-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px
}

/* ── NAV ── */
.site-header {
    /* padding: 20px 0 0; */
    position: relative;
    z-index: 10
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(19, 25, 41, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    position: fixed;
    z-index: 100;
    top: 10px;
    
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.logo span {
    color: var(--gold)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px
}

.nav-link {
    color: var(--text-muted);
    font-size: .82rem;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: all .2s
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--dark-4)
}

.nav-link.active {
    color: var(--gold)
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-size: .8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all .2s;
    margin-left: 46vw;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold)
}

/* ── BREADCRUMB ── */
.breadcrumb {
    font-size: .75rem;
    color: var(--text-dim);
    margin: 14px 0 0;
    position: relative;
    z-index: 1;
    margin-top: 90px;
}

.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none
}

.breadcrumb a:hover {
    color: var(--gold)
}

.breadcrumb span {
    margin: 0 6px
}

/* ── POST LAYOUT: two-col ── */
.post-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 40px;
    padding: 40px 0 80px;
    align-items: start;
}

/* ── ARTICLE ── */
/* article.post {} */

/* POST HEADER */
.post-header {
    margin-bottom: 36px
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.post-cat {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 4px 12px;
    border-radius: 50px;
}

.cat-gst {
    background: rgba(245, 166, 35, 0.15);
    color: var(--gold)
}

.cat-bas {
    background: rgba(0, 182, 122, 0.15);
    color: var(--green)
}

.cat-business {
    background: rgba(74, 158, 255, 0.15);
    color: var(--blue)
}

.cat-tips {
    background: rgba(255, 140, 99, 0.15);
    color: #FFAA80
}

.cat-invoice {
    background: rgba(200, 99, 255, 0.15);
    color: #D0AAFF
}

.post-date,
.post-read {
    font-size: .75rem;
    color: var(--text-dim)
}

.post-date::before {
    content: '📅 '
}

.post-read::before {
    content: '⏱ '
}

.post-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: 18px;
}

.post-title .accent {
    color: var(--gold)
}

.post-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
    border-left: 3px solid var(--gold);
    padding-left: 18px;
    margin-bottom: 24px;
}

/* AUTHOR ROW */
.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: .85rem;
    color: var(--dark);
    flex-shrink: 0;
}

/* .author-info {} */

.author-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text)
}

.author-role {
    font-size: .72rem;
    color: var(--text-dim)
}

.author-updated {
    margin-left: auto;
    font-size: .72rem;
    color: var(--text-dim);
    text-align: right
}

/* TABLE OF CONTENTS */
.toc {
    background: var(--dark-3);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    margin-bottom: 36px;
}

.toc-title {
    font-family: 'Syne', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toc ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.toc li {
    font-size: .82rem;
    color: var(--text-muted)
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s
}

.toc a:hover {
    color: var(--gold)
}

/* ── ARTICLE BODY CONTENT ── */
.post-body {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.8;
    font-weight: 300
}

.post-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -.015em;
    margin: 42px 0 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.post-body h2:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0
}

.post-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 10px;
    letter-spacing: -.01em;
}

.post-body h4 {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 8px
}

.post-body p {
    margin-bottom: 18px
}

.post-body p:last-child {
    margin-bottom: 0
}

.post-body strong {
    color: var(--text);
    font-weight: 600
}

.post-body em {
    font-style: italic;
    color: var(--text)
}

.post-body a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, .4)
}

.post-body a:hover {
    text-decoration-color: var(--gold)
}

/* LISTS */
.post-body ul,
.post-body ol {
    padding-left: 0;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none
}

.post-body ul li,
.post-body ol li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .93rem;
    line-height: 1.65;
}

.post-body ul li::before {
    content: '→';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .05em;
    font-size: .85rem;
}

.post-body ol {
    counter-reset: ol-counter
}

.post-body ol li {
    counter-increment: ol-counter
}

.post-body ol li::before {
    content: counter(ol-counter);
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245, 166, 35, .15);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1em;
}

/* FORMULA / CODE BOX */
.formula-box {
    background: var(--dark-3);
    border: 1px solid var(--border-gold);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 22px 0;
}

.formula-box .formula-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.formula-box code {
    font-family: 'Fira Mono', 'Courier New', monospace;
    font-size: .88rem;
    color: var(--gold-light);
    line-height: 1.6;
    display: block;
}

.formula-box .formula-eg {
    font-size: .78rem;
    color: var(--text-dim);
    margin-top: 8px
}

/* CALLOUT BOXES */
.callout {
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin: 24px 0;
    display: flex;
    gap: 14px
}

.callout-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .05em
}

/* .callout-body {} */

.callout-title {
    font-family: 'Syne', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 5px
}

.callout-text {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.65
}

.callout.info {
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2)
}

.callout.info .callout-title {
    color: var(--blue)
}

.callout.tip {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid var(--border-gold)
}

.callout.tip .callout-title {
    color: var(--gold)
}

.callout.warning {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25)
}

.callout.warning .callout-title {
    color: var(--red)
}

.callout.success {
    background: rgba(0, 182, 122, 0.08);
    border: 1px solid rgba(0, 182, 122, 0.25)
}

.callout.success .callout-title {
    color: var(--green)
}

/* TABLES */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border)
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem
}

.post-body thead th {
    background: var(--dark-3);
    padding: 11px 14px;
    text-align: left;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.post-body tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.post-body tbody tr:last-child td {
    border-bottom: none
}

.post-body tbody tr:hover td {
    background: var(--dark-3);
    color: var(--text)
}

.badge-taxable {
    background: rgba(245, 166, 35, 0.15);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600
}

.badge-free {
    background: rgba(0, 182, 122, 0.15);
    color: var(--green);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600
}

/* STAT CARDS */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0
}

.stat-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    text-align: center;
}

.stat-card-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card-label {
    font-size: .72rem;
    color: var(--text-dim);
    line-height: 1.4
}

/* STEP CARDS */
.step-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0
}

.step-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color .2s;
}

.step-card:hover {
    border-color: var(--border-gold)
}

.step-num {
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px
}

.step-content p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0
}

/* KEY TAKEAWAY */
.key-takeaway {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(200, 132, 26, 0.05));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin: 28px 0;
}

.key-takeaway-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.key-takeaway p {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    font-weight: 400
}

/* INLINE CALCULATOR CTA */
.inline-calc {
    background: var(--dark-3);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.inline-calc-icon {
    font-size: 2rem;
    flex-shrink: 0
}

/* .inline-calc-text {} */

.inline-calc-text strong {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--text)
}

.inline-calc-text span {
    font-size: .8rem;
    color: var(--text-muted)
}

.inline-calc-btn {
    margin-left: auto;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}

.inline-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold)
}

/* POST FOOTER */
.post-footer-box {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 48px;
}

.post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.post-tag {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: .7rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: all .2s;
}

.post-tag:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.share-label {
    font-size: .75rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em
}

.share-btn {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--gold);
    color: var(--gold)
}

/* ATO DISCLAIMER */
.ato-disclaimer {
    background: rgba(245, 166, 35, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 20px;
    font-size: .75rem;
    color: var(--text-dim);
    line-height: 1.6;
    text-align: center;
}

.ato-disclaimer a {
    color: var(--gold);
    text-decoration: none
}

/* RELATED POSTS */
.related-section {
    margin-top: 48px
}

.related-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.related-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
    display: block;
}

.related-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px)
}

.related-cat {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold);
    margin-bottom: 6px
}

.related-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 6px
}

.related-card span {
    font-size: .7rem;
    color: var(--text-dim)
}

/* ── SIDEBAR ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px
}

.sidebar-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-family: 'Syne', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-card-body {
    padding: 16px 18px
}

/* CALC CTA in sidebar */
.sc-calc {
    border-color: var(--border-gold)
}

.sc-calc .sidebar-card-header {
    background: rgba(245, 166, 35, 0.06);
    color: var(--gold)
}

.calc-mini-display {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: .78rem;
}

.cmd-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px
}

.cmd-row:last-child {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px solid var(--border)
}

.cmd-label {
    color: var(--text-dim)
}

.cmd-value {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--gold)
}

.cmd-value.green {
    color: var(--green)
}

.sidebar-btn {
    display: block;
    width: 100%;
    padding: 11px;
    text-align: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold)
}

/* POPULAR IN SIDEBAR */
.popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.popular-item {
    display: flex;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit
}

.popular-item:hover .pt {
    color: var(--gold)
}

.pn {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-5);
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
}

.popular-item:nth-child(1) .pn {
    color: var(--gold)
}

.popular-item:nth-child(2) .pn {
    color: var(--gold-dark)
}

.popular-item:nth-child(3) .pn {
    color: var(--text-dim)
}

.pt {
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-muted);
    transition: color .15s
}

.pm {
    font-size: .68rem;
    color: var(--text-dim);
    margin-top: 2px
}

/* NEWSLETTER in sidebar */
.nl-form {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.nl-input {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    outline: none;
    transition: border-color .2s;
}

.nl-input:focus {
    border-color: var(--gold)
}

.nl-input::placeholder {
    color: var(--text-dim)
}

.nl-p {
    font-size: .7rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.5
}

/* ADZONE — AdSense blocks */
.ad-zone {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-zone::before {
    content: 'Advertisement';
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ad-zone .ad-inner {
    margin-top: 14px;
    width: 100%
}

.ad-zone.ad-banner {
    min-height: 100px
}

/* 728×90 leaderboard slot */
.ad-zone.ad-rect {
    min-height: 260px
}

/* 300×250 rectangle slot  */
.ad-zone.ad-inline {
    min-height: 100px
}

/* in-content 336×280      */

/* ── PROGRESS BAR (reading indicator) ── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 999;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark), var(--green));
    transition: width .1s linear;
}

/* ── BACK TO TOP ── */
.back-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    transition: all .2s;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto
}

.back-top:hover {
    transform: translateY(-3px)
}

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem
}

.footer-logo span {
    color: var(--gold)
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center
}

.footer-links a {
    color: var(--text-dim);
    font-size: .8rem;
    text-decoration: none;
    transition: color .2s
}

.footer-links a:hover {
    color: var(--gold)
}

.footer-copy {
    color: var(--text-dim);
    font-size: .75rem
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .5s ease forwards
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.d1 {
    animation-delay: .05s
}

.d2 {
    animation-delay: .12s
}

.d3 {
    animation-delay: .2s
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .sidebar {
        position: static
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr
    }

    .related-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    .nav-links .nav-link:not(.active) {
        display: none
    }

    .post-title {
        font-size: 1.6rem
    }

    .stat-cards {
        grid-template-columns: 1fr
    }

    .field-row {
        grid-template-columns: 1fr
    }

    .inline-calc {
        flex-direction: column
    }

    .inline-calc-btn {
        margin-left: 0;
        width: 100%;
        text-align: center
    }

    .ad-zone.ad-banner {
        min-height: 60px
    }
}

@media(max-width:400px) {

    .container,
    .container-narrow {
        padding: 0 14px
    }

    .nav {
        padding: 12px 16px
    }
}

/* ── PRINT ── */
@media print {

    body::before,
    body::after,
    .sidebar,
    .back-top,
    .reading-progress,
    .ad-zone {
        display: none !important
    }

    .post-layout {
        grid-template-columns: 1fr
    }

    body {
        background: #fff;
        color: #111
    }

    .post-body h2,
    .post-body h3 {
        color: #111
    }

    .post-body p,
    .post-body li {
        color: #333
    }
}