/* HISD3 website styles. No third-party resources. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --navy: #0f1e3d;
  --ink: #1b2a47;
  --muted: #47566f;
  --blue: #17479e;
  --blue-bright: #1e88e5;
  --red: #c62828;
  --tint: #f2f6fc;
  --line: #c9d6ea;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; row-gap: 4px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.5px; line-height: 1; }
.brand img { width: 52px; height: 44px; }
.brand .his { color: #1565c0; }
.brand .d3 { color: var(--red); }
.site-nav { min-width: 0; max-width: 100%; }
.site-nav ul { list-style: none; scrollbar-width: none; display: flex; align-items: center; gap: 4px; overflow-x: auto; max-width: 100%; }
.site-nav a { display: block; padding: 10px 12px; min-height: 44px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-radius: 6px; }
.site-nav a:hover { background: var(--tint); color: var(--blue); }
.site-nav a.cta { background: var(--blue); color: var(--white); padding-inline: 18px; font-weight: 600; }
.site-nav a.cta:hover { background: var(--navy); color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--tint); }

/* Hero */
.hero { padding-block: 56px 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 1.125rem; color: var(--muted); margin-top: 20px; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts li { font-size: 0.875rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.flow { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.flow h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 18px; }
.flow ol { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.flow li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-items: start; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.flow li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.flow li:last-child::before { background: var(--red); }
.flow strong { display: block; color: var(--navy); font-weight: 600; font-size: 1rem; }

/* Sections */
.section { padding-block: 72px; }
.section.tint { background: var(--tint); }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.0625rem; }

.grid { display: grid; gap: 28px; }
.why { list-style: none; }
.why li { padding-top: 18px; border-top: 2px solid var(--blue); }
.why h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 0.9688rem; }

.systems { list-style: none; counter-reset: sys; }
.system { counter-increment: sys; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.system h3 { font-size: 1.25rem; font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.system h3 a { color: var(--navy); text-decoration: none; }
.system h3 a:hover { color: var(--blue); text-decoration: underline; }
.system p { color: var(--muted); font-size: 0.9688rem; }
.subs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.subs a { display: inline-block; font-size: 0.8438rem; font-weight: 500; padding: 5px 10px; background: var(--tint); border-radius: 6px; text-decoration: none; color: var(--blue); }
.subs a:hover { background: var(--blue); color: var(--white); }
.more { margin-top: 36px; }

.cols h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 12px; color: var(--blue); }
.ticks { list-style: none; display: grid; gap: 8px; font-size: 0.9688rem; }
.ticks li { padding-left: 18px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.callout { margin-top: 40px; padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.callout h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
.callout p { color: var(--muted); }

.comply { list-style: none; }
.comply li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comply strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.comply span { color: var(--muted); font-size: 0.9375rem; }

.about p + p { margin-top: 16px; }
.about .mission { padding: 24px 28px; background: var(--tint); border-radius: var(--radius); }
.about .mission h3 { font-size: 1rem; font-weight: 600; color: var(--red); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; color: var(--navy); font-size: 1.0625rem; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Contact */
.contact { background: var(--navy); color: #dbe5f5; }
.contact h2 { color: var(--white); }
.contact .section-head p { color: #dbe5f5; }
.contact-list { display: grid; gap: 24px; }
.contact-list h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9ec5ff; margin-bottom: 8px; }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--white); font-weight: 600; font-size: 1.125rem; }
.reveal { font: inherit; font-weight: 600; min-height: 48px; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--white); background: transparent; color: var(--white); cursor: pointer; }
.reveal:hover { background: var(--white); color: var(--navy); }
.contact noscript p { margin-top: 20px; font-size: 0.9375rem; }

/* Footer */
.site-footer { padding-block: 32px; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer a { display: inline-block; padding: 12px 8px; }

/* Features page */
.page-head { padding-block: 48px 40px; background: var(--tint); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.875rem; margin-bottom: 16px; }
.crumbs ol { list-style: none; display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.page-head h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
.toc { padding-block: 32px; border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.toc a:hover { background: var(--tint); }
.sys { padding-block: 56px; border-bottom: 1px solid var(--line); }
.sys > .wrap > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.sys > .wrap > p { color: var(--muted); margin-top: 10px; max-width: 70ch; }
.module { margin-top: 44px; }
.module h3 { font-size: 1.25rem; font-weight: 600; padding-bottom: 10px; border-bottom: 2px solid var(--blue); display: flex; gap: 12px; align-items: baseline; }
.module .tagline { font-style: italic; color: var(--muted); margin-block: 12px 16px; }
.features { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.features th, .features td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.features thead th { background: var(--blue); color: var(--white); font-weight: 600; border-color: var(--blue); }
.features tbody th { font-weight: 600; color: var(--navy); width: 32%; }
.features tbody tr:nth-child(even) { background: var(--tint); }
.back { display: inline-block; margin-top: 18px; padding-block: 12px; font-size: 0.875rem; }
.cta-band { padding-block: 56px; text-align: center; }
.cta-band h2 { font-size: 1.625rem; font-weight: 700; margin-bottom: 20px; }

.prose { max-width: 72ch; padding-block: 48px 72px; }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin: 32px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin-top: 10px; }

@media (min-width: 640px) {
  .why, .comply, .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .why, .cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols.four, .comply { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about .grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
}
@media (max-width: 560px) {
  .features thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .features, .features tbody, .features tr, .features th, .features td { display: block; width: 100%; }
  .features tbody th { width: 100%; border-bottom: 0; padding-bottom: 2px; }
  .features td { border-top: 0; padding-top: 2px; }
  .features tr + tr th { border-top: 0; }
  .section { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-nav, .actions, .toc, .back { display: none; } }
.section-head .eyebrow, .about .eyebrow { color: var(--red); font-size: 0.8125rem; margin-top: 0; }
.contact .section-head .eyebrow { color: #9ec5ff; }

/* System icons (Uicons by Flaticon, inlined) */
.ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.sys-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--tint); color: var(--blue); font-size: 24px; }
.sys > .wrap > h2 { display: flex; align-items: center; gap: 14px; }
.sys > .wrap > h2 .ico { width: 0.9em; height: 0.9em; color: var(--blue); }
.site-footer .credit { flex-basis: 100%; font-size: 0.8125rem; }
.site-footer .credit a { padding: 0; }
