/* The landing site's one stylesheet (launch-l1-landing-page B1). System fonts
   only, so this file is the whole download besides the page; no inline styles
   anywhere (the site's Content-Security-Policy allows style-src 'self' only).
   Phone first: one column from 320 px, wider grids from there. */
:root {
  --green: #167c35;      /* ReLOAD green: links, headings (5.3:1 on white) */
  --green-dark: #0f5a26; /* hover */
  --green-tint: #eef6f0;
  --orange: #f47321;     /* the one accent: Request a project. Never text on
                            white (2.9:1); ink on orange is 6:1 */
  --orange-dark: #d95f12;
  --ink: #1b1b1b;
  --muted: #545454;      /* 7.5:1 on white */
  --paper: #ffffff;
  --wash: #f6f6f6;
  --line: #d9d9d9;
  --page: 60rem;
  --measure: 42rem;
}

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

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

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

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p, ul { max-width: var(--measure); }

.lead { font-size: 1.125rem; }

.skip-link { position: absolute; left: -100vw; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1; padding: 0.5rem 1rem; background: var(--paper); }

/* For screen readers only: the " (opens in a new tab)" the build adds to a
   link that leaves the site (lib/src/external_links.dart). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The frame: header, main and footer share one width. */
.bar, main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1rem;
}
main { padding-bottom: 3rem; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.wordmark { display: block; line-height: 0; }
.wordmark img { display: block; width: 133px; height: 32px; }
.login { font-weight: 600; text-decoration: none; }
.login:hover { text-decoration: underline; }

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--green);
  border-radius: 0.375rem;
  background: var(--green);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }
.button.accent { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.button.accent:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .bar { padding-top: 1rem; padding-bottom: 1.5rem; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: var(--muted); }

/* Home */
.hero h1 { font-size: 1.85rem; margin-top: 2rem; max-width: 40rem; }

.video { margin: 2rem 0; }
.video video { display: block; width: 100%; height: auto; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card a {
  display: block;
  height: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.card a:hover { border-color: var(--green); background: var(--green-tint); }
.card-title { display: block; margin-bottom: 0.25rem; color: var(--green); font-size: 1.1rem; font-weight: 700; }
.card-title::after { content: " \2192"; }
.card-text { display: block; color: var(--muted); }

.cta { margin-top: 3rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }

/* Measures */
.search { margin: 1.5rem 0 1rem; max-width: var(--measure); }
.search label { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.search input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--muted);
  border-radius: 0.375rem;
  font: inherit;
}
.search input:focus-visible { border-color: var(--green); }
.missing { margin: 0.5rem 0 0; }
.status { color: var(--muted); }
.status.error { color: var(--ink); font-weight: 600; }

.measures h2 { font-size: 1.2rem; }
.measure-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.75rem;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.measure { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 0.5rem; }
.measure h3 { margin: 0; font-size: 1rem; }
.measure p { margin: 0.25rem 0 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--green);
  border-radius: 1rem;
  background: var(--green-tint);
  font-size: 0.85rem;
}
.tags .licence { border-color: var(--orange-dark); background: #fff3eb; }

.skeleton span {
  display: block;
  height: 4.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  background: var(--wash);
  animation: pulse 1.2s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 1; } to { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } }

/* Research */
.on-this-page { margin: 0 0 1rem; }
.links { padding-left: 1.25rem; }
.links li { margin-bottom: 0.5rem; }
.publications li { margin-bottom: 0.75rem; }
.case { max-width: var(--measure); padding: 0.25rem 0 0.25rem 1rem; border-left: 4px solid var(--green); margin: 1rem 0; }
.case h3 { margin-top: 0.5rem; }

/* Data & security */
.statements { padding-left: 1.25rem; }
.statements li { margin-bottom: 0.5rem; }
.copy-block {
  max-width: var(--measure);
  margin: 1rem 0;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--wash);
}
.copy-block h3 { margin: 0 0 0.5rem; }
.copy-text { white-space: pre-line; }
.copy { margin-top: 0.75rem; padding: 0.25rem 0.75rem; font-size: 0.9rem; }
.copy-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq h2 { font-size: 1.15rem; margin-top: 2rem; }

/* Setup guide */
.points { padding-left: 1.25rem; }
.points li { margin-bottom: 0.5rem; }

/* Request a project and its confirmation (launch-l2-project-request F1-F3) */
.notice {
  max-width: var(--measure);
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--green);
  border-left-width: 4px;
  border-radius: 0.375rem;
  background: var(--green-tint);
}
.notice.error { border-color: #b3261e; background: #fdf0ef; }
.notice p { margin: 0; }
.request-form { max-width: var(--measure); }
.form-note { color: var(--muted); }
.part {
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
}
fieldset.part > legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}
.field { margin: 0 0 1rem; }
.field label, .checklist-group legend { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.hint { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.95rem; }
.hint:empty { display: none; }
.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="number"],
.request-form input[type="search"],
.request-form select,
.request-form textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--muted);
  border-radius: 0.375rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.request-form input[type="number"] { max-width: 8rem; }
.request-form textarea { resize: vertical; }
.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible { border-color: var(--green); }
.request-form [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 0.25rem 0 0; color: #b3261e; font-weight: 600; }
.field-error::before { content: "\26A0\FE0E  "; }
.choice { margin: 0 0 1rem; padding: 0; border: 0; }
.choice legend { margin-bottom: 0.25rem; padding: 0; font-weight: 600; }
.choice label { display: inline-flex; gap: 0.5rem; align-items: center; margin-right: 1.5rem; padding: 0.25rem 0; }
.request-form input[type="radio"],
.request-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--green); }
.button.quiet { background: var(--paper); color: var(--green); }
.button.quiet:hover { background: var(--green-tint); color: var(--green-dark); }
.button.small { padding: 0.25rem 0.75rem; font-size: 0.9rem; }
.button:disabled, .button:disabled:hover {
  border-color: var(--line);
  background: var(--wash);
  color: var(--muted);
  cursor: default;
}
.members { margin: 0; padding: 0; list-style: none; }
.member fieldset {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.member legend { padding: 0 0.25rem; font-weight: 700; }
.checklist { margin: 0 0 1rem; }
.checklist-group { margin: 0 0 1rem; padding: 0; border: 0; }
.checklist-group ul { margin: 0; padding: 0; list-style: none; max-width: none; }
.checklist-group li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; }
.checklist-group li input { flex: none; margin-top: 0.2rem; }
/* The honeypot: off screen for people, a field for bots. */
.hp { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 36rem) {
  .checklist-group ul { columns: 2; column-gap: 1.5rem; }
  .checklist-group li { break-inside: avoid; }
}

@media (min-width: 36rem) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 48rem) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.5rem; margin-top: 3rem; }
}
