/* ===========================================================
   Kampüs+ Legal Pages — "Syllabus" design system
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #14183A;
  --ink-soft: #2B3060;
  --paper: #FFFFFF;
  --paper-soft: #F6F6F3;
  --line: #E5E4DE;
  --muted: #66697C;
  --accent: #FFC933;
  --accent-ink: #14183A;
  --danger: #B3413B;
  --ok: #2F7A5C;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-soft);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-soft); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: #F4F3EE;
  padding: 28px 24px 84px;
  position: relative;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9CCE0;
  border: 1px solid #383D6B;
  padding: 5px 11px;
  border-radius: 999px;
}
.header-title-row {
  max-width: 1080px;
  margin: 40px auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  margin: 0;
  line-height: 1.08;
  max-width: 600px;
}
.stamp {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  transform: rotate(-2deg);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.stamp b { display: block; font-size: 13.5px; letter-spacing: 0.02em; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1080px;
  margin: -48px auto 0;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Sidebar / syllabus nav ---------- */
.toc-wrap { position: sticky; top: 24px; }
.toc-label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px 4px;
}
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.toc li { border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: none; }
.toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toc a:hover { background: var(--paper-soft); }
.toc a.active {
  border-left-color: var(--accent);
  background: var(--paper-soft);
  color: var(--ink);
  font-weight: 600;
}
.toc-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  flex-shrink: 0;
  width: 18px;
}
.toc a.active .toc-num { color: var(--ink); }

.mobile-toc { display: none; }

/* ---------- Content card ---------- */
.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 48px 20px;
}
.doc > p:first-of-type { margin-top: 0; }

.doc h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.doc h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.doc h2:first-of-type { margin-top: 8px; }

.doc h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--ink-soft);
}

.doc p, .doc li { font-size: 15.5px; line-height: 1.7; color: #33364C; }
.doc ul { padding-left: 20px; }
.doc ul li { margin-bottom: 6px; padding-left: 4px; }
.doc ul li::marker { color: var(--accent); font-size: 1.1em; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc thead th { background: var(--ink); color: #F4F3EE; font-weight: 600; border-bottom: none; }
.doc tbody tr:last-child td { border-bottom: none; }
.doc tbody tr:nth-child(even) { background: var(--paper-soft); }

.note {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin: 14px 0;
}

.contact-card {
  background: var(--ink);
  color: #F4F3EE;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 32px 0 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 17px;
}
.contact-card p { margin: 3px 0; color: #DEE0F0; font-size: 14.5px; }
.contact-card strong { color: #fff; }
.contact-card a { color: #FFE7A0; }

.effective-footer {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 18px 0 36px;
}

/* ---------- Cross-link footer nav ---------- */
.crosslink {
  max-width: 1080px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.crosslink a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
}
.crosslink a:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; margin-top: -30px; }
  .toc-wrap { display: none; }
  .mobile-toc {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
  }
  .mobile-toc summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary::after { content: "▾"; color: var(--accent); font-size: 14px; }
  .mobile-toc[open] summary::after { content: "▴"; }
  .mobile-toc .toc { border: none; border-top: 1px solid var(--line); border-radius: 0; }
  .doc { padding: 30px 22px 10px; }
  .page-title { max-width: 100%; }
  .stamp { transform: none; }
}
