/* Blog posts and blog category indexes (fam-blog). Loaded after v3.css and v3-content.css
   on every blog page and on blog.html (whose own rules are in css/pages/blog.css).
   Two post templates exist: the standard one (388 posts: .article-hero, .article-body,
   .sidebar-column) and an older one (7 posts in blog/*.html: .page-header, .article-content).
   Some rules need !important because v3-content.css styles callout boxes through a
   selector with ten :not() clauses, which no ordinary selector can outrank. */

:root.fam-blog body { --bl-measure: 68ch; --bl-red: #B5452F; --bl-green: #1F7A5C; }

/* ===================================================================
   POSTS: hero
   =================================================================== */
:root.fam-blog body .article-hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
:root.fam-blog body .article-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(rgba(7,24,39,.045) 1px, transparent 1px) 0 0 / 100% 64px;
}
:root.fam-blog body .article-hero .container { position: relative; }
:root.fam-blog body .hero-category {
    display: inline-flex; align-items: center; gap: 12px; background: none; padding: 0; margin: 0 0 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--blue-text);
}
:root.fam-blog body .hero-category::before { content: ""; width: 28px; height: 2px; background: currentColor; }
:root.fam-blog body .hero-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; max-width: 17em; margin: 14px 0 18px; }
:root.fam-blog body .hero-description { font-size: 20px; line-height: 1.55; max-width: 36em; margin: 0; }
:root.fam-blog body .hero-meta { gap: 0; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 40em; }
:root.fam-blog body .hero-meta-item { font-weight: 500; color: var(--ink-2); }
:root.fam-blog body .hero-meta-item + .hero-meta-item { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--rule); }
:root.fam-blog body .hero-meta-item svg { color: var(--blue-text); }

/* breadcrumb strip under the hero */
:root.fam-blog body .breadcrumb-section { padding: 12px 0; background: #fff; }
:root.fam-blog body .breadcrumb-section .breadcrumb { margin: 0; font-size: 13px; }
:root.fam-blog body .breadcrumb-section .breadcrumb > span:last-child {
    max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2);
}

/* ===================================================================
   POSTS: layout
   =================================================================== */
:root.fam-blog body main.container { padding-top: 56px; padding-bottom: 96px; }
:root.fam-blog body .main-content { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
:root.fam-blog body .article-column { min-width: 0; }

/* ===================================================================
   POSTS: long-form typography (both templates)
   =================================================================== */
:root.fam-blog body :is(.article-body, .article-content) {
    max-width: var(--bl-measure); font-size: 18px; line-height: 1.75; color: var(--ink-2);
    font-feature-settings: "kern", "liga"; hanging-punctuation: first;
}
:root.fam-blog body :is(.article-body, .article-content) > p:first-child,
:root.fam-blog body .article-content > .article-meta + p {
    font-size: 20px; line-height: 1.65; color: var(--ink);
}
:root.fam-blog body :is(.article-body, .article-content) :is(p, ul, ol) { margin: 0 0 20px; }
:root.fam-blog body :is(.article-body, .article-content) h2 {
    font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; margin: 56px 0 16px; scroll-margin-top: 100px;
}
:root.fam-blog body :is(.article-body, .article-content) h2::before {
    content: ""; display: block; width: 32px; height: 2px; background: var(--blue); margin-bottom: 16px;
}
:root.fam-blog body :is(.article-body, .article-content) h3 {
    font-size: 22px; line-height: 1.3; margin: 36px 0 10px; scroll-margin-top: 100px;
}
:root.fam-blog body :is(.article-body, .article-content) h4 {
    font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--navy); margin: 28px 0 8px;
}
:root.fam-blog body :is(.article-body, .article-content) strong { color: var(--ink); font-weight: 600; }
:root.fam-blog body :is(.article-body, .article-content) :is(ul, ol) { padding-left: 1.4em; }
:root.fam-blog body :is(.article-body, .article-content) li { margin-bottom: 8px; padding-left: 4px; }
:root.fam-blog body :is(.article-body, .article-content) li::marker { color: var(--blue); }
:root.fam-blog body :is(.article-body, .article-content) ol li::marker { font-weight: 700; font-size: .92em; }
:root.fam-blog body :is(.article-body, .article-content) li > :is(ul, ol) { margin: 8px 0 0; }
:root.fam-blog body :is(.article-body, .article-content) a:not([class*="btn"]) {
    color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; text-decoration-color: rgba(23,102,195,.4);
}
:root.fam-blog body :is(.article-body, .article-content) a:not([class*="btn"]):hover { text-decoration-color: currentColor; }
:root.fam-blog body :is(.article-body, .article-content) hr { margin: 48px 0 28px; border: 0; border-top: 1px solid var(--rule); }
:root.fam-blog body :is(.article-body, .article-content) hr + p > em:only-child { font-size: 14px; color: var(--ink-3); }
:root.fam-blog body :is(.article-body, .article-content) blockquote {
    font-family: var(--serif); font-size: 22px; line-height: 1.5; font-style: italic; color: var(--navy);
    border-left: 3px solid var(--gold); margin: 36px 0; padding: 4px 0 4px 24px;
}
:root.fam-blog body :is(.article-body, .article-content) sup { font-size: .7em; line-height: 0; }

/* "Key Takeaways" section in the standard posts: the list becomes a summary panel */
:root.fam-blog body .article-body h2#key-takeaways + :is(ul, ol) {
    background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--level-2);
    padding: 22px 26px 10px 46px; margin-bottom: 28px;
}
:root.fam-blog body .article-body h2#key-takeaways + ul > li::marker { content: "\2713  "; color: var(--level-2); font-weight: 700; }

/* tables: scroll sideways inside the column instead of widening the page */
:root.fam-blog body :is(.article-body, .article-content) table {
    width: 100%; margin: 28px 0 32px; font-size: 15px; line-height: 1.5; background: #fff;
    border: 1px solid var(--rule); border-collapse: collapse; font-variant-numeric: tabular-nums;
}
:root.fam-blog body :is(.article-body, .article-content) th {
    background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em;
    padding: 12px 16px; text-align: left; white-space: nowrap;
}
:root.fam-blog body :is(.article-body, .article-content) td { padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); min-width: 7em; }
:root.fam-blog body :is(.article-body, .article-content) tr:last-child td { border-bottom: 0; }
:root.fam-blog body :is(.article-body, .article-content) td:first-child { color: var(--ink); font-weight: 500; }

/* code */
:root.fam-blog body :is(.article-body, .article-content) :not(pre) > code {
    font-size: .86em; padding: 2px 6px; background: var(--cloud); border: 1px solid var(--rule); border-radius: 3px; color: var(--navy);
    overflow-wrap: anywhere;
}
:root.fam-blog body :is(.article-body, .article-content) pre {
    position: relative; margin: 28px 0 32px; padding: 22px 24px; border-radius: 4px;
    background: #0B1F33; color: #DCE6F0; border: 1px solid #0B1F33;
    font: 14px/1.65 ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
    overflow-x: auto; tab-size: 4; box-shadow: inset 3px 0 0 var(--blue);
}
:root.fam-blog body :is(.article-body, .article-content) pre code { font: inherit; color: inherit; background: none; border: 0; padding: 0; white-space: pre; }
:root.fam-blog body :is(.article-body, .article-content) pre:has(code[class*="language-"])::before {
    position: absolute; top: 0; right: 0; padding: 4px 10px; font: 600 10px/1.4 var(--sans);
    letter-spacing: .14em; text-transform: uppercase; color: #9FB0C2; background: rgba(255,255,255,.06);
}
:root.fam-blog body :is(.article-body, .article-content) pre:has(code[class*="language-"]) { padding-top: 36px; }
:root.fam-blog body pre:has(code.language-python)::before { content: "Python"; }
:root.fam-blog body pre:has(code.language-mql5)::before { content: "MQL5"; }
:root.fam-blog body pre:has(code.language-bash)::before { content: "Shell"; }
:root.fam-blog body pre:has(code.language-ini)::before { content: "Config"; }
:root.fam-blog body pre:has(code.language-R)::before { content: "R"; }

/* ===================================================================
   POSTS: callout boxes
   =================================================================== */
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .tip-box, .key-takeaway, .pro-box, .con-box, .info-box, .example-box, .verdict-box, .pattern-box, .emotion-box, .formula-box) {
    margin: 32px 0 !important; padding: 22px 26px !important; border: 1px solid var(--rule) !important;
    border-left: 3px solid var(--blue) !important; background: #fff !important; color: var(--ink-2);
    font-size: 16.5px; line-height: 1.65; border-radius: 0 3px 3px 0;
}
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .con-box) { border-left-color: var(--bl-red) !important; background: #FCF6F4 !important; }
:root.fam-blog body :is(.article-body, .article-content) :is(.tip-box, .pro-box, .key-takeaway, .verdict-box) { border-left-color: var(--level-2) !important; background: #F3F9F6 !important; }
:root.fam-blog body :is(.article-body, .article-content) :is(.info-box, .example-box, .pattern-box) { background: var(--cloud) !important; }
:root.fam-blog body :is(.article-body, .article-content) .emotion-box { border-left-color: var(--level-3) !important; background: #FBF7EF !important; }
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .tip-box, .key-takeaway, .pro-box, .con-box, .info-box, .example-box, .verdict-box, .pattern-box, .emotion-box, .formula-box) > :last-child { margin-bottom: 0; }
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .tip-box, .key-takeaway, .pro-box, .con-box, .info-box, .example-box, .verdict-box, .pattern-box, .emotion-box, .formula-box) :is(h3, h4):first-child { margin-top: 0; }
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .tip-box, .key-takeaway, .pro-box, .con-box, .info-box, .example-box, .verdict-box, .pattern-box, .emotion-box) p { margin-bottom: 10px; }
:root.fam-blog body :is(.article-body, .article-content) .warning-box > strong:first-child { color: var(--bl-red); }
:root.fam-blog body :is(.article-body, .article-content) :is(.tip-box, .key-takeaway, .pro-box) > strong:first-child { color: var(--bl-green); }
/* formula: a navy panel, like a figure in the books */
:root.fam-blog body :is(.article-body, .article-content) .formula-box {
    background: var(--navy) !important; border-color: var(--navy) !important; border-left: 3px solid var(--gold) !important; color: #fff;
    font-family: var(--sans) !important;
}
:root.fam-blog body :is(.article-body, .article-content) .formula-box :is(h3, h4) { color: var(--blue-light); }
:root.fam-blog body :is(.article-body, .article-content) :is(.formula-box .formula, .formula) {
    font: 600 17px/1.5 ui-monospace, Consolas, monospace; color: #fff;
}
:root.fam-blog body :is(.article-body, .article-content) .example-box .formula {
    color: var(--navy); background: #fff; border: 1px solid var(--rule); padding: 10px 14px; margin-top: 12px;
}

/* closing disclaimer inside the post */
:root.fam-blog body :is(.article-body, .article-content) .disclaimer {
    margin: 40px 0 0 !important; padding: 16px 20px !important; font-size: 14px; line-height: 1.6;
    background: transparent !important; border: 1px solid var(--rule) !important; border-left: 3px solid var(--bl-red) !important;
    color: var(--ink-3);
}
:root.fam-blog body :is(.article-body, .article-content) .disclaimer strong { color: var(--ink-2); }

/* ===================================================================
   POSTS: prev / next, related
   =================================================================== */
:root.fam-blog body .article-nav { max-width: var(--bl-measure); margin: 48px 0 0; gap: 16px; }
:root.fam-blog body .article-nav .nav-link { position: relative; padding: 20px 22px 22px; border-radius: 2px; }
:root.fam-blog body .article-nav .nav-link:hover { box-shadow: 0 18px 30px -24px rgba(7,24,39,.5); }
:root.fam-blog body .article-nav .nav-link.next:only-child { grid-column: 2; }
:root.fam-blog body .nav-title { font-size: 18px; line-height: 1.3; }

/* the standard template prints "Related Articles" twice: inside the column and again
   below <main>. Keep the one in the column. */
:root.fam-blog body main:has(.article-column .related-section) ~ section.related-section { display: none; }
:root.fam-blog body .related-section { max-width: var(--bl-measure); margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--rule); }
:root.fam-blog body .related-title { font-size: 26px; margin: 0 0 22px; }
:root.fam-blog body .related-section .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
:root.fam-blog body .related-card { display: flex; flex-direction: column; padding: 20px 20px 18px; color: var(--ink); }
:root.fam-blog body .related-card-category { align-self: flex-start; background: none; padding: 0; margin-bottom: 10px; font-size: 10.5px; }
:root.fam-blog body .related-card-title { font-size: 17px; line-height: 1.3; margin: 0 0 14px; flex: 1; color: var(--navy); }
:root.fam-blog body .related-card:hover .related-card-title { color: var(--blue-text); }
:root.fam-blog body .related-card-meta { font-size: 13px; color: var(--ink-3); }

/* ===================================================================
   POSTS: sidebar
   =================================================================== */
:root.fam-blog body .sidebar-column > :first-child { position: static; }
:root.fam-blog body .sidebar-column { position: relative; }
:root.fam-blog body .sidebar-column .sidebar-widget:last-child { position: sticky; top: 100px; }
:root.fam-blog body .sidebar-widget { padding: 24px 24px 18px; border-radius: 2px; }
:root.fam-blog body .sidebar-title { font-size: 18px; }
:root.fam-blog body .sidebar-list a { font-size: 14.5px; line-height: 1.45; padding: 11px 0; color: var(--ink); }
:root.fam-blog body .sidebar-list a:hover { color: var(--blue-text); }
:root.fam-blog body .sidebar-widget:has(.btn-subscribe) {
    background: var(--navy); border-color: var(--navy); border-left: 3px solid var(--gold); padding-bottom: 24px;
}
:root.fam-blog body .sidebar-widget:has(.btn-subscribe) .sidebar-title { color: #fff; border-bottom-color: rgba(255,255,255,.14); }
:root.fam-blog body .sidebar-widget:has(.btn-subscribe) p { color: #C7D6E2 !important; font-size: 15px !important; }
:root.fam-blog body .sidebar-widget .btn-subscribe { width: 100%; background: #fff; color: var(--navy); border-color: #fff; }
:root.fam-blog body .sidebar-widget .btn-subscribe:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy); }

/* ===================================================================
   POSTS + INDEXES: closing call to action, with its risk line
   =================================================================== */
:root.fam-blog body :is(.cta-section, section.cta) { padding: 88px 0; }
:root.fam-blog body :is(.cta-section, section.cta) h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
:root.fam-blog body :is(.cta-section, section.cta) p { max-width: 44em; margin: 0 0 26px; }
:root.fam-blog body :is(.cta-section, section.cta) .container > a { margin: 0 10px 10px 0 !important; }
:root.fam-blog body section.cta-section a.btn-cta.btn-cta-secondary { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
:root.fam-blog body section.cta-section a.btn-cta.btn-cta-secondary:hover { background: #fff !important; color: var(--navy) !important; }
:root.fam-blog body :is(.cta-section, section.cta) .container::after {
    content: "Trading foreign exchange on margin carries a high level of risk and may not be suitable for everyone. You can lose more than you deposit. The articles are education, not financial advice.";
    display: block; max-width: 52em; margin-top: 22px; font-size: 13px; line-height: 1.6; color: #9FB0C2;
}

/* ===================================================================
   OLDER TEMPLATE (blog/*.html): one centred reading column
   =================================================================== */
:root.fam-blog body:has(.article-content) .page-header .container,
:root.fam-blog body .about-section:has(.article-content) .container { max-width: calc(var(--bl-measure) + 48px + 120px); }
:root.fam-blog body:has(.article-content) .page-header h1 { font-size: clamp(34px, 4.4vw, 54px); }
:root.fam-blog body .about-section:has(.article-content) { padding: 48px 0 96px !important; }
:root.fam-blog body .article-content { margin: 0; }
:root.fam-blog body .article-content .article-meta {
    display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-3);
    padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--rule);
}
:root.fam-blog body .article-content .article-cta {
    margin: 48px 0 32px; padding: 30px 32px; background: var(--navy); color: #fff; border-left: 3px solid var(--gold);
}
:root.fam-blog body .article-content .article-cta h3 { color: #fff; margin: 0 0 8px; }
:root.fam-blog body .article-content .article-cta p { color: #C7D6E2; margin: 0 0 20px; }
:root.fam-blog body .article-content .article-cta .btn { background: #fff; color: var(--navy); border-color: #fff; text-decoration: none; }
:root.fam-blog body .article-content .article-cta .btn:hover { background: var(--blue-light); border-color: var(--blue-light); }
:root.fam-blog body .article-content .related-articles { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
:root.fam-blog body .article-content .related-articles h3 { margin-top: 0; }
:root.fam-blog body .article-content .related-list { list-style: none; padding: 0; }
:root.fam-blog body .article-content .related-list li { padding: 0; border-bottom: 1px solid var(--rule); margin: 0; }
:root.fam-blog body .article-content .related-list a { display: block; padding: 12px 0; text-decoration: none !important; font-family: var(--serif); font-size: 18px; color: var(--navy) !important; }
:root.fam-blog body .article-content .related-list a::after { content: " \2192"; color: var(--blue-text); }
:root.fam-blog body .article-content .author-box { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--rule); padding: 22px; margin: 40px 0; }

/* ===================================================================
   CATEGORY INDEXES (blog/<category>/index.html)
   =================================================================== */
:root.fam-blog body .category-hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
:root.fam-blog body .category-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(rgba(7,24,39,.045) 1px, transparent 1px) 0 0 / 100% 64px;
}
:root.fam-blog body .category-hero .container { position: relative; }
:root.fam-blog body .category-hero .hero-content { display: block; }
:root.fam-blog body .category-hero .hero-text::before {
    content: "Article library"; display: block; padding-left: 40px;
    background: linear-gradient(currentColor, currentColor) 0 50% / 28px 2px no-repeat;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 16px;
}
:root.fam-blog body .category-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 0 0 18px; }
:root.fam-blog body .category-hero .hero-text p { font-size: 19px; line-height: 1.55; max-width: 36em; color: var(--ink-2); margin: 0 0 24px; }
:root.fam-blog body .category-hero .article-count {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border: 1px solid var(--rule);
    border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy);
}
:root.fam-blog body .category-hero .article-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--level-2); }

:root.fam-blog body .articles-section { padding: 72px 0 104px; }
:root.fam-blog body .articles-section .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
:root.fam-blog body .articles-section .blog-card {
    position: relative; border-radius: 0; padding: 0;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
:root.fam-blog body .articles-section .blog-card::before {
    content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--blue);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 1;
}
:root.fam-blog body .articles-section .blog-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -28px rgba(7,24,39,.45); border-color: transparent; }
:root.fam-blog body .articles-section .blog-card:hover::before { transform: scaleX(1); }
:root.fam-blog body .articles-section .blog-card:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
:root.fam-blog body .articles-section .blog-card-content { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 20px; }
:root.fam-blog body .articles-section .blog-card-category {
    align-self: flex-start; background: none; padding: 0; margin-bottom: 14px; font-size: 11px;
    display: inline-flex; gap: 8px; align-items: center;
}
:root.fam-blog body .articles-section .blog-card-category::before { content: ""; width: 18px; height: 2px; background: currentColor; }
:root.fam-blog body .articles-section .blog-card h3 { font-size: 21px; line-height: 1.28; margin: 0 0 10px; color: var(--navy); }
:root.fam-blog body .articles-section .blog-card:hover h3 { color: var(--blue-text); }
:root.fam-blog body .articles-section .blog-card p { font-size: 15px; line-height: 1.6; margin: 0 0 20px; flex: 1; }
:root.fam-blog body .articles-section .blog-card-meta {
    display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--rule);
    font-size: 13px; color: var(--ink-3);
}
/* the whole card is the link: "Read More" stretches over it */
:root.fam-blog body .articles-section .blog-card .read-more { font-size: 14px; }
:root.fam-blog body .articles-section .blog-card .read-more::after { content: ""; position: absolute; inset: 0; z-index: 2; }
:root.fam-blog body .articles-section .blog-card .read-more:focus-visible { outline: 0; }

/* ===================================================================
   responsive
   =================================================================== */
@media (max-width: 1080px) {
    :root.fam-blog body .main-content { gap: 48px; grid-template-columns: minmax(0, 1fr) 260px; }
    :root.fam-blog body .articles-section .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    :root.fam-blog body .main-content { grid-template-columns: minmax(0, 1fr); }
    :root.fam-blog body .sidebar-column .sidebar-widget:last-child { position: static; }
    :root.fam-blog body .sidebar-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    :root.fam-blog body .sidebar-widget { margin: 0; }
    :root.fam-blog body .related-section .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    :root.fam-blog body .container { padding: 0 16px; }
    :root.fam-blog body .article-hero { padding: 36px 0 32px; }
    :root.fam-blog body .hero-title { font-size: 32px; }
    :root.fam-blog body .hero-description { font-size: 17.5px; }
    :root.fam-blog body .hero-meta-item + .hero-meta-item { margin-left: 14px; padding-left: 14px; }
    :root.fam-blog body .breadcrumb-section .breadcrumb > span:last-child { max-width: 22ch; }
    :root.fam-blog body main.container { padding-top: 32px; padding-bottom: 64px; }
    :root.fam-blog body :is(.article-body, .article-content) { font-size: 17px; line-height: 1.7; }
    :root.fam-blog body :is(.article-body, .article-content) > p:first-child,
    :root.fam-blog body .article-content > .article-meta + p { font-size: 18px; }
    :root.fam-blog body :is(.article-body, .article-content) h2 { font-size: 25px; margin-top: 44px; }
    :root.fam-blog body :is(.article-body, .article-content) h3 { font-size: 20px; }
    :root.fam-blog body :is(.article-body, .article-content) table { display: block; width: max-content; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
    :root.fam-blog body :is(.article-body, .article-content) :is(th, td) { padding: 10px 12px; }
    :root.fam-blog body :is(.article-body, .article-content) pre { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 18px 16px; font-size: 13px; }
    :root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .tip-box, .key-takeaway, .pro-box, .con-box, .info-box, .example-box, .verdict-box, .pattern-box, .emotion-box, .formula-box) { padding: 18px 18px !important; font-size: 16px; }
    :root.fam-blog body .article-body h2#key-takeaways + :is(ul, ol) { padding: 18px 18px 6px 36px; }
    :root.fam-blog body .article-nav { grid-template-columns: 1fr; }
    :root.fam-blog body .article-nav .nav-link.next:only-child { grid-column: 1; }
    :root.fam-blog body .related-section .related-grid, :root.fam-blog body .sidebar-column { grid-template-columns: 1fr; }
    :root.fam-blog body :is(.cta-section, section.cta) { padding: 64px 0; }
    :root.fam-blog body .category-hero { padding: 36px 0 44px; }
    :root.fam-blog body .articles-section { padding: 40px 0 72px; }
    :root.fam-blog body .articles-section .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    :root.fam-blog body .articles-section .blog-card-content { padding: 22px 20px 18px; }
    :root.fam-blog body .about-section:has(.article-content) { padding: 32px 0 64px !important; }
    :root.fam-blog body .article-content .article-cta { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    :root.fam-blog body .articles-section .blog-card, :root.fam-blog body .articles-section .blog-card::before { transition: none; }
}
@media print {
    :root.fam-blog body :is(.sidebar-column, .related-section, .article-nav, .cta-section, .breadcrumb-section) { display: none !important; }
    :root.fam-blog body .main-content { display: block; }
    :root.fam-blog body :is(.article-body, .article-content) { max-width: none; font-size: 12pt; }
}
