/* geoNFT site styles.
   Ported from the Secure Aerial Data Asset Registry (geonft.eu/sadar):
   white navigation bar, green wordmark, gray content band, light footer. */

/* Fonts are served from this site (SIL Open Font License, see assets/fonts/OFL-*.txt),
   so no visitor data goes to a font provider. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); }

:root {
  --background: #ffffff;
  --foreground: #212529;
  --brand: #008000;
  --brand-dark: #1f7a1f;
  --brand-tint: #eef6ee;
  --muted: #6c757d;
  --body-muted: #495057;
  --content: #eeeeee;
  --jumbo: #e9ecef;
  --footer: #f5f5f5;
  --border: #cccccc;
  --border-soft: #dddddd;
  --link: #007bff;
  --ok: #146c2e;
  --ok-strong: #1a7f37;
  --bad: #c62828;
  --warn: #9a6700;
  --info: #57606a;
  --code-bg: #f8f8f8;
  --radius: 0.3rem;
  --font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-brand: "Britannic Bold", "Oswald", "Arial Black", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #ffffff;
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Container, same breakpoints as the registry site */

.container-site {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 576px) {
  .container-site { max-width: 540px; }
}
@media (min-width: 768px) {
  .container-site { max-width: 720px; }
}
@media (min-width: 992px) {
  .container-site { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container-site { max-width: 1140px; }
}

/* Header and navigation */

.site-header {
  background: #ffffff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 0.9rem;
  gap: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: none;
}

@media (min-width: 768px) {
  .brand-logo { width: 72px; height: 72px; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title,
.brand-sub {
  font-family: var(--font-brand);
  color: var(--brand);
  font-weight: 700;
  line-height: 1.05;
}

.brand-title { font-size: 1.55rem; }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.01em; }

@media (min-width: 768px) {
  .brand-title { font-size: 2rem; }
  .brand-sub { font-size: 1rem; }
}

.nav-toggle {
  margin-left: auto;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: rgba(0, 0, 0, 0.55);
}

.nav-collapse { width: 100%; }

/* Without JavaScript the menu stays open, so every link is reachable. */
.js .nav-toggle { display: inline-flex; }
.js .nav-collapse { display: none; }
.js .nav-collapse.is-open { display: block; }

@media (min-width: 1200px) {
  .js .nav-toggle { display: none; }
  .nav-collapse,
  .js .nav-collapse {
    display: block;
    width: auto;
    margin-left: auto;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1200px) {
  .nav-list {
    flex-direction: row;
    align-items: center;
    margin: 0;
  }
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  font-weight: 400;
}

.nav-link.is-active {
  color: var(--brand);
  font-weight: 700;
}

.nav-link:hover {
  background: #aaaaaa;
  color: #ffffff;
}

.nav-link:active {
  background: #000000;
  color: #ffffff;
}

/* Content band */

.content-band {
  background: var(--content);
  border-top: 1px solid silver;
  border-bottom: 1px solid silver;
  padding: 2rem 0 3rem;
  flex: 1;
}

.breadcrumb {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: #999999;
}

.jumbotron {
  background: var(--jumbo);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .jumbotron { padding: 3.25rem 2rem; }
}

.jumbotron.is-centered { text-align: center; }

.jumbotron h1 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .jumbotron h1 { font-size: 2.1rem; }
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cooperation {
  margin: 1.5rem 0 0;
  color: var(--body-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.jumbo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.jumbotron.is-centered .jumbo-actions { justify-content: center; }

/* Buttons (links styled as buttons) */

.content-band a.button,
a.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.content-band a.button:hover,
a.button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.content-band a.button.is-secondary,
a.button.is-secondary {
  background: #ffffff;
  color: var(--brand);
}

.content-band a.button.is-secondary:hover,
a.button.is-secondary:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

/* Section tabs (pages within a role) */

.section-tabs {
  margin: -0.75rem 0 2rem;
}

.section-tabs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tab;
}

.section-tabs li { counter-increment: tab; }

.content-band .section-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--foreground);
  font-size: 0.9rem;
}

.content-band .section-tabs a::before {
  content: counter(tab);
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--jumbo);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.content-band .section-tabs a:hover {
  border-color: var(--brand);
  background: #ffffff;
  color: var(--brand);
}

.content-band .section-tabs a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.content-band .section-tabs a[aria-current="page"]::before {
  background: #ffffff;
  color: var(--brand);
}

/* Article typography */

.article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .article { padding: 2.25rem 2.5rem; }
}

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

.article h2 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

.article > h2:first-child,
.article > section:first-child > h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--brand-dark);
}

.article h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
}

.content-band p {
  margin: 0 0 1rem;
  hyphens: auto;
}

.content-band a {
  color: var(--link);
  text-decoration: none;
}

.content-band a:hover {
  background: #aaaaaa;
  color: #ffffff;
}

.content-band a:active {
  background: #000000;
  color: #ffffff;
}

.content-band ul:not(.plain):not(.breadcrumb):not(.keyword-list),
.content-band ol:not(.plain):not(.steps):not(.breadcrumb) {
  margin: 0.25rem 0 1rem;
  padding-left: 1.35rem;
}

.content-band li + li { margin-top: 0.35rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border: 1px solid #e3e3e3;
  border-radius: 0.2rem;
  padding: 0.05rem 0.3rem;
  overflow-wrap: anywhere;
}

pre {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #f8f8f8;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0.25rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}

pre[data-label] {
  position: relative;
  padding-top: 2rem;
}

pre[data-label]::before {
  content: attr(data-label);
  position: absolute;
  top: 0.45rem;
  left: 1rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

kbd {
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0.25rem;
  padding: 0.05rem 0.4rem;
  white-space: nowrap;
}

.ui {
  font-weight: 700;
}

/* Numbered steps */

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

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 2.6rem;
  min-height: 1.9rem;
}

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

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps > li > p:last-child,
.steps > li > pre:last-child { margin-bottom: 0; }

/* Callouts */

.notice {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}

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

.notice-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.notice-ok { border-left-color: var(--brand); background: #f6fbf6; }
.notice-warn { border-left-color: #d39e00; background: #fffbea; }
.notice-bad { border-left-color: var(--bad); background: #fdf3f3; }

/* Short label/value pairs, e.g. a test account inside a notice */
.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 0.5rem 0 0;
}
.kv dt { font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .kv dd { margin-bottom: 0.4rem; }
}

/* Cards */

.home-section { margin-top: 2.5rem; }

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.section-intro {
  text-align: center;
  max-width: 46rem;
  margin: -0.5rem auto 1.5rem;
  color: var(--body-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .card-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 991px) {
  .card-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.info-card:hover { border-color: var(--brand); }

.info-card h3 {
  color: var(--brand);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.info-card p {
  color: var(--body-muted);
  margin: 0 0 0.75rem;
}

.info-card ul { color: var(--body-muted); }

.info-card .card-host {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: -0.35rem 0 0.75rem;
}

.info-card .card-links {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-weight: 600;
}

.role-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  color: var(--brand);
}

/* Flow strip on the home page */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  counter-reset: flow;
}

@media (min-width: 992px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
}

.flow > li {
  counter-increment: flow;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.1rem;
}

.flow > li + li { margin-top: 0; }

@media (min-width: 992px) {
  .flow > li { margin-right: 1.5rem; }
  .flow > li:last-child { margin-right: 0; }
  .flow > li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.15rem;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 0.45rem solid transparent;
    border-bottom: 0.45rem solid transparent;
    border-left: 0.6rem solid var(--brand);
    transform: translateY(-50%);
  }
}

.flow-step {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.flow-step::before { content: "Step " counter(flow) " · "; }

.flow h3 {
  font-size: 1rem;
  margin: 0.3rem 0 0.35rem;
}

.flow p {
  font-size: 0.88rem;
  color: var(--body-muted);
  margin: 0;
}

.flow .flow-host {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Tables */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

.data-table {
  border: 1px solid var(--border);
  border-collapse: collapse;
  width: 100%;
  background: #ffffff;
  font-size: 0.92rem;
}

.data-table caption {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  margin: 0 0 0.5rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border-soft);
}

.data-table th {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f8f8f8;
}

.data-table td code { white-space: nowrap; }
.data-table td.wrap code { white-space: normal; }

@media screen and (max-width: 700px) {
  .data-table.is-stacked { border: 0; }
  .data-table.is-stacked thead {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
  }
  .data-table.is-stacked tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-soft);
  }
  .data-table.is-stacked td {
    display: block;
    border: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .data-table.is-stacked td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  .data-table.is-stacked td:last-child { border-bottom: 0; }
  .data-table td code { white-space: normal; }
}

/* Definition lists (glossary, facts) */

.def-list { margin: 0 0 1.25rem; }

.def-list dt {
  font-weight: 700;
  margin-top: 1rem;
}

.def-list dt:first-child { margin-top: 0; }

.def-list dd {
  margin: 0.2rem 0 0;
  color: var(--body-muted);
}

/* Two-column layout for "you need" lists */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.checklist {
  list-style: none;
  padding: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Diagram */

.figure {
  margin: 0 0 1.5rem;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* QGIS verification dialog replica */

.qgis-dialog {
  max-width: 760px;
  margin: 0 0 1.5rem;
  border: 1px solid #b9b9b9;
  border-radius: 8px;
  background: #ececec;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.qgis-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(#f4f4f4, #dedede);
  border-bottom: 1px solid #c4c4c4;
  font-weight: 600;
  color: #333333;
}

.qgis-titlebar .dots {
  display: inline-flex;
  gap: 6px;
}

.qgis-titlebar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  display: block;
}

.qgis-titlebar .dots i:nth-child(2) { background: #febc2e; }
.qgis-titlebar .dots i:nth-child(3) { background: #28c840; }

.qgis-titlebar .title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qgis-body {
  margin: 10px;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  padding: 10px 14px;
}

.qgis-body h3 { margin: 4px 0 8px; font-size: 16px; }
.qgis-body h4 { margin: 14px 0 4px; font-size: 13px; }
.qgis-body p { margin: 0 0 8px; }
.qgis-body table { border-collapse: collapse; }
.qgis-body td { padding: 2px 6px 2px 0; vertical-align: top; }
.qgis-body td:first-child { white-space: nowrap; }
.qgis-body code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.qgis-body small { color: #555555; }
.qgis-body .s-pass { color: var(--ok-strong); white-space: nowrap; }
.qgis-body .s-fail { color: var(--bad); white-space: nowrap; }
.qgis-body .s-skip { color: var(--warn); white-space: nowrap; }
.qgis-body .s-info { color: var(--info); white-space: nowrap; }

.qgis-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 10px 10px;
}

.qgis-footer span {
  padding: 3px 16px;
  border: 1px solid #b0b0b0;
  border-radius: 5px;
  background: #ffffff;
}

.callout-num {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #d39e00;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font);
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* Status chips used in the explanations */

.chip {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.chip-pass { color: var(--ok-strong); }
.chip-fail { color: var(--bad); }
.chip-skip { color: var(--warn); }
.chip-info { color: var(--info); }

/* Next / previous navigation */

.pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 576px) {
  .pager { grid-template-columns: 1fr 1fr; }
}

.content-band .pager a {
  display: block;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
}

.content-band .pager a:hover {
  border-color: var(--brand);
  background: #ffffff;
  color: var(--foreground);
}

.pager small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pager strong { color: var(--brand); }
.pager .is-next { text-align: right; }
.pager .is-next:only-child { grid-column: 2; }

@media (max-width: 575px) {
  .pager .is-next:only-child { grid-column: 1; }
}

/* Keyword badges */

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.keyword-list li + li { margin-top: 0; }

.keyword-badge {
  display: inline-block;
  border: 1px solid var(--border-soft);
  border-radius: 0.25rem;
  background: #f8f8f8;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Footer */

.site-footer {
  background: var(--footer);
  color: var(--foreground);
  font-weight: 300;
  font-size: 0.875rem;
  padding: 2rem 0;
}

.footer-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 576px) {
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .footer-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer-map h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.footer-map ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-map li + li { margin-top: 0.25rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  text-align: center;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr) 1.15fr; }
}

.site-footer a {
  color: var(--link);
  text-decoration: none;
}

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

.site-footer a:active {
  background: #000000;
  color: #ffffff;
}

.site-footer hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--border-soft);
}

.footer-note { margin: 0; }

@media print {
  .site-header,
  .site-footer,
  .section-tabs,
  .pager { display: none; }
  .content-band { background: #ffffff; border: 0; }
  .article { border: 0; padding: 0; }
}

.chip.chip-long {
  white-space: normal;
  border-radius: 0.4rem;
}
