/* ==========================================================================
   v9 · Blog: magazine listing and the article page.
   ========================================================================== */

/* ---------- listing head ---------- */
.site-main > .bhead:first-child { margin-top: calc(-1 * var(--head-h)); }
.bhead { position: relative; background: var(--dark); color: #fff; padding: calc(var(--head-h) + clamp(28px, 4vw, 56px)) 0 0; overflow: hidden; isolation: isolate; }
.bhead::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 87, 167, .45), transparent); z-index: -1; }
.bhead .crumbs, .chero .crumbs, .art__head .crumbs { color: rgba(255, 255, 255, .55); }
.bhead .crumbs a, .chero .crumbs a, .art__head .crumbs a { color: rgba(255, 255, 255, .75); }
.bhead .crumbs [aria-current], .chero .crumbs [aria-current], .art__head .crumbs [aria-current] { color: #fff; }
.bhead__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: end; margin-top: clamp(28px, 4vw, 52px); }
.bhead__h { margin-top: 22px; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; max-width: 14ch; color: #fff; }
.bhead__side p { font-weight: 300; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 40ch; }
.bsearch { position: relative; margin-top: 24px; }
.bsearch input { width: 100%; height: 58px; padding: 0 22px 0 60px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 1.02rem; transition: border-color .3s, background .3s; }
.bsearch input::placeholder { color: rgba(255, 255, 255, .55); }
.bsearch input:focus { outline: none; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
.bsearch button { position: absolute; inset-inline-end: 6px; top: 6px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); }
.btabs { display: flex; gap: 6px; margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-dark); }
.btabs::-webkit-scrollbar { display: none; }
.btabs__tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 22px 18px; color: rgba(255, 255, 255, .65); font-weight: 600; transition: color .3s; }
.btabs__tab small { font-size: .78rem; color: rgba(255, 255, 255, .45); }
.btabs__tab::after { content: ''; position: absolute; inset-inline: 18px; top: -1px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.btabs__tab:hover, .btabs__tab.is-active { color: #fff; }
.btabs__tab.is-active::after, .btabs__tab:hover::after { transform: scaleX(1); }

/* ---------- featured + grid ---------- */
.blist { padding-top: clamp(48px, 6vw, 88px); }
.bfeat { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--tint); margin-bottom: clamp(48px, 6vw, 88px); }
.bfeat__media { position: relative; min-height: 420px; overflow: hidden; }
.bfeat__media .cover { position: absolute; inset: 0; }
.bfeat:hover .cover img { transform: scale(1.04); }
.bfeat__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 60px); }
.bfeat__tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bfeat__cat { color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .03em; }
.bfeat__title { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.bfeat__title a::after { content: ''; position: absolute; inset: 0; }
.bfeat__excerpt { font-weight: 300; font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); }
.bfeat__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(11, 27, 51, .1); }
.bfeat:hover .bcard__more .dot { transform: translateX(-5px); }
.blist .pagination { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- closing call ---------- */
.bcta { background: var(--dark); color: #fff; padding-block: clamp(64px, 8vw, 120px); }
.bcta__in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: clamp(28px, 5vw, 80px); align-items: end; }
.bcta h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); color: #fff; max-width: 16ch; }
.bcta p { margin-top: 16px; color: rgba(255, 255, 255, .72); font-weight: 300; font-size: 1.15rem; max-width: 48ch; }
.bcta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- article ---------- */
.readbar { position: fixed; top: 0; inset-inline: 0; z-index: 120; height: 3px; pointer-events: none; }
.readbar span { display: block; height: 100%; background: linear-gradient(90deg, #6E9BE0, var(--accent)); transform-origin: right; transform: scaleX(var(--read, 0)); }
.site-main > .readbar:first-child + .art .art__head { margin-top: calc(-1 * var(--head-h)); }
.art__head { background: var(--dark); color: #fff; padding: calc(var(--head-h) + clamp(24px, 3vw, 44px)) 0 clamp(150px, 16vw, 240px); }
.art__head-in { max-width: 920px; margin-top: clamp(26px, 4vw, 48px); }
.art__title { margin-top: 22px; font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; color: #fff; }
.art__lead { margin-top: 22px; font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 54ch; }
.art__by { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.art__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--navy); flex: none; }
.art__avatar-mark { width: 38px; }
.art__by-text { display: flex; flex-direction: column; gap: 2px; }
.art__by-text strong { font-weight: 700; }
.art__by .pmeta, .art__upd { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.art__cover { margin: calc(-1 * clamp(110px, 12vw, 190px)) 0 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); box-shadow: 0 40px 80px -50px rgba(6, 21, 49, .6); }
.art__cover .cover { height: 100%; }
.art__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); padding-block: clamp(48px, 6vw, 88px) var(--section); }
.art__sticky { position: sticky; top: calc(var(--head-h) + 28px); display: grid; gap: 34px; }
.toc__h { font-weight: 700; font-size: .8rem; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 8px 16px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--ink-2); font-weight: 400; line-height: 1.4; transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.is-active { color: var(--navy); border-color: var(--accent); font-weight: 600; }
.share ul { display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share__copy { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.share a:hover, .share__copy:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.share__status { margin-top: 8px; min-height: 1.2em; font-size: .85rem; color: var(--accent); }
.art__prose { max-width: 70ch; font-size: clamp(1.1rem, 1.3vw, 1.22rem); line-height: 1.85; font-weight: 400; color: #26324A; }
.art__prose > p:first-of-type::first-line { font-weight: 600; }
.art__prose h2 { margin-top: 2em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; color: var(--ink); scroll-margin-top: calc(var(--head-h) + 24px); }
.art__prose h3 { font-weight: 700; }
.art__prose ul li::marker { color: var(--accent); }
.art__prose blockquote { margin: 1.6em 0; padding: 8px 0 8px 0; padding-inline-start: 24px; border-inline-start: 3px solid var(--accent); font-size: 1.3em; font-weight: 300; line-height: 1.5; color: var(--ink); }
.art__prose img, .art__prose figure { margin-block: 1.8em; }
.art__prose figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-3); }
.art__products { margin-top: 56px; }
.art__products h2 { font-size: 1.6rem; margin-bottom: 20px; }
.pgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art__cta { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 64px; padding: clamp(24px, 3vw, 40px); background: var(--tint); }
.art__cta-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--accent); }
.art__cta h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.art__cta p { margin-top: 6px; color: var(--ink-2); font-weight: 300; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pn__item { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease-out); }
.pn__item:hover { border-color: var(--navy); transform: translateY(-3px); }
.pn__item small { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: .85rem; }
.pn__item strong { font-weight: 700; line-height: 1.35; }
.pn__item--prev .ic-arrow { transform: scaleX(-1); }
.pn__item--next { text-align: end; align-items: flex-end; grid-column: 2; }

@media (max-width: 1100px) {
	.art__grid { grid-template-columns: 1fr; }
	.art__aside { order: 2; }
	.art__sticky { position: static; }
	.toc { display: none; }
}
@media (max-width: 820px) {
	.bhead__grid, .bfeat, .bcta__in { grid-template-columns: 1fr; }
	.bfeat__media { min-height: 0; aspect-ratio: 16 / 10; }
	.art__cta { grid-template-columns: 1fr; }
	.pn { grid-template-columns: 1fr; }
	.pn__item--next { grid-column: auto; }
	.pgrid--2 { grid-template-columns: 1fr 1fr; }
}
