/* Styles for the generated SEO landing pages. Everything else on these pages
   comes from the existing design system in styles.css — this file only adds
   the two or three pieces those pages need that the app never had. */

/* ---- header dropdowns -------------------------------------------------
   A flat bar could not reach a thousand pages, so the top-level entries open
   a panel of section hubs. */

.ss-nav {
  align-items: center;
}

.ss-nav-item {
  position: relative;
}

.ss-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--lp-body, var(--text));
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.ss-nav-trigger:hover,
.ss-nav-trigger[aria-expanded="true"] {
  background: var(--lp-tint, var(--panel-2));
  color: var(--lp-ink, var(--text-strong));
}

.ss-chev {
  transition: transform 0.15s ease;
}

.ss-nav-trigger[aria-expanded="true"] .ss-chev {
  transform: rotate(180deg);
}

.ss-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  width: 310px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--v5-line, var(--border));
  border-radius: 14px;
  box-shadow: var(--shadow-lg, 0 18px 44px rgba(9, 30, 66, 0.18));
}

.ss-nav-panel[hidden] {
  display: none;
}

.ss-nav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.ss-nav-panel a:hover {
  background: var(--lp-tint, var(--panel-2));
}

.ss-nav-panel strong {
  display: block;
  color: var(--v5-ink, var(--text-strong));
  font-size: 14.5px;
  font-weight: 600;
}

.ss-nav-panel span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* mobile: the same tree, stacked */
.ss-mobile-group {
  display: block;
  padding: 14px 8px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ss-mobile-menu nav a.ss-mobile-sub {
  padding-left: 20px;
  font-size: 15px;
  font-weight: 500;
}

/* ---- section hubs ------------------------------------------------------ */

.ss-hub h2 {
  margin-bottom: 16px;
}

.ss-hub-grid {
  gap: 10px;
}

.ss-hub-card.lp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--v5-line, var(--border));
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background-color 0.15s;
}

.ss-hub-card strong {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--v5-ink, var(--text-strong));
  transition: color 0.15s;
}

.ss-hub-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--muted-2, var(--muted));
  background: var(--panel-2, transparent);
  transition: color 0.15s, background-color 0.15s, transform 0.15s;
}

.ss-hub-card:hover {
  border-color: var(--v5-blue, var(--accent));
  box-shadow: var(--shadow-md, 0 6px 18px rgba(9, 30, 66, 0.1));
  background: var(--v5-wash, var(--accent-soft));
  transform: translateY(-2px);
}

.ss-hub-card:hover strong {
  color: var(--v5-blue, var(--accent));
}

.ss-hub-card:hover .ss-hub-arrow {
  color: #fff;
  background: var(--v5-blue, var(--accent));
  transform: translateX(3px);
}

/* ---- breadcrumbs ------------------------------------------------------ */

.ss-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.ss-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.ss-crumbs a:hover {
  color: var(--v5-blue, var(--accent));
  text-decoration: underline;
}

.ss-crumbs [aria-current="page"] {
  color: var(--v5-ink, var(--text-strong));
  font-weight: 550;
}

/* ---- hero variants -----------------------------------------------------
   The hero is the clearest signal of what kind of page you have landed on,
   so each layout gets its own treatment rather than one shared banner. */

.ss-hero--centered .lp-cta-row,
.ss-hero--verdict .lp-cta-row {
  justify-content: center;
}

/* split: copy on the left, a product frame or preview on the right */
.ss-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  text-align: left;
}

.ss-hero--split .ss-crumbs,
.ss-hero--editorial .ss-crumbs {
  justify-content: flex-start;
}

.ss-hero--split h1,
.ss-hero--editorial h1 {
  text-align: left;
}

.ss-hero--split p,
.ss-hero--editorial p {
  margin-left: 0;
  text-align: left;
}

.ss-hero--split .lp-cta-row {
  justify-content: flex-start;
}

.ss-hero-aside .lp-frame {
  width: 100%;
}

@media (max-width: 820px) {
  .ss-hero--split {
    grid-template-columns: 1fr;
  }
}

/* editorial: narrow measure, no buttons competing with the first paragraph */
.ss-hero--editorial {
  text-align: left;
}

.ss-hero--editorial h1 {
  max-width: 20ch;
}

.ss-hero--editorial p {
  max-width: 62ch;
}

/* ---- table of contents (guide layout) --------------------------------- */

.ss-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ss-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.9;
}

.ss-toc a {
  color: var(--v5-body, var(--text));
  text-decoration: none;
}

.ss-toc a:hover {
  color: var(--v5-blue, var(--accent));
  text-decoration: underline;
}

@media (max-width: 700px) {
  .ss-toc ol {
    columns: 1;
  }
}

/* ---- verdict panel (comparison layout) -------------------------------- */

.ss-verdict {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ss-verdict h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--v5-ink, var(--text-strong));
}

.ss-verdict p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--v5-body, var(--text));
}

/* ---- long-form body --------------------------------------------------- */

.ss-prose h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--v5-ink, var(--text-strong));
  text-wrap: balance;
}

.ss-prose h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 650;
  color: var(--v5-ink, var(--text-strong));
}

.ss-prose p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--v5-body, var(--text));
  text-wrap: pretty;
}

.ss-prose > p:last-child {
  margin-bottom: 0;
}

.ss-prose ul:not(.lp-checklist) {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--v5-body, var(--text));
}

.ss-prose ul:not(.lp-checklist) li {
  margin-bottom: 8px;
}

.ss-prose strong {
  color: var(--v5-ink, var(--text-strong));
  font-weight: 650;
}

/* ---- list items that contain inline markup -----------------------------
   The design system lays these items out with flex, which turns any inline
   <strong>, <em> or <a> in the copy into a separate flex item with a gap
   around it. Long-form pages need real text flow, so hang the marker in the
   margin instead. Scoped to [data-layout] — generated pages only — so the
   hand-written pages that also use .pub-body keep their existing rendering. */

[data-layout] .lp-checklist > li,
[data-layout] .lp5-numbers > li {
  display: block;
  position: relative;
}

[data-layout] .lp-checklist > li {
  padding-left: 28px;
}

[data-layout] .lp-checklist > li > .lp-check {
  position: absolute;
  left: 0;
  top: 3px;
}

[data-layout] .lp5-numbers > li {
  padding-left: 46px;
}

[data-layout] .lp5-numbers > li > span:first-child {
  position: absolute;
  left: 16px;
  top: 15px;
}

/* ---- related links ---------------------------------------------------- */

/* .lp-card carries no border in this theme — fine for a card sitting on a
   tinted section, but a related-links grid needs to read as unmistakably
   clickable even at rest, so give it one explicitly. Scoped to this class
   only; every other card grid on the site is untouched. */
.ss-related-card.lp-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--v5-line, var(--border));
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(9, 30, 66, 0.06));
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}

.ss-related-card.lp-card:hover {
  border-color: var(--v5-blue, var(--accent));
  box-shadow: var(--shadow-md, 0 6px 18px rgba(9, 30, 66, 0.1));
  transform: translateY(-2px);
}

.ss-related-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v5-blue, var(--accent));
}

.ss-related-card strong {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--v5-ink, var(--text-strong));
}

/* ---- comparison / spec tables ----------------------------------------- */

.ss-tablewrap {
  overflow-x: auto;
  margin: 0 0 18px;
}

.ss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  color: var(--v5-body, var(--text));
}

.ss-table th,
.ss-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--v5-line, var(--border));
  vertical-align: top;
}

.ss-table th {
  font-weight: 650;
  color: var(--v5-ink, var(--text-strong));
  white-space: nowrap;
}

.ss-table tbody tr:last-child td {
  border-bottom: 0;
}

.ss-table th:not(:first-child),
.ss-table td:not(:first-child) {
  text-align: center;
}

/* A claim about another product that nobody has verified yet. Visible on the
   page on purpose — it should be uncomfortable to publish in this state. */
.ss-table td[data-unverified] {
  color: var(--muted);
  font-style: italic;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 6px,
    rgba(128, 128, 128, 0.07) 6px, rgba(128, 128, 128, 0.07) 12px);
}

/* ---- key takeaways (guide layout) ------------------------------------- */

.ss-takeaways {
  border-left: 3px solid var(--v5-blue, var(--accent));
}

.ss-takeaways strong.ss-takeaways-title {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v5-blue, var(--accent));
}
