/* Guide and comparison pages. Loaded after legal.css; adds only what articles need. */

.nav-links .nav-cta {
  color: var(--deep);
  background: var(--gold);
}

.paper h1,
.paper h2,
.paper h3 {
  text-wrap: balance;
}

.paper p,
.paper li {
  text-wrap: pretty;
}

.paper h3 {
  margin: 28px 0 6px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.paper .lede {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.6;
}

.brand { min-height: 44px; }

.paper .byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.paper .byline li {
  margin: 0;
  padding: 0;
  font-size: .86rem;
}

.callout {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--foam);
  border-left: 5px solid var(--water);
  border-radius: 0 14px 14px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.toc {
  margin: 22px 0 8px;
  padding: 16px 20px;
  background: rgba(255, 201, 77, .16);
  border-radius: 18px 18px 6px 18px;
}

.paper .toc ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  columns: 2 220px;
  column-gap: 24px;
}

.paper .toc li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.toc a,
.guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.kid-cue {
  margin: 8px 0;
  padding: 10px 14px;
  background: rgba(19, 184, 189, .1);
  border-radius: 12px 12px 4px 12px;
}

.paper .kid-cue {
  color: var(--ink);
}

.shot {
  float: right;
  width: min(34%, 210px);
  height: auto;
  margin: 4px 0 14px 24px;
  border: 5px solid var(--deep);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(1, 28, 38, .25);
}

.compare.facts { min-width: 0; }
.compare.facts th { width: 32%; white-space: normal; }

/* Wide tables scroll inside their own box so the page never scrolls sideways. */
.table-scroll {
  margin: 18px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid rgba(19, 184, 189, .22);
  border-radius: 16px;
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow-wrap: normal;
  font-size: .9rem;
  line-height: 1.45;
}

.compare caption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  text-align: left;
  caption-side: bottom;
}

.compare th,
.compare td {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(19, 184, 189, .2);
}

.compare thead th {
  color: var(--deep);
  background: var(--foam);
  font-family: 'Fredoka', ui-rounded, sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.compare tbody th {
  color: var(--ink);
  font-weight: 800;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 44px 0 8px;
  padding: 22px 24px;
  color: var(--white);
  background: linear-gradient(150deg, #0a6877, var(--deep));
  border-radius: 26px 26px 10px 26px;
}

.paper .cta p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.paper .cta strong {
  display: block;
  color: var(--white);
  font-family: 'Fredoka', ui-rounded, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.paper .cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--deep);
  background: var(--gold);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}

.paper .cta a:hover { background: #ffd874; }
.paper .cta a:active { transform: scale(.97); }
.cta a:focus-visible { outline-color: var(--white); box-shadow: none; }

.guide-links {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 4px solid rgba(19, 184, 189, .18);
}

.paper .guide-links ul {
  margin-left: 0;
  list-style: none;
}

.paper .guide-links li {
  margin: 0;
  padding: 0;
}

.sources li,
.paper .fine {
  font-size: .86rem;
}

@media (max-width: 620px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding-inline: 10px; font-size: .9rem; }
  .compare { font-size: .86rem; }
  .shot { float: none; display: block; width: min(62%, 220px); margin: 8px auto 18px; }
  .cta { padding: 20px; }
  .paper .cta a { width: 100%; justify-content: center; padding: 10px 16px; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .paper .cta a { transition: none; }
  .paper .cta a:active { transform: none; }
}

/* Keep content clear of the notch and home indicator (pages use viewport-fit=cover). */
.wrap {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

footer {
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
}

@media (max-width: 620px) {
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}
