/* Shared by every page of the INCCM App privacy site. */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c2731;
  --muted: #56616b;
  --border: #e3ded4;
  --heading: #154663;
  --link: #15557a;
  --gold: #8f5a12;
  --gold-tint: #fbf3e4;
  --gold-line: #e9d3ac;
  --mark: #ba7826;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151c;
    --surface: #151f29;
    --text: #e4e9ed;
    --muted: #9eaab4;
    --border: #263440;
    --heading: #d3e6f3;
    --link: #8fc4e6;
    --gold: #e6ba6e;
    --gold-tint: #1e1c17;
    --gold-line: #4a3b22;
    --mark: #e6ba6e;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.masthead img {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--border);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0.1rem 0 0.35rem;
  color: var(--heading);
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Short version */

.glance {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: 1rem;
}

.glance h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--heading);
}

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

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0.55rem 0;
}

.checks svg {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--mark);
}

/* Contents */

.toc {
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9688rem;
}

.toc li {
  break-inside: avoid;
  margin: 0.2rem 0;
}
.toc li::marker {
  color: var(--muted);
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

/* Sections */

section {
  scroll-margin-top: 1.5rem;
}

section > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 2.75rem 0 0.75rem;
  color: var(--heading);
  font-size: 1.375rem;
  line-height: 1.3;
}

section > h2 .num {
  flex: none;
  color: var(--gold);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--heading);
  font-size: 1.0625rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}
ul {
  padding-left: 1.4rem;
}
li {
  margin: 0.35rem 0;
}
li::marker {
  color: var(--mark);
}

.note {
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.9688rem;
}

/* Numbered steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 3.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
}

.steps li + li {
  margin-top: 0.6rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.55rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Data table */

.table-wrap {
  margin: 1.25rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  font-size: 0.9688rem;
  line-height: 1.5;
}

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

tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-tint);
}

td:first-child {
  font-weight: 600;
  width: 36%;
}

@media (max-width: 640px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  tr {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  tbody tr:last-child {
    border-bottom: 0;
  }
  td {
    width: auto !important;
    padding: 0.15rem 0;
    border: 0;
  }
  td + td {
    margin-top: 0.5rem;
  }
  td + td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.contact address {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  font-style: normal;
  font-size: 0.9688rem;
}

.contact strong {
  display: block;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.contact .role {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }
  .masthead {
    padding-top: 2rem;
    gap: 1rem;
  }
  .masthead img {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.9rem;
  }
  .glance,
  .toc {
    padding: 1.15rem 1.1rem;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --gold-tint: #ffffff;
  }
  .toc,
  footer a {
    display: none;
  }
  section {
    break-inside: auto;
  }
  section > h2 {
    break-after: avoid;
  }
  a {
    color: inherit;
  }
}
