:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #17302d;
  --muted: #4f6461;
  --brand: #0f5e58;
  --brand-strong: #0a4743;
  --brand-soft: #e1efed;
  --on-brand: #ffffff;
  --border: #d8e2e0;
  --radius: 12px;
  --max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1716;
    --surface: #172221;
    --text: #e3ecea;
    --muted: #a3b5b2;
    --brand: #5fc2b6;
    --brand-strong: #86d6cc;
    --brand-soft: #1d3331;
    --on-brand: #06201d;
    --border: #2a3b39;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand span { font-size: 1.05rem; line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500;
}
.nav a:hover { background: var(--brand-soft); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }

/* Sections */
main { padding: 32px 0 48px; }
.hero {
  display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr;
  padding: 8px 0 24px;
}
.hero img { width: 180px; justify-self: center; border-radius: 50%; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr auto; }
  .hero img { width: 220px; }
}
.page-intro { margin-bottom: 24px; }
.page-intro p { color: var(--muted); max-width: 44rem; }
section + section { margin-top: 40px; }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column;
}
.card p { color: var(--muted); flex: 1; }
.card .step {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 18px; border-radius: 8px; align-self: flex-start;
}
.btn:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn.secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); color: var(--brand-strong); }
.ext::after { content: " ↗"; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Embeds: third-party widgets render light, so frame them on white */
.embed {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; width: 100%;
}
.embed iframe { display: block; width: 100%; border: 0; }
.embed.calendar iframe { height: 640px; }
.embed.folder iframe { height: 360px; }
.embed.form iframe { height: 1100px; }
.cal-month { display: none; }
@media (min-width: 760px) {
  .cal-month { display: block; }
  .cal-agenda { display: none; }
}
.note { font-size: .95rem; color: var(--muted); }

details.card { padding: 0; }
details.card summary {
  cursor: pointer; padding: 20px; font-weight: 700; font-size: 1.15rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); line-height: 1; }
details.card[open] summary::after { content: "–"; }
details.card .body { padding: 0 20px 20px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
