/*
 * Bloomtack V4 blog theme: the one stylesheet of the blog.
 * The tokens, the header, the mobile menu and the footer are the main site's (bloomtack-site,
 * src/styles/site.css) so the blog reads as the same site; node infra/blog/sync-site-shell.mjs
 * --check compares the colour tokens. Below the shell: the blog's own parts (post list, post,
 * blocks). Light only, like the site. Mobile first: 360 px up.
 */

/* ---------- Fonts: the site's own files, latin subset, served from the blog's path ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/geist-latin-basic-wght.woff2') format('woff2-variations');
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022,
    U+2026, U+20AC, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/geist-latin-rest-wght.woff2') format('woff2-variations');
  unicode-range:
    U+0000-001F, U+007F-009F, U+00A1-00A8, U+00AA-00B6, U+00B8-00D6, U+00D8-00FF, U+0131,
    U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2012,
    U+2015-2017, U+201A-201B, U+201E-2021, U+2023-2025, U+2027-206F, U+2122, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 700;
  font-display: block;
  src: url('../fonts/bricolage-grotesque-latin-basic-wght.woff2') format('woff2-variations');
  unicode-range:
    U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022,
    U+2026, U+20AC, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 700;
  font-display: block;
  src: url('../fonts/bricolage-grotesque-latin-rest-wght.woff2') format('woff2-variations');
  unicode-range:
    U+0000-001F, U+007F-009F, U+00A1-00A8, U+00AA-00B6, U+00B8-00D6, U+00D8-00FF, U+0131,
    U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2012,
    U+2015-2017, U+201A-201B, U+201E-2021, U+2023-2025, U+2027-206F, U+2122, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched stand-ins (Arial; Arial Bold for headings) so nothing moves when a font arrives. */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Arimo');
  ascent-override: 98.05%;
  descent-override: 28.78%;
  line-gap-override: 0%;
  size-adjust: 103%;
}
@font-face {
  font-family: 'Bricolage Grotesque Fallback';
  src:
    local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
    local('LiberationSans-Bold'), local('Arimo Bold');
  ascent-override: 91.24%;
  descent-override: 26.49%;
  line-gap-override: 0%;
  size-adjust: 101.93%;
}

/* ---------- Tokens: palette "Mint and cream" (the founder's final pick C, 2026-10-11) ----------
   ALL colours of the theme are here (and in theme.json's palette); nothing below spells a colour.
   The values are the marketing site's (src/styles/site.css on its mint-cream branch), so the
   header and footer match: a pure white page, a soft mint wash in the hero panel only, white cards
   with a visible edge (#B9C7CA) and the card shadow, charcoal text (#151D20, #222C30, #3B484D),
   teal for links and accents (#0C6A63 ink, #0F8174 mark, #D3EFE8 chip tint), and coral only on the
   main button (#D5422B, hover #C4381F, white text 4.5:1) and the logo tile (#E8482F). Light only.
   Token names are the theme's own (--ink is the button fill, --link the text link); `node
   infra/blog/sync-site-shell.mjs --check <dist> <site.css>` compares the names both files share. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --surface-3: #e3eae9;
  --text: #151d20;
  --text-2: #222c30;
  --text-3: #3b484d;
  --border: #b9c7ca;
  --border-strong: #a3b3b8;
  --ink: #d5422b;
  --ink-hover: #c4381f;
  --on-ink: #ffffff;
  --coral: #e8482f;
  --link: #0c6a63;
  --accent: #0f8174;
  --accent-soft: #d3efe8;
  --accent-text: #0a5a54;
  --nav-active: #cbece3;
  --nav-active-line: #a3b3b8;
  --saffron: #b8802d;
  --saffron-soft: #fbf1dc;
  --saffron-text: #7a5700;
  --plum: #9a6bc4;
  --plum-soft: #f2ebf9;
  --plum-text: #7a4ba6;
  --teal: #0f8174;
  --teal-soft: #d3efe8;
  --teal-text: #0a5a54;
  --danger: #b3261e;
  --danger-soft: #fbe9e6;
  --ring: #0c6a63;
  --shadow: 31 42 46;
  --hero: #e8f7f0;
  --hero-border: #b9c7ca;
  --hero-gradient:
    radial-gradient(90% 110% at 88% -8%, #cdeede 0%, rgb(205 238 222 / 0) 64%),
    linear-gradient(180deg, #e8f7f0 0%, #ffffff 74%);
  --elev-card: 0 1px 3px rgb(var(--shadow) / 0.14), 0 14px 30px -10px rgb(var(--shadow) / 0.34);
  --elev-popover: 0 2px 4px rgb(var(--shadow) / 0.08), 0 20px 40px -12px rgb(var(--shadow) / 0.3);
  --font: 'Geist', 'Geist Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Bricolage Grotesque Fallback', 'Geist', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 16px;
  --max: 1200px;
  --measure: 68ch;
  --gutter: 20px;
  --section: 56px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section: 80px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--link);
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
strong {
  color: var(--text);
  font-weight: 600;
}
::selection {
  background: var(--nav-active);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-sm {
  width: 16px;
  height: 16px;
}
.i-xs {
  width: 14px;
  height: 14px;
}
a[href],
button,
summary,
label[for],
input[type='submit'] {
  cursor: pointer;
}

/* ---------- Brand and buttons (the site's) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
}
.brand-mark .mark-dot {
  fill: #ffffff;
}
.brand-word {
  width: 110px;
  height: 16px;
  fill: currentColor;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    color 150ms var(--ease);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}
.btn-sm::after {
  content: '';
  position: absolute;
  inset: -4px 0;
}
.btn-primary,
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-primary:hover,
.btn-ink:hover {
  background: var(--ink-hover);
}
.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-3);
}
.btn-light {
  background: var(--surface);
  color: var(--text);
}
.btn-light:hover {
  background: var(--surface-3);
}

/* ---------- Header (the site's) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-list {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-3);
}
.nav-link[aria-current] {
  background: var(--nav-active);
  color: var(--text);
  font-weight: 600;
}
.nav-link .i {
  color: var(--text-3);
}
.has-menu {
  position: relative;
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: -8px;
  z-index: 60;
  display: none;
  width: 344px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--elev-popover);
}
.has-menu:hover .nav-menu,
.has-menu:focus-within .nav-menu {
  display: block;
}
.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
}
.nav-menu li a:hover {
  background: var(--surface-3);
}
.nav-menu li a .i {
  margin-top: 2px;
  color: var(--text-3);
}
.nav-menu b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}
.nav-menu small {
  display: block;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.nav-menu-all {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 10px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
}
.mnav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  list-style: none;
  cursor: pointer;
}
.mnav-toggle::-webkit-details-marker {
  display: none;
}
.mnav-close,
.mnav[open] .mnav-open {
  display: none;
}
.mnav[open] .mnav-close {
  display: block;
}
.mnav-panel {
  position: absolute;
  top: 64px;
  right: 0;
  left: 0;
  z-index: 60;
  max-height: calc(100dvh - 64px);
  overflow: auto;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--elev-popover);
}
.mnav-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mnav-panel a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.mnav-panel a[aria-current]:not(.btn) {
  font-weight: 650;
}
.mnav-label {
  margin: 0 0 4px;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 600;
}
.mnav-main {
  margin-top: 16px !important;
}
.mnav-cta {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.mnav-panel .mnav-cta .mnav-login {
  justify-content: center;
  border-bottom: 0;
  font-weight: 600;
}
@media (min-width: 1000px) {
  .nav-list,
  .nav-cta {
    display: flex;
  }
  .nav-cta {
    margin-left: 8px;
  }
  .mnav {
    display: none;
  }
  .nav-link {
    white-space: nowrap;
  }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .nav-link {
    padding: 0 8px;
  }
}

/* ---------- Footer (the site's) ---------- */
.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.875rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
    gap: 40px;
  }
  .footer-about {
    grid-column: auto;
  }
}
.footer-about {
  grid-column: 1 / -1;
}
.footer-about p {
  max-width: 300px;
  margin-top: 12px;
}
.footer-grid h2 {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-grid ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-legal {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
address {
  font-style: normal;
}

/* ---------- Blog: page frame ---------- */
.blog-main {
  padding-block: 32px var(--section);
}
.crumbs {
  margin-bottom: 20px;
  color: var(--text-3);
  font-size: 0.875rem;
}
.crumbs a {
  color: var(--text-3);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.crumbs .separator {
  margin-inline: 6px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.eyebrow:hover {
  background: var(--nav-active);
}

/* The one soft green hero panel of a page (V4): the blog index, a category, search, 404. */
.hero-panel {
  margin-bottom: 40px;
  padding: 28px 22px;
  border: 1px solid var(--hero-border);
  border-radius: var(--r-xl);
  background: var(--hero-gradient);
}
.hero-panel h1 {
  font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
}
.hero-panel p {
  max-width: 56ch;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 1.0625rem;
}
@media (min-width: 768px) {
  .hero-panel {
    padding: 44px 40px;
  }
}

/* ---------- Blog: post list ---------- */
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1080px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--elev-card);
  transition:
    border-color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}
.post-card:hover,
.post-card:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--elev-popover);
}
.post-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-3);
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
}
.post-card h2,
.post-card h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
}
.post-card h2 a,
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}
/* The whole card is the link (one tab stop, a 44 px target at any size). */
.post-card h2 a::after,
.post-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.post-meta span + span::before {
  content: '·';
  margin-right: 12px;
}
.pagination {
  margin-top: 40px;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* The palette of theme.json, so a colour picked in the editor looks the same on the page. */
.has-coral-color {
  color: var(--link);
}
.has-body-color {
  color: var(--text);
}
.has-muted-color {
  color: var(--text-2);
}
.has-teal-color {
  color: var(--teal-text);
}
.has-plum-color {
  color: var(--plum-text);
}
.has-page-background-color {
  background-color: var(--bg);
}
.has-peach-background-color {
  background-color: var(--hero);
}
.has-tray-background-color {
  background-color: var(--surface-2);
}
.has-white-background-color {
  background-color: var(--surface);
}
.has-small-font-size {
  font-size: 0.875rem;
}
.has-large-font-size {
  font-size: 1.5rem;
}
.has-huge-font-size {
  font-size: 2rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.pagination .page-numbers.current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.pagination a.page-numbers:hover {
  background: var(--surface-3);
}
.empty {
  padding: 40px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  text-align: center;
}

/* ---------- Blog: search form ---------- */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 20px;
}
.search-form input[type='search'] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

/* ---------- Blog: one post ---------- */
.post-head {
  max-width: 820px;
  margin-inline: auto;
}
.post-head h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  line-height: 1.12;
}
.post-lede {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.post-head .post-meta {
  margin-top: 18px;
  font-size: 0.9375rem;
}
.post-figure {
  max-width: 960px;
  margin: 32px auto 0;
}
.post-figure img {
  width: 100%;
  border-radius: var(--r-xl);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-layout {
  max-width: var(--measure);
  margin: 36px auto 0;
}
.entry-content {
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .entry-content {
    font-size: 1.1875rem;
  }
}
.entry-content > * + * {
  margin-top: 1.25em;
}
.entry-content h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.entry-content h3 {
  margin-top: 1.9em;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}
.entry-content h4 {
  margin-top: 1.6em;
  font-size: 1.125rem;
}
.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
  margin-top: 0.7em;
}
.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover {
  text-decoration-thickness: 2px;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}
.entry-content li + li {
  margin-top: 0.4em;
}
.entry-content blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.1em;
}
.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.875rem;
  font-style: normal;
}
.entry-content hr,
.entry-content .wp-block-separator {
  height: 1px;
  margin-block: 2.2em;
  border: 0;
  background: var(--border-strong);
}
.entry-content code,
.entry-content kbd {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88em;
}
.entry-content pre {
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.6;
  tab-size: 2;
}
.entry-content pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.entry-content figure {
  margin-inline: 0;
}
.entry-content img {
  border-radius: var(--r-lg);
}
.entry-content figcaption,
.wp-element-caption {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}
.entry-content .alignwide,
.entry-content .alignfull {
  width: min(960px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  margin-inline: 50%;
  transform: translateX(-50%);
}
.entry-content .alignleft,
.entry-content .alignright {
  max-width: 50%;
}
@media (min-width: 700px) {
  .entry-content .alignleft {
    float: left;
    margin: 0.4em 1.4em 0.8em 0;
  }
  .entry-content .alignright {
    float: right;
    margin: 0.4em 0 0.8em 1.4em;
  }
}
.entry-content .aligncenter {
  margin-inline: auto;
}
.entry-content table,
.entry-content .wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.entry-content th {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}
.entry-content tbody tr:nth-child(even) td {
  background: var(--surface-2);
}
.entry-content .wp-block-columns {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .entry-content .wp-block-columns {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}
.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}
.entry-content details {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.entry-content summary {
  min-height: 44px;
  padding-block: 10px;
  color: var(--text);
  font-weight: 600;
}
.entry-content .has-text-align-center {
  text-align: center;
}
.entry-content .has-text-align-right {
  text-align: right;
}
.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

/* Table of contents, only on long posts. */
.toc {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 600;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary .i {
  transition: transform 150ms var(--ease);
}
.toc[open] summary .i {
  transform: rotate(180deg);
}
.toc ol {
  display: grid;
  margin: 0;
  padding: 0 18px 12px 40px;
  font-size: 0.9375rem;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}
.toc ol ol {
  padding: 0 0 0 16px;
}

/* ---------- Blog: end of post ---------- */
.post-end {
  max-width: var(--measure);
  margin: 56px auto 0;
}
.cta-panel {
  padding: 28px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-card);
  color: var(--text);
}
.cta-panel h2 {
  color: var(--text);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}
.cta-panel p {
  margin-top: 8px;
  color: var(--text);
}
.cta-panel .btn {
  margin-top: 18px;
}
.related {
  margin-top: 64px;
}
.related h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.post-end-nav {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 0.9375rem;
}
