:root {
  --manual-bg: #f5f1e8;
  --manual-panel: rgba(255, 255, 255, 0.88);
  --manual-ink: #162033;
  --manual-soft: rgba(22, 32, 51, 0.72);
  --manual-line: rgba(22, 32, 51, 0.12);
  --manual-accent: #1f4bd8;
  --manual-accent-soft: rgba(31, 75, 216, 0.12);
  --manual-shadow: 0 28px 60px rgba(22, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--manual-ink);
  background:
    radial-gradient(circle at top left, rgba(31, 75, 216, 0.12), transparent 32%),
    linear-gradient(180deg, #fcfaf5 0%, var(--manual-bg) 100%);
}

a {
  color: var(--manual-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.manual-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.manual-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.manual-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--manual-ink);
}

.manual-brand img {
  height: 42px;
  width: auto;
}

.manual-brand-copy {
  display: grid;
  gap: 2px;
}

.manual-brand-copy strong {
  font-size: 1rem;
}

.manual-brand-copy small {
  color: var(--manual-soft);
}

.manual-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--manual-line);
}

.manual-hero {
  display: grid;
  gap: 14px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(22, 32, 51, 0.98), rgba(31, 75, 216, 0.92));
  color: #fff;
  box-shadow: var(--manual-shadow);
  margin-bottom: 24px;
}

.manual-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.manual-hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.manual-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.manual-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.manual-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.manual-sidebar-card,
.manual-content {
  padding: 28px;
  border-radius: 28px;
  background: var(--manual-panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--manual-shadow);
  backdrop-filter: blur(12px);
}

.manual-sidebar-card h2,
.manual-content-intro h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.manual-sidebar-card p,
.manual-content-intro p,
.manual-section p,
.manual-section li {
  color: var(--manual-soft);
  line-height: 1.75;
}

.manual-core-nav {
  display: grid;
  gap: 10px;
}

.manual-core-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--manual-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--manual-ink);
}

.manual-core-link strong {
  font-size: 0.98rem;
}

.manual-core-link span {
  color: var(--manual-soft);
  font-size: 0.92rem;
}

.manual-core-link:hover {
  text-decoration: none;
  border-color: rgba(31, 75, 216, 0.3);
  background: rgba(31, 75, 216, 0.08);
}

.manual-content {
  display: grid;
  gap: 28px;
}

.manual-content-intro {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--manual-line);
}

.manual-section {
  scroll-margin-top: 28px;
}

.manual-section + .manual-section {
  padding-top: 28px;
  border-top: 1px solid var(--manual-line);
}

.manual-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.manual-section-header h3 {
  margin: 0;
  font-size: 1.6rem;
}

.manual-role {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--manual-accent-soft);
  color: var(--manual-ink);
  font-size: 0.92rem;
}

.manual-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.manual-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--manual-line);
  background: rgba(255, 255, 255, 0.72);
}

.manual-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.manual-card ul {
  margin: 0;
  padding-left: 18px;
}

.manual-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  color: var(--manual-soft);
  font-size: 0.95rem;
}

.manual-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 920px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .manual-shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 40px;
  }

  .manual-hero,
  .manual-sidebar-card,
  .manual-content {
    padding: 22px;
    border-radius: 22px;
  }

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