/* Blog article v2 — template-specific styles (Blog Article.dc.html).
   Shared primitives (tv2-pad, tv2-rule, tv2-breadcrumb, tv2-tryone…) live
   in v2-core.css; everything here is artv2- only. */

/* ---------- Article header band ---------- */
.artv2-band { border-bottom: 1px solid #EDEFF4; background: #F6F8FC; }
.artv2-band__inner { padding-top: 36px; padding-bottom: 40px; }
.artv2-band .tv2-breadcrumb { margin-bottom: 24px; }

.artv2-hero { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: center; }
.artv2-hero__main { min-width: 0; }

.artv2-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.artv2-meta__item { font: 500 12px/1 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: #5A6478; }
.artv2-meta__sep { width: 1px; height: 12px; background: #DFE3EA; }

.artv2-h1 { margin: 0 0 20px; font-size: clamp(29px, 4.6vw, 40px); line-height: 1.12; font-weight: 500; color: #14203A; letter-spacing: -.02em; max-width: 26ch; text-wrap: balance; }
.artv2-standfirst { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: #414B5E; max-width: 56ch; text-wrap: pretty; }

.artv2-author { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.artv2-author__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: block; object-fit: cover; }
.artv2-author__avatar--initials { background: repeating-linear-gradient(135deg, #E7EBF3 0 6px, #EDEFF4 6px 12px); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; color: #5A6478; }
.artv2-author__name { margin: 0; font-size: 16px; line-height: 1.4; color: #14203A; font-weight: 500; }
.artv2-author__dates { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #5A6478; }

.artv2-hero__image { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; }
.artv2-hero__media { min-width: 0; }

/* ---------- Body + rail ---------- */
.artv2-layout { display: grid; grid-template-columns: minmax(0,716px) minmax(min(300px,100%),1fr); gap: 56px; align-items: start; padding: 48px 0 0; }
.artv2-article { min-width: 0; }

/* Contents nav (filled by script from the article's h2s) */
.tv2 .tv2 
/* Article prose (rendered markdown) */
.artv2-prose { font-size: 18px; line-height: 1.7; color: #414B5E; }
.artv2-prose p { margin: 0 0 18px; max-width: 68ch; text-wrap: pretty; }
.artv2-prose h2 { margin: 44px 0 14px; font-size: 24px; line-height: 1.25; font-weight: 500; color: #14203A; max-width: 36ch; text-wrap: balance; padding-top: 14px; border-top: 1px solid #EDEFF4; scroll-margin-top: 16px; }
.artv2-prose h3 { margin: 30px 0 12px; font-size: 20px; line-height: 1.3; font-weight: 500; color: #14203A; max-width: 40ch; }
.artv2-prose h4 { margin: 24px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 500; color: #14203A; }
.artv2-prose strong { color: #14203A; font-weight: 500; }
.artv2-prose ul, .artv2-prose ol { margin: 0 0 18px; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 10px; }
.artv2-prose ul { list-style: none; }
.artv2-prose ul > li { position: relative; padding-left: 26px; max-width: 66ch; }
.artv2-prose ul > li::before { content: '•'; position: absolute; left: 6px; top: 0; color: #1257E8; }
.artv2-prose ol { list-style: decimal; padding-left: 26px; }
.artv2-prose ol > li { max-width: 66ch; padding-left: 4px; }
.artv2-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.artv2-prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 3px solid #FF9500; max-width: 66ch; }
.artv2-prose table { border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.artv2-prose th, .artv2-prose td { border: 1px solid #DFE3EA; padding: 8px 12px; text-align: left; }

/* Closing conversion aside */
.artv2-cta { border-radius: 12px; background: #14203A; padding: 32px 34px 30px; margin: 40px 0; max-width: 68ch; }
.artv2-cta__eyebrow { font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: .07em; text-transform: uppercase; color: #94AEF2; margin-bottom: 14px; }
.artv2-cta__title { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 500; color: #fff; max-width: 26ch; text-wrap: balance; }
.artv2-cta__body { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 52ch; text-wrap: pretty; }
.artv2-cta__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px,100%),1fr)); gap: 20px 24px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 24px; }
.artv2-cta__fact { min-width: 0; }
.artv2-cta__fact-value { font: 500 22px/1 'IBM Plex Mono', monospace; color: #fff; font-variant-numeric: tabular-nums; }
.artv2-cta__fact-label { margin-top: 7px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.7); }
.artv2-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.tv2 a.artv2-cta__btn-solid { display: inline-block; padding: 13px 22px; border-radius: 4px; font-size: 17px; font-weight: 500; color: #14203A; background: #fff; border: 1.5px solid #fff; text-decoration: none; }
.tv2 a.artv2-cta__btn-solid:hover { background: #DCE8FF; border-color: #DCE8FF; color: #14203A; text-decoration: none; }

/* Share row */
.artv2-share { border-top: 1px solid #EDEFF4; padding-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.artv2-share__label { font: 500 12px/1 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: #5A6478; }
.artv2-share__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.tv2 .artv2-share__list a { display: inline-block; font-size: 15px; color: #414B5E; text-decoration: none; border: 1px solid #DFE3EA; border-radius: 999px; padding: 8px 16px; }
.tv2 .artv2-share__list a:hover { border-color: #1257E8; color: #1257E8; text-decoration: none; }

/* Rail */
.artv2-rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.artv2-rail > :not(:first-child) .tv2-rule--sm { display: none; } /* one tick per rail, as on the spine */
.artv2-rail > nav[hidden] + * .tv2-rule--sm { display: block; } /* JS off: the nav never shows, the tick moves to the next card */
.artv2-card { border: 1px solid #DFE3EA; border-radius: 10px; padding: 20px 22px; background: #fff; }
.artv2-card--tinted { background: #F6F8FC; }
.artv2-card__title { font-size: 16px; line-height: 1.3; font-weight: 500; color: #14203A; margin-bottom: 6px; }
.artv2-card__body { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #414B5E; }
.tv2 a.artv2-card__btn { display: block; text-align: center; padding: 12px 18px; border-radius: 4px; font-size: 16px; font-weight: 500; text-decoration: none; color: #fff; background: #1257E8; border: 1.5px solid #1257E8; }
.tv2 a.artv2-card__btn:hover { background: #0A45B8; border-color: #0A45B8; color: #fff; text-decoration: none; }
.artv2-card__links { display: flex; flex-direction: column; }
.tv2 .artv2-card__links a { font-size: 15px; color: #414B5E; text-decoration: none; padding: 10px 0; border-bottom: 1px solid #EDEFF4; }
.tv2 .artv2-card__links a:last-child { border-bottom: 0; }
.tv2 .artv2-card__links a:hover { color: #1257E8; }

/* ---------- Recommended articles ---------- */
.artv2-related { background: #F6F8FC; border-top: 1px solid #EDEFF4; padding: 56px 0; margin-top: 48px; }
.artv2-related .tv2-rule { margin-bottom: 16px; }
.artv2-related__h2 { margin: 0 0 28px; font-size: 26px; line-height: 1.2; font-weight: 500; color: #14203A; }
.artv2-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), calc(33.333% - 19px))); gap: 28px; }
.tv2 a.artv2-related__card { text-decoration: none; display: block; min-width: 0; color: inherit; }
.tv2 a.artv2-related__card:hover { opacity: .92; text-decoration: none; }
.artv2-related__thumb { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 1px solid #DFE3EA; display: block; background: #E7EBF3; }
.artv2-related__thumb--empty { background: repeating-linear-gradient(135deg, #E7EBF3 0 8px, #EDEFF4 8px 16px); }
.tv2 a.artv2-related__card h3 { margin: 14px 0 0; font-size: 18px; line-height: 1.35; font-weight: 500; color: #14203A; }
.tv2 a.artv2-related__card p { margin: 6px 0 0; font-size: 14px; color: #5A6478; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .artv2-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .artv2-hero { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .artv2-hero__image, .artv2-hero__media { max-width: 460px; }
  .artv2-rail { max-width: 460px; }
}

/* How-to step illustration (how-to articles render body1 -> steps -> body2) */
.artv2-step-image { display: block; margin: 0 0 24px; max-width: 100%; height: auto; border-radius: 8px; }
/* Wide markdown tables scroll inside the column instead of pushing the page */
.artv2-prose table { display: block; max-width: 100%; overflow-x: auto; }

/* Byline name links to the writer's own page. Beats .tv2 a (0,1,1) — house rule. */
.tv2 a.artv2-author__link { color: #14203A; text-decoration: none; }
.tv2 a.artv2-author__link:hover { color: #1257E8; text-decoration: underline; }
