.sp-article[data-shareplane-special="issue-670"] {
  --i670-navy: #071d3d;
  --i670-blue: #195a9b;
  --i670-green: #17633c;
  --i670-green-soft: #e8f1e9;
  --i670-gold: #c89436;
  --i670-gold-soft: #fbf2da;
  --i670-paper: #fbfaf6;
  --i670-ink: #142238;
  --i670-muted: #536274;
  --i670-line: rgba(69, 91, 111, 0.25);
  --i670-panel: #ffffff;
  --i670-focus: #e3a927;
}

.sp-article[data-shareplane-special="issue-670"] .i670-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 3rem;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--i670-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(200, 148, 54, 0.22), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(25, 90, 155, 0.12), transparent 30%),
    linear-gradient(145deg, #fffdf8 0%, #f3f0e5 50%, #e8f0ea 100%);
  color: var(--i670-navy);
}

.sp-article[data-shareplane-special="issue-670"] .i670-hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 23rem;
  height: 23rem;
  opacity: 0.3;
  background:
    conic-gradient(from 30deg, transparent 0 10%, var(--i670-gold) 10% 17%, transparent 17% 29%, var(--i670-blue) 29% 36%, transparent 36% 48%, var(--i670-green) 48% 55%, transparent 55% 67%, var(--i670-gold) 67% 74%, transparent 74% 100%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
}

.i670-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  color: #8b641b;
  font: 760 0.75rem/1.25 system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sp-article[data-shareplane-special="issue-670"] .i670-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 19ch;
  margin: 0;
  color: var(--i670-navy);
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.i670-dek {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: #39526b;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.i670-recommendation {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  max-width: 56rem;
  margin-top: 2rem;
  padding: 1.15rem 1.3rem;
  border-left: 5px solid var(--i670-gold);
  border-radius: 0 15px 15px 0;
  background: var(--i670-green);
  color: #f8fff9;
}

.i670-recommendation strong {
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.i670-recommendation span {
  color: #e5f0e7;
  line-height: 1.45;
}

.i670-hero__principles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.i670-hero__principles span {
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(7, 29, 61, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #28445c;
  font: 720 0.75rem/1 system-ui, sans-serif;
}

.sp-article[data-shareplane-special="issue-670"] .sp-reading > section > h2 {
  margin-top: 3.6rem;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sp-article[data-shareplane-special="issue-670"] .sp-reading > section > h3 {
  margin-top: 2rem;
  color: inherit;
}

.sp-article[data-shareplane-special="issue-670"] .sp-reading blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.45rem;
  border-left: 4px solid var(--i670-gold);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--i670-gold) 9%, transparent);
  font-size: 1.06em;
}

.sp-article[data-shareplane-special="issue-670"] .sp-table-region {
  max-width: 100%;
  margin: 1.6rem 0;
  overflow-x: auto;
  border: 1px solid var(--i670-line);
  border-radius: 16px;
}

.sp-article[data-shareplane-special="issue-670"] .sp-markdown-table {
  margin: 0;
  min-width: 760px;
}

.sp-article[data-shareplane-special="issue-670"] .sp-markdown-table th {
  background: var(--i670-navy);
  color: #ffffff;
}

.sp-article[data-shareplane-special="issue-670"] .sp-markdown-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--i670-blue) 5%, transparent);
}

.i670-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.8fr) minmax(0, 1fr);
  gap: 1px;
  margin: 3.2rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--i670-line);
  border-radius: 22px;
  background: var(--i670-line);
}

.i670-decision__vendor,
.i670-decision__thesis {
  display: flex;
  min-width: 0;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  text-align: center;
}

.i670-decision__vendor {
  background: var(--i670-panel);
}

.i670-decision__vendor small {
  color: var(--i670-muted);
  font: 740 0.72rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.i670-decision__vendor strong {
  margin-top: 0.55rem;
  color: var(--i670-ink);
  font-size: 1.2rem;
}

.i670-decision__vendor span {
  margin-top: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #ffffff;
  font: 800 clamp(1.5rem, 3vw, 2.2rem)/1 system-ui, sans-serif;
}

.i670-decision__vendor--google span {
  background: var(--i670-green);
}

.i670-decision__vendor--microsoft span {
  background: var(--i670-blue);
}

.i670-decision__thesis {
  background: var(--i670-gold-soft);
  color: var(--i670-navy);
}

.i670-decision__thesis strong,
.i670-decision__thesis span {
  max-width: 18ch;
}

.i670-decision__thesis span {
  margin-top: 0.45rem;
  color: var(--i670-green);
  font-weight: 750;
}

.i670-decision > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--i670-panel);
  color: var(--i670-muted);
  text-align: center;
  font-size: 0.86rem;
}

.i670-models,
.i670-graph {
  margin: 3.5rem 0;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid var(--i670-line);
  border-radius: 24px;
  background: linear-gradient(150deg, var(--i670-paper), color-mix(in srgb, var(--i670-green) 7%, var(--i670-paper)));
}

.i670-models header small,
.i670-graph header small,
.i670-close small {
  color: #9a6f1f;
  font: 760 0.72rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.i670-models header h2,
.i670-graph header h2 {
  max-width: 28ch;
  margin: 0.45rem 0 0;
  color: var(--i670-navy);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.i670-models__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.i670-models__grid section {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--i670-line);
  border-top: 4px solid var(--i670-green);
  border-radius: 16px;
  background: var(--i670-panel);
}

.i670-models__grid section + section {
  border-top-color: var(--i670-blue);
}

.i670-models__grid span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--i670-muted);
  font: 740 0.72rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.i670-models__grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--i670-ink);
  font-size: 1.04rem;
  line-height: 1.45;
}

.i670-models__grid p {
  margin-bottom: 0;
  color: var(--i670-muted);
}

.i670-graph header p {
  max-width: 52rem;
  color: var(--i670-muted);
}

.i670-graph__chain {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.i670-graph__chain li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 8rem;
  align-content: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--i670-line);
  border-radius: 14px;
  background: var(--i670-panel);
  text-align: center;
}

.i670-graph__chain li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -0.48rem;
  top: 50%;
  color: var(--i670-gold);
  font-weight: 900;
  transform: translate(50%, -50%);
}

.i670-graph__chain span {
  color: #9a6f1f;
  font: 780 0.68rem/1 system-ui, sans-serif;
}

.i670-graph__chain strong {
  overflow-wrap: anywhere;
  color: var(--i670-ink);
  font-size: 0.8rem;
  line-height: 1.25;
}

.i670-graph__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.i670-graph__types span {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--i670-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--i670-blue) 6%, var(--i670-panel));
  color: var(--i670-muted);
  font-size: 0.78rem;
}

.i670-graph__types b {
  color: var(--i670-ink);
}

.i670-figure {
  max-width: 960px;
  margin: 3.2rem auto;
}

.i670-figure__image-link {
  display: block;
  border-radius: 22px;
}

.i670-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--i670-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 62px rgba(7, 29, 61, 0.14);
}

.i670-figure figcaption {
  max-width: 50rem;
  margin: 0.9rem auto 0;
  color: var(--i670-muted);
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
}

.i670-figure__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.i670-figure__actions a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--i670-line);
  border-radius: 999px;
  background: var(--i670-panel);
  color: var(--i670-navy);
  font: 720 0.8rem/1.2 system-ui, sans-serif;
  text-decoration: none;
}

.i670-figure__actions a:hover {
  border-color: var(--i670-blue);
  background: color-mix(in srgb, var(--i670-blue) 7%, var(--i670-panel));
}

.i670-figure__image-link:focus-visible,
.i670-figure__actions a:focus-visible {
  outline: 3px solid var(--i670-focus);
  outline-offset: 4px;
}

.i670-close {
  margin: 4rem 0 1.5rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--i670-navy), #10385d);
  color: #f6f8fb;
}

.i670-close p {
  max-width: 54rem;
  color: #dce7ef;
}

.i670-close strong {
  color: #ffffff;
}

.i670-close__final {
  margin-top: 1.35rem !important;
  color: #ffffff !important;
  font-size: clamp(1.3rem, 2.5vw, 1.95rem);
  font-weight: 760;
  line-height: 1.3;
}

html[data-theme="dark"] .sp-article[data-shareplane-special="issue-670"],
html[data-effective-theme="dark"] .sp-article[data-shareplane-special="issue-670"] {
  --i670-paper: #111a1c;
  --i670-ink: #eff4f7;
  --i670-muted: #bdc9d2;
  --i670-line: rgba(221, 233, 240, 0.18);
  --i670-panel: #162126;
}

html[data-theme="dark"] .sp-article[data-shareplane-special="issue-670"] .i670-hero,
html[data-effective-theme="dark"] .sp-article[data-shareplane-special="issue-670"] .i670-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(200, 148, 54, 0.19), transparent 25%),
    radial-gradient(circle at 78% 28%, rgba(54, 131, 195, 0.16), transparent 32%),
    linear-gradient(145deg, #0a1a27, #102d36);
  color: #f6f8fa;
}

html[data-theme="dark"] .sp-article[data-shareplane-special="issue-670"] .i670-hero h1,
html[data-effective-theme="dark"] .sp-article[data-shareplane-special="issue-670"] .i670-hero h1,
html[data-theme="dark"] .i670-models header h2,
html[data-effective-theme="dark"] .i670-models header h2,
html[data-theme="dark"] .i670-graph header h2,
html[data-effective-theme="dark"] .i670-graph header h2 {
  color: #ffffff;
}

html[data-theme="dark"] .i670-dek,
html[data-effective-theme="dark"] .i670-dek {
  color: #d4e1e9;
}

html[data-theme="dark"] .i670-hero__principles span,
html[data-effective-theme="dark"] .i670-hero__principles span {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.06);
  color: #e0eaf0;
}

html[data-theme="dark"] .i670-decision__thesis,
html[data-effective-theme="dark"] .i670-decision__thesis {
  background: #3a311d;
  color: #f8e4b4;
}

html[data-theme="dark"] .i670-decision__thesis span,
html[data-effective-theme="dark"] .i670-decision__thesis span {
  color: #a8d4b4;
}

html[data-theme="dark"] .i670-figure img,
html[data-effective-theme="dark"] .i670-figure img {
  filter: none;
}

@media (max-width: 980px) {
  .i670-graph__chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .i670-graph__chain li {
    min-height: 5.5rem;
  }

  .i670-graph__chain li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 800px) {
  .i670-decision {
    grid-template-columns: 1fr;
  }

  .i670-decision > p {
    grid-column: auto;
  }

  .i670-decision__vendor,
  .i670-decision__thesis {
    min-height: auto;
  }

  .i670-models__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sp-article[data-shareplane-special="issue-670"] .i670-hero {
    padding: 1.45rem;
    border-radius: 19px;
  }

  .sp-article[data-shareplane-special="issue-670"] .i670-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 12vw, 3.45rem);
    line-height: 0.98;
  }

  .i670-recommendation {
    padding: 1rem;
  }

  .i670-models,
  .i670-graph,
  .i670-close {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .i670-graph__chain {
    grid-template-columns: 1fr;
  }

  .i670-graph__chain li {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  .i670-figure {
    margin: 2.5rem 0;
  }

  .i670-figure img,
  .i670-figure__image-link {
    border-radius: 14px;
  }

  .i670-figure__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .i670-figure__actions a {
    width: 100%;
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-table-region {
    overflow: visible;
    border: 0;
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table,
  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table tbody,
  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table tr,
  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table tr {
    margin-bottom: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--i670-line);
    border-radius: 14px;
    background: var(--i670-panel);
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--i670-line);
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table td:last-child {
    border-bottom: 0;
  }

  .sp-article[data-shareplane-special="issue-670"] .sp-markdown-table td::before {
    content: attr(data-label);
    color: var(--i670-muted);
    font: 720 0.72rem/1.25 system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media print {
  .i670-figure,
  .i670-decision,
  .i670-models,
  .i670-graph {
    break-inside: avoid;
  }

  .i670-figure__actions {
    display: none;
  }

  .sp-article[data-shareplane-special="issue-670"] .i670-hero,
  .i670-close {
    box-shadow: none !important;
  }
}
