/* Integrity Florida, v2 redesign. One stylesheet, no framework, no JS.
   Palette is navy and white plus navy-tinted neutrals derived from the navy. */

:root {
  --navy: #25274d;
  --navy-deep: #1a1c3a;
  --ink: #1f2130;
  --muted: #5b5e7c;
  --line: #d9dbe6;
  --tint: #f1f2f7;
  --white: #fff;

  --heading: "Zilla Slab", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  /* type scale, ratio 1.25 from an 18px base */
  --step--1: 1rem;        /* 16px  */
  --step-0: 1.125rem;     /* 18px  */
  --step-1: 1.375rem;     /* 22px  */
  --step-2: 1.75rem;      /* 28px  */
  --step-3: 2.1875rem;    /* 35px  */
  --step-4: 2.75rem;      /* 44px  */
  --step-5: 3.5rem;       /* 56px  */

  --measure: 70ch;
  --wrap: 1120px;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 6rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--navy-deep); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol { margin: 0 0 1.25em; }
p:last-child, ul:last-child { margin-bottom: 0; }

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

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.25em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose li p { margin-top: 0.35em; }

.eyebrow {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.h-small { font-size: var(--step-1); margin-bottom: 0.5rem; }
.mt { margin-top: var(--space-m); }

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

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}
.button:hover, .button:focus { background: var(--navy-deep); color: var(--white); }
.button.light { background: var(--white); color: var(--navy); }
.button.light:hover, .button.light:focus { background: var(--tint); color: var(--navy-deep); }

/* ---------- header and nav ---------- */

.site-header {
  background: var(--navy);
  color: var(--white);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  min-height: 5.5rem;
}

.site-header .logo { display: block; line-height: 0; padding: 1rem 0; }
.site-header .logo img { width: 240px; height: auto; }

.site-nav { display: contents; }

.menu-toggle {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.menu-label {
  display: none;
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 600;
}
.menu-label::before { content: "\2630"; margin-right: 0.6rem; }
.menu-toggle:checked ~ .menu-label::before { content: "\2715"; }
.menu-toggle:focus-visible ~ .menu-label { outline: 2px solid var(--white); outline-offset: 4px; }

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0 1.75rem;
}
.menu-panel li { position: relative; }
.menu-panel a {
  display: block;
  padding: 1.9rem 0;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.menu-panel a:hover, .menu-panel a:focus,
.menu-panel [aria-current="page"] { border-bottom-color: var(--white); color: var(--white); }
.menu-panel a:focus-visible { outline-color: var(--white); }

.menu-panel .has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.45em;
  border: 4px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
  vertical-align: 0.2em;
}
.menu-panel .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 14rem;
  padding: 0.5rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(37, 39, 77, 0.15);
  z-index: 10;
}
.menu-panel .has-sub:hover .sub,
.menu-panel .has-sub:focus-within .sub { display: block; }
.menu-panel .sub a {
  padding: 0.55rem 1rem;
  color: var(--navy);
  border-bottom: 0;
  font-weight: 400;
}
.menu-panel .sub a:hover, .menu-panel .sub a:focus { background: var(--tint); color: var(--navy-deep); }

.menu-panel .donate a {
  margin-left: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 3px;
  border-bottom: 0;
}
.menu-panel .donate a:hover, .menu-panel .donate a:focus { background: var(--tint); color: var(--navy-deep); }

@media (min-width: 900px) {
  .menu-panel { display: block; }
}

@media (max-width: 899px) {
  .menu-label { display: block; }
  .menu-panel { display: none; width: 100%; padding-bottom: 1rem; }
  .menu-toggle:checked ~ .menu-panel { display: block; }
  .menu-panel ul { display: block; }
  .menu-panel a { padding: 0.65rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .menu-panel .has-sub > a::after { display: none; }
  .menu-panel .sub {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .menu-panel .sub a { color: var(--white); padding-left: 1.25rem; }
  .menu-panel .sub a:hover, .menu-panel .sub a:focus { background: transparent; color: var(--white); }
  .menu-panel .donate a { display: inline-block; margin: 1rem 0 0; }
}

/* ---------- sections and rhythm ---------- */

main { padding-block: var(--space-l) var(--space-xl); }
.home main { padding-top: 0; }

.section { padding-block: var(--space-l); }
.section + .section { border-top: 1px solid var(--line); }
.section > .wrap > h2:first-child,
.section > .wrap > .eyebrow + h2 { margin-bottom: var(--space-m); }

.section.tint { background: var(--tint); border-top: 0; }
.section.navy { background: var(--navy); color: var(--white); border-top: 0; }
.section.navy h2, .section.navy h3, .section.navy .eyebrow { color: var(--white); }
.section.navy a { color: var(--white); }

.page-head { padding-block: var(--space-l) var(--space-m); }
.page-head h1 { margin-bottom: 0.25em; }
.page-head p { max-width: var(--measure); font-size: var(--step-1); color: var(--muted); }

/* ---------- homepage ---------- */

.hero {
  background: var(--tint);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-l);
  align-items: center;
  padding-block: var(--space-xl);
}
.hero h1 {
  font-size: clamp(var(--step-3), 5vw, var(--step-5));
  margin-bottom: 0.4em;
}
.hero p {
  font-size: var(--step-1);
  max-width: 34ch;
  margin-bottom: 1.5em;
}
.hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 899px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: var(--space-l); }
  .hero img { order: -1; aspect-ratio: 16 / 9; }
}

.area-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--space-m);
}
.area-grid a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  height: 100%;
}
.area-grid a:hover, .area-grid a:focus { border-color: var(--navy); }
.area-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.area-grid .card-body { padding: 1rem 1.25rem 1.1rem; }
.area-grid h3 {
  font-size: var(--step-1);
  margin: 0;
}
.area-grid p { margin: 0.4rem 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.area-grid a:hover h3, .area-grid a:focus h3 { text-decoration: underline; text-underline-offset: 0.15em; }

.area-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.5rem var(--space-m);
}
.area-links a {
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}
.area-links a:hover, .area-links a:focus { text-decoration: underline; }

.quote-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-m);
}
.quote-grid li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; }
.quote-grid img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--line);
}
.quote-grid blockquote { margin: 0 0 0.5rem; font-family: var(--heading); font-size: var(--step-1); line-height: 1.35; }
.quote-grid cite { font-style: normal; font-weight: 600; }
.quote-grid .source { font-size: var(--step--1); color: var(--muted); }
.section.tint .quote-grid .source a { color: var(--navy); }

.aside-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m) var(--space-l);
}
.aside-row .seal img { width: 90px; }
.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--navy);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
}
.social a:hover, .social a:focus { background: var(--navy); color: var(--white); }

/* ---------- lists of posts, reports, coverage ---------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
}
.post-list > li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.25rem var(--space-m);
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.post-list > li:last-child { border-bottom: 1px solid var(--line); }
.post-list time, .post-list .date {
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
}
.post-list h3 { font-size: var(--step-1); margin: 0 0 0.25rem; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover, .post-list h3 a:focus { text-decoration: underline; }
.post-list .meta { font-size: var(--step--1); color: var(--muted); margin: 0; }
.post-list .meta a { color: var(--muted); }
.post-list .pdf { margin: 0.35rem 0 0; font-size: var(--step--1); }
.post-list .pdf a { font-weight: 600; }
.post-list .pdf a::before { content: "PDF"; display: inline-block; font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.05rem 0.35rem; margin-right: 0.5rem; border: 1px solid var(--navy); border-radius: 2px; vertical-align: 0.15em; }
@media (max-width: 600px) {
  .post-list > li { grid-template-columns: 1fr; }
}

.pagination { margin-top: var(--space-m); font-size: var(--step--1); }
.pagination a, .pagination span { margin-right: 1rem; }

/* ---------- our impact ---------- */

.impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-l);
  max-width: var(--measure);
}
.impact-list h3 { font-size: var(--step-2); }
.impact-list h4 { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 1.25rem 0 0.5rem; font-family: var(--body); }
.impact-list ul { list-style: none; margin: 0; padding: 0; }
.impact-list ul li { padding: 0.35rem 0; border-top: 1px solid var(--line); }
.impact-list .area { margin: 1rem 0 0; font-size: var(--step--1); }

/* ---------- article with aside (ethics) ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--space-l);
  align-items: start;
}
@media (max-width: 899px) { .article-layout { grid-template-columns: 1fr; } }

.resources {
  background: var(--tint);
  border-radius: 4px;
  padding: var(--space-m);
  font-size: var(--step--1);
  position: sticky;
  top: 1rem;
}
.resources h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.resources .button { display: block; text-align: center; margin-bottom: 1.5rem; }
.resources h3 { font-size: var(--step-0); margin: 1.25rem 0 0.25rem; font-family: var(--body); }
.resources a { word-break: break-word; }

/* ---------- donate ---------- */

.donate-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); margin-bottom: var(--space-m); }
.legal { font-size: var(--step--1); color: var(--muted); }

/* ---------- faq ---------- */

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; max-width: var(--measure); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--heading); font-size: var(--step-1); font-weight: 600; color: var(--navy); }
.faq details[open] summary { margin-bottom: 0.75rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--space-l);
}
.site-footer a { color: var(--white); }
.site-footer .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-l);
  margin-bottom: var(--space-l);
}
.site-footer h2 { color: var(--white); font-size: var(--step-1); margin-bottom: 1rem; }
.site-footer .social a { border-color: rgba(255, 255, 255, 0.5); }
.site-footer .social a:hover, .site-footer .social a:focus { background: var(--white); color: var(--navy); }

.signup label { display: block; font-size: var(--step--1); margin-bottom: 0.75rem; }
.signup input[type="text"], .signup input[type="email"] {
  display: block;
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 3px;
  margin-top: 0.25rem;
  color: var(--ink);
}
.signup input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.signup .optin { font-size: var(--step--1); }
.signup .optin input { margin-right: 0.4rem; }
.signup button {
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  background: var(--white);
  color: var(--navy);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.signup .fine-print { font-size: 0.85rem; opacity: 0.8; margin-top: 1rem; }

.site-footer .fine {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-m);
  font-size: var(--step--1);
  opacity: 0.85;
}
.site-footer .legal-menu {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer .legal-menu a { text-decoration: none; }
.site-footer .legal-menu a:hover, .site-footer .legal-menu a:focus { text-decoration: underline; }

/* ---------- full-site additions ---------- */

.page-head .meta { color: var(--muted); font-size: var(--step-0); margin-bottom: 1rem; }
.page-head .eyebrow { margin-bottom: 0.5rem; }
.page-head .button { margin-top: 0.5rem; }

.report { font-size: var(--step-0); }
.report p { margin-bottom: 1.1em; }

.post-list .outlet { margin: 0 0 0.15rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.post-list.media h3 { font-family: var(--body); font-size: var(--step-0); font-weight: 600; line-height: 1.4; }

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-l);
  padding-block: var(--space-m) var(--space-l);
}
.two-up figure { margin: 0; }
@media (max-width: 899px) { .two-up { grid-template-columns: 1fr; } }

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-m);
}
.card-grid > li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-m);
}
.card-grid > li > :last-child { margin-bottom: 0; }
.card-grid .button { display: block; text-align: center; margin-bottom: 1rem; }

.person img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.person h3 { font-size: var(--step-1); margin-bottom: 0.1em; }
.person .role { color: var(--muted); font-size: var(--step--1); margin-bottom: 0.75rem; }

details { border-top: 1px solid var(--line); padding: 0.75rem 0; }
details + details { border-top: 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details[open] summary { margin-bottom: 0.75rem; }
details > :last-child { margin-bottom: 0.5rem; }
.card-grid details { border: 0; padding: 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
td, th { border-top: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }

.site-footer .index { list-style: none; margin: 0; padding: 0; }
.site-footer .index li { margin-bottom: 0.35rem; }
.site-footer .index a { text-decoration: none; }
.site-footer .index a:hover, .site-footer .index a:focus { text-decoration: underline; }
.site-footer .columns { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.person .dates { margin: 0 0 0.5rem; color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.person .memoriam {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* board photos are 110x132 uploads on the live site; show them at native size rather than upscaled */
.card-grid.board .person img { width: 110px; height: 132px; max-width: none; aspect-ratio: auto; }
.note { margin-top: var(--space-m); font-style: italic; color: var(--muted); }
