:root {
  --violet: #6161ff;
  --ultra: #9450fd;
  --forest: #2a5c4e;
  --mint: #bcfe90;
  --sky: #abf0ff;
  --lavender: #eddff7;
  --peri: #e7ecff;
  --corn: #93beff;
  --aqua: #d1faff;
  --peony: #fcd0f8;
  --ink: #333333;
  --slate: #535768;
  --iron: #808080;
  --fog: #cacbcd;
  --pebble: #dddfeb;
  --canvas: #f5f6f8;
  --snow: #ffffff;
  --orange: #ff5a1f;
  --orange-deep: #e24610;
  --font: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --max: 1200px;
  --r-card: 24px;
  --r-pill: 160px;
  --r-tag: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--canvas);
}
a { color: var(--violet); }
a:hover { color: var(--ultra); }
img { max-width: 100%; }

.sheet-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: var(--snow);
  border-bottom: 1px solid var(--fog);
}
.mark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--violet);
  text-decoration: none;
}
.sheet-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.sheet-nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
}
.nav-burger {
  display: none;
  border: 1px solid var(--pebble);
  background: var(--snow);
  border-radius: var(--r-tag);
  padding: 6px 10px;
  font: inherit;
}
.call-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--snow);
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.call-chip:hover {
  background: var(--orange-deep);
  color: var(--snow);
}

.mast {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin: 10px 16px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--snow);
  border-radius: var(--r-card);
  box-shadow: 0 8px 28px rgba(51, 51, 51, 0.08);
}
.mast > .mark { justify-self: start; }
.mast > .call-mast-btn { justify-self: center; }
.mast-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mast .sheet-nav { margin-left: 0; flex-wrap: nowrap; }
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--slate);
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover { color: var(--violet); }
.nav-drop-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
  padding: 10px 12px;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(51, 51, 51, 0.08);
  z-index: 30;
}
.nav-drop[open] .nav-drop-panel { display: flex; flex-direction: column; gap: 4px; }
.nav-drop-panel a { white-space: nowrap; }
.call-mast-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  background: var(--orange);
  color: var(--snow);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 28px 12px 22px;
  line-height: 1.15;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45);
  animation: call-mast-pulse 2.2s ease-out infinite;
}
.call-mast-btn:hover { background: var(--orange-deep); color: var(--snow); }
.call-mast-ico { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; }
.call-mast-ico svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.call-mast-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.call-mast-line {
  display: block;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  line-height: 1.2;
}
.call-mast-sub {
  display: block;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.25;
}
@keyframes call-mast-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .call-mast-btn { animation: none; }
}
.clinic-shot {
  margin: 16px 0 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--pebble);
}
.clinic-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dock-floor {
  display: none;
}

.mint-tape {
  margin: 0;
  padding: 10px 20px;
  background: var(--mint);
  color: var(--forest);
  font-size: 14px;
  line-height: 1.45;
}
.mint-tape a { color: var(--forest); font-weight: 600; }

.stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.trail {
  font-size: 13px;
  color: var(--iron);
  margin: 0 0 12px;
}
.trail a { color: var(--slate); text-decoration: none; }

.peach-stamp {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  background: #ffe4c4;
  border-radius: var(--r-tag);
  font-size: 13px;
  color: var(--ink);
  transform: rotate(-1.2deg);
}

h1 {
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
}

.lede-card {
  background: var(--snow);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(51, 51, 51, 0.06);
  margin-bottom: 28px;
}
.lede-card p:first-child { margin-top: 0; }
.lede-card p:last-child { margin-bottom: 0; }

.workshop {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.stickies {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stickies a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-tag);
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  background: var(--peri);
}
.stickies a:nth-child(5n+1) { background: var(--lavender); }
.stickies a:nth-child(5n+2) { background: var(--sky); }
.stickies a:nth-child(5n+3) { background: var(--mint); }
.stickies a:nth-child(5n+4) { background: var(--aqua); }
.stickies a:nth-child(5n+5) { background: var(--peony); }

.inbox { display: flex; flex-direction: column; gap: 16px; }

.note-card {
  background: var(--snow);
  border-radius: var(--r-card);
  padding: 22px 24px;
  border-left: 8px solid var(--corn);
}
.note-card:nth-child(6n+1) { border-left-color: var(--violet); background: #fafaff; }
.note-card:nth-child(6n+2) { border-left-color: #bcfe90; }
.note-card:nth-child(6n+3) { border-left-color: #abf0ff; }
.note-card:nth-child(6n+4) { border-left-color: #eddff7; }
.note-card:nth-child(6n+5) { border-left-color: #93beff; }
.note-card:nth-child(6n+6) { border-left-color: #e98dfe; }

.note-card h2 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
}
.note-card p { margin: 0 0 12px; color: var(--ink); }
.note-card p:last-child { margin-bottom: 0; }

.group-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.group {
  background: var(--snow);
  border-radius: var(--r-card);
  padding: 16px;
}
.group h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}
.group.g-mint { background: #f3ffe8; }
.group.g-sky { background: #edfbff; }
.group.g-lav { background: #f8f2fc; }
.pin {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: var(--snow);
  border-radius: var(--r-tag);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.pin span { color: var(--iron); font-size: 12px; }

.scroll { overflow-x: auto; margin: 20px 0; }
table.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--snow);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: 14px;
}
table.sheet th,
table.sheet td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pebble);
  vertical-align: top;
}
table.sheet th {
  background: var(--peri);
  font-weight: 600;
  font-size: 13px;
}
.print-line {
  color: var(--iron);
  font-variant-numeric: tabular-nums;
}

.neighbor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.neighbor-row a {
  background: var(--lavender);
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-tag);
  font-size: 14px;
}

.legal-body { max-width: 720px; }
.legal-body p { margin: 0 0 14px; }

.work-foot {
  background: var(--snow);
  border-top: 1px solid var(--fog);
  padding: 28px 20px 96px;
}
.work-cols {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  font-size: 14px;
  color: var(--slate);
}
.work-cols a { color: var(--slate); }
.work-cols h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 900px) {
  .workshop { grid-template-columns: 1fr; }
  .stickies { position: static; flex-direction: row; flex-wrap: wrap; }
  .stickies a { font-size: 11px; }
  .group-board { grid-template-columns: 1fr; }
  .work-cols { grid-template-columns: 1fr; }
  .sheet-nav {
    display: none;
    position: absolute;
    top: 56px;
    right: 12px;
    flex-direction: column;
    background: var(--snow);
    border: 1px solid var(--fog);
    border-radius: 12px;
    padding: 12px;
  }
  .sheet-nav[data-open="1"] { display: flex; }
  .nav-burger { display: inline-block; }
  .mast {
    grid-template-columns: auto 1fr auto;
    top: 0;
    margin: 0;
    border-radius: 0;
    gap: 8px;
    padding: 8px 10px;
  }
  .mast > .call-mast-btn { min-width: 0; padding: 8px 12px; gap: 8px; }
  .call-mast-line { font-size: 15px; }
  .call-mast-sub { font-size: 11px; }
  .nav-drop-panel {
    position: static;
    box-shadow: none;
    border: none;
    max-height: none;
    margin: 0;
    padding: 4px 0 0 8px;
  }
  .dock-floor {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--snow);
    border-top: 1px solid var(--fog);
  }
  .dock-floor .call-chip { width: 100%; }
}
