/* Truth & Artificial Intelligence — Stylesheet */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.7;
}

/* Accessibility — visible focus outlines */
:focus-visible {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* Skip-to-content link (screen readers + keyboard) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #2c3e50;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 100;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */

header {
  position: relative;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 0.25rem;
}

header p {
  font-size: 0.95rem;
  color: #666666;
}

/* Navigation */

nav {
  margin-bottom: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: #4a6fa5;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: 600;
  color: #333333;
}

/* Main Content */

main h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #222222;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444444;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

main p {
  margin-bottom: 1rem;
}

main ul,
main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 0.35rem;
}

main a {
  color: #4a6fa5;
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

/* Document List */

.document-list {
  list-style: none;
  padding-left: 0;
}

.document-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.document-list li:last-child {
  border-bottom: none;
}

.document-list a {
  font-weight: 500;
}

.document-list .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.label-human {
  background-color: #e8f0e8;
  color: #3a6b3a;
}

.label-ai {
  background-color: #f0e8e8;
  color: #6b3a3a;
}

/* Document Meta */

.document-meta {
  background-color: #f8f8f8;
  border-left: 3px solid #4a6fa5;
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #555555;
}

.document-meta p {
  margin-bottom: 0.25rem;
}

/* Blockquote */

blockquote {
  border-left: 3px solid #cccccc;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  color: #555555;
  font-style: italic;
}

/* Notice Box */

.notice {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #555555;
}

/* Footer */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #999999;
}

footer a {
  color: #999999;
}

footer a:hover {
  color: #666666;
}

/* Audio Player */

.reader-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-wrap: wrap;
}

.reader-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.reader-bar button:active {
  transform: scale(0.93);
}

.reader-play {
  background-color: #ffffff;
  color: #2c3e50;
}

.reader-play:hover {
  background-color: #e8ecf0;
}

.reader-pause {
  background-color: #ffffff;
  color: #2c3e50;
}

.reader-pause:hover {
  background-color: #e8ecf0;
}

.reader-stop {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.reader-stop:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Progress bar */
.reader-progress-wrap {
  flex: 1;
  min-width: 80px;
}

.reader-progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.reader-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #3498db;
  border-radius: 3px;
  transition: width 0.25s linear;
}

.reader-progress-bar:hover .reader-progress-fill {
  background-color: #5dade2;
}

/* Time display */
.reader-time {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}

.reader-speed-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.reader-speed {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  appearance: auto;
}

.reader-speed:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

.reader-speed option {
  background-color: #2c3e50;
  color: #ffffff;
}

.reader-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ===== Mobile Responsive ===== */

@media (max-width: 600px) {
  .container {
    padding: 1.25rem 1rem;
  }

  header h1 {
    font-size: 1.35rem;
  }

  header p {
    font-size: 0.85rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  main h2 {
    font-size: 1.15rem;
  }

  blockquote {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  .document-list .label {
    display: block;
    margin-left: 0;
    margin-top: 0.3rem;
    width: fit-content;
  }

  /* Audio player: stack on small screens */
  .reader-bar {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
  }

  .reader-bar button {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .reader-label {
    font-size: 0.6rem;
  }

  .reader-time {
    font-size: 0.65rem;
    min-width: 60px;
  }

  .reader-speed-label {
    font-size: 0.65rem;
  }

  .reader-speed {
    font-size: 0.7rem;
  }

  .reader-progress-wrap {
    min-width: 60px;
  }
}

/* ===== Theme Toggle Switch ===== */

.theme-switch {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.theme-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.theme-icon {
  flex-shrink: 0;
  color: #666;
  transition: color 0.2s ease;
}

.theme-icon-sun {
  color: #e6a817;
}

.theme-icon-moon {
  color: #7a8ba6;
}

.theme-track {
  position: relative;
  width: 40px;
  height: 22px;
  background-color: #ccc;
  border-radius: 11px;
  transition: background-color 0.25s ease;
}

.theme-track:hover {
  background-color: #bbb;
}

.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

/* When dark mode is active, slide knob to right */
[data-theme="dark"] .theme-knob {
  transform: translateX(18px);
}

[data-theme="dark"] .theme-track {
  background-color: #4a6fa5;
}

[data-theme="dark"] .theme-track:hover {
  background-color: #5a7fb5;
}

[data-theme="dark"] .theme-icon-sun {
  color: #887740;
}

[data-theme="dark"] .theme-icon-moon {
  color: #c8d8f0;
}

/* ===== Dark Mode ===== */

[data-theme="dark"] body {
  color: #e0e0e0;
  background-color: #1a1a2e;
}

[data-theme="dark"] header h1 {
  color: #f0f0f0;
}

[data-theme="dark"] header p {
  color: #a0a0a0;
}

[data-theme="dark"] header {
  border-bottom-color: #333355;
}

[data-theme="dark"] nav a {
  color: #6da3d9;
}

[data-theme="dark"] nav a:hover {
  color: #8fbde8;
}

[data-theme="dark"] nav a.active {
  color: #e0e0e0;
}

[data-theme="dark"] main h2 {
  color: #f0f0f0;
}

[data-theme="dark"] main h3 {
  color: #cccccc;
}

[data-theme="dark"] main a {
  color: #6da3d9;
}

[data-theme="dark"] main a:hover {
  color: #8fbde8;
}

[data-theme="dark"] .document-list li {
  border-bottom-color: #2a2a4a;
}

[data-theme="dark"] .label-human {
  background-color: #2a3d2a;
  color: #7ec87e;
}

[data-theme="dark"] .label-ai {
  background-color: #3d2a2a;
  color: #c87e7e;
}

[data-theme="dark"] .document-meta {
  background-color: #1e1e36;
  border-left-color: #6da3d9;
  color: #b0b0b0;
}

[data-theme="dark"] blockquote {
  border-left-color: #444466;
  color: #b0b0b0;
}

[data-theme="dark"] .notice {
  background-color: #1e1e36;
  border-color: #333355;
  color: #b0b0b0;
}

[data-theme="dark"] footer {
  border-top-color: #333355;
  color: #777777;
}

[data-theme="dark"] footer a {
  color: #777777;
}

[data-theme="dark"] footer a:hover {
  color: #aaaaaa;
}



[data-theme="dark"] .reader-bar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== Podcast Player Page ===== */

.player-intro {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.podcast-player {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.now-playing {
  text-align: center;
  margin-bottom: 1.25rem;
}

.now-playing-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(52, 152, 219, 0.3);
  color: #5dade2;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.now-playing-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.now-playing-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Player Controls */

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
  color: #2c3e50;
  background: #fff;
}

.pc-btn:active {
  transform: scale(0.92);
}

.pc-prev,
.pc-next {
  width: 36px;
  height: 36px;
}

.pc-prev:hover,
.pc-next:hover {
  background: #e8ecf0;
}

.pc-play,
.pc-pause {
  width: 52px;
  height: 52px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pc-play:hover,
.pc-pause:hover {
  background: #e8ecf0;
}

.pc-stop {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.pc-stop:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Progress */

.player-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.player-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-bar-fill {
  height: 100%;
  width: 0%;
  background: #3498db;
  border-radius: 3px;
  transition: width 0.25s linear;
}

.player-bar:hover .player-bar-fill {
  background: #5dade2;
}

.player-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}

/* Speed */

.player-options {
  display: flex;
  justify-content: center;
}

.player-speed-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.player-speed-select {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.player-speed-select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

.player-speed-select option {
  background: #2c3e50;
  color: #fff;
}

/* Track List */

.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.15s ease;
  width: 100%;
}

.track:hover {
  background: #f0f4f8;
}

.track-active {
  background: #eef4fb;
}

.track-active:hover {
  background: #e4edf7;
}

.track-num {
  width: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  flex-shrink: 0;
}

/* Show number by default, play icon on hover, eq icon when active+playing */
.track-icon-play,
.track-icon-eq {
  display: none;
}

.track:hover .track-num {
  display: none;
}

.track:hover .track-icon-play {
  display: block;
  color: #2c3e50;
}

.track-active .track-num {
  display: none;
}

.track-active .track-icon-eq {
  display: block;
  color: #3498db;
}

.track-active:hover .track-icon-eq {
  display: none;
}

.track-active:hover .track-icon-play {
  display: block;
  color: #2c3e50;
}

.track-icon-play,
.track-icon-eq {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-title {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-active .track-title {
  color: #3498db;
  font-weight: 600;
}

.track-sub {
  display: block;
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.track-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #999;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.track-link:hover {
  color: #4a6fa5;
  background: rgba(74, 111, 165, 0.1);
}

.track-duration {
  font-size: 0.78rem;
  color: #999;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* ===== Podcast Player — Dark Mode ===== */

[data-theme="dark"] .player-intro {
  color: #999;
}

[data-theme="dark"] .podcast-player {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .track-list {
  background: #1a1a2e;
  border-color: #2a2a4a;
}

[data-theme="dark"] .track {
  background: #141428;
}

[data-theme="dark"] .track:hover {
  background: #1e1e38;
}

[data-theme="dark"] .track-active {
  background: #1a2840;
}

[data-theme="dark"] .track-active:hover {
  background: #1e3050;
}

[data-theme="dark"] .track-num {
  color: #666;
}

[data-theme="dark"] .track:hover .track-icon-play {
  color: #ddd;
}

[data-theme="dark"] .track-active .track-icon-eq {
  color: #5dade2;
}

[data-theme="dark"] .track-title {
  color: #e0e0e0;
}

[data-theme="dark"] .track-active .track-title {
  color: #5dade2;
}

[data-theme="dark"] .track-sub {
  color: #777;
}

[data-theme="dark"] .track-link {
  color: #666;
}

[data-theme="dark"] .track-link:hover {
  color: #6da3d9;
  background: rgba(109, 163, 217, 0.1);
}

[data-theme="dark"] .track-duration {
  color: #666;
}

/* ===== Podcast Player — Mobile ===== */

@media (max-width: 600px) {
  .podcast-player {
    padding: 1rem;
    border-radius: 12px;
  }

  .now-playing-title {
    font-size: 1.05rem;
  }

  .pc-play,
  .pc-pause {
    width: 44px;
    height: 44px;
  }

  .pc-prev,
  .pc-next {
    width: 32px;
    height: 32px;
  }

  .track {
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
  }

  .track-sub {
    display: none;
  }

  .track-link {
    width: 26px;
    height: 26px;
  }
}

/* ===== Glossary Definition List ===== */

.glossary {
  margin-bottom: 2rem;
}

.glossary dt {
  font-weight: 600;
  font-size: 1rem;
  color: #2c3e50;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  scroll-margin-top: 1rem;
}

.glossary dt:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.glossary dd {
  margin-left: 0;
  margin-top: 0.3rem;
  padding-left: 1rem;
  border-left: 2px solid #e0e0e0;
  color: #555;
  line-height: 1.65;
}

.glossary dd a {
  color: #2c6fad;
}

.glossary dd a:hover {
  color: #3498db;
}

[data-theme="dark"] .glossary dt {
  color: #e0e0e0;
  border-top-color: #2a2a4a;
}

[data-theme="dark"] .glossary dd {
  border-left-color: #333355;
  color: #b0b0b0;
}

[data-theme="dark"] .glossary dd a {
  color: #6da3d9;
}

[data-theme="dark"] .glossary dd a:hover {
  color: #8fbde8;
}

/* ===== Author Photo ===== */

.author-photo {
  text-align: center;
  margin: 0 auto 2rem;
}

.author-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1a365d;
}

[data-theme="dark"] .author-photo img {
  border-color: #8fbde8;
}

/* ===== Heading Anchor Links ===== */

main h2,
main h3 {
  position: relative;
}

.heading-anchor {
  opacity: 0;
  margin-left: 0.35em;
  color: #aaa;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.85em;
  transition: opacity 0.15s ease, color 0.15s ease;
}

main h2:hover .heading-anchor,
main h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.heading-anchor:hover {
  opacity: 1;
  color: #3498db;
}

[data-theme="dark"] .heading-anchor {
  color: #666;
}

[data-theme="dark"] .heading-anchor:hover {
  color: #6da3d9;
}

/* ===== Reading Time ===== */

.reading-time {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .reading-time {
  color: #777;
}

/* ===== Table of Contents ===== */

.toc {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.toc li {
  font-size: 0.9rem;
  line-height: 1.8;
}

.toc a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: #3498db;
}

[data-theme="dark"] .toc {
  background-color: #1e1e36;
  border-color: #333355;
}

[data-theme="dark"] .toc-title {
  color: #aaa;
}

[data-theme="dark"] .toc a {
  color: #6da3d9;
}

[data-theme="dark"] .toc a:hover {
  color: #8fbde8;
}

/* ===== Print Stylesheet ===== */

@media print {
  /* Hide interactive / non-content elements */
  .skip-link,
  nav,
  .reader-bar,
  .podcast-player,
  .track-list,
  .theme-switch,
  .heading-anchor,
  .toc,
  .reading-time,
  footer a,
  .label {
    display: none !important;
  }

  /* Reset colors for print */
  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  header {
    border-bottom: 1px solid #000;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
  }

  header h1 {
    color: #000 !important;
    font-size: 18pt;
  }

  header p {
    color: #333 !important;
  }

  main h2 {
    color: #000 !important;
    font-size: 14pt;
    margin-top: 1.2em;
    page-break-after: avoid;
  }

  main h3 {
    color: #000 !important;
    font-size: 12pt;
    page-break-after: avoid;
  }

  main a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Show link URLs after text for reference */
  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }

  blockquote {
    border-left: 2px solid #000;
    color: #333 !important;
    page-break-inside: avoid;
  }

  .notice {
    border: 1px solid #000;
    background: none !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .document-meta {
    border-left: 2px solid #000;
    background: none !important;
    color: #000 !important;
  }

  footer {
    border-top: 1px solid #000;
    color: #333 !important;
    font-size: 10pt;
    margin-top: 2em;
  }

  /* Prevent awkward page breaks */
  ul, ol {
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}
