/* S1Print site styles. No external resources: everything is served from this origin. */

:root {
  /* Brand colours: navy from the S1Print logo; gold, teal and red-orange from the SourceOne logo. */
  --navy: #184888;
  --navy-dark: #10325f;
  --teal: #2a8dba;
  --orange: #f0b241;
  --red-orange: #c42d10;
  --ink: #231f20;
  --muted: #555152;
  --line: #dcdfe5;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --ph-bg: #fff6d6;
  --ph-line: #b07d00;
  --radius: 8px;
  --max: 68rem;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--navy-dark); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 4px solid var(--orange);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 154px; height: 40px; }
.brand:hover { color: var(--ink); }
.brand-by {
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Main content */
main { display: block; padding: 2.5rem 0 3.5rem; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.875rem, 4.5vw, 2.625rem); margin: 0 0 1rem; letter-spacing: -0.015em; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }

p, ul, ol, dl, table { margin: 0 0 1rem; }
li + li { margin-top: 0.25rem; }

.lead { font-size: 1.25rem; color: var(--muted); max-width: 42rem; }
.prose { max-width: 46rem; }

.hero {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
  margin: -2.5rem 0 2.5rem;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 { max-width: 40rem; }
.hero-logo { width: 240px; justify-self: start; }
@media (min-width: 48rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 280px; }
  .hero-logo { width: 280px; justify-self: end; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--navy); }
.button-secondary:hover { background: var(--bg-soft); color: var(--navy-dark); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--bg);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Definition list used for requirements and contact details */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  max-width: 46rem;
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.125rem; }
  .facts dd + dt { margin-top: 0.75rem; }
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-scroll:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; margin: 0; }
caption { text-align: left; padding: 0.75rem 1rem; font-weight: 600; }
th, td { padding: 0.625rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--bg-soft); }
code, .mono { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 0.9375em; }
code { overflow-wrap: anywhere; }

/* Placeholders: deliberately loud so nothing unfinished ships unnoticed. */
.ph {
  background: var(--ph-bg);
  outline: 1px dashed var(--ph-line);
  padding: 0 0.25em;
  border-radius: 3px;
  color: #5c4100;
  font-weight: 600;
}
.ph-block {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--ph-bg);
  border: 2px dashed var(--ph-line);
  border-radius: var(--radius);
  color: #3d2b00;
  max-width: 46rem;
}
.ph-block > :last-child { margin-bottom: 0; }
.ph-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c4100;
}

.note {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--teal);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 46rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.75rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-nav, .skip-link, .actions { display: none; }
  .site-header { border-bottom-color: #000; }
  a { color: #000; }
}

/* Nav and hero adjustments */
.site-nav li + li { margin-top: 0; }
@media (max-width: 30rem) {
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0; justify-content: space-between; }
  .site-nav a { padding: 0.5rem 0.4rem; font-size: 1rem; }
  .hero { padding: 2rem 0; }
  .hero-logo { width: 170px; }
}

/* Coming-soon page */
.soon { padding-top: 4rem; padding-bottom: 5rem; }
.soon h1 { margin-bottom: 0.75rem; }
