@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #203630;
  --muted: #52665e;
  --green: #123c35;
  --accent: #dff3a4;
  --line: #dce3da;
  --paper: #fff;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #f5f6f0;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
a {
  color: var(--green);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid #31775b;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: -0.055em;
  margin-bottom: 1.4rem;
}
h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.12rem;
  margin: 1.8rem 0 0.7rem;
}
p {
  margin-bottom: 1rem;
}
li + li {
  margin-top: 0.55rem;
}
ul,
ol {
  padding-left: 1.35rem;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: white;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  padding: 0.9rem max(1.2rem, calc((100vw - 1240px) / 2));
  background: #f5f6f0f5;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
}
.header-link {
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.5rem;
}
.layout {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 3rem;
  padding: 2.5rem 1.5rem;
}
.sidebar {
  position: sticky;
  top: 7rem;
  align-self: start;
  max-height: calc(100dvh - 8rem);
  overflow-y: auto;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
nav {
  display: grid;
  gap: 0.2rem;
}
nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
}
nav a:hover,
nav a:focus-visible {
  background: #e6ebdf;
}
nav a span {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 1.2rem;
}
.sidebar-note {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0.7rem 0;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.sidebar-note p {
  margin-top: 0.5rem;
}
main {
  min-width: 0;
}
.hero {
  padding: 1.8rem 0 2.1rem;
}
.hero .eyebrow {
  margin-bottom: 1.3rem;
}
.hero-description {
  max-width: 38rem;
  font-size: 1.13rem;
  color: var(--muted);
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: #34715a;
  border-radius: 50%;
  margin-right: 0.25rem;
}
.search {
  margin-bottom: 2rem;
}
.search label {
  display: block;
  font-weight: 650;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.search-row {
  display: flex;
  gap: 0.5rem;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 1px solid #b6c2b7;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  background: white;
  color: var(--ink);
}
.search button {
  border: 1px solid #b6c2b7;
  border-radius: 0.6rem;
  background: #edf0e6;
  padding: 0.7rem 1rem;
  color: var(--ink);
}
.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
#search-status {
  font-size: 0.8rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
}
#search-status:empty {
  display: none;
}
.manual-section,
.empty-state {
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
}
.section-intro,
.muted {
  color: var(--muted);
}
.pill {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 2rem;
  background: var(--accent);
  color: var(--green);
}
.updates {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.updates .eyebrow,
.updates .section-intro {
  color: #c3d8ce;
}
.updates :focus-visible {
  outline-color: var(--accent);
}

.progress-note {
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 1rem;
  border-left: 3px solid #76934c;
  background: #edf2e5;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.92rem;
}
.progress-note p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}
.chapter-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.section-heading {
  align-items: center;
  margin-bottom: 0.7rem;
}
.section-heading .eyebrow {
  margin: 0;
}
.section-intro {
  margin-bottom: 0;
}
.pill {
  background: #edf2e5;
  letter-spacing: 0.02em;
}
.updates .update-meta {
  color: #c3d8ce;
  font-size: 0.78rem;
}
.updates a {
  color: var(--accent);
  font-weight: 650;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.page-footer p {
  margin: 0.25rem 0 0;
}
.page-footer a {
  flex-shrink: 0;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .manual-section {
    padding: 1.5rem;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 5.5rem;
  }
  .site-header {
    min-height: 4.5rem;
    padding: 0.75rem 1rem;
  }
  .header-link {
    font-size: 0.75rem;
    max-width: 7rem;
  }
  .brand small {
    font-size: 0.53rem;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .sidebar {
    position: static;
    max-height: none;
    width: 100%;
  }
  .sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 0.4rem;
    padding: 0.35rem 0.1rem 0.7rem;
  }
  nav a {
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
  }
  nav a span {
    display: none;
  }
  .hero {
    padding: 1rem 0.2rem 1.7rem;
  }
  h1 {
    font-size: clamp(2.1rem, 8vw, 3.5rem);
  }
  .hero-description {
    font-size: 1rem;
  }
  .manual-section,
  .empty-state {
    padding: 1.3rem;
    border-radius: 0.8rem;
  }
  .page-footer {
    flex-wrap: wrap;
  }
}
@media print {
  :root,
  body {
    color: #000;
    background: #fff;
    font-size: 10pt;
  }
  .site-header,
  .sidebar,
  .search,
  .skip-link,
  .page-footer a,
  #no-results {
    display: none !important;
  }
  .layout {
    display: block;
    max-width: none;
    padding: 0;
  }
  .hero {
    padding: 0;
  }
  h1 {
    font-size: 28pt;
  }
  h2 {
    font-size: 18pt;
  }
  .manual-section,
  .manual-section[hidden] {
    display: block !important;
    padding: 1rem 0;
    background: white;
    color: black;
    border: 0;
    border-top: 1px solid #aaa;
    border-radius: 0;
    break-inside: avoid;
  }
  .updates p,
  .updates .eyebrow,
  .updates .update-meta,
  .updates a {
    color: black;
  }
  h2,
  h3 {
    break-after: avoid;
  }
}
