/* ==========================================================================
   Maryland Workers' Compensation Commission — site styles
   Targets WCAG 2.2 AA / Section 508. All text/background pairs >= 4.5:1.
   ========================================================================== */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  /* Palette — drawn from the Maryland flag, tuned for contrast */
  --ink: #1e2b37;        /* body text, 13.9:1 on white */
  --muted: #4a5866;      /* secondary text, 7.3:1 on white */
  --navy: #0f3557;       /* primary brand, 12.4:1 with white */
  --navy-deep: #0a2742;  /* banner + footer */
  --gold: #f0b323;       /* Calvert gold — accents, focus on dark */
  --black: #141414;      /* Calvert black */
  --red: #a31f34;        /* Crossland red — notices, 7.4:1 with white */
  --link: #0b5cad;       /* 6.1:1 on white */
  --link-visited: #5b3a8c;
  --mist: #edf1f5;       /* quiet surfaces */
  --line: #c9d3dd;
  --paper: #ffffff;

  --font-sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Type scale (1.25 ratio, 18px base) */
  --fs-0: 0.889rem;
  --fs-1: 1.125rem;
  --fs-2: 1.406rem;
  --fs-3: 1.758rem;
  --fs-4: 2.197rem;
  --fs-5: 2.747rem;

  --wrap: 76rem;
  --measure: 70ch;
  --radius: 6px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-5); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
h5, h6 { font-size: var(--fs-1); font-family: var(--font-sans); font-weight: 700; }

p, ul, ol, dl, table { margin: 0 0 1.1em; }
p, li { max-width: var(--measure); }
li + li { margin-top: 0.35em; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; color: var(--navy); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { box-shadow: 0 0 0 3px var(--gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--black); font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0; box-shadow: 0 0 0 3px var(--black); }
.skip-link:visited { color: var(--black); }

/* ---------- Official banner ---------- */
.gov-banner { background: var(--navy-deep); color: #fff; font-size: var(--fs-0); }
.gov-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; padding-block: 0.35rem; }
.gov-banner button {
  font: inherit; color: #fff; background: none; border: 0; padding: 0.25rem 0;
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; min-height: 24px;
}
.gov-banner button::after { content: " ▾"; text-decoration: none; display: inline-block; margin-left: 0.2em; }
.gov-banner button[aria-expanded="true"]::after { content: " ▴"; }
.gov-banner__panel { background: var(--navy-deep); color: #fff; border-top: 1px solid #2a4a68; }
.gov-banner__panel[hidden] { display: none; }
.gov-banner__panel .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2.5rem; padding-block: 1rem 1.25rem; }
.gov-banner__panel p { margin: 0; max-width: 46ch; }
.gov-banner__panel strong { display: block; color: var(--gold); }
.gov-banner__links { margin-left: auto; display: flex; gap: 1.25rem; }
.gov-banner a { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:visited { color: var(--navy); }
.brand__mark { flex: none; width: 52px; height: 52px; }
.brand__name {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; line-height: 1.1; margin: 0; color: var(--navy);
  max-width: 22ch;
}
.brand__sub { display: block; font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-0); color: var(--muted); margin-top: 0.25rem; }

.header-tools { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.header-phone { font-size: var(--fs-0); line-height: 1.3; color: var(--muted); }
.header-phone a { font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none; }
.header-phone a:hover { text-decoration: underline; }

.search { display: flex; }
.search input {
  font: inherit; font-size: 1rem; width: 15rem; max-width: 100%;
  padding: 0.55rem 0.75rem; border: 2px solid var(--muted); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); color: var(--ink); background: #fff;
}
.search input:focus-visible { box-shadow: none; outline: 3px solid var(--navy); outline-offset: 2px; }
.search button {
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  padding: 0.55rem 1rem; border: 2px solid var(--navy); background: var(--navy); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search button:hover { background: var(--navy-deep); }

/* ---------- Primary navigation ---------- */
.primary-nav { background: var(--navy); color: #fff; position: relative; z-index: 20; }
.primary-nav::after {
  /* Calvert paly — the signature band */
  content: ""; display: block; height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 18px, var(--black) 18px 36px);
}
.nav-toggle {
  display: none; font: inherit; font-weight: 700; color: #fff; background: none;
  border: 2px solid rgba(255,255,255,.6); border-radius: var(--radius);
  padding: 0.5rem 0.9rem; margin-block: 0.6rem; cursor: pointer; align-items: center; gap: 0.6rem;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { margin: 0; position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 0.4rem; min-height: 3.25rem;
  padding: 0.75rem 1.1rem; color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 1.02rem;
  background: none; border: 0; cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -4px;
}
.nav-list > li > a:visited { color: #fff; }
.nav-list > li > a:hover, .nav-list > li > button:hover { background: rgba(255,255,255,.08); }
.nav-list > li > a[aria-current="page"], .nav-list > li > button.is-current { border-bottom-color: var(--gold); }
.nav-list > li > button::after {
  content: ""; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%); margin-left: 0.2rem;
}
.nav-list > li > button[aria-expanded="true"] { background: var(--navy-deep); }
.nav-list > li > button[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-10%); }
.nav-list a:focus-visible, .nav-list button:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); border-radius: 0; }

.subnav {
  list-style: none; margin: 0; padding: 0.5rem 0; position: absolute; top: 100%; left: 0; min-width: 17rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  box-shadow: 0 12px 28px rgba(10, 39, 66, 0.18);
}
.subnav[hidden] { display: none; }
.subnav li { margin: 0; max-width: none; }
.subnav a { display: block; padding: 0.6rem 1.1rem; color: var(--navy); text-decoration: none; font-weight: 500; }
.subnav a:visited { color: var(--navy); }
.subnav a:hover { background: var(--mist); text-decoration: underline; }
.subnav a[aria-current="page"] { font-weight: 700; box-shadow: inset 4px 0 0 var(--gold); }
.subnav a:focus-visible { box-shadow: inset 0 0 0 3px var(--navy); border-radius: 0; }
.nav-list .nav-cta { margin-left: auto; }
.nav-list .nav-cta > a { color: var(--black); background: var(--gold); margin-block: 0.45rem; min-height: 2.6rem; border-radius: var(--radius); border-bottom: 0; margin-bottom: 0.45rem; }
.nav-list .nav-cta > a:visited { color: var(--black); }
.nav-list .nav-cta > a:hover { background: #ffc94d; }
.nav-list .nav-cta > a:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px #fff; border-radius: var(--radius); }

.ext::after {
  content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: 0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7 0h5v5h-1.5V2.6L5.6 7.5 4.5 6.4l4.9-4.9H7z M0 2h5v1.5H1.5v7h7V7H10v5H0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7 0h5v5h-1.5V2.6L5.6 7.5 4.5 6.4l4.9-4.9H7z M0 2h5v1.5H1.5v7h7V7H10v5H0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.filetype { font-size: 0.8em; font-weight: 600; color: var(--muted); white-space: nowrap; }

@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; flex-direction: column; padding-bottom: 0.75rem; }
  .primary-nav.is-open .nav-list { display: flex; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; border-bottom: 0; margin: 0; border-left: 4px solid transparent; }
  .nav-list > li > a[aria-current="page"], .nav-list > li > button.is-current { border-left-color: var(--gold); }
  .subnav { position: static; box-shadow: none; border: 0; border-left: 4px solid var(--gold); margin: 0 0 0.5rem 1.1rem; }
  .nav-list .nav-cta { margin: 0.5rem 0 0; }
  .nav-list .nav-cta > a { display: inline-flex; width: auto; margin: 0; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .header-tools { flex: 1 1 100%; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--mist); font-size: var(--fs-0); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0.7rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); padding-inline: 0.35rem; }
.breadcrumb [aria-current="page"] { font-weight: 600; color: var(--ink); }

/* ---------- Page title band ---------- */
.page-head { background: var(--mist); padding-block: 1.5rem 2.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 0.4rem; padding-left: 1.1rem; border-left: 8px solid; border-image: repeating-linear-gradient(180deg, var(--gold) 0 10px, var(--black) 10px 20px) 1; }
.page-head p { margin: 0.75rem 0 0; color: var(--muted); font-size: var(--fs-1); max-width: 62ch; }

/* ---------- Layout with side navigation ---------- */
.layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; padding-block: 2.5rem 4rem; align-items: start; }
.layout--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 60rem) { .layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

.sidenav { position: sticky; top: 1rem; font-size: 0.98rem; }
.sidenav-label { font-family: var(--font-sans); font-size: var(--fs-0); font-weight: 700; color: var(--muted); margin: 0 0 0.5rem; }
.sidenav ul { list-style: none; margin: 0 0 2rem; padding: 0; border-left: 2px solid var(--line); }
.sidenav li { margin: 0; }
.sidenav a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -2px; border-left: 4px solid transparent; text-decoration: none; color: var(--navy); line-height: 1.35; }
.sidenav a:visited { color: var(--navy); }
.sidenav a:hover { text-decoration: underline; }
.sidenav a[aria-current="page"], .sidenav a.is-active { border-left-color: var(--gold); font-weight: 700; }
@media (max-width: 60rem) {
  .sidenav { position: static; }
  .sidenav details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.25rem 1rem; }
  .sidenav summary { font-weight: 700; padding: 0.6rem 0; cursor: pointer; color: var(--navy); }
}
@media (min-width: 60.01rem) {
  .sidenav summary { display: none; }
}

/* ---------- Content ---------- */
.content > section { margin-bottom: 3rem; }
.content > section > :is(h2, h3) { padding-top: 0.5rem; }
.content h2 { font-size: var(--fs-3); }
.content h3 { font-size: var(--fs-2); margin-top: 1.75rem; }
.content h4 { font-size: var(--fs-1); font-family: var(--font-sans); font-weight: 700; margin-top: 1.5rem; color: var(--ink); }
.lede { font-size: 1.2rem; color: var(--ink); max-width: 62ch; }

.callout {
  border-left: 6px solid var(--navy); background: var(--mist); padding: 1rem 1.25rem; margin: 0 0 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0; max-width: 72ch;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--alert { border-left-color: var(--red); background: #fbeef0; }
.callout--gold { border-left-color: var(--gold); background: #fff8e5; }
.callout strong:first-child { color: var(--navy); }
.callout--alert strong:first-child { color: var(--red); }

.link-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.link-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); margin: 0; max-width: 72ch; }
.link-list li:first-child { border-top: 1px solid var(--line); }
.link-list small { display: block; color: var(--muted); font-size: var(--fs-0); }

.cols-2 { columns: 2 18rem; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; }

.contact-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem;
  border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 1.5rem;
}
.contact-card h3, .contact-card h4 { margin: 0 0 0.25rem; font-size: var(--fs-1); font-family: var(--font-sans); color: var(--ink); }
.contact-card p { margin: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }
@media (max-width: 36rem) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 0.5rem; } }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap:focus-visible { box-shadow: var(--focus); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 0; }
caption { text-align: left; font-weight: 700; padding: 0.75rem 1rem; color: var(--navy); font-family: var(--font-serif); font-size: var(--fs-1); }
th, td { padding: 0.65rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; border-top: 0; font-weight: 600; }
tbody tr:nth-child(even) { background: #f7f9fb; }
tbody th { font-weight: 600; }

/* Accordions (native details) */
.accordion { border-top: 1px solid var(--line); margin-bottom: 1.5rem; max-width: 78ch; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1rem 2.5rem 1rem 0; position: relative;
  font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0.5rem; top: 0.8rem; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--navy);
}
.accordion details[open] > summary::after { content: "−"; }
.accordion summary:hover { text-decoration: underline; }
.accordion .panel { padding: 0 0 1.25rem; }
.accordion .panel > :last-child { margin-bottom: 0; }

.faq-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: end; margin-bottom: 2rem; }
.faq-tools label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.faq-tools input { font: inherit; padding: 0.55rem 0.75rem; border: 2px solid var(--muted); border-radius: var(--radius); width: min(28rem, 100%); }
.faq-tools input:focus-visible { box-shadow: none; outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-plain {
  font: inherit; font-weight: 600; color: var(--navy); background: #fff; border: 2px solid var(--navy);
  border-radius: var(--radius); padding: 0.5rem 1rem; cursor: pointer; min-height: 44px;
}
.btn-plain:hover { background: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none;
  padding: 0.75rem 1.25rem; border-radius: var(--radius); min-height: 44px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff;
}
.btn:visited { color: #fff; }
.btn:hover { background: var(--navy-deep); color: #fff; text-decoration: underline; }
.btn--ghost { background: #fff; color: var(--navy); }
.btn--ghost:visited { color: var(--navy); }
.btn--ghost:hover { background: var(--mist); color: var(--navy); }

/* ---------- Home ---------- */
.home-hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; padding-block: 3rem 3.5rem; align-items: start; }
@media (max-width: 60rem) { .home-hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem 2.5rem; } }
.home-hero h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1.25rem; max-width: 32ch; }
.mission { margin: 0; padding: 0; }
.mission h3 { font-family: var(--font-sans); font-size: var(--fs-1); font-weight: 700; color: var(--ink); margin: 0 0 0.35rem; }
.mission p { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); max-width: 52ch; margin: 0; }

.start-panel { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: var(--radius); padding: 1.5rem; }
.start-panel h3 { font-size: var(--fs-2); margin-bottom: 1rem; }
.start-panel ul { list-style: none; margin: 0; padding: 0; }
.start-panel li { margin: 0; border-top: 1px solid var(--line); max-width: none; }
.start-panel li a { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 0.75rem; padding: 0.9rem 0.25rem; text-decoration: none; color: var(--ink); }
.start-panel li a:visited { color: var(--ink); }
.start-panel li a strong { color: var(--link); font-size: 1.08rem; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.start-panel li a:hover strong { text-decoration-thickness: 2px; color: var(--navy); }
.start-panel li a span.desc { grid-column: 2; font-size: var(--fs-0); color: var(--muted); }
.start-panel .ico { grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.start-panel .ico svg { width: 1.2rem; height: 1.2rem; }
.start-panel .help { margin: 1rem 0 0; font-size: var(--fs-0); color: var(--muted); }

.section { padding-block: 3.5rem; }
.section--tint { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.section-head h2, .section-head h3 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.audience-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 60rem) { .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .audience-grid { grid-template-columns: 1fr; } }
.audience-grid li { margin: 0; max-width: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid a { display: block; height: 100%; padding: 1.5rem 1.5rem 1.6rem; text-decoration: none; color: var(--ink); position: relative; }
.audience-grid a:visited { color: var(--ink); }
.audience-grid a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); transition: width .15s ease; }
.audience-grid a:hover::before, .audience-grid a:focus-visible::before { width: 6px; }
.aud-title { display: block; font-family: var(--font-serif); font-weight: 650; line-height: 1.2;
  font-size: var(--fs-2); margin: 0 0 0.4rem; color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.unused-aud { font-size: var(--fs-2); margin: 0 0 0.4rem; color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.audience-grid a:hover .aud-title { text-decoration-thickness: 2px; }
.audience-grid p { margin: 0; color: var(--muted); font-size: 1rem; }

.quick-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 60rem) { .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .quick-links { grid-template-columns: 1fr; } }
.quick-links li { margin: 0; max-width: none; }
.quick-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%;
  padding: 1rem 1.25rem; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.quick-links a:visited { color: #fff; }
.quick-links a:hover { background: var(--navy-deep); text-decoration: underline; }
.quick-links a:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy); }
.quick-links .filetype { color: #dbe4ee; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 60rem) { .two-col { grid-template-columns: 1fr; } }

.notice { border-left: 6px solid var(--red); padding: 0.25rem 0 0.25rem 1.25rem; margin-bottom: 2rem; }
.notice h5 { font-size: var(--fs-1); color: var(--red); margin-bottom: 0.4rem; }
.notice--info { border-left-color: var(--navy); }
.notice--info h5 { color: var(--navy); }
.notice p:last-child { margin-bottom: 0; }

.holiday-table td.is-past, .holiday-table th.is-past { color: var(--muted); }
.holiday-table .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--mist); color: var(--muted); margin-left: 0.4rem; }
.holiday-table .tag--next { background: var(--gold); color: var(--black); }

.commissioners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 70rem) { .commissioners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .commissioners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commissioners li { margin: 0; max-width: none; }
.commissioner {
  width: 100%; height: 100%; text-align: left; font: inherit; cursor: pointer; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.commissioner:hover { border-color: var(--navy); }
.commissioner:hover .commissioner__name { text-decoration-thickness: 2px; }
.avatar {
  width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--navy);
  background: var(--paper); border: 3px solid var(--gold); box-shadow: 0 0 0 3px var(--navy);
  margin: 3px;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.commissioner__name { font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; line-height: 1.3; }
.commissioner__role { font-size: var(--fs-0); color: var(--muted); margin-top: -0.4rem; }

dialog.bio {
  border: 0; border-top: 8px solid var(--navy); border-radius: var(--radius); padding: 0; width: min(40rem, calc(100% - 2rem));
  max-height: calc(100vh - 3rem); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 39, 66, 0.35);
}
dialog.bio::backdrop { background: rgba(10, 39, 66, 0.6); }
.bio__head { display: flex; gap: 1rem; align-items: center; padding: 1.5rem 1.5rem 0; }
.bio__head h3 { margin: 0; font-size: var(--fs-3); }
.bio__head p { margin: 0.2rem 0 0; color: var(--muted); }
.bio__body { padding: 1rem 1.5rem 0.5rem; }
.bio__foot { padding: 0 1.5rem 1.5rem; display: flex; justify-content: flex-end; }

/* ---------- Search results ---------- */
.results { list-style: none; padding: 0; margin: 1.5rem 0; }
.results li { padding: 1rem 0; border-bottom: 1px solid var(--line); max-width: 72ch; margin: 0; }
.results a { font-weight: 700; font-size: 1.15rem; }
.results p { margin: 0.25rem 0 0; color: var(--muted); }
.results mark { background: #fff1c7; color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, var(--black) 18px 36px); }
.site-footer a { color: #fff; }
.site-footer a:visited { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 1.75rem; font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 60rem) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-main { grid-template-columns: 1fr; } }
.footer-label { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 700; color: var(--gold); margin: 0 0 0.625rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.375rem; }
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer a[href^="tel:"] { white-space: nowrap; }
.footer-brand { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; margin: 0 0 0.625rem; line-height: 1.25; }
.footer-legal { border-top: 1px solid #2a4a68; padding-block: 1.25rem 2rem; font-size: var(--fs-0); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal li { margin: 0; }
.footer-legal p { margin: 0; color: #d5dee8; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.muted { color: var(--muted); }
.back-to-top { display: inline-block; margin-top: 0.5rem; font-size: var(--fs-0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .gov-banner, .primary-nav, .search, .sidenav, .site-footer::before, .skip-link, .nav-toggle { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .accordion details { display: block; }
  body { font-size: 11pt; }
}

@media (forced-colors: active) {
  .primary-nav::after, .site-footer::before { background: CanvasText; }
  .audience-grid a::before { background: Highlight; }
  :focus-visible { outline: 3px solid Highlight; }
}

.badge-new { display: inline-block; margin-left: 0.5rem; font-size: 0.78rem; font-weight: 700; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--gold); color: var(--black); vertical-align: 0.1em; }
.guide-list li { break-inside: avoid; }
.sidenav details > summary + nav, .sidenav nav + nav { margin-top: 0; }
.btn .filetype { color: inherit; }
dialog.bio[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.bio .bio__body { overflow-y: auto; flex: 1 1 auto; }
dialog.bio .bio__head, dialog.bio .bio__foot { flex: none; }
dialog.bio .bio__foot { padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Maryland statewide standards (DoIT Maryland Guidelines for Websites) ---------- */
/* Official State of Maryland logo in the agency header. Shown unaltered, on white, per the State logo guidelines. */
.brand__logo { flex: none; height: 58px; width: auto; }
.brand { gap: 1rem; }
.brand__name { padding-left: 1rem; border-left: 1px solid var(--line); }
@media (max-width: 36rem) { .brand__logo { height: 48px; } .brand__name { font-size: 1.1rem; } }

/* Statewide banner and footer are MDWDS web components; reserve space to avoid layout shift. */
maryland-statewide-banner { display: block; min-height: 2.5rem; background: #f0f0f0; }
maryland-statewide-footer { display: block; }
.site-footer { background: none; }
.site-footer .agency-footer { background: var(--navy-deep); color: #fff; }
.footer-contact { margin: .75rem 0 0; }
.footer-contact a { font-weight: 600; }

/* Fallbacks shown only when JavaScript is off */
.sw-fallback { font-size: var(--fs-0); }
.sw-fallback--banner { background: #f0f0f0; color: var(--ink); padding: .5rem 0; }
.sw-fallback--footer { background: #1b1b1b; color: #fff; padding: 2rem 0; }
.sw-fallback--footer ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.sw-fallback--footer a { color: #fff; }

/* ---------- Announcements feed (scrollable, newest first) ---------- */
.feed__intro { font-size: 1rem; color: var(--muted); margin: -0.25rem 0 0.75rem; }
.feed {
  max-height: 32rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0.75rem 0 0;
  /* Scroll shadows: show that more content is above/below */
  background:
    linear-gradient(var(--mist) 30%, rgba(237,241,245,0)) top / 100% 2rem no-repeat local,
    linear-gradient(rgba(237,241,245,0), var(--mist) 70%) bottom / 100% 2rem no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(10,39,66,.18), rgba(10,39,66,0)) top / 100% .75rem no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(10,39,66,.18), rgba(10,39,66,0)) bottom / 100% .75rem no-repeat scroll;
}
.feed:focus-visible { box-shadow: var(--focus); }
.feed__list { list-style: none; margin: 0; padding: 0; }
.feed__list > li { margin: 0; max-width: none; }
.feed .notice { margin-bottom: 1.75rem; }
.notice h3 { font-size: var(--fs-1); font-family: var(--font-sans); font-weight: 700; color: var(--red); margin: 0 0 0.4rem; }
.notice--info h3 { color: var(--navy); }
.notice__date { font-size: var(--fs-0); font-weight: 600; color: var(--muted); margin: 0 0 0.2rem; }
.notice__date:empty { display: none; }
.feed__empty { color: var(--muted); margin: 0 0 1rem; }
