/* Overview page design: the look of the parents page and the 404 page, for every overview page on the site.
   Used by scripts/build-services-page.mjs. Colors and type match the parents page and scc-theme.css. */

.ov {
  --ov-indigo: #333399;
  --ov-ink: #252575;
  --ov-green: #557735;
  --ov-green-dark: #466029;
  --ov-muted: #4E5163;
  --ov-lilac: #F4F4FB;
  --ov-line: #DCDDF0;
  --ov-outline: #C4C5EC;
  --ov-sand: #F3EEE6;
  color: #333;
  font-family: Scolionav, Arial, sans-serif;
}
.ov a { color: var(--ov-indigo); }
.ov a.ov-btn--primary { color: #fff; }
.ov a.ov-btn--primary:hover { color: #fff; }
.ov h1, .ov h2, .ov h3 { font-family: Scoliomain, Raleway, Arial, sans-serif; }
.ov-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.ov-crumbs { margin: 0 0 28px; font-size: 14px; color: var(--ov-muted); }
.ov-crumbs a { color: var(--ov-muted); }

/* Hero: warm band, two-tone headline, two buttons. */
.ov-hero { background: var(--ov-sand); padding: 56px 24px 64px; }
.ov-hero-inner { max-width: 1100px; margin: 0 auto; }
.ov-eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ov-green); }
.ov-hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; color: var(--ov-indigo); max-width: 22ch; }
.ov-hero h1 span { color: var(--ov-green); }
.ov-lead { margin: 18px 0 0; font-size: 19px; line-height: 1.6; color: var(--ov-muted); max-width: 36em; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ov-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 700 16px/1 Scoliomain, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.ov a.ov-btn--primary, .ov-btn--primary { background: var(--ov-green); color: #fff; }
.ov a.ov-btn--primary:hover, .ov-btn--primary:hover { background: var(--ov-green-dark); color: #fff; }
.ov-btn--ghost { background: #fff; color: var(--ov-indigo); border-color: var(--ov-outline); }
.ov-btn--ghost:hover { background: var(--ov-lilac); }
.ov-btn:focus-visible, .ov-link:focus-visible, .ov-crumbs a:focus-visible { outline: 3px solid var(--ov-green); outline-offset: 3px; }

/* Services: topic cards in the 404 page's lilac panel style. */
.ov-services { padding-top: 64px; padding-bottom: 24px; }
.ov h2 { margin: 0 0 24px; font-size: 34px; line-height: 1.15; font-weight: 700; color: var(--ov-indigo); }
.ov-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ov-card { display: flex; align-items: flex-start; gap: 22px; padding: 28px; border-radius: 28px; background: var(--ov-lilac); }
.ov-card img { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; }
.ov-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--ov-ink); }
.ov-card p { margin: 0 0 14px; line-height: 1.6; color: var(--ov-muted); }
.ov-link { display: inline-block; padding: 0; border: 0; border-bottom: 2px solid var(--ov-line); background: none; font: 700 16px/1.2 Scoliomain, Arial, sans-serif; color: var(--ov-indigo); text-decoration: none; cursor: pointer; }
.ov-link:hover { border-bottom-color: var(--ov-indigo); }
.ov button.ov-link:hover, .ov button.ov-link:focus-visible { background: none; color: var(--ov-indigo); box-shadow: none; transform: none; }
.ov .ov-band a.ov-link:hover { color: var(--ov-indigo); background: none; }

/* Explainers: one row each, separated by rules. */
.ov-explain { padding-top: 40px; padding-bottom: 8px; }
.ov-row { display: grid; gap: 12px; padding: 28px 0; border-top: 1px solid var(--ov-line); }
.ov-row:last-child { border-bottom: 1px solid var(--ov-line); }
.ov-row h3 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--ov-ink); }
.ov-row p { margin: 0; line-height: 1.7; color: var(--ov-muted); max-width: 62em; }

/* Parent support: a solid indigo band with the next step. */
.ov-band { margin-top: 48px; padding: 48px 24px; background: var(--ov-lilac); color: var(--ov-ink); border-top: 1px solid var(--ov-line); border-bottom: 1px solid var(--ov-line); }
.ov-band-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.ov-band h2 { margin: 0 0 8px; font-size: 30px; color: var(--ov-indigo); }
.ov-band p { margin: 0; color: var(--ov-muted); }
.ov-band-links { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ov-band a.ov-link { color: var(--ov-indigo); border-bottom-color: var(--ov-outline); }

@media (max-width: 860px) {
  .ov-cards { grid-template-columns: minmax(0, 1fr); }
  .ov-band-inner { grid-template-columns: minmax(0, 1fr); }
  .ov-band-links { align-items: flex-start; }
}
@media (max-width: 600px) {
  .ov-hero { padding: 40px 18px 48px; }
  .ov-wrap { padding-left: 18px; padding-right: 18px; }
  .ov-card { flex-direction: column; padding: 22px; }
  .ov-btn { width: 100%; justify-content: center; }
  .ov-actions .ov-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-btn, .ov-link { transition: none; }
}

/* Motion. Content is visible without JavaScript; overview.js adds ov-js and reveals items as they scroll in. */
@keyframes ov-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ov-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(85, 119, 53, 0); } 50% { box-shadow: 0 0 0 8px rgba(85, 119, 53, 0.14); } }
.ov-hero-inner > * { animation: ov-rise 0.7s ease both; }
.ov-hero-inner > :nth-child(1) { animation-delay: 0.05s; }
.ov-hero-inner > :nth-child(2) { animation-delay: 0.15s; }
.ov-hero-inner > :nth-child(3) { animation-delay: 0.25s; }
.ov-hero-inner > :nth-child(4) { animation-delay: 0.35s; }
.ov-hero-inner > :nth-child(5) { animation-delay: 0.45s; }
.ov-hero-inner > :nth-child(6) { animation-delay: 0.55s; }
.ov-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.ov-js [data-reveal].is-in { opacity: 1; transform: none; }
.ov-card { transition: box-shadow 0.25s ease, transform 0.25s ease; }
.ov-js .ov-card[data-reveal].is-in:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(51, 51, 153, 0.12); }
.ov-card img { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ov-card:hover img { transform: scale(1.06) rotate(-2deg); }
.ov-btn { transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.ov-btn:hover { transform: translateY(-2px); }
.ov-btn--primary:hover { animation: ov-glow 1.6s ease-in-out infinite; }
.ov-link { background-image: linear-gradient(var(--ov-indigo), var(--ov-indigo)); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%; transition: background-size 0.3s ease, border-bottom-color 0.3s ease; }
.ov-link:hover { background-size: 100% 2px; }
.ov button.ov-link:hover { background-image: linear-gradient(var(--ov-indigo), var(--ov-indigo)); background-size: 100% 2px; }
@media (prefers-reduced-motion: reduce) {
  .ov-hero-inner > *, .ov-js [data-reveal], .ov-card, .ov-card img, .ov-btn, .ov-link { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}

.ov-link--detail { font-size: 15px; }

.ov-intro { margin: 0 0 16px; font-size: 18px; line-height: 1.7; color: var(--ov-muted); max-width: 52em; }
.ov-resources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ov-resource { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 20px; border-radius: 16px; background: var(--ov-lilac); color: var(--ov-indigo); font: 700 16px/1.3 Scoliomain, Arial, sans-serif; text-decoration: none; transition: background-color 0.2s ease, transform 0.2s ease; }
.ov-resource::after { content: "→"; margin-left: 12px; color: var(--ov-green); }
.ov-resource:hover { background: #E7E7F4; transform: translateX(3px); }
.ov-resource--featured { background: var(--ov-green); color: #fff; }
.ov-resource--featured::after { color: #fff; }
.ov-resource--featured:hover { background: var(--ov-green-dark); }
.ov-resource--plain { background: #fff; border: 1.5px dashed var(--ov-outline); color: var(--ov-muted); cursor: default; }
.ov-resource--plain::after { content: none; }
.ov-resource--plain:hover { transform: none; background: #fff; }
.ov-resource:focus-visible { outline: 3px solid var(--ov-green); outline-offset: 3px; }
@media (max-width: 760px) { .ov-resources { grid-template-columns: minmax(0, 1fr); } }
