/*
  Coastal SD Pros — service & editorial article pages, v4 marketplace system.
  2026-08-10 wave-2 rebuild (owner-approved: DECISIONS.md 2026-08-10 CSDP wave 2).

  Loads AFTER /assets/guide-premium.css and only adds the components the four
  Oceanside service pages and the editorial articles need: dated record rows,
  intent modules, evidence flags, the answer band, related-links strip and the
  mobile jump-to-records pill. Tokens, header, hero band, trust strip, buttons
  and footer all come from guide-premium.css — one system, no forks.

  Same rules as the parent sheet: white page, Inter weight hierarchy (serif is
  the wordmark only), coral = the one filled primary per region, teal links,
  amber stars, hairline cards, visible focus, reduced-motion respected,
  comfortable tap targets.
*/

/* ============ page shell ============ */

.sv-page main {
  display: block;
}

.sv-shell {
  width: min(var(--pd-shell), 100% - 40px);
  margin-inline: auto;
}

/* margin-block only: .sv-shell owns the inline margins (margin-inline: auto
   centers the 1220px shell), and a `margin` shorthand here would zero them. */
.sv-section {
  margin-block: 34px;
}

@media (min-width: 860px) {
  .sv-section {
    margin-block: 46px;
  }
}

/* ============ breadcrumb strip ============ */

.sv-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0 0;
  color: var(--pd-muted);
  font-size: 13px;
}

.sv-crumbs a {
  color: var(--pd-teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.sv-crumbs a:hover {
  color: var(--pd-coral-dark);
  text-decoration: underline;
}

.sv-crumbs [aria-current="page"] {
  color: var(--pd-faint);
}

/* ============ hero extras ============ */

.sv-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}

.sv-hero-actions .pd-btn {
  min-height: 44px;
}

.sv-hero-actions .sv-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 10px;
  color: var(--pd-white);
  font-size: 14px;
  font-weight: 640;
  text-decoration: none;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}

.sv-hero-actions .sv-btn-ghost:hover {
  color: var(--pd-white);
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .08);
}

.sv-band-plain .pd-band__in {
  padding: 46px 0 54px;
}

/* ============ dated record rows ============ */

.sv-panel {
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  background: var(--pd-white);
  box-shadow: var(--pd-sh-card);
  overflow: hidden;
}

.sv-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--pd-line);
}

.sv-panel__head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -.014em;
}

.sv-panel__stamp {
  color: var(--pd-faint);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sv-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid var(--pd-line);
  transition: background-color 140ms ease-out;
}

.sv-row:first-child {
  border-top: 0;
}

.sv-row:hover,
.sv-row:focus-within {
  background: var(--pd-soft);
}

@media (min-width: 760px) {
  .sv-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.sv-row__name {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.3;
  color: var(--pd-ink-strong);
  text-wrap: pretty;
}

.sv-row__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 5px 0 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.sv-stars {
  display: inline-flex;
  gap: 1px;
}

.sv-stars svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: var(--pd-amber);
}

.sv-row__value {
  color: var(--pd-ink);
  font-weight: 700;
}

.sv-row__count {
  color: var(--pd-muted);
  font-weight: 560;
}

.sv-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 6px 0 0;
  color: var(--pd-muted);
  font-size: 13px;
}

.sv-row__meta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vertical-align: -2px;
}

.sv-row__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.sv-row__acts .pd-btn {
  min-height: 44px;
}

.sv-row__acts .pd-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13.5px;
}

.sv-row__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--pd-teal-dark);
  font-weight: 620;
}

.sv-row__links svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* the listicle ordinal — numbers the published, disclosed order only */

.sv-row--ranked {
  grid-template-columns: 34px minmax(0, 1fr);
}

@media (min-width: 760px) {
  .sv-row--ranked {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

.sv-row__idx {
  color: var(--pd-faint);
  font-size: 15px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
}

/* ============ evidence flags ============ */

.sv-flag {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--pd-amber);
  border-radius: 12px;
  background: var(--pd-white);
}

.sv-flag__label {
  color: var(--pd-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sv-flag p {
  margin: 0;
  color: var(--pd-ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.sv-note {
  margin: 16px 0 0;
  color: var(--pd-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sv-note a {
  color: var(--pd-teal-dark);
}

/* ============ answer band (Direct answer / use / firewall) ============ */

.sv-answer {
  border-block: 1px solid var(--pd-line);
  background: var(--pd-soft);
}

.sv-answer__in {
  display: grid;
  gap: 26px;
  padding: 40px 0 44px;
}

@media (min-width: 980px) {
  .sv-answer__in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
  }
}

.sv-answer__col h2,
.sv-answer__col h3 {
  margin: 8px 0 8px;
  font-size: 16.5px;
  font-weight: 720;
  letter-spacing: -.012em;
}

.sv-answer__col p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 14px;
  line-height: 1.62;
}

.sv-kicker {
  margin: 0;
  color: var(--pd-coral-dark);
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ============ intent modules ============ */

.sv-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

@media (min-width: 860px) {
  .sv-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sv-step {
  padding: 18px;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: var(--pd-white);
  box-shadow: var(--pd-sh-card);
}

.sv-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--pd-line-strong);
  border-radius: 50%;
  color: var(--pd-muted);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sv-step h3 {
  margin: 10px 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.sv-step p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.sv-step p a {
  color: var(--pd-teal-dark);
}

.sv-sechead {
  max-width: 720px;
}

.sv-sechead h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.sv-sechead p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============ related-links strip ============ */

.sv-related {
  padding: 18px 20px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: var(--pd-white);
  box-shadow: var(--pd-sh-card);
}

.sv-related__label {
  display: block;
  margin: 0 0 10px;
  color: var(--pd-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.sv-related__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pd-line-strong);
  border-radius: 999px;
  color: var(--pd-ink);
  font-size: 13.5px;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.sv-related__links a:hover {
  color: var(--pd-ink);
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

/* ============ article prose (listicle + alternatives) ============ */

.sv-article {
  max-width: 780px;
}

.sv-article > p {
  margin: 0 0 16px;
  color: var(--pd-ink);
  font-size: 15.5px;
  line-height: 1.68;
}

.sv-article > p.sv-lede {
  font-size: 17px;
  line-height: 1.62;
}

.sv-article h2 {
  margin: 34px 0 10px;
  font-size: 21px;
  font-weight: 740;
  letter-spacing: -.016em;
  text-wrap: balance;
}

.sv-article ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--pd-ink);
  font-size: 15px;
  line-height: 1.66;
}

.sv-article li {
  margin: 0 0 8px;
}

.sv-article li::marker {
  color: var(--pd-coral);
}

/* comparison table — scrolls inside its own container, never the page */

.sv-table-wrap {
  margin: 18px 0 6px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: var(--pd-white);
  box-shadow: var(--pd-sh-card);
  overflow-x: auto;
}

.sv-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.sv-table caption {
  padding: 14px 16px 4px;
  color: var(--pd-muted);
  font-size: 12.5px;
  text-align: left;
}

.sv-table th,
.sv-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--pd-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.sv-table thead th {
  border-top: 0;
  color: var(--pd-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sv-table tbody th {
  color: var(--pd-ink-strong);
  font-weight: 680;
  white-space: nowrap;
}

.sv-table td {
  color: var(--pd-ink);
}

/* ============ mobile jump pill ============ */

.sv-jump {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--pd-white);
  background: var(--pd-navy);
  box-shadow: var(--pd-sh-float);
  font-size: 14px;
  font-weight: 660;
  white-space: nowrap;
  text-decoration: none;
}

.sv-jump svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-jump:hover {
  color: var(--pd-white);
}

@media (min-width: 860px) {
  .sv-jump {
    display: none;
  }
}

/* ============ disclosure strip ============ */

.sv-disclosure {
  border-top: 1px solid var(--pd-line);
  background: var(--pd-soft);
}

.sv-disclosure p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  color: var(--pd-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.sv-disclosure svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
