/* St. Arundel County: the county website's one stylesheet.
   A plain county template, a few years behind, in Public Sans. */

:root {
  --navy: #14365c;
  --navy-deep: #0c2440;
  --green: #166a43;
  --ink: #1b1f24;
  --muted: #565c65;
  --rule: #d6d9dd;
  --wash: #f1f3f5;
  --paper: #fbfaf6;
  --link: #1a4f8b;
  --alert: #e9ebee;
  --alert-edge: #8d949c;
  --max: 1120px;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
}

a { color: var(--link); }
a:hover { color: var(--navy-deep); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* The thin bar at the very top. */
.utility { background: var(--navy-deep); color: #dfe6ee; font-size: 13px; }
.utility .wrap { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 18px; padding-top: 6px; padding-bottom: 6px; }
.utility a { color: #dfe6ee; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }

/* Seal, name, search. */
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 76px; height: 76px; }
.brand .name { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.brand .sub { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-top: 4px; }

.search { display: flex; }
.search input {
  font: inherit; font-size: 15px; width: 220px; padding: 8px 10px;
  border: 1px solid #a9aeb4; border-right: 0; border-radius: 3px 0 0 3px;
}
.search button {
  font: 600 15px var(--font); padding: 8px 14px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; border-radius: 0 3px 3px 0; cursor: pointer;
}

/* The main menu. */
.nav { background: var(--navy); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 16px; }
.nav a:hover, .nav a[aria-current] { background: var(--navy-deep); }

/* The gray banner every county page carries. */
.alert { background: var(--alert); border-bottom: 1px solid var(--rule); }
.alert .wrap { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
.alert b { white-space: nowrap; color: var(--navy); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; padding: 2px 8px; border: 1px solid var(--alert-edge); border-radius: 2px; }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

main { padding-bottom: 56px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font-size: 36px; margin: 18px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 0 0 8px; }

.lede { font-size: 20px; color: var(--muted); margin: 0 0 6px; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }

/* Home. */
.hero { position: relative; margin: 0; }
.hero img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 40%; }
.hero .welcome {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(12, 36, 64, 0.82));
  color: #fff; padding: 64px 0 22px;
}
.hero .welcome h1 { color: #fff; margin: 0; font-size: 40px; }
.hero .welcome p { margin: 4px 0 0; font-size: 18px; }
.hero figcaption { font-size: 13px; color: var(--muted); padding: 6px 16px 0; max-width: var(--max); margin: 0 auto; }

.howdoi { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.howdoi a {
  display: block; height: 100%; padding: 16px; border: 1px solid var(--rule); border-top: 4px solid var(--green);
  background: #fff; text-decoration: none; color: var(--navy); font-weight: 700;
}
.howdoi a span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
.howdoi a:hover { background: var(--wash); }

.columns { display: grid; gap: 40px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 820px) { .columns { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.news time { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.news a { font-weight: 600; }

.box { background: var(--wash); border: 1px solid var(--rule); padding: 18px 20px; margin-top: 24px; }
.box h2, .box h3 { margin-top: 0; font-size: 18px; }
.box ul { margin: 0; padding-left: 18px; }
.box p { margin: 0 0 10px; font-size: 15px; }
.box p:last-child { margin-bottom: 0; }

.meetings { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.meetings li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.meetings li:last-child { border-bottom: 0; }
.meetings b { display: block; color: var(--navy); }

/* Reports. */
.report { max-width: 720px; }
.report p { margin: 0 0 16px; }
.report h2 { border-top: 1px solid var(--rule); padding-top: 24px; }

.photo { margin: 24px 0 28px; }
.photo .placeholder {
  aspect-ratio: 16 / 10; background: #e4e8ec; border: 1px dashed #9aa3ad;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  padding: 20px 28px; text-align: center;
}
.photo .placeholder b { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.photo .placeholder i { font-size: 13px; line-height: 1.5; color: #4a515a; max-width: 52ch; }
.photo figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.letter {
  margin: 24px 0 28px; padding: 26px 30px; background: var(--paper);
  border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.letter p { margin: 0 0 14px; }
.letter .sig { margin: 22px 0 0; }

.signature { margin-top: 28px; }

.notes { margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 16px; font-size: 14px; color: var(--muted); }
.notes p { margin: 0 0 8px; }

.helpful { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.helpful button {
  font: 600 14px var(--font); padding: 6px 16px; background: #fff; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 3px; cursor: pointer;
}
.helpful button:hover { background: var(--wash); }

/* Tables. */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 20px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--wash); color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Footer. */
footer { background: var(--navy-deep); color: #dfe6ee; font-size: 14px; }
footer .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-top: 32px; padding-bottom: 24px; }
footer h2 { color: #fff; font-size: 15px; margin: 0 0 8px; }
footer p { margin: 0 0 6px; }
footer a { color: #dfe6ee; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 6px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #2a4566; padding-top: 14px; font-size: 13px; color: #a9b7c6; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .hero .welcome h1 { font-size: 28px; }
  .brand .name { font-size: 24px; }
  .brand img { width: 60px; height: 60px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; }
  .nav a { padding: 10px 12px; font-size: 14px; }
  .letter { padding: 20px; }
}

/* Publications: the series covers, three across, two on a phone. */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 24px; }
.covers figure { margin: 0; }
.covers img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.covers figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 520px) { .covers { grid-template-columns: repeat(2, 1fr); } }

/* The Karma reader (/karma): the book, turned with StPageFlip. */
.reader { max-width: 1040px; padding-bottom: 40px; }
.book { margin: 8px auto 0; }
.book .page { background: #fff; }
.book .page img { width: 100%; height: 100%; display: block; }
.reader-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 6px; }
.reader-controls button { font: 600 15px var(--font); padding: 8px 18px; background: var(--navy); color: #fff; border: 0; border-radius: 3px; cursor: pointer; }
.reader-controls button:disabled { background: var(--rule); color: var(--muted); cursor: default; }
#where { min-width: 150px; text-align: center; font-size: 15px; color: var(--muted); }
.reader-help { text-align: center; font-size: 14px; color: var(--muted); margin: 0; }
.copies { font-size: 16px; margin: 0 0 6px; }
.reader .copies { text-align: center; font-size: 15px; margin: 14px 0 0; }
.stack { display: grid; gap: 16px; justify-items: center; }
.stack img { max-width: 100%; height: auto; border: 1px solid var(--rule); }
