:root {
  --green: #00693E;          /* Dartmouth green — primary */
  --green-dark: #00522F;
  --green-tint: rgba(0, 105, 62, 0.05);
  --ink: #0b0b0b;            /* black accent / body text */
  --bg: #ffffff;             /* white */
  --muted: #555555;
  --sidebar-width: 280px;
  --page-bottom-space: 160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

.page-bottom-space { height: var(--page-bottom-space); }

/* ---------- Left sidebar ---------- */

.sidebar-left {
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 40px;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: var(--green);
  z-index: 100;
  overflow-y: auto;
}

.profile-picture {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg);
}

.profile-picture img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-header { text-align: center; }

.sidebar-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  color: #ffffff;
}

.tagline-list {
  list-style: none;
  text-align: left;
  padding-left: 15px;
  margin-top: 4px;
}

.tagline-list li {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-left: 12px;
}

.tagline-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #ffffff;
}

.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 2px -12px;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: rgba(255, 255, 255, 0.14);
}

.sidebar-nav svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ---------- Main column ---------- */

.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  padding: 60px 80px 0 80px;
  background-color: var(--bg);
  min-height: 100vh;
  max-width: 900px;
}

.content-body h1 {
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 28px;
}

.content-body h2 {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.content-body p { font-size: 1.1rem; margin-bottom: 20px; }

.content-body ul,
.content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 20px;
}

.content-body li { font-size: 1.1rem; margin-bottom: 10px; }

.content-body hr {
  border: none;
  border-top: 1px solid rgba(11, 11, 11, 0.15);
  margin: 40px 0;
}

.content-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
}

.content-body a:hover { text-decoration-color: var(--ink); }

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  padding: 12px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(11, 11, 11, 0.12);
}

.content-body th {
  border-bottom: 2px solid var(--green);
  font-weight: 600;
}

/* ---------- Item lists (teaching, writings) ---------- */

.writing-item {
  padding: 25px 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.15);
}

.writing-item:first-child { padding-top: 0; }
.writing-item:last-child { border-bottom: none; }

.writing-item h3 { margin: 0 0 6px 0; font-size: 1.25rem; }

.writing-item h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.writing-item h3 a:hover { color: var(--green); }

.writing-item .item-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.writing-item .item-meta .term {
  color: var(--green);
  font-weight: 600;
}

.writing-item p { font-size: 1rem; margin-bottom: 12px; }
.writing-item p:last-child { margin-bottom: 0; }

/* ---------- CTA block ---------- */

.cta-block {
  margin-top: 50px;
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--green-tint);
  border: 1px solid var(--green);
  border-radius: 8px;
  text-align: center;
}

.cta-block h2 {
  display: block;
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
  font-size: 2rem;
}

.cta-block .cta-availability {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--green);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- Right rail (wide screens only) ---------- */

.sidebar-right { display: none; }

@media (min-width: 1400px) {
  .sidebar-right {
    display: block;
    width: 260px;
    min-width: 260px;
    padding: 60px 40px 0 0;
    align-self: flex-start;
    position: sticky;
    top: 0;
  }
}

.cta-rail-card {
  padding: 24px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background-color: var(--green-tint);
}

.cta-rail-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.cta-rail-card p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 16px; }
.cta-rail-card p:last-child { margin-bottom: 0; }

.cta-rail-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.cta-rail-link:hover { color: var(--green); }

/* ---------- Mobile menu ---------- */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle .bar {
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  margin: 2px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  :root { --page-bottom-space: 140px; }
  .main-content { padding: 60px 60px 0 60px; max-width: 100%; }
}

@media (max-width: 900px) {
  :root { --page-bottom-space: 110px; }
  body { display: block; }

  .sidebar-left {
    position: fixed;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: var(--green);
    transition: left 0.3s ease-in-out;
    border-right: none;
    justify-content: center;
  }

  .sidebar-left.active { left: 0; }

  .main-content { margin-left: 0; padding: 80px 24px 0 24px; max-width: 100%; }
  .mobile-menu-toggle { display: flex; }

  .content-body h1 { font-size: 2rem; }
  .content-body h2 { font-size: 1.6rem; }

  .sidebar-header h3 { font-size: 1.5rem; }
  .sidebar-nav { text-align: center; }
  .sidebar-nav a { justify-content: center; font-size: 1.1rem; padding: 12px; margin: 5px 0; }
  .tagline-list { display: inline-block; }
}

@media (max-width: 600px) {
  :root { --page-bottom-space: 90px; }
  .main-content { padding: 80px 15px 0 15px; }
  .content-body h2 { font-size: 1.5rem; }
  .content-body p, .content-body li { font-size: 1rem; }
  .mobile-menu-toggle { width: 40px; height: 40px; top: 15px; right: 15px; }
  .mobile-menu-toggle .bar { width: 18px; }
}
