/* Shared tokens with /review/ and /access-audit/. Guide-only: tables, pre, YouTube facade. */
:root {
  --bg: #faf9f6;
  --bg-raised: #ffffff;
  --bg-tint: #f3f1ea;
  --ink: #182238;
  --primary: #2a4a9b;
  --primary-deep: #1b2f63;
  --muted: #4e586e;
  --line: #e4e2da;
}

* { box-sizing: border-box; }
html { color-scheme: light; }

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--primary); }
a:hover { color: var(--primary-deep); }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

header.site .bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

header.site nav a {
  margin-right: 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

header.site nav a:last-child { margin-right: 0; }

header.site nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main.wrap {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

main nav {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.35rem;
}

main nav a { text-decoration: none; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 2.35rem 0 0.7rem;
  color: var(--ink);
}

p,
li { font-size: 1rem; }

p { margin: 0 0 1rem; }

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li { margin: 0.35rem 0; }

.lede {
  border-left: 3px solid var(--primary);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  padding: 0.85rem 1.6rem;
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
  transition: background-color 0.16s ease;
}

.cta:hover { background: var(--primary-deep); }

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card:has(table) {
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 22rem;
  border-collapse: collapse;
  background: transparent;
  font-size: 0.95rem;
  margin: 0;
}

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

th {
  background: var(--bg-tint);
  font-weight: 700;
  color: var(--ink);
}

tr:last-child td { border-bottom: 0; }

table caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.95rem 1.25rem 0.25rem;
  caption-side: top;
}

pre {
  overflow: auto;
  padding: 1rem 1.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.demo-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #111;
}

.demo-embed iframe,
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: #111;
  font: inherit;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
}

a:focus-visible,
button:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

footer.site li { margin: 0.25rem 0; }

@media (max-width: 40rem) {
  .cta { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
