/* Existing webseo.one identity, layered after the reference design. */
.blog { --ink: #07110f; --ink-soft: #14211e; --accent: #22e6bd; --white: #fff; --text: #14211e; --teal: #14211e; --text-on-dark: #fff; --bl-text: #14211e; --bl-muted: #14211e; --bl-surface: #fff; background: #fff; }
/* Keep the supplied drifting background and its softly masked honeycomb. */
.blog .site-header { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); gap: 1rem; }
.blog .brand { min-width: 0; max-width: 100%; }
.blog .brand img { max-width: 100%; }
.blog .service-footer { padding: 5rem clamp(1rem, 4vw, 4rem) 1.5rem; background: var(--ink); color: var(--white); }
.blog .service-footer__top { display: flex; justify-content: space-between; gap: 2rem; }
.blog .footer-tagline { max-width: 27rem; color: var(--white); font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.4; }
.blog .footer-links { display: grid; grid-template-columns: auto auto; gap: 2rem; }
.blog .footer-links__column { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.blog .footer-links a { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); text-decoration: none; }
.blog .footer-links .wc-open { display: inline-flex; align-items: center; padding: 0; border: 0; color: var(--white); background: none; font: inherit; text-align: left; }
.blog .footer-links .icon-arrow { width: 16px; height: 16px; }
.blog .service-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .2); }
.blog .service-footer__bottom a { color: var(--white); }
.blog .bl-content, .blog .entry-content { min-width: 0; overflow-wrap: anywhere; }
.blog .bl-table { max-width: 100%; overflow-x: auto; margin-block: 1.5rem; }
.blog .entry-content table { display: table; width: 100%; min-width: 540px; max-width: none; overflow: visible; }
.blog .bl-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.blog .entry-content caption { text-align: left; padding-bottom: .75rem; font-weight: 600; }
.blog .bl-screenshot { margin-block: 2rem; }
.blog .bl-screenshot img { display: block; width: 100%; height: auto; border: 1px solid rgb(7 17 15 / .15); }
.blog .bl-back { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; text-decoration: none; }
.blog .bl-back .icon-arrow { width: 18px; height: 18px; transform: rotate(-135deg); }
::view-transition { pointer-events: none; }

/* Article positioning follows blog_backup_2026-10-10, not its dark palette. */
.blog .bl-ahead { padding-top: 108px; padding-bottom: clamp(6rem, 10vw, 9rem); overflow: clip; }
.blog .bl-ahead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
.blog .bl-ahead__inner { max-width: none; min-width: 0; margin: 0; }
.blog .bl-ahead__title { max-width: 17ch; margin-top: .9rem; font-size: clamp(2.4rem, 4.6vw, 4.9rem); line-height: .96; text-wrap: initial; view-transition-name: var(--vt-title, none); }
.blog .bl-byline { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .9rem 1.2rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); padding-top: 1.4rem; padding-bottom: 0; border-bottom: 0; }
.blog .bl-byline__avatar { width: 54px; object-position: 50% 0%; }
.blog .bl-author__portrait { object-position: 50% 0%; }
.blog .bl-byline__facts { display: flex; flex-wrap: wrap; align-items: center; justify-self: end; gap: .35rem .8rem; color: var(--bl-text); font-size: .85rem; line-height: 1.5; }
.blog .bl-hero { --c: 44px; width: 100%; max-width: none; margin: 0; view-transition-name: var(--vt-cover, none); }
.is-vt[data-blog-transition="fallback"] .bl-ahead { overflow: visible; }
.blog .bl-abody { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 4vw, 4.5rem); padding-top: 0; justify-content: initial; }
.blog .bl-content { grid-column: 2; }
.blog .bl-answer { --c: 34px; position: relative; z-index: 2; max-width: 46rem; margin-top: calc(clamp(4rem, 7vw, 6rem) * -1); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 3px solid var(--accent); background: var(--mist); }
.blog .entry-content, .blog .bl-sources, .blog .bl-author, .blog .bl-service, .blog .bl-share--end { max-width: 46rem; }
.blog .bl-intro { font-size: 1.15em; line-height: 1.6; }

/* A connected series of hexagonal section markers, with a continuous fill. */
.blog .bl-toc { position: sticky; top: 112px; grid-column: 1; justify-self: initial; width: 100%; max-width: none; max-height: calc(100svh - 7rem); margin: 0; padding-top: 2.75rem; overflow-y: auto; overscroll-behavior: contain; }
.blog .bl-toc__box { padding: 0; border: 0; }
.blog .bl-toc__title { min-height: 32px; margin-bottom: .9rem; font-size: .82rem; }
.blog .bl-toc__title::after { content: none; }
/* Reserve space for the enlarged active hex; keep the scrollable TOC intact. */
.blog .bl-toc__list { --toc-inset: .25rem; position: relative; padding-inline: var(--toc-inset); }
/* Opaque shared fill prevents the track darkening the nodes underneath. */
.blog .bl-toc__track { position: absolute; top: 1.1rem; bottom: 1.1rem; left: calc(var(--toc-inset) + .625rem - 1px); width: 2px; background: var(--mist-strong); }
.blog .bl-toc__track span { display: block; height: 100%; background: var(--accent); transform: scaleY(var(--toc, 0)); transform-origin: top; }
.blog .bl-toc ol { display: grid; margin: 0; padding: 0; border: 0; list-style: none; }
.blog .bl-toc ol a { position: relative; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); align-items: center; gap: .85rem; min-height: 44px; margin: 0; padding: .3rem 0; border: 0; color: var(--bl-muted); font-size: .9rem; line-height: 1.3; text-decoration: none; }
.blog .bl-toc__node { position: relative; width: 1.25rem; aspect-ratio: 2 / 1.732; background: var(--mist-strong); clip-path: var(--hex); transition: background-color 250ms ease, transform 250ms ease; }
.blog .bl-toc a.is-read .bl-toc__node { background: var(--accent); }
.blog .bl-toc a.is-current { color: var(--ink); font-weight: 650; }
.blog .bl-toc a.is-current .bl-toc__node { background: var(--ink); transform: scale(1.2); }
.blog .bl-toc .bl-share { display: flex; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--bl-hair); }
.toc-enhanced .bl-toc__title { cursor: default; }

/* Tablet and phone: the reference's reading bar opens a real bottom sheet. */
.bl-tocbar { position: fixed; z-index: 950; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; width: min(560px, calc(100% - 1.5rem)); opacity: 0; pointer-events: none; transform: translate(-50%, 140%); visibility: hidden; transition: transform 320ms var(--ease-out), opacity 220ms ease, visibility 0s linear 320ms; }
.bl-tocbar.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); visibility: visible; transition: transform 320ms var(--ease-out), opacity 220ms ease, visibility 0s; }
.bl-tocbar[hidden], .no-js .bl-tocbar { display: none; }
.bl-tocbar__button { --cut: 12px; position: relative; display: grid; width: 100%; min-height: 56px; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .65rem; padding: 0 1.1rem; overflow: hidden; border: 0; background: var(--ink); color: var(--white); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut) * .577) 100%, 0 100%); cursor: pointer; font: inherit; font-size: .92rem; text-align: left; }
.bl-tocbar__button .icon { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.bl-tocbar__label { font-weight: 700; }
.bl-tocbar__current { overflow: hidden; color: var(--white); text-overflow: ellipsis; white-space: nowrap; }
.bl-tocbar__bar { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: rgb(255 255 255 / .12); }
.bl-tocbar__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.bl-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 640px; max-height: 82svh; margin: 0 auto; padding: 1.1rem var(--page-gutter) calc(1.5rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border: 0; background: var(--white); color: var(--ink); transition: translate 360ms var(--ease-out), display 360ms allow-discrete, overlay 360ms allow-discrete; }
.bl-sheet:not([open]) { display: none; }
.bl-sheet[open] { translate: 0 0; }
@starting-style { .bl-sheet[open] { translate: 0 100%; } }
.bl-sheet::backdrop { background: rgb(7 17 15 / .55); }
.bl-sheet__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.bl-sheet__head p { font-weight: 700; }
.bl-sheet__close { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: rgb(7 17 15 / .06); color: var(--ink); cursor: pointer; }
.bl-sheet__close .icon { width: 1.2rem; height: 1.2rem; }
.bl-sheet__list { margin: 0; padding: 0; list-style: none; }
.bl-sheet__list a { display: flex; min-height: 54px; align-items: center; gap: .85rem; padding-block: .5rem; border-bottom: 1px solid var(--bl-hair); color: var(--ink); font-size: 1.2rem; font-stretch: 86%; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; text-decoration: none; }
.bl-sheet__list a::before { width: 1rem; aspect-ratio: 2 / 1.732; flex: 0 0 auto; background: var(--mist-strong); clip-path: var(--hex); content: ""; }
.bl-sheet__list a.is-read::before { background: var(--accent); }
.bl-sheet__list a.is-current::before { background: var(--ink); }
/* Match the existing GEO FAQ: a visible light hex, accent when expanded. */
.blog .entry-content summary::after { background-color: var(--mist); transition: background-color 200ms ease; }
.blog .entry-content summary:hover::after { background-color: var(--mist-strong); }
.blog .entry-content details[open] summary::after { background-color: var(--accent); }
@media (min-width: 1101px) {
  .bl-tocbar { display: none; }
  .blog .bl-share--end { display: none; }
  .toc-enhanced .blog .bl-toc__box[open] .bl-toc__title::after { content: none; }
}
@media (max-width: 1100px) {
  .blog .bl-abody { grid-template-columns: minmax(0, 1fr); }
  .blog .bl-content { grid-column: 1; max-width: 46rem; }
  .blog .bl-toc { position: static; grid-column: 1; max-height: none; padding-top: 0; overflow: visible; margin-bottom: 2rem; }
  .toc-enhanced .blog .bl-toc { display: none; }
  .blog .bl-share--end { display: flex; }
}
@media (max-width: 1000px) {
  .blog .bl-ahead__grid { grid-template-columns: minmax(0, 1fr); }
  .blog .bl-hero { max-width: 560px; }
}
@media (max-width: 760px) {
  .blog .bl-ahead { padding-top: 96px; }
  .blog .bl-byline { grid-template-columns: auto minmax(0, 1fr); }
  .blog .bl-byline__facts { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .blog .site-header { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 2rem; }
  .blog .desktop-nav, .blog .header-cta { display: none; }
  .blog.service-enhanced .menu-toggle { display: flex; min-height: 44px; align-items: center; gap: .7rem; color: var(--ink); background: none; border: 0; font: 600 .9rem/1.2 'Instrument Sans', sans-serif; }
  .blog .menu-toggle__lines { display: grid; align-content: center; gap: 5px; width: 24px; height: 24px; }
  .blog .menu-toggle__lines i { display: block; height: 1px; background: currentColor; }
  .blog .mobile-menu:not([hidden]) { position: fixed; inset: 90px 0 0; z-index: 2; display: flex; flex-direction: column; gap: 1.4rem; padding: 2rem; overflow-y: auto; background: var(--accent); }
  .blog .mobile-menu a { color: var(--ink); font-size: 1.75rem; text-decoration: none; }
  .blog .mobile-menu a span { margin-right: 1rem; font-size: .85rem; }
}
@media (max-width: 767px) {
  .blog .site-header { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 1.3rem; }
  .blog .brand img { width: min(39vw, 190px); }
  .blog .service-footer__top { flex-direction: column; }
  .blog .footer-links { gap: 1.5rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blog *, .blog *::before, .blog *::after { scroll-behavior: auto !important; }
  .bl-tocbar, .bl-sheet, .bl-toc__node, .blog .entry-content summary::after { transition: none !important; }
}
