/* Styling for the server-rendered card page at /card/<id>.
   This is what a reader arriving from search sees before beta/app.mjs boots, so
   it has to stand on its own. Tokens come from styles.css, so it follows the
   theme without redefining a single colour. */

.seo-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.seo-card nav[aria-label="Breadcrumb"] {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.seo-card nav[aria-label="Breadcrumb"] a { color: var(--gold); }
.seo-card h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1;
  letter-spacing: 0.3px;
  margin: 0;
}
.seo-card .seo-meta {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
}
.seo-card .seo-range {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--panel);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.seo-card .seo-range strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.5px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.seo-card > p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 66ch;
}
.seo-card h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 0.2px;
  margin: 40px 0 14px;
}
/* Wide tables scroll in their own track; the page body never moves sideways. */
.seo-card table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.seo-card th,
.seo-card td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.seo-card th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--panel-2);
}
.seo-card td { color: var(--muted); font-variant-numeric: tabular-nums; }
.seo-card td:nth-child(2) { color: var(--text); font-family: var(--mono); }
.seo-card tr:last-child td { border-bottom: 0; }
.seo-card a { color: var(--gold); }

@media (max-width: 600px) {
  .seo-card { padding: 26px 18px 56px; }
  .seo-card .seo-range { padding: 17px 18px; }
  .seo-card .seo-range strong { font-size: 29px; }
}

/* Links into the hub pages (lib/hub-page.mjs renderCardHubStrip). Outside #main so crawlers
   and readers keep them after beta/app.mjs boots; app.mjs removes them on the first route away. */
.seo-related {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 56px;
  display: grid;
  gap: 36px;
}
.seo-related h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 0.2px;
  margin: 0 0 14px;
}
.seo-related h2 a { color: var(--text); text-decoration: none; }
.seo-related h2 a::after { content: " \2192"; color: var(--gold); }
.seo-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.seo-related li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.seo-related li a:hover { border-color: var(--gold); transform: translateY(-1px); }
.seo-related li b { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.seo-related li span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .seo-related { padding: 4px 18px 44px; gap: 28px; }
  .seo-related ul { grid-template-columns: 1fr; }
}
