/* blog-post: page-specific styles from the design */
/* ==================== Reading progress ==================== */
    .progress { position: fixed; left: 0; right: 0; top: var(--hh); z-index: 40; height: 3px; background: transparent; pointer-events: none; }
    .progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background-image: var(--gold); }

    /* ==================== Article header ==================== */
    .ar-head { padding-bottom: clamp(140px, 16vw, 230px); text-align: center; }
    .ar-head .crumbs { justify-content: center; }
    .ar-cat { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--mint-line); color: var(--ink); text-decoration: none; }
    .ar-cat:hover { border-color: var(--ink); }
    .ar-head h1 { margin: 22px auto 0; max-width: 17em; font-size: clamp(38px, 4.6vw, 66px); font-weight: 500; line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
    .byline { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 28px; font-size: 15px; color: var(--teal); }
    .byline__who { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
    .byline__av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
    .byline__av img { width: 22px; filter: brightness(0) invert(1); }
    .byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mint-2); }
    .ar-cover { position: relative; z-index: 2; margin-top: calc(-1 * clamp(110px, 13vw, 190px)); }
    .ar-cover figure { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9.5; box-shadow: 0 40px 80px -48px rgba(20,64,62,.6); background: var(--mint); }
    .ar-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
    @media (max-width: 640px) { .byline .dot:first-of-type { display: none; } .byline__who { flex-basis: 100%; } .ar-cover figure { aspect-ratio: 4 / 3; } .ar-head { text-align: left; } .ar-head .crumbs, .byline { justify-content: flex-start; } }

    /* ==================== Layout: TOC + reading column ==================== */
    .ar-wrap { display: grid; grid-template-columns: 250px minmax(0, 70ch); gap: clamp(40px, 6vw, 104px); justify-content: center; padding-block: clamp(56px, 6vw, 88px) clamp(72px, 8vw, 112px); }
    .toc { position: sticky; top: calc(var(--hh) + 32px); align-self: start; }
    .toc h2 { font-size: 13px; font-weight: 600; color: var(--teal); margin-bottom: 12px; }
    .toc ol { counter-reset: t; border-left: 1px solid var(--hairline); }
    .toc li { counter-increment: t; }
    .toc a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--teal); text-decoration: none; transition: color .2s, border-color .2s; }
    .toc a::before { content: counter(t, decimal-leading-zero); font-size: 12px; color: var(--mint-2); font-weight: 700; padding-top: 1px; }
    .toc a:hover { color: var(--ink); }
    .toc a[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--gold-line); }
    .toc a[aria-current="true"]::before { color: var(--gold-line); }
    .toc__cta { margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--mint); }
    .toc__cta p { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
    .toc__cta .btn { margin-top: 14px; width: 100%; }
    .toc-m { display: none; }
    @media (max-width: 1080px) {
      .ar-wrap { grid-template-columns: minmax(0, 70ch); }
      .toc { display: none; }
      .toc-m { display: block; margin-bottom: 36px; border: 1px solid var(--mint-line); border-radius: var(--r); background: var(--white); }
      .toc-m summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; font-weight: 600; color: var(--ink); }
      .toc-m summary::-webkit-details-marker { display: none; }
      .toc-m summary svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
      .toc-m[open] summary svg { transform: rotate(180deg); }
      .toc-m ol { counter-reset: t; padding: 0 18px 12px; }
      .toc-m li { counter-increment: t; border-top: 1px solid var(--hairline); }
      .toc-m a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 12px 0; font-size: 15px; color: var(--ink); text-decoration: none; }
      .toc-m a::before { content: counter(t, decimal-leading-zero); color: var(--teal); font-size: 13px; font-weight: 700; padding-top: 1px; }
    }

    /* ==================== Read-mode typography ==================== */
    .read { font-size: 19px; line-height: 1.75; color: #24524f; }
    .read > * + * { margin-top: 1.15em; }
    .read p { text-wrap: pretty; }
    .read .intro { font-size: clamp(21px, 1.7vw, 24px); line-height: 1.55; color: var(--ink); letter-spacing: -0.005em; }
    .read h2 { margin-top: 2.6em; font-size: clamp(28px, 2.5vw, 36px); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; scroll-margin-top: calc(var(--hh) + 28px); }
    .read h2 + * { margin-top: .8em; }
    .read a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
    .read a:not(.btn):hover { text-decoration-thickness: 2px; }
    .read strong { color: var(--ink); font-weight: 600; }

    .overview { margin-top: 2em !important; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--mint); }
    .overview h2 { margin: 0 !important; font-size: 15px !important; letter-spacing: 0 !important; font-weight: 700 !important; color: var(--teal) !important; scroll-margin-top: 0; }
    .overview ul { margin-top: 14px; display: grid; gap: 12px; }
    .overview li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--ink); }
    .overview svg { width: 22px; height: 22px; margin-top: 2px; color: var(--teal); }

    .read .pq { margin: 1.1em 0 .7em !important; padding: 0; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
    .read .pq::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 22px; background: var(--gold-line); }

    .read figure.inset { float: right; width: min(46%, 330px); margin: .4em 0 1em 32px; }
    .read figure.inset img { width: 100%; border-radius: var(--r); aspect-ratio: 350 / 234; object-fit: cover; }
    .read figure.inset figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--teal); }
    @media (max-width: 640px) { .read figure.inset { float: none; width: 100%; max-width: 350px; margin: 1.4em 0; } }

    .steps { counter-reset: s; display: grid; gap: 0; }
    .steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hairline); font-size: 17px; line-height: 1.55; color: var(--ink); }
    .steps li:last-child { border-bottom: 1px solid var(--hairline); }
    .steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1px solid var(--mint-line); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }

    .stat-callout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 24px 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--hairline); }
    .stat-callout b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 4.4vw, 60px); line-height: .9; color: var(--ink); white-space: nowrap; }
    .stat-callout span { font-size: 16px; line-height: 1.5; color: var(--teal); }
    @media (max-width: 520px) { .stat-callout { grid-template-columns: 1fr; gap: 10px; } }

    .book-card { margin-top: 2em !important; padding: clamp(28px, 3.4vw, 40px); border-radius: var(--r-lg); background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
    .book-card h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.15; color: #fff; }
    .book-card p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--foot-text); }
    .book-card .btn-row { flex-direction: column; }
    .book-card .btn--ghost { --_bd: rgba(255,255,255,.4); }
    @media (max-width: 640px) { .book-card { grid-template-columns: 1fr; } .book-card .btn-row { flex-direction: row; } }

    .read .acc { margin-top: 1em; }
    .read .acc summary h3 { font-size: 20px; }
    .read .acc .acc__body { padding-right: 0; }

    .refs { counter-reset: r; display: grid; gap: 10px; }
    .refs li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; font-size: 14px; line-height: 1.55; color: var(--teal); overflow-wrap: anywhere; }
    .refs li::before { content: counter(r) "."; font-weight: 700; color: var(--ink); }
    .read .refs a { color: var(--teal); }

    .ar-foot { margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; }
    .ar-foot .who { display: flex; align-items: center; gap: 14px; color: var(--teal); line-height: 1.4; }
    .ar-foot .who b { display: block; color: var(--ink); }

    /* ==================== Related ==================== */
    .rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .rel a { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
    .rel a:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(20,64,62,.55); }
    .rel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
    .rel span { display: block; padding: 20px 22px 24px; }
    .rel small { font-size: 13px; color: var(--teal); }
    .rel b { display: block; margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.3; }
    @media (max-width: 860px) { .rel { grid-template-columns: 1fr; } }
