/* Server-rendered SEO surfaces. The interactive product UI replaces the
   fallback blocks after hydration; directory pages keep these styles. */

.seo-detail-fallback,
.seo-directory-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.seo-detail-fallback {
  padding: 58px 0 90px;
  color: #111;
}

.seo-detail-fallback section {
  margin-top: 30px;
  padding: 26px;
  border: 2px solid #111;
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 5px 5px 0 #111;
}

.seo-detail-fallback h1,
.seo-directory-hero h1,
.seo-not-found h1 {
  margin: 8px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.04em;
}

.seo-detail-fallback h2 { margin: 0 0 12px; font-size: 25px; }
.seo-detail-fallback p { max-width: 850px; line-height: 1.6; }
.seo-item-publisher { color: #5d5d5d; }
.seo-item-description { font-size: 18px; }
.seo-eyebrow { margin: 0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.seo-enhancement-note { color: #666; font-size: 13px; }

.seo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 14px;
}

.seo-breadcrumbs a { color: inherit; font-weight: 700; }

.seo-risk {
  display: inline-flex;
  width: max-content;
  padding: 6px 11px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #e7edf1;
  color: #111;
  font-size: 12px;
  font-weight: 800;
}

.seo-risk-critical,
.seo-risk-high { background: #fee2e2; color: #9f1616; }
.seo-risk-medium { background: #fff2b8; color: #795800; }
.seo-risk-low,
.seo-risk-safe,
.seo-risk-trusted { background: #d9f7e8; color: #16643f; }

.seo-finding-list,
.seo-tool-list {
  display: grid;
  gap: 9px;
  padding-left: 22px;
  line-height: 1.5;
}

.seo-tool-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.seo-hub-fallback {
  padding: 70px 0;
  border-top: 1px solid #111;
  background: #fffdf5;
}

.seo-hub-fallback h2 { font-size: clamp(28px, 4vw, 46px); margin: 0 0 12px; }
.seo-hub-fallback p { max-width: 760px; line-height: 1.6; }
.seo-hub-fallback ul { columns: 3 220px; padding-left: 20px; margin: 25px 0 30px; }
.seo-hub-fallback li { margin: 0 0 8px; break-inside: avoid; }
.seo-hub-fallback a:not(.mkt-browse-all) { color: inherit; }

.seo-primary-directory-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid rgba(0, 0, 0, .16);
  background: #ffff78;
  font-size: 13px;
  font-weight: 800;
}

.seo-primary-directory-links a { color: #111; }

.seo-directory-page { margin: 0; background: #fcf2d4; color: #111; }
.seo-simple-header,
.seo-simple-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px max(24px, calc((100% - 1120px) / 2));
  background: #050505;
  color: #fff;
}

.seo-simple-header > a { color: #fff; font-size: 23px; font-weight: 900; text-decoration: none; }
.seo-simple-header nav { display: flex; flex-wrap: wrap; gap: 22px; }
.seo-simple-header nav a,
.seo-simple-footer a { color: inherit; font-weight: 700; }
.seo-simple-footer { font-size: 13px; }

.seo-directory-shell { padding: 48px 0 80px; }
.seo-directory-hero { max-width: 850px; margin-bottom: 42px; }
.seo-directory-hero > p:not(.seo-eyebrow) { font-size: 17px; line-height: 1.55; }

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

.seo-directory-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 245px;
  padding: 22px;
  border: 2px solid #111;
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 5px 5px 0 #111;
}

.seo-directory-card h2 { margin: 6px 0 9px; font-size: 20px; line-height: 1.15; }
.seo-directory-card h2 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.seo-directory-card > p { margin: 0 0 12px; line-height: 1.45; }
.seo-directory-card .seo-risk { margin-top: auto; }
.seo-directory-kind { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.seo-directory-publisher { color: #666; font-size: 13px; }

.seo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 48px;
  font-weight: 800;
}
.seo-pagination a { color: inherit; }

.seo-not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 30px;
  background: #fcf2d4;
  color: #111;
}
.seo-not-found main { max-width: 760px; }
.seo-not-found nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.seo-not-found nav a { color: inherit; font-weight: 800; }

/* Existing cards become real links without changing their visual treatment. */
a.hr-card { color: inherit; text-decoration: none; }
a.orbit-planet { text-decoration: none; }
a.search-dropdown-item { color: inherit; text-decoration: none; }

@media (max-width: 860px) {
  .seo-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-simple-header { align-items: flex-start; }
  .seo-simple-header nav { justify-content: flex-end; }
}

@media (max-width: 600px) {
  .seo-directory-grid { grid-template-columns: 1fr; }
  .seo-simple-header,
  .seo-simple-footer { align-items: flex-start; flex-direction: column; }
  .seo-simple-header nav { display: grid; gap: 10px; }
  .seo-pagination { gap: 14px; font-size: 13px; }
}
