/* Get Paged — site stylesheet
   One accent colour (maritime blue), system fonts, no external requests.
   Light and dark palettes follow the visitor's device setting. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f2f4f6;
  --ink: #15202b;
  --muted: #4c5864;
  --line: #d3d9df;
  --accent: #0a4d8c;
  --accent-ink: #ffffff;
  --header-bg: #0b2a52;
  --header-ink: #ffffff;
  --focus: #0a4d8c;

  --max: 70rem;
  --prose: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151c;
    --bg-soft: #17212b;
    --ink: #e3e9ef;
    --muted: #a8b3be;
    --line: #2d3b48;
    --accent: #8cc3ff;
    --accent-ink: #0e151c;
    --header-bg: #08203f;
    --header-ink: #ffffff;
    --focus: #8cc3ff;
  }
}

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

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

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

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.site-header a {
  color: var(--header-ink);
}

.site-header :focus-visible {
  outline-color: #ffffff;
}

.wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: currentColor;
}

.main-nav a[aria-current="page"] {
  border-bottom-color: currentColor;
  font-weight: 600;
}

/* Menu button, shown on narrow screens only (js/nav.js reveals it) */

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--header-ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--header-ink);
}

@media (max-width: 48rem) {
  .has-toggle .menu-toggle {
    display: inline-flex;
  }

  .has-toggle .main-nav {
    display: none;
    width: 100%;
  }

  .has-toggle.menu-open .main-nav {
    display: block;
  }

  .has-toggle .main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .has-toggle .main-nav a {
    display: block;
    padding-block: 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .has-toggle .main-nav a:hover,
  .has-toggle .main-nav a[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* Access notice strip, shown on every page */

.access-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.access-strip p {
  margin: 0;
  padding-block: 0.6rem;
}

/* Main content */

main {
  padding-block: 2.5rem 4rem;
}

.page-head {
  max-width: var(--prose);
  margin-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem);
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.1875rem;
  margin-top: 2rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
}

.prose {
  max-width: var(--prose);
}

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

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

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

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

/* Notice box: important statements */

.notice {
  max-width: var(--prose);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--accent);
  background: var(--bg-soft);
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 0.5rem;
}

/* Numbered flow (used as the step diagrams) */

.steps {
  max-width: var(--prose);
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 1.5rem 3.5rem;
}

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

/* Connector line between steps */
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.5rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--line);
}

.steps h3 {
  margin: 0.3rem 0 0.35rem;
  font-size: 1.0625rem;
}

.steps p {
  margin: 0 0 0.5rem;
}

/* Plain bordered list of points */

.rules {
  max-width: var(--prose);
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rules li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 13rem));
  gap: 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.shots figcaption {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

/* Link list (further information) */

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
}

.link-list a {
  font-weight: 600;
}

.link-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.apply-line {
  margin: 2rem 0 0;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.9375rem;
}

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

th {
  font-weight: 600;
  border-bottom-width: 2px;
}

caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.5rem;
  color: var(--muted);
}

/* Contents list on long pages */

.contents {
  max-width: var(--prose);
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
}

.contents h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: 0.9375rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 40rem) {
  main {
    padding-block: 1.75rem 3rem;
  }

  h2 {
    margin-top: 2.25rem;
  }
}
