/* Grids must never be stretched by wide content (sliders, tables, code). */
.section > *, .entry > *, .page-wrap > * { min-width: 0; }

/* ── Blog index, archives, search ────────────────────── */
.hero-compact { padding-block: 24px 20px; }
.hero-compact .eyebrow a { color: inherit; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 560px; }
.post-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--tint); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: grid; place-items: center; height: 100%; color: var(--link); }
.post-card-ph svg { width: 36px; height: 36px; }
.post-card-body { display: grid; gap: 8px; align-content: start; padding: 14px 16px 16px; }
.post-card h2 { font-size: 1.08rem; line-height: 1.25; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--link); }
.post-card .muted { font-size: .92rem; }
.post-meta { color: var(--muted); font-size: .82rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 8px; }
.page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; }
.page-numbers.current { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.page-numbers.dots { border: 0; background: none; }
.pagination .screen-reader-text { position: absolute; }

/* ── Single article ──────────────────────────────────── */
.article-head { display: grid; gap: 12px; max-width: 760px; padding-block: 28px 18px; }
.article-head .eyebrow a { color: inherit; }
.article-hero { max-width: 960px; margin-block: 0 8px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.entry-article { max-width: 720px; margin: 0 auto; padding-block: 16px 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; margin: 16px auto 0; }
.article-tags a { padding: 4px 12px; border-radius: 999px; background: var(--chip); font-size: .85rem; }
.post-nav { grid-template-columns: 1fr; }
.post-nav a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); font-weight: 600; height: 100%; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .next { grid-column: 2; text-align: right; } }

/* ── Prose: articles and plain pages (legal etc.) ────── */
.entry-article, .entry-prose { display: block; font-size: 1.06rem; line-height: 1.7; overflow-wrap: break-word; }
:is(.entry-article, .entry-prose) > * + *, :is(.entry-article, .entry-prose) :is(section, header, footer, aside, article, div) > * + * { margin-top: 1em; }
:is(.entry-article, .entry-prose) :is(h2, h3, h4, h5, h6) { margin-top: 1.8em; margin-bottom: .1em; }
:is(.entry-article, .entry-prose) h2 { font-size: clamp(1.35rem, 4.5vw, 1.65rem); }
:is(.entry-article, .entry-prose) h3 { font-size: 1.2rem; }
:is(.entry-article, .entry-prose) h4 { font-size: 1.05rem; }
:is(.entry-article, .entry-prose) :is(ul, ol) { padding-left: 1.4em; }
:is(.entry-article, .entry-prose) li + li { margin-top: .4em; }
:is(.entry-article, .entry-prose) a:not([class]) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
:is(.entry-article, .entry-prose) :is(img, video, iframe, embed, object) { max-width: 100%; border-radius: 12px; }
:is(.entry-article, .entry-prose) iframe, .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
:is(.entry-article, .entry-prose) :is(figure, .wp-caption) { margin: 1.5em 0; max-width: 100%; }
:is(.entry-article, .entry-prose) :is(figcaption, .wp-caption-text, .wp-element-caption) { margin-top: 8px; color: var(--muted); font-size: .88rem; text-align: center; }
:is(.entry-article, .entry-prose) blockquote, .wp-block-quote, .wp-block-pullquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--indigo); font-size: 1.1rem; color: var(--text); }
:is(.entry-article, .entry-prose) blockquote cite { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; font-style: normal; }
:is(.entry-article, .entry-prose) table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
:is(.entry-article, .entry-prose) :is(th, td) { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
:is(.entry-article, .entry-prose) th { background: var(--surface); font-weight: 600; }
:is(.entry-article, .entry-prose) :is(pre, code) { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface); border-radius: 6px; }
:is(.entry-article, .entry-prose) code { padding: 2px 6px; }
:is(.entry-article, .entry-prose) pre { padding: 14px; overflow-x: auto; }
:is(.entry-article, .entry-prose) hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.wp-block-image img { height: auto; }
.wp-block-gallery, .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wp-block-button__link, .wp-block-button a { display: inline-flex; min-height: var(--tap); align-items: center; padding: 0 20px; border-radius: 12px; background: var(--indigo); color: #fff; font: 700 1rem var(--h); text-decoration: none; }
@media (min-width: 700px) {
	.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
	.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
}
.aligncenter { margin-inline: auto; }

/* ── make.com articles: their inline fonts, colours and widths give way to the theme ── */
.entry-article > p:has(> script:only-child) { display: none; }
.entry-article article, .entry-article > div:not([class*="to-"]) { max-width: none !important; margin-inline: 0 !important; padding-inline: 0 !important; font-family: inherit !important; color: inherit !important; }
.entry-article [style*="font-family"] { font-family: inherit !important; }
.entry-article :is(h1, h2, h3, h4, h5, h6) { font-family: var(--h) !important; color: var(--text) !important; line-height: 1.2 !important; letter-spacing: -.01em !important; }
.entry-article [style*="color"]:not([style*="background"]):not([style*="background"] *) { color: inherit !important; }
.entry-article h2[style*="font-size"] { font-size: clamp(1.35rem, 4.5vw, 1.65rem) !important; }
.entry-article p[style*="font-size"] { font-size: inherit !important; }
.entry-article [class*="cta-button"], .entry-article [class*="cta-btn"], .entry-article a[style*="background"] { background: var(--indigo) !important; color: #fff !important; border-radius: 12px !important; text-decoration: none !important; }
.entry-article p[style*="color"]:first-child, .entry-article header p { color: var(--muted) !important; font-size: .95rem !important; }
:root[data-theme="dark"] .entry-article [style*="background"]:not([class*="to-"]):not([class*="cta"]) { background: var(--surface) !important; border-color: var(--line) !important; color: var(--text) !important; }
:root[data-theme="dark"] .entry-article [style*="background"] * { color: inherit !important; }
.entry-article [class^="to-wrapper"] { max-width: 100%; }
.entry-article [style*="border-left"] { border-left-color: var(--indigo) !important; }
