/* takeitdownact.org - shared stylesheet
   USWDS-inspired styling. No frameworks, no external assets. */

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1b1b1b;
  background: #ffffff;
}
img { max-width: 100%; height: auto; }
a { color: #005ea2; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #1a4480; }
a:focus { outline: 3px solid #ffbe2e; outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1.25;
  margin: 0 0 1rem;
}
h1 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid #dfe1e2; margin: 2em 0; }

/* ---------- Layout ---------- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
main.container { padding-top: 3.5rem; padding-bottom: 3rem; }
main > h1 { margin-top: 0; margin-bottom: 1.5rem; }
.page-lede {
  font-size: 1.15rem;
  color: #565c65;
  max-width: 75ch;
  margin: 0 0 2.25rem;
  line-height: 1.55;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
}

/* ---------- Official banner (USWDS pattern) ---------- */
.gov-banner {
  background: #f0f0f0;
  font-size: 0.82rem;
  color: #1b1b1b;
  border-bottom: 1px solid #dfe1e2;
}
.gov-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
}
.gov-banner svg { flex: 0 0 16px; }
.gov-banner strong { font-weight: 600; }

/* ---------- Site header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dfe1e2;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: #1a4480;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-text { line-height: 1.15; }
.brand-text .title {
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1b1b1b;
}
.brand-text .subtitle {
  font-size: 0.8rem;
  color: #565c65;
}

/* ---------- Navigation ---------- */
.site-nav { background: #1a4480; }
.site-nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.97rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { background: #162e51; }
.site-nav a.active {
  border-bottom-color: #ffbe2e;
  background: #162e51;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #1a4480 0%, #162e51 100%);
  color: #ffffff;
  padding: 3rem 0 3.25rem;
}
.hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  max-width: 22ch;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 60ch;
  color: #d9e8f6;
  margin-bottom: 1.5rem;
}
.hero .meta {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border-left: 4px solid #ffbe2e;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  color: #f0f6fb;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #005ea2;
  color: #ffffff;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid #005ea2;
}
.btn:hover { background: #1a4480; border-color: #1a4480; color: #fff; }
.btn.secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn.secondary:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Cards / callouts ---------- */
.card {
  background: #ffffff;
  border: 1px solid #dfe1e2;
  border-top: 4px solid #005ea2;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 2px;
}
.card h3 { margin-top: 0; font-size: 1.1rem; }
.callout {
  background: #f0f6fb;
  border-left: 4px solid #005ea2;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.callout.warn {
  background: #fff5c2;
  border-left-color: #b38c00;
}
.callout.alert {
  background: #f8e1de;
  border-left-color: #b50909;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Section spacing ---------- */
section { margin-bottom: 2.5rem; }
.section-title {
  border-bottom: 2px solid #1a4480;
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.97rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #dfe1e2;
  vertical-align: top;
}
th {
  background: #f0f0f0;
  font-weight: 700;
}

/* ---------- Numbered process list (no bullets per user preference; use numbered) ---------- */
ol.process { padding-left: 1.4rem; }
ol.process li { margin-bottom: 0.6rem; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid #dfe1e2;
  padding: 1rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
  color: #1b1b1b;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: #005ea2;
}
details.faq[open] summary::after { content: "-"; }
details.faq .answer { padding-top: 0.6rem; color: #1b1b1b; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1b1b1b;
  color: #d9e8f6;
  padding: 2.25rem 0 1.5rem;
  font-size: 0.93rem;
  margin-top: 3rem;
}
.site-footer a { color: #d9e8f6; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-cols h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid #3d4551;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #a9aeb1;
}
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffbe2e;
  color: #1b1b1b;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 0.5rem; z-index: 100; }
