/* Shared, phone-first layout for both blogs. Brands set the variables (and a few extras) in themes/<brand>/theme.css. */
:root {
  --bg: #fff; --surface: #f6f7fb; --surface-2: #eef0f6; --border: #e3e6ee;
  --text: #2b3440; --muted: #5d6b7a; --heading: #10283f; --link: #4b3bd6;
  --accent: #5747dd; --accent-contrast: #fff; --accent-hover: #4637c4;
  --header-bg: #fff; --header-text: #10283f; --header-border: #e9ecf2;
  --pill-bg: #efedfc; --pill-text: #4b3bd6;
  --code-bg: #1d1b2c; --code-text: #e6e4f0; --code-border: transparent; --inline-code-bg: #efedfc; --inline-code-text: #3b2fb0;
  --tok-comment: #8b87a6; --tok-keyword: #c792ea; --tok-string: #c3e88d; --tok-number: #f78c6c; --tok-function: #82aaff;
  --tok-class: #ffcb6b; --tok-tag: #f07178; --tok-attr: #ffcb6b; --tok-punct: #a9a6c2; --tok-operator: #89ddff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-heading: var(--font-body);
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px; --radius-sm: 8px; --content: 720px; --wide: 1180px; --gutter: 16px;
  --shadow: 0 1px 2px rgba(16, 40, 63, .06), 0 4px 16px rgba(16, 40, 63, .06);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.25; }
button { font: inherit; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-contrast); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }

/* buttons, pills, icons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-text); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.6; }
.pill--lg { font-size: 15px; padding: 4px 14px; }
.pill--draft { background: #fff3cd; color: #7a5a00; margin-left: 6px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; }
.icon-link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-link.is-copied { color: #1f9d55; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); }
.site-header__inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); min-height: 64px; display: flex; align-items: center; gap: 16px; }
.site-header__logo { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.site-header__logo img { display: block; height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header__social { display: none; }
.site-header__cta { display: none; }
.site-nav { display: none; }
.site-nav__link { color: inherit; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav__link:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.site-nav__cta-phone .btn { width: 100%; margin-top: 8px; }
body.menu-open .site-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px; background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: var(--shadow); }
body.menu-open .site-nav__link { padding: 12px; font-size: 17px; }
@media (min-width: 1000px) {
  .site-nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
  .site-nav__cta-phone, .site-header__menu { display: none; }
  .site-header__cta { display: inline-flex; margin-left: 8px; }
  .site-header__social { display: inline-flex; }
}

/* hero */
.hero { padding: 40px var(--gutter) 24px; text-align: center; }
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero__eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero__title { margin: 0; font-size: clamp(28px, 6vw, 44px); }
.hero__subtitle { margin: 12px auto 0; font-size: 18px; color: var(--muted); max-width: 620px; }
.hero__count { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.hero--author .avatar { margin-bottom: 12px; }

/* home hero extras: search bar, mascot, topic tiles (a menu on phones), popular posts */
.hero__main { display: flex; align-items: flex-end; justify-content: center; gap: 24px; }
.hero__text { flex: 1; min-width: 0; }
.hero__mascot { display: none; }
.hero__search { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: #6b7a8c; font-size: 16px; text-align: left; cursor: pointer; }
.hero__search svg { color: var(--heading); flex-shrink: 0; }
.topics { margin-top: 20px; }
.topics__grid { display: none; list-style: none; margin: 0; padding: 0; }
.topics__menu { text-align: left; background: rgba(255, 255, 255, .08); border-radius: var(--radius-sm); }
.topics__menu summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.topics__menu ul { list-style: none; margin: 0; padding: 0 8px 8px; }
.topics__menu a { display: block; padding: 10px 8px; color: inherit; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) {
  .hero__mascot { display: block; width: 200px; height: auto; flex-shrink: 0; }
  .topics__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .topics__menu { display: none; }
}
.topic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 128px; padding: 18px 10px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.3; text-align: center; transition: background .15s ease, transform .15s ease; }
.topic:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.popular { max-width: var(--wide); margin: 0 auto; padding: 24px var(--gutter) 0; }
.popular__title { margin: 0 0 12px; font-size: 17px; }
.popular__list { display: flex; flex-wrap: wrap; gap: 10px; }
.popular__item { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 20px; background: var(--surface-2); color: var(--heading); font-weight: 500; font-size: 15px; text-decoration: none; }
.popular__item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.popular__item:hover { background: var(--border); }

/* cards */
.list, .related { max-width: var(--wide); margin: 0 auto; padding: 16px var(--gutter) 56px; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; align-items: flex-start; }
.card__title { margin: 0; font-size: 21px; }
.card__title a { color: var(--heading); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .byline { margin-top: auto; padding-top: 8px; }
.empty { text-align: center; color: var(--muted); }
.list__title { font-size: 1.6rem; margin: 2rem 0 1.25rem; }
.list__page { color: var(--muted); font-weight: 400; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.pagination__count { color: var(--muted); font-size: 15px; }

/* byline */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; color: var(--muted); }
.byline__avatars { display: inline-flex; }
.byline__avatars .avatar + .avatar { margin-left: -8px; }
.byline__names a { color: var(--heading); font-weight: 600; text-decoration: none; }
.byline__meta { white-space: nowrap; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--bg); flex-shrink: 0; }
.avatar--letter { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }

/* post */
.post__header { padding: 24px var(--gutter) 8px; }
.post__header-inner { max-width: var(--content); margin: 0 auto; }
.post__title { margin: 14px 0 0; font-size: clamp(30px, 7vw, 44px); letter-spacing: -.01em; }
.post__excerpt { margin: 14px 0 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.share { display: flex; flex-wrap: wrap; gap: 2px; color: var(--accent); }
.post__image { max-width: 1000px; margin: 16px auto 0; padding: 0 var(--gutter); }
.post__image img { display: block; width: 100%; border-radius: var(--radius); }
.post__image figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.post__layout { max-width: var(--content); margin: 0 auto; padding: 8px var(--gutter) 24px; }
@media (min-width: 1100px) {
  .post__layout--toc { max-width: calc(var(--content) + 2 * 260px + 80px + 2 * var(--gutter)); display: grid; grid-template-columns: 260px minmax(0, var(--content)) 260px; gap: 40px; }
  .post__layout--toc .toc { grid-column: 1; }
  .post__layout--toc .post__content { grid-column: 2; }
  .toc__box { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
}

/* post: banner above, lead (excerpt under the image), right sidebar with widgets */
.post-banner { background: var(--header-bg); color: #fff; overflow: hidden; }
.post-banner__inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-end; justify-content: center; gap: 12px; min-height: 64px; }
.post-banner__text { margin: 0; padding: 16px 0; font-weight: 600; font-size: 18px; }
.post-banner__image { display: none; height: 100px; width: auto; }
@media (min-width: 720px) { .post-banner__text { font-size: 22px; padding: 28px 0; } .post-banner__image { display: block; } }
.post__lead { background: var(--surface-2); margin-top: -120px; padding: 140px var(--gutter) 28px; }
.post__lead-inner { max-width: 1170px; margin: 0 auto; }
.post__lead .post__excerpt { margin: 0; color: var(--heading); }
.post__layout--sidebar { max-width: 1200px; }
.post__sidebar { display: grid; gap: 16px; align-content: start; margin-top: 32px; }
.post__sidebar .toc { display: none; }
.toc--phone { margin-top: 8px; }
@media (min-width: 1000px) { .post__sidebar .toc { display: block; } .toc--phone { display: none; } }
@media (min-width: 1000px) {
  .post__layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
  .post__sidebar { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; margin-top: 32px; }
  .post__sidebar .toc { margin: 0; }
  .post__sidebar .toc__box { position: static; max-height: none; }
}
.widget { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.widget__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; background: var(--header-bg); padding: 10px 16px 0; min-height: 56px; }
.widget__logo { height: 18px; width: auto; margin-bottom: 14px; }
.widget__mascot { height: 72px; width: auto; margin-top: -24px; }
.widget__title { margin: 0; padding: 16px 20px 8px; font-size: 18px; }
.widget__links { list-style: none; margin: 0; padding: 0 20px 16px; }
.widget__links a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--link); text-decoration: none; font-size: 15px; font-weight: 500; }
.widget__links svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.widget--signup { background: var(--header-bg); color: #fff; padding: 16px 20px 20px; border: 0; }
.widget--signup .widget__title { color: #fff; padding: 0 0 8px; font-size: 24px; font-weight: 500; }
.widget--signup p { margin: 0 0 14px; font-size: 15px; }
.widget--signup .btn { width: 100%; }

/* table of contents */
.toc { margin: 16px 0 8px; font-size: 15px; }
.toc__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 14px; }
.toc__title { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--heading); list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title svg { width: 18px; height: 18px; }
.toc__list { list-style: none; margin: 0 0 10px; padding: 0; }
.toc__item a { display: block; padding: 5px 8px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc__item--h3 a { padding-left: 22px; font-size: 14px; }
.toc__item a:hover { color: var(--heading); }
.toc__item a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
@media (min-width: 1100px) { .toc { margin-top: 32px; } }

/* article content */
.content { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.content > * + * { margin-top: 1.2em; }
.content p, .content ul, .content ol, .content blockquote, .content figure { margin-bottom: 0; }
.content h2 { font-size: 28px; margin: 1.6em 0 0; }
.content h3 { font-size: 22px; margin: 1.6em 0 0; }
.content h2 + *, .content h3 + * { margin-top: .6em; }
.content ul, .content ol { padding-left: 1.4em; }
.content li + li { margin-top: .35em; }
.content img { display: block; margin: 0 auto; border-radius: var(--radius-sm); }
.content figure { margin-left: 0; margin-right: 0; }
.content figcaption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 8px; }
.content blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--heading); font-style: italic; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.content th, .content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.content :not(pre) > code { font-family: var(--font-code); font-size: .88em; background: var(--inline-code-bg); color: var(--inline-code-text); padding: .12em .4em; border-radius: 6px; }
.content iframe, .content video { max-width: 100%; }
.content .heading-anchor, .content [id] > a.header-anchor { text-decoration: none; }

/* code blocks (Prism at build time) */
.code-block { position: relative; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
@media (min-width: 720px) { .code-block { margin-left: 0; margin-right: 0; } }
.code-block pre { margin: 0; padding: 40px 18px 18px; overflow-x: auto; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--code-border); font: 15px/1.6 var(--font-code); tab-size: 2; }
@media (min-width: 720px) { .code-block pre { border-radius: var(--radius-sm); } }
.code-block code { font: inherit; background: none; padding: 0; color: inherit; }
.code-lang { position: absolute; left: 18px; top: 10px; font: 600 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--tok-comment); }
.code-copy { position: absolute; right: 10px; top: 6px; font-size: 13px; padding: 4px 10px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--code-text) 25%, transparent); background: transparent; color: var(--code-text); cursor: pointer; opacity: .8; }
.code-copy:hover { opacity: 1; }
.code-copy.is-copied { color: #7ee2a8; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: var(--tok-comment); font-style: italic; }
.token.keyword, .token.boolean, .token.important, .token.atrule, .token.builtin { color: var(--tok-keyword); }
.token.string, .token.char, .token.attr-value, .token.regex, .token.template-string { color: var(--tok-string); }
.token.number, .token.constant, .token.symbol { color: var(--tok-number); }
.token.function, .token.method { color: var(--tok-function); }
.token.class-name, .token.maybe-class-name, .token.decorator { color: var(--tok-class); }
.token.tag, .token.selector, .token.deleted { color: var(--tok-tag); }
.token.attr-name, .token.property { color: var(--tok-attr); }
.token.punctuation { color: var(--tok-punct); }
.token.operator, .token.entity, .token.url { color: var(--tok-operator); }
.token.inserted { color: var(--tok-string); }

/* post footer */
.post__footer { max-width: var(--content); margin: 0 auto; padding: 8px var(--gutter) 40px; display: grid; gap: 24px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post__share-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-weight: 600; color: var(--heading); }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box__name { font-weight: 700; color: var(--heading); text-decoration: none; font-size: 18px; }
.author-box__bio { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.related__title { text-align: center; font-size: 26px; margin: 0 0 20px; }

/* footer with columns */
.site-footer.site-footer--columns { background: var(--header-bg); color: #c9d3e3; border-top: 0; }
.site-footer--columns .site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding-bottom: 24px; }
@media (min-width: 900px) { .site-footer--columns .site-footer__inner { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__brand { grid-column: auto; } }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--header-bg); }
.site-footer__social-link svg { width: 18px; height: 18px; }
.site-footer__col { display: flex; flex-direction: column; gap: 2px; }
.site-footer__title { margin: 0 0 10px; font-size: 19px; color: #fff; font-weight: 600; }
.site-footer--columns .site-footer__link { color: #c9d3e3; }
.site-footer--columns .site-footer__link:hover { color: #fff; }
.site-footer__bottom { max-width: var(--wide); margin: 0 auto; padding: 16px var(--gutter) 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: #8fa0b8; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__extra { display: flex; gap: 18px; }
.site-footer__logo { height: 18px; width: auto; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) 96px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__link { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.site-footer__link svg { width: 16px; height: 16px; }
.site-footer__link:hover { color: var(--heading); }
.site-footer__copy { margin: 0; }

/* search dialog */
.search-dialog { width: min(680px, calc(100vw - 24px)); max-height: min(80vh, 720px); margin: 8vh auto auto; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.search-dialog::backdrop { background: rgba(10, 12, 24, .55); }
.search-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border); color: var(--heading); }
#search { padding: 16px 18px 20px; --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--accent); --pagefind-ui-text: var(--text); --pagefind-ui-background: var(--bg); --pagefind-ui-border: var(--border); --pagefind-ui-tag: var(--surface-2); --pagefind-ui-font: var(--font-body); }

/* consent banner */
.consent { position: fixed; z-index: 50; left: 8px; right: 8px; bottom: 8px; }
.consent__inner { max-width: 760px; margin: 0 auto; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); padding: 16px; display: grid; gap: 12px; font-size: 15px; }
.consent__text { margin: 0; }
.consent__choices { display: grid; gap: 6px; }
.consent__choices small { color: var(--muted); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__actions .btn { width: 100%; }
.consent__actions [data-consent="reject"], .consent__actions [data-consent="accept"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.consent__more { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .consent__actions { display: flex; justify-content: flex-end; }
  .consent__actions .btn { width: auto; }
  .consent__more { order: -1; margin-right: auto; }
}
[hidden] { display: none !important; }

/* ── header extras: logo wordmark, a "Log in" text link ── */
.site-header__logo { gap: 10px; text-decoration: none; color: inherit; }
.site-header__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.site-header__wordmark strong { font-size: 16px; font-weight: 700; }
.site-header__wordmark small { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--accent); margin-top: 3px; }
.site-header__login { display: none; color: inherit; text-decoration: none; font-weight: 600; padding: 8px 10px; }
.site-nav__login-phone .site-header__login { display: block; padding: 12px; }
@media (min-width: 1000px) { .site-header__login { display: inline-block; } .site-nav__login-phone { display: none; } }

/* ── hero extras: eyebrow pill, gradient accent ── */
.hero__eyebrow--pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.accent { background: var(--accent-gradient, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── footer CTA band + brand block ── */
.footer-cta { background: var(--cta-band-bg, var(--surface-2)); }
.footer-cta__inner { max-width: var(--wide); margin: 0 auto; padding: 56px var(--gutter); display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .footer-cta__inner { grid-template-columns: 1fr auto; padding: 78px var(--gutter); } }
.footer-cta__eyebrow { margin: 0 0 10px; font-weight: 700; color: var(--accent); }
.footer-cta__title { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.footer-cta__sub { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.footer-cta__actions { display: grid; gap: 12px; min-width: min(280px, 100%); }
.btn--lg { min-height: 48px; padding: 12px 24px; font-size: 15px; }
.site-footer__brandlogo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.site-footer__brandlogo img { height: 26px; width: auto; }
.site-footer__brandlogo strong { font-size: 19px; }
.site-footer__blurb { margin: 12px 0 16px; max-width: 340px; }
.site-footer__social-link--chip { width: auto; height: auto; border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 15px; text-decoration: none; }
.site-footer__note { font-size: 14px; }

/* ── owner review: Original / Rewrite proposal toggle (dev preview only; rewrites are never published) ── */
.rewrite-toggle { position: relative; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 10px var(--gutter); background: #fff8e1; border-bottom: 1px solid #f1d98a; color: #5c4400; font-size: 14px; }
.rewrite-toggle__label { font-weight: 700; }
.rewrite-toggle__tab { padding: 6px 14px; border-radius: 999px; border: 1px solid #e3c766; color: #5c4400; text-decoration: none; font-weight: 600; background: #fff; }
.rewrite-toggle__tab.is-on { background: #5c4400; color: #fff; border-color: #5c4400; }
.content .review-note { display: block; margin: 0 0 1.6em; padding: 14px 18px; border: 1px dashed #e3c766; border-radius: var(--radius-sm); background: #fff8e1; color: #5c4400; font-size: 15px; line-height: 1.55; }
.content .review-note ul { margin: 8px 0 0; padding-left: 1.2em; }

/* owner 24 Nov: MailerLite newsletter embeds (old ".subscribe-form" and new ".ml-form-embedWrapper" styles) centred in posts */
.content [id^="mlb2-"] .subscribe-form, .content .ml-form-embedWrapper { margin-left: auto !important; margin-right: auto !important; }

/* AU: "Reference: <topic> docs →" under relevant posts */
.docs-ref { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; }
.docs-ref__label { font-weight: 700; color: var(--heading); }
.docs-ref a { color: var(--link); font-weight: 600; text-decoration: none; }
.docs-ref a:hover { text-decoration: underline; }
.docs-ref__sep { color: var(--muted); padding: 0 4px; }

/* Angular University blog: the angular-university.io look (owner 24 Nov: one seamless site; post text untouched).
   Near-black #0a0718, Inter (800 headings), pink→purple glows, gradient pill CTA, glassy cards, JetBrains Mono code. */
:root {
  color-scheme: dark;
  --bg: #0a0718; --surface: rgba(255, 255, 255, .04); --surface-2: rgba(255, 255, 255, .07); --border: rgba(255, 255, 255, .1);
  --text: rgba(255, 255, 255, .86); --muted: rgba(255, 255, 255, .62); --heading: #fff; --link: #ff7eb0;
  --accent: #f10153; --accent-contrast: #fff; --accent-hover: #d4116f;
  --accent-gradient: linear-gradient(100deg, #ff2f6d 0%, #ff7eb0 30%, #a78bfa 62%, #38bdf8 100%);
  --header-bg: rgba(10, 7, 24, .82); --header-text: #fff; --header-border: rgba(255, 255, 255, .08);
  --pill-bg: rgba(241, 1, 83, .12); --pill-text: #ffb3cd;
  --code-bg: #120d24; --code-text: #f2eefc; --code-border: rgba(255, 255, 255, .08); --inline-code-bg: rgba(255, 255, 255, .08); --inline-code-text: #ffd1e6;
  --cta-band-bg: radial-gradient(70% 120% at 50% 0, rgba(167, 139, 250, .16), transparent 70%), #0a0718;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-code: "JetBrains Mono", Consolas, monospace;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
body { font-size: 16px; }

/* header: blurred near-black bar, logo + "Angular University / BLOG" exactly as on angular-university.io/home (same
   au-logo.svg at 38×40, 16px/800 name, 12px/800 #ffb3cd label with 2.5px tracking), bold nav, "Log in", gradient pill CTA */
.site-header { backdrop-filter: saturate(160%) blur(12px); }
/* as angular-university.io/home (headless Chrome, 25 Nov): the bar is 75 px tall (83 px from 1081 px) including its 1 px
   border; its content is min(1440 px, the width minus 24 px on each side), 14 px a side up to 500 px */
.site-header__inner { min-height: 74px; max-width: min(1440px, calc(100% - 48px)); padding: 0; }
@media (min-width: 1081px) { .site-header__inner { min-height: 82px; } }
.site-header__logo { flex-shrink: 0; gap: 10px; }                       /* owner 25 Nov: the full logo + name, never squeezed */
/* the mark's three sizes on angular-university.io/home: 28×29 up to 500 px, 32×34 to 1250 px, 38×40 from 1251 px;
   up to 500 px the name is 14 px */
.site-header__logo img { width: 32px; height: auto; }   /* height from the SVG's 39:41, as on AU */
@media (min-width: 1251px) { .site-header__logo img { width: 38px; } }
.site-header__wordmark { white-space: nowrap; line-height: 1.2; }
.site-header__wordmark strong { color: #fff; font-size: 16px; font-weight: 800; }
.site-header__wordmark small { color: #ffb3cd; font-size: 12px; font-weight: 800; letter-spacing: 2.5px; margin-top: 2px; }
@media (max-width: 500px) {
  .site-header__inner { max-width: calc(100% - 28px); }
  .site-header__logo img { width: 28px; }
  .site-header__wordmark strong { font-size: 14px; }
  .site-header__wordmark small { letter-spacing: 2px; }
}
.site-nav__link { white-space: nowrap; }
/* below 1240 px the full nav doesn't fit next to the logo, search, Log in and the CTA: the menu button takes over (as on
   angular-university.io, which collapses its nav on laptops too) */
@media (min-width: 1000px) and (max-width: 1239px) {   /* measured: 1219 px needed */
  .site-nav { display: none; }
  .site-header__menu { display: inline-flex; }
  /* opened: a compact panel under the menu button, not a full-width sheet */
  body.menu-open .site-nav { left: auto; right: var(--gutter); width: 300px; margin: 0; align-items: stretch; border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px; padding: 8px; }
  body.menu-open .site-nav__link { font-size: 16px; padding: 10px 14px; text-align: left; }
}
.site-nav { margin-left: 28px; gap: 6px; }
.site-nav__link { color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 700; padding: 8px 9px; }
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-header__login { color: #fff; font-size: 15px; font-weight: 700; margin-right: 8px; }
.btn--primary { background: linear-gradient(96deg, #f10153, #d4116f); border-radius: 999px; font-weight: 700; box-shadow: 0 4px 14px rgba(241, 1, 83, .14); }
.btn--primary:hover { background: linear-gradient(96deg, #ff1f6a, #e01a7a); }
.site-header__cta { font-size: 14px; padding: 11px 18px; }
.btn--ghost { color: #fff; background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .24); border-radius: 13px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
body.menu-open .site-nav { background: #0f0a22; }

/* hero: glows as on the home page, pill, 800-weight title with the gradient word */
/* owner 25 Nov: the Angular University emblem of angular-university.io/home (assets/angular-university-hero.webp, 1254 px,
   served here at 560 px for 2× screens) as a large logo above the "Angular University Blog" title */
.hero__logo { display: block; width: 260px; height: auto; margin: -12px 0 4px -14px; filter: drop-shadow(0 18px 40px rgba(221, 0, 49, .28)); }
@media (max-width: 719px) { .hero__logo { width: 180px; margin: -6px 0 2px -10px; } }
.hero { position: relative; }
.hero--home, .hero--small { background:
  radial-gradient(62% 52% at 74% 16%, rgba(241, 1, 83, .40), rgba(241, 1, 83, 0) 60%),
  radial-gradient(52% 44% at 8% 4%, rgba(124, 58, 237, .38), rgba(124, 58, 237, 0) 62%),
  radial-gradient(40% 40% at 90% 90%, rgba(56, 189, 248, .10), transparent 70%); }
.hero--home { text-align: left; padding: 72px var(--gutter) 56px; }
.hero--home .hero__inner { max-width: calc(var(--wide) - 2 * var(--gutter)); }
.hero__eyebrow--pill { color: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; }
.hero__title { color: #fff; font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero--home .hero__title { font-size: clamp(36px, 7vw, 67px); max-width: 900px; }
.hero__subtitle, .hero__count { color: rgba(255, 255, 255, .7); }
.hero__eyebrow { color: #ff7eb0; }

/* cards: glassy */
.card { background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); }
.card:hover { border-color: rgba(255, 126, 176, .35); box-shadow: 0 10px 40px rgba(241, 1, 83, .08); }
.card__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.card__title a { color: #fff; }
.pill { background: rgba(241, 1, 83, .12); color: #ffb3cd; border: 1px solid rgba(241, 1, 83, .28); }
.byline__names a { color: #fff; }
.avatar { border-color: #0a0718; }

/* post: a glassy header card on the glow, Inter 800 title; the text itself is unchanged */
.page-post .post__header { padding-top: 40px; background: radial-gradient(60% 70% at 70% 0, rgba(241, 1, 83, .28), transparent 65%), radial-gradient(50% 60% at 5% 0, rgba(124, 58, 237, .28), transparent 65%); }
.post__header-inner { background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 24px 18px; }
@media (min-width: 720px) { .post__header-inner { max-width: 980px; padding: 36px 64px; } }
.post__title { font-weight: 800; letter-spacing: -.035em; color: #fff; }
.post__excerpt { color: rgba(255, 255, 255, .66); }
.share { color: #ff7eb0; }
.content { font-size: 17px; line-height: 1.8; }
.content h2, .content h3 { font-weight: 800; letter-spacing: -.025em; }
.content a { color: #ff7eb0; }
.content blockquote { color: #fff; border-left-color: #f10153; }
.toc__box, .author-box { background: rgba(255, 255, 255, .04); }
.toc__item a.is-active { color: #ff7eb0; border-left-color: #ff7eb0; }
.code-block pre { border-radius: 14px; }

/* newsletter band + footer, as on the home page */
.footer-cta__inner { text-align: center; justify-items: center; }
@media (min-width: 900px) { .footer-cta__inner { grid-template-columns: 1fr; } }
.footer-cta__eyebrow { color: #ff4d8d; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.footer-cta__title { color: #fff; font-weight: 800; letter-spacing: -.04em; }
.footer-cta__sub { color: rgba(255, 255, 255, .72); }
.footer-cta__actions { min-width: 0; }
.site-footer.site-footer--columns { background: radial-gradient(40% 60% at 25% 0, rgba(241, 1, 83, .10), transparent 70%), #07051a; color: rgba(255, 255, 255, .78); border-top: 1px solid; border-image: linear-gradient(90deg, transparent, #f10153 30%, #38bdf8 70%, transparent) 1; }
@media (min-width: 900px) { .site-footer--columns .site-footer__inner { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.site-footer__title { color: rgba(255, 255, 255, .74); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.site-footer--columns .site-footer__link { color: rgba(255, 255, 255, .78); font-size: 16px; min-height: 36px; }
.site-footer--columns .site-footer__link:hover { color: #fff; }
.site-footer__brandlogo { color: #fff; }
.site-footer__brandlogo img { height: 36px; }
.site-footer__blurb { color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.6; }
.site-footer__social { gap: 8px; }
.site-footer__social-link--chip { background: rgba(241, 1, 83, .1); color: #ffb3cd; border: 1px solid rgba(241, 1, 83, .32); }
.site-footer__social-link--chip:hover { background: rgba(241, 1, 83, .18); color: #fff; }
.site-footer__bottom { color: rgba(255, 255, 255, .7); border-top-color: rgba(255, 255, 255, .1); font-size: 15px; }
.pill--draft { background: #5a4500; color: #ffe08a; border: 0; }
.search-dialog::backdrop { background: rgba(0, 0, 0, .7); }
