/* Self-hosted variable fonts; licenses are in ../fonts/. */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public-site type system. Loaded after page styles to cover legacy inline heading styles. */
:root {
    --font-heading: 'Source Serif 4', Georgia, Cambria, serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-synthesis: none;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.25;
    font-optical-sizing: auto;
}

button, input, select, textarea, .btn, .cv-btn, .home-hero-btn, .header, .footer,
.blog-hero-label, .blog-tab, .page-number, .page-btn,
.breadcrumbs, .stk-breadcrumbs, .stk-eyebrow, .stk-card-cat,
.single-post-category, .single-post-meta, .post-tags, .post-share-bar,
.sidebar, .faq-question, .faq-answer, .inline-toc, .stk-tabs {
    font-family: var(--font-body) !important;
}

button, .btn, .cv-btn, .home-hero-btn, .blog-tab, .page-number, .page-btn, .nav-links a, .meta-item a, .sidebar-list a,
.single-post-category, .faq-question, .share-btn, .post-tags span {
    font-weight: 600 !important;
}

.sidebar :is(h2, h3, h4), .footer :is(h2, h3, h4),
.inline-toc h2, .faq-question, .cd-nl-section h2 {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.45;
}

strong, b {
    font-weight: 600;
}

.single-post-body strong, .single-post-body b,
.rich-text-content strong, .global-typography strong {
    font-weight: 600 !important;
}

.single-post-title {
    max-width: none;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em !important;
}

.single-layout {
    justify-content: space-between;
}

.single-layout > .single-post {
    font-size: 1.125rem;
    max-width: none; /* fills the global container next to the fixed-width sidebar */
    margin-inline: 0;
}

.single-post-body, .rich-text-content, .global-typography {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
}

.single-post-body {
    max-width: none;
    margin-inline: 0;
}

.rich-text-content :is(p, li, blockquote),
.global-typography :is(p, li, blockquote) {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

.rich-text-content :is(p, blockquote), .global-typography :is(p, blockquote) {
    margin-bottom: 1.1em;
}

.single-post-body :is(h2, h3, h4) {
    margin-top: 1.6em;
    margin-bottom: 0.65em;
    line-height: 1.3;
}

.single-post-body h2 { font-size: 1.75rem; }
.single-post-body h3 { font-size: 1.4rem; }
.single-post-body h4 { font-size: 1.2rem; }

.stk-card-body h3, .blog-card h3, .blog-post-body h3, .post-card h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em !important;
}

.stk-card-desc {
    font-size: 1rem;
    line-height: 1.6;
}

.single-post-body table, .rich-text-content table, .global-typography table {
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 0.9375rem;
}

.single-post-body table :is(th, td, p, li),
.rich-text-content table :is(th, td, p, li),
.global-typography table :is(th, td, p, li) {
    font-size: 0.9375rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums lining-nums;
}

.single-post-body table th { font-weight: 600; }
.single-post-body table td { font-weight: 400; }

.post-image-credit { margin: -24px 0 32px; font-size: 0.8125rem; line-height: 1.5; color: #64748b; }
.single-post-body .post-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.single-post-body .post-table-scroll:focus-visible { outline: 3px solid #B9531F; outline-offset: 3px; }
.single-post-body .post-table-scroll table {
    display: table;
    width: 100%;
    min-width: 680px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0;
    overflow: visible;
}
.single-post-body .post-table-scroll :is(th, td) {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    white-space: normal;
}
.single-post-body .post-table-scroll th { background: #0B1F33; color: #fff; font-weight: 600; }
.single-post-body .post-table-scroll th :is(p, strong, a) { color: inherit; }
.single-post-body .post-table-scroll td { color: #334155; }
.single-post-body .post-table-scroll tbody tr:nth-child(even) { background: #f1f5f9; }
.single-post-body .post-table-scroll tbody tr:hover { background: #FFF3EB; }
.single-post-body .post-table-scroll td:first-child { font-weight: 600; }
.single-post-body .post-table-scroll tr > :last-child { border-right: 0; }
.single-post-body .post-table-scroll tbody tr:last-child td { border-bottom: 0; }
.single-post-body .post-takeaway {
    margin: 26px 0;
    padding: 22px 24px;
    border: 1px solid #F9C9A8;
    border-left: 4px solid #B9531F;
    border-radius: 14px;
    background: linear-gradient(120deg, #FFF3EB, #f8fafc);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.post-takeaway-label { margin-bottom: 10px; color: #A8481B; font: 600 0.8125rem/1.5 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.post-takeaway-label strong { color: inherit; }
.single-post-body .post-takeaway-copy :is(p, blockquote) { margin: 0 0 12px; color: #334155; font-style: normal; }
.single-post-body .post-takeaway-copy > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
    .single-post-body .post-takeaway { padding: 18px; }
    .single-post-body .post-table-scroll :is(th, td) { padding: 12px; }
}

.single-post-body .inline-toc :is(h2, li, a) {
    font-family: var(--font-body) !important;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.single-post-body .inline-toc h2 { margin: 0 !important; }
.faq-question { font-size: 1rem !important; line-height: 1.5; }
.faq-answer, .sidebar-list a { font-size: 1rem !important; line-height: 1.65 !important; }

.post-tags .post-tag { max-width: 100%; overflow-wrap: anywhere; }
.post-tags .post-tag:hover { background: #e2e8f0; color: #A8481B; }
.post-tags .post-tag:focus-visible, .post-author-bio a:focus-visible,
.stock-related-inline a:focus-visible, .stock-related-card a:focus-visible {
    outline: 3px solid #B9531F;
    outline-offset: 4px;
}

.post-author-bio {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    margin: 32px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.post-author-avatar { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.post-author-initial { display: grid; place-items: center; background: #FDE4D3; color: #A8481B; font-weight: 600; font-size: 1.5rem; }
.post-author-label, .stock-related-inline > span, .stock-related-copy > span {
    display: block;
    font-family: var(--font-body);
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.post-author-bio h2 { margin: 4px 0 8px; font-size: 1.5rem; }
.post-author-bio p { font-size: 1rem; line-height: 1.65; margin: 0 0 10px; color: #475569; }
.post-author-bio .post-author-credentials { font-size: 0.875rem; color: #B4501F; font-weight: 600; }
.post-author-link { color: #B4501F; font-size: 0.875rem; font-weight: 600; }
.post-author-bio a:hover { text-decoration: underline; }
.post-author-bio .author-portrait-note, .author-profile-copy .author-portrait-note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 10px;
}

.single-post-body .stock-related-inline {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 3px solid #B9531F;
    border-radius: 0 10px 10px 0;
    background: #f1f5f9;
}
.single-post-body .stock-related-inline a {
    display: inline-block;
    margin-top: 5px;
    color: #A8481B;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.stock-related-posts { margin: 32px 0 0; padding: 0; }
.stock-related-posts > h2 { font-size: 1.75rem; margin: 0 0 20px; }
.stock-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stock-related-card { min-width: 0; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: white; }
.stock-related-image { display: block; aspect-ratio: 16 / 9; background: #f8fafc; }
.stock-related-image img { width: 100%; height: 100%; object-fit: cover; }
.stock-related-copy { padding: 18px; }
.stock-related-copy h3 { font-size: 1.2rem; line-height: 1.35; margin: 8px 0; }
.stock-related-copy h3 a:hover { color: #B4501F; text-decoration: underline; }
.stock-related-copy p { color: #475569; font-size: 0.9375rem; line-height: 1.6; margin: 0; }

@media (max-width: 1024px) {
    .single-layout { display: block !important; }
    .single-layout > .single-post { margin-inline: 0; }
    .single-layout > .sidebar {
        width: 100% !important;
        max-width: none;
        flex-basis: auto !important;
        margin: 32px 0 0;
    }
}

@media (max-width: 640px) {
    .post-author-bio { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 12px; }
    .post-author-avatar { width: 48px; height: 48px; }
    .stock-related-grid { grid-template-columns: minmax(0, 1fr); }
    .single-post-title { font-size: 2rem; line-height: 1.17; }
    .single-post-body h2 { font-size: 1.5rem; }
    .single-post-body h3 { font-size: 1.3rem; }
    .single-post-body, .rich-text-content, .global-typography,
    .rich-text-content :is(p, li, blockquote),
    .global-typography :is(p, li, blockquote) {
        font-size: 1.0625rem;
        line-height: 1.7;
    }
    .single-post-body table :is(th, td, p, li),
    .rich-text-content table :is(th, td, p, li),
    .global-typography table :is(th, td, p, li) { font-size: 0.9375rem; }
    .single-post-body .inline-toc :is(h2, li, a) { font-size: 0.9375rem; }
}


/* ── Brand links and focus (CoinDecimal Burnt Orange) ──
   Body-copy links use the accessible orange (--brand-link, 5.1:1 on white); the pure brand orange is kept for fills and accents. */
.single-post-body :is(p, li, td, th, blockquote, figcaption) a:not(.btn):not([class*="btn"]),
.rich-text-content :is(p, li, td, blockquote) a:not(.btn):not([class*="btn"]):not(.contact-card) {
    color: var(--brand-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.single-post-body :is(p, li, td, th, blockquote, figcaption) a:not(.btn):hover,
.rich-text-content :is(p, li, td, blockquote) a:not(.btn):hover { color: var(--brand-primary-hover); }
.single-post-body :is(p, li, td) a:visited:not(.btn),
.rich-text-content :is(p, li, td) a:visited:not(.btn) { color: #8A3A15; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 2px; }
.footer a:focus-visible, .nl-section-inner a:focus-visible { outline-color: var(--brand-on-dark); }
