/* Linguapass docs — shared styling. Kept deliberately simple so the
   files stay readable without a build step. */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  color: #222;
  background: #fafafa;
  line-height: 1.6;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

header.top {
  background: #111;
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.top a { color: #fff; }
header.top .brand { font-weight: 700; letter-spacing: -.01em; }
header.top nav a { margin-left: 20px; font-size: 14px; color: #d4d4d4; }
header.top nav a:hover { color: #fff; }

.layout {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 28px 80px;
}
@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; }
  aside.toc { position: static; }
}

aside.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  border-right: 1px solid #e5e5e5;
  padding-right: 20px;
  font-size: 14px;
}
aside.toc h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #737373;
  margin: 0 0 10px;
}
aside.toc ul { list-style: none; padding: 0; margin: 0; }
aside.toc li { margin: 6px 0; }
aside.toc a { color: #525252; }
aside.toc a:hover { color: #111; text-decoration: none; }

main.content { min-width: 0; }
main.content h1 {
  font-size: 34px;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
main.content .subtitle {
  color: #737373;
  margin: 0 0 32px;
  font-size: 17px;
}
main.content section { padding-top: 24px; margin-top: 24px; border-top: 1px solid #e5e5e5; }
main.content section:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
main.content h2 {
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  scroll-margin-top: 80px;
}
main.content h3 {
  font-size: 16px;
  margin: 18px 0 6px;
  color: #111;
}
main.content p { margin: 8px 0 12px; }
main.content ul, main.content ol { padding-left: 22px; }
main.content li { margin: 4px 0; }
main.content code {
  background: #f4f4f5;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}
main.content blockquote {
  border-left: 3px solid #e5e5e5;
  padding: 2px 14px;
  color: #525252;
  margin: 12px 0;
  background: #fff;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.role-cards a {
  display: block;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.role-cards a:hover {
  border-color: #111;
  text-decoration: none;
  transform: translateY(-1px);
}
.role-cards h2 { margin: 0 0 6px; font-size: 18px; }
.role-cards p { margin: 0; color: #737373; font-size: 14px; }

.callout {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 14px 0;
  font-size: 14px;
}
.callout.warn { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
.callout.note { border-color: #e5e5e5; background: #fff; color: #525252; }

table.kv { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.kv th, table.kv td { border-bottom: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; }
table.kv th { color: #737373; font-weight: 500; width: 180px; }

.back-to-top { display: inline-block; margin-top: 40px; font-size: 13px; color: #737373; }
