/* Public reading pages under /blogs.
   Everything is scoped to .blog-page so nothing here can affect the marketing
   homepage. Colour tokens, fonts, the nav and the footer all come from
   styles.css; this file only adds what an article needs. */

/* Inside the two-column article layout the left column IS the measure, so the
   old centring wrappers become plain blocks. */
.blog-page .blog-measure { max-width: 42rem; margin: 0 auto; padding: 0 20px; }
.blog-page .blog-body .blog-measure { max-width: none; margin: 0; padding: 0; }

/* ---------- two-column article layout ---------- */
.blog-page .blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 56px; align-items: start; padding-bottom: 24px; }
.blog-page .blog-body { min-width: 0; }
.blog-page .blog-aside { position: sticky; top: 88px; }
.blog-page .blog-aside-inner { display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - 112px); overflow-y: auto; }

.blog-page .blog-cta-card { background: var(--ink); border-radius: 18px; padding: 26px 24px; }
.blog-page .blog-cta-card h2 { color: #fff; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.blog-page .blog-cta-card p { color: #A9BBAF; font-size: .9375rem; line-height: 1.55; margin: 0 0 20px; }
.blog-page .blog-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-page .blog-cta-primary,
.blog-page .blog-cta-secondary {
  display: inline-block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: .9375rem; padding: 11px 20px; border-radius: 99px; text-decoration: none; white-space: nowrap;
}
.blog-page .blog-cta-primary { background: var(--lime); color: var(--ink); }
.blog-page .blog-cta-primary:hover { background: #7CFF2B; color: var(--ink); }
.blog-page .blog-cta-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.blog-page .blog-cta-secondary:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.blog-page .blog-toc h2 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 14px; }
.blog-page .blog-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.blog-page .blog-toc li { counter-increment: toc; position: relative; margin-left: -1px; border-left: 2px solid transparent; }
.blog-page .blog-toc li a {
  display: block; padding: 7px 0 7px 16px; font-size: .9063rem; line-height: 1.4;
  color: var(--ink-3); text-decoration: none;
}
.blog-page .blog-toc li a::before { content: counter(toc) ". "; color: var(--ink-3); }
.blog-page .blog-toc li a:hover { color: var(--ink); }
.blog-page .blog-toc li.is-current { border-left-color: var(--ink); }
.blog-page .blog-toc li.is-current a { color: var(--ink); font-weight: 600; }


/* ---------- index ---------- */
.blog-page .blog-main { padding-bottom: 24px; }
.blog-page .blog-hero { text-align: center; padding: 72px 20px 48px; max-width: 40rem; margin: 0 auto; }
.blog-page .blog-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.08; margin: 0 0 .4em; }
.blog-page .blog-hero p { font-size: 1.1875rem; color: var(--ink-3); margin: 0; }

.blog-page .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 24px; }

.blog-page .blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  text-decoration: none; color: inherit;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.blog-page .blog-card:hover { border-color: var(--moss); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 36, 25, .07); }
.blog-page .blog-cover { display: block; width: 100%; height: auto; background: var(--ink); }
.blog-page .blog-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-page .blog-card h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.015em; }
.blog-page .blog-excerpt { font-size: .9688rem; color: var(--ink-3); margin: 0 0 18px; }
.blog-page .blog-meta { font-size: .8125rem; color: var(--ink-3); margin: 0 0 18px; }
.blog-page .blog-more { margin-top: auto; font-weight: 600; font-size: .9375rem; color: var(--moss); }
.blog-page .blog-tag {
  align-self: flex-start; font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--moss); background: var(--leaf);
  padding: 4px 10px; border-radius: 99px; margin-bottom: 14px;
}
.blog-page .blog-card.featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.blog-page .blog-card.featured .blog-cover { width: 46%; flex: none; object-fit: cover; height: 100%; }
.blog-page .blog-card.featured .blog-card-body { padding: 32px 36px; }
.blog-page .blog-card.featured h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.blog-page .blog-card.featured .blog-excerpt { font-size: 1.0625rem; }

/* ---------- article ---------- */
.blog-page .blog-post-head { padding: 48px 0 8px; }
.blog-page .blog-back { display: inline-block; font-size: .9375rem; text-decoration: none; color: var(--ink-3); margin-bottom: 24px; }
.blog-page .blog-back:hover { color: var(--ink); }
.blog-page .blog-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.blog-page .blog-post-head h1 { font-size: clamp(2.1rem, 6.2vw, 3.4rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.12; margin: 0; }
.blog-page .blog-standfirst { font-size: 1.2rem; color: var(--ink-3); margin: 20px 0 0; }

.blog-page .blog-article { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); padding-bottom: 32px; }
.blog-page .blog-article h2 { font-size: clamp(1.45rem, 3.8vw, 2rem); font-weight: 700; letter-spacing: -.02em; margin: 48px 0 .5em; }
.blog-page .blog-article h3 { font-size: 1.125rem; font-weight: 700; margin: 32px 0 .5em; }
.blog-page .blog-article p { margin: 0 0 1.2rem; }
.blog-page .blog-article a { color: var(--moss); text-decoration: underline; text-underline-offset: .16em; }
.blog-page .blog-article a:hover { color: var(--moss-dark); }
.blog-page .blog-article strong { color: var(--ink); font-weight: 600; }

.blog-page ul.nots { list-style: none; padding: 0; margin: 24px 0 32px; border-left: 3px solid var(--lime); }
.blog-page ul.nots li { padding: 9px 0 9px 18px; color: var(--ink); font-weight: 500; }
.blog-page ul.nots li s { color: var(--ink-3); font-weight: 400; text-decoration-color: var(--lime-dark); }

.blog-page ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0; }
.blog-page ol.steps li { counter-increment: s; position: relative; padding: 0 0 26px 52px; }
.blog-page ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.blog-page ol.steps li strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 2px; }
.blog-page ol.steps li p { margin: 0; font-size: 1rem; }

.blog-page .paymodels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 32px; }
.blog-page .paymodel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 21px; }
.blog-page .paymodel.accent { border-color: #BBD3BF; }
.blog-page .paymodel .num {
  position: absolute; top: -12px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center;
}
.blog-page .paymodel.accent .num { background: var(--moss); }
.blog-page .paymodel h3 { margin: 6px 0 10px; font-size: 1.125rem; }
.blog-page .paymodel .def { font-size: .9688rem; color: var(--ink); font-weight: 500; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.blog-page .paymodel p { font-size: .9688rem; margin-bottom: 14px; }
.blog-page .paymodel p:last-child { margin-bottom: 0; }

/* ---------- figures ---------- */
.blog-page figure.figure { max-width: 47rem; margin: 36px auto 44px; padding: 0 20px; }
.blog-page .blog-body figure.figure { max-width: none; margin: 36px 0 44px; padding: 0; }
.blog-page .blog-body figcaption { margin-left: 0; margin-right: 0; max-width: none; }
.blog-page figcaption { font-size: .875rem; color: var(--ink-3); line-height: 1.55; margin: 14px auto 0; max-width: 39.5rem; }
.blog-page .panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px 20px; }
.blog-page .panel h3 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-family: "Inter Tight", sans-serif; font-weight: 600; margin: 0 0 20px; }
.blog-page .chart { display: block; width: 100%; height: auto; }
.blog-page .chart .axis text { font-family: "Inter Tight", sans-serif; font-size: 12px; fill: var(--ink-3); }
.blog-page .chart .ann { font-family: "Inter Tight", sans-serif; font-size: 12.5px; fill: var(--ink-3); }
.blog-page .chart .ann.strong { font-weight: 600; fill: var(--ink); }
.blog-page .legend { display: flex; flex-wrap: wrap; gap: 20px; margin: -3px 0 14px; }
.blog-page .key { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink-3); }
.blog-page .swatch { width: 18px; height: 3px; border-radius: 99px; flex: none; }
.blog-page .swatch.ctx { background: #AEBCB1; }
.blog-page .swatch.acc { background: var(--moss); }

.blog-page .dotwrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.blog-page .dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 15.5rem; flex: none; }
.blog-page .dot { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #DDE4DA; }
.blog-page .dot.on { background: var(--moss); }
.blog-page .dotlegend .hero { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 2.75rem); color: var(--ink); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 8px; }
.blog-page .dotlegend .hero span { color: var(--moss); }
.blog-page .dotlegend .sub { font-size: 1.0625rem; color: var(--ink-2); margin: 0 0 14px; }
.blog-page .dotlegend .foot { font-size: .9375rem; color: var(--ink-3); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* Without JS everything sits in its final state; .js sets a start state to animate from. */
.blog-page .area { opacity: .09; }
.blog-page .draw { stroke-dasharray: var(--len, 600); transition: stroke-dashoffset 1.6s cubic-bezier(.33, 1, .68, 1); }
.js .blog-page .draw { stroke-dashoffset: var(--len, 600); }
.js .blog-page .reveal .draw { stroke-dashoffset: 0; }
.js .blog-page .fadein { opacity: 0; transition: opacity .6s ease .5s; }
.js .blog-page .reveal .fadein { opacity: 1; }
.js .blog-page .area.fadein { transition: opacity .8s ease .6s; }
.js .blog-page .reveal .area.fadein { opacity: .09; }
.js .blog-page .dot { opacity: 0; transform: scale(.4); transition: opacity .34s ease, transform .34s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0ms); }
.js .blog-page .reveal .dot { opacity: 1; transform: scale(1); }

.blog-page .cta { background: var(--ink); border-radius: 20px; padding: 36px 28px; text-align: center; margin: 48px 0 16px; }
.blog-page .cta p { color: #C8D5CB; margin: 0 0 22px; font-size: 1.0625rem; }
.blog-page .cta a {
  display: inline-block; background: var(--lime); color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.0625rem;
  padding: 14px 30px; border-radius: 99px; text-decoration: none;
}
.blog-page .cta a:hover { background: #7CFF2B; }

/* internal links to articles that are not written yet */
.blog-page a.pending { color: var(--moss); text-decoration: underline dotted; text-decoration-thickness: 1px; cursor: help; }
.blog-page a.pending::after { content: "\00a0\203A"; opacity: .55; }

@media (max-width: 1000px) {
  .blog-page .blog-layout { grid-template-columns: 1fr; gap: 0; }
  .blog-page .blog-aside { position: static; }
  .blog-page .blog-aside-inner { max-height: none; overflow: visible; }
  .blog-page .blog-toc { display: none; }
  .blog-page .blog-cta-card { display: none; }
}

@media (max-width: 760px) {
  .blog-page .blog-card.featured { flex-direction: column; }
  .blog-page .blog-card.featured .blog-cover { width: 100%; height: auto; }
  .blog-page .blog-card.featured .blog-card-body { padding: 22px; }
  .blog-page .blog-hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .blog-page .paymodels { grid-template-columns: 1fr; gap: 24px; }
  .blog-page .dotwrap { grid-template-columns: 1fr; gap: 24px; }
  .blog-page .dots { width: 100%; max-width: 17rem; }
}
@media (min-width: 641px) {
  .blog-page .paymodel h3 { min-height: 2.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .blog-page .draw { stroke-dashoffset: 0; transition: none; }
  .js .blog-page .fadein { opacity: 1; transition: none; }
  .js .blog-page .dot { opacity: 1; transform: scale(1); transition: none; }
}
