/* Rainsoon public site. Colours, font and shapes follow the app (maquettes-validees.md § 2.19):
   flat colours, no gradient, very round corners. Light theme only: the dark one is not validated. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #16213a;
  --paper: #f6f3ec;
  --card: #ffffff;
  --muted: #5a5f6b;
  --divider: #e2dccd;
  --rain: #1e5aa8;
  --amber: #f2a33a;
  --soon: #f4c78a; /* coverage map only: the amber of the brand stays --amber */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--rain);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--rain);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

/* Keeps a short compound word, such as "e-mail", on one line. */
.nb {
  white-space: nowrap;
}

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: -100rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}

/* Header and footer, the same on every page */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
}

/* Language links: tall enough for a finger, 44 px at least. */
.top nav a {
  display: inline-block;
  padding-block: 0.625rem;
}

/* The language of the page, among the language links. */
.top nav a[aria-current] {
  color: var(--ink);
  text-decoration: none;
}

.top nav,
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}

.foot {
  margin-top: 4rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 2px solid var(--divider);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot p {
  margin: 0.75rem 0 0;
}

/* Legal pages */

.prose {
  max-width: 46rem;
  margin-inline: auto;
}

.prose h1 {
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.prose h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.updated {
  color: var(--muted);
  font-weight: 700;
}

/* On a translated legal page: which version prevails. */
.translation {
  color: var(--muted);
  font-size: 0.9375rem;
}

.box {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--card);
}

.box > :first-child {
  margin-top: 0;
}

.box > :last-child {
  margin-bottom: 0;
}

.box.dark {
  background: var(--ink);
  color: #ffffff;
}

.box.dark strong {
  color: var(--amber);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 2px solid var(--divider);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 800;
}

/* Information the owner still has to give. sitecheck.py refuses a site that holds one. */
.to-fill {
  padding: 0.0625rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
}
