/* BrokerConnector · an Insights article
   Builds on style.css, about.css (FAQs) and insights.css (the topic chip, the photo duotone, the article cards). Here:
   the article itself on white, an editorial layout on the site's 12-column grid (Hasan, 2 Nov: the centred column
   read as outdated). The header wide, the photo edge to edge, then the body: "In this article" on the left, the text
   in a measured column, numbered headings, a pull quote that breaks out, the key takeaways on navy. */

.post { position: relative; isolation: isolate; padding: clamp(130px, 18vh, 190px) var(--gutter) clamp(80px, 12vh, 130px); color: var(--ink); }

/* =========================================================
   The header: back to Insights and the topic; the title across most of the page; the lead left, the details right
   ========================================================= */
.post__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(22px, 3.4vh, 34px); }
.post__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.post__back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: rgba(9, 15, 27, .6); text-decoration: none; transition: color .25s ease; }
.post__back svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .25s ease; }
.post__back:hover { color: #0E9E8A; }
.post__back:hover svg { transform: rotate(180deg) translateX(3px); }
.post__title { grid-column: 1 / 11; margin: 0; font-size: clamp(48px, 6.6vw, 116px); font-weight: 400; letter-spacing: -.05em; line-height: .95; text-wrap: balance; }
.post__lead { grid-column: 1 / 7; margin: clamp(8px, 2vh, 20px) 0 0; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.4; letter-spacing: -.01em; color: rgba(9, 15, 27, .66); }
.post__info { grid-column: 9 / 13; display: grid; gap: 14px; margin: clamp(8px, 2vh, 20px) 0 0; }
.post__info div { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(9, 15, 27, .1); }
.post__info dt { font-size: 13.5px; color: rgba(9, 15, 27, .5); }
.post__info dd { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; }
.post__mark { display: block; width: 26px; height: 26px; border-radius: 7px; } /* the brand mark (the favicon: the white C on the royal to teal tile), never the BC logo */

/* =========================================================
   The photo: edge to edge within the page's gutters, a wide crop, in the site's duotone (insights.css .feat__img)
   ========================================================= */
.post__img { position: relative; width: 100%; aspect-ratio: 2.35 / 1; margin: clamp(48px, 7vh, 80px) 0 0; }

/* =========================================================
   The body: "In this article" in the first columns, the text in a measured column, headings numbered in teal
   ========================================================= */
.post__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(56px, 9vh, 96px); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; color: rgba(9, 15, 27, .76); counter-reset: h; }
.post__body > * { grid-column: 5 / 12; }
.post__toc { grid-column: 1 / 4 !important; grid-row: 1 / span 4; align-self: start; padding-top: 6px; }
.post__toc p { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: rgba(9, 15, 27, .5); }
.post__toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(9, 15, 27, .1); counter-reset: toc; }
.post__toc li { counter-increment: toc; padding: 0; border-bottom: 1px solid rgba(9, 15, 27, .1); }
.post__toc li::before { display: none; } /* not the body's teal list dots */
.post__toc a { display: grid; grid-template-columns: 2.2rem 1fr; padding: 13px 0; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; transition: color .25s ease; }
.post__toc a::before { content: counter(toc, decimal-leading-zero); font-size: 13px; font-weight: 600; color: #0E9E8A; padding-top: 1px; }
.post__toc a:hover { color: #0E9E8A; }
.post__intro { margin: 0 0 1.4em; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.55; letter-spacing: -.01em; color: var(--ink); }
.post__body p { margin: 0 0 1.2em; }
/* no section numbers on the headings (Hasan, 3 Nov); the contents list keeps its numbers */
.post__body h2 { margin: 1.9em 0 .6em; font-size: clamp(28px, 2.4vw, 38px); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; color: var(--ink); scroll-margin-top: 110px; }
.post__body ul { display: grid; gap: .6em; margin: 0 0 1.4em; padding: 0; list-style: none; }
.post__body li { position: relative; padding-left: 26px; }
.post__body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: #19E8C9; }

/* the pull quote breaks out of the column, large, with a teal mark */
.post__quote { grid-column: 3 / 13 !important; position: relative; margin: clamp(48px, 7vh, 80px) 0; padding: clamp(28px, 4vh, 40px) 0; border-top: 1px solid rgba(9, 15, 27, .12); border-bottom: 1px solid rgba(9, 15, 27, .12); }
.post__quote::before { content: "“"; position: absolute; left: 0; top: clamp(10px, 2vh, 18px); font-size: clamp(64px, 6vw, 96px); line-height: 1; color: #19E8C9; }
.post__quote p { margin: 0 !important; padding-left: clamp(56px, 6vw, 96px); font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -.035em; line-height: 1.1; color: var(--ink); text-wrap: balance; }

/* the key takeaways: a navy panel, teal ticks */
.post__key { grid-column: 5 / 13 !important; margin: clamp(32px, 5vh, 56px) 0 0; padding: clamp(28px, 3vw, 44px); border-radius: 24px; color: #EEF2FA; background: #141C30; }
.post__key-t { margin: 0 0 18px !important; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #19E8C9; }
.post__key ul { gap: 14px; margin: 0; padding: 0 !important; }
.post__key li { padding-left: 34px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: #fff; }
.post__key li::before { top: .18em; left: 0; width: 20px; height: 20px; background: #19E8C9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%23090F1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* related: the Insights grid's head and cards */
.rel .arts__head { align-items: center; }

/* the article and its FAQs are both white: one gap between them, not two (the site's white-run rule only matches
   sections) */
.post + .faq { padding-top: 0; }

@media (max-width: 1024px) {
  .post__title, .post__lead { grid-column: 1 / -1; }
  .post__info { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .post__info div { grid-template-columns: 1fr; gap: 4px; }
  .post__body > *, .post__toc, .post__quote, .post__key { grid-column: 1 / -1 !important; }
  .post__toc { grid-row: auto; margin-bottom: 40px; }
}
@media (max-width: 720px) {
  .post__info { grid-template-columns: 1fr; }
  .post__info div { grid-template-columns: 7rem 1fr; }
  .post__img { aspect-ratio: 4 / 3; }
  .post__img.feat__img { border-radius: 18px; }
}

/* the legal pages (terms.html, privacy.html), on this layout with no photo: the body starts under the header, and the
   paragraphs wrap evenly so no word sits alone */
.legal .post__body { margin-top: clamp(64px, 10vh, 110px); }
.legal .post__body p, .legal .post__body li { text-wrap: pretty; }
.legal .post__body a { color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(9, 15, 27, .3); transition: color .2s ease, box-shadow .2s ease; }
.legal .post__body a:hover { color: #0E9E8A; box-shadow: inset 0 -1px 0 #0E9E8A; }
/* every paragraph and list in a section lines up under its heading's words, not just the first */

/* 404 (404.html): the header alone, with two ways on */
.nf { min-height: 70vh; }
.nf__ctas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* the cookie list on the Privacy Policy: plain rows on hairlines, like the contents list; scrolls sideways on narrow phones */
.post__table { margin: .4em 0 1.6em; overflow-x: auto; }
.post__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post__table th, .post__table td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(9, 15, 27, .1); }
.post__table th { font-size: 13px; font-weight: 600; color: var(--ink); border-bottom-color: rgba(9, 15, 27, .2); }
.post__table td:first-child { white-space: nowrap; }
.post__table code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ink); }

/* (24 Nov) each article has its own page: the topic beside the way back */
.post__cat { padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 500; color: #0B7F70; background: #D6FBF4; white-space: nowrap; }
/* (24 Nov) the homepage's Instagram cards are also .post, and their ".post a { display: grid }" reached into every article,
   stacking the back link's arrow over its words. Articles undo it */
article.post { width: auto; }
article.post .post__back { display: inline-flex; gap: 8px; }
article.post .post__body p a, article.post .post__body > ul a, article.post .post__body > ol a { display: inline; } /* body links, not the contents list */
/* (24 Nov, QA) the back link: a 43px tall tap area without moving anything (padding, taken back by the margin) */
.post__back { padding: 12px 0; margin: -12px 0; }
/* (24 Nov, QA) the narrowest phones: article titles a step smaller so long words fit */
@media (max-width: 360px) { .post__title { font-size: clamp(30px, 9.4vw, 36px); overflow-wrap: anywhere; } }
