:root {
  --bg: #fbfbf9;
  --text: #1a1a1a;
  --muted: #6a6a6a;
  --link: #2f5bd3;
  --border: #e6e6e6;
}

body.layon {
  --bg: #0f1115;
  --text: #e7e7e7;
  --muted: #9aa0a6;
  --link: #9ecbff;
  --border: #2b2f36;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  max-width: 720px;
  margin: 70px auto;
  line-height: 1.75;
  padding: 0 22px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

nav a { margin-right: 15px; }

.profile-type {
  margin: 0.2rem 0 0.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.subtitle {
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.pdf-viewer {
  width: 100%;
  aspect-ratio: 210 / 297;
  min-height: 900px;
  border: 1px solid var(--border);
}

.profile-portrait {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.profile-portrait-right {
  float: right;
  margin: 0 0 16px 24px;
}

@media (max-width: 700px) {
  .profile-portrait-right {
    float: none;
    display: block;
    margin: 0 auto 16px;
  }

  .profile-portrait {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 11 / 14;
  }
}

/* ===== Toggle switch styling ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  float: right;
  margin-top: -5px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}
