/* /seo-vs-ai-visibility - page-only components. Everything else comes from /site.css. */

.sv-jump { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Figures */
.sv-fig { margin: 40px 0 44px; padding-top: 20px; border-top: 2px solid var(--ink); }
.sv-fig-title { font-size: var(--t-xs); font-weight: 700; color: var(--mute); margin-bottom: 18px; }
.sv-fig figcaption { font-size: var(--t-xs); color: var(--mute); margin-top: 16px; line-height: 1.55; max-width: var(--measure); }
.sv-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--t-xs); font-weight: 600; margin-bottom: 16px; }
.sv-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--red); }
.sv-legend .k-ink::before { background: var(--ink); }
.sv-legend .k-off::before { background: var(--paper-deep); outline: 2px solid var(--ink); outline-offset: -2px; }

/* 100-square grid */
.sv-hundred { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: center; }
.sv-squares { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.sv-squares i { display: block; aspect-ratio: 1; background: var(--paper-deep); }
.sv-squares i.on { background: var(--red); }
.sv-hundred-num { font-family: var(--fs-display); font-size: var(--t-3xl); line-height: 0.9; letter-spacing: -0.04em; }
.sv-hundred-num small { font-size: 0.4em; }
.sv-hundred p { margin: 14px 0 0 !important; font-weight: 600; line-height: 1.45 !important; max-width: 22em; }

/* Two lists side by side */
.sv-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.sv-duo-col { padding-top: 14px; border-top: 6px solid var(--ink); }
.sv-duo-col + .sv-duo-col { border-top-color: var(--red); }
.sv-duo-h { font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.sv-duo ol { list-style: none; margin: 0 !important; counter-reset: sv; }
.sv-duo li { counter-increment: sv; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0; margin: 0 !important; border-bottom: 1px solid rgba(17, 17, 17, 0.18); font-size: 16px; line-height: 1.35 !important; }
.sv-duo li::before { content: counter(sv); font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.sv-duo li span { color: var(--mute); font-size: var(--t-xs); display: block; }
.sv-verdict { margin-top: 20px; background: var(--ink); color: var(--paper); padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-weight: 700; }
.sv-verdict b { font-family: var(--fs-display); font-weight: 400; font-size: var(--t-2xl); line-height: 1; }

/* Scoreboard */
.sv-score { width: 100%; border-collapse: collapse; }
.sv-score th { text-align: left; font-size: var(--t-xs); font-weight: 700; color: var(--mute); padding: 0 16px 10px 0; border-bottom: 6px solid var(--ink); vertical-align: bottom; }
.sv-score th[scope="row"] { color: var(--ink); font-size: var(--t-l); padding: 18px 16px 18px 0; border-bottom: 2px solid var(--ink); vertical-align: baseline; }
.sv-score td { padding: 18px 16px 18px 0; border-bottom: 2px solid var(--ink); vertical-align: baseline; font-size: var(--t-xs); color: var(--mute); line-height: 1.35; }
.sv-score td b { display: block; font-family: var(--fs-display); font-weight: 400; font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }

/* Paired bars (by question type) */
.sv-pair { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(17, 17, 17, 0.18); }
.sv-pair:last-of-type { border-bottom: 0; }
.sv-pair-label { font-size: 15px; font-weight: 700; line-height: 1.25; }
.sv-pair-bars { display: grid; gap: 4px; }
.sv-bar { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.sv-bar-track { background: var(--paper-deep); height: 18px; position: relative; }
.sv-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.sv-bar.k-ink .sv-bar-fill { background: var(--ink); }
.sv-bar-val { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Columns (by Google position) */
.sv-cols { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; border-bottom: 2px solid var(--ink); }
.sv-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.sv-col b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.sv-col i { display: block; background: var(--red); min-height: 2px; }
.sv-cols-x { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 8px; font-size: var(--t-xs); font-weight: 600; color: var(--mute); text-align: center; }

/* Dashboard */
.sv-dash { background: var(--paper-deep); padding: 104px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sv-dash .ui-h2 { max-width: 22ch; margin-bottom: 18px; }
.sv-dash-lead { max-width: var(--measure); margin-bottom: 44px; }
.sv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; margin-bottom: 72px; }
.sv-tile { padding-top: 14px; border-top: 6px solid var(--ink); }
.sv-tile:nth-child(4n+1) { border-top-color: var(--red); }
.sv-tile .v { font-family: var(--fs-display); font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.sv-tile .v small { font-size: 0.42em; letter-spacing: 0; color: var(--mute); font-family: var(--fs-sans); font-weight: 700; }
.sv-tile .d { margin-top: 10px; font-size: 15px; line-height: 1.45; max-width: 26em; }
.sv-table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 18px; }
.sv-table-head h3 { font-family: var(--fs-display); font-weight: 400; text-transform: uppercase; font-size: var(--t-xl); line-height: 1; letter-spacing: -0.02em; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chips button { font: 700 var(--t-xs)/1 var(--fs-sans); color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 9px 12px; cursor: pointer; border-radius: 0; }
.sv-chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sv-chips button:hover { background: var(--ink); color: var(--paper); }
.sv-table-wrap { overflow-x: auto; background: var(--paper); border: 2px solid var(--ink); }
.sv-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.sv-table caption { caption-side: top; text-align: left; padding: 16px 18px; font-size: var(--t-xs); color: var(--mute); border-bottom: 2px solid var(--ink); }
.sv-table th, .sv-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(17, 17, 17, 0.18); }
.sv-table thead th { font-size: var(--t-xs); font-weight: 700; border-bottom: 6px solid var(--ink); vertical-align: bottom; }
.sv-table thead th.n, .sv-table td.t { white-space: nowrap; }
.sv-table thead th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sv-table thead th[aria-sort="ascending"] button::after { content: " \2191"; }
.sv-table thead th[aria-sort="descending"] button::after { content: " \2193"; }
.sv-table .sm { display: none; }
.sv-dash-foot .sm { display: none; }
.sv-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-table td.n { font-weight: 700; }
.sv-table td.zero { color: var(--red-ink); }
.sv-table td.q { font-weight: 700; min-width: 190px; }
.sv-table td.s { font-size: var(--t-xs); color: var(--mute); min-width: 150px; overflow-wrap: anywhere; }
.sv-table tbody tr:last-child td { border-bottom: 0; }
.sv-dash-foot { margin-top: 18px; font-size: var(--t-xs); color: var(--mute); max-width: 90ch; line-height: 1.55; }
.sv-dash-foot a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.sv-faq { padding: 104px 0; }
.sv-faq .ui-h2 { max-width: 20ch; }

@media (max-width: 1000px) { .sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-tile:nth-child(4n+1) { border-top-color: var(--ink); } .sv-tile:first-child { border-top-color: var(--red); } }
@media (max-width: 640px) {
  .sv-hundred { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sv-squares { max-width: 260px; }
  .sv-duo { grid-template-columns: minmax(0, 1fr); }
  .sv-pair { grid-template-columns: minmax(0, 1fr); }
  .sv-cols { gap: 4px; height: 180px; } .sv-cols-x { gap: 4px; }
  .sv-col b { font-size: 12px; }
  .sv-dash, .sv-faq { padding: 72px 0; }
  .sv-tiles { gap: 28px 20px; margin-bottom: 56px; }
  .sv-score th[scope="row"] { font-size: var(--t-m); }
  .sv-verdict { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) { .sv-tiles { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  .sv-table { min-width: 0; font-size: 14px; }
  .sv-table .t, .sv-table .s { display: none; }
  .sv-table .lg, .sv-dash-foot .lg { display: none; }
  .sv-table .sm, .sv-dash-foot .sm { display: inline; }
  .sv-table th, .sv-table td { padding: 12px 8px; }
  .sv-table th:nth-child(2), .sv-table td.q { padding-left: 14px; min-width: 0; }
  .sv-table th:nth-child(5), .sv-table td:nth-child(5) { padding-right: 14px; }
  .sv-table caption { padding: 14px; }
}
