/* ═══════════════════════════════════════════════════════════════════════════
   AMW BLOG — index layouts (A/B/C), single post, "Keep reading", homepage
   "From the blog". Enqueued by the shortcodes in inc/amw-blog.php, only on the
   views that render them, and only for viewers who can see the blog.

   Everything is namespaced .amw-bl-* (style.css already owns .amw-blog-card,
   and amw-animations.js fades in anything called .amw-blog-card). Tokens
   (--ink, --ink-soft, --paper, --white, --purple, --purple-dark, --lilac,
   --lilac-soft, --line, --shadow) come from amw-chrome-2027.css, a declared
   dependency; theme.json presets are NOT available (the network's mu-plugin
   dequeues global-styles), so nothing here uses --wp--preset--*.
   Resets use :where() so they cost no specificity (see the 2026-07-29
   store-badge incident in amw-home-2027.css).
   ═══════════════════════════════════════════════════════════════════════════ */

.amw-bl {
	--amw-on-accent: #fff;              /* text on a --purple fill; --purple doesn't flip, so neither does this */
	--amw-bl-accent-text: var(--purple); /* purple text on paper */
	--amw-bl-measure: 680px;
	color: var(--ink);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}
/* #6d48c7 on the dark paper is ~3:1; the site's dark link colour reads properly. */
html[data-theme="dark"] .amw-bl { --amw-bl-accent-text: #c084fc; }

:where(.amw-bl) a { color: inherit; text-decoration: none; }
:where(.amw-bl) img { display: block; max-width: 100%; height: auto; }
:where(.amw-bl) h1,
:where(.amw-bl) h2,
:where(.amw-bl) h3 { color: var(--ink); }
/* amw-animations.js fades in every h2.wp-block-heading; in an article that's a
   flicker, not an effect. */
.amw-bl .amw-reveal { opacity: 1; transform: none; transition: none; }

/* ═══════════════════════════════════════════════════════════
   INDEX HERO + CHIPS
   ═══════════════════════════════════════════════════════════ */
.amw-bl-index { padding: 40px 24px 110px; }
.amw-bl-hero { max-width: 820px; margin: 0 auto; padding: 36px 0 34px; text-align: center; }
.amw-bl-eyebrow {
	color: var(--amw-bl-accent-text);
	letter-spacing: .17em; text-transform: uppercase;
	margin: 0 0 22px;
	font-size: 12px; font-weight: 800; line-height: 1.3;
}
.amw-bl-hero h1 {
	margin: 0;
	font-size: clamp(38px, 5vw, 64px); font-weight: 700;
	line-height: 1.04; letter-spacing: -.05em;
}
.amw-bl-intro { color: var(--ink-soft); max-width: 620px; margin: 22px auto 0; font-size: 16px; line-height: 1.75; }

.amw-bl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1180px; margin: 0 auto 40px; }
.amw-bl-chip {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 0 18px;
	background: var(--white); border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-size: 13px; font-weight: 600;
	transition: border-color .18s, transform .18s;
}
.amw-bl-chip:hover { border-color: #6d48c766; transform: translateY(-2px); }
.amw-bl-chip.is-current { background: var(--purple); border-color: var(--purple); color: var(--amw-on-accent); }

.amw-bl-empty { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 40px auto; max-width: 520px; }

/* ═══════════════════════════════════════════════════════════
   CARD (shared by every layout, "Keep reading" and the homepage)
   Stretched link: the title's <a>::after covers the card; nothing
   else inside is a link, so there are no nested anchors.
   ═══════════════════════════════════════════════════════════ */
.amw-bl-list,
.amw-bl-grid { display: grid; gap: 22px; max-width: 1180px; margin: 0 auto; }
.amw-bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.amw-bl-card {
	position: relative;
	display: flex; flex-direction: column;
	min-width: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 24px;
	overflow: hidden;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.amw-bl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #6d48c745; }
.amw-bl-card-media { position: relative; aspect-ratio: 3 / 2; background: var(--lilac-soft); overflow: hidden; flex: none; }
.amw-bl-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.amw-bl-card:hover .amw-bl-card-media img { transform: scale(1.04); }
.amw-bl-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; min-width: 0; }
.amw-bl-card-kicker {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin: 0;
	color: var(--amw-bl-accent-text);
	font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.amw-bl-card-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.amw-bl-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
/* Focus ring drawn on the cover, inset, because the card clips overflow. */
.amw-bl-card-link:focus { outline: none; }
.amw-bl-card-link:focus-visible::after { outline: 3px solid var(--amw-bl-accent-text); outline-offset: -3px; }
.amw-bl-card-excerpt { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.amw-bl-card-meta { margin: auto 0 0; padding-top: 4px; color: var(--ink-soft); font-size: 12.5px; font-weight: 500; }

/* Editors only: draft / pending / scheduled. */
.amw-bl-badge {
	display: inline-flex; align-items: center;
	padding: 3px 9px; border-radius: 999px;
	background: #fff1d6; color: #7a4d00;
	font-size: 10px; letter-spacing: .08em;
}
html[data-theme="dark"] .amw-bl-badge { background: #f4c27a26; color: #f4c27a; }

/* No featured image yet: a branded stand-in in the homepage life-card pastels. */
.amw-bl-ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #cbb0ed, #eadcf4); }
.amw-bl-ph-1 { background: linear-gradient(135deg, #eadcf4, #fff5dd); }
.amw-bl-ph-2 { background: linear-gradient(135deg, #b9d9c4, #eadcf4); }
.amw-bl-ph-3 { background: linear-gradient(135deg, #fff5dd, #cbb0ed); }
.amw-bl-ph::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -12%; top: -18%; border-radius: 50%; background: #ffffff59; }
/* <b>, not <span>: style.css forces Poppins !important on span. */
.amw-bl-ph b { position: relative; z-index: 1; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(64px, 9vw, 110px); line-height: .7; color: #503aa859; }
html[data-theme="dark"] .amw-bl-ph { filter: brightness(.82) saturate(.9); }

/* ═══════════════════════════════════════════════════════════
   LAYOUT A — lead post + card grid
   ═══════════════════════════════════════════════════════════ */
.amw-bl-layout-a .amw-bl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amw-bl-layout-a .amw-bl-card.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 30px; }
.amw-bl-layout-a .is-lead .amw-bl-card-media { aspect-ratio: auto; min-height: 400px; }
.amw-bl-layout-a .is-lead .amw-bl-card-body { justify-content: center; gap: 14px; padding: 44px 48px; }
.amw-bl-layout-a .is-lead .amw-bl-card-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.amw-bl-layout-a .is-lead .amw-bl-card-excerpt { font-size: 16px; line-height: 1.7; }
.amw-bl-layout-a .is-lead .amw-bl-card-meta { margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT B — editorial list (image left, text right)
   ═══════════════════════════════════════════════════════════ */
.amw-bl-layout-b .amw-bl-list { grid-template-columns: 1fr; max-width: 980px; gap: 18px; }
.amw-bl-layout-b .amw-bl-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.amw-bl-layout-b .amw-bl-card-media { aspect-ratio: auto; min-height: 220px; }
.amw-bl-layout-b .amw-bl-card-body { justify-content: center; padding: 28px 34px; }
.amw-bl-layout-b .amw-bl-card-title { font-size: 24px; line-height: 1.22; letter-spacing: -.03em; }
.amw-bl-layout-b .amw-bl-card-excerpt { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT C — magazine: left masthead, 2 big stories, compact rows
   ═══════════════════════════════════════════════════════════ */
.amw-bl-layout-c .amw-bl-hero { max-width: 1180px; text-align: left; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.amw-bl-layout-c .amw-bl-intro { margin-left: 0; }
.amw-bl-layout-c .amw-bl-chips { justify-content: flex-start; margin-bottom: 30px; }
.amw-bl-layout-c .amw-bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.amw-bl-layout-c .amw-bl-card.is-big .amw-bl-card-media { aspect-ratio: 16 / 10; }
.amw-bl-layout-c .amw-bl-card.is-big .amw-bl-card-title { font-size: 24px; line-height: 1.22; letter-spacing: -.03em; }
.amw-bl-layout-c .amw-bl-card.is-big { margin-bottom: 14px; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; border-radius: 20px; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-card-media { aspect-ratio: 1; margin: 12px 0 12px 12px; border-radius: 14px; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-card-body { gap: 6px; padding: 14px 20px; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-card-title { font-size: 17px; line-height: 1.32; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-card-excerpt { display: none; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-card-meta { padding-top: 0; }
.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-ph b { font-size: 54px; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.amw-bl-pages { margin: 56px auto 0; }
.amw-bl-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.amw-bl-pages .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; padding: 0 16px;
	background: var(--white); border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-size: 14px; font-weight: 600;
}
.amw-bl-pages a.page-numbers:hover { border-color: #6d48c766; }
.amw-bl-pages .page-numbers.current { background: var(--purple); border-color: var(--purple); color: var(--amw-on-accent); }
.amw-bl-pages .page-numbers.dots { background: none; border: 0; min-width: 0; padding: 0 4px; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT PREVIEW PILL (signed-in only)
   ═══════════════════════════════════════════════════════════ */
.amw-bl-switch {
	position: fixed; left: 50%; bottom: 18px; z-index: 9990;
	transform: translateX(-50%);
	display: flex; align-items: center; gap: 6px;
	max-width: calc(100% - 24px);
	padding: 6px 8px 6px 16px;
	border: 1px solid #ffffff26; border-radius: 999px;
	background: #1a0a2ef2; color: #fff;
	box-shadow: 0 12px 32px #0000004d;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 12px; font-weight: 600; white-space: nowrap;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.amw-bl-switch-title { margin-right: 4px; opacity: .75; }
.amw-bl-switch a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff1a; color: #fff; font-weight: 800; text-decoration: none; }
.amw-bl-switch a:hover { background: #ffffff33; }
.amw-bl-switch a[aria-current] { background: #fff; color: #1a0a2e; }
.amw-bl-switch-name { margin: 0 4px; opacity: .75; }
.amw-bl-switch a.amw-bl-switch-reset { width: auto; height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 600; }
.amw-bl-switch-gate { padding: 5px 10px; border-radius: 999px; background: #f4c27a; color: #3b2600; font-size: 11px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════════ */
.amw-bl-single { padding: 28px 20px 0; }
.amw-bl-post-head { max-width: var(--amw-bl-measure); margin: 0 auto; padding: 28px 0 30px; }
.amw-bl-notice {
	margin: 0 0 24px; padding: 12px 16px;
	border-radius: 14px; background: #fff1d6; color: #5c3a00;
	font-size: 13.5px; line-height: 1.5;
}
html[data-theme="dark"] .amw-bl-notice { background: #f4c27a1f; color: #f4dcb0; }
.amw-bl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--amw-bl-accent-text); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.amw-bl-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.amw-bl-crumbs span { opacity: .45; }
.amw-bl-post-title { margin: 0; font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.amw-bl-post-dek { margin: 20px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.6; }
.amw-bl-post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 22px 0 0; color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }
.amw-bl-post-meta span:first-child { color: var(--ink); font-weight: 600; }

.amw-bl-post-figure { max-width: 1000px; margin: 6px auto 0; }
.amw-bl-post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; background: var(--lilac-soft); }
.amw-bl-post-figure figcaption { max-width: var(--amw-bl-measure); margin: 10px auto 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.amw-bl-post-figure figcaption a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Prose. The wrapper is core's .wp-block-post-content, which style.css pins
   to max-width:100% + padding:0 (!important), so the measure is applied to
   its children instead — alignwide/alignfull keep breaking out. Selectors are
   doubled (.amw-bl-prose.wp-block-post-content) or element-qualified on
   purpose: core block CSS (e.g. .wp-block-quote{margin:0 0 1.75em}) is a
   single class and must lose to these. ── */
.amw-bl-prose { margin-top: 44px; color: var(--ink-soft); font-size: 18px; line-height: 1.75; }
.amw-bl-prose.wp-block-post-content > * { max-width: var(--amw-bl-measure); margin-left: auto; margin-right: auto; }
.amw-bl-prose.wp-block-post-content > .alignwide { max-width: 1000px; }
.amw-bl-prose.wp-block-post-content > .alignfull { max-width: 100vw; }
/* style.css throws every .wp-block-html in post content to 100vw; inside an article it stays in the column. */
.amw-bl-prose.wp-block-post-content > .wp-block-html { width: auto; max-width: var(--amw-bl-measure); margin-left: auto; margin-right: auto; }
.amw-bl-prose p { margin-top: 0; margin-bottom: 1.3em; }
.amw-bl-prose h2 { margin-top: 2em; margin-bottom: .6em; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.amw-bl-prose h3 { margin-top: 1.7em; margin-bottom: .5em; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.amw-bl-prose h4 { margin-top: 1.5em; margin-bottom: .4em; font-size: 18px; font-weight: 700; color: var(--ink); }
.amw-bl-prose > :first-child { margin-top: 0; }
.amw-bl-prose :where(ul, ol) { margin-top: 0; margin-bottom: 1.4em; padding-left: 1.3em; }
.amw-bl-prose li { margin-bottom: .5em; }
.amw-bl-prose li::marker { color: var(--purple); font-weight: 700; }
.amw-bl-prose strong { color: var(--ink); font-weight: 600; }
.amw-bl-prose a:where(:not(.wp-block-button__link)) { color: var(--amw-bl-accent-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.amw-bl-prose a:where(:not(.wp-block-button__link)):hover { text-decoration-thickness: 2px; }
.amw-bl-prose blockquote { margin-top: 2em; margin-bottom: 2em; padding: 4px 0 4px 24px; border-left: 4px solid var(--purple); color: var(--ink); font-size: 20px; line-height: 1.6; }
.amw-bl-prose blockquote p:last-child { margin-bottom: 0; }
.amw-bl-prose blockquote cite { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 14px; font-style: normal; }
.amw-bl-prose figure { margin-top: 2em; margin-bottom: 2em; }
.amw-bl-prose figure img { border-radius: 18px; }
.amw-bl-prose figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; text-align: center; }
.amw-bl-prose hr { margin-top: 2.6em; margin-bottom: 2.6em; border: 0; border-top: 1px solid var(--line); }
.amw-bl-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; margin-bottom: 1.4em; }
.amw-bl-prose .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 50px; padding: 0 24px;
	border: 0; border-radius: 999px;
	background: var(--purple); color: var(--amw-on-accent);
	font-size: 15px; font-weight: 700; text-decoration: none;
	transition: transform .18s, background .18s;
}
.amw-bl-prose .wp-block-button__link:hover { background: var(--purple-dark); transform: translateY(-2px); }

/* ── The closing CTA, class `amw-blog-cta` (Additional CSS class).
   The 2026-10 posts put it on a Button block: the post's primary button,
   purple with on-accent text, followed by a "Prefer the app?" paragraph.
   A Group block with the class gets a purple card instead. ── */
.amw-bl-prose .wp-block-buttons:has(> .amw-blog-cta) { margin-top: 2.2em; margin-bottom: .9em; }
.amw-bl-prose .wp-block-button.amw-blog-cta .wp-block-button__link {
	min-height: 56px; padding: 0 30px;
	background: var(--purple); color: var(--amw-on-accent);
	font-size: 16px;
	box-shadow: 0 14px 30px #6d48c73d;
}
.amw-bl-prose .wp-block-button.amw-blog-cta .wp-block-button__link::after { content: "→"; font-weight: 800; transition: transform .18s; }
.amw-bl-prose .wp-block-button.amw-blog-cta .wp-block-button__link:hover { background: var(--purple-dark); }
.amw-bl-prose .wp-block-button.amw-blog-cta .wp-block-button__link:hover::after { transform: translateX(3px); }
.amw-bl-prose .wp-block-buttons:has(> .amw-blog-cta) + p { color: var(--ink-soft); font-size: 15px; }

.amw-bl-prose .wp-block-group.amw-blog-cta {
	margin-top: 2.6em; margin-bottom: 1em;
	padding: 32px 34px;
	border-radius: 26px;
	background: linear-gradient(135deg, var(--purple), var(--purple-dark));
	color: var(--amw-on-accent);
	box-shadow: 0 18px 40px #6d48c738;
}
.amw-bl-prose .wp-block-group.amw-blog-cta :is(h2, h3, h4, p, li, strong, em) { color: var(--amw-on-accent); }
.amw-bl-prose .wp-block-group.amw-blog-cta :is(h2, h3) { margin-top: 0; }
.amw-bl-prose .wp-block-group.amw-blog-cta > :last-child,
.amw-bl-prose .wp-block-group.amw-blog-cta > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.amw-bl-prose .wp-block-group.amw-blog-cta a:not(.wp-block-button__link) { color: var(--amw-on-accent); text-decoration: underline; }
.amw-bl-prose .wp-block-group.amw-blog-cta .wp-block-buttons { margin-bottom: 0; }
.amw-bl-prose .wp-block-group.amw-blog-cta .wp-block-button__link { background: #fff; color: #2d1441; }
.amw-bl-prose .wp-block-group.amw-blog-cta .wp-block-button__link:hover { background: #f5f0fa; }
html[data-theme="dark"] .amw-bl-prose .wp-block-group.amw-blog-cta { background: linear-gradient(135deg, #2a1758, #180f34); border: 1px solid #c9a6f533; box-shadow: none; }

/* ── App band under the article ── */
.amw-bl-post-foot { max-width: 1000px; margin: 56px auto 0; }
.amw-bl-app {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 28px;
	padding: 34px 38px;
	border-radius: 28px;
	background: var(--lilac); color: #2d1441;
}
.amw-bl-app h2 { margin: 0 0 8px; color: inherit; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.amw-bl-app p { margin: 0; max-width: 460px; font-size: 14.5px; line-height: 1.6; opacity: .88; }
.amw-bl-app p a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.amw-bl-app.is-compact { padding: 18px 22px; border-radius: 22px; background: none; border: 1px solid var(--line); color: var(--ink); }
.amw-bl-app.is-compact p { font-size: 14px; }
html[data-theme="dark"] .amw-bl-app.is-compact { background: none; color: var(--ink); }
.amw-bl-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.amw-bl-store {
	display: inline-flex; align-items: center; gap: 10px;
	height: 54px; padding: 0 18px;
	border-radius: 12px; background: #1a0a2e; color: #fff;
	font-size: 15px; font-weight: 600; line-height: 1.1;
	transition: transform .18s;
}
.amw-bl-store:hover { transform: translateY(-2px); }
.amw-bl-store small { display: block; font-size: 9px; font-weight: 400; opacity: .8; }
html[data-theme="dark"] .amw-bl-app { background: linear-gradient(135deg, #2a1758, #180f34); color: #f8f3fc; }
html[data-theme="dark"] .amw-bl-store { background: #fff; color: #1a0a2e; }

/* ── Keep reading ── */
.amw-bl-related { max-width: 1180px; margin: 80px auto 0; padding: 64px 0 110px; border-top: 1px solid var(--line); }
.amw-bl-related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; }
.amw-bl-related h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.amw-bl-more { color: var(--amw-bl-accent-text); font-size: 14px; font-weight: 700; }
.amw-bl-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.amw-bl-related .amw-bl-card-title { font-size: 18px; }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE "FROM THE BLOG" (front page; heading/button reuse the
   home layer's .section-heading / .eyebrow / .button)
   ═══════════════════════════════════════════════════════════ */
.amw-bl-home { padding: 0 max(7vw, 28px) 120px; }
.amw-bl-home-inner { max-width: 1240px; margin: 0 auto; padding-top: 96px; border-top: 1px solid var(--line); }
.amw-bl-home .amw-bl-grid { max-width: 1240px; margin-top: 55px; }
.amw-bl-home .amw-bl-card-title { font-size: 19px; }
.amw-bl-home .amw-bl-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.amw-bl-home .is-4 .amw-bl-card-title { font-size: 17px; }
.amw-bl-home-cta { margin-top: 42px; text-align: center; }
.amw-bl-gate-note { width: fit-content; max-width: 100%; margin: 26px auto 0; padding: 7px 14px; border-radius: 999px; background: #fff1d6; color: #5c3a00; font-size: 12.5px; font-weight: 600; text-align: center; }
html[data-theme="dark"] .amw-bl-gate-note { background: #f4c27a1f; color: #f4dcb0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (mobile-first breakpoints match the chrome layer)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1050px) {
	.amw-bl-grid,
	.amw-bl-layout-a .amw-bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amw-bl-layout-a .amw-bl-card.is-lead { grid-template-columns: 1fr; }
	.amw-bl-layout-a .is-lead .amw-bl-card-media { aspect-ratio: 16 / 9; min-height: 0; }
	.amw-bl-layout-a .is-lead .amw-bl-card-body { padding: 30px 32px 34px; }
	.amw-bl-layout-b .amw-bl-card { grid-template-columns: 240px minmax(0, 1fr); }
	.amw-bl-layout-c .amw-bl-list { grid-template-columns: 1fr; }
	.amw-bl-home .amw-bl-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.amw-bl-index { padding: 20px 16px 96px; }
	.amw-bl-hero { padding: 24px 0 26px; }
	.amw-bl-hero h1 { font-size: 38px; }
	.amw-bl-intro { font-size: 15px; }
	.amw-bl-chips { margin-bottom: 28px; }
	.amw-bl-grid,
	.amw-bl-home .amw-bl-grid.is-4,
	.amw-bl-layout-a .amw-bl-list { grid-template-columns: 1fr; gap: 16px; }
	.amw-bl-card { border-radius: 20px; }
	.amw-bl-card-body { padding: 18px 20px 20px; }
	.amw-bl-card-title { font-size: 19px; }
	.amw-bl-layout-a .amw-bl-card.is-lead { border-radius: 22px; }
	.amw-bl-layout-a .is-lead .amw-bl-card-body { padding: 22px 20px 24px; }
	.amw-bl-layout-a .is-lead .amw-bl-card-title { font-size: 26px; }
	.amw-bl-layout-a .is-lead .amw-bl-card-excerpt { font-size: 15px; }
	/* B on a phone: text left, small square thumbnail right. */
	.amw-bl-layout-b .amw-bl-list { gap: 12px; }
	.amw-bl-layout-b .amw-bl-card { grid-template-columns: minmax(0, 1fr) 96px; align-items: start; }
	.amw-bl-layout-b .amw-bl-card-media { order: 2; aspect-ratio: 1; min-height: 0; margin: 16px 16px 16px 0; border-radius: 14px; }
	.amw-bl-layout-b .amw-bl-card-body { padding: 16px 12px 16px 18px; gap: 6px; }
	.amw-bl-layout-b .amw-bl-card-title { font-size: 17px; line-height: 1.3; }
	.amw-bl-layout-b .amw-bl-card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
	.amw-bl-layout-b .amw-bl-ph b { font-size: 48px; }
	.amw-bl-layout-c .amw-bl-card:not(.is-big) { grid-template-columns: 88px minmax(0, 1fr); }
	.amw-bl-layout-c .amw-bl-card:not(.is-big) .amw-bl-card-title { font-size: 16px; }
	.amw-bl-layout-c .amw-bl-card.is-big { margin-bottom: 4px; }
	.amw-bl-pages .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; }

	.amw-bl-switch { bottom: 12px; flex-wrap: wrap; justify-content: center; padding: 6px 8px; border-radius: 22px; white-space: normal; }
	.amw-bl-switch-title,
	.amw-bl-switch-name { display: none; }

	.amw-bl-single { padding: 12px 16px 0; }
	.amw-bl-post-head { padding: 20px 0 24px; }
	.amw-bl-post-title { font-size: 34px; }
	.amw-bl-post-dek { font-size: 17px; }
	.amw-bl-post-figure img { aspect-ratio: 4 / 3; border-radius: 20px; }
	.amw-bl-prose { margin-top: 32px; font-size: 17px; }
	.amw-bl-prose .wp-block-group.amw-blog-cta { padding: 26px 22px; border-radius: 22px; }
	.amw-bl-post-foot { margin-top: 44px; }
	.amw-bl-app { padding: 26px 22px; border-radius: 22px; }
	.amw-bl-store { height: 50px; padding: 0 14px; font-size: 14px; }
	.amw-bl-related { margin-top: 56px; padding: 48px 0 84px; }

	.amw-bl-home { padding: 0 20px 80px; }
	.amw-bl-home-inner { padding-top: 70px; }
	.amw-bl-home .amw-bl-grid { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.amw-bl-card,
	.amw-bl-card-media img,
	.amw-bl-chip,
	.amw-bl-store,
	.amw-bl-prose .wp-block-button__link { transition: none; }
	.amw-bl-card:hover,
	.amw-bl-chip:hover,
	.amw-bl-store:hover { transform: none; }
	.amw-bl-card:hover .amw-bl-card-media img { transform: none; }
}
