:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --soft: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.seoHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

.seoBrand {
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.seoHeader nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.seoHeader nav a,
.seoActions a,
.seoCardLinks a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.seoShell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 52px) clamp(14px, 3vw, 34px) 72px;
}

.seoHero {
  display: grid;
  gap: 18px;
  padding-bottom: 30px;
}

.seoHeroSplit {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: end;
}

.seoHero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}

.seoEyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(36px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.seoHero p:not(.seoEyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.seoStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seoStat {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.seoStat strong,
.seoStat span {
  display: block;
}

.seoStat strong {
  font-size: 26px;
  line-height: 1;
}

.seoStat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.seoActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seoGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.seoCard {
  display: grid;
  gap: 10px;
  align-content: start;
  border-radius: 8px;
}

.seoCard:hover img,
.seoBrandRow:hover img,
.seoEvidenceCard:hover img {
  filter: brightness(0.96);
}

.seoCard img,
.seoImagePlaceholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}

.seoCard h2,
.seoBrandRow h3,
.seoEvidenceCard h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.seoCard p,
.seoBrandRow p,
.seoEvidenceCard p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.seoCard small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.seoChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.seoChips span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
}

.seoSection {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.seoSection h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.seoLinkGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.seoLinkGrid a {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.seoLinkGrid small {
  color: var(--muted);
  white-space: nowrap;
}

.seoTableWrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.seoBrandRows,
.seoEvidenceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seoBrandRow,
.seoEvidenceCard {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.seoBrandRow img,
.seoEvidenceCard img,
.seoBrandRow .seoImagePlaceholder,
.seoEvidenceCard .seoImagePlaceholder {
  width: 92px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}

.seoCardLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.seoCardLinks a {
  min-height: 30px;
  padding: 0 10px;
}

.seoEvidenceCard .seoMeta {
  font-size: 12px;
}

@media (max-width: 1080px) {
  .seoGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seoBrandRows,
  .seoEvidenceGrid,
  .seoLinkGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .seoHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .seoHeader nav {
    justify-content: flex-start;
  }

  .seoHeroSplit {
    grid-template-columns: 1fr;
  }

  .seoGrid,
  .seoBrandRows,
  .seoEvidenceGrid,
  .seoLinkGrid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(34px, 12vw, 58px);
  }
}

.seoList {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.seoList li {
  line-height: 1.55;
}

.seoQuote {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--line);
  background: var(--soft);
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
  white-space: pre-line;
}
