/* ==========================================================================
   Scoped SEO blog: index, article, category, author.
   Loaded after style.css on /blog/ pages only. Uses the same tokens.
   ========================================================================== */

/* ---------- shared bits ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8125rem; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); border: 0; }
.avatar-xl { width: 128px; height: 128px; font-size: 2.25rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.375rem; }
.author-chip .avatar { width: 28px; height: 28px; font-size: .625rem; }
.byline-author .avatar { width: 44px; height: 44px; font-size: .875rem; }

.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .01em; text-decoration: none; line-height: 1.2; transition: background-color .15s, color .15s; }
.pill:hover { background: var(--blue); color: #fff; text-decoration: none; }
@media (prefers-color-scheme: dark) { .pill:hover { color: #0A0C14; } }

/* ---------- hero (index, category) ---------- */
.blog-hero { padding: 56px 0 8px; }
.blog-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.blog-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em; color: var(--blue); }
.blog-hero .lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 56ch; margin: 20px 0 0; }
.blog-hero.is-compact { padding-bottom: 0; }
.blog-hero.is-compact h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 24ch; }
.blog-hero .blog-search { margin-top: 32px; }

/* search */
.blog-search { position: relative; max-width: 520px; }
.blog-search > svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ink-3); pointer-events: none; }
.blog-search input {
  width: 100%; height: 52px; padding: 0 48px 0 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 500 1rem/1 var(--font-ui); transition: border-color .15s, box-shadow .15s;
}
.blog-search input::placeholder { color: var(--ink-3); }
.blog-search input:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.blog-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.blog-search input::-webkit-search-cancel-button { display: none; }
.blog-search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--ink-3); pointer-events: none; transition: opacity .15s; }
.blog-search input:focus ~ kbd, .blog-search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.blog-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); max-height: 420px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-float); padding: 6px;
}
.blog-results[hidden] { display: none; }
.blog-results a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.blog-results a:hover, .blog-results a[aria-selected="true"] { background: var(--surface-2); text-decoration: none; }
.blog-results strong { display: block; font-size: .9688rem; line-height: 1.35; }
.blog-results small { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blog-results mark { background: color-mix(in srgb, var(--orange) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.blog-results .none { padding: 16px; font-size: .9375rem; color: var(--ink-3); }

/* ---------- list area ---------- */
.blog-list { padding: 32px 0 80px; }
.list-title { font-size: 1.375rem !important; letter-spacing: -0.015em; margin-bottom: 24px; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px 28px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.cat-pills a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.cat-pills a:active { transform: scale(.97); }
.cat-pills a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; gap: 20px; } }

.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; position: relative; transition: transform .22s ease-out, box-shadow .22s ease-out, border-color .22s ease-out; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.post-card:focus-within { border-color: var(--blue); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); position: relative; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-media.is-empty { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); display: flex; align-items: center; justify-content: center; }
.post-card-media.is-empty::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 107, 26, .55), transparent 45%); }
.post-card-ph { position: relative; z-index: 1; font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; line-height: 1.1; text-align: center; padding: 0 24px; text-wrap: balance; color: rgba(255, 255, 255, .92); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8125rem; color: var(--ink-3); margin-bottom: 12px; }
.post-meta > :not(.pill):not(:first-child)::before { content: '·'; margin-right: 12px; color: var(--ink-3); }
.post-meta .pill + time::before { content: none !important; }
.post-card-title { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; margin: 0 0 10px; text-wrap: balance; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* whole card is one target */
.post-card-title a:hover { text-decoration: none; color: var(--blue); }
.post-card-desc { font-size: .9375rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.author-chip { position: relative; z-index: 2; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; font-size: .8438rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.author-chip:hover { color: var(--blue); text-decoration: none; }
.post-card .pill { position: relative; z-index: 2; }

/* featured card */
.lead-wrap { margin-bottom: 36px; }
.post-card.is-lead { flex-direction: row; border-radius: 28px; min-height: 380px; }
.post-card.is-lead .post-card-media { flex: 1.15; aspect-ratio: auto; min-height: 280px; }
.post-card.is-lead .post-card-body { flex: 1; padding: 40px 40px 36px; justify-content: center; }
.post-card.is-lead .post-card-title { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.14; letter-spacing: -0.022em; margin-bottom: 14px; }
.post-card.is-lead .post-card-desc { font-size: 1.0625rem; -webkit-line-clamp: 4; margin-bottom: 24px; }
.post-card.is-lead .post-card-ph { font-size: 4rem; }
@media (max-width: 900px) {
  .post-card.is-lead { flex-direction: column; min-height: 0; }
  .post-card.is-lead .post-card-media { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  .post-card.is-lead .post-card-body { padding: 22px; }
}

/* pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; }
.pg-nums { display: flex; align-items: center; gap: 6px; }
.pg-num { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; font-size: .9375rem; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.pg-num:hover { background: var(--surface); border-color: var(--line); color: var(--ink); text-decoration: none; }
.pg-num[aria-current] { background: var(--ink); color: var(--canvas); }
.pg-gap { color: var(--ink-3); padding: 0 4px; }
.pg-step { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .875rem; color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
a.pg-step:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pg-step.is-off { opacity: .4; }
@media (max-width: 560px) { .pg-nums { display: none; } .pagination { justify-content: space-between; } }

.blog-empty { text-align: center; padding: 72px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-xl); }
.blog-empty h2 { font-size: 1.5rem; margin-bottom: 10px; }
.blog-empty p { max-width: 48ch; margin: 0 auto 24px; }

.blog-cta { padding: 0 0 96px; }
.blog-cta .closer { padding: 64px 32px; }
@media (max-width: 640px) { .blog-cta { padding-bottom: 64px; } .blog-cta .closer { padding: 44px 20px; } }

/* ---------- article ---------- */
.read-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--orange)); }

.post-head { padding: 48px 0 0; }
.post-head .container > * { max-width: 860px; }
.post-head h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.028em; text-wrap: balance; margin: 0; }
.post-dek { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); margin: 20px 0 0; max-width: 62ch; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline-author { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.byline-author:hover { text-decoration: none; color: var(--blue); }
.byline-author span { display: flex; flex-direction: column; line-height: 1.3; }
.byline-author strong { font-size: .9688rem; }
.byline-author small { font-size: .8125rem; color: var(--ink-3); font-weight: 500; }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .875rem; color: var(--ink-3); }

.post-cover { margin: 40px 0 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-frame); }
.post-cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 40px; padding-top: 48px; padding-bottom: 24px; }
.post-layout.has-toc { grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 56px; }
.post-aside { order: 2; }
.post-layout.has-toc .post-aside { order: 0; }
@media (min-width: 981px) { .post-aside { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; scrollbar-width: thin; } }
@media (max-width: 980px) {
  .post-layout.has-toc { grid-template-columns: minmax(0, 720px); gap: 24px; }
  .post-layout.has-toc .post-aside { order: 0; }
  .post-layout:not(.has-toc) .post-aside { order: 2; }
}

.toc-box { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 6px; }
.toc-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-radius: 12px; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.toc-box[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc-box summary:hover { background: var(--surface-2); }
.toc-box ol { list-style: none; margin: 0; padding: 0 4px 6px; }
.toc-box li { margin: 0; }
.toc-box a { display: block; padding: 8px 12px; border-radius: 10px; border-left: 2px solid transparent; font-size: .875rem; line-height: 1.4; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background-color .15s, color .15s; }
.toc-box li.l3 a { padding-left: 24px; font-weight: 500; font-size: .8438rem; }
.toc-box a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.toc-box a.is-active { color: var(--blue); background: var(--blue-tint); }
@media (max-width: 980px) { .toc-box:not([open]) summary { border-radius: 12px; } }

.share { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0 4px; }
.share-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.share-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none; transition: border-color .15s, color .15s, transform .15s, background-color .15s; }
.share-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.share-btn:active { transform: scale(.94); }
.share-btn svg { width: 17px; height: 17px; }
.share-btn.is-done { background: var(--green-tint); border-color: var(--green); color: var(--green); }
.share-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--canvas); font-size: .75rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.share-btn:hover .share-tip, .share-btn:focus-visible .share-tip, .share-btn.is-done .share-tip { opacity: 1; transform: translate(-50%, 0); }

.post-main { min-width: 0; }

/* article typography (everything the editor can produce) */
.post .prose { max-width: none; font-size: 1.125rem; line-height: 1.8; color: var(--ink-2); }
.post .prose > :first-child { margin-top: 0; }
.post .prose p { margin: 0 0 1.35em; }
.post .prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; margin: 2.4em 0 .7em; }
.post .prose h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.012em; margin: 2em 0 .55em; }
.post .prose h4 { font-size: 1.0625rem; margin: 1.8em 0 .5em; color: var(--ink); }
.post .prose h2 .anchor, .post .prose h3 .anchor { margin-left: .4em; font-weight: 500; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity .15s; }
.post .prose h2:hover .anchor, .post .prose h3:hover .anchor, .post .prose .anchor:focus { opacity: 1; }
.post .prose a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.post .prose a:not(.btn):hover { text-decoration-color: currentColor; }
.post .prose strong { color: var(--ink); }
.post .prose ul, .post .prose ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.post .prose li { margin-bottom: .5em; padding-left: .2em; }
.post .prose li > p { margin-bottom: .5em; }
.post .prose ul ul, .post .prose ol ol, .post .prose ul ol, .post .prose ol ul { margin: .5em 0 .5em; }
.post .prose img { border-radius: 16px; height: auto; margin: 0 auto; }
.post .prose figure { margin: 2em 0; }
.post .prose figure img { border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.post .prose figcaption { margin-top: 12px; text-align: center; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.post .prose figure[data-align="wide"] { margin-left: -48px; margin-right: -48px; }
@media (max-width: 980px) { .post .prose figure[data-align="wide"] { margin-left: 0; margin-right: 0; } }
.post .prose figure[data-align="left"] { float: left; max-width: 46%; margin: .4em 1.6em 1em 0; }
.post .prose figure[data-align="right"] { float: right; max-width: 46%; margin: .4em 0 1em 1.6em; }
@media (max-width: 640px) { .post .prose figure[data-align="left"], .post .prose figure[data-align="right"] { float: none; max-width: 100%; margin: 2em 0; } }
.post .prose [data-align="center"] { text-align: center; }
.post .prose [style*="text-align: center"] { text-align: center; }
.post .prose [style*="text-align: right"] { text-align: right; }
.post .prose [style*="text-align: justify"] { text-align: justify; }
.post .prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--orange); font-size: 1.1875rem; line-height: 1.65; color: var(--ink); }
.post .prose blockquote p:last-child { margin-bottom: 0; }
.post .prose blockquote.pullquote { border: 0; padding: 12px 0; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; position: relative; }
.post .prose blockquote.pullquote::before { content: ''; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--orange); margin: 0 auto 22px; }
.post .prose hr { border: 0; height: 1px; background: var(--line); margin: 3em auto; max-width: 160px; }
.post .prose mark { background: color-mix(in srgb, var(--orange) 32%, transparent); color: inherit; padding: 0 .15em; border-radius: 4px; }
.post .prose code { font-size: .86em; }
.post .prose pre { margin: 1.8em 0; padding: 18px 20px; border-radius: 16px; background: #0E1226; color: #E7EAFB; border: 1px solid #1d2342; font-size: .875rem; line-height: 1.7; tab-size: 2; }
.post .prose pre code { color: inherit; }
.post .prose .table-wrap { margin: 2em 0; }
.post .prose .table-wrap:focus-visible { outline-offset: 2px; }
.post .prose table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.post .prose th, .post .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.post .prose th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: .8438rem; letter-spacing: .01em; }
.post .prose tr:last-child td { border-bottom: 0; }
.post .prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.post .prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post .prose .btn-wrap { margin: 2em 0; }
.post .prose .btn-wrap[data-align="center"] { text-align: center; }
.post .prose .btn-wrap[data-align="right"] { text-align: right; }
.post .prose .btn-wrap .btn { text-decoration: none; }
.post .prose .btn-primary { color: #fff; }
.post .prose .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 2em 0; }
.post .prose .cols > div > :last-child { margin-bottom: 0; }
@media (max-width: 640px) { .post .prose .cols { grid-template-columns: 1fr; gap: 8px; } }

/* callouts */
.post .prose .callout { margin: 2em 0; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); border-left-width: 4px; background: var(--blue-tint); border-left-color: var(--blue); font-size: 1.0312rem; line-height: 1.7; color: var(--ink); }
.post .prose .callout > :last-child { margin-bottom: 0; }
.post .prose .callout[data-callout="tip"], .post .prose .callout[data-callout="success"] { background: var(--green-tint); border-left-color: var(--green); }
.post .prose .callout[data-callout="warning"] { background: var(--amber-tint); border-left-color: var(--amber); }
.post .prose .callout[data-callout="danger"] { background: var(--red-tint); border-left-color: var(--red); }
.post .prose .callout[data-callout="summary"] { background: var(--surface); border-color: var(--line); border-left-color: var(--orange); box-shadow: var(--shadow-float); }

/* FAQ (chevron comes from style.css .faq) */
.post .prose details.faq { margin: 0 0 12px; }
.post .prose details.faq summary { font-size: 1.0625rem; border-radius: 16px; }
.post .prose details.faq > :not(summary) { padding: 0 22px; font-size: 1rem; line-height: 1.7; }
.post .prose details.faq > :last-child { margin-bottom: 0; padding-bottom: 20px; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 40px 0 0; }
.tag-list a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color .15s, color .15s; }
.tag-list a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.author-box h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 2px 0 2px; }
.author-box h2 a { color: var(--ink); text-decoration: none; }
.author-box h2 a:hover { color: var(--blue); }
.author-box p { margin: 8px 0 0; font-size: .9688rem; line-height: 1.6; }
.author-box .author-role, .author-role { color: var(--ink-3); font-size: .9063rem; font-weight: 600; margin: 0; }
.author-box-label { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.author-box-links a { font-weight: 700; font-size: .9063rem; text-decoration: none; }
.author-box-links a:hover { text-decoration: underline; }
@media (max-width: 560px) { .author-box { flex-direction: column; padding: 22px; } }

.related { padding: 64px 0 72px; border-top: 1px solid var(--line); margin-top: 40px; }
.related h2 { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 28px; }

/* ---------- author page ---------- */
.author-hero { padding: 56px 0 24px; }
.author-hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.author-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.028em; font-weight: 800; margin: 0 0 8px; }
.author-hero .author-role { font-size: 1.0625rem; margin-bottom: 14px; }
.author-bio { max-width: 62ch; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; }
.author-links { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0; }
.author-links li a, .author-count { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .875rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.author-count strong { color: var(--ink); margin-right: 5px; }
.author-links li a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
@media (max-width: 720px) { .author-hero-grid { grid-template-columns: 1fr; gap: 22px; } .avatar-xl { width: 96px; height: 96px; font-size: 1.75rem; } }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card-media img { transition: none !important; }
  .post-card:hover { transform: none; }
  .read-progress span { transition: none !important; }
}
@media print { .read-progress, .post-aside, .related, .blog-cta, .author-box { display: none !important; } .post-layout { display: block; } }
