/* Content pages: guides, comparisons, roundups */

.content-page {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
  background: var(--cream);
}

.content-wrap {
  max-width: 68ch;
  margin-inline: auto;
}

.content-wrap--wide {
  max-width: min(960px, 100%);
}

/* One shared column so the header, article, FAQ, and CTA line up. */
.content-page > .container {
  max-width: 960px;
}

.content-page .container.content-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.content-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.content-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.content-lede {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 68ch;
}

.content-meta {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.content-breadcrumbs {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.content-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--border-strong);
  font-weight: 400;
}

.content-breadcrumbs a {
  color: var(--burgundy);
  text-decoration: none;
}

.content-breadcrumbs a:hover {
  text-decoration: underline;
}

.content-breadcrumbs [aria-current="page"] {
  color: var(--ink-muted);
}

.content-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Keep running text at a readable width; tables and card grids use the full column. */
.content-prose > :where(p, ul, ol, h2, h3) {
  max-width: 68ch;
}

.content-prose > * + * {
  margin-top: 1rem;
}

.content-prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.content-prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.content-prose ul,
.content-prose ol {
  margin: 0;
  padding-left: 1.35rem;
}

.content-prose li + li {
  margin-top: 0.35rem;
}

.content-prose a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-prose a:hover {
  color: var(--burgundy-hover);
}

/* Keep floated screenshots inside the article. */
.content-prose {
  display: flow-root;
}

.content-shot {
  margin: 1.25rem auto;
  max-width: 220px;
  text-align: center;
}

/* Two or more screenshots side by side, in the text flow. */
.content-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  align-items: start;
  max-width: 480px;
  margin: 1.75rem 0;
}

.content-shots .content-shot {
  margin: 0;
  max-width: none;
}

.content-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.content-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

@media (min-width: 720px) {
  .content-prose > .content-shot {
    float: right;
    clear: right;
    width: 200px;
    margin: 0.25rem 0 1rem 2rem;
  }
}

.content-disclosure {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--burgundy);
  background: var(--cream-alt);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.content-card-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  max-width: 960px;
}

@media (min-width: 640px) {
  .content-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Cards are links inside the article; don't give them the underlined link style. */
.content-prose a.content-card {
  color: inherit;
  text-decoration: none;
}

.content-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
}

.content-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--burgundy-deep);
}

.content-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.content-table-wrap {
  margin: 1.5rem 0 2rem;
  max-width: 960px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: #fff;
}

.content-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.content-table caption {
  caption-side: top;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.content-table th,
.content-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.content-table th {
  background: var(--cream-alt);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.content-table tr:last-child th,
.content-table tr:last-child td {
  border-bottom: none;
}

.content-table a {
  color: var(--burgundy);
}

.content-choose-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
  max-width: 960px;
}

@media (min-width: 640px) {
  .content-choose-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content-choose-box {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  background: var(--cream-alt);
}

.content-choose-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--burgundy-deep);
}

.content-choose-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.content-choose-box li + li {
  margin-top: 0.35rem;
}

.content-faq {
  margin: 2.5rem 0 0;
  max-width: 68ch;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.content-faq h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.content-faq details {
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 0.5rem;
}

.content-faq summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.content-faq summary::-webkit-details-marker {
  display: none;
}

.content-faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--burgundy);
}

.content-faq details[open] summary::after {
  content: "−";
}

.content-faq details > div {
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.content-faq details > div p {
  margin: 0;
}

.content-cta {
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.75rem;
  max-width: 68ch;
  background: var(--burgundy-deep);
  color: #fff;
}

.content-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.content-cta p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.92;
}

.content-cta a {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #fff;
  color: var(--burgundy-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.content-cta a:hover {
  background: var(--cream);
}

.content-trademark,
.content-checked {
  margin: 2rem 0 0;
  max-width: 68ch;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.content-hub-table {
  max-width: 960px;
}

.nav-links a[aria-current="page"] {
  color: var(--burgundy-deep);
  font-weight: 600;
}
