:root {
  --ink: #1a1714;
  --navy: #1c2a4a;
  --brass: #b08d4f;
  --paper: #f7f1e6;
  --sheet: #fffdf8;
  --line: #d9d0c0;
  --muted: #5c564c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  display: grid;
  grid-template-columns: 72px 1fr;
}
a { color: inherit; }

.spine {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #efe8db;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 20px;
  gap: 18px;
  z-index: 5;
}
.spine-mark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
}
.spine nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.spine nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.55;
}
.spine nav a.on, .spine nav a:hover { opacity: 1; color: var(--brass); }
.lang { display: flex; flex-direction: column; border: 1px solid rgba(176,141,79,0.4); }
.lang button {
  border: 0; background: transparent; color: #efe8db;
  padding: 6px 8px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700;
}
.lang button.active { background: var(--brass); color: var(--navy); }

.sheet { min-width: 0; }
.protocol-head {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  border-bottom: 2px solid var(--navy);
}
.doc-id {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 20px;
}
.meta { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.meta th {
  text-align: left;
  width: 28%;
  padding: 8px 12px 8px 0;
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: top;
}
.meta td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta a { color: var(--navy); }
h1, h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 16px; }
.lede { font-size: 18px; color: var(--muted); }

main { max-width: 820px; margin: 0 auto; padding: 10px 32px 40px; }
.item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.item > span {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  color: var(--brass);
}
.item h2 { font-size: 28px; margin-bottom: 10px; }
.item p { color: var(--muted); margin-bottom: 10px; }
.inner { width: 100%; margin-top: 12px; border-collapse: collapse; }
.inner th, .inner td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.inner th { width: 34%; background: var(--sheet); font-weight: 700; }
.pull {
  background: var(--navy);
  color: #efe8db;
  padding: 16px 18px;
  border-left: 4px solid var(--brass);
}

.annex { padding: 48px 0 24px; }
.annex h2 { font-size: 30px; margin-bottom: 16px; }
.annex ol { padding-left: 22px; color: var(--muted); }
.annex li { margin: 8px 0; }

.attend {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 20px 0 40px;
}
.attend h2 { font-size: 30px; margin-bottom: 10px; }
.attend > p { color: var(--muted); margin-bottom: 18px; }
form { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
input, textarea {
  font: inherit; padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--navy);
  background: transparent;
}
button[type="submit"] {
  justify-self: start;
  background: var(--navy);
  color: #efe8db;
  border: 0;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.note { font-size: 13px; color: var(--muted); }

footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  body { grid-template-columns: 1fr; }
  .spine {
    height: auto;
    flex-direction: row;
    padding: 10px 12px;
    justify-content: space-between;
  }
  .spine nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .lang { flex-direction: row; }
  .item { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .protocol-head, main, footer { padding-left: 20px; padding-right: 20px; }
}
