/* Page styles use the shared Lair tokens and base components. */
.wrap {
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--r-xs);
}
.skip-link:focus {
  top: 16px;
}
.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 650 27px var(--display);
  color: var(--text);
  letter-spacing: -0.04em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
}
.mark-base {
  fill: var(--surface-3);
}
.mark-accent {
  fill: var(--accent);
}
.mark-tile {
  fill: var(--text-2);
}
.brand-period {
  color: var(--accent);
}
.brand-label {
  font: 400 14px var(--font);
  letter-spacing: 0;
  color: var(--text-2);
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
  margin-left: 4px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.top-nav > a {
  color: var(--text-2);
}
.top-nav > a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.eyebrow {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 72px;
  padding: 80px 0 88px;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(48px, 6.8vw, 84px);
  font-weight: 550;
  line-height: 1.02;
}
.accent-word {
  color: var(--accent-text);
}
.hero-description {
  margin-top: 24px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.quiet-link {
  color: var(--text-2);
  font-size: 14px;
}
.start-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 75%), var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--text);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.start-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  text-decoration: none;
}
.start-card .eyebrow {
  margin-bottom: 24px;
}
.start-title {
  font-size: 38px;
  line-height: 1.1;
}
.start-steps {
  display: grid;
  gap: 16px;
  margin: 32px 0;
  color: var(--text-2);
  font-size: 14px;
}
.start-steps b {
  color: var(--accent-text);
  font: 12px var(--mono);
  margin-right: 14px;
}
.start-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  font-size: 14px;
}
.start-bottom > span {
  color: var(--accent-text);
}
.guides-section {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.directory-top {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.directory-top h2 {
  font-size: 36px;
  font-weight: 550;
  margin-top: 8px;
}
.guide-search {
  position: relative;
  width: min(100%, 320px);
}
.guide-search .input {
  padding-inline: 42px;
  background: var(--surface);
  font-size: 14px;
}
.guide-search > span {
  position: absolute;
  top: 7px;
  left: 16px;
  color: var(--text-2);
  font-size: 25px;
  pointer-events: none;
}
.guide-search kbd {
  position: absolute;
  top: 13px;
  right: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  width: 20px;
  text-align: center;
  color: var(--text-3);
  font: 12px / 20px var(--mono);
}
.guide-group {
  margin-bottom: 40px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.group-heading h2 {
  font-size: 16px;
  font-weight: 550;
}
.section-number {
  color: var(--text-3);
  font: 11px var(--mono);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guide-card {
  padding: 22px;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.guide-card:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  text-decoration: none;
}
.card-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 550;
}
.card-title > span {
  color: var(--text-3);
  font-size: 14px;
}
.guide-card:hover .card-title > span {
  color: var(--accent-text);
}
.card-description {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.search-status {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 24px;
}
.empty-results {
  padding: 40px 0;
  color: var(--text-2);
}
.help-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.help-banner h2 {
  margin: 8px 0;
  font-size: 32px;
  font-weight: 550;
}
.help-banner p:not(.eyebrow) {
  max-width: 620px;
  color: var(--text-2);
  font-size: 15px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-2);
}
.index-page {
  padding-top: 64px;
}
.index-page > h1 {
  font-size: 56px;
  margin-top: 16px;
  font-weight: 550;
}
.page-description {
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.6;
  margin-top: 16px;
}
.index-page > .page-description {
  margin-bottom: 48px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 170px;
  column-gap: 48px;
  padding-top: 36px;
  padding-bottom: 64px;
}
.docs-sidebar {
  font-size: 13px;
}
.guide-menu {
  position: sticky;
  top: 24px;
}
.guide-menu summary {
  display: none;
}
.sidebar-group {
  margin-bottom: 24px;
}
.sidebar-group p {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  margin: 0 10px 8px;
}
.sidebar-group a {
  display: block;
  color: var(--text-2);
  padding: 7px 10px;
  border-radius: var(--r-xs);
  line-height: 1.45;
}
.sidebar-group a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.sidebar-group a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 12px;
  margin-bottom: 40px;
}
.breadcrumb a {
  color: var(--text-2);
}
.guide-article {
  min-width: 0;
}
.guide-article > .eyebrow {
  color: var(--accent-text);
}
.guide-article h1 {
  margin-top: 14px;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 550;
  line-height: 1.08;
}
.guide-body {
  font-size: 16px;
  line-height: 1.8;
}
.guide-body section {
  margin-top: 44px;
  scroll-margin-top: 24px;
}
.guide-body h2 {
  font: 600 23px / 1.25 var(--display);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.guide-body p {
  margin-block: 16px;
  color: var(--text-2);
}
.guide-body strong {
  color: var(--text);
  font-weight: 550;
}
.guide-body ul,
.guide-body ol {
  padding-left: 24px;
  color: var(--text-2);
}
.guide-body li {
  margin-block: 10px;
  padding-left: 5px;
}
.guide-body li::marker {
  color: var(--accent-text);
}
.guide-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-body code {
  background: var(--surface-2);
  color: var(--text);
  padding: 2px 5px;
  border-radius: 4px;
  font: 0.85em var(--mono);
  overflow-wrap: anywhere;
}
.guide-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  color: var(--text);
}
.guide-body .heading-link {
  color: var(--text-3);
  font-size: 15px;
  margin-left: 10px;
  text-decoration: none;
}
.table-scroll {
  overflow-x: auto;
}
.guide-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-block: 16px;
  min-width: 380px;
}
.guide-body caption {
  text-align: left;
  margin-bottom: 12px;
  color: var(--text-2);
}
.guide-body th,
.guide-body td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.guide-body th {
  color: var(--text);
  font-weight: 550;
}
.guide-body td {
  color: var(--text-2);
}
.page-toc {
  font-size: 12px;
  padding-top: 64px;
}
.page-toc nav {
  position: sticky;
  top: 32px;
}
.page-toc p {
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-2);
}
.page-toc nav a {
  display: block;
  color: var(--text-2);
  border-left: 1px solid var(--line);
  padding: 8px 0 8px 14px;
  line-height: 1.5;
}
.toc-feedback {
  display: block;
  margin-top: 24px;
  color: var(--text-2);
}
.mobile-toc {
  display: none;
}
.related {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 28px;
}
.related h2 {
  margin: 8px 0 16px;
  font-size: 20px;
}
.related-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related .related-links a {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 14px;
}
.article-footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-2);
}
.guide-article .article-footer > a {
  color: var(--text-2);
}
.feedback-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  padding-block: 72px 96px;
}
.feedback-intro h1 {
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 550;
  line-height: 1.04;
  margin-top: 20px;
}
.feedback-note {
  margin-top: 44px;
  font-size: 14px;
}
.feedback-note p {
  color: var(--text-2);
  margin-bottom: 6px;
}
.privacy-note {
  max-width: 330px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 28px;
}
.feedback-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  align-self: start;
}
.feedback-form {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.field .input {
  background: var(--bg);
  font-size: 15px;
}
.field textarea {
  resize: vertical;
  min-height: 180px;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.optional {
  color: var(--text-2);
  font-size: 12px;
}
.field-help {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.submit-button {
  width: 100%;
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.form-error {
  color: var(--critical-ink);
  font-size: 14px;
}
.feedback-result {
  display: grid;
  gap: 20px;
  padding: 30px 0;
}
.feedback-result h2 {
  font-size: 40px;
}
.feedback-result p {
  color: var(--text-2);
}
.result-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good-ink);
  font-size: 24px;
}
.email-fallback {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.email-fallback h2 {
  font-size: 20px;
}
.email-fallback p {
  font-size: 14px;
  color: var(--text-2);
  margin-block: 12px;
}
.standalone-result {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 24px;
  padding-block: 96px;
  min-height: 65vh;
}
.standalone-result h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 550;
}
.standalone-result p:not(.eyebrow) {
  max-width: 560px;
  color: var(--text-2);
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 36px;
  }
  .page-toc {
    display: none;
  }
  .mobile-toc {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 13px;
  }
  .mobile-toc p {
    color: var(--text-2);
    margin-bottom: 4px;
  }
  .feedback-layout {
    gap: 48px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    min-height: 80px;
    gap: 12px;
  }
  .brand-label {
    padding-left: 10px;
  }
  .top-nav {
    gap: 18px;
    font-size: 13px;
  }
  .open-lair {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 48px;
  }
  .hero h1 {
    font-size: clamp(52px, 10vw, 72px);
  }
  .hero-description {
    font-size: 17px;
  }
  .start-card {
    padding: 24px;
  }
  .start-title {
    font-size: 32px;
  }
  .start-steps {
    margin: 24px 0;
    gap: 12px;
  }
  .directory-top {
    align-items: start;
    flex-direction: column;
    margin-bottom: 28px;
  }
  .guide-search {
    width: 100%;
  }
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-card {
    padding: 18px;
  }
  .help-banner {
    align-items: start;
    flex-direction: column;
    padding-block: 36px;
  }
  .site-footer {
    flex-direction: column;
    gap: 16px;
  }
  .site-footer nav {
    gap: 20px;
  }
  .docs-layout {
    display: block;
    padding-top: 20px;
  }
  .guide-menu {
    position: static;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    margin-bottom: 32px;
  }
  .guide-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--text-2);
    cursor: pointer;
    list-style: none;
  }
  .guide-menu summary::-webkit-details-marker {
    display: none;
  }
  .guide-menu nav {
    padding: 12px 8px;
  }
  .breadcrumb {
    margin-bottom: 28px;
  }
  .guide-article h1 {
    font-size: 40px;
  }
  .page-description {
    font-size: 17px;
  }
  .guide-body section {
    margin-top: 36px;
  }
  .feedback-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px;
  }
  .feedback-intro h1 {
    font-size: 56px;
  }
  .feedback-note {
    margin-top: 24px;
  }
  .privacy-note {
    max-width: none;
    margin-top: 20px;
  }
  .feedback-panel {
    padding: 24px;
  }
}
@media (max-width: 480px) {
  .brand {
    font-size: 24px;
    gap: 7px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-label {
    font-size: 12px;
    margin-left: 0;
    padding-left: 7px;
  }
  .top-nav {
    gap: 14px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card {
    min-height: 112px;
  }
  .form-pair {
    grid-template-columns: 1fr;
  }
  .feedback-panel {
    padding: 20px;
  }
}
