:root {
  --ink: #1c1915;
  --bronze: #8c6a45;
  --paper: #f6f3ee;
  --travertine: #e7e1d6;
  --line: #d8d0c4;
  --muted: #5e574e;
  --ok: #2f5d45;
  --warn: #8a4b2f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark {
  width: 38px; height: 38px; border: 3px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; color: var(--bronze); font-weight: 700;
  font-family: Georgia, serif; font-size: 20px;
}
.brand b { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 0.04em; display: block; line-height: 1.1; }
.brand small { display: block; letter-spacing: 0.16em; font-size: 10px; color: var(--muted); }

/* Header right controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--travertine);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.fase-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ok);
  border-radius: 50%;
  display: inline-block;
}

/* Burger Toggle Button */
.burger-btn {
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 10;
}
.burger-btn:hover {
  background: var(--travertine);
  border-color: var(--bronze);
}
.burger-line {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
.burger-btn.is-active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Burger Backdrop & Drawer */
.burger-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}
.burger-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.burger-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 35px rgba(28, 25, 21, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.burger-drawer.is-active {
  transform: translateX(0);
}

.burger-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.drawer-close {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.drawer-close:hover {
  background: var(--travertine);
  color: var(--warn);
}

.burger-drawer-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drawer-user-card {
  background: white;
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-user-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: var(--travertine);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.drawer-user-meta strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.drawer-user-meta span {
  font-size: 12px;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.drawer-section-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s ease;
}
.drawer-item:hover {
  border-color: var(--bronze);
  transform: translateX(3px);
  background: #fffdfa;
}
.drawer-item.active-item {
  border-left: 4px solid var(--bronze);
  background: var(--travertine);
}
.drawer-item.admin-item {
  border-left: 4px solid var(--bronze);
  background: #fbf7f1;
}
.drawer-item-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}
.drawer-item-text b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.drawer-item-text small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.drawer-footer a {
  color: var(--ink);
  text-decoration: underline;
}

.cta, button.cta {
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 12px 18px; border: 0; font-size: 15px; cursor: pointer;
  font-weight: 600; transition: background 0.2s;
}
.cta:hover, button.cta:hover {
  background: var(--bronze);
}
.hero { padding: 72px 0 40px; }
.kicker { letter-spacing: 0.18em; font-size: 12px; color: var(--bronze); margin: 0 0 12px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.98; margin: 0 0 18px; max-width: 14ch; }
.lead { font-size: 22px; max-width: 38em; }
.grid4, .grid2 { display: grid; gap: 16px; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid2 { grid-template-columns: 1fr 1fr; }
.card { background: white; border: 1px solid var(--line); padding: 20px; }
.card h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.status { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
section { padding: 28px 0 48px; }
ol.steps { padding-left: 18px; }
form label { display: block; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  background: white; font: inherit;
}
fieldset { border: 1px solid var(--line); margin: 22px 0; padding: 8px 16px 16px; }
legend { font-family: Georgia, serif; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.check input { width: auto; margin-top: 4px; }
.note { background: var(--travertine); padding: 14px 16px; font-size: 15px; }
.protocol { font-family: Georgia, serif; font-size: 32px; }
.bar-track { height: 8px; background: var(--travertine); margin: 10px 0 4px; }
.bar-fill { height: 8px; background: var(--bronze); }
.num { font-family: Georgia, serif; font-size: 42px; line-height: 1; margin: 8px 0; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px; font-size: 14px; vertical-align: top; }
@media (max-width: 800px) {
  .grid4, .grid2 { grid-template-columns: 1fr; }
  nav { display: none; }
}
