/* Blog hub and post: a magazine index and a long read. Loads after concept.css and shares only its
   tokens, type, buttons, FAQ accordion and chrome. Composition is its own so the blog never reads as
   a service page, a hub, About or Contact. */

.bl-page main figure { margin: 0; }
.bl-cat {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--f-label); font-weight: 700; font-size: 15px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.bl-cat:before { content: ""; flex: none; width: 18px; height: var(--rule); background: var(--orange); }
.bl-go { display: inline-flex; color: var(--ink); transition: transform .2s ease; }
.bl-hero .cta-pair .btn svg, .bl-post-hero .cta-pair .btn svg { flex: none; }

/* ---------- Hub hero: the homepage's full-bleed stage, the filter held to the window ---------- */
.bl-hero .hero-bg img { object-position: 72% 0%; }
.bl-hero .hero-inner { padding-top: clamp(40px, calc(100svh - var(--top) - 470px), 400px); }

/* ---------- Hub listing: one editorial grid, newest post as the lead story ---------- */
.bl-head { display: grid; gap: 8px; margin-bottom: 32px; }
.bl-head h2, .bl-head .lede { margin: 0; }
.bl-grid { list-style: none; margin: 0; padding: 0; display: grid; }
.bl-card { min-width: 0; }
.bl-card a { display: grid; grid-template-rows: auto 1fr; gap: 14px; height: 100%; color: var(--ink); }
.bl-ph { position: relative; overflow: hidden; background: var(--ink); border-radius: 2px; aspect-ratio: 4 / 3; }
.bl-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bl-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bl-card h3 {
  margin: 2px 0 0; font-size: 19px; line-height: 1.1; overflow-wrap: break-word;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: var(--rule);
  text-underline-offset: var(--rule-gap); text-decoration-skip-ink: none; transition: text-decoration-color .18s ease;
}
.bl-ex { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.bl-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; padding-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--grey); }
.bl-card a:hover .bl-ph img, .bl-card a:focus-visible .bl-ph img { transform: scale(1.045); }
.bl-card a:hover h3, .bl-card a:focus-visible h3 { text-decoration-color: var(--orange); }
.bl-card a:hover .bl-go { transform: translateX(4px); }

.bl-lead { padding-bottom: 28px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.bl-lead h3 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.04; }
.bl-lead .bl-ex { font-size: 17px; color: var(--grey); }
.bl-side a, .bl-row a { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); grid-template-rows: none; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bl-side .bl-ph, .bl-row .bl-ph { aspect-ratio: 1 / 1; }
.bl-side .bl-ex, .bl-row .bl-ex { font-size: 14.5px; }

/* ---------- Hub close: the live call panel as the final band, the live service links under it ---------- */
.bl-final { --final-w: 980px; }
.bl-final .final-bg { object-position: 70% 30%; opacity: .6; }
.bl-svc { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.22); }
.bl-svc a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 2px;
  background: rgba(0,0,0,.35); color: var(--white); font-weight: 600; font-size: 15.5px; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bl-svc a svg { flex: none; transition: transform .2s ease; }
.bl-svc a:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.bl-svc a:hover svg { transform: translateX(3px); }

/* ---------- Post hero: the cover, full bleed, with the byline under the title ---------- */
.bl-post-hero .hero-bg img { object-position: var(--pos, 50% 40%); }
.bl-post-hero .hero-inner { padding-top: clamp(40px, calc(100svh - var(--top) - 480px), 380px); }
.bl-post-hero h1 { font-size: clamp(28px, 8.2vw, 38px); line-height: 1.02; overflow-wrap: break-word; }
.bl-byline { order: 3; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 1px 12px; margin: 16px 0 0; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--on-ink); }
.bl-byline img { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 3px; border-radius: 50%; background: var(--white); object-fit: contain; }
.bl-byline span:first-of-type { color: var(--white); font-weight: 700; }
.bl-byline time { color: var(--on-ink-muted); }
.bl-dot { display: none; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

/* ---------- Post article: reading column beside the "On this page" index ---------- */
.bl-article { padding-top: 48px; }
.bl-read { display: grid; gap: 28px; }
.bl-toc { min-width: 0; }
.bl-toc-box { border: 1px solid var(--line); border-radius: 2px; background: var(--smoke); }
.bl-toc-box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 12px 6px 16px; cursor: pointer; list-style: none;
  font-family: var(--f-label); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
}
.bl-toc-box summary::-webkit-details-marker { display: none; }
.bl-toc .pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.bl-toc .pm:before, .bl-toc .pm:after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.bl-toc .pm:after { transform: translate(-50%, -50%) rotate(90deg); }
.bl-toc-box[open] .pm { background: var(--ink); border-color: var(--ink); }
.bl-toc-box[open] .pm:before, .bl-toc-box[open] .pm:after { background: var(--white); }
.bl-toc-box[open] .pm:after { transform: translate(-50%, -50%) rotate(0deg); }
.bl-toc ol { list-style: none; margin: 0; padding: 0 16px 10px; counter-reset: toc; }
.bl-toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.bl-toc a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; min-height: 44px; padding: 11px 0;
  font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--grey); transition: color .18s ease, box-shadow .18s ease;
}
.bl-toc a:before { content: counter(toc, decimal-leading-zero); font-family: var(--f-label); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--grey); font-variant-numeric: tabular-nums; }
.bl-toc a:hover { color: var(--ink); }
.bl-toc a.on { color: var(--ink); font-weight: 700; }
.bl-toc a.on:before { color: var(--orange); }

.bl-prose { min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.7; }
.bl-prose p { margin: 0 0 1.1em; }
.bl-intro > p:first-child { font-size: 19.5px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.bl-prose a:not(.btn) {
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: var(--rule-link);
  text-underline-offset: 4px; transition: text-decoration-color .18s ease;
}
.bl-prose a:not(.btn):hover { text-decoration-color: currentColor; }
.bl-sec { position: relative; scroll-margin-top: calc(var(--hh) + 24px); margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.bl-sec:before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: var(--rule); background: var(--orange); }
.bl-sec h2 { margin: 0 0 18px; font-size: clamp(24px, 6.8vw, 30px); line-height: 1.06; }
.bl-sec h3 { margin: 30px 0 8px; font-size: 19px; line-height: 1.2; }
.bl-sec > :last-child { margin-bottom: 0; }

.bl-list { list-style: none; margin: 0 0 1.2em; padding: 0; border-top: var(--rule) solid var(--ink); }
.bl-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.bl-list li:before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 2px; background: var(--ink); }
.bl-list li:after { content: ""; position: absolute; left: 7px; top: 18px; width: 5px; height: 10px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); }

.bl-callout { margin-top: 48px; padding: 30px 20px 26px; border-top: 0; border-radius: 2px; background: var(--ink); color: var(--white); box-shadow: inset 0 var(--rule) 0 var(--orange); }
.bl-callout:before { content: none; }
.bl-callout h2 { color: var(--white); }
.bl-callout p { color: var(--on-ink); }
.bl-callout .bl-list { border-top-color: var(--grey); }
.bl-callout .bl-list li { border-bottom-color: rgba(255,255,255,.16); color: var(--white); }
.bl-callout .bl-list li:before { background: var(--orange); }
.bl-callout a:not(.btn) { color: var(--white); }
.bl-callout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bl-callout-actions .btn { min-height: 56px; }

.bl-faq .faq { margin-top: 6px; }
.bl-faq .faq details p { margin: 0; }

.bl-tags { list-style: none; margin: 44px 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.bl-tags li {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--smoke);
  font-family: var(--f-label); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .03em; text-transform: uppercase;
}
.bl-tags svg { flex: none; color: var(--grey); }

/* ---------- More articles: the rest of the live listing as a ruled index ---------- */
.bl-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.bl-more-head h2 { margin: 0; }
.bl-index { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.bl-index li { border-bottom: 1px solid var(--line); }
.bl-index a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; align-items: center; padding: 18px 0; color: var(--ink); }
.bl-index .bl-cat, .bl-index strong, .bl-index time { grid-column: 1; }
.bl-index .bl-go { grid-column: 2; grid-row: 1 / span 3; }
.bl-index strong {
  font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.12; text-transform: uppercase; overflow-wrap: break-word;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: var(--rule); text-underline-offset: var(--rule-gap); text-decoration-skip-ink: none; transition: text-decoration-color .18s ease;
}
.bl-index time { font-size: 14.5px; font-weight: 600; color: var(--grey); }
.bl-index a:hover strong, .bl-index a:focus-visible strong { text-decoration-color: var(--orange); }
.bl-index a:hover .bl-go { transform: translateX(4px); }

/* ---------- Post close: the live author box as the black band ---------- */
.bl-author-grid { display: grid; gap: 26px; }
.bl-author-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bl-author-id img { flex: none; width: 72px; height: 72px; padding: 8px; border-radius: 50%; background: var(--white); object-fit: contain; }
.bl-author .bl-author-name { margin: 0; max-width: none; font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.02; text-transform: uppercase; color: var(--white); overflow-wrap: break-word; }
.bl-author-copy { min-width: 0; }
.bl-author-copy > p:first-child { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: var(--on-ink); }
.bl-author .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bl-author .actions .btn-call { flex: 1 1 100%; justify-content: center; }
.bl-author .actions .btn-line-light { flex: 1 1 auto; justify-content: center; }
.bl-fb { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--white); border-radius: 2px; color: var(--white); transition: background-color .18s ease, color .18s ease; }
.bl-fb:hover { background: var(--white); color: var(--ink); }
.bl-top { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--grey); }
.bl-top .text-link { color: var(--white); }
.bl-top .text-link svg, .bl-top .text-link:hover svg { transform: rotate(180deg); }

@media (max-width: 359px) {
  .bl-hero .hero-inner, .bl-post-hero .hero-inner { padding-top: 24px; }
  .bl-side a, .bl-row a { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 12px; }
  .bl-card h3 { font-size: 17px; }
  .bl-side .bl-ex, .bl-row .bl-ex { font-size: 14px; }
}
@media (max-width: 559px) {
  .bl-hero .cta-pair .btn, .bl-post-hero .cta-pair .btn { padding: 10px 12px; }
  .bl-final .actions .btn { justify-content: center; }
}
@media (min-width: 560px) {
  .bl-author .actions .btn-call { flex: 0 1 auto; }
  .bl-author .actions .btn-line-light { flex: 0 1 auto; }
}
@media (min-width: 700px) {
  .bl-head { margin-bottom: 40px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .bl-lead { grid-column: 1 / -1; padding-bottom: 36px; margin-bottom: 12px; }
  .bl-lead a { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: none; gap: 32px; align-items: center; }
  .bl-lead h3 { font-size: 32px; }
  .bl-side a, .bl-row a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px; padding: 24px 0; border-bottom: 0; }
  .bl-side .bl-ph, .bl-row .bl-ph { aspect-ratio: 16 / 10; }
  .bl-side, .bl-row { border-bottom: 1px solid var(--line); }
  .bl-side .bl-ex, .bl-row .bl-ex { font-size: 15.5px; }

  .bl-post-hero h1 { font-size: clamp(36px, 5.6vw, 46px); }
  .bl-byline { display: flex; flex-wrap: wrap; gap: 8px 10px; }
  .bl-byline img { width: 30px; height: 30px; }
  .bl-dot { display: block; }
  .bl-callout { padding: 36px 32px 32px; }
  .bl-index a { grid-template-columns: 200px minmax(0, 1fr) 132px 24px; gap: 20px; min-height: 84px; padding: 16px 0; }
  .bl-index .bl-cat, .bl-index strong, .bl-index time, .bl-index .bl-go { grid-column: auto; grid-row: auto; }
  .bl-index time { text-align: right; }
}
@media (min-width: 1000px) {
  .bl-hero .hero-bg, .bl-post-hero .hero-bg { transform: none; }
  .bl-hero .hero-bg img { object-position: 72% 40%; }
  .bl-hero .hero-inner, .bl-post-hero .hero-inner { padding-top: 32px; padding-bottom: 96px; }
  .bl-hero h1 { max-width: 13em; font-size: clamp(44px, 3.6vw, 56px); }
  .bl-hero .hero-lede { max-width: 35rem; }

  .bl-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 52px; }
  .bl-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
  .bl-lead { grid-column: 1 / 8; grid-row: 1 / 3; margin: 0; padding: 0; border-bottom: 0; }
  .bl-lead a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px; align-items: stretch; }
  .bl-lead .bl-ph { aspect-ratio: 3 / 2; }
  .bl-lead h3 { font-size: 36px; }
  .bl-lead .bl-ex { font-size: 18px; max-width: 34rem; }
  .bl-side { grid-column: 8 / 13; border-bottom: 1px solid var(--line); }
  .bl-side:nth-child(2) { border-top: var(--rule) solid var(--ink); }
  .bl-side a { grid-template-columns: 168px minmax(0, 1fr); grid-template-rows: none; align-content: center; gap: 20px; padding: 24px 0; }
  .bl-side .bl-ph { aspect-ratio: 1 / 1; }
  .bl-side h3 { font-size: 19px; }
  .bl-row { grid-column: span 4; margin-top: 48px; border-top: var(--rule) solid var(--ink); border-bottom: 0; }
  /* Five posts leave two cards in the bottom row; they share it rather than leave a third of it empty. */
  .bl-row:nth-child(4):nth-last-child(2), .bl-row:nth-child(4):nth-last-child(2) ~ .bl-row { grid-column: span 6; }
  .bl-row a { padding: 24px 0 0; }
  .bl-row h3 { font-size: 21px; }

  .bl-final .final-bg { object-position: 60% 40%; }
  .bl-svc { margin-top: 16px; padding-top: 28px; }

  .bl-post-hero .hero-stage { min-height: clamp(600px, calc(100vh - var(--top) - 40px), 820px); }
  /* The cover sits right of the title and fades into the black under it, so the subject of a
     landscape cover is never under the headline. */
  .bl-post-hero .hero-bg { left: auto; width: 60%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
  .bl-post-hero .hero-bg img { object-position: var(--pos-wide, 50% 40%); }
  .bl-post-hero .hero-shade {
    background:
      linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 26%),
      linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,0) 62%);
  }
  .bl-post-hero .hero-copy > * { max-width: 44rem; }
  .bl-post-hero h1 { max-width: 15em; font-size: clamp(44px, 3.6vw, 56px); line-height: 1; }
  .bl-byline { margin-top: 22px; font-size: 16px; }

  .bl-article { padding-top: 96px; }
  .bl-read { grid-template-columns: minmax(0, 250px) minmax(0, 720px); gap: clamp(48px, 7vw, 120px); align-items: start; }
  .bl-toc { position: sticky; top: calc(var(--hh) + 28px); max-height: calc(100vh - var(--hh) - 56px); overflow-y: auto; overscroll-behavior: contain; }
  .bl-toc-box { border: 0; background: transparent; }
  .bl-toc-box summary { min-height: 0; padding: 0 0 12px; cursor: default; font-size: 16px; color: var(--grey); border-bottom: var(--rule) solid var(--ink); }
  .bl-toc .pm { display: none; }
  .bl-toc ol { padding: 6px 0 0; }
  .bl-toc li { border-top: 0; }
  .bl-toc a { padding: 9px 0 9px 14px; font-size: 15px; box-shadow: inset 1px 0 0 var(--line); }
  .bl-toc a.on { box-shadow: inset var(--rule) 0 0 var(--orange); }
  .bl-prose { font-size: 18px; }
  .bl-intro > p:first-child { font-size: 22px; }
  .bl-sec { margin-top: 56px; padding-top: 32px; scroll-margin-top: calc(var(--hh) + 32px); }
  .bl-sec h2 { font-size: 34px; }
  .bl-sec h3 { font-size: 21px; }
  .bl-callout { padding: 44px 44px 40px; }

  .bl-author-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
  .bl-author-id { flex-direction: column; align-items: flex-start; gap: 22px; }
  .bl-author-id img { width: 96px; height: 96px; padding: 10px; }
  .bl-author .bl-author-name { font-size: 48px; }
  .bl-author-copy > p:first-child { font-size: 19px; }
  .bl-fb { width: 44px; height: 44px; }
  .bl-author .actions .btn-call, .bl-author .actions .btn-line-light { min-height: 52px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .bl-hero .hero-inner, .bl-post-hero .hero-inner { padding-top: 24px; padding-bottom: 72px; }
  .bl-post-hero h1 { font-size: clamp(40px, 3.3vw, 50px); }
  .bl-byline { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-ph img, .bl-card h3, .bl-go, .bl-svc a, .bl-svc a svg, .bl-toc a, .bl-toc .pm:before, .bl-toc .pm:after, .bl-index strong, .bl-fb, .bl-prose a { transition: none; }
  .bl-card a:hover .bl-ph img { transform: none; }
}
