/* ==========================================================================
   EditingPromptBank — design system
   Warm-neutral backgrounds, dark editorial type, one controlled accent.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/inter-600.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/inter-display-800.woff) format("woff"); }

:root {
	--bg: #fff8f2;
	--bg-alt: #fdf1e7;
	--surface: #ffffff;
	--surface-warm: #fff4ec;
	--ink: #1f1a17;
	--ink-2: #3d332d;
	--muted: #6b5e55;
	--line: #f0e3d8;
	--line-strong: #e6d4c5;
	--accent: #e8501f;
	--accent-600: #c9410f;
	--accent-soft: #fde7dc;
	--accent-tint: #fff1e9;
	--ok: #15803d;
	--gemini: #2563eb;
	--chatgpt: #059669;
	--nano: #ca8a04;
	--meta: #7c3aed;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--font-display: "Inter Display", "Inter", system-ui, sans-serif;

	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
	--r-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(60, 35, 20, .06);
	--shadow: 0 6px 24px -10px rgba(60, 35, 20, .22);
	--shadow-lg: 0 24px 48px -24px rgba(60, 35, 20, .35);

	--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
	--container: 1180px;
	--header-h: 68px;
	--t: .18s ease;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-600); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-4); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(232, 80, 31, .45); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }
.icon { flex: none; }
.text-accent { color: var(--accent); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent-600); background: var(--accent-soft); border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: var(--space-4); }
.fine-print { font-size: 13px; color: var(--muted); }
.empty-note { color: var(--muted); padding: var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--r); text-align: center; background: var(--surface); }
.media-fallback { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; color: #e6b79d; background: linear-gradient(135deg, #fde7dc, #fff4ec); }

/* ---------- buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(232, 80, 31, .7); }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--primary.is-done { background: var(--ok); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-600); }
.btn--soft { background: var(--accent-tint); color: var(--accent-600); border-color: #f7d3c1; }
.btn--soft:hover { background: var(--accent-soft); }
.btn--pill { border-radius: var(--r-pill); }
.btn--sm { padding: 8px 13px; font-size: 13.5px; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: var(--t); }
.chip:hover { border-color: var(--accent); color: var(--accent-600); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.chips__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-600); text-decoration: none; }
.pill--light { background: rgba(255, 255, 255, .92); color: var(--ink); }
.tool-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); }
.tool-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tool-chip--gemini::before { background: var(--gemini); }
.tool-chip--chatgpt::before { background: var(--chatgpt); }
.tool-chip--nano-banana::before { background: var(--nano); }
.tool-chip--meta-ai::before { background: var(--meta); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); transition: var(--t); }
.icon-btn:hover { background: var(--accent-tint); color: var(--accent-600); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 242, .9); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-5); }
.site-logo { display: inline-flex; flex: none; }
.site-logo svg, .custom-logo { height: 34px; width: auto; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 8px 13px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: var(--t); }
.site-nav__list a:hover { color: var(--accent-600); background: var(--accent-tint); }
.site-nav__list .is-current a, .site-nav__list .current-menu-item a { color: var(--accent-600); background: var(--accent-soft); }
.site-nav__cta-mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__burger { display: none; }
.header-search { border-top: 1px solid var(--line); background: var(--bg); padding: var(--space-4) 0; }

/* ---------- search ---------- */
.search-pill { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm); transition: border-color var(--t), box-shadow var(--t); }
.search-pill:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 80, 31, .12); }
.search-pill > .icon { color: var(--muted); }
.search-pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 15px; }
.search-pill input::placeholder { color: #9b8b80; }
.search-pill input::-webkit-search-cancel-button { cursor: pointer; }
.search-pill--hero { max-width: 560px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow); }
.epb-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.epb-suggest__item a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.epb-suggest__item small { color: var(--muted); font-size: 12px; }
.epb-suggest__item.is-active a, .epb-suggest__item a:hover { background: var(--accent-tint); }

/* ---------- hero ---------- */
.hero { padding: var(--space-6) 0 var(--space-5); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--space-6); }
.hero__title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: var(--space-4); }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 520px; margin-bottom: var(--space-5); }
.chips--popular { margin-top: var(--space-4); }
.hero__visual { position: relative; }
.hero__blob { position: relative; aspect-ratio: 5 / 4; border-radius: 46% 54% 42% 58% / 50% 44% 56% 50%; overflow: hidden; background: var(--accent-soft); box-shadow: var(--shadow-lg); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__art { width: 100%; height: 100%; object-fit: contain; padding: 4%; background: var(--surface-warm); }
.hero__spark { position: absolute; color: var(--accent); }
.hero__spark--1 { top: 4%; left: -2%; }
.hero__spark--2 { bottom: 8%; right: -1%; color: #ffb37a; }

/* ---------- sections ---------- */
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-4) 0 var(--space-5); }
.section--top0 { padding-top: 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 30%, var(--bg-alt) 70%, transparent); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.section-title { font-size: clamp(21px, 2.4vw, 26px); margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.section-title__icon { color: var(--accent); display: inline-flex; }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-600); text-decoration: none; white-space: nowrap; }
.section-more:hover { gap: 9px; }

/* ---------- grids & cards ---------- */
.card-grid { display: grid; gap: var(--space-5); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ocard__link { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); text-decoration: none; isolation: isolate; }
.ocard__media, .ocard__media img, .ocard__media .media-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ocard__media img { transition: transform .5s ease; }
.ocard__link:hover .ocard__media img { transform: scale(1.04); }
.ocard__body { position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; background: linear-gradient(180deg, transparent, rgba(20, 12, 8, .82)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ocard__title { color: #fff; font-size: 16.5px; margin: 0; padding-right: 36px; font-family: var(--font); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.ocard__go { position: absolute; right: 14px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }

.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.acard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.acard__link { color: inherit; text-decoration: none; display: block; }
.acard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-tint); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; }
.acard__title { font-family: var(--font); font-weight: 600; letter-spacing: 0; font-size: 16px; line-height: 1.35; padding: 14px 16px 6px; margin: 0; }
.acard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 16px 14px; margin: auto 0 0; font-size: 12.5px; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.acard__go { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-600); }
.acard:hover .acard__go { background: var(--accent); color: #fff; }

.rcard__link { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: var(--t); }
.rcard__link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.rcard__media { width: 72px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--accent-tint); }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.rcard__title { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: 0; line-height: 1.3; margin: 0; }
.rcard__go { color: var(--accent-600); padding-right: 6px; }

/* ---------- category chips ---------- */
.cat-chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.cat-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: var(--t); }
.cat-chip .icon { color: var(--accent); }
.cat-chip:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--accent-600); }
.cat-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-chip.is-active .icon { color: #fff; }

/* ---------- tools, how, cta ---------- */
.tools__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: var(--t); }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); }
.tool-card strong { font-size: 16px; }
.tool-card span { font-size: 13.5px; color: var(--muted); }
.tool-card small { font-size: 12px; color: var(--accent-600); font-weight: 600; margin-top: auto; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: how; }
.how__step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.how__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-600); margin-bottom: 12px; }
.how__num { position: absolute; top: 16px; right: 18px; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--line-strong); }
.how__step h3 { font-size: 17px; margin-bottom: 6px; }
.how__step p { font-size: 14px; color: var(--muted); margin: 0; }
.editorial__inner { max-width: 860px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-6); border-radius: var(--r-lg); background: linear-gradient(120deg, #1f1a17, #3a2a20); color: #f4e8de; }
.cta-band__title { color: #fff; font-size: 26px; }
.cta-band__inner p { margin: 0; color: #e0cfc2; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---------- page heads, breadcrumbs, filters ---------- */
.page-head { padding: var(--space-5) 0 var(--space-5); }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); }
.page-head__art { color: #f2b597; transform: rotate(-8deg); margin-top: 8px; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--space-3); }
.page-lead { color: var(--ink-2); font-size: 16.5px; max-width: 760px; }
.page-lead p:last-child { margin: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--space-4); font-size: 13px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #b9a89b; }
.breadcrumbs a { color: var(--accent-600); text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--ink-2); max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--space-5); }
.select-pill select { appearance: none; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5e55' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 6px 34px 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }

/* ---------- pagination ---------- */
.pager .nav-links, .epb-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: var(--space-6) 0 var(--space-4); }
.pager .page-numbers, .epb-pager__btn { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.pager .page-numbers.current, .epb-pager__btn.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers:hover, .epb-pager__btn:hover { border-color: var(--accent); }
.pager .dots { border: 0; background: none; }

/* ---------- article ---------- */
.article-head { padding: var(--space-5) 0 var(--space-4); }
.article-title { font-size: clamp(28px, 4.2vw, 44px); max-width: 920px; letter-spacing: -.03em; }
.article-lead { font-size: 17.5px; color: var(--ink-2); max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; color: var(--muted); margin: 0; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-5); align-items: start; margin-bottom: var(--space-6); }
.article-figure { margin: 0; }
.article-figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.article-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.howto { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface-warm); border: 1px solid #f6dccb; border-radius: var(--r-lg); padding: 22px; }
.howto__title { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.howto__title .icon { color: var(--accent); }
.howto__steps { list-style: none; counter-reset: step; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: 12px; }
.howto__steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.howto__steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.howto__works { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; margin: 0; }
.toc { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid #f6dccb; }
.toc__title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-600); }

.article-body { max-width: var(--container); }
.article-body > .share, .article-body > .related, .article-body > .post-nav, .article-body > .article-hub { max-width: 980px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > * { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: var(--space-7); }
.prose h3 { font-size: 19px; margin-top: var(--space-5); font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--accent); margin: var(--space-5) 0; padding: 4px 0 4px var(--space-4); color: var(--ink); }
.prose .epb-disclosure { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: var(--space-6); }
.prose mark.epb-missing { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
.prose #faq ~ h3 { padding: 14px 16px; margin: 10px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0; font-size: 16.5px; }
.prose #faq ~ h3 + p { padding: 0 16px 14px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; font-size: 15.5px; }
.prose #related ~ h3 + p { all: unset; }
.article-hub { font-size: 15px; color: var(--muted); padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: var(--space-6) 0 var(--space-4); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--space-5) 0; }
.share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-right: 4px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--accent); color: var(--accent-600); }
.related { margin: var(--space-6) 0; }
.related__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-4); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: var(--space-6) 0; }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.post-nav__link small { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.post-nav__link--next { text-align: right; grid-column: 2; }

/* ---------- prompt cards (theme-owned styles) ---------- */
.epb-prompts { max-width: none !important; margin: 0 0 var(--space-6); }
.epb-prompts__title { font-size: clamp(21px, 2.4vw, 26px); margin: 0 0 var(--space-4); }
.epb-prompts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.pcard { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 16px); }
.pcard__head { display: flex; align-items: center; gap: 10px; }
.pcard__icon { color: var(--accent); display: inline-flex; }
.pcard__title { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; font-size: 17px; margin: 0; }
.pcard__media { margin: 0; border-radius: 14px; overflow: hidden; background: var(--accent-tint); }
.pcard__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pcard__media figcaption { font-size: 11.5px; color: var(--muted); padding: 6px 10px; background: var(--surface-warm); }
.pcard__desc { font-size: 14.5px; color: var(--muted); margin: 0; }
.pcard__box { position: relative; background: #fbf7f3; border: 1px solid var(--line); border-radius: 12px; padding: 14px 44px 14px 14px; }
.pcard__box.is-clamped { max-height: 11.5em; overflow: hidden; }
.pcard__box.is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(transparent, #fbf7f3); }
.pcard__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.pcard__mini-copy { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pcard__mini-copy:hover { color: var(--accent-600); border-color: var(--accent); }
.pcard__toggle { align-self: flex-start; border: 0; background: none; color: var(--accent-600); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }
.pcard__neg summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pcard__neg p { font-size: 13.5px; background: #fbf7f3; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.pcard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.pcard__tools { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.epb-related { display: none; } /* theme renders related articles itself */

/* ---------- explore / search results ---------- */
.epb-explore__form { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.epb-explore__bar { position: relative; display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm); max-width: 760px; }
.epb-explore__bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 80, 31, .12); }
.epb-explore__bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.epb-explore__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.epb-explore__filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.epb-explore__filters select { appearance: none; min-width: 170px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5e55' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 9px 34px 9px 12px; font-size: 14px; color: var(--ink); cursor: pointer; }
.epb-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.epb-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.epb-chip { padding: 5px 13px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.epb-chip:hover { border-color: var(--accent); color: var(--accent-600); }
.epb-chip.is-active { background: var(--accent-soft); border-color: #f7c7b0; color: var(--accent-600); }
.epb-results__heading { font-size: 20px; margin: 0 0 4px; }
.epb-results__count { color: var(--muted); font-size: 14px; }
.epb-results__empty { padding: var(--space-5); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); }
.epb-results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.epb-results[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.epb-rcard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 0 14px; overflow: hidden; transition: var(--t); }
.epb-rcard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.epb-rcard__link { color: var(--ink); text-decoration: none; }
.epb-rcard__link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--accent-tint); }
.epb-rcard__title { font-family: var(--font); font-weight: 600; letter-spacing: 0; font-size: 15px; line-height: 1.35; padding: 12px 14px 0; margin: 0; }
.epb-rcard__meta { font-size: 12.5px; color: var(--muted); padding: 0 14px; margin: 0; }
.epb-rcard .epb-btn { margin: auto 14px 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--accent-tint); color: var(--accent-600); border: 1px solid #f7d3c1; }
.epb-rcard .epb-btn.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }
.epb-btn--primary { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; cursor: pointer; }

/* plugin listing templates */
.epb-agrid, .epb-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.epb-acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.epb-acard__link { color: var(--ink); text-decoration: none; }
.epb-acard__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.epb-acard__title { font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: 0; padding: 12px 14px 4px; margin: 0; }
.epb-acard__meta { display: flex; gap: 10px; padding: 0 14px 14px; font-size: 12.5px; color: var(--muted); margin: 0; }
.epb-ccard { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.epb-ccard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.epb-ccard strong { font-size: 18px; }
.epb-ccard span { font-size: 14px; color: var(--muted); }
.epb-ccard small { color: var(--accent-600); font-weight: 600; }

/* ---------- toast ---------- */
.epb-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; }
.epb-toast::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); font-size: 12px; }
.epb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--space-7); background: #1f1a17; color: #cdbfb4; padding: var(--space-7) 0 var(--space-4); font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--space-5); }
.site-footer .site-logo svg { height: 30px; }
.site-footer .site-logo svg g[fill="#1F1A17"], .site-footer .site-logo svg g[fill="#1f1a17"] { fill: #fff; }
.site-footer__brand p { margin: var(--space-4) 0 0; max-width: 300px; }
.site-footer__note { font-size: 12.5px; color: #9e8f84; }
.site-footer__title { color: #fff; font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: 14px; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #cdbfb4; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid #3a302a; margin-top: var(--space-6); padding-top: var(--space-4); font-size: 13px; color: #9e8f84; }
.site-footer__bottom p { margin: 0; }
.footer-rss { display: inline-flex; align-items: center; gap: 6px; color: #cdbfb4; text-decoration: none; }

.notfound { text-align: center; padding: var(--space-8) 0; }
.notfound .search-pill { max-width: 520px; margin: var(--space-5) auto; }
.notfound .cat-chips ul { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.card-grid--4, .epb-results__grid { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
	.how__steps { grid-template-columns: repeat(2, 1fr); }
	.site-nav__list a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 900px) {
	:root { --header-h: 60px; }
	.site-header__burger { display: inline-grid; }
	.site-header__cta { display: none; }
	.site-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; gap: var(--space-4); padding: var(--space-4) 16px var(--space-5); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow: auto; }
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
	.site-nav__cta-mobile { display: inline-flex; }
	.hero__inner, .article-top { grid-template-columns: 1fr; }
	.hero__visual { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
	.hero { padding-top: var(--space-4); }
	.howto { position: static; }
	.card-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.related__row { grid-template-columns: 1fr; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
	body { font-size: 15.5px; }
	.card-grid--4, .card-grid--3, .epb-results__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.card-grid--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.card-grid--scroll > * { flex: 0 0 72%; scroll-snap-align: start; }
	.epb-prompts__grid { grid-template-columns: 1fr; }
	.acard__title { font-size: 14.5px; padding: 10px 12px 4px; }
	.acard__meta { padding: 4px 12px 12px; }
	.ocard__title { font-size: 14.5px; }
	.how__steps { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__bottom { flex-direction: column; }
	.page-head__art { display: none; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: 1; text-align: left; }
	.search-pill .btn, .epb-explore__bar .epb-btn--primary { padding: 10px 14px; }
	.epb-explore__filters label { flex: 1 1 45%; }
	.epb-explore__filters select { min-width: 0; width: 100%; }
	.prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
