/* =========================================================================
   Merlot — "Fly With Your Dog" sub-pages — minimal additions only.
   Loaded AFTER style.css. Styles only elements the approved guide template
   doesn't have (in-text links, comparison table, sources list, header
   back-link layout). Same palette + type tokens from style.css :root.
   ========================================================================= */

/* In-text links inside cards (template has no in-text links; base reset
   removes underline, so make them visible). */
.subpage .chap-card a,
.subpage .intro-copy a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.subpage .chap-card a:hover { color: var(--coral); }
.subpage .crumb a { overflow-wrap: anywhere; }
.subpage .intro-copy strong { font-weight: 800; }
.subpage .chap-checks li a { font-weight: 700; }

/* Header: logo left, back-link right (uses template .nav-back). */
.subpage .nav-back { text-align: right; }

/* Quick-answer card spacing */
.subpage .chapters > .chap-card + .chap-card { margin-top: 18px; }

/* ---------------- Comparison table ---------------- */
.cmp-wrap { margin: 16px 0 6px; }
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--navy);
}
.cmp-table caption {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.6;
  padding-bottom: 8px;
}
/* Mobile: each row becomes a small card (no horizontal scroll). */
.cmp-table thead { position: absolute; left: -9999px; }
.cmp-table tr {
  display: block;
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}
.cmp-table th[scope="row"] {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  text-align: left;
  margin-bottom: 6px;
}
.cmp-table td { display: block; padding: 3px 0; }
.cmp-table td::before {
  content: attr(data-label);
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
}

@media (min-width: 861px) {
  .cmp-table { font-size: 13.5px; }
  .cmp-table thead { position: static; }
  .cmp-table tr { display: table-row; background: none; padding: 0; margin: 0; }
  .cmp-table th, .cmp-table td {
    display: table-cell;
    vertical-align: top;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(29, 58, 95, 0.1);
    text-align: left;
  }
  .cmp-table thead th {
    background: var(--sky);
    color: var(--navy);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .cmp-table thead th:first-child { border-radius: 12px 0 0 0; }
  .cmp-table thead th:last-child { border-radius: 0 12px 0 0; }
  .cmp-table tbody tr:nth-child(even) { background: var(--bg); }
  .cmp-table th[scope="row"] { display: table-cell; font-size: 16px; margin: 0; white-space: nowrap; }
  .cmp-table td:last-child { white-space: nowrap; }
  .cmp-table td::before { content: none; }
}

/* ---------------- Sources list ---------------- */
.src-list {
  list-style: decimal;
  padding-left: 22px;
  margin: 12px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.88;
}
.src-list li::marker { color: var(--coral); font-weight: 800; }
.src-note {
  font-size: 12.5px;
  background: rgba(255, 212, 77, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
}
@media (min-width: 861px) {
  .src-list { font-size: 13.5px; }
}

/* 2026-10-20: mobile hero art whose subject sits low in the frame (e.g. LOUNGE) */
.intro-figure--subject-low img { object-position: center 80%; }
@media (min-width: 861px) {
  .intro-figure--subject-low img { object-position: 88% 60%; }
}
