/* Blog listing, article reader, plain pages, contact, 404. Loaded after site.css. Light theme only. */

/* Breadcrumbs: quiet */
.crumbs { font-size: 13px; color: var(--text-3); padding: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span { margin: 0; }
.crumbs [aria-current] { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- Blog listing ---------- */
.list-head { margin: 4px 0 22px; }
.list-head h1 { margin-bottom: 6px; }
.list-head .lead { margin: 0 0 16px; font-size: 18px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; white-space: nowrap; scroll-snap-align: start; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chips-scroll .chip:not(.on):hover { background: var(--surface-solid); color: var(--text); }
@media (min-width: 861px) { .chips-scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0; } }

.post-card.is-featured { display: grid; grid-template-columns: 1fr; margin-bottom: 20px; border-radius: var(--radius-lg); }
.post-card.is-featured .post-card-img img { aspect-ratio: 16 / 9; height: 100%; }
.post-card.is-featured .post-card-body { padding: 20px 22px 24px; gap: 8px; justify-content: center; }
.post-card.is-featured .post-card-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.022em; }
.post-card.is-featured p { font-size: 17px; }
@media (min-width: 720px) {
  .post-card.is-featured { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .post-card.is-featured .post-card-img img { aspect-ratio: auto; min-height: 320px; object-fit: cover; }
  .post-card.is-featured .post-card-body { padding: 32px 34px; }
}
.post-card-img img { transition: transform 0.5s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.03); }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.pager .btn { min-width: 104px; }
.pager-count { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; padding: 0 4px; }

/* ---------- Article page ---------- */
.reading-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 31; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; border-radius: 0 3px 3px 0; will-change: transform; }

.post-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 760px) 280px; justify-content: space-between; } }
.article-head { margin-bottom: 18px; }
.article-head .eyebrow { display: inline-block; margin-bottom: 8px; }
.article-head .eyebrow:hover { color: var(--accent-hover); }
.article-head h1 { margin-bottom: 12px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--text-2); font-size: 14px; }
.article-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-head .meta a { color: var(--text); font-weight: 600; text-decoration: none; }
.article-head .meta a:hover { color: var(--accent); }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 22px; margin: 4px 0 22px; border: 1px solid var(--glass-edge); box-shadow: var(--shadow-1); }
@media (min-width: 700px) { .hero-img { border-radius: 28px; } }

/* TOC: sticky frosted card (desktop), collapsed details (phones) */
.post-side { min-width: 0; align-self: stretch; }
.toc { position: sticky; top: 92px; padding: 18px 18px 14px; font-size: 14.5px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); max-height: calc(100vh - 116px); overflow-y: auto; }
.toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--hairline); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-mobile { display: none; }
@media (max-width: 999px) {
  .post-side { display: none; }
  .toc-mobile { display: block; padding: 0; margin: 0 0 22px; border-radius: 18px; }
  .toc-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary svg { color: var(--text-3); transition: transform 0.25s var(--ease); }
  .toc-mobile[open] summary svg { transform: rotate(90deg); }
  .toc-mobile ol { margin: 0; padding: 0 16px 12px 40px; font-size: 16px; }
  .toc-mobile li { margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
  .toc-mobile li::marker { color: var(--text-3); font-size: 13px; }
  .toc-mobile a { display: block; padding: 11px 0; color: var(--text); text-decoration: none; line-height: 1.35; }
  .toc-mobile a:hover { color: var(--accent); }
}

/* Share row */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 32px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); }
.share-label { font-size: 14px; font-weight: 600; color: var(--text-2); margin-right: auto; }
.share-status { min-width: 0; }

/* CTA: glass panel */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 28px 0 8px; padding: 24px 26px; border-radius: var(--radius-lg); }
.cta strong { font-size: 20px; letter-spacing: -0.015em; }
.cta p { margin: 4px 0 0; font-size: 16px; }
@media (max-width: 560px) { .cta { padding: 20px; } .cta .btn { width: 100%; } }

/* Author box */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 28px 0 0; padding: 20px; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.author-text { min-width: 0; }
.author-name { display: block; font-size: 19px; margin: 2px 0 6px; letter-spacing: -0.01em; }
.author-box p { margin: 0 0 6px; font-size: 15.5px; color: var(--text-2); }
.author-links { font-size: 14.5px; }
.author-links a { font-weight: 600; }

/* Related */
.related { margin-top: 36px; }

/* ---------- Prose: infographic styling (articles and plain pages) ---------- */
.article .prose { font-size: 18px; line-height: 1.72; overflow-wrap: break-word; min-width: 0; }
.article .prose > :first-child { margin-top: 0; }
.article .prose p { margin: 0 0 18px; }
.post-layout .prose > p:first-child { font-size: clamp(19px, 2.4vw, 21px); line-height: 1.55; color: var(--text); letter-spacing: -0.008em; }
.article .prose h2 { margin: 52px 0 14px; scroll-margin-top: 96px; }
.article .prose h3 { margin: 32px 0 10px; scroll-margin-top: 96px; }
.article .prose :is(h2, h3)[id] { scroll-margin-top: 96px; }
.article .prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: rgba(29, 95, 208, 0.4); text-underline-offset: 3px; transition: text-decoration-color 0.2s, color 0.2s; }
.article .prose a:hover { text-decoration-color: currentColor; }
.article .prose strong { font-weight: 700; color: var(--text); }
.article .prose img { display: block; border-radius: 18px; margin: 22px 0; border: 1px solid var(--hairline); }

/* Unordered lists: small accent markers */
.article .prose ul { list-style: none; padding: 0; margin: 0 0 20px; }
.article .prose ul > li { position: relative; padding-left: 26px; margin: 8px 0; }
.article .prose ul > li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.article .prose ul ul { margin: 6px 0 4px; }
.article .prose ul ul > li::before { width: 6px; height: 6px; background: transparent; border: 2px solid var(--accent); left: 7px; top: 0.7em; }

/* Ordered lists: numbered steps */
.article .prose ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; background: var(--surface); border: 1px solid var(--glass-edge); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.article .prose ol > li { counter-increment: step; position: relative; margin: 0; padding: 14px 18px 14px 62px; min-height: 58px; }
.article .prose ol > li + li { border-top: 1px solid var(--hairline); }
.article .prose ol > li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.article .prose ol ol { background: transparent; border: 0; box-shadow: none; margin: 8px 0 0; }
.article .prose ol ul { margin: 8px 0 0; }
.article .prose li > p { margin: 0 0 8px; }
.article .prose li > p:last-child { margin-bottom: 0; }

/* Blockquote: callout card with an accent bar */
.article .prose blockquote { position: relative; margin: 26px 0; padding: 18px 22px 18px 26px; background: var(--accent-soft); border: 1px solid rgba(29, 95, 208, 0.16); border-left: 0; border-radius: 18px; color: var(--text); overflow: hidden; }
.article .prose blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.article .prose blockquote > :last-child { margin-bottom: 0; }
.article .prose blockquote p { font-size: 17px; }

/* Tables: frosted rounded container, hairlines only. reader.js wraps each table in .table-wrap. */
.table-wrap { margin: 24px 0 28px; border: 1px solid var(--glass-edge); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.article .prose table { display: table; width: 100%; min-width: 520px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.45; }
.article .prose > table { display: block; overflow-x: auto; min-width: 0; border: 1px solid var(--glass-edge); border-radius: 20px; background: var(--surface); margin: 24px 0 28px; }
.article .prose th, .article .prose td { border: 0; border-bottom: 1px solid var(--hairline); padding: 13px 16px; text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.article .prose th { background: var(--surface-2); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); white-space: nowrap; border-bottom-color: var(--border); }
.article .prose tbody tr:last-child > *, .article .prose tr:last-child > td { border-bottom: 0; }
.article .prose tbody tr:hover > td { background: rgba(29, 95, 208, 0.04); }
.article .prose td.num, .article .prose th.num { text-align: right; white-space: nowrap; }
.article .prose td:first-child { font-weight: 600; color: var(--text); }
@media (max-width: 700px) {
  .article .prose th:first-child, .article .prose td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-solid); box-shadow: 1px 0 0 var(--hairline); min-width: 110px; }
  .article .prose th:first-child { background: #eceef0; }
  .article .prose th, .article .prose td { padding: 12px 13px; }
}

/* FAQ: accordion cards */
.article .prose details { background: var(--surface); border: 1px solid var(--glass-edge); border-radius: 18px; padding: 0; margin: 10px 0; box-shadow: var(--shadow-1); overflow: hidden; }
.article .prose summary { position: relative; display: block; min-height: 54px; padding: 15px 52px 15px 18px; font-weight: 700; font-size: 17px; line-height: 1.4; cursor: pointer; list-style: none; letter-spacing: -0.005em; }
.article .prose summary::-webkit-details-marker { display: none; }
.article .prose summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.25s var(--ease), border-color 0.2s; }
.article .prose details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.article .prose summary:hover { background: var(--surface-2); }
.article .prose details[open] > summary { color: var(--accent); border-bottom: 1px solid var(--hairline); }
.article .prose details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.article .prose details > summary + * { margin-top: 14px; }
.article .prose details > :last-child { margin-bottom: 16px; color: var(--text-2); }
.article .prose details p { color: var(--text-2); font-size: 16.5px; }

/* ---------- Plain pages ---------- */
.page-card { padding: 28px 24px 22px; border-radius: var(--radius-lg); margin: 8px 0 0; }
@media (min-width: 700px) { .page-card { padding: 40px 48px 34px; } }
.page-card h1 { margin-bottom: 18px; }
.page-card .prose { font-size: 17.5px; }
.page-card .prose h2 { margin-top: 40px; }

/* ---------- Article infographics. Markup guide: dev/content/IG.md, examples: dev/content/ig/_demo.html ---------- */
.ig { --tone: var(--accent); margin: 30px 0 34px; padding: 22px; background: var(--surface); border: 1px solid var(--glass-edge); border-radius: 24px; box-shadow: var(--shadow-1); font-size: 15.5px; line-height: 1.45; color: var(--text); }
.ig > * + * { margin-top: 18px; }
.ig [data-tone="accent"] { --tone: var(--accent); }
.ig [data-tone="excellent"] { --tone: var(--excellent); }
.ig [data-tone="good"] { --tone: var(--good); }
.ig [data-tone="fair"] { --tone: var(--fair); }
.ig [data-tone="weak"] { --tone: var(--weak); }
.ig [data-tone="dead"] { --tone: var(--dead); }
.ig [data-tone="muted"] { --tone: var(--text-3); }
.ig-head { display: grid; gap: 3px; }
.ig-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.ig-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--text); }
.ig-sub { font-size: 15px; color: var(--text-2); }
.prose .ig .ig-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.ig small { font-size: 13.5px; color: var(--text-2); font-weight: 400; }

/* Horizontal bars */
.ig-bars { display: grid; gap: 12px; }
.ig-bar { display: grid; grid-template-columns: minmax(96px, 30%) 1fr minmax(56px, auto); align-items: center; gap: 12px; }
.ig-bar-label { font-weight: 600; }
.ig-bar-label small { display: block; }
.ig-bar-track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.ig-bar-track i { display: block; height: 100%; width: calc(var(--v, 0) * 1%); min-width: 6px; border-radius: inherit; background: var(--tone); }
.ig-bar-value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--tone); }
@media (max-width: 560px) {
  .ig-bar { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .ig-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* Segmented scale (ordered ranges, worst to best or the reverse) */
.ig-scale { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ig-seg { display: grid; gap: 2px; align-content: start; }
.ig-seg::before { content: ""; height: 10px; border-radius: 5px; background: var(--tone); margin-bottom: 8px; }
.ig-seg b { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ig-seg span { font-weight: 700; font-size: 14px; color: var(--tone); }
@media (max-width: 620px) {
  .ig-scale { grid-auto-flow: row; gap: 12px; }
  .ig-seg { grid-template-columns: 10px 1fr; column-gap: 12px; }
  .ig-seg::before { grid-row: 1 / span 3; height: auto; width: 10px; margin: 0; }
  .ig-seg > * { grid-column: 2; }
}

/* Side-by-side comparison columns */
.ig-cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ig-col { display: grid; align-content: start; padding: 16px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--hairline); }
.ig-col::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--tone); margin-bottom: 10px; }
.ig-col-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ig-col-tag { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
.ig-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; }
.ig-row > span:first-child { color: var(--text-2); }
.ig-row b { font-weight: 600; text-align: right; }
.ig-dots { display: inline-flex; gap: 4px; flex: none; }
.ig-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(28, 34, 48, 0.13); }
.ig-dots[data-n="1"] i:nth-child(-n+1), .ig-dots[data-n="2"] i:nth-child(-n+2), .ig-dots[data-n="3"] i:nth-child(-n+3),
.ig-dots[data-n="4"] i:nth-child(-n+4), .ig-dots[data-n="5"] i { background: var(--tone); }

/* Numbered flow: sideways on wide screens (up to 4 steps), stacked on phones. Add .ig-flow-v to always stack. */
.ig-flow { display: grid; gap: 14px; counter-reset: ig; }
.ig-step { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-content: start; }
.ig-step::before { counter-increment: ig; content: counter(ig); grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--tone); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.ig-step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: -10px; width: 2px; border-radius: 1px; background: var(--border); }
.ig-step strong { grid-column: 2; align-self: center; line-height: 1.3; }
.ig-step span { grid-column: 2; font-size: 14.5px; color: var(--text-2); }
@media (min-width: 700px) {
  .ig-flow:not(.ig-flow-v) { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
  .ig-flow:not(.ig-flow-v) .ig-step { grid-template-columns: 1fr; row-gap: 4px; }
  .ig-flow:not(.ig-flow-v) .ig-step::before { grid-row: auto; margin-bottom: 6px; }
  .ig-flow:not(.ig-flow-v) .ig-step:not(:last-child)::after { left: 42px; right: -10px; top: 16px; bottom: auto; width: auto; height: 2px; }
  .ig-flow:not(.ig-flow-v) .ig-step strong, .ig-flow:not(.ig-flow-v) .ig-step span { grid-column: 1; }
}

/* One question, two or three outcomes */
.ig-tree { display: grid; gap: 12px; }
.ig-q { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); font-weight: 700; font-size: 17px; line-height: 1.3; text-align: center; }
.ig-answers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ig-a { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--hairline); }
.ig-a-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tone); }
.ig-a span:last-child { font-size: 14.5px; color: var(--text-2); }

/* Big numbers */
.ig-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.ig-stat { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--hairline); }
.ig-stat b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--tone); font-variant-numeric: tabular-nums; }
.ig-stat b small { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-left: 3px; }
.ig-stat span { font-weight: 600; font-size: 14.5px; }

/* Two lists side by side (do / avoid, helps / does not help) */
.ig-pair { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ig-side { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--hairline); }
.ig-side-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tone); }
.ig-item { position: relative; padding-left: 28px; font-size: 15px; }
.ig-item::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--tone); }
.ig-item::after { content: ""; position: absolute; left: 6.5px; top: 5.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ig-side[data-mark="no"] .ig-item::after { left: 4px; top: 10px; width: 10px; height: 2px; border: 0; background: #fff; transform: none; }

/* Column chart (up to 8 columns) */
.ig-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; height: 200px; }
.ig-c { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 5px; min-width: 0; text-align: center; }
.ig-c b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tone); }
.ig-c i { flex: 0 0 calc(var(--v, 0) * 0.68%); width: min(100%, 44px); align-self: center; min-height: 4px; border-radius: 8px 8px 3px 3px; background: var(--tone); }
.ig-c span { font-size: 12.5px; color: var(--text-2); line-height: 1.2; min-height: 2.4em; }

/* Drawn diagram (inline SVG, viewBox 360 wide) and its legend */
.ig-art { display: grid; justify-items: center; }
.ig-art svg { display: block; width: 100%; max-width: 480px; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ig-art .s-ink { stroke: var(--text); } .ig-art .s-muted { stroke: var(--text-3); } .ig-art .s-line { stroke: rgba(28, 34, 48, 0.16); }
.ig-art .s-accent { stroke: var(--accent); } .ig-art .s-excellent { stroke: var(--excellent); } .ig-art .s-good { stroke: var(--good); }
.ig-art .s-fair { stroke: var(--fair); } .ig-art .s-weak { stroke: var(--weak); } .ig-art .s-dead { stroke: var(--dead); }
.ig-art .f-ink { fill: var(--text); } .ig-art .f-muted { fill: var(--text-3); } .ig-art .f-well { fill: rgba(28, 34, 48, 0.06); }
.ig-art .f-surface { fill: var(--surface-solid); } .ig-art .f-accent { fill: var(--accent); } .ig-art .f-soft { fill: rgba(29, 95, 208, 0.12); }
.ig-art .f-excellent { fill: var(--excellent); } .ig-art .f-good { fill: var(--good); } .ig-art .f-fair { fill: var(--fair); }
.ig-art .f-weak { fill: var(--weak); } .ig-art .f-dead { fill: var(--dead); }
.ig-art .dash { stroke-dasharray: 4 6; }
.ig-art text { fill: var(--text); stroke: none; font: 600 13px var(--sans); }
.ig-art text.t-2 { fill: var(--text-2); font-weight: 500; }
.ig-art text.t-accent { fill: var(--accent); }
.ig-art text.t-on { fill: #fff; }
.ig-art text.t-lg { font-size: 15px; font-weight: 700; }
.ig-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; color: var(--text-2); }
.ig-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ig-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--tone); flex: none; }
@media (max-width: 560px) {
  .ig { padding: 18px 16px; border-radius: 20px; margin: 26px 0 30px; }
  .ig-title { font-size: 18.5px; }
  .ig-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ig-stats.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-stat { padding: 12px; }
  .ig-stat b { font-size: 25px; }
  .ig-stat b small { font-size: 13px; margin-left: 2px; }
}

/* Contact */
.contact-page .page-card { margin-bottom: 16px; }
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 0; }
.contact-card { display: grid; gap: 4px; align-content: start; padding: 22px; border-radius: 22px; overflow-wrap: anywhere; }
.contact-card .tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.contact-card .k { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card strong { font-size: 18px; }
.contact-card a { font-weight: 600; font-size: 17px; }
.contact-card .muted { font-size: 14.5px; }

/* 404 */
.notfound { padding: 28px 20px 24px; }
.notfound-card { padding: 36px 24px 28px; border-radius: var(--radius-lg); text-align: center; }
.notfound-card h1 { margin-bottom: 8px; }
.notfound-card .lead { margin: 0 auto 24px; }
.shortcuts { display: grid; gap: 10px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 700px) { .shortcuts { grid-template-columns: repeat(3, 1fr); } .notfound-card { padding: 48px 36px 36px; } }
.shortcut { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--hairline); color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.shortcut:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.shortcut .tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.shortcut strong { display: block; font-size: 16px; }
.shortcut small { display: block; font-size: 13px; color: var(--text-2); line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  .post-card-img img, .reading-progress span { transition: none !important; }
  .post-card:hover .post-card-img img { transform: none; }
}
