/*
 * Editorial theme — hand-written, no build step.
 * Tokens are set on <html> by the layout so the admin colour pickers work.
 */
:root {
    --ed-ink: #10261a;
    --ed-ink-soft: #5b6b60;
    --ed-ink-faint: #93a099;
    --ed-forest: #14532d;
    --ed-moss: #2f7a4d;
    --ed-cream: #fbf9f4;
    --ed-paper: #ffffff;
    --ed-line: #e4e0d6;
    --ed-tint: rgba(47, 122, 77, .10);
    --ed-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    --ed-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ed-radius: 18px;
    --ed-shadow: 0 18px 40px -24px rgba(16, 38, 26, .45);
}

.editorial-template-page {
    margin: 0;
    background: var(--ed-cream);
    color: var(--ed-ink);
    font-family: var(--ed-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.editorial-template-page a { color: inherit; text-decoration: none; }
/* Element resets live inside the theme's own blocks only, so Tailwind-built
   pages the theme merely wraps (the blog) keep their own spacing. */
.ed-wrap h1, .ed-wrap h2, .ed-wrap h3, .ed-wrap h4, .ed-wrap p,
.ed-head h1, .ed-head p, .ed-foot h2, .ed-foot p, .ed-mobile p { margin: 0; }

.ed-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ed-wrap--narrow { max-width: 820px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.ed-head {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid rgba(20, 83, 45, .10);
    background: rgba(251, 249, 244, .86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ed-head-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.ed-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ed-serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ed-forest); }
.ed-wordmark img { height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.ed-nav { display: none; gap: 26px; font-size: 14px; font-weight: 500; color: var(--ed-ink-soft); }
.ed-nav a, .ed-nav button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: color .18s ease; }
.ed-nav a:hover, .ed-nav button:hover { color: var(--ed-forest); }
.ed-nav-item { position: relative; list-style: none; }
.ed-nav ul { display: contents; margin: 0; padding: 0; }
.ed-submenu { display: none; position: absolute; top: calc(100% + 12px); left: -14px; min-width: 200px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--ed-line); border-radius: 14px; background: var(--ed-paper); box-shadow: var(--ed-shadow); }
.ed-nav-item:hover > .ed-nav-parent > .ed-submenu, .ed-nav-item:focus-within > .ed-nav-parent > .ed-submenu { display: block; }
.ed-submenu li { list-style: none; }
.ed-submenu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; }
.ed-submenu a:hover { background: var(--ed-cream); }
.ed-head-actions { display: none; align-items: center; gap: 10px; }
.ed-head-login { padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--ed-ink-soft); border-radius: 999px; transition: color .18s ease, background .18s ease; }
.ed-head-login:hover { color: var(--ed-forest); background: var(--ed-tint); }
@media (min-width: 900px) { .ed-nav, .ed-head-actions { display: flex; } }

.ed-menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-paper); color: var(--ed-forest); cursor: pointer; }
.ed-menu-toggle span { display: block; width: 18px; height: 2px; margin: 2px 0; border-radius: 2px; background: currentColor; }
@media (min-width: 900px) { .ed-menu-toggle { display: none; } }
.ed-mobile { display: none; border-top: 1px solid var(--ed-line); background: var(--ed-paper); padding: 14px 24px 20px; }
.ed-mobile:not(.hidden) { display: block; }
.ed-mobile a { display: block; padding: 11px 6px; border-bottom: 1px solid var(--ed-line); font-size: 15px; font-weight: 500; }
.ed-mobile a:last-of-type { border-bottom: 0; }
.ed-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; background: var(--ed-forest); padding: 12px 24px; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.ed-btn:hover { background: var(--ed-moss); transform: translateY(-1px); }
.ed-btn--sm { padding: 9px 18px; font-size: 13.5px; }
.ed-btn--ghost { background: var(--ed-paper); color: var(--ed-forest); border-color: var(--ed-line); }
.ed-btn--ghost:hover { background: var(--ed-paper); border-color: var(--ed-moss); }
.ed-btn--light { background: #fff; color: var(--ed-forest); }
.ed-btn--light:hover { background: var(--ed-cream); }
.ed-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ed-btn--outline-light:hover { background: rgba(255, 255, 255, .10); }
.ed-btn--block { width: 100%; }
.ed-btn[disabled], .ed-btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.ed-eyebrow { display: inline-block; margin: 0 0 16px; border: 1px solid rgba(20, 83, 45, .2); border-radius: 999px; padding: 5px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-moss); }
.ed-eyebrow--plain { border: 0; padding: 0; margin-bottom: 10px; }
.ed-title { font-family: var(--ed-serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ed-forest); }
.ed-title--xl { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -.025em; }
.ed-title--lg { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.ed-title--md { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.ed-lead { font-size: 17px; line-height: 1.65; color: var(--ed-ink-soft); }
.ed-muted { color: var(--ed-ink-soft); }
.ed-center { text-align: center; }
.ed-center .ed-lead { margin-inline: auto; max-width: 56ch; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.ed-section { padding: 72px 0; }
.ed-section--tight { padding: 48px 0; }
.ed-section--first { padding-top: 84px; }
.ed-section--paper { background: var(--ed-paper); border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); }
.ed-section-head { max-width: 62ch; margin-bottom: 36px; }
.ed-section-head--center { margin-inline: auto; text-align: center; }
.ed-section-head .ed-lead { margin: 14px 0 0; }
.ed-section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.ed-section-head--split .ed-lead { max-width: 44ch; margin-top: 0; }

/* ── Grid + cards ─────────────────────────────────────────────────────── */
.ed-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .ed-grid--2 { grid-template-columns: repeat(2, 1fr); } .ed-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ed-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.ed-card { border: 1px solid var(--ed-line); border-radius: var(--ed-radius); background: var(--ed-paper); padding: 22px 22px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.ed-card--lift:hover { transform: translateY(-3px); box-shadow: var(--ed-shadow); }
.ed-card--wide { grid-column: 1 / -1; }
.ed-card h3 { font-size: 16px; font-weight: 650; }
.ed-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ed-ink-soft); }
.ed-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--ed-tint); color: var(--ed-moss); font-size: 20px; }
.ed-step { display: flex; gap: 16px; }
.ed-step-no { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--ed-forest); color: #fff; font-family: var(--ed-serif); font-size: 17px; font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ed-hero { position: relative; overflow: hidden; padding: 84px 0 56px; text-align: center; }
.ed-hero::before { content: ""; position: absolute; inset: -40% 30% auto; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 122, 77, .16), transparent 68%); pointer-events: none; }
.ed-hero > * { position: relative; }
.ed-hero .ed-title--xl { max-width: 16ch; margin-inline: auto; }
.ed-hero .ed-lead { max-width: 54ch; margin: 20px auto 0; }
.ed-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.ed-hero-proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 26px; font-size: 13.5px; color: var(--ed-ink-soft); }
.ed-avatars { display: flex; }
.ed-avatars span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; border: 2px solid var(--ed-cream); border-radius: 999px; background: var(--ed-forest); color: #fff; font-size: 11px; font-weight: 700; }
.ed-avatars span:first-child { margin-left: 0; }
.ed-stars { color: #c98a1e; letter-spacing: 2px; }
.ed-trust { margin-top: 40px; }
.ed-trust p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ed-ink-faint); }
.ed-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.ed-trust-row span { border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-paper); padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ed-ink-soft); }
.ed-hero-preview { max-width: 640px; margin: 48px auto 0; text-align: left; }
.ed-chat { border: 1px solid var(--ed-line); border-radius: 20px; background: var(--ed-paper); box-shadow: var(--ed-shadow); overflow: hidden; }
.ed-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ed-line); }
.ed-chat-head .ed-icon { margin: 0; width: 38px; height: 38px; background: var(--ed-forest); color: #fff; }
.ed-chat-head strong { display: block; font-size: 14.5px; }
.ed-chat-head small { font-size: 12px; color: var(--ed-ink-soft); }
.ed-chat-body { display: grid; gap: 10px; padding: 18px; background: var(--ed-cream); }
.ed-msg { max-width: 82%; border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.ed-msg--bot { background: var(--ed-paper); border: 1px solid var(--ed-line); border-top-left-radius: 6px; }
.ed-msg--user { margin-left: auto; background: var(--ed-forest); color: #fff; border-top-right-radius: 6px; }
.ed-msg-source { display: flex; align-items: center; gap: 8px; margin-top: 8px; border-radius: 10px; background: var(--ed-cream); padding: 6px 10px; font-size: 12px; color: var(--ed-ink-soft); }
.ed-chat-input { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 18px; border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-paper); padding: 6px 6px 6px 16px; font-size: 13.5px; color: var(--ed-ink-faint); }
.ed-chat-input span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--ed-forest); color: #fff; }
.ed-hero-aside { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .ed-hero-aside { grid-template-columns: 1fr 1fr; } }
.ed-quote-card blockquote { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
.ed-quote-card figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ed-ink-soft); }
.ed-stat { display: flex; align-items: center; gap: 14px; }
.ed-stat strong { font-family: var(--ed-serif); font-size: 26px; color: var(--ed-forest); }
.ed-stat small { display: block; margin: 0; font-size: 12.5px; color: var(--ed-ink-soft); }

/* ── Feature grid ─────────────────────────────────────────────────────── */
.ed-feature-hero { display: grid; gap: 22px; }
@media (min-width: 900px) { .ed-feature-hero { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.ed-feature-hero .ed-chat-body { padding: 14px; }
.ed-sources { display: grid; gap: 8px; }
.ed-source { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ed-line); border-radius: 12px; background: var(--ed-paper); padding: 9px 12px; font-size: 13px; font-weight: 600; }
.ed-source-bar { flex: 1; height: 5px; border-radius: 999px; background: var(--ed-line); overflow: hidden; }
.ed-source-bar i { display: block; height: 100%; background: var(--ed-moss); }
.ed-source em { font-style: normal; font-size: 12px; color: var(--ed-moss); }

/* ── Integrations ─────────────────────────────────────────────────────── */
.ed-logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .ed-logo-grid { grid-template-columns: repeat(3, 1fr); } }
.ed-logo { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ed-line); border-radius: 14px; background: var(--ed-paper); padding: 14px 16px; font-size: 14px; font-weight: 600; }
.ed-logo .ed-icon { margin: 0; width: 36px; height: 36px; font-size: 18px; }
.ed-split { display: grid; gap: 32px; }
@media (min-width: 900px) { .ed-split { grid-template-columns: .85fr 1.15fr; align-items: center; } .ed-split--sticky > :first-child { position: sticky; top: 100px; align-self: start; } }

/* ── Testimonials ─────────────────────────────────────────────────────── */
.ed-quote { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--ed-line); border-radius: var(--ed-radius); background: var(--ed-paper); padding: 24px; }
.ed-quote-mark { font-family: var(--ed-serif); font-size: 44px; line-height: .6; color: var(--ed-moss); }
.ed-quote blockquote { margin: 0; font-family: var(--ed-serif); font-size: 18px; line-height: 1.5; color: var(--ed-ink); }
.ed-quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ed-ink-soft); }
.ed-quote figcaption span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--ed-tint); color: var(--ed-forest); font-size: 12px; font-weight: 700; }

/* ── FAQ / documentation ──────────────────────────────────────────────── */
.ed-faq { display: grid; gap: 10px; }
.ed-faq .faq-item { border: 1px solid var(--ed-line); border-radius: 14px; background: var(--ed-paper); }
.ed-faq .faq-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; border: 0; background: none; padding: 16px 18px; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--ed-ink); cursor: pointer; }
.ed-faq .faq-trigger i { color: var(--ed-moss); font-size: 18px; }
.ed-faq .faq-panel { border-top: 1px solid var(--ed-line); padding: 14px 18px 18px; font-size: 14.5px; line-height: 1.65; color: var(--ed-ink-soft); }
.ed-faq .faq-panel.hidden { display: none; }
.ed-faq .faq-panel a.ed-btn { margin-top: 12px; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.ed-plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .ed-plans { grid-template-columns: repeat(3, 1fr); } }
.ed-plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ed-line); border-radius: 22px; background: var(--ed-paper); padding: 26px 24px; }
.ed-plan--featured { border-color: var(--ed-forest); box-shadow: 0 24px 50px -30px rgba(20, 83, 45, .55); }
.ed-plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ed-plan h3 { font-family: var(--ed-serif); font-size: 24px; font-weight: 600; color: var(--ed-forest); }
.ed-plan-desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ed-ink-soft); }
.ed-badge { border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--ed-tint); color: var(--ed-forest); }
.ed-badge--dark { background: var(--ed-forest); color: #fff; }
.ed-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.ed-price strong { font-family: var(--ed-serif); font-size: 44px; font-weight: 600; letter-spacing: -.02em; color: var(--ed-forest); }
.ed-price span { font-size: 13.5px; color: var(--ed-ink-soft); }
.ed-price-note { margin: 4px 0 0; font-size: 12px; color: var(--ed-ink-faint); }
.ed-plan-block { margin-top: 20px; border-top: 1px solid var(--ed-line); padding-top: 18px; }
.ed-plan-block p.ed-label { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-ink-faint); }
.ed-plan-features { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ed-plan-features li { display: flex; gap: 9px; }
.ed-plan-features li i { flex: none; margin-top: 2px; color: var(--ed-moss); }
.ed-plan-limits { display: grid; gap: 7px; margin: 0; font-size: 13.5px; }
.ed-plan-limits div { display: flex; justify-content: space-between; gap: 12px; }
.ed-plan-limits dt { color: var(--ed-ink-soft); }
.ed-plan-limits dd { margin: 0; font-weight: 600; }
.ed-plan .ed-btn { margin-top: auto; }
.ed-plan-block + .ed-btn { margin-top: 24px; }
.ed-plan-empty { max-width: 560px; margin: 36px auto 0; text-align: center; }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.ed-cta { position: relative; overflow: hidden; border-radius: 26px; background: var(--ed-forest); color: #fff; padding: 40px 32px; }
.ed-cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); pointer-events: none; }
.ed-cta > * { position: relative; }
.ed-cta .ed-title { color: #fff; }
.ed-cta .ed-lead { color: rgba(255, 255, 255, .78); }
.ed-cta .ed-eyebrow { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.ed-cta-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .ed-cta-grid { grid-template-columns: 1fr .75fr; align-items: center; } .ed-cta { padding: 52px 48px; } }
.ed-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ed-cta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.ed-cta-badges span { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 12px; }
.ed-cta-card { border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .08); padding: 22px; }
.ed-cta-card p.ed-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ed-cta-card h3 { margin: 4px 0 0; font-family: var(--ed-serif); font-size: 22px; font-weight: 600; }
.ed-cta-card ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.ed-cta-card li { border-radius: 12px; background: rgba(255, 255, 255, .08); padding: 10px 14px; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.ed-channel { display: flex; gap: 14px; }
.ed-channel .ed-icon { margin: 0; flex: none; }
.ed-channel a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ed-moss); }
.ed-tips { border: 1px solid rgba(20, 83, 45, .2); border-radius: var(--ed-radius); background: var(--ed-tint); padding: 20px 22px; }
.ed-tips ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ed-ink-soft); }
.ed-tips li { display: flex; gap: 8px; }
.ed-tips li i { flex: none; margin-top: 2px; color: var(--ed-moss); }
.ed-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-paper); padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--ed-ink-soft); }
.ed-note::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ed-moss); }
/* The shared contact form is Tailwind-styled; these keep it on brand. */
.editorial-template-page .ed-form-host { border: 1px solid var(--ed-line); border-radius: var(--ed-radius); background: var(--ed-paper); padding: 8px; }
.editorial-template-page .ed-form-host [class*="rounded-"] { border-radius: 14px; }
.editorial-template-page .ed-form-host button[type="submit"], .editorial-template-page .ed-form-host .bg-slate-950 { background: var(--ed-forest) !important; border-radius: 999px; }
.editorial-template-page .ed-form-host .text-primary { color: var(--ed-moss) !important; }

/* ── Prose (rich content, legal pages) ────────────────────────────────── */
.ed-prose { font-size: 16px; line-height: 1.75; color: var(--ed-ink); }
.ed-prose h2, .ed-prose h3 { font-family: var(--ed-serif); font-weight: 600; color: var(--ed-forest); margin: 32px 0 10px; line-height: 1.2; }
.ed-prose h2 { font-size: 26px; } .ed-prose h3 { font-size: 20px; }
.ed-prose p { margin: 0 0 14px; }
.ed-prose ul, .ed-prose ol { margin: 0 0 16px; padding-left: 22px; }
.ed-prose ul { list-style: disc; } .ed-prose ol { list-style: decimal; }
.ed-prose li { margin: 4px 0; }
.ed-prose a { color: var(--ed-moss); text-decoration: underline; text-underline-offset: 3px; }
.ed-prose strong { font-weight: 650; }
.ed-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.ed-prose th, .ed-prose td { border: 1px solid var(--ed-line); padding: 9px 12px; text-align: left; vertical-align: top; }
.ed-prose th { background: var(--ed-cream); font-weight: 650; }
.ed-prose .company-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .ed-prose .company-grid { grid-template-columns: repeat(2, 1fr); } }
.ed-prose .company-grid article { border: 1px solid var(--ed-line); border-radius: 14px; background: var(--ed-paper); padding: 16px 18px; }
.ed-callout { display: flex; gap: 12px; margin-bottom: 22px; border: 1px solid rgba(20, 83, 45, .2); border-radius: 14px; background: var(--ed-tint); padding: 14px 16px; font-size: 14.5px; line-height: 1.6; }
.ed-callout i { flex: none; margin-top: 3px; font-size: 18px; color: var(--ed-moss); }
.ed-article { border: 1px solid var(--ed-line); border-radius: 22px; background: var(--ed-paper); padding: 28px; }
@media (min-width: 900px) { .ed-article { padding: 40px 44px; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.ed-foot { margin-top: 24px; border-top: 1px solid var(--ed-line); background: var(--ed-paper); padding: 56px 0 32px; font-size: 14px; }
.ed-foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .ed-foot-grid { grid-template-columns: 1.1fr 1.9fr; } }
.ed-foot-desc { max-width: 40ch; margin: 14px 0 0; line-height: 1.65; color: var(--ed-ink-soft); }
.ed-newsletter { margin-top: 22px; max-width: 420px; }
.ed-newsletter label { display: block; font-size: 13px; font-weight: 600; }
.ed-newsletter-row { display: flex; margin-top: 8px; border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-cream); padding: 4px; }
.ed-newsletter-row input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 10px 14px; font: inherit; font-size: 14px; outline: none; }
.ed-newsletter-msg { margin-top: 8px; font-size: 13px; font-weight: 600; }
.ed-newsletter-msg.is-ok { color: var(--ed-moss); } .ed-newsletter-msg.is-err { color: #b42318; }
.ed-social { display: flex; gap: 10px; margin-top: 22px; }
.ed-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ed-line); border-radius: 999px; color: var(--ed-ink-soft); transition: color .18s ease, border-color .18s ease; }
.ed-social a:hover { color: var(--ed-forest); border-color: var(--ed-moss); }
.ed-foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 640px) { .ed-foot-cols { grid-template-columns: repeat(3, 1fr); } }
.ed-foot-cols h2 { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ed-ink-faint); }
.ed-foot-cols ul { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.ed-foot-cols a { color: var(--ed-ink-soft); transition: color .18s ease; }
.ed-foot-cols a:hover { color: var(--ed-forest); }
.ed-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 44px; border-top: 1px solid var(--ed-line); padding-top: 22px; font-size: 13px; color: var(--ed-ink-faint); }
.ed-foot-bottom a { margin-left: 18px; color: var(--ed-ink-soft); }
.ed-foot-bottom a:first-child { margin-left: 0; }

/* Back-to-top, shared from the bundle: keep it on brand. */
.editorial-template-page .nd-back-to-top { background: var(--ed-forest); color: #fff; }

/* ── Specificity guard ────────────────────────────────────────────────── *
 * `.editorial-template-page a { color: inherit }` outranks the single-class
 * button rules above, which left white button labels dark. Restated here
 * with the page scope so the buttons keep their own colours everywhere,
 * including inside the mobile menu, whose link rule also outranked them. */
.editorial-template-page .ed-btn { color: #fff; }
.editorial-template-page .ed-btn--ghost,
.editorial-template-page .ed-btn--light { color: var(--ed-forest); }
.editorial-template-page .ed-btn--outline-light { color: #fff; }
.editorial-template-page .ed-mobile .ed-btn { display: inline-flex; padding: 12px 20px; border-bottom: 0; font-size: 14.5px; }
.editorial-template-page .ed-mobile .ed-btn--ghost { color: var(--ed-forest); }
.editorial-template-page .ed-head-login { color: var(--ed-ink-soft); }
.editorial-template-page .ed-head-login:hover { color: var(--ed-forest); }
.editorial-template-page .ed-nav a:hover, .editorial-template-page .ed-nav button:hover { color: var(--ed-forest); }
.editorial-template-page .ed-channel a, .editorial-template-page .ed-section-head a { color: var(--ed-moss); }
.editorial-template-page .ed-prose a { color: var(--ed-moss); }
.editorial-template-page .ed-foot-cols a, .editorial-template-page .ed-foot-bottom a { color: var(--ed-ink-soft); }
.editorial-template-page .ed-foot-cols a:hover { color: var(--ed-forest); }
/* Tailwind-built parts the theme wraps (blog chips, shared forms) still use
   text-white on dark pills; the link reset above was overriding it. */
.editorial-template-page .text-white,
.editorial-template-page a.text-white { color: #fff; }

/* ---------- Blog (listing and article pages) ---------- */
.editorial-template-page main { background: var(--ed-cream); }
.ed-blog-hero { background: var(--ed-cream); }
.ed-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.ed-search-field { position: relative; display: flex; flex: 1; align-items: center; gap: 10px; border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-paper); padding: 0 16px; color: var(--ed-ink-faint); }
.ed-search-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: inherit; font-size: 14.5px; color: var(--ed-ink); outline: none; }
.ed-search-field:focus-within { border-color: var(--ed-moss); box-shadow: 0 0 0 3px var(--ed-tint); }
.ed-search-clear { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; color: var(--ed-ink-soft); }
.ed-search-clear:hover { background: var(--ed-tint); color: var(--ed-forest); }
.ed-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.editorial-template-page .ed-pill { border: 1px solid var(--ed-line); border-radius: 999px; background: var(--ed-paper); padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ed-ink-soft); text-decoration: none; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.editorial-template-page .ed-pill:hover { border-color: var(--ed-moss); color: var(--ed-forest); }
.editorial-template-page .ed-pill.is-active { background: var(--ed-forest); border-color: var(--ed-forest); color: #fff; }
.editorial-template-page .ed-post-card, .editorial-template-page .ed-post-feature { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ed-post-card .ed-eyebrow--plain { margin: 16px 0 6px; }
.ed-post-card .ed-post-title { margin: 0; font-family: var(--ed-serif); font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ed-forest); }
.ed-post-card > p:not(.ed-eyebrow) { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ed-ink-soft); }
.ed-post-card .ed-post-meta { margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--ed-ink-faint); }
.ed-post-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, var(--ed-forest), var(--ed-moss)); color: rgba(255, 255, 255, .85); font-size: 40px; }
.ed-post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ed-card--lift:hover .ed-post-cover img { transform: scale(1.04); }
.ed-post-flag { position: absolute; left: 14px; top: 14px; }
.ed-post-feature { padding: 14px; }
.ed-post-cover--feature { aspect-ratio: auto; min-height: 260px; border-radius: 14px; }
.ed-post-feature-body { padding: 22px 12px 14px; }
.ed-post-feature-body .ed-eyebrow--plain { margin-bottom: 8px; }
.ed-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: var(--ed-ink-soft); }
.ed-post-meta .ed-avatars span { width: 30px; height: 30px; font-size: 10.5px; }
.editorial-template-page .ed-backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ed-moss); text-decoration: none; }
.editorial-template-page .ed-backlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.ed-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ed-byline-name { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--ed-ink); }
.ed-byline-meta { margin: 2px 0 0; font-size: 13px; color: var(--ed-ink-soft); }
.ed-post-hero-cover { margin: 0; overflow: hidden; border: 1px solid var(--ed-line); border-radius: 22px; background: var(--ed-paper); }
.ed-post-hero-cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.ed-post-body { padding: 36px; }
.ed-post-body > :first-child { margin-top: 0; }
.ed-post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.ed-post-body blockquote { margin: 20px 0; border-left: 3px solid var(--ed-moss); padding: 4px 0 4px 18px; font-family: var(--ed-serif); font-size: 19px; color: var(--ed-forest); }
.ed-post-body pre { overflow-x: auto; border-radius: 12px; background: var(--ed-forest); color: #fff; padding: 16px 18px; font-size: 13.5px; }
.ed-author-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.ed-pagination { margin-top: 32px; display: flex; justify-content: center; }
@media (min-width: 768px) {
    .ed-post-feature { flex-direction: row; align-items: stretch; }
    .ed-post-feature .ed-post-cover--feature { flex: 1 1 50%; }
    .ed-post-feature-body { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; }
    .ed-post-body { padding: 44px 48px; }
}
@media (max-width: 640px) {
    .ed-search { flex-direction: column; }
}
