/* ==========================================================================
   AIBYNow — Dark Editorial V1
   "AI Field Guide": ink canvas, paper reading surface, acid signal.
   Loaded after site.css/intel.css so it can re-skin without rewriting them.
   ========================================================================== */

:root {
  --ed-ink: #080a0f;
  --ed-ink-2: #0d1118;
  --ed-ink-3: #121824;
  --ed-paper: #f2eee5;
  --ed-paper-2: #e8e1d3;
  --ed-paper-3: #ded5c4;
  --ed-acid: #c8ff3d;
  --ed-coral: #ff5a36;
  --ed-sky: #8ed8ff;
  --ed-muted: #8b93a3;
  --ed-line: rgba(255, 255, 255, 0.13);
  --ed-line-dark: rgba(8, 10, 15, 0.16);
  --ed-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --ed-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ed-mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --ed-shell: 1240px;
}

/* ---------- shared shell ---------- */

body.ed-home,
body.ed-index,
body.ed-tools,
body.ed-tool,
body.ed-article {
  background: var(--ed-ink);
  color: var(--ed-paper);
  font-family: var(--ed-sans);
}

body.ed-home .shell,
body.ed-index .shell,
body.ed-tools .shell,
body.ed-tool .shell,
body.ed-article .shell {
  width: min(var(--ed-shell), calc(100% - 48px));
  max-width: var(--ed-shell);
}

body.ed-home main,
body.ed-index main,
body.ed-tools main,
body.ed-tool main {
  background: var(--ed-ink);
}

body.ed-article main {
  background: var(--ed-ink);
}

/* ---------- header ---------- */

body.ed-home .site-header,
body.ed-index .site-header,
body.ed-tools .site-header,
body.ed-tool .site-header,
body.ed-article .site-header {
  background: rgba(8, 10, 15, 0.94);
  border-bottom: 1px solid var(--ed-line);
  backdrop-filter: blur(14px);
}

body.ed-home .header-inner,
body.ed-index .header-inner,
body.ed-tools .header-inner,
body.ed-tool .header-inner,
body.ed-article .header-inner {
  height: 72px;
  gap: 28px;
}

body.ed-home .brand-word,
body.ed-index .brand-word,
body.ed-tools .brand-word,
body.ed-tool .brand-word,
body.ed-article .brand-word {
  font-family: var(--ed-serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ed-paper);
}

body.ed-home .brand-mark,
body.ed-index .brand-mark,
body.ed-tools .brand-mark,
body.ed-tool .brand-mark,
body.ed-article .brand-mark {
  background: var(--ed-acid);
  color: var(--ed-ink);
  border-radius: 2px;
}

body.ed-home .main-nav,
body.ed-index .main-nav,
body.ed-tools .main-nav,
body.ed-tool .main-nav,
body.ed-article .main-nav {
  gap: 2px;
}

body.ed-home .nav-link,
body.ed-index .nav-link,
body.ed-tools .nav-link,
body.ed-tool .nav-link,
body.ed-article .nav-link {
  font-family: var(--ed-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #aab2c1;
  padding: 9px 10px;
  border-radius: 2px;
}

body.ed-home .nav-link:hover,
body.ed-index .nav-link:hover,
body.ed-tools .nav-link:hover,
body.ed-tool .nav-link:hover,
body.ed-article .nav-link:hover,
body.ed-home .nav-link.is-active,
body.ed-index .nav-link.is-active,
body.ed-tools .nav-link.is-active,
body.ed-tool .nav-link.is-active,
body.ed-article .nav-link.is-active {
  color: var(--ed-acid);
  background: rgba(200, 255, 61, 0.06);
}

body.ed-home .header-actions,
body.ed-index .header-actions,
body.ed-tools .header-actions,
body.ed-tool .header-actions,
body.ed-article .header-actions {
  gap: 10px;
}

body.ed-home .header-signin,
body.ed-index .header-signin,
body.ed-tools .header-signin,
body.ed-tool .header-signin,
body.ed-article .header-signin {
  color: #aab2c1;
}

body.ed-home .header-cta,
body.ed-index .header-cta,
body.ed-tools .header-cta,
body.ed-tool .header-cta,
body.ed-article .header-cta {
  background: var(--ed-acid);
  color: var(--ed-ink);
  border: 1px solid var(--ed-acid);
  border-radius: 2px;
  font-family: var(--ed-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 13px;
  box-shadow: none;
}

body.ed-home .header-cta:hover,
body.ed-index .header-cta:hover,
body.ed-tools .header-cta:hover,
body.ed-tool .header-cta:hover,
body.ed-article .header-cta:hover {
  background: var(--ed-paper);
  border-color: var(--ed-paper);
  color: var(--ed-ink);
}

body.ed-home .lang-switch summary,
body.ed-index .lang-switch summary,
body.ed-tools .lang-switch summary,
body.ed-tool .lang-switch summary,
body.ed-article .lang-switch summary {
  border-color: var(--ed-line);
  color: #aab2c1;
  background: transparent;
  border-radius: 2px;
}

body.ed-home .lang-label,
body.ed-index .lang-label,
body.ed-tools .lang-label,
body.ed-tool .lang-label,
body.ed-article .lang-label {
  font-family: var(--ed-mono);
  font-size: 10px;
}

body.ed-home .lang-menu,
body.ed-index .lang-menu,
body.ed-tools .lang-menu,
body.ed-tool .lang-menu,
body.ed-article .lang-menu {
  background: var(--ed-ink-2);
  border-color: var(--ed-line);
}

/* ---------- footer ---------- */

body.ed-home .site-footer,
body.ed-index .site-footer,
body.ed-tools .site-footer,
body.ed-tool .site-footer,
body.ed-article .site-footer {
  background: #05070b;
  color: #9ba3b3;
  border-top: 1px solid var(--ed-line);
}

body.ed-home .site-footer .brand-word,
body.ed-index .site-footer .brand-word,
body.ed-tools .site-footer .brand-word,
body.ed-tool .site-footer .brand-word,
body.ed-article .site-footer .brand-word {
  color: var(--ed-paper);
}

body.ed-home .footer-tagline,
body.ed-index .footer-tagline,
body.ed-tools .footer-tagline,
body.ed-tool .footer-tagline,
body.ed-article .footer-tagline {
  font-family: var(--ed-serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ed-paper);
  max-width: 34ch;
}

body.ed-home .footer-col h2,
body.ed-index .footer-col h2,
body.ed-tools .footer-col h2,
body.ed-tool .footer-col h2,
body.ed-article .footer-col h2 {
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-acid);
}

body.ed-home .footer-col a,
body.ed-index .footer-col a,
body.ed-tools .footer-col a,
body.ed-tool .footer-col a,
body.ed-article .footer-col a {
  color: #9ba3b3;
}

body.ed-home .footer-col a:hover,
body.ed-index .footer-col a:hover,
body.ed-tools .footer-col a:hover,
body.ed-tool .footer-col a:hover,
body.ed-article .footer-col a:hover {
  color: var(--ed-paper);
}

/* ---------- home hero ---------- */

.ed-home .ed-hero {
  position: relative;
  padding: 78px 0 54px;
  border-bottom: 1px solid var(--ed-line);
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(200, 255, 61, 0.10), transparent 62%),
    radial-gradient(700px 360px at 8% 72%, rgba(142, 216, 255, 0.07), transparent 65%),
    var(--ed-ink);
  overflow: hidden;
}

.ed-home .ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}

.ed-home .ed-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 64px;
  align-items: end;
}

.ed-kicker {
  margin: 0 0 22px;
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ed-acid);
}

.ed-kicker::before {
  content: "/// ";
  color: var(--ed-coral);
}

.ed-home .ed-hero h1 {
  margin: 0;
  max-width: 13ch;
  font-family: var(--ed-serif);
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: var(--ed-paper);
  text-wrap: balance;
}

.ed-home .ed-hero h1 em {
  color: var(--ed-acid);
  font-style: italic;
}

.ed-lede {
  margin: 26px 0 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.65;
  color: #b8c0cd;
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ed-line);
  border-radius: 2px;
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ed-btn-primary {
  background: var(--ed-acid);
  border-color: var(--ed-acid);
  color: var(--ed-ink);
}

.ed-btn-primary:hover {
  background: var(--ed-paper);
  border-color: var(--ed-paper);
  color: var(--ed-ink);
}

.ed-btn-ghost {
  background: transparent;
  color: var(--ed-paper);
}

.ed-btn-ghost:hover {
  border-color: var(--ed-acid);
  color: var(--ed-acid);
}

.ed-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ed-line);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

/* ---------- radar / index panel ---------- */

.ed-radar {
  border: 1px solid var(--ed-line);
  background: rgba(13, 17, 24, 0.92);
  backdrop-filter: blur(8px);
  align-self: stretch;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.ed-radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ed-line);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

.ed-radar-head b {
  color: var(--ed-acid);
  font-weight: 500;
}

.ed-radar-list {
  display: flex;
  flex-direction: column;
}

.ed-tool-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--ed-paper);
  text-decoration: none;
  transition: background .15s ease, padding .15s ease;
}

.ed-tool-row:hover {
  background: rgba(200, 255, 61, 0.06);
  padding-left: 22px;
}

.ed-tool-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ed-line);
  border-radius: 2px;
  font-family: var(--ed-mono);
  font-size: 11px;
  color: var(--ed-acid);
  background: var(--ed-ink-3);
}

.ed-tool-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ed-tool-row span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ed-muted);
}

.ed-tool-row .ed-arrow {
  font-family: var(--ed-mono);
  color: var(--ed-muted);
  transition: color .15s ease, transform .15s ease;
}

.ed-tool-row:hover .ed-arrow {
  color: var(--ed-acid);
  transform: translateX(3px);
}

.ed-radar-foot {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--ed-line);
  font-family: var(--ed-mono);
  font-size: 10px;
  color: var(--ed-muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- ad / sponsor band ---------- */

.ed-ad-band {
  padding: 7px 0 0;
}

.ed-ad-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
  padding: 18px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: linear-gradient(90deg, rgba(200,255,61,.05), rgba(13,17,24,.4));
  color: var(--ed-paper);
  text-decoration: none;
}

.ed-ad-slot:hover {
  border-color: var(--ed-acid);
}

.ed-ad-label {
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ed-ad-copy strong {
  display: block;
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 400;
}

.ed-ad-copy span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ed-muted);
}

.ed-ad-cta {
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-acid);
  white-space: nowrap;
}

/* ---------- sections ---------- */

.ed-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--ed-line);
}

.ed-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.ed-section-head .eyebrow {
  margin: 0 0 9px;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-acid);
}

.ed-section-head h2 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--ed-paper);
}

.ed-section-head .text-link {
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-muted);
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 3px;
}

.ed-section-head .text-link:hover {
  color: var(--ed-acid);
  border-color: var(--ed-acid);
}

/* product chips */

.ed-home .v4-lib-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ed-line);
  border: 1px solid var(--ed-line);
}

.ed-home .v4-lib-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  background: var(--ed-ink-2);
  color: var(--ed-paper);
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.ed-home .v4-lib-link::after {
  content: "↗";
  color: var(--ed-muted);
}

.ed-home .v4-lib-link:hover {
  background: var(--ed-ink-3);
  color: var(--ed-acid);
}

/* cards */

body.ed-home .v4-grid,
body.ed-index .v4-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.ed-home .v4-card,
body.ed-index .v4-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  background: var(--ed-ink-2);
  border: 1px solid var(--ed-line);
  border-radius: 2px;
  box-shadow: none;
  color: var(--ed-paper);
  text-decoration: none;
}

body.ed-home .v4-card:hover,
body.ed-index .v4-card:hover {
  border-color: var(--ed-acid);
  background: var(--ed-ink-3);
  transform: translateY(-2px);
}

body.ed-home .v4-card .v4-kicker,
body.ed-index .v4-card .v4-kicker {
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-acid);
}

body.ed-home .v4-card h2,
body.ed-index .v4-card h2 {
  margin: 16px 0 0;
  font-family: var(--ed-serif);
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ed-paper);
}

body.ed-home .v4-card p,
body.ed-index .v4-card p {
  margin: 12px 0 0;
  color: #a7b0be;
  font-size: 14px;
  line-height: 1.55;
}

body.ed-home .v4-card .v4-meta,
body.ed-index .v4-card .v4-meta {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

/* ---------- generic index pages ---------- */

body.ed-index .page-hero {
  padding: 70px 0 54px;
  background:
    radial-gradient(720px 300px at 82% 10%, rgba(200,255,61,.08), transparent 64%),
    var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}

body.ed-index .page-hero .eyebrow {
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-acid);
}

body.ed-index .page-hero h1 {
  max-width: 18ch;
  font-family: var(--ed-serif);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ed-paper);
}

body.ed-index .page-hero .page-lede {
  max-width: 62ch;
  color: #b8c0cd;
  font-size: 17px;
}

body.ed-index .section {
  padding: 48px 0 80px;
}

/* ---------- tools index ---------- */

body.ed-tools .page-hero.page-hero-center {
  padding: 66px 0 44px;
  background:
    radial-gradient(700px 300px at 50% 5%, rgba(200,255,61,.08), transparent 65%),
    var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}

body.ed-tools .page-hero h1 {
  font-family: var(--ed-serif);
  font-size: clamp(42px, 5.6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ed-paper);
}

body.ed-tools .page-hero .eyebrow {
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  letter-spacing: .14em;
}

body.ed-tools .page-lede {
  color: #b8c0cd;
}

body.ed-tools .hero-search {
  background: var(--ed-ink-2);
  border: 1px solid var(--ed-line);
  border-radius: 2px;
}

body.ed-tools .hero-search input {
  color: var(--ed-paper);
  background: transparent;
}

body.ed-tools .filter-chip {
  background: transparent;
  border: 1px solid var(--ed-line);
  color: var(--ed-muted);
  border-radius: 2px;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .05em;
}

body.ed-tools .filter-chip.is-active,
body.ed-tools .filter-chip:hover {
  background: var(--ed-acid);
  border-color: var(--ed-acid);
  color: var(--ed-ink);
}

body.ed-tools .tools-category {
  border-top: 1px solid var(--ed-line);
  padding-top: 30px;
}

body.ed-tools .tools-category-head h2 {
  font-family: var(--ed-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ed-paper);
}

body.ed-tools .tools-category-head p,
body.ed-tools .category-count {
  color: var(--ed-muted);
}

body.ed-tools .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.ed-tools .tool-card {
  background: var(--ed-ink-2);
  border: 1px solid var(--ed-line);
  border-radius: 2px;
  box-shadow: none;
  color: var(--ed-paper);
}

body.ed-tools .tool-card:hover {
  border-color: var(--ed-acid);
  background: var(--ed-ink-3);
}

body.ed-tools .tool-card h3,
body.ed-tools .tool-card .tool-name {
  color: var(--ed-paper);
}

body.ed-tools .tool-card p {
  color: #a7b0be;
}

body.ed-tools .cta-panel {
  background: var(--ed-ink-2);
  border: 1px solid var(--ed-line);
  border-radius: 2px;
}

/* ---------- tool detail ---------- */

body.ed-tool .tool-hero {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(200,255,61,.08), transparent 65%),
    var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
  color: var(--ed-paper);
}

body.ed-tool .tool-hero h1 {
  font-family: var(--ed-serif);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.035em;
}

body.ed-tool .tool-hero p {
  color: #b8c0cd;
}

body.ed-tool .tool-runner,
body.ed-tool .tool-panel {
  background: var(--ed-ink-2);
  border-color: var(--ed-line);
  color: var(--ed-paper);
}

/* ---------- article ---------- */

body.ed-article {
  background: var(--ed-paper);
  color: var(--ed-ink);
}

body.ed-article main {
  background: var(--ed-paper);
}

body.ed-article .article-shell {
  padding-top: 30px;
  padding-bottom: 90px;
}

body.ed-article .breadcrumbs {
  color: #756b5b;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .04em;
  padding: 8px 0 18px;
}

body.ed-article .breadcrumbs a {
  color: #5c5346;
}

body.ed-article .article-header {
  position: relative;
  padding: 52px 52px 44px;
  background: var(--ed-ink);
  color: var(--ed-paper);
  border: 1px solid var(--ed-ink);
  overflow: hidden;
}

body.ed-article .article-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200,255,61,.14), transparent 68%);
  pointer-events: none;
}

body.ed-article .article-header .eyebrow {
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.ed-article .article-header h1 {
  max-width: 20ch;
  margin: 14px 0 0;
  font-family: var(--ed-serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 400;
  color: var(--ed-paper);
  text-wrap: balance;
}

body.ed-article .article-lede {
  max-width: 64ch;
  margin: 20px 0 0;
  color: #b8c0cd;
  font-size: 17px;
  line-height: 1.6;
}

body.ed-article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--ed-line);
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.ed-article .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: start;
  padding-top: 38px;
}

body.ed-article .article-body {
  min-width: 0;
}

body.ed-article .prose {
  max-width: 760px;
  color: #1c2430;
  font-size: 18px;
  line-height: 1.75;
}

body.ed-article .prose > p:first-of-type {
  font-size: 21px;
  line-height: 1.6;
}

body.ed-article .prose h1,
body.ed-article .prose h2,
body.ed-article .prose h3,
body.ed-article .prose h4 {
  font-family: var(--ed-serif);
  color: var(--ed-ink);
  font-weight: 400;
  letter-spacing: -.025em;
}

body.ed-article .prose h2 {
  margin: 54px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--ed-line-dark);
  font-size: 34px;
  line-height: 1.08;
}

body.ed-article .prose h3 {
  margin: 34px 0 10px;
  font-size: 25px;
}

body.ed-article .prose a {
  color: #b43f20;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.ed-article .prose strong {
  color: #0f1722;
}

body.ed-article .prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--ed-coral);
  color: #4c4437;
  font-family: var(--ed-serif);
  font-size: 22px;
  line-height: 1.45;
}

body.ed-article .prose code {
  font-family: var(--ed-mono);
  font-size: .84em;
  background: rgba(8,10,15,.07);
  border: 1px solid rgba(8,10,15,.08);
  padding: 1px 5px;
  border-radius: 2px;
}

body.ed-article .prose pre {
  margin: 24px 0;
  padding: 20px;
  background: #0b0f16;
  border: 1px solid #1a2230;
  color: #d7e0ef;
  border-radius: 2px;
  overflow-x: auto;
}

body.ed-article .prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.7;
}

body.ed-article .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
}

body.ed-article .prose th,
body.ed-article .prose td {
  border: 1px solid rgba(8,10,15,.14);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

body.ed-article .prose th {
  background: rgba(8,10,15,.05);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.ed-article .prose img {
  border: 1px solid rgba(8,10,15,.14);
  background: #fff;
}

body.ed-article .v4-figure {
  margin: 32px 0;
}

body.ed-article .v4-figure figcaption {
  color: #6b6254;
  font-family: var(--ed-mono);
  font-size: 10px;
  line-height: 1.5;
}

body.ed-article .article-aside {
  position: sticky;
  top: 92px;
}

body.ed-article .toc-card {
  padding: 20px;
  background: var(--ed-paper-2);
  border: 1px solid rgba(8,10,15,.14);
  border-radius: 2px;
}

body.ed-article .toc-title {
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b6254;
}

body.ed-article .toc-card a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid rgba(8,10,15,.1);
  color: #2b3340;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

body.ed-article .toc-card a:hover {
  color: #b43f20;
}

body.ed-article .v4-evidence {
  margin-top: 48px;
  padding: 24px;
  background: var(--ed-paper-2);
  border: 1px solid rgba(8,10,15,.14);
}

body.ed-article .v4-evidence h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 28px;
}

body.ed-article .v4-evidence li {
  color: #3f4652;
  font-size: 13px;
}

body.ed-article .v4-evidence .tiny {
  color: #756b5b;
}

/* house ad in article sidebar */

.ed-house-ad {
  display: block;
  margin-top: 18px;
  padding: 22px;
  background: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  color: var(--ed-paper);
  text-decoration: none;
}

.ed-house-ad .ed-ad-label {
  writing-mode: initial;
  transform: none;
  color: var(--ed-acid);
}

.ed-house-ad strong {
  display: block;
  margin-top: 14px;
  font-family: var(--ed-serif);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 400;
}

.ed-house-ad span {
  display: block;
  margin-top: 10px;
  color: var(--ed-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ed-house-ad em {
  display: block;
  margin-top: 16px;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ed-acid);
  font-style: normal;
}

/* ---------- mobile ---------- */

@media (max-width: 1080px) {
  body.ed-home .v4-grid,
  body.ed-index .v4-grid,
  body.ed-tools .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-home .ed-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ed-radar {
    max-width: 620px;
    width: 100%;
  }

  body.ed-article .article-layout {
    grid-template-columns: 1fr;
  }

  body.ed-article .article-aside {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  body.ed-home .shell,
  body.ed-index .shell,
  body.ed-tools .shell,
  body.ed-tool .shell,
  body.ed-article .shell {
    width: min(100% - 28px, var(--ed-shell));
  }

  body.ed-home .header-inner,
  body.ed-index .header-inner,
  body.ed-tools .header-inner,
  body.ed-tool .header-inner,
  body.ed-article .header-inner {
    height: 62px;
  }

  body.ed-home .header-signin,
  body.ed-home .lang-switch,
  body.ed-index .header-signin,
  body.ed-index .lang-switch,
  body.ed-tools .header-signin,
  body.ed-tools .lang-switch,
  body.ed-tool .header-signin,
  body.ed-tool .lang-switch,
  body.ed-article .header-signin,
  body.ed-article .lang-switch {
    display: none;
  }

  .ed-home .ed-hero {
    padding: 48px 0 34px;
  }

  .ed-home .ed-hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .ed-lede {
    font-size: 16px;
  }

  body.ed-home .v4-grid,
  body.ed-index .v4-grid,
  body.ed-tools .tool-grid {
    grid-template-columns: 1fr;
  }

  .ed-home .v4-lib-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-section {
    padding: 48px 0;
  }

  .ed-section-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .ed-section-head h2 {
    font-size: 34px;
  }

  .ed-ad-slot {
    min-height: 0;
    padding: 16px;
  }

  .ed-ad-copy strong {
    font-size: 18px;
  }

  .ed-ad-label {
    display: none;
  }

  body.ed-article .article-shell {
    padding-top: 16px;
    padding-bottom: 56px;
  }

  body.ed-article .article-header {
    padding: 30px 22px 26px;
  }

  body.ed-article .article-header h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  body.ed-article .article-lede {
    font-size: 15px;
  }

  body.ed-article .article-layout {
    gap: 24px;
    padding-top: 22px;
  }

  body.ed-article .prose {
    font-size: 17px;
  }

  body.ed-article .prose > p:first-of-type {
    font-size: 19px;
  }

  body.ed-article .prose h2 {
    font-size: 28px;
    margin-top: 40px;
  }

  body.ed-article .prose pre {
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 0;
  }

  body.ed-article .article-aside {
    max-width: none;
  }
}


/* legacy section wrappers reused by the V4 home */

body.ed-home .section.shell,
body.ed-index .section.shell {
  padding: 64px 0;
  border-bottom: 1px solid var(--ed-line);
}

body.ed-home .v4-section-head,
body.ed-index .v4-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

body.ed-home .v4-section-head .eyebrow,
body.ed-index .v4-section-head .eyebrow {
  margin: 0 0 8px;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ed-acid);
}

body.ed-home .v4-section-head h2,
body.ed-index .v4-section-head h2 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 400;
  color: var(--ed-paper);
}

body.ed-home .v4-section-head .text-link,
body.ed-index .v4-section-head .text-link {
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ed-muted);
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 3px;
}

body.ed-home .v4-section-head .text-link:hover,
body.ed-index .v4-section-head .text-link:hover {
  color: var(--ed-acid);
  border-color: var(--ed-acid);
}

@media (max-width: 760px) {
  body.ed-home .section.shell,
  body.ed-index .section.shell {
    padding: 44px 0;
  }

  body.ed-home .v4-section-head,
  body.ed-index .v4-section-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
}


/* menu + small chrome */
body.ed-home .menu-toggle,
body.ed-index .menu-toggle,
body.ed-tools .menu-toggle,
body.ed-tool .menu-toggle,
body.ed-article .menu-toggle {
  color: var(--ed-paper);
  border-color: var(--ed-line);
}

body.ed-home .header-inner .brand,
body.ed-index .header-inner .brand,
body.ed-tools .header-inner .brand,
body.ed-tool .header-inner .brand,
body.ed-article .header-inner .brand {
  color: var(--ed-paper);
}


/* card thumbnails */
body.ed-home .v4-card-media,
body.ed-index .v4-card-media {
  display: block;
  margin: -22px -22px 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--ed-line);
  background: #151b26;
}

body.ed-home .v4-card-media img,
body.ed-index .v4-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.06);
  transition: transform .35s ease, filter .35s ease;
}

body.ed-home .v4-card:hover .v4-card-media img,
body.ed-index .v4-card:hover .v4-card-media img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

body.ed-home .v4-card:has(.v4-card-media) h2,
body.ed-index .v4-card:has(.v4-card-media) h2 {
  margin-top: 4px;
}

/* ghost header cta */


body.ed-home .header-cta,
body.ed-index .header-cta,
body.ed-tools .header-cta,
body.ed-tool .header-cta,
body.ed-article .header-cta {
  background: transparent;
  color: var(--ed-acid);
  border-color: rgba(200, 255, 61, .55);
}

body.ed-home .header-cta:hover,
body.ed-index .header-cta:hover,
body.ed-tools .header-cta:hover,
body.ed-tool .header-cta:hover,
body.ed-article .header-cta:hover {
  background: var(--ed-acid);
  color: var(--ed-ink);
  border-color: var(--ed-acid);
}


/* active nav: acid underline, no SaaS pill */
body.ed-home .nav-link.is-active,
body.ed-index .nav-link.is-active,
body.ed-tools .nav-link.is-active,
body.ed-tool .nav-link.is-active,
body.ed-article .nav-link.is-active {
  background: transparent;
  color: var(--ed-acid);
}

body.ed-home .nav-link.is-active::after,
body.ed-index .nav-link.is-active::after,
body.ed-tools .nav-link.is-active::after,
body.ed-tool .nav-link.is-active::after,
body.ed-article .nav-link.is-active::after {
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: var(--ed-acid);
}

/* full-width article header */
body.ed-article .article-header {
  width: 100%;
  max-width: none;
}

/* contact-sheet image treatment */
body.ed-home .v4-card-media,
body.ed-index .v4-card-media {
  background: var(--ed-paper);
  padding: 7px;
}

body.ed-home .v4-card-media img,
body.ed-index .v4-card-media img {
  object-fit: contain;
  object-position: center;
  background: var(--ed-paper);
  filter: saturate(.94) contrast(1.03);
}


/* article cover: real screenshot/diagram on the right */
body.ed-article .article-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background-image:
    linear-gradient(90deg, var(--ed-ink) 0%, rgba(8,10,15,.86) 26%, rgba(8,10,15,.16) 100%),
    var(--ed-cover);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .9;
  pointer-events: none;
}

body.ed-article .article-header > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  body.ed-article .article-header::before {
    width: 100%;
    opacity: .22;
  }
}

/* toc-card max-height */


body.ed-article .toc-card {
  max-height: calc(100vh - 120px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(8,10,15,.25) transparent;
}

@media (max-width: 760px) {
  body.ed-article .toc-card {
    max-height: none;
    overflow: visible;
  }
}


/* tool cards: readable on the ink canvas */
body.ed-tools .tool-card-name {
  color: var(--ed-paper);
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
}

body.ed-tools .tool-card-desc {
  color: #a7b0be;
}

body.ed-tools .tool-card-cat {
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.ed-tools .tool-card-link {
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.ed-tools .tool-icon {
  background: var(--ed-paper);
  color: var(--ed-ink);
  border-radius: 2px;
}

body.ed-tools .tool-card:hover .tool-icon {
  background: var(--ed-acid);
  color: var(--ed-ink);
}

/* mobile ad stack */


@media (max-width: 760px) {
  .ed-ad-slot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ed-ad-cta {
    white-space: normal;
  }

  .ed-actions .ed-btn {
    width: 100%;
    justify-content: space-between;
  }

  .ed-hero-meta {
    gap: 10px 16px;
  }
}


/* tool detail: dark hero, paper utility surface (readability first) */
body.ed-tool {
  background: var(--ed-paper);
  color: var(--ed-ink);
}

body.ed-tool main {
  background: var(--ed-paper);
  color: var(--ed-ink);
}

body.ed-tool .tool-hero {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(200,255,61,.08), transparent 65%),
    var(--ed-ink);
  color: var(--ed-paper);
  border-bottom: 1px solid var(--ed-line);
}

body.ed-tool .tool-hero h1,
body.ed-tool .tool-hero h2,
body.ed-tool .tool-hero strong {
  color: var(--ed-paper);
}

body.ed-tool .tool-hero p,
body.ed-tool .tool-hero .tool-sub {
  color: #b8c0cd;
}

body.ed-tool .tool-runner,
body.ed-tool .tool-panel {
  background: #fff;
  border-color: rgba(8, 10, 15, .14);
  color: var(--ed-ink);
}

body.ed-tool .tool-section h2,
body.ed-tool .tool-section h3,
body.ed-tool .faq-section h2,
body.ed-tool .related-guides h2 {
  color: var(--ed-ink);
}

body.ed-tool .tool-section p,
body.ed-tool .tool-section li {
  color: #3f4652;
}


/* replace legacy SaaS purple accents inside the utility pages */
body.ed-tool .ws-submit,
body.ed-tool .btn-primary {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: var(--ed-paper);
}

body.ed-tool .ws-submit:hover,
body.ed-tool .btn-primary:hover {
  background: var(--ed-acid);
  border-color: var(--ed-acid);
  color: var(--ed-ink);
}

body.ed-tool .quota-track span {
  background: var(--ed-acid);
}

body.ed-tool .quota-label svg {
  color: var(--ed-coral);
}

body.ed-tool .quota-top a {
  color: #a63a1c;
}

body.ed-tool .example-tab.is-active,
body.ed-tool .tone-chip.is-active {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: var(--ed-paper);
}

/* neutralise remaining tool links */


body.ed-tool .guide-mini,
body.ed-tool .tool-section .text-link {
  color: #a63a1c;
}

body.ed-tool label:has(input[type="radio"]:checked) {
  border-color: var(--ed-ink);
  color: var(--ed-ink);
  background: var(--ed-paper);
}


/* ============================================================
   AI tool index and profiles
   ============================================================ */

/* profile shell header/footer (ed-profile is not in the shared dark list) */
body.ed-profile {
  background: var(--ed-paper);
  color: var(--ed-ink);
}

body.ed-profile .shell {
  width: min(var(--ed-shell), calc(100% - 48px));
  max-width: var(--ed-shell);
}

body.ed-profile .site-header {
  background: rgba(8, 10, 15, .94);
  border-bottom: 1px solid var(--ed-line);
  backdrop-filter: blur(14px);
}

body.ed-profile .header-inner { height: 72px; gap: 28px; }

body.ed-profile .brand-word {
  font-family: var(--ed-serif);
  font-size: 21px;
  color: var(--ed-paper);
}

body.ed-profile .brand-mark { background: var(--ed-acid); color: var(--ed-ink); border-radius: 2px; }

body.ed-profile .nav-link {
  font-family: var(--ed-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #aab2c1;
  padding: 9px 10px;
  border-radius: 2px;
}

body.ed-profile .nav-link:hover,
body.ed-profile .nav-link.is-active { color: var(--ed-acid); background: transparent; }

body.ed-profile .nav-link.is-active::after {
  left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--ed-acid); border-radius: 0;
}

body.ed-profile .header-cta {
  background: transparent;
  color: var(--ed-acid);
  border: 1px solid rgba(200,255,61,.55);
  border-radius: 2px;
  font-family: var(--ed-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 13px;
  box-shadow: none;
}

body.ed-profile .lang-switch summary { border-color: var(--ed-line); color: #aab2c1; background: transparent; border-radius: 2px; }
body.ed-profile .header-signin { color: #aab2c1; }
body.ed-profile .menu-toggle { color: var(--ed-paper); border-color: var(--ed-line); }

body.ed-profile .site-footer { background: #05070b; color: #9ba3b3; border-top: 1px solid var(--ed-line); }
body.ed-profile .footer-col h2 { font-family: var(--ed-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-acid); }
body.ed-profile .footer-col a { color: #9ba3b3; }
body.ed-profile .footer-tagline { color: var(--ed-paper); font-family: var(--ed-serif); font-size: 20px; line-height: 1.35; }
body.ed-profile .site-footer .brand-word { color: var(--ed-paper); }

/* index */
.ed-ai-index .ai-index-hero {
  padding: 72px 0 54px;
  background:
    radial-gradient(760px 320px at 82% 5%, rgba(200,255,61,.08), transparent 66%),
    var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}

.ed-ai-index .ai-index-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(48px, 6.6vw, 82px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 400;
  color: var(--ed-paper);
}

.ed-ai-index .ai-index-hero h1 em { color: var(--ed-acid); font-style: italic; }
.ed-ai-index .ai-index-hero .ed-lede { margin-top: 22px; max-width: 58ch; }
.ai-index-meta {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--ed-line); font-family: var(--ed-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ed-muted);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ai-card {
  display: flex;
  flex-direction: column;
  background: var(--ed-ink-2);
  border: 1px solid var(--ed-line);
  border-radius: 2px;
  color: var(--ed-paper);
  text-decoration: none;
  overflow: hidden;
}

.ai-card:hover { border-color: var(--ed-acid); background: var(--ed-ink-3); transform: translateY(-2px); }

.ai-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  padding: 8px;
  background: var(--ed-paper);
  border-bottom: 1px solid var(--ed-line);
}

.ai-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; filter: saturate(.92) contrast(1.03); }

.ai-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.ai-card-kicker { font-family: var(--ed-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-acid); }
.ai-card-name { margin-top: 12px; font-family: var(--ed-serif); font-size: 30px; line-height: 1; color: var(--ed-paper); }
.ai-card-tagline { margin-top: 10px; color: #a7b0be; font-size: 14px; line-height: 1.5; }
.ai-card-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px;
  font-family: var(--ed-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ed-muted);
}
.ai-card-foot span:last-child { color: var(--ed-acid); }

.ai-note { padding-top: 0; border-bottom: 0; }
.ai-note p { max-width: 70ch; color: #a7b0be; font-size: 14px; line-height: 1.65; }
.ai-note strong { color: var(--ed-paper); }

/* profile hero */
body.ed-profile main { background: var(--ed-paper); color: var(--ed-ink); }

.profile-hero {
  background:
    radial-gradient(800px 340px at 82% 0%, rgba(200,255,61,.10), transparent 65%),
    var(--ed-ink);
  color: var(--ed-paper);
  padding: 26px 0 64px;
  border-bottom: 1px solid var(--ed-line);
}

.profile-hero .breadcrumbs {
  padding: 4px 0 28px;
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 10px;
}

.profile-hero .breadcrumbs a { color: #aab2c1; }
.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 58px;
  align-items: center;
}

.profile-hero h1 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(64px, 9vw, 112px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 400;
  color: var(--ed-paper);
}

.profile-tagline {
  max-width: 22ch;
  margin: 18px 0 0;
  font-family: var(--ed-serif);
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.12;
  color: var(--ed-acid);
}

.profile-summary { max-width: 62ch; margin: 20px 0 0; color: #b8c0cd; font-size: 17px; line-height: 1.65; }

.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.profile-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; padding-top: 14px;
  border-top: 1px solid var(--ed-line); font-family: var(--ed-mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ed-muted);
}

.profile-shot { margin: 0; border: 1px solid var(--ed-line); background: var(--ed-paper); padding: 8px; }
.profile-shot img { display: block; width: 100%; max-height: 390px; object-fit: contain; background: var(--ed-paper); }
.profile-shot figcaption { padding: 10px 4px 3px; color: #5c5346; font-family: var(--ed-mono); font-size: 9px; line-height: 1.45; }

/* profile body */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding-top: 46px;
  padding-bottom: 90px;
}

.profile-prose { min-width: 0; max-width: 780px; }
.profile-prose h2 {
  margin: 48px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--ed-line-dark);
  font-family: var(--ed-serif);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--ed-ink);
}
.profile-prose p { color: #3f4652; font-size: 17px; line-height: 1.7; }
.profile-small { font-family: var(--ed-mono); font-size: 10px !important; color: #756b5b !important; }

.profile-verdict {
  padding: 26px 28px;
  border-left: 3px solid var(--ed-acid);
  background: var(--ed-paper-2);
}
.profile-verdict .ed-kicker { margin-bottom: 8px; color: var(--ed-coral); }
.profile-verdict p:last-child { margin: 0; color: var(--ed-ink); font-family: var(--ed-serif); font-size: 23px; line-height: 1.4; }

.profile-list { margin: 0; padding: 0; list-style: none; }
.profile-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid rgba(8,10,15,.09);
  color: #3f4652;
  font-size: 15px;
  line-height: 1.55;
}
.profile-list li::before { content: "+"; position: absolute; left: 0; color: var(--ed-coral); font-family: var(--ed-mono); }
.profile-list-no li::before { content: "–"; color: #756b5b; }
.profile-list li strong { color: var(--ed-ink); }

.profile-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.profile-table th, .profile-table td { border: 1px solid rgba(8,10,15,.14); padding: 11px 13px; text-align: left; vertical-align: top; }
.profile-table th { width: 30%; background: rgba(8,10,15,.04); font-family: var(--ed-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.profile-table td { color: #3f4652; }

.profile-tutorials { display: grid; gap: 1px; background: var(--ed-line-dark); border: 1px solid var(--ed-line-dark); }
.profile-tutorial { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; background: var(--ed-paper); color: var(--ed-ink); text-decoration: none; }
.profile-tutorial:hover { background: var(--ed-paper-2); }
.profile-tutorial span { font-size: 14px; line-height: 1.4; }
.profile-tutorial em { flex: none; font-family: var(--ed-mono); font-size: 9px; text-transform: uppercase; color: #756b5b; font-style: normal; }

.profile-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-alt { padding: 16px; border: 1px solid var(--ed-line-dark); color: var(--ed-ink); text-decoration: none; }
.profile-alt:hover { border-color: var(--ed-ink); }
.profile-alt strong { display: block; font-family: var(--ed-serif); font-size: 22px; font-weight: 400; }
.profile-alt span { display: block; margin-top: 5px; color: #5c5346; font-size: 12px; line-height: 1.45; }

.profile-sources ul { padding-left: 18px; }
.profile-sources li { color: #5c5346; font-size: 13px; line-height: 1.6; }
.profile-sources a { color: #a63a1c; }

.profile-aside { position: sticky; top: 92px; align-self: start; }
.profile-facts { padding: 20px; background: var(--ed-paper-2); border: 1px solid rgba(8,10,15,.14); }
.profile-facts .ed-kicker { color: var(--ed-coral); margin-bottom: 10px; }
.profile-facts dl { margin: 0; }
.profile-facts dt { margin-top: 12px; font-family: var(--ed-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #756b5b; }
.profile-facts dd { margin: 3px 0 0; color: var(--ed-ink); font-size: 13px; line-height: 1.45; }

@media (max-width: 1080px) {
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-shot img { max-height: 280px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; max-width: 420px; }
}

@media (max-width: 760px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ed-ai-index .ai-index-hero { padding: 46px 0 34px; }
  .ed-ai-index .ai-index-hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .profile-hero { padding: 16px 0 34px; }
  .profile-hero h1 { font-size: clamp(56px, 17vw, 82px); }
  .profile-tagline { font-size: 22px; }
  .profile-summary { font-size: 15px; }
  .profile-layout { padding-top: 28px; padding-bottom: 56px; gap: 26px; }
  .profile-prose h2 { font-size: 28px; margin-top: 36px; }
  .profile-verdict { padding: 20px; }
  .profile-verdict p:last-child { font-size: 20px; }
  .profile-alts { grid-template-columns: 1fr; }
  .profile-aside { max-width: none; }
}


/* homepage review: evidence note, task-first cards, tool previews */
.ed-hero-note {
  margin: 14px 0 0;
  max-width: 58ch;
  color: #7f8897;
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1.5;
}

.section-sub {
  margin: 9px 0 0;
  max-width: 54ch;
  color: #8b93a3;
  font-size: 13px;
  line-height: 1.5;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--ed-line);
  border: 1px solid var(--ed-line);
}

.task-card {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 18px;
  background: var(--ed-ink-2);
  color: var(--ed-paper);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.task-card:hover { background: var(--ed-ink-3); }
.task-card:hover .task-start { color: var(--ed-acid); }

.task-num {
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ed-coral);
}

.task-name {
  margin-top: 24px;
  font-family: var(--ed-serif);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ed-paper);
}

.task-tools {
  margin-top: 10px;
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.task-start {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: #a7b0be;
  font-size: 12px;
  line-height: 1.35;
}

.task-start span { color: var(--ed-acid); }
.task-or {
  margin: 22px 0 10px;
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tool-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-preview {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 20px;
  background: var(--ed-ink-2);
  border: 1px solid var(--ed-line);
}

.tool-preview-kicker {
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tool-preview h3 {
  margin: 18px 0 0;
  font-family: var(--ed-serif);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--ed-paper);
}

.tool-preview p {
  margin: 10px 0 0;
  color: #a7b0be;
  font-size: 14px;
  line-height: 1.5;
}

.tool-preview-use {
  margin-top: 14px;
  color: var(--ed-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tool-preview-link,
.tool-preview-related {
  display: inline-flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.tool-preview-link { margin-top: auto; padding-top: 18px; }
.tool-preview-related { margin-top: 10px; color: #8b93a3; text-transform: none; font-family: var(--ed-sans); font-size: 11px; letter-spacing: 0; }

.discover-inline { margin: 20px 0 0; }
.discover-inline a {
  color: var(--ed-acid);
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 0; }
  .task-name { margin-top: 14px; }
  .tool-preview-grid { grid-template-columns: 1fr; }
}


/* mobile review polish */
body.ed-home .menu-toggle,
body.ed-index .menu-toggle,
body.ed-tools .menu-toggle,
body.ed-tool .menu-toggle,
body.ed-article .menu-toggle,
body.ed-profile .menu-toggle {
  background: transparent;
  border: 1px solid var(--ed-line);
  border-radius: 2px;
  color: var(--ed-paper);
}

body.ed-home .ed-ad-slot .ed-ad-label,
body.ed-index .ed-ad-slot .ed-ad-label {
  writing-mode: horizontal-tb;
  transform: none;
  align-self: flex-start;
  color: var(--ed-acid);
}

@media (max-width: 760px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card {
    min-height: 0;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas: "num name" "num tools" "num start";
    column-gap: 12px;
    align-items: start;
  }
  .task-num { grid-area: num; padding-top: 3px; }
  .task-name { grid-area: name; margin-top: 0; font-size: 20px; }
  .task-tools { grid-area: tools; margin-top: 5px; }
  .task-start { grid-area: start; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ed-line); }
}
