
/* HR Job Descriptions site — City of Ann Arbor Brand Style Guide 2025 palette (reused from the
   Crash Response Team report stylesheet). Text-role colors meet WCAG AA 4.5:1 for normal text
   against both white and --gray-bg: --green-dark 10.75:1/9.86:1, --navy 12.36:1/11.34:1, --blue
   5.81:1/5.33:1. --green is used only as a decorative border accent, never as text, so its
   3.59:1 (on white) isn't a live contrast requirement. */
:root {
  --green-dark: #18453B;
  --green: #0B9A6D;
  --blue: #066E8C;
  --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; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.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; }
/* The shared :focus-visible outline (--blue) only clears 3:1 against white/--gray-bg, not
   against this dark --green-dark background — override to --white here and on .site-footer a. */
.skip-nav:focus-visible { outline-color: var(--white); }

.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 .site-name { 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 {
  background: var(--gray-bg); padding: .5rem 1.5rem; font-size: .85rem; border-bottom: 1px solid var(--gray-border);
}
.breadcrumb a { color: var(--blue); }

main { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }

h1 { font-size: 1.5rem; color: var(--green-dark); margin: 0 0 .25rem; }
.job-code-line { color: var(--navy); font-size: .95rem; margin: 0 0 1.5rem; }

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;
}

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

/* Detail page: "Pay by Level" table for a document covering a ladder of levels */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--gray-border); border-radius: 4px; }
.level-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.level-table caption { text-align: left; padding: .6rem .9rem; font-size: .85rem; color: var(--navy); caption-side: bottom; border-top: 1px solid var(--gray-border); }
.level-table thead th {
  background: var(--green-dark); color: var(--white); text-align: left; padding: .6rem .9rem;
  font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.level-table thead th:last-child { text-align: right; }
.level-table th.col-level { text-align: left; font-weight: 600; color: var(--green-dark); }
.level-table th, .level-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--gray-border); vertical-align: baseline; }
.level-table tbody tr:last-child th, .level-table tbody tr:last-child td { border-bottom: 0; }
.level-table tbody tr:nth-child(even) > * { background: var(--gray-bg); }
.level-table .col-salary { font-weight: 600; color: var(--navy); }
.col-muted { color: #595959; font-style: italic; font-weight: 400; }

.content-section p { margin: .4rem 0; white-space: pre-line; }
.content-section p.sub { margin-left: 1.4rem; }
.content-section ul { margin: .4rem 0; padding-left: 1.4rem; }
/* A variant's group within a section (Management Assistant's tracks, Police Officer's assignments) */
.content-section h3.subsection { font-size: 1rem; color: var(--navy); margin: 1.25rem 0 .25rem; }
.content-section h4.subsection { font-size: .95rem; color: var(--navy); font-style: italic; margin: .9rem 0 .2rem .7rem; }
.content-section h4.subsection + ul { margin-left: .7rem; }
.content-section li { margin: .2rem 0; }

/* Index page */
.report-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 2rem; }
.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; }
.report-table thead th { position: sticky; top: 0; z-index: 1; }
/* The filter script hides rows with the `hidden` attribute. The UA stylesheet's [hidden] rule
   already wins over `tr { display: table-row }` on specificity, but stating it here means the
   filter can't be broken by a future rule that sets display on these rows. */
.report-table tbody tr[hidden] { display: none; }
.report-table tr.group-head th {
  background: var(--gray-bg); color: var(--green-dark); text-align: left;
  font-size: 1rem; text-transform: none; letter-spacing: normal;
  padding: .7rem .75rem .5rem; border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--gray-border); position: static;
}
.report-table tr.group-head:hover th { background: var(--gray-bg); }
.group-count { color: var(--navy); font-weight: 400; font-size: .8rem; }
.col-code, .col-plan { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-salary { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.report-table th:last-child { text-align: right; }
.variant-links { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .85rem; }
.row-note { font-size: .8rem; color: #595959; font-weight: 400; white-space: normal; }
.variant-links li { margin: .1rem 0; }
.salary-ladder { margin: 0; padding-left: 1.1rem; }
.salary-ladder li { margin: .1rem 0; }

/* Download offer, directly under the index's summary paragraph */
.download { font-size: .9rem; margin: .25rem 0 0; }
.download p { margin: 0 0 .4rem; }
.download-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.download-list a { font-weight: 600; }

/* Index filter box — rendered hidden and unhidden by script, so no-JS readers never see it */
.filter-bar { margin: 1rem 0 .5rem; }
.filter-bar label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.filter-bar input[type=search] {
  font: inherit; font-size: .95rem; padding: .45rem .6rem; width: 100%; max-width: 26rem;
  border: 1px solid var(--gray-border); border-radius: 3px; background: var(--white); color: var(--text);
}
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
.filter-row input[type=search] { flex: 1 1 16rem; width: auto; }
.union-filter {
  border: 0; padding: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem;
}
.union-filter legend { font-size: .85rem; font-weight: 600; color: var(--navy); padding: 0; margin: 0; }
.union-filter label { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; font-weight: 400; margin: 0; white-space: nowrap; }
.filter-status { font-size: .85rem; color: var(--navy); margin: .35rem 0 0; min-height: 1.2em; }

.jump-nav { margin: .5rem 0 1.5rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.jump-nav a { font-weight: 600; }
.jump-count { color: var(--navy); font-weight: 400; }


/* Recently Updated block */
.recent { background: var(--gray-bg); border-left: 4px solid var(--green); padding: .75rem 1.25rem; margin: 0 0 2rem; }
.recent h2 { margin-top: .25rem; border-bottom: none; }
.recent ul { margin: .4rem 0; padding-left: 1.2rem; font-size: .9rem; }
.recent li { margin: .25rem 0; }
.recent-date { color: var(--navy); font-size: .8rem; }

.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); }
.site-footer a:focus-visible { outline-color: var(--white); }

@media (max-width: 600px) {
  .site-header { padding: .6rem 1rem; }
  .site-header img { height: 44px; }
  .site-header .site-name { font-size: .95rem; }
  main { padding: 1rem 1rem 2rem; }
  .meta-table th { width: 8rem; white-space: normal; }
  .report-table { font-size: .8rem; }
  .level-table { font-size: .85rem; }
  .level-table th, .level-table td, .level-table thead th { padding: .5rem .55rem; }
  .report-table th, .report-table td { padding: .4rem .4rem; }
}
