/* Styles for /Charts only. */
.charts-page { color: var(--color-text-primary); }
.charts-page h1, .charts-page h2 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; margin: 0 0 24px; }
.charts-page h1 { font-size: clamp(2.7rem, 4.5vw, 4rem); }
.charts-page h2 { font-size: clamp(2rem, 3.3vw, 2.8rem); }
.charts-page em { color: var(--color-text-brand); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.charts-page p { color: var(--color-text-secondary); line-height: 1.7; margin: 0 0 20px; }
.charts-page a, .charts-page a:hover { text-decoration: none; }
.charts-page a:focus-visible { outline: 3px solid var(--color-text-brand); outline-offset: 5px; }
.charts-page .btn-primary { border-radius: 3px; background: #2563eb; color: #fff; }
.charts-page .btn-primary:hover { background: #1d4ed8; }
.charts-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .9375rem; font-weight: 600; color: var(--color-text-brand); }
.charts-link:hover { opacity: .8; }
.charts-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 64px; }
.charts-row > * { min-width: 0; }
.charts-hero { padding: 36px 0 64px; }
.charts-page .cta-group { margin-top: 28px; align-items: center; gap: 12px 24px; }
.charts-media img { display: block; width: 100%; height: auto; }
.charts-hero-art { background: transparent; }
.charts-examples > .charts-row + .charts-row { margin-top: 100px; }
.charts-row--reverse > :first-child { order: 2; }
.charts-row--reverse > :last-child { order: 1; }
.charts-type-art { max-width: 520px; background: #fff; }
.charts-fundraising-art { max-width: 310px; justify-self: center; }
.charts-page [id] { scroll-margin-top: 100px; }
.charts-options { margin: 26px 0; }
.charts-options > div { border-top: 1px solid var(--color-border); padding: 18px 0; }
.charts-options dt { font-weight: 600; margin-bottom: 8px; }
.charts-options dd { margin: 0; color: var(--color-text-secondary); font-size: .9375rem; line-height: 1.65; }
.charts-page .charts-plan { font-size: .875rem; }
.charts-setup { align-items: start; }
.charts-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.charts-steps li { counter-increment: step; position: relative; padding: 0 0 28px 44px; }
.charts-steps li:last-child { padding-bottom: 0; }
.charts-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 3px; color: var(--color-text-brand); font-size: .8125rem; font-weight: 600; }
.charts-steps h3 { font-size: 1.125rem; margin: 0 0 8px; font-weight: 600; }
.charts-steps p { margin: 0; font-size: .9375rem; }
.charts-close { padding: 64px 0 0; background: #0b2842; color: #fff; }
.charts-close__main { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: center; gap: 64px; padding-bottom: 52px; }
.charts-close h2 { color: #fff; font-size: clamp(2.5rem,4.2vw,3.6rem); text-wrap: initial; }
.charts-close h2 em { color: #9ec4ff; }
.charts-close__main p { max-width: 440px; margin-bottom: 30px; color: #cfdeea; font-size: 1.0625rem; }
.charts-close .btn-primary { min-height: 54px; padding: 15px 24px; background: #fff; color: #0b2842; gap: 24px; }
.charts-close .btn-primary:hover { background: #dfebff; }
.charts-close a:focus-visible { outline-color: #9ec4ff; }
.charts-close__art img { display: block; width: 100%; height: auto; }
.charts-close__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 22px 0; border-top: 1px solid #385167; }
.charts-close__footer p { margin: 0; max-width: none; color: #b6cbdc; font-size: .875rem; }
.charts-close__footer a { color: #fff; }
.charts-close__footer p a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; }
.charts-close__footer a:hover { color: #9ec4ff; }
@media (max-width: 1000px) { .charts-row, .charts-close__main { gap: 36px; } }
@media (max-width: 900px) {
  .charts-row { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .charts-hero { padding: 28px 0 44px; }
  .charts-hero-art { max-width: 560px; justify-self: center; }
  .charts-row--reverse > :first-child, .charts-row--reverse > :last-child { order: initial; }
  .charts-type-art { justify-self: center; }
  .charts-examples > .charts-row + .charts-row { margin-top: 64px; }
}
@media (max-width: 768px) {
  .charts-page h1 { font-size: clamp(2.4rem,8.4vw,3.6rem); }
  .charts-page h2 { font-size: clamp(1.9rem,6.8vw,2.6rem); }
  .charts-page .cta-group { flex-direction: column; align-items: flex-start; gap: 10px; }
  .charts-close { padding: 44px 0 0; }
  .charts-close__main { grid-template-columns: minmax(0,1fr); gap: 32px; padding-bottom: 32px; }
  .charts-close h2 { font-size: clamp(2.3rem,8vw,3.5rem); }
  .charts-close__footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; }
}
/* Keep the chart demonstration before its detailed options on small screens. */
.charts-types { grid-template-areas: "art intro" "art details"; gap: 0 64px; }
.charts-type-intro { grid-area: intro; }
.charts-type-art { grid-area: art; }
.charts-type-details { grid-area: details; }
@media (max-width: 1000px) { .charts-types { column-gap: 36px; } }
@media (max-width: 900px) {
  .charts-types { grid-template-areas: "intro" "art" "details"; gap: 24px; }
  .charts-type-intro p { margin-bottom: 0; }
  .charts-options { margin-top: 0; }
}
@media (max-width: 600px) {
  /* Original content bounds are x126..698, y44..581 within 800x600. */
  .charts-hero-art { width: 100%; aspect-ratio: 620 / 560; overflow: hidden; position: relative; }
  .charts-hero-art img { position: absolute; width: 129.0323%; max-width: none; height: auto; left: -16.4516%; top: -4.2857%; }
}

