/* ==========================================================================
   Content pages: About, Contact, Blogs, articles, legal
   ========================================================================== */

/* ---------- Prose ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--fg-2); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--fg);
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em;
  margin-top: 2.2em; scroll-margin-top: 104px; text-wrap: balance;
}
.prose h3 { font-size: 1.15rem; font-weight: 800; color: var(--fg); margin-top: 1.7em; line-height: 1.3; scroll-margin-top: 104px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--crimson); font-weight: 700; }
.prose strong { color: var(--fg); font-weight: 700; }
.prose a { color: var(--crimson); font-weight: 600; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.prose blockquote {
  padding: 1.1rem 1.35rem; border-radius: 22px; border-left: 4px solid var(--crimson);
  background: var(--glass); color: var(--fg); font-weight: 600; font-size: 1.125rem; line-height: 1.55;
}
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--glass-line); background: var(--glass); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--glass-line); }
.prose th { color: var(--fg); font-weight: 800; background: rgba(171, 29, 113, .06); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Two-column / duo helpers ---------- */
.split, .duo, .contact-grid, .legal { grid-template-columns: minmax(0, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-xl); }
.panel__ic { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--crimson); color: #fff; box-shadow: 0 14px 26px -14px rgba(171, 29, 113, .9); }
.panel__ic .i { width: 26px; height: 26px; }
.panel p { color: var(--fg-2); }
.panel .checks { margin-top: .25rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4.5rem; align-items: start; }
  .duo { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.about-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.about-story p { color: var(--fg-2); font-size: 1.0625rem; line-height: 1.75; max-width: 60ch; }
.values { display: grid; grid-template-columns: minmax(0, 1fr); }
.value { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.4rem 0; border-top: 1px solid var(--glass-line); }
.value:first-child { border-top: 0; padding-top: 0; }
.value .perk__ic { margin-top: .1rem; }
.value p { color: var(--fg-2); max-width: 52ch; margin-top: .25rem; }
.mock-note { color: var(--fg-3); font-size: .9rem; }

/* ---------- Blogs ---------- */
.blog-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-bottom: 2rem; }
.blog-tools .searchbox { max-width: 520px; }
.blog-tools .searchbox .i { color: var(--fg-3); }
.blog-tools .input { padding-left: 2.9rem; border-radius: 999px; }
.blog-featured { margin-bottom: 1.5rem; }
.blog-empty { display: none; padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--r-xl); }
.blog-empty.is-on { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; justify-items: center; }
.blog-empty p { color: var(--fg-2); max-width: 40ch; }
@media (min-width: 900px) {
  .post-card--featured .post-card__link { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto; align-items: stretch; }
  .post-card--featured .cover { aspect-ratio: auto; min-height: 340px; }
  .post-card--featured .post-card__body { padding: 2.25rem; align-content: center; gap: .9rem; }
  .post-card--featured .post-card__title { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
  .post-card--featured .post-card__excerpt { font-size: 1.0625rem; -webkit-line-clamp: 4; }
}

/* ---------- Article ---------- */
.post-hero .wrap { gap: 1.1rem; }
.post-hero .display { font-size: clamp(2.1rem, 1.1rem + 3.9vw, 3.9rem); line-height: 1.05; }
.post-stage { padding-top: clamp(2.5rem, 5vw, 4rem); }
.post-stage .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.post-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding: 1.2rem 1.4rem; border-radius: 24px;
}
.post-actions p { color: var(--fg-2); }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #D6568F, #AB1D71); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--r-xl); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions p { color: var(--fg-3); font-size: .875rem; max-width: 36ch; }
.page-delete-account .legal .prose h2::before { content: none; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--crimson); }
.counter { justify-self: end; font-size: .8125rem; color: var(--fg-3); font-weight: 600; }
.methods { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; }
.method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.25rem; border-radius: 24px; text-decoration: none; color: var(--fg); }
a.method { transition: transform .25s var(--ease); }
a.method:hover { transform: translateY(-3px); }
.method .perk__ic { flex: none; }
.method b { display: block; line-height: 1.3; }
.method span { color: var(--fg-2); overflow-wrap: anywhere; }
.method p { color: var(--fg-3); font-size: .9rem; margin-top: .15rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: start; } }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.legal-meta { color: var(--fg-2); font-weight: 600; }
.toc { padding: .35rem 1.1rem; border-radius: 24px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 800; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .i { color: var(--crimson); transition: transform .3s var(--ease); }
.toc[open] summary .i { transform: rotate(180deg); }
.toc ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: .75rem; counter-reset: toc; }
.toc a { display: flex; gap: .65rem; padding: .45rem 0; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--fg-2); }
.toc a::before { counter-increment: toc; content: counter(toc) "."; flex: none; min-width: 1.5rem; color: var(--crimson); font-weight: 800; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--crimson); }
.legal .prose { max-width: 72ch; }
.legal .prose h2 { counter-increment: sec; }
.legal .prose h2::before { content: counter(sec) ". "; color: var(--crimson); font-variant-numeric: tabular-nums; }
.legal .prose { counter-reset: sec; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: 104px; }
  .toc summary { pointer-events: none; }
  .toc summary .i { display: none; }
}
/* Admin-edited legal pages (terms / privacy / refund): no table of contents, so one centred reading column.
   The stored text starts with its own <h1>, which would repeat the hero title, so that one is hidden. */
.page-hero--center .wrap { justify-items: center; text-align: center; }
.legal.legal--single { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.legal.legal--single .prose { width: 100%; max-width: 72ch; margin-inline: auto; }
.legal--single .prose > h1:first-child { display: none; }
.callout { padding: 1rem 1.25rem; border-radius: 20px; background: rgba(171, 29, 113, .07); border: 1px solid rgba(171, 29, 113, .22); color: var(--fg); font-size: .975rem; line-height: 1.6; }
