/* =============================================================================
   wpintegrations theme — one stylesheet.
   Tokens → reset → primitives → layout → components → page regions → responsive.
   ============================================================================= */

:root {
	--ink: #141B33;
	--navy: #16234B;
	--deep: #0B1230;
	--teal: #00C2A8;
	--teal-dark: #00806F;
	--teal-tint: #E6FAF6;
	--teal-light: #9EE9DC;
	--muted: #5B6478;
	--faint: #8A93A8;
	--line: #E3E8F0;
	--line-strong: #CBD3DF;
	--surface: #F6F8FB;
	--white: #FFFFFF;
	--on-dark: #B6BFD6;

	--font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
	--font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 20px;
	--radius-xl: 24px;
	--shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.06);
	--shadow-lift: 0 1px 2px rgba(16, 24, 40, 0.06), 0 24px 60px rgba(16, 24, 40, 0.16);

	--container: 1280px;
	--gutter: 64px;
	--section: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.icon { flex-shrink: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	margin: -1px; padding: 0; border: 0; white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000;
	width: auto; height: auto; clip: auto; clip-path: none; overflow: visible;
	background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(720px + var(--gutter) * 2); }
.container--mid { max-width: calc(1024px + var(--gutter) * 2); }

.section { padding: var(--section) 0 0; }
.section--tight { padding-top: 64px; }
.section--cta { padding: var(--section) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section__head > div { display: flex; flex-direction: column; gap: 12px; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center > div { align-items: center; }
.section__head--small { align-items: baseline; margin-bottom: 24px; }
.section__title { font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; max-width: 680px; }
.section__title--small { font-size: 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bento > .plugin-card--featured { grid-column: span 2; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.spacer { flex-grow: 1; }

/* ---------- Text primitives ---------- */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow--light { color: var(--teal-light); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--teal-dark); }
.link-arrow::after { content: '→'; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--light { color: var(--teal-light); }
.link-arrow--light:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 600; font-size: 15px; line-height: 1; padding: 13px 22px; border-radius: 999px;
	border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: #19D1B8; color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.22); }
.btn--outline-light:hover { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--lg { font-size: 16px; padding: 16px 30px; }
.btn--sm { font-size: 14px; padding: 11px 20px; }
.btn--xs { font-size: 13px; padding: 9px 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Chips, pills, tags ---------- */
.chip { display: inline-block; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
.chip--accent { font-size: 12px; font-weight: 600; color: var(--teal-dark); background: var(--teal-tint); }
.chip--outline { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 5px 11px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.pill--accent { background: var(--teal-tint); color: var(--teal-dark); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--white); background: var(--teal); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(16, 24, 40, 0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 24px; flex-grow: 1; justify-content: flex-end; }
.site-nav__menu { margin: 0 auto; }
.pill-nav { display: flex; align-items: center; gap: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.pill-nav a { display: block; font-size: 14px; font-weight: 500; color: var(--ink); padding: 8px 16px; border-radius: 999px; }
.pill-nav a:hover { background: var(--white); }
.pill-nav .current-menu-item > a, .pill-nav .current-menu-ancestor > a, .pill-nav .current_page_parent > a { font-weight: 600; background: var(--white); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: flex; }

/* ---------- Hero (home) ---------- */
.hero {
	background:
		radial-gradient(760px 440px at 50% 0%, rgba(0, 194, 168, 0.26), transparent 62%),
		radial-gradient(520px 320px at 94% 100%, rgba(0, 194, 168, 0.10), transparent 60%),
		var(--deep);
	color: var(--white);
	padding: 120px 0 128px;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero__title { font-size: 66px; font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; color: var(--white); max-width: 900px; text-wrap: balance; }
.hero__title .accent { color: var(--teal-light); }
.hero__subtitle { font-size: 20px; line-height: 1.6; color: var(--on-dark); max-width: 660px; text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }

/* ---------- Cards ---------- */
.plugin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card); }
.plugin-card--featured { padding: 36px; gap: 18px; }
.plugin-card__tiles { display: flex; align-items: center; gap: 12px; }
.tile { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--navy); }
.tile--accent { background: var(--teal-tint); border-color: transparent; color: var(--teal-dark); }
.tile-arrow { color: var(--faint); }
.plugin-card__title { font-size: 22px; letter-spacing: -0.015em; }
.plugin-card--featured .plugin-card__title { font-size: 26px; }
.plugin-card__title a { color: var(--ink); }
.plugin-card__title a:hover { color: var(--teal-dark); }
.plugin-card__text { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 600px; }
.plugin-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; padding-top: 6px; }

.suggest-card { background: var(--deep); border-radius: var(--radius-xl); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; color: var(--white); }
.suggest-card > div { display: flex; flex-direction: column; gap: 12px; }
.suggest-card__icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center; justify-content: center; color: var(--teal-light); }
.suggest-card__title { font-size: 22px; color: var(--white); letter-spacing: -0.015em; }
.suggest-card p { font-size: 15px; line-height: 1.6; color: var(--on-dark); }

.tile-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tile-card__icon { width: 44px; height: 44px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--teal-dark); }
.tile-card h3 { font-size: 19px; }
.tile-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-card__num { align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--white); background: var(--teal); padding: 5px 10px; border-radius: 8px; }
.step-card h3 { font-size: 20px; }
.step-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.guide-card { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--ink); }
.guide-card__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.guide-card__text { font-size: 14px; line-height: 1.6; color: var(--muted); }
.guide-card .link-arrow { margin-top: auto; font-size: 14px; }
.guide-card--compact { gap: 8px; padding: 20px; border-radius: var(--radius); }
.guide-card--compact .guide-card__title { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.4; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color 0.15s ease; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band {
	padding: 72px 64px; border-radius: 28px; color: var(--white);
	background: radial-gradient(600px 300px at 90% 10%, rgba(0, 194, 168, 0.28), transparent 60%), var(--deep);
	display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band__text { display: flex; flex-direction: column; gap: 12px; }
.cta-band__title { font-size: 36px; letter-spacing: -0.02em; color: var(--white); }
.cta-band p { font-size: 17px; line-height: 1.6; color: var(--on-dark); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
/* Pages that do not end in a CTA band get breathing room before the footer. */
.site-main > :last-child:not(.section--cta):not(.docs) { padding-bottom: var(--section); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; color: var(--faint); max-width: 280px; }
.site-footer__brand .brand__name { font-size: 16px; }
.site-footer__heading { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { font-size: 14px; color: var(--muted); }
.site-footer__links a:hover { color: var(--teal-dark); }
.site-footer__hint { font-size: 13px; color: var(--faint); }
.site-footer__bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); }

/* ---------- Page head (archives, pages, guides) ---------- */
.page-head { background: var(--surface); padding: 24px 0 56px; }
.page-head .container { display: flex; flex-direction: column; gap: 16px; }
.page-head__title { font-size: 44px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.page-head__text { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--teal-dark); }
.crumbs span { color: var(--muted); }

/* ---------- Product page ---------- */
.product-hero { background: var(--surface); padding: 24px 0 72px; }
.product-hero .container { display: flex; flex-direction: column; gap: 36px; }
.product-hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 760px; }
.product-hero__title { font-size: 48px; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.product-hero__text { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.product-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }

.subnav { position: sticky; top: 76px; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 24px; }
.subnav__links { display: flex; align-items: center; gap: 28px; height: 56px; overflow-x: auto; }
.subnav__links a { display: flex; align-items: center; height: 56px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav__links a:hover { color: var(--ink); }
.subnav__links a.is-active { color: var(--teal-dark); font-weight: 600; border-bottom-color: var(--teal); }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.price-card__head { display: flex; flex-direction: column; gap: 8px; }
.price-card__name { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-card__amount { font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -0.025em; line-height: 1; }
.price-card__period { font-size: 14px; color: var(--faint); }
.price-card--pro { background: radial-gradient(420px 260px at 90% 0%, rgba(0, 194, 168, 0.30), transparent 60%), var(--deep); border-color: rgba(0, 194, 168, 0.45); color: var(--white); box-shadow: 0 24px 60px rgba(11, 18, 48, 0.25); }
.price-card--pro .price-card__name { color: var(--on-dark); }
.price-card--pro .price-card__amount { color: var(--white); }
.price-card--pro .price-card__period { color: var(--on-dark); }
.price-card__from { font-size: 14px; color: var(--faint); }
.price-card--pro .price-card__from { color: var(--on-dark); }
.tier-list { list-style: none; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); overflow: hidden; }
.tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; }
.tier + .tier { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tier__label { flex: 1; font-size: 14px; font-weight: 500; }
.tier__price { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.check-list .icon { color: var(--teal-dark); margin-top: 2px; }
.price-card--pro .check-list .icon { color: var(--teal); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; background: var(--white); }
.faq__item[open] { background: var(--surface); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 17px; }
.faq__item summary .icon { color: var(--muted); transition: transform 0.2s ease; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item > p { font-size: 15px; line-height: 1.6; color: var(--muted); padding: 0 0 22px; max-width: 820px; }

/* ---------- Docs ---------- */
.docs-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.docs-bar__inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.docs-bar__product { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 9px 14px; border-radius: var(--radius-sm); white-space: nowrap; }
.docs-search { flex-grow: 1; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); padding: 0 14px; border-radius: var(--radius-sm); color: var(--faint); }
.docs-search input { flex-grow: 1; border: 0; background: transparent; padding: 10px 0; font-size: 14px; color: var(--ink); min-width: 0; }
.docs-search input:focus { outline: none; }
.docs-search--wide { max-width: 560px; }

.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.docs-nav__group + .docs-nav__group { margin-top: 26px; }
.docs-nav__label { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 12px 8px; }
.docs-nav__item { display: block; font-size: 14px; font-weight: 500; color: var(--ink); padding: 9px 12px; border-radius: var(--radius-sm); }
.docs-nav__item:hover { background: var(--surface); color: var(--ink); }
.docs-nav__item.is-active { font-weight: 600; color: var(--teal-dark); background: var(--teal-tint); }
.docs-nav__children { padding-left: 12px; }
.docs-nav__item--child { font-size: 13.5px; }

.docs__article { max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
.docs__title { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.docs__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.docs__meta span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 999px; background: var(--line-strong); margin-right: 10px; vertical-align: middle; }
.docs__lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.docs__pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pager-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); font-size: 15px; font-weight: 600; }
.pager-card:hover { border-color: var(--line-strong); color: var(--ink); }
.pager-card--next { text-align: right; align-items: flex-end; }
.docs__helpful { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; font-size: 14px; color: var(--muted); }

.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.toc__label { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.toc a { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--teal-dark); }
.toc a.is-active { font-weight: 600; }
.toc__help { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: 14px; padding: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.toc__help strong { font-size: 14px; color: var(--ink); }
.toc__help .link-arrow { font-size: 13px; }

.doc-group { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.doc-group:hover { border-color: var(--teal); }
.doc-group__title { font-size: 20px; color: var(--ink); }
/* ---------- Guides / pages ---------- */
.article .page-head { padding-bottom: 40px; }
.article__figure { margin: 40px 0 0; border-radius: var(--radius-lg); overflow: hidden; }
.article .prose { margin-top: 40px; }
.article__plugin { margin-top: 48px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--radius); padding: 20px 24px; }
.page.container--narrow, .page .prose { padding-top: 40px; }

/* ---------- Prose (editor content) ---------- */
.prose { font-size: 16.5px; line-height: 1.75; color: #3D4663; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 28px; color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 1.6em; }
.prose h4 { font-size: 17px; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 128, 111, 0.4); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--ink); }
.prose pre { background: var(--deep); color: var(--on-dark); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote { border-left: 0; background: var(--teal-tint); color: var(--teal-dark); border-radius: 14px; padding: 16px 20px; font-style: normal; margin-left: 0; margin-right: 0; }
.prose blockquote p { margin: 0; }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose .wp-block-buttons a { text-decoration: none; }
.prose--docs h2 { font-size: 23px; letter-spacing: -0.01em; padding-top: 4px; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pagination .page-numbers.current { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 600; }

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1100px) {
	:root { --gutter: 40px; --section: 80px; }
	.hero__title { font-size: 56px; }
	.section__title { font-size: 34px; }
	.docs { grid-template-columns: 230px minmax(0, 1fr); }
	.docs__toc { display: none; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.site-nav {
		display: none; position: absolute; top: 76px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		background: var(--white); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px;
		box-shadow: 0 24px 48px rgba(16, 24, 40, 0.12);
	}
	body.nav-open .site-nav { display: flex; }
	.site-nav__menu { margin: 0; }
	.pill-nav { flex-direction: column; align-items: stretch; background: transparent; border: 0; padding: 0; gap: 2px; }
	.pill-nav a { padding: 12px 14px; font-size: 16px; }
	.site-nav__actions { flex-direction: column; align-items: stretch; }
	.site-nav__actions .btn { width: 100%; }
	.bento, .grid-3, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento > .plugin-card--featured { grid-column: span 2; }
	.pricing { grid-template-columns: 1fr; }
	.docs { grid-template-columns: 1fr; gap: 32px; }
	.docs__sidebar { order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
	.docs__article { order: 1; max-width: none; }
	.cta-band { flex-direction: column; align-items: flex-start; padding: 48px 40px; }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; --section: 56px; }
	.site-header__inner { height: 64px; }
	.site-nav { top: 64px; }
	html { scroll-padding-top: 80px; }
	.hero { padding: 64px 0 72px; }
	.hero__title { font-size: 40px; letter-spacing: -0.02em; }
	.hero__subtitle { font-size: 16px; }
	.hero__actions { flex-direction: column; width: 100%; }
	.hero__actions .btn { width: 100%; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
	.section__title { font-size: 30px; }
	.bento, .grid-3, .grid-2, .tiles { grid-template-columns: 1fr; }
	.bento > .plugin-card--featured { grid-column: auto; }
	.plugin-card, .plugin-card--featured, .suggest-card, .price-card, .tile-card, .step-card { padding: 24px; }
	.page-head__title { font-size: 34px; }
	.product-hero__title { font-size: 34px; }
	.product-hero__actions .btn { width: 100%; }
	.subnav { top: 64px; }
	.subnav__links { gap: 20px; }
	.docs-bar__inner { flex-wrap: wrap; }
	.docs-search { width: 100%; }
	.docs__title { font-size: 32px; }
	.docs__pager { grid-template-columns: 1fr; }
	.pager-card--next { text-align: left; align-items: flex-start; }
	.cta-band { padding: 36px 24px; border-radius: 22px; }
	.cta-band__title { font-size: 26px; }
	.cta-band .btn { width: 100%; }
	.site-footer { padding-top: 48px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.site-footer__bottom { flex-direction: column; gap: 8px; }
	.prose { font-size: 16px; }
	.prose h2 { font-size: 24px; }
}
