:root {
  color-scheme: light;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --background: #f5f7fa;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5b6673;
  --line: #dce2e8;
  --accent: #245a4a;
  --accent-soft: #e8f1ed;
  --placeholder-background: #fff4cf;
  --placeholder-border: #e3c967;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  outline: 3px solid #8bb6a8;
  outline-offset: 3px;
  border-radius: 0.15rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.4rem;
  color: var(--surface);
  background: var(--accent);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  background: var(--surface);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.header-inner,
.footer-inner,
main {
  width: min(100% - 2rem, 50rem);
  margin-inline: auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

nav a,
.footer-links a {
  color: var(--muted);
}

main {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.35rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

h3 {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.05rem;
}

.intro {
  max-width: 42rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.draft-notice {
  margin-block: 1.75rem 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--placeholder-border);
  border-radius: 0.7rem;
  background: var(--placeholder-background);
}

.draft-notice strong {
  display: block;
  margin-bottom: 0.15rem;
}

.legal-section {
  margin-top: 1rem;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  padding-left: 1.25rem;
}

.placeholder {
  display: inline;
  padding: 0.08rem 0.25rem;
  border-radius: 0.2rem;
  background: var(--placeholder-background);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 650;
}

.placeholder-list {
  color: var(--muted);
}

.placeholder-list li + li {
  margin-top: 0.35rem;
}

.meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

code {
  padding: 0.14rem 0.36rem;
  border: 1px solid #c9ded6;
  border-radius: 0.34rem;
  color: #174c3d;
  background: var(--accent-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  font-weight: 680;
  white-space: nowrap;
}

.help-page .header-inner,
.help-page .footer-inner,
.help-page main {
  width: min(100% - 2rem, 72rem);
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #929ca6;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(11.5rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.help-navigation {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}

.help-navigation-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-navigation a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.help-navigation a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.help-navigation-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.help-content {
  min-width: 0;
}

.help-hero {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(36, 90, 74, 0.13), transparent 14rem),
    var(--surface);
}

.help-section {
  margin-top: 1.25rem;
  padding: clamp(1.2rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.help-section > :first-child,
.help-section > .section-heading:first-child > div > :first-child {
  margin-top: 0;
}

.help-section > :last-child,
.example-card > :last-child,
.info-note p:last-child {
  margin-bottom: 0;
}

.replacement-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.7rem;
  background: #f7f9fa;
}

.replacement-example p {
  margin: 0.25rem 0 0;
}

.replacement-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 750;
}

.example-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.section-heading > p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.placeholder-category {
  margin-top: 1.5rem;
  scroll-margin-top: 1rem;
}

.placeholder-category h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
}

.category-intro {
  max-width: 48rem;
  margin: -0.15rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.placeholder-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.placeholder-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

.placeholder-table th {
  color: var(--muted);
  background: #f7f9fa;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-table th:first-child,
.placeholder-table td:first-child {
  width: 27%;
}

.placeholder-table th:last-child,
.placeholder-table td:last-child {
  width: 24%;
}

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

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.example-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fafbfc;
}

.example-card:first-child {
  grid-column: 1 / -1;
}

.example-card h3 {
  margin: 0 0 0.9rem;
}

.example-card p {
  margin-top: 0.3rem;
}

.example-text {
  margin-bottom: 1rem;
}

.info-note {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #c9ded6;
  border-radius: 0.9rem;
  background: var(--accent-soft);
}

.info-note-icon {
  display: grid;
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 750;
}

.info-note h2 {
  margin: 0;
  font-size: 1.05rem;
}

.info-note p {
  margin-top: 0.35rem;
  color: #334b43;
  font-size: 0.94rem;
}

.future-section {
  border-style: dashed;
}

.footer-inner {
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 36rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  nav ul,
  .footer-links {
    gap-inline: 0.8rem;
  }
}

@media (max-width: 52rem) {
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-navigation {
    position: static;
  }

  .help-navigation-note {
    display: none;
  }
}

@media (max-width: 44rem) {
  .section-heading,
  .replacement-example {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .replacement-example {
    display: flex;
  }

  .replacement-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .placeholder-table-wrap {
    overflow: visible;
    border: 0;
  }

  .placeholder-table,
  .placeholder-table tbody,
  .placeholder-table tr,
  .placeholder-table td {
    display: block;
    width: 100%;
  }

  .placeholder-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .placeholder-table tr {
    margin-bottom: 0.75rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: var(--surface);
  }

  .placeholder-table tr:last-child {
    margin-bottom: 0;
  }

  .placeholder-table td,
  .placeholder-table td:first-child,
  .placeholder-table td:last-child {
    display: grid;
    grid-template-columns: minmax(6.7rem, 35%) minmax(0, 1fr);
    gap: 0.65rem;
    width: 100%;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
  }

  .placeholder-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .placeholder-table tbody tr:last-child td,
  .placeholder-table td:last-child {
    border-bottom: 0;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }

  .example-card:first-child {
    grid-column: auto;
  }
}

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