:root {
  --yellow: #ffc82e;
  --black: #000000;
  --white: #ffffff;
  --dark-teal: #1d3d4f;
  --font-body: 'rocky', serif;
  --font-subheading: 'stilson', serif;
  --font-display: 'miller-banner', serif;
  --sidebar-width: 280px;
  --sidebar-collapsed: 64px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
}

.logo a,
.logo a:visited,
.logo a:hover,
.logo a:active {
  text-decoration: none !important;
  color: inherit !important;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--black);
  letter-spacing: 0.08em;
  line-height: 1;
}

.subtitle {
  font-family: var(--font-subheading);
  font-size: 1rem;
  color: var(--dark-teal);
  line-height: 1;
}

/* Layout */

.layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

/* Sidebar */

.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  width: var(--sidebar-width);
  min-width: var(--sidebar-collapsed);
  background: var(--dark-teal);
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.3);
}

.sidebar-toggle .icon {
  transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle .icon {
  transform: rotate(180deg);
}

.candidate-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.candidate-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.candidate-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.candidate-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: var(--yellow);
}

.candidate-initials {
  display: none;
  font-family: var(--font-display);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.candidate-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
}

.candidate-full-name {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
}

.candidate-role-label {
  font-size: 0.75rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar.collapsed .candidate-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sidebar.collapsed .candidate-details {
  display: none;
}

.sidebar.collapsed .candidate-btn {
  justify-content: center;
  padding: 8px 0;
}

/* Main content */

.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
}

.content-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 56px;
}

.candidate-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 6px;
}

.candidate-role-display {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.qa-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question {
  font-family: var(--font-subheading);
  font-size: 1.05rem;
  color: var(--dark-teal);
  line-height: 1.4;
}

.answer {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #222;
  white-space: pre-line;
}

/* Responsive */

@media (max-width: 768px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  :root {
    --header-height: 64px;
  }

  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 100;
    height: calc(100vh - 64px);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
  }

  .sidebar.collapsed {
    width: 0;
    min-width: 0;
  }

  .sidebar.collapsed .sidebar-toggle {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .content-inner {
    padding: 28px 20px;
  }

  .candidate-name {
    font-size: 1.8rem;
  }

  .question {
    font-size: 0.95rem;
  }

  .answer {
    font-size: 0.9rem;
  }

  .qa-list {
    gap: 28px;
  }
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none !important;
  }
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

@media (max-width: 768px) {
  .overlay.visible {
    display: block;
  }
}
