/* NYC Advance Warning System: matches the current site's look (blue #1470C1, orange #FFA332, heavy uppercase
   headings, black footer) with WCAG 2.1 AA fixes. Fonts: Montserrat + Mulish (free stand-ins for Proxima Nova). */
:root {
  --blue: #1470c1;
  --blue-btn: #1365b9;
  --blue-hover: #0a5796;
  --blue-dark: #0b3f7a;
  --hero: rgba(15, 85, 179, .9);
  --orange: #ffa332;
  --orange-hover: #fe8c00;
  --ink: #1f1f1f;
  --muted: #595959;          /* darker than the old #666 for body-size contrast */
  --line: #dadada;
  --field-line: #767676;     /* 4.5:1 on white so field edges pass 3:1 */
  --band: #f3f3f3;
  --tint: #f2f8fc;
  --error: #b00020;
  --success: #1b6e3a;
  --focus: #ffbf47;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-btn); text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #000; }
h1, h2, h3, h4, h5, .h3, .h4, .h5 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
.h3 { font-size: 1.5rem; } .h4 { font-size: 1.25rem; } .h5 { font-size: 1.0625rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.skip-link { position: absolute; left: 8px; top: -60px; background: #000; color: #fff; padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; color: #fff; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 6px; }
.brand img { display: block; width: 104px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { display: block; padding: 20px 0 17px; font-family: var(--font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: #000; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-btn); border-bottom-color: var(--blue); }
.menu-toggle { display: none; align-items: center; gap: 8px; font: 700 .875rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-dark); background: #fff; border: 2px solid var(--blue-dark); border-radius: 3px; padding: 8px 12px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--blue-dark); position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -6px; } .menu-icon::after { position: absolute; top: 6px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { background: linear-gradient(var(--hero), var(--hero)), url("/assets/skyline.jpg") center bottom / cover no-repeat, #0f55b3; color: #fff; text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; padding: 64px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
.hero-lead { font-size: clamp(1.25rem, 3vw, 2rem); margin: 0 0 4px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2rem, 7vw, 4.25rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.6); overflow-wrap: anywhere; }
.hero-sub { font-size: clamp(1.0625rem, 2.2vw, 1.375rem); max-width: 760px; margin: 0 auto 28px; }

/* Buttons */
.btn { display: inline-block; font: 700 .9375rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: #fff; background: var(--blue-btn); border: 2px solid var(--blue-btn); border-radius: 3px; padding: 12px 22px; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-cta { background: var(--orange); border-color: #fff; color: #000; font-size: 1.0625rem; padding: 14px 32px; }
.btn-cta:hover { background: var(--orange-hover); color: #000; border-color: #fff; }
form .btn-cta { border-color: var(--orange); }
.btn-outline { background: #fff; color: #000; border-color: #000; }
.btn-outline:hover { background: #000; color: #fff; border-color: #000; }
.btn-small { padding: 8px 14px; font-size: .8125rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Sections */
.section { padding-block: 40px 8px; }
.section-title { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 800; text-transform: uppercase; padding-bottom: 10px; border-bottom: 4px solid #000; margin-bottom: 24px; }
.band { background: var(--band); margin-top: 40px; padding-bottom: 40px; }
.meta { color: var(--muted); font-size: .875rem; margin: 0 0 8px; }
.lead { font-size: 1.1875rem; max-width: 62ch; }

.card-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .card-grid.two { grid-template-columns: 1fr; } }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.feature-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 800px) { .feature-row { grid-template-columns: 1fr; } }
.feature-card { background: var(--tint); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.feature-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .feature-card { grid-template-columns: 120px minmax(0, 1fr); } .feature-body { padding: 16px; } }
.feature-body { padding: 24px; }
.feature-card h2 { text-transform: uppercase; }
.connect-card { border: 1px solid var(--line); padding: 20px; }
.connect-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.social li { display: flex; gap: 12px; align-items: center; font-size: .875rem; }
.social-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; font: 700 1.25rem Arial, sans-serif; border-radius: 2px; }
.icon-x { background: #1d9bf0; } .icon-fb { background: #3b5998; } .icon-yt { background: #c4302b; font-size: 1rem; }

.alert-card { border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 16px; }
.alert-card h3 { text-transform: uppercase; font-size: .9375rem; }
.alert-card a { text-decoration: none; }
.alert-card a:hover { text-decoration: underline; }

.tile { border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile > :not(.tile-icon):not(.tile-img) { margin-inline: 16px; }
.tile-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }
.tile h3 { margin-top: 16px; }
.tile p { flex: 1; font-size: .9375rem; }
.tile a { margin-bottom: 16px; }
.tile-icon { height: 120px; display: grid; place-items: center; color: #fff; font-size: 3rem; }
.tile-blue { background: #1158b8; } .tile-slate { background: #3d4450; } .tile-sky { background: var(--blue); } .tile-navy { background: #0b4f8a; }

.program { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); padding-right: 16px; }
.program > div { padding-block: 14px; }
.program p { margin: 0; font-size: .9375rem; }
.program-logo { width: 112px; height: 100%; min-height: 112px; object-fit: cover; display: block; }
.program-badge { display: grid; place-items: center; text-align: center; font: 800 .8125rem var(--font-head); text-transform: uppercase; padding: 8px; }
.badge-red { background: #c8102e; color: #fff; } .badge-yellow { background: #ffe500; color: #000; } .badge-black { background: #222; color: #fff; } .badge-ink { background: #000; color: #9fd0ff; }

/* Interior pages */
.page { padding-block: 8px 56px; }
.page.narrow { max-width: 760px; }
.page-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; text-transform: uppercase; margin-top: 8px; }
.alert-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0 0; margin: 0; font: 600 .8125rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 40ch; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sidebar { border-top: 4px solid #000; padding-top: 12px; }
.sidebar h2 { margin-top: 16px; text-transform: uppercase; }
ul.plain { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }

.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose img { display: block; margin: 16px 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
/* Alignment classes are kept in the content but, like the original site, not applied. */
.prose .ql-indent-1, .prose .rteindent1 { padding-left: 3em; }
.prose .ql-indent-2, .prose .rteindent2 { padding-left: 6em; }
.prose .ql-indent-3, .prose .rteindent3 { padding-left: 9em; }
.prose .ql-indent-4, .prose .rteindent4 { padding-left: 12em; }
.prose img.alert-branding, .prose .alert-branding img { width: 150px; max-width: 60%; height: auto; margin: 16px auto; }
/* Alert lists use the check-mark bullet from the original site. */
.alert-body ul { list-style: none; padding-left: 0; }
.alert-body ul > li { padding-left: 30px; background: url("/assets/check.png") no-repeat 0 .2em / 20px 20px; margin-bottom: 6px; }
.prose td, .prose th { padding: 6px 10px; vertical-align: top; }
.prose img[width] { width: auto; }

.search { margin: 24px 0 8px; max-width: 520px; }
.search label, .field label { display: block; font-weight: 700; margin-bottom: 4px; }
input[type=text], input[type=search], input[type=email], input[type=tel], input:not([type]), textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field-line); border-radius: 3px; padding: 10px 12px; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.alert-list, .resource-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.alert-list li, .resource-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.alert-list h2 { text-transform: uppercase; font-size: 1rem; margin-bottom: 4px; }
.resource-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.resource-list li > div { min-width: 0; flex: 1 1 320px; }

.copy-field { display: flex; gap: 8px; }
.copy-field input { min-width: 0; }

/* Forms */
.form fieldset { border: 0; border-top: 4px solid #000; padding: 12px 0 8px; margin: 24px 0 0; min-width: 0; }
.form legend { font: 800 1.125rem var(--font-head); text-transform: uppercase; padding: 0 8px 0 0; }
.form fieldset.nested { border-top: 1px solid var(--line); margin-top: 8px; }
.form fieldset.nested legend { font-size: .9375rem; text-transform: none; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .875rem; margin: 4px 0 0; }
.field-error { color: var(--error); font-weight: 700; font-size: .875rem; margin: 4px 0 0; }
.field-error::before { content: "⚠ "; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue-btn); }
.grid-2, .grid-3 { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.agreement { max-height: 180px; overflow: auto; border: 1px solid var(--line); background: var(--band); padding: 12px 16px; margin-bottom: 12px; font-size: .9375rem; }
.form button[type=submit] { margin-top: 24px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 3px solid var(--error); padding: 16px 20px; margin: 16px 0; }
.error-summary h2 { color: var(--error); }
.error-summary ul { margin: 0; padding-left: 20px; }
.notice { border-left: 6px solid var(--blue); background: var(--tint); padding: 16px 20px; margin: 16px 0; }
.notice.success { border-left-color: var(--success); background: #eef7f1; }

.filters { border: 1px solid var(--line); padding: 16px 20px; margin: 16px 0 20px; }
.filters fieldset { border: 0; padding: 0; margin: 8px 0 12px; min-width: 0; }
.filters legend { font-weight: 700; margin-bottom: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 0 24px; }
.checks.columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 24px; }
.checks .check { margin: 4px 0; font-size: .9375rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.org-results li { border: 1px solid var(--line); padding: 16px; }
.org-results h2 { font-size: 1rem; text-transform: uppercase; }
.org-results p { margin: 0 0 6px; font-size: .9375rem; }

/* Footer */
.site-footer { background: #000; color: #fff; padding-block: 24px 16px; margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.partner-logos { list-style: none; display: flex; gap: 20px; align-items: center; margin: 0; padding: 0; }
.partner-logos img { display: block; height: 40px; width: auto; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-links a { color: var(--orange); font: 600 .8125rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #ffc27a; }
.prototype-note { color: #c8c8c8; font-size: .8125rem; margin: 16px auto 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .sidebar, .skip-link { display: none; } }
