/* Individual /blog/{slug} layout only. Do not load on /blog listing. */

body.page-blog-detail {
  background: #fff;
  padding-top: 0 !important;
}

body.page-blog-detail .page_breadcrumb {
  display: none !important;
}

body.page-blog-detail .quote-tab {
  top: 42%;
}

html {
  scroll-behavior: smooth;
}

.bd-page {
  --bd-green: #7cb72c;
  --bd-green-dark: #5a8f1c;
  --bd-green-deep: #44701a;
  --bd-green-tint: #f4f9ec;
  --bd-green-line: rgba(124, 183, 44, 0.28);
  --bd-ink: #0b1220;
  --bd-ink-soft: #334155;
  --bd-muted: #65758b;
  --bd-line: #e4e9ef;
  --bd-surface: #f7f9f4;
  --bd-dark: #1d1d1d;
  --bd-display: "Cormorant Garamond", Georgia, serif;
  --bd-sans: Poppins, sans-serif;
  --bd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bd-radius: 18px;
  --bd-radius-sm: 12px;
  --bd-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 4px 14px rgba(11, 18, 32, 0.05);
  --bd-shadow: 0 2px 6px rgba(11, 18, 32, 0.04), 0 18px 44px rgba(11, 18, 32, 0.08);
  --bd-max: 1320px;
  --bd-gutter: clamp(20px, 4vw, 56px);

  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: clip;
  font-family: var(--bd-sans);
  color: var(--bd-ink);
  background: #fff;
}

.bd-page,
.bd-page h3,
.bd-page h4,
.bd-page button,
.bd-page input,
.bd-page textarea,
.bd-page a,
.bd-page label,
.bd-page p,
.bd-page li {
  font-family: var(--bd-sans);
}

.bd-page *,
.bd-page *::before,
.bd-page *::after {
  box-sizing: border-box;
}

/* Reading progress */

.bd-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: 3px;
  pointer-events: none;
}

.bd-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7cb72c, #5a8f1c);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Shared bits */

.bd-eyebrow,
.bd-touch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--bd-green-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bd-eyebrow::before,
.bd-touch-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.bd-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bd-green-dark) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.bd-link-arrow span {
  transition: transform 0.3s var(--bd-ease);
}

.bd-link-arrow:hover span,
.bd-link-arrow:focus-visible span {
  transform: translateX(4px);
}

.bd-page a:focus-visible,
.bd-page button:focus-visible {
  outline: 2px solid var(--bd-green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Hero
   White editorial hero. The layout is the same for every post: copy on the
   left, cover on the right (copy first when stacked on mobile). Variants
   (.bd-hero--curves|orbital|organic|geometric|waves|minimal), chosen
   server-side from the slug in partials/hero.blade.php, only change the
   background decoration and the accents behind the cover. */

.bd-hero {
  --bh-stroke: rgba(124, 183, 44, 0.45);
  --bh-gray: #cfd7e0;

  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: clamp(12px, 1.4vw, 20px) var(--bd-gutter) clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--bd-line);
  background: #fff;
}

.bd-hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bd-hero-svg {
  position: absolute;
  display: block;
  height: auto;
  overflow: visible;
}

.bd-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 44px);
  width: 100%;
  max-width: var(--bd-max);
  margin: 0 auto;
}

.bd-hero-copy {
  min-width: 0;
}

/* Breadcrumbs */

.bd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.bd-crumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: var(--bd-muted);
}

.bd-crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 12px;
  border-top: 1.4px solid var(--bh-gray);
  border-right: 1.4px solid var(--bh-gray);
  transform: rotate(45deg);
}

.bd-crumbs a {
  color: var(--bd-muted) !important;
  font-weight: 500;
  text-decoration: none !important;
  background: linear-gradient(var(--bd-green), var(--bd-green)) 0 100% / 0 1px no-repeat;
  transition: color 0.25s ease, background-size 0.35s var(--bd-ease);
}

.bd-crumbs a:hover {
  color: var(--bd-green-dark) !important;
  background-size: 100% 1px;
}

/* Category badge */

.bd-hero-tag {
  margin-top: 18px;
}

.bd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--bd-green-line);
  border-radius: 6px;
  background: var(--bd-green-tint);
  color: var(--bd-green-deep) !important;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.bd-pill-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bd-green);
  transition: background-color 0.25s ease;
}

a.bd-pill:hover {
  border-color: var(--bd-green);
  background: var(--bd-green);
  color: #fff !important;
}

a.bd-pill:hover .bd-pill-dot {
  background: #fff;
}

/* Title, lede, meta */

.bd-hero h1 {
  margin: 14px 0 0;
  max-width: none;
  color: var(--bd-ink) !important;
  font-family: var(--bd-display) !important;
  font-size: clamp(32px, 3.7vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.018em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.bd-hero-lede {
  max-width: none;
  margin: 16px 0 0;
  color: var(--bd-muted);
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 1.6;
}

.bd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bd-line);
  color: var(--bd-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.bd-hero-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bd-hero-author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-hero-author-label {
  color: var(--bd-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-hero-meta a,
.bd-hero-meta strong {
  color: var(--bd-ink) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.bd-hero-meta a {
  background: linear-gradient(var(--bd-green), var(--bd-green)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--bd-ease), color 0.25s ease;
}

.bd-hero-meta a:hover {
  color: var(--bd-green-dark) !important;
  background-size: 100% 1px;
}

.bd-hero-facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}

.bd-hero-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bd-hero-facts > span + span::before {
  content: "";
  width: 1px;
  height: 14px;
  margin: 0 16px;
  background: var(--bd-line);
}

.bd-hero-facts svg {
  color: var(--bd-green);
}

.bd-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bd-green-tint);
  color: var(--bd-green-dark);
  box-shadow: inset 0 0 0 1px var(--bd-green-line);
  font-size: 13px;
  font-weight: 700;
}

.bd-avatar--photo,
.bd-author-avatar--photo {
  display: block;
  object-fit: cover;
  background: var(--bd-green-tint);
}

.bd-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  color: #0a66c2 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.bd-linkedin:hover {
  color: #004182 !important;
}

/* Cover: always the full width of the right column, at the image's own
   ratio. Covers range from 4:3 to 7:4 and most carry a baked-in title near
   the edges, so they are never cropped or letterboxed. */

.bd-hero-media {
  position: relative;
  min-width: 0;
}

.bd-hero-media::before,
.bd-hero-media::after {
  position: absolute;
  pointer-events: none;
}

.bd-hero-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--bd-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 28px 60px -28px rgba(30, 50, 10, 0.28);
}

.bd-hero-photo {
  overflow: hidden;
  border-radius: 15px;
  background: var(--bd-surface);
}

.bd-hero-photo > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Variant A: flowing curves, kept to the right edge and bottom-left corner */

.bd-hero-svg--sweep {
  top: -40px;
  right: -60px;
  width: min(760px, 58vw);
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 92%);
  mask-image: linear-gradient(to left, #000 45%, transparent 92%);
}

.bd-hero-svg--arc {
  bottom: -190px;
  left: -200px;
  width: 320px;
}

.bd-hero--curves .bd-hero-media::before {
  content: "";
  top: -36px;
  right: -36px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--bh-stroke);
  border-radius: 50%;
}

.bd-hero--curves .bd-hero-media::after {
  content: "";
  top: -40px;
  right: 35px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bd-green);
}

/* Variant B: orbital lines centred on the cover */

.bd-hero-glow {
  position: absolute;
  top: 50%;
  left: calc(50% + min(25vw, 360px));
  width: 760px;
  height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 183, 44, 0.1), rgba(124, 183, 44, 0));
}

.bd-hero-svg--orbits {
  top: 50%;
  left: calc(50% + min(25vw, 360px));
  width: min(1000px, 80vw);
  transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 40%);
  mask-image: linear-gradient(to right, transparent 8%, #000 40%);
}

.bd-hero-orbit {
  transform-box: view-box;
  transform-origin: 500px 350px;
}

.bd-hero--orbital .bd-hero-media::after {
  content: "";
  bottom: 48px;
  left: -26px;
  width: 9px;
  height: 9px;
  border: 1.4px solid var(--bd-green);
  border-radius: 50%;
  background: #fff;
}

/* Variant C: organic shapes layered behind the cover */

.bd-hero-svg--blob-a {
  top: -140px;
  right: -120px;
  width: min(640px, 90vw);
}

.bd-hero-svg--blob-b {
  bottom: -230px;
  left: -180px;
  width: 360px;
}

.bd-hero-svg--blob-c {
  right: 38%;
  bottom: -80px;
  width: 180px;
  transform: rotate(-18deg);
}

.bd-hero--organic .bd-hero-media::before {
  content: "";
  inset: -30px -26px -38px 44px;
  border-radius: 46% 54% 58% 42% / 44% 40% 60% 56%;
  background: linear-gradient(135deg, #edf6e1 0%, #f6faef 100%);
}

.bd-hero--organic .bd-hero-media::after {
  content: "";
  inset: 34px 30px -26px -28px;
  border: 1.5px solid var(--bd-green-line);
  border-radius: 54% 46% 42% 58% / 52% 58% 42% 48%;
}

/* Variant D: geometric editorial */

.bd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#eef2f5 1px, transparent 1px),
    linear-gradient(90deg, #eef2f5 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 90% at 80% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 90% at 80% 50%, #000 0%, transparent 72%);
}

.bd-hero-svg--frames {
  right: -70px;
  bottom: -90px;
  width: 260px;
}

.bd-hero-svg--corner {
  bottom: 22px;
  left: 18px;
  width: 140px;
}

.bd-hero--geometric .bd-hero-media::before {
  content: "";
  inset: 0;
  border: 1px solid var(--bh-stroke);
  transform: translate(16px, 16px);
}

.bd-hero--geometric .bd-hero-media::after {
  content: "";
  z-index: 2;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--bd-green);
}

.bd-hero--geometric .bd-hero-frame {
  border-radius: 4px;
}

.bd-hero--geometric .bd-hero-photo {
  border-radius: 2px;
}

.bd-hero--geometric .bd-pill {
  border-radius: 2px;
}

/* Variant E: flowing waves */

.bd-hero--waves {
  padding-bottom: clamp(96px, 10vw, 140px);
}

.bd-hero-svg--waves {
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(100px, 14vw, 200px);
}

.bd-hero-wave {
  transform-box: fill-box;
}

.bd-hero-svg--ripple {
  top: 30px;
  right: -30px;
  width: 260px;
}

.bd-hero--waves .bd-hero-media::before {
  content: "";
  inset: 30px -22px -22px 30px;
  border-radius: 26px;
  background: rgba(124, 183, 44, 0.08);
}

/* Variant F: minimal accent */

.bd-hero--minimal .bd-hero-copy::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--bd-green);
}

.bd-hero--minimal .bd-hero-media::after {
  content: "";
  right: 32px;
  bottom: -22px;
  width: 48px;
  height: 2px;
  background: var(--bd-green);
}

.bd-hero-svg--ring {
  right: -70px;
  bottom: -90px;
  width: 240px;
}

/* Hero motion: CSS only, no JS gate, so content never waits on scripts. */

@keyframes bd-hero-rise {
  from {
    opacity: 0.01;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bd-hero-settle {
  from {
    transform: translateY(10px) scale(0.985);
  }
  to {
    transform: none;
  }
}

@keyframes bd-hero-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bd-hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bd-hero-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bd-hero-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-14px, 10px);
  }
}

@keyframes bd-hero-swell {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bd-hero-copy > * {
    animation: bd-hero-rise 0.9s var(--bd-ease) both;
  }

  .bd-hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .bd-hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .bd-hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .bd-hero-copy > :nth-child(n + 5) {
    animation-delay: 0.24s;
  }

  .bd-hero-frame {
    animation: bd-hero-settle 1.1s var(--bd-ease) 0.1s both;
  }

  .bd-hero-draw {
    stroke-dasharray: 1;
    animation: bd-hero-draw 2.4s var(--bd-ease) 0.2s both;
  }

  .bd-hero-node {
    animation: bd-hero-fade 0.8s ease 1.4s both;
  }

  .bd-hero-orbit {
    animation: bd-hero-spin 180s linear infinite;
  }

  .bd-hero-svg--blob-a,
  .bd-hero-svg--blob-b {
    animation: bd-hero-drift 22s ease-in-out infinite;
  }

  .bd-hero-svg--blob-b {
    animation-duration: 28s;
    animation-direction: reverse;
  }

  .bd-hero-wave {
    animation: bd-hero-swell 9s ease-in-out infinite;
  }

  .bd-hero-wave:nth-of-type(2) {
    animation-duration: 11s;
    animation-delay: -3s;
  }

  .bd-hero-wave:nth-of-type(3) {
    animation-duration: 13s;
    animation-delay: -6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-hero *,
  .bd-hero *::before,
  .bd-hero *::after {
    animation: none !important;
  }
}

/* Hero responsive: stacked (copy, then cover) below 768px, two columns above. */

@media (max-width: 767px) {
  .bd-hero-hide-sm {
    display: none;
  }

  .bd-hero-svg--sweep {
    top: -20px;
    right: -140px;
    width: 460px;
    opacity: 0.6;
  }

  .bd-hero-glow,
  .bd-hero-svg--orbits {
    top: auto;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
  }

  .bd-hero-glow {
    bottom: -200px;
  }

  .bd-hero-svg--orbits {
    width: 680px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .bd-hero-svg--frames {
    right: -110px;
    bottom: -110px;
    width: 220px;
    opacity: 0.7;
  }

  .bd-hero-svg--ring {
    width: 180px;
  }

  .bd-hero-grid {
    -webkit-mask-image: radial-gradient(90% 50% at 50% 85%, #000 0%, transparent 75%);
    mask-image: radial-gradient(90% 50% at 50% 85%, #000 0%, transparent 75%);
  }

  .bd-hero-media::before,
  .bd-hero-media::after {
    transform: scale(0.85);
  }

  .bd-hero--geometric .bd-hero-media::before {
    transform: translate(10px, 10px);
  }

  .bd-hero--organic .bd-hero-media::before {
    inset: -18px -14px -22px 28px;
  }

  .bd-hero--organic .bd-hero-media::after {
    inset: 24px 18px -16px -14px;
  }
}

/* Mobile order: breadcrumb, cover, author/date row, category, title. The description is hidden. */
@media (max-width: 767px) {
  .bd-hero-inner {
    gap: 0;
  }

  .bd-hero-copy {
    display: contents;
  }

  .bd-crumbs {
    order: 1;
    margin-bottom: 16px;
  }

  .bd-hero-media {
    order: 2;
  }

  .bd-hero-meta {
    order: 3;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
  }

  .bd-hero-meta .bd-hero-author {
    min-width: 0;
  }

  .bd-hero-meta .bd-hero-facts {
    flex-direction: column;
    flex-shrink: 0;
    align-items: flex-end;
    gap: 4px;
    width: auto;
    font-size: 13px;
  }

  .bd-hero-meta .bd-hero-facts > span + span::before {
    display: none;
  }

  .bd-hero-tag {
    order: 4;
    margin-top: 18px;
  }

  .bd-hero h1 {
    order: 5;
    margin-top: 12px;
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .bd-hero-lede {
    display: none;
  }
}

@media (min-width: 768px) {
  .bd-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    column-gap: clamp(28px, 3.2vw, 48px);
  }

  .bd-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .bd-hero-media {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .bd-hero h1 {
    font-size: clamp(28px, 3.9vw, 38px);
  }

  .bd-hero-lede {
    font-size: 14.5px;
  }

  .bd-hero-meta {
    gap: 10px 16px;
    margin-top: 18px;
    padding-top: 16px;
    font-size: 13px;
  }

  .bd-hero-hide-sm {
    display: none;
  }
}

/* Layout */

.bd-shell {
  width: 100%;
  padding: 28px 0 0;
  background: #fff;
}

.bd-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: calc(var(--bd-max) + 2 * var(--bd-gutter));
  margin: 0 auto;
  padding: 0 var(--bd-gutter);
}

/* Table of contents */

.bd-toc:empty {
  display: none;
}

.bd-toc:not(:empty) {
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-sm);
  background: #fff;
}

.bd-toc-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: var(--bd-ink);
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.bd-toc-label {
  margin: 0;
  color: var(--bd-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bd-toc-label--static {
  display: none;
}

.bd-toc-count {
  margin-left: auto;
  color: var(--bd-muted);
  font-size: 13px;
}

.bd-toc-chevron {
  flex-shrink: 0;
  color: var(--bd-muted);
  transition: transform 0.3s var(--bd-ease);
}

.bd-toc.is-open .bd-toc-chevron {
  transform: rotate(180deg);
}

.bd-toc ol {
  display: none;
  margin: 0;
  padding: 4px 18px 16px;
  list-style: none;
  counter-reset: bd-toc;
}

.bd-toc.is-open ol {
  display: block;
}

.bd-toc li {
  counter-increment: bd-toc;
}

.bd-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid #f0f3f6;
  color: var(--bd-muted) !important;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.bd-toc li:first-child a {
  border-top: 0;
}

.bd-toc a::before {
  content: counter(bd-toc, decimal-leading-zero);
  color: #a4b0bf;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.bd-toc a:hover,
.bd-toc a.is-active {
  color: var(--bd-ink) !important;
}

.bd-toc a:hover::before,
.bd-toc a.is-active::before {
  color: var(--bd-green);
}

.bd-toc .toc-h3 {
  padding-left: 14px;
  font-size: 13px;
}

.bd-toc .toc-h4 {
  padding-left: 26px;
  font-size: 13px;
}

/* Article */

.bd-article {
  min-width: 0;
}

/* Quick answer: solid brand-green panel so it reads differently from the takeaways box below it. */
.bd-quick-answer {
  margin: 0 0 20px;
  padding: 20px 22px;
  border-radius: var(--bd-radius);
  background: linear-gradient(135deg, var(--bd-green-dark) 0%, var(--bd-green-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(68, 112, 26, 0.6);
}

.bd-quick-answer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.bd-quick-answer-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.bd-quick-answer-text {
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.bd-takeaways {
  position: relative;
  width: 100%;
  margin: 0 0 36px;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--bd-green-line);
  border-radius: var(--bd-radius);
  background: linear-gradient(180deg, var(--bd-green-tint) 0%, #fff 100%);
}

.bd-takeaways::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--bd-green);
}

.bd-takeaways-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--bd-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bd-takeaways-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bd-green);
  color: #fff;
}

.bd-takeaways ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bd-takeaways li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  color: var(--bd-ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.bd-takeaways li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bd-green);
  box-shadow: 0 0 0 4px rgba(124, 183, 44, 0.16);
}

.bd-article-body {
  max-width: 100%;
  overflow-x: auto;
  color: var(--bd-ink-soft);
  font-size: 16px;
}

.bd-article-body > *:first-child {
  margin-top: 0;
}

.bd-article-body h2,
.bd-article-body h3,
.bd-article-body h4 {
  color: var(--bd-ink) !important;
  scroll-margin-top: calc(var(--header-nav-h, 80px) + 24px);
}

.bd-article-body h2 {
  position: relative;
  margin: 52px 0 16px;
  padding-top: 20px;
  font-family: var(--bd-display) !important;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.bd-article-body :is(h2, h3, h4) :is(span, strong, b, em, a) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.bd-article-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--bd-green);
}

.bd-article-body > h2:first-child {
  margin-top: 0;
}

.bd-article-body h3 {
  margin: 34px 0 12px;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  line-height: 1.35;
}

.bd-article-body h4 {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.bd-article-body p,
.bd-article-body li {
  color: var(--bd-ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.bd-article-body p {
  margin: 0 0 20px;
}

.bd-article-body strong,
.bd-article-body b {
  color: var(--bd-ink);
  font-weight: 600;
}

.bd-article-body ul,
.bd-article-body ol {
  margin: 0 0 22px;
  padding-left: 1.4em;
}

.bd-article-body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.bd-article-body ul li::marker {
  color: var(--bd-green);
}

.bd-article-body ol li::marker {
  color: var(--bd-green-dark);
  font-weight: 600;
}

.bd-article-body a {
  color: var(--bd-green-dark);
  text-decoration: underline;
  text-decoration-color: var(--bd-green-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.bd-article-body a:hover {
  color: var(--bd-green-deep);
  text-decoration-color: currentColor;
}

.bd-article-body blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border: 0;
  border-left: 3px solid var(--bd-green);
  border-radius: 0 var(--bd-radius-sm) var(--bd-radius-sm) 0;
  background: var(--bd-surface);
}

.bd-article-body blockquote,
.bd-article-body blockquote p {
  color: var(--bd-ink);
  font-family: var(--bd-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.bd-article-body blockquote p:last-child {
  margin-bottom: 0;
}

.bd-article-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: var(--bd-radius);
  box-shadow: var(--bd-shadow-sm);
}

.bd-article-body iframe,
.bd-article-body video {
  max-width: 100%;
  border-radius: var(--bd-radius-sm);
}

.bd-article-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--bd-line);
}

.bd-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-sm);
  background: #fff;
  box-shadow: var(--bd-shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.bd-table-scroll table,
.bd-article-body table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  background: #fff;
}

.bd-article-body > table {
  margin: 28px 0;
}

.bd-article-body table th,
.bd-article-body table td {
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
  color: var(--bd-ink-soft);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.bd-article-body table th,
.bd-article-body table thead td,
.bd-article-body table:not(:has(thead, th)) tr:first-child td {
  background: var(--bd-dark) !important;
  color: #fff;
  font-weight: 600;
  border-right-color: rgba(255, 255, 255, 0.08);
}

.bd-article-body table thead td *,
.bd-article-body table th *,
.bd-article-body table:not(:has(thead, th)) tr:first-child td * {
  color: #fff !important;
}

.bd-article-body table td p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.bd-article-body table th:last-child,
.bd-article-body table td:last-child {
  border-right: 0;
}

.bd-article-body table tr:last-child td {
  border-bottom: 0;
}

.bd-article-body table tbody tr:nth-child(even) td {
  background: #fafbf8;
}

/* Tags */

.bd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bd-line);
}

.bd-tags-label {
  margin-right: 6px;
  color: var(--bd-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bd-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--bd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bd-ink-soft) !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bd-tags a::before {
  content: "#";
  margin-right: 2px;
  color: var(--bd-green);
  font-weight: 600;
}

.bd-tags a:hover {
  border-color: var(--bd-green);
  background: var(--bd-green-tint);
  color: var(--bd-ink) !important;
}

/* FAQ */

.bd-faq {
  margin-top: 56px;
}

.bd-faq > h2 {
  margin: 0;
  color: var(--bd-ink) !important;
  font-family: var(--bd-display) !important;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

.bd-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.bd-faq-item {
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-sm);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.bd-faq-item:hover {
  border-color: #cfd8e1;
}

.bd-faq-item.is-open {
  border-color: var(--bd-green-line);
  background: linear-gradient(180deg, var(--bd-green-tint) 0%, #fff 70%);
  box-shadow: var(--bd-shadow-sm);
}

.bd-faq-item button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.bd-faq-num {
  flex-shrink: 0;
  min-width: 24px;
  color: var(--bd-green-dark);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bd-faq-q {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--bd-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.bd-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bd-line);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.35s var(--bd-ease), background-color 0.25s ease, border-color 0.25s ease;
}

.bd-faq-icon::before,
.bd-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--bd-ink);
  transform: translate(-50%, -50%);
  transition: background-color 0.25s ease;
}

.bd-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.bd-faq-item.is-open .bd-faq-icon {
  border-color: var(--bd-green);
  background: var(--bd-green);
  transform: rotate(45deg);
}

.bd-faq-item.is-open .bd-faq-icon::before,
.bd-faq-item.is-open .bd-faq-icon::after {
  background: #fff;
}

.bd-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--bd-ease);
}

.bd-faq-item.is-open .bd-faq-a {
  grid-template-rows: 1fr;
}

.bd-faq-a-inner {
  min-height: 0;
  overflow: hidden;
}

.bd-faq-a-inner p {
  margin: 0;
  padding: 0 64px 20px 56px;
  color: var(--bd-ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* Author */

.bd-author {
  position: relative;
  display: flex;
  gap: 20px;
  margin: 48px 0 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  background: var(--bd-surface);
}

.bd-author::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 183, 44, 0.16) 0%, rgba(124, 183, 44, 0) 70%);
  pointer-events: none;
}

.bd-author-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bd-green) 0%, var(--bd-green-dark) 100%);
  color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(90, 143, 28, 0.3);
  font-size: 20px;
  font-weight: 700;
}

.bd-author-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bd-author .k {
  margin: 0;
  color: var(--bd-green-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bd-author h3 {
  margin: 6px 0 0;
  color: var(--bd-ink) !important;
  font-family: var(--bd-display) !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.bd-author .bio {
  margin: 10px 0 0;
  color: var(--bd-ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.bd-author .bd-link-arrow {
  margin-top: 14px;
}

/* Get in touch */

.bd-touch {
  position: relative;
  width: 100%;
  padding: 26px 22px 24px;
  overflow: hidden;
  border-radius: var(--bd-radius);
  background: var(--bd-dark) !important;
  color: #fff;
  box-shadow: var(--bd-shadow);
}

.bd-touch::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 183, 44, 0.35) 0%, rgba(124, 183, 44, 0) 68%);
  pointer-events: none;
}

.bd-touch > * {
  position: relative;
}

.bd-touch-eyebrow {
  color: var(--bd-green);
}

.bd-touch h2 {
  margin: 0;
  color: #fff !important;
  font-family: var(--bd-display) !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
}

.bd-touch-intro {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.bd-field {
  min-width: 0;
  margin-top: 12px;
}

.bd-field-row {
  display: grid;
  grid-template-columns: 1fr;
}

.bd-touch label {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.bd-touch input,
.bd-touch textarea {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.bd-touch textarea {
  height: 92px;
  resize: vertical;
}

.bd-touch input:hover,
.bd-touch textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.bd-touch input:focus,
.bd-touch textarea:focus {
  outline: none;
  border-color: var(--bd-green);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 183, 44, 0.25);
}

.bd-touch input::placeholder,
.bd-touch textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.bd-touch .bd-recaptcha {
  margin-top: 14px;
  min-height: 78px;
}

.bd-touch .bd-form-status {
  margin: 10px 0 0;
  color: #d9e8c4;
  font-size: 13px;
  line-height: 1.4;
}

.bd-touch .bd-form-status.is-error {
  color: #ffb4b4;
}

.bd-touch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--bd-green) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(124, 183, 44, 0.8);
  transition: background-color 0.25s ease, transform 0.25s var(--bd-ease), box-shadow 0.25s ease;
}

.bd-touch button svg {
  transition: transform 0.3s var(--bd-ease);
}

.bd-touch button:hover {
  background: #6ea526 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(124, 183, 44, 0.9);
}

.bd-touch button:hover svg {
  transform: translateX(3px);
}

.bd-touch button:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* Related */

.bd-related {
  position: relative;
  width: 100%;
  margin-top: 72px;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background: var(--bd-surface);
}

.bd-related::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bd-green-line), transparent);
}

.bd-related-inner {
  width: 100%;
  max-width: calc(var(--bd-max) + 2 * var(--bd-gutter));
  margin: 0 auto;
  padding: 0 var(--bd-gutter);
}

.bd-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.bd-related h2 {
  margin: 0;
  color: var(--bd-ink) !important;
  font-family: var(--bd-display) !important;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
}

.bd-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 32px;
}

.bd-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--bd-radius);
  background: #fff;
  box-shadow: 0 0 0 1px var(--bd-line);
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 0.4s var(--bd-ease), box-shadow 0.4s var(--bd-ease);
}

.bd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--bd-green-line), var(--bd-shadow);
}

.bd-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2ea;
}

.bd-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--bd-ease);
}

.bd-card:hover .bd-card-media img {
  transform: scale(1.05);
}

.bd-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.bd-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--bd-ink) !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.bd-card:hover h3 {
  color: var(--bd-green-dark) !important;
}

.bd-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--bd-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bd-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef1f4;
  color: var(--bd-muted);
  font-size: 13px;
}

.bd-card-author {
  overflow: hidden;
  color: var(--bd-ink-soft);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-card-meta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

/* Entrance motion (only when JS opts in and motion is allowed) */

.bd-motion .bd-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--bd-ease), transform 0.8s var(--bd-ease);
}

.bd-motion .bd-reveal.is-in {
  opacity: 1;
  transform: none;
}

.bd-motion .bd-card.bd-reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.bd-motion .bd-card.bd-reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.bd-motion .bd-card.bd-reveal.is-in {
  transition: opacity 0.8s var(--bd-ease), transform 0.4s var(--bd-ease), box-shadow 0.4s var(--bd-ease);
}

.bd-motion .bd-card.bd-reveal.is-in:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bd-page *,
  .bd-page *::before,
  .bd-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .bd-card:hover,
  .bd-card:hover .bd-card-media img,
  .bd-touch button:hover {
    transform: none;
  }
}

/* Responsive */

@media (max-width: 1099px) {
  .bd-link-arrow,
  .bd-hero-meta a {
    min-height: 44px;
    align-items: center;
  }

  .bd-hero-meta a {
    display: inline-flex;
    background-position: 0 calc(50% + 0.7em);
  }

  .bd-author .bd-link-arrow {
    margin-top: 4px;
  }
}

@media (max-width: 559px) {
  .bd-hero-meta {
    gap: 14px;
  }

  .bd-hero-facts {
    width: 100%;
  }

  .bd-faq-item button {
    gap: 10px;
    padding: 14px;
  }

  .bd-faq-a-inner p {
    padding: 0 14px 18px 48px;
  }

  .bd-author {
    flex-direction: column;
    gap: 16px;
    padding: 22px;
  }

  .bd-related-head .bd-link-arrow {
    order: 2;
  }
}

@media (max-width: 379px) {
  .bd-touch .g-recaptcha {
    transform: scale(0.78);
    transform-origin: 0 0;
  }

  .bd-touch .bd-recaptcha {
    min-height: 62px;
  }
}

@media (min-width: 560px) {
  .bd-field-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .bd-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-takeaways {
    padding: 28px 32px 26px;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .bd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "toc touch"
      "article touch";
    column-gap: 32px;
    row-gap: 32px;
    align-items: start;
  }

  .bd-toc {
    grid-area: toc;
  }

  .bd-toc:empty {
    display: none;
  }

  .bd-article {
    grid-area: article;
  }

  .bd-touch {
    grid-area: touch;
    position: sticky;
    top: calc(var(--header-nav-h, 80px) + 20px);
  }

  .bd-touch .bd-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bd-touch .g-recaptcha {
    transform: scale(0.84);
    transform-origin: 0 0;
  }

  .bd-touch .bd-recaptcha {
    min-height: 66px;
  }
}

@media (min-width: 1100px) {
  .bd-shell {
    padding-top: 36px;
  }

  .bd-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 320px;
    column-gap: clamp(32px, 3vw, 48px);
    align-items: start;
  }

  .bd-toc:empty {
    display: block;
  }

  .bd-toc,
  .bd-touch {
    position: sticky;
    top: calc(var(--header-nav-h, 80px) + 20px);
    align-self: start;
    z-index: 2;
  }

  .bd-toc:not(:empty) {
    max-height: calc(100vh - var(--header-nav-h, 80px) - 40px);
    overflow-y: auto;
    padding: 4px 8px 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: thin;
  }

  .bd-toc-toggle {
    display: none;
  }

  .bd-toc-label--static {
    display: block;
    color: var(--bd-muted);
  }

  .bd-toc ol {
    display: block;
    margin-top: 14px;
    padding: 0;
  }

  .bd-toc a {
    padding: 10px 0 10px 12px;
    border-top: 0;
    border-left: 2px solid var(--bd-line);
  }

  .bd-toc a.is-active,
  .bd-toc a:hover {
    border-left-color: var(--bd-green);
  }

  .bd-touch .bd-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bd-touch .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }

  .bd-touch .bd-recaptcha {
    min-height: 70px;
  }

  .bd-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1100px) and (max-width: 1359px) {
  .bd-grid {
    grid-template-columns: 200px minmax(0, 1fr) 290px;
    column-gap: 32px;
  }

  .bd-touch .g-recaptcha {
    transform: scale(0.8);
  }

  .bd-touch .bd-recaptcha {
    min-height: 64px;
  }
}

@media (min-width: 900px) {
  .bd-touch {
    max-height: calc(100vh - var(--header-nav-h, 80px) - 40px);
    overflow-y: auto;
    padding: 16px 16px 14px;
    scrollbar-width: thin;
  }

  .bd-touch .bd-touch-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .bd-touch h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.1;
  }

  .bd-touch-intro {
    margin: 4px 0 4px;
    font-size: 11.5px;
    line-height: 1.4;
  }

  .bd-touch .bd-field {
    margin-top: 6px;
  }

  .bd-touch .bd-field-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bd-touch label {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .bd-touch input,
  .bd-touch textarea {
    height: 34px;
    min-height: 34px;
    padding: 6px 11px;
    font-size: 13px;
  }

  .bd-touch textarea {
    height: 52px;
    min-height: 52px;
  }

  .bd-touch .g-recaptcha {
    transform: scale(0.74);
    transform-origin: 0 0;
  }

  .bd-touch .bd-recaptcha {
    height: 58px;
    min-height: 58px;
    margin-top: 8px;
  }

  .bd-touch button {
    min-height: 38px;
    margin-top: 8px;
  }
}

/* Mobile contact form: tighter spacing, phone and city side by side. */
@media (max-width: 899px) {
  .bd-touch {
    padding: 20px 18px 18px;
  }

  .bd-touch h2 {
    font-size: 26px;
  }

  .bd-touch-intro {
    margin: 6px 0 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .bd-touch .bd-field {
    margin-top: 8px;
  }

  .bd-touch .bd-field-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bd-touch label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .bd-touch input,
  .bd-touch textarea {
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .bd-touch textarea {
    height: 64px;
    min-height: 64px;
  }

  .bd-touch .bd-recaptcha {
    margin-top: 10px;
    min-height: 70px;
  }

  .bd-touch button {
    min-height: 44px;
    margin-top: 10px;
  }
}
