:root {
  color-scheme: light;
  --navy: #011f46;
  --blue: #033e8c;
  --pink: #bb124e;
  --cyan: #74e1ff;
  --ink: #172b45;
  --muted: #4b5e74;
  --line: #d6e1ee;
  --surface: #f1f6fb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: white;
  font: 1rem/1.55 "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #0879be; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0 0 .35em; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 7vw, 5.1rem); }
h2 { color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.35rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; background: white; padding: .7rem; transform: translateY(-150%); }
.skip:focus { transform: none; z-index: 1; }
.site-header, .site-footer { background: linear-gradient(90deg, var(--blue), var(--navy)); color: white; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 74px; }
.header-inner img { width: 178px; }
.header-inner nav { display: flex; flex-wrap: wrap; }
.header-inner nav a { color: white; text-decoration: none; padding: .65rem .8rem; font-weight: 700; border-bottom: 3px solid transparent; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { border-color: #ff6099; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }
.hero {
  padding-block: clamp(3.5rem, 10vw, 7.5rem);
  color: white;
  background: linear-gradient(90deg, rgba(1,31,70,.99), rgba(1,31,70,.76) 58%, rgba(1,31,70,.30)), url("vista-aerea.webp") center 50% / cover;
  border-bottom: 4px solid #02abec;
}
.hero h1 span { color: var(--cyan); }
.hero p:not(.kicker) { max-width: 42ch; }
.hero .lead { font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 700; margin-bottom: .5rem; }
.kicker { color: var(--pink); margin-bottom: .65rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.hero .kicker { color: var(--cyan); }
.actions, .jump { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem 1rem;
  border: 1px solid var(--pink);
  border-radius: 4px;
  background: var(--pink);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #97103f; }
.button.secondary { background: var(--navy); border-color: white; }
.button.secondary:hover { background: var(--blue); }
.section { padding-block: clamp(1.8rem, 5vw, 3.7rem); }
.stats, .links, .split { display: grid; gap: 1.25rem; }
.stats { grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0 .7rem; }
.stats div { padding: .9rem 1rem; background: var(--surface); border-top: 3px solid #02abec; }
.stats dt { color: var(--blue); font-size: clamp(1.65rem, 4vw, 2.65rem); font-weight: 800; line-height: 1.15; }
.stats dd { margin: .4rem 0 0; }
.note, figcaption { color: var(--muted); font-size: .9rem; }
.links, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.links { margin-top: 1.8rem; }
.links a { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.links a:hover { background: var(--surface); }
.links strong, .links span { display: block; }
.links span { margin-top: .25rem; }
.intro { background: var(--surface); padding-block: clamp(2rem, 6vw, 3.8rem); border-bottom: 1px solid var(--line); }
.intro p:not(.kicker) { max-width: 60ch; }
.jump a { padding: .35rem .65rem; background: white; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; }
.split { gap: clamp(1.7rem, 5vw, 4rem); }
.band { background: var(--surface); }
section[id] { scroll-margin-top: 1rem; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .85rem .1rem;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; margin-left: auto; color: var(--pink); }
details[open] summary::after { content: "−" / ""; }
summary span { color: var(--pink); font-size: .85rem; }
details p { margin-inline: .1rem; }
figure { margin: 1rem 0; }
figure img { width: 100%; border-radius: 4px; }
figcaption { margin-top: .45rem; }
.form-panel { background: var(--surface); padding: clamp(1rem, 3vw, 1.6rem); border-top: 3px solid #02abec; }
form:not([hidden]) { display: grid; gap: .5rem; margin-block: 1.1rem; }
label { font-weight: 700; }
select, textarea { width: 100%; margin-bottom: .3rem; padding: .65rem; background: white; color: var(--ink); border: 1px solid #8c9daf; border-radius: 4px; font: inherit; }
textarea { resize: vertical; }
form .button { justify-self: start; }
.form-panel .note { overflow-wrap: anywhere; margin-bottom: 0; }
.site-footer { padding-block: 1.4rem; border-top: 4px solid #02abec; }
.site-footer p { margin: .15rem 0 0; }
.site-footer a { color: white; }

@media (max-width: 680px) {
  .split, .links { grid-template-columns: 1fr; }
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .header-inner { padding-top: .5rem; }
  .header-inner nav a { padding: .55rem .7rem; }
  .hero { background-image: linear-gradient(rgba(1,31,70,.79), rgba(1,31,70,.91)), url("vista-aerea.webp"); }
  .stats { gap: .5rem; }
  .stats div { padding-inline: .45rem; }
  .stats dd { font-size: .85rem; overflow-wrap: anywhere; }
}


.chapter > .jump { margin-top: 0; }
.topic + .topic { margin-top: 2.8rem; }
.topic { scroll-margin-top: 1rem; }
.topic > p, .chapter > p { max-width: 76ch; }
.chapter h3, .chapter h4 { color: var(--navy); margin: 1rem 0 .4rem; }
.chapter li + li { margin-top: .25rem; }
.expanded-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.media-grid, .urban-programs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.media-item { min-width: 0; margin: 0; }
.media-grid, .topic > .media-item { margin-block: 1rem; }
.topic > .media-item { max-width: 720px; }
.media-open { display: block; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: zoom-in; }
.media-open img { display: block; width: 100%; height: auto; border-radius: 4px; }
.media-grid .media-open img { aspect-ratio: 16 / 10; object-fit: contain; }
.urban-programs article, .program { padding: 1rem; background: var(--surface); border-top: 2px solid #02abec; }
.urban-programs h3, .program h3 { margin-top: 0; }
.program { margin-top: 1.2rem; }
.reference { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; }
.reference h4:first-child { margin-top: 0; }
.scores { display: flex; flex-wrap: wrap; gap: 1rem; margin: .75rem 0 1rem; }
.scores div { border-left: 2px solid #02abec; padding-left: .6rem; }
.scores dt { font-weight: 700; }
.scores dd { margin: 0; }
.table-scroll { overflow-x: auto; }
.chapter table { width: 100%; border-collapse: collapse; }
.chapter th, .chapter td { text-align: left; vertical-align: top; padding: .65rem; border-bottom: 1px solid var(--line); }
.chapter thead { background: var(--surface); color: var(--navy); }
.image-dialog { width: min(96vw, 1450px); max-width: none; max-height: 94vh; color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.image-dialog::backdrop { background: rgb(1 31 70 / 80%); }
.image-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; padding: .6rem .85rem; background: var(--surface); }
.image-toolbar h2 { margin: 0; font-size: 1.2rem; }
.image-toolbar form { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.image-toolbar button { border: 1px solid var(--blue); border-radius: 4px; background: white; color: var(--blue); font: inherit; padding: .3rem .5rem; cursor: pointer; }
.image-scroll { max-height: 77vh; overflow: auto; padding: .5rem; }
.image-scroll img { width: auto; max-width: 100%; max-height: 74vh; margin-inline: auto; }
.image-scroll.original-size img { max-width: none; max-height: none; }
@media (max-width: 680px) { .reference { grid-template-columns: 1fr; } }
