/* Public guide and tool pages. Tokens mirror #public-overview in web/landing.css. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #103b2f;
  --muted: #416149;
  --paper: #fafbf6;
  --tint: #e4efce;
  --accent: #cef374;
  --line: #cedbc5;
  --green: #087c61;
  --amber: #8a5a00;
  --amber-bg: #fdf3dc;
  --red: #9b2c2c;
  --red-bg: #fbe9e7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 "Manrope", sans-serif;
}
::selection {
  background: var(--accent);
}
a {
  color: var(--ink);
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.guide-nav,
.guide-hero,
.guide-body,
.guide-footer {
  padding-left: max(22px, calc((100vw - 1040px) / 2));
  padding-right: max(22px, calc((100vw - 1040px) / 2));
}
.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  background: var(--tint);
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.guide-brand img {
  width: 30px;
  height: 30px;
}
.guide-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.guide-nav nav a {
  text-decoration: none;
}
.guide-nav nav a:hover {
  text-decoration: underline;
}
.guide-hero {
  padding-top: 48px;
  padding-bottom: 56px;
  background: var(--tint);
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
}
.guide-body {
  padding-top: 56px;
  padding-bottom: 72px;
}
.guide-body > section {
  max-width: 760px;
  margin: 0 0 52px;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}
ul,
ol {
  padding-left: 22px;
}
li + li {
  margin-top: 6px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 700 14px/1.2 "Manrope", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms,
    box-shadow 200ms;
}
.button:hover {
  background: #24583f;
  box-shadow: 0 8px 20px #103b2f18;
}
.fine {
  font-size: 13px;
  color: var(--muted);
}
.cta {
  max-width: 760px;
  padding: 32px;
  border-radius: 16px;
  background: var(--ink);
  color: #f4f8eb;
}
.cta h2 {
  color: #fff;
}
.cta p {
  margin: 0 0 22px;
  color: #c8dbc6;
}
.cta .button {
  background: var(--accent);
  color: var(--ink);
}
.cta .button:hover {
  background: #e0fa9b;
}
.cta .fine {
  margin: 16px 0 0;
  color: #c8dbc6;
}
.cta .fine a {
  color: #f4f8eb;
}
.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  margin: 0;
  padding: 18px 20px 18px 62px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  font-weight: 800;
}
.steps p {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
thead th {
  background: var(--tint);
  font-size: 13px;
  letter-spacing: 0.02em;
}
tbody th {
  font-weight: 700;
}
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 700;
  cursor: pointer;
}
details p {
  margin: 10px 0 0;
}
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.related li {
  margin: 0;
}
.related a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.related a:hover {
  border-color: var(--ink);
}
.guide-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 36px;
  background: var(--ink);
  color: #f4f8eb;
  font-size: 13px;
}
.guide-footer a {
  color: inherit;
  text-decoration: none;
}
.guide-footer a:hover {
  text-decoration: underline;
}
.guide-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* Autofill checker */
.checker {
  max-width: 760px;
  margin-top: 32px;
}
.checker label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.checker-row {
  display: flex;
  gap: 10px;
}
.checker input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.3 "Manrope", sans-serif;
}
.checker input:focus {
  border-color: var(--ink);
}
.checker .fine {
  margin: 10px 0 0;
}
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.examples button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffffaa;
  color: var(--ink);
  font: 600 13px/1.3 "Manrope", sans-serif;
  cursor: pointer;
}
.examples button:hover {
  border-color: var(--ink);
}
.result {
  max-width: 760px;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 12px;
  background: #fff;
}
.result[hidden] {
  display: none;
}
.result[data-status="basic"] {
  border-left-color: #7a9a3a;
}
.result[data-status="manual"],
.result[data-status="board"] {
  border-left-color: var(--amber);
}
.result[data-status="invalid"] {
  border-left-color: var(--red);
}
.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.result[data-status="manual"] .badge,
.result[data-status="board"] .badge {
  background: var(--amber-bg);
  color: var(--amber);
}
.result[data-status="invalid"] .badge {
  background: var(--red-bg);
  color: var(--red);
}
.result h2 {
  font-size: 22px;
}
.result ul {
  margin: 0;
}
.result-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.result-cta[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 640px) {
  .guide-nav nav a:not(.nav-signin) {
    display: none;
  }
  .guide-hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .lead {
    font-size: 16px;
  }
  .checker-row {
    flex-direction: column;
  }
  .cta {
    padding: 24px;
  }
  table {
    min-width: 0;
  }
  thead {
    display: none;
  }
  tr,
  tbody th,
  td {
    display: block;
  }
  tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  tbody tr:last-child {
    border-bottom: 0;
  }
  tbody th,
  td {
    padding: 0;
    border: 0;
  }
  tbody th {
    margin-bottom: 8px;
  }
  td + td {
    margin-top: 10px;
  }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
