:root {
  --ink: #1f2528;
  --muted: #6f7777;
  --paper: #fff8ec;
  --paper-deep: #f2e7d2;
  --panel: #fffdf8;
  --line: #dfd3bd;
  --teal: #20343f;
  --teal-soft: #dce8e5;
  --burgundy: #a94f45;
  --amber: #b8873b;
  --sage: #758b78;
  --shadow: 0 18px 42px rgba(62, 48, 31, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31,37,40,.045) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.64;
  overflow-x: hidden;
}
main { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 84px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 236, .94);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  line-height: 1.05;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0;
}
.nav {
  display: flex;
  gap: 24px;
  color: #5b6564;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 750;
}
.nav a:hover { color: var(--burgundy); }

.hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, .9fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: end;
  padding: 52px clamp(20px, 5vw, 84px) 38px;
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--burgundy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  max-width: 820px;
  font-size: 72px;
  line-height: .98;
  letter-spacing: 0;
  font-weight: 700;
}
h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 700;
}
h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.22;
}
.lead {
  max-width: 690px;
  color: #374143;
  font-size: 23px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
  color: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 760;
}
.article-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
}
.trust-note {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
}
.hero-media {
  margin: 0;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.article-layout {
  width: 100%;
  min-width: 0;
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 56px) 0;
}
.toc {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  width: 100%;
  margin: 0 0 32px;
  padding: 16px 0;
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--line);
  color: #475151;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.toc-title {
  flex-basis: 100%;
  margin-bottom: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}
.toc a {
  display: inline-flex;
  padding: 4px 0;
  border-top: 0;
  font-size: 14px;
}
.toc a:hover { color: var(--burgundy); }
.article-main {
  min-width: 0;
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0 0 34px;
  border-top: 3px double var(--line);
  border-bottom: 3px double var(--line);
}
.snapshot div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  background: rgba(255,253,248,.66);
}
.snapshot div:last-child { border-right: 0; }
.snapshot strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
}
.snapshot span { color: var(--muted); font-size: 15px; }

.section {
  width: 100%;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.section-heading.narrow { max-width: 760px; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}
table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}
th, td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--teal);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}
td {
  color: #384245;
  font-size: 15px;
}
.top-row td {
  background: #f8efe0;
  color: #2c3436;
  font-weight: 700;
}

.ranking {
  background: transparent;
}
.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.provider-card {
  position: relative;
  min-height: 0;
  padding: 24px 26px 24px 82px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sage);
  border-radius: 3px;
  background: rgba(255,253,248,.84);
}
.provider-card.featured {
  grid-column: auto;
  background: #fff4df;
  color: var(--ink);
  border-color: var(--line);
  border-left-color: var(--burgundy);
}
.provider-card.featured p,
.provider-card.featured li { color: #535b5b; }
.rank {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}
.featured .rank {
  background: var(--burgundy);
  color: white;
  border-color: var(--burgundy);
}
.provider-card ul { padding-left: 20px; }
.provider-card p,
.provider-card li { color: var(--muted); }
.verdict {
  margin-bottom: 0;
  color: var(--ink) !important;
  font-weight: 700;
}
.featured .verdict { color: var(--ink) !important; }

.split {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(28px, 5vw, 56px);
}
.criteria-list,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.criteria-list article,
.use-case-grid article {
  padding: 20px;
  border-top: 3px solid var(--amber);
  background: rgba(255,253,248,.78);
}
.criteria-list p,
.use-case-grid p {
  margin-bottom: 0;
  color: var(--muted);
}
.use-cases { background: transparent; }
.method-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.method-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 760;
}

.recommendation {
  width: 100%;
  margin: 12px 0 0;
  padding: 30px 0 32px;
  border-top: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.recommendation p {
  max-width: 980px;
  color: #485253;
  font-size: 19px;
}
.recommendation .eyebrow { color: var(--burgundy); }
.editor-note {
  margin-bottom: 0;
  color: var(--muted) !important;
  font-size: 16px !important;
  font-style: italic;
}
.editor-note a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 8px;
  max-width: 920px;
}
.faq-item {
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-item span {
  display: block;
  color: var(--teal);
  font-size: 18px;
  font-weight: 700;
}
.faq-item small {
  display: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.faq-item.is-open small { display: block; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  margin-top: 48px;
  padding: 34px clamp(20px, 5vw, 84px);
  border-top: 1px solid var(--line);
  background: #20282b;
  color: var(--paper);
}
.site-footer p {
  max-width: 560px;
  color: rgba(255,248,236,.70);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  justify-content: flex-end;
  color: rgba(255,248,236,.78);
}
.site-footer a:hover { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--teal);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
}

.simple-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 20px;
}
.simple-page p,
.simple-page li {
  color: var(--muted);
  font-size: 18px;
}
.info-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}
.pdf-frame {
  width: 100%;
  height: 76vh;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
}
.error-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 20px;
  text-align: center;
}

@media (max-width: 1040px) {
  .toc {
    gap: 6px 18px;
    padding: 14px 0;
  }
  .toc-title {
    width: 100%;
    margin-bottom: 0;
  }
  .toc a {
    border-top: 0;
    padding: 4px 0;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .hero,
  .split {
    grid-template-columns: 1fr;
  }
  .snapshot,
  .criteria-list,
  .use-case-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .snapshot div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .snapshot div:last-child { border-bottom: 0; }
  .site-footer nav { justify-content: flex-start; }
  h1 { font-size: 54px; }
  h2 { font-size: 34px; }
  .lead { font-size: 20px; }
  .hero-copy,
  .hero-media,
  .article-main,
  .section-heading {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .article-layout,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  h1 {
    width: min(100%, 330px);
    max-width: 330px;
    font-size: 38px;
  }
  h2 { font-size: 29px; }
  .lead {
    width: min(100%, 330px);
    max-width: 330px;
    font-size: 18px;
    overflow-wrap: break-word;
  }
  .trust-note {
    width: min(100%, 330px);
    max-width: 330px;
    overflow-wrap: break-word;
  }
  .section-heading p:not(.eyebrow),
  .recommendation p {
    overflow-wrap: anywhere;
  }
  .hero {
    width: 100%;
    max-width: 100%;
    padding-top: 34px;
    overflow: hidden;
  }
  .hero-copy,
  .article-meta {
    width: min(100%, 330px);
    max-width: 330px;
    justify-self: start;
  }
  .hero-media,
  .article-main,
  .section,
  .snapshot,
  .recommendation {
    width: 100%;
    max-width: 100%;
  }
  .hero-copy *,
  .article-main * {
    max-width: 100%;
  }
  .hero-copy p,
  .hero-media figcaption,
  .section p,
  .recommendation p,
  .faq-item span,
  .faq-item small {
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hero-media figcaption {
    width: min(100%, 330px);
    max-width: 330px;
    font-size: 13px;
  }
  .article-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .article-meta span {
    width: 100%;
  }
  .provider-card {
    padding: 72px 18px 20px;
  }
  .rank {
    top: 20px;
    left: 18px;
  }
}
