@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  --text: #1f2a33;
  --muted: #5c6871;
  --border: #d2dae0;
  --bg: #fff;
  --link: #0b5e73;
  --header-accent: #c96f2d;
  --nav-pill: #f4efe9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.55;
}

.container {
  width: min(900px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--header-accent);
  padding: 0.7rem 0 0.65rem;
}

.site-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-subtitle {
  margin: 0.12rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--link);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--nav-pill);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--link);
  text-decoration: none;
}

.nav-disabled {
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--nav-pill);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-style: italic;
  cursor: default;
}

.content {
  padding: 1.1rem 0 2rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.25;
  margin-top: 1.3rem;
  color: #1b3542;
}

h1 {
  margin-top: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.12em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid var(--border);
  text-align: left;
  padding: 0.45rem 0.55rem;
}

/* ── Disabled week rows ── */
.week-disabled {
  color: var(--muted);
  font-style: italic;
}

/* ── Current week panel ── */
.week-overview-table {
  width: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0.5rem 0 1.5rem;
}

.week-overview-table td {
  border: none;
  padding: 0.8rem 1.2rem;
  vertical-align: middle;
}

.week-overview-cell-link {
  border-right: 1px solid var(--border) !important;
  white-space: nowrap;
}

.week-overview-cell-link a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.week-overview-cell-link a:hover {
  color: var(--link);
  text-decoration: none;
}

.current-week-label {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--header-accent);
}

.week-overview-cell-deadlines {
  font-size: 0.9rem;
  min-width: 260px;
}

.deadlines-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.deadline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deadline-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deadline-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.deadline-type.quiz {
  background: #d6eef4;
  color: #0b5e73;
}

.deadline-type.forum {
  background: #e8e4f4;
  color: #4a3a80;
}

.deadline-break {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

/* ── Week page nav ── */
.week-nav {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.week-nav a {
  color: var(--link);
}

@media (max-width: 640px) {
  .site-title {
    font-size: 1.2rem;
  }

  .site-subtitle {
    margin-bottom: 0.5rem;
  }

  .week-overview-table,
  .week-overview-table tr,
  .week-overview-table td {
    display: block;
    width: 100%;
  }

  .week-overview-cell-link {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
}
