/* tfishgear research site
   Atkinson Hyperlegible is under the SIL Open Font License.
   See /fonts/OFL.txt */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #12202a;
  --ink-soft: #243644;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --line: #c5d2db;
  --header: #14303a;
  --header-text: #f3f7f8;
  --header-muted: #c5dbe3;
  --accent: #0a4f5e;
  --link: #0a4e78;
  --focus: #0b4f9c;
  --strip: #e4eef2;
  --note: #e4eef2;
}

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

html {
  font-synthesis: none;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  font-weight: 400;
  hyphens: manual;
}

::selection {
  background: var(--header);
  color: var(--header-text);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 5;
  background: var(--surface);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 700;
  text-decoration: underline;
}

.skip:focus {
  top: 1rem;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.22;
  font-weight: 700;
  text-wrap: balance;
  scroll-margin-top: 1.25rem;
}

h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 16em;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 2.75rem 0 0.8rem;
  max-width: 22em;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
}

p,
li,
dd {
  margin-top: 0;
}

main p,
main li,
.site-footer p {
  max-width: 65ch;
}

p {
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.32rem;
  line-height: 1.5;
  max-width: 32em;
}

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

a:visited {
  color: var(--link);
}

a:hover {
  color: var(--accent);
}

strong {
  font-weight: 700;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

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

.site-header :focus-visible {
  outline-color: var(--header-text);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--header-text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

a.brand:visited {
  color: var(--header-text);
}

.brand:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mark {
  width: 36px;
  height: 36px;
  flex: none;
}

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

.nav-button {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  color: var(--header-muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  border-radius: 8px;
}

a.site-nav-link:visited,
.site-nav a:visited {
  color: var(--header-muted);
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration-thickness: 3px;
}

.status-strip {
  background: var(--strip);
  border-bottom: 1px solid var(--line);
}

.status-strip p {
  margin: 0;
  padding: 0.8rem 0;
  max-width: none;
}

main {
  padding-top: 2.2rem;
  padding-bottom: 3.5rem;
}

.note {
  background: var(--note);
  border-left: 6px solid var(--accent);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 1.75rem 0 0.5rem;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.facts div {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--line);
}

.facts div:first-child {
  border-top: 0;
}

.facts dt {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.25rem 1.05rem;
}

.card p:last-child,
.placeholder p:last-child {
  margin-bottom: 0;
}

.card h2,
.card h3,
.placeholder h2 {
  margin-top: 0;
}

.num {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-family: ui-monospace, "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 700;
}

.policy h1,
.policy h2 {
  max-width: 22em;
}

.policy {
  overflow-wrap: break-word;
}

.policy ul ul {
  margin-top: 0.45rem;
}

.placeholder {
  background: var(--surface);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1rem;
}

.card.placeholder {
  border-style: dashed;
  border-width: 2px;
}

.badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.6rem;
  background: var(--header);
  color: var(--header-text);
  font-weight: 700;
  border-radius: 999px;
}

.on-page {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.on-page a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0 0.4rem;
}

a.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

a.btn:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

a.btn-primary,
a.btn-primary:visited {
  background: var(--header);
  color: var(--header-text);
}

a.btn-primary:hover {
  background: #0e4c5c;
  color: #ffffff;
}

a.btn-secondary,
a.btn-secondary:visited {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--header);
}

a.btn-secondary:hover {
  background: var(--strip);
  color: var(--ink);
}

.btn .host {
  font-size: 1.0625rem;
  font-weight: 400;
}

.site-footer {
  background: var(--header);
  color: var(--header-text);
  padding: 2rem 0 2.4rem;
}

.site-footer p {
  color: var(--header-text);
}

.site-footer a,
.site-footer a:visited {
  color: #e7f2f5;
  font-weight: 700;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal {
  margin-bottom: 0;
  color: var(--header-muted);
}

@media (max-width: 759px) {
  .brand {
    font-size: 1.35rem;
  }

  .mark {
    width: 32px;
    height: 32px;
  }

  .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 5.5rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid #d7eef3;
    border-radius: 10px;
    color: var(--header-text);
    font-weight: 700;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle:focus-visible + .nav-button {
    outline: 3px solid var(--header-text);
    outline-offset: 3px;
  }

  .nav-toggle:not(:checked) + .nav-button .when-open {
    display: none;
  }

  .nav-toggle:checked + .nav-button .when-closed {
    display: none;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-bottom: 0.4rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0.35rem;
  }
}

@media (min-width: 760px) {
  .nav-toggle,
  .nav-button {
    display: none;
  }
}

@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .facts div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .facts div:first-child {
    border-left: 0;
  }

  .cards.two,
  .cards.four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .status-strip,
  .site-footer,
  .skip,
  .on-page,
  .actions {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  a {
    color: #000000;
  }
}
