/* Content pages rendered from content/ (legal pages, Discover) */

/* Images carry width/height attributes for layout stability; CSS sets the
   rendered size, so let the other dimension follow the aspect ratio */
img { height: auto; }
.nav-logo img, .footer-brand img { width: auto; }

/* ===== NAV ===== */
.nav { height: 84px; display: flex; align-items: center; background: var(--white); border-bottom: 1px solid var(--grey); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo img { height: 32px; }
.nav-buttons { display: flex; gap: 12px; align-items: center; }

.page { padding: 64px 0 96px; }
.footer { border-top: 1px solid var(--grey); }

/* ===== PROSE ===== */
.prose { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.25; }
.prose-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--grey); }
.prose-header h1 { font-size: 44px; color: var(--blue); }
.prose-updated { margin-top: 12px; font-size: 14px; color: #6b6b6b; }
.prose h2 { font-size: 28px; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; margin: 36px 0 12px; }
.prose h4 { font-size: 17px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--charcoal); }
.prose strong { font-weight: 700; }
.prose img { margin: 32px auto; border-radius: 12px; height: auto; }
.prose .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.prose .steps img { margin: 0 auto 12px; border-radius: 0; max-width: 200px; }
.prose .steps figcaption { font-size: 15px; line-height: 1.6; text-align: center; }
.prose .steps strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--sky); padding-left: 20px; margin: 24px 0; color: #555; }

/* ===== CATEGORY TAG ===== */
.category {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--grey); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}

/* ===== POST ===== */
.post-header { max-width: 860px; text-align: center; margin-bottom: 40px; }
.post-back { display: inline-block; font-size: 14px; color: var(--blue); margin-bottom: 32px; }
.post-back:hover { text-decoration: underline; }
.post-header .category { display: table; margin: 0 auto 16px; }
.post-header h1 { font-size: 44px; line-height: 1.2; color: var(--charcoal); }
.post-summary { margin-top: 16px; font-size: 19px; color: #555; }
.post-hero { width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto 48px; border-radius: 16px; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.card[hidden] { display: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card-body .category { align-self: flex-start; }
.card h2, .card h3 { font-size: 19px; line-height: 1.3; }
.card p { font-size: 15px; color: #555; }
.card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }

/* ===== LISTING ===== */
.listing-header { max-width: 760px; margin-bottom: 32px; }
.listing-header h1 { font-size: 44px; color: var(--blue); }
.listing-header p { margin-top: 12px; font-size: 18px; color: #555; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  padding: 8px 18px; border-radius: 100px; cursor: pointer;
  background: var(--grey); color: var(--charcoal); font-size: 14px; font-weight: 500;
}
.filters button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.filters button:focus-visible, .card:focus-visible, .post-back:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ===== RELATED ===== */
.related { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--grey); }
.related h2 { font-size: 28px; margin-bottom: 28px; }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .page { padding: 40px 0 64px; }
  .prose-header h1, .post-header h1, .listing-header h1 { font-size: 34px; }
  .prose h2 { font-size: 24px; }
  .post-summary { font-size: 17px; }
  .post-hero { margin-bottom: 32px; border-radius: 12px; }
  .card-grid { grid-template-columns: 1fr; gap: 24px; }
  .prose .steps { grid-template-columns: 1fr; gap: 32px; }
}
