/* Small voxel details and reading layouts for the supporting pages. */
.content-page .page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 34px;
  margin: 4px 0 38px;
}
.page-intro .intro-copy { min-width: 0; }
.content-page .page-intro .eyebrow { margin-bottom: 15px; }
.content-page .page-intro h1 { font-size: clamp(38px, 5vw, 50px); line-height: 1.06; text-wrap: balance; }
.content-page .page-intro .lead { margin: 18px 0 0; font-size: 16px; line-height: 1.65; }
.page-intro .spot-art { width: 190px; height: 190px; object-fit: contain; }
.content-page .compact-intro { grid-template-columns: minmax(0, 1fr) 150px; margin-bottom: 24px; }
.compact-intro .spot-art { width: 150px; height: 150px; }
.compact-intro .updated { margin: 17px 0 0; font: 400 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.content-page .topbar { margin-bottom: 33px; }
.content-page .section-rule { height: 1px; margin: 34px 0; background: var(--line); }
.content-page .section-rule::after, .content-page .section-rule .tick { display: none; }
.content-page h2[id], .content-page .support-section { scroll-margin-top: 28px; }
.content-page .topic-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 0 0 38px;
}
.topic-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--ink);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.topic-nav a:hover { background: var(--accent-soft); }
.topic-nav a:active { transform: translateY(2px); box-shadow: none; }

/* Reading cards share a quiet edge and a shallow, solid base. */
.content-page {
  --panel-edge: #b6b0a4;
  --panel-depth: #e7e0d3;
  --panel-radius: 12px;
}
.content-page :is(.post, .tip, .quick-link, .support-section > details, .notice, .contents-panel, .highlight-panel, .donation-panel, .cta-card) {
  border: 1px solid var(--panel-edge);
  border-radius: var(--panel-radius);
  background: var(--card);
  box-shadow: 0 3px 0 var(--panel-depth), 0 4px 0 var(--panel-edge);
}

/* Blog: a generous card with one clear reading action. */
.blog-page .posts { gap: 20px; }
.blog-page .post, .blog-page .post:last-child {
  padding: 28px;
  border: 1px solid var(--ink);
}
.blog-page .post, .support-page .quick-link {
  --panel-edge: var(--ink);
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.blog-page .post:hover, .support-page .quick-link:hover {
  transform: translateY(-1px);
  background: var(--card);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--panel-depth), 0 5px 0 var(--ink);
}
.blog-page .post:active, .support-page .quick-link:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.blog-page .post .meta { font-size: 12px; letter-spacing: .8px; margin-bottom: 18px; }
.blog-page .post h2 { font-size: 27px; line-height: 1.22; letter-spacing: -.7px; margin-bottom: 15px; text-wrap: balance; }
.blog-page .post p { font-size: 16px; line-height: 1.65; }
.read-story { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.read-story > span { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--ink); border-radius: 8px; font-size: 19px; }
.blog-page .coming { margin-top: 26px; padding: 0; background: none; font-size: 14px; }

/* Tips: keep the advice grouped and readable at a glance. */
.tips-page .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.tips-page .tip { padding: 24px; }
.tips-page .tip-grid > .tip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tips-page .tip h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.35; text-wrap: balance; }
.tips-page .tip p { line-height: 1.65; }
.tips-page h2 { margin-bottom: 18px; }

/* Support: quick routes and quiet, well-separated answers. */
.support-page .quick-links { gap: 18px 16px; margin-bottom: 44px; }
.support-page .quick-link { min-height: 74px; padding: 16px 18px; font-size: 15px; }
.support-page .quick-link span:last-child { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--ink); border-radius: 7px; }
.support-page .support-section { margin-bottom: 42px; }
.support-page .support-section h2 { font-size: 25px; font-weight: 600; margin-bottom: 12px; }
.support-section > details { margin-top: 16px; }
.support-section > details > summary { padding: 18px 20px; gap: 16px; font-size: 16px; line-height: 1.4; }
.support-section > details > summary::after { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid var(--panel-edge); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1; }
.support-section > details[open] { --panel-edge: var(--ink); }
.support-section > details[open] > summary::after { background: var(--accent); color: var(--accent-ink); }
.support-section > details > .answer { padding: 0 20px 20px; max-width: none; font-size: 15px; line-height: 1.65; }
.support-page .notice { padding: 24px; margin-bottom: 30px; }
.support-page .contact-card { border: 1px solid var(--ink); border-radius: var(--panel-radius); padding: 28px; box-shadow: 0 3px 0 var(--panel-depth), 0 4px 0 var(--panel-edge); }
.support-page .contact-card h2 { color: var(--card); }
.support-page .contact-card > p { color: #d5d0c5; }
.support-page .contact-links a { min-height: 44px; padding: 10px 14px; border-color: #777972; border-radius: 10px; }
.support-page .contact-checklist { background: #303536; color: #ebe6db; line-height: 1.65; }

/* Privacy: a restrained illustration and a useful document index. */
.privacy-page .contents-panel { margin: 0 0 30px; padding: 0 22px; }
.contents-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
.contents-panel > summary::-webkit-details-marker { display: none; }
.contents-panel[open] > summary > span { transform: rotate(180deg); }
.contents-panel ol { columns: 2; column-gap: 30px; margin: 0; padding: 3px 0 17px 21px; }
.contents-panel li { break-inside: avoid; padding-left: 3px; margin-bottom: 9px; font-size: 14px; }
.contents-panel a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.privacy-page .page > p, .privacy-page .page > ul { line-height: 1.75; max-width: 700px; }
.privacy-page .page > h2 { margin: 35px 0 14px; font-size: 24px; line-height: 1.3; }
.privacy-page .highlight-panel { padding: 22px 24px; }
.privacy-page .highlight-panel li { line-height: 1.65; }

/* Donate: retain the app's existing tip flow and give its steps some space. */
.donate-page .donation-panel { padding: 30px; }
.donate-page .donation-panel h2 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.donation-panel ol { list-style: none; counter-reset: tip-step; padding: 0; margin: 24px 0 28px; }
.donation-panel li { position: relative; min-height: 34px; padding: 4px 0 0 48px; margin: 0 0 15px; line-height: 1.6; }
.donation-panel li::before { counter-increment: tip-step; content: counter(tip-step, decimal-leading-zero); display: grid; place-items: center; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 8px; background: var(--accent-soft); font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.donate-page .donation-panel .note { font-size: 13px; margin-top: 22px; }
.donate-page .btn:hover { opacity: 1; }

/* Essay: keep the title and reading column free of large decoration. */
.essay-page article { max-width: 700px; margin-inline: auto; }
.essay-kicker { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.essay-kicker .spot-art { width: 82px; height: 82px; object-fit: contain; }
.essay-page .essay-kicker .eyebrow { margin: 0; }
.essay-page .article-intro h1 { font-size: clamp(32px, 4.6vw, 47px); line-height: 1.1; letter-spacing: -1.8px; text-wrap: balance; }
.essay-page .article-intro .lead { font-size: 18px; line-height: 1.65; margin-top: 21px; }
.essay-page .article-intro .byline { padding: 19px 0; margin: 22px 0 30px; border-block: 1px solid var(--line); font-size: 12px; line-height: 1.9; }
.essay-page article > p, .essay-page article > ul, .essay-page article > ol { font-size: 16px; line-height: 1.8; }
.essay-page article > h2 { font-size: 26px; line-height: 1.25; margin: 37px 0 16px; }
.essay-page blockquote { padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }
.essay-page .cta-card { padding: 28px; }
.essay-page .related { line-height: 1.8; }
@media (max-width: 580px) {
  .content-page .page-intro { grid-template-columns: minmax(0, 1fr) 110px; gap: 18px; margin-bottom: 28px; }
  .page-intro .spot-art { width: 110px; height: 110px; }
  .content-page .page-intro h1 { font-size: 35px; letter-spacing: -1.5px; }
  .content-page .page-intro .lead { font-size: 15px; }
  .content-page .page-intro .eyebrow { font-size: 11px; letter-spacing: .5px; }
  .content-page .compact-intro { grid-template-columns: minmax(0, 1fr) 95px; }
  .compact-intro .spot-art { width: 95px; height: 95px; }
  .tips-page .tip-grid { grid-template-columns: 1fr; }
  .tips-page .tip { padding: 20px; }
  .support-page .quick-links { grid-template-columns: 1fr; gap: 12px; }
  .support-page .quick-link { min-height: 62px; }
  .blog-page .post, .blog-page .post:last-child { padding: 22px; }
  .blog-page .post h2 { font-size: 24px; }
  .donate-page .donation-panel, .support-page .contact-card { padding: 23px; }
  .contents-panel ol { columns: 1; }
}
@media (max-width: 420px) {
  .content-page .page-intro { position: relative; display: block; }
  .page-intro .spot-art { position: absolute; right: 0; top: -7px; width: 85px; height: 85px; }
  .content-page .page-intro .eyebrow { min-height: 70px; padding-right: 85px; margin-bottom: 11px; }
  .content-page .page-intro h1 { max-width: 310px; font-size: 39px; }
  .content-page .page-intro .lead { font-size: 16px; }
  .content-page .compact-intro h1 { font-size: 36px; }
  .topic-nav a { padding-inline: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
