
/* Ann Arbor CRT Report Stylesheet — brand colors from City of Ann Arbor Brand Style Guide 2025 */
:root {
  --green-dark: #18453B;
  --green: #0B9A6D;
  --blue: #0787AD;
  --steel-blue: #4180AB;
  --navy: #1D3557;
  --gray-bg: #F5F5F5;
  --gray-border: #D8D8D8;
  --text: #1A1A1A;
  --white: #FFFFFF;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Fira Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  line-height: 1.6;
}
a { color: var(--blue); }
a:focus, a:hover { color: var(--green-dark); text-decoration: underline; }

/* Skip nav */
.skip-nav {
  position: absolute;
  top: -3rem;
  left: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: .5rem 1rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-nav:focus { top: 0; }

/* Header */
.site-header {
  background: var(--green-dark);
  color: var(--white);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}
.site-header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.site-header .subtitle {
  font-size: .8rem;
  opacity: .85;
  margin: .15rem 0 0;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-bg);
  padding: .5rem 1.5rem;
  font-size: .85rem;
  border-bottom: 1px solid var(--gray-border);
}
.breadcrumb a { color: var(--blue); }

/* Main content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* Section headings */
h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green);
  padding-bottom: .3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 .5rem;
}

/* Overview card */
.overview-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.overview-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.overview-card th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  width: 10rem;
  padding: .3rem .75rem .3rem 0;
  vertical-align: top;
  white-space: nowrap;
}
.overview-card td {
  padding: .3rem 0;
  vertical-align: top;
}

/* Response sections */
.response-section {
  margin-bottom: 1.5rem;
}
.response-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.response-section th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  width: 9rem;
  padding: .35rem .75rem .35rem 0;
  vertical-align: top;
  white-space: nowrap;
  border-top: 1px solid var(--gray-border);
}
.response-section td {
  padding: .35rem 0;
  vertical-align: top;
  border-top: 1px solid var(--gray-border);
}

/* Index table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-top: 1rem;
}
.report-table th {
  background: var(--green-dark);
  color: var(--white);
  text-align: left;
  padding: .5rem .75rem;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.report-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: top;
}
.report-table tr:nth-child(even) td { background: var(--gray-bg); }
.report-table tr:hover td { background: #EAF3F0; }

/* Injury severity */
.injury-fatal   { color: #B00020; font-weight: 700; }
.injury-serious { color: #C85000; font-weight: 600; }
.injury-minor   { color: #6B5000; }

/* Narrative */
.narrative p { margin: 0 0 1rem; }
.narrative p:last-child { margin-bottom: 0; }

/* Preserve bullet-point formatting in response table cells */
.response-section td { white-space: pre-line; }

/* Action links */
.action-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 3px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--green-dark);
  color: var(--white);
}
.btn:hover, .btn:focus { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover, .btn-secondary:focus { background: var(--gray-bg); color: var(--navy); border-color: var(--navy); }

/* Map link */
.map-link {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: .6rem 1.25rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.map-link:hover, .map-link:focus {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  text-align: center;
  font-size: .8rem;
  padding: 1rem;
  margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.9); }

/* Responsive */
@media (max-width: 600px) {
  .site-header { padding: .6rem 1rem; }
  .site-header img { height: 44px; }
  .site-header h1 { font-size: .95rem; }
  main { padding: 1rem 1rem 2rem; }
  .overview-card th { width: 7rem; font-size: .82rem; }
  .response-section th { width: 6.5rem; font-size: .82rem; white-space: normal; }
  .report-table { font-size: .8rem; }
  .report-table th, .report-table td { padding: .4rem .4rem; }
}
