/* ============================
   UDHR 1948 – LL.B. Study Guide
   Color theme: Light-Green, Saffron, Blue + Ivory/White
   ============================ */

:root {
  --blue:        rgb(30, 90, 160);
  --blue-light:  rgb(210, 225, 248);
  --green:       rgb(34, 139, 87);
  --green-light: rgb(210, 240, 225);
  --saffron:     rgb(255, 153, 51);
  --saffron-light: rgb(255, 235, 210);
  --ivory:       rgb(252, 250, 244);
  --white:       rgb(255, 255, 255);
  --shadow:      rgba(30, 60, 120, 0.13);
  --border:      rgb(200, 215, 230);
  --text-dark:   rgb(25, 35, 55);
  --text-mid:    rgb(70, 85, 110);
  --tag-radius:  6px;
  --card-radius: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--ivory);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.75;
}

/* ====== DISCLAIMER BANNER ====== */
.disclaimer-banner {
  background: rgb(255, 240, 200);
  border-bottom: 3px solid var(--saffron);
  color: rgb(100, 60, 0);
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  padding: 0.6rem 1.2rem;
  letter-spacing: 0.02em;
}

/* ====== HEADER ====== */
.site-header {
  background: linear-gradient(135deg, var(--blue) 0%, rgb(15, 55, 120) 60%, rgb(10, 100, 70) 100%);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.header-badge {
  display: inline-block;
  background: var(--saffron);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.site-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: white;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-sub {
  color: rgb(195, 215, 240);
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  margin-bottom: 1.3rem;
  font-weight: bold;
}

.print-btn {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.15s;
}
.print-btn:hover {
  background: rgb(230, 120, 20);
  transform: translateY(-2px);
}

/* ====== JUMP NAV ====== */
.jump-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

.jump-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.jump-label {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 0.82rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.jump-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jump-buttons button {
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid rgb(180, 200, 235);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.jump-buttons button:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ====== MAIN CONTENT ====== */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ====== CARDS ====== */
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 2rem 2rem 1.8rem;
  box-shadow: 0 3px 16px var(--shadow);
  border: 1.5px solid var(--border);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.8rem;
  border-radius: var(--tag-radius);
  margin-bottom: 0.7rem;
}

.card h2 {
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: bold;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--green);
  font-weight: bold;
  margin: 1.2rem 0 0.5rem;
}

.card ul {
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
}

.card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
  font-weight: bold;
  color: var(--text-dark);
}

.card ul li strong {
  color: var(--blue);
}

/* ====== SUB-CARDS ====== */
.sub-card {
  background: var(--ivory);
  border: 1.5px solid rgb(210, 225, 200);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.sub-card h3 {
  margin-top: 0;
  font-size: 0.98rem;
  color: var(--blue);
}

/* ====== INFO BOX ====== */
.info-box {
  background: var(--saffron-light);
  border-left: 5px solid var(--saffron);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: bold;
  color: rgb(90, 50, 0);
}

.not-found-box {
  background: rgb(240, 235, 255);
  border-left: 5px solid rgb(130, 80, 200);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  font-size: 0.93rem;
  font-weight: bold;
  color: rgb(70, 30, 120);
  font-style: italic;
}

/* ====== TABLE ====== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

thead tr {
  background: var(--blue);
  color: white;
}

thead th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-size: 0.83rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:nth-child(even) {
  background: var(--blue-light);
}

tbody tr:hover {
  background: rgb(255, 240, 210);
}

tbody td {
  padding: 0.55rem 0.9rem;
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* ====== FLOWCHART ====== */
.flowchart-wrapper,
.mindmap-wrapper {
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  margin-top: 1rem;
}

#flowchart-svg,
#mindmap-svg {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto;
  font-family: 'Arial', sans-serif;
}

/* ====== ROADMAP ====== */
.roadmap-stages {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.stage {
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  border: 1.5px solid var(--border);
  font-weight: bold;
}

.stage-badge {
  display: inline-block;
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  color: white;
  margin-bottom: 0.5rem;
}

.stage-1 { background: rgb(225, 240, 255); border-left: 5px solid var(--blue); }
.stage-1 .stage-badge { background: var(--blue); }
.stage-1 h3 { color: var(--blue); }

.stage-2 { background: var(--green-light); border-left: 5px solid var(--green); }
.stage-2 .stage-badge { background: var(--green); }
.stage-2 h3 { color: var(--green); }

.stage-3 { background: var(--saffron-light); border-left: 5px solid var(--saffron); }
.stage-3 .stage-badge { background: var(--saffron); }
.stage-3 h3 { color: rgb(160, 80, 0); }

.stage-4 { background: rgb(240, 235, 255); border-left: 5px solid rgb(130, 80, 200); }
.stage-4 .stage-badge { background: rgb(130, 80, 200); }
.stage-4 h3 { color: rgb(80, 30, 150); }

.stage-5 { background: rgb(240, 255, 248); border-left: 5px solid rgb(0, 140, 80); }
.stage-5 .stage-badge { background: rgb(0, 140, 80); }
.stage-5 h3 { color: rgb(0, 100, 60); }

.stage h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stage ul {
  padding-left: 1.4rem;
}

.stage ul li {
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
}

/* ====== SITE FOOTER ====== */
.site-footer {
  background: var(--blue);
  color: rgb(190, 210, 240);
  text-align: center;
  padding: 1.2rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

/* ====== PRINT STYLES ====== */
@media print {
  .disclaimer-banner,
  .site-header .print-btn,
  .jump-nav,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  main {
    margin: 0;
    padding: 0;
  }

  .disclaimer-banner {
    display: block !important;
    position: static;
    font-size: 10pt;
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 680px) {
  .card {
    padding: 1.3rem 1rem;
  }

  .site-header h1 {
    font-size: 1.5rem;
  }

  .jump-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  table {
    font-size: 0.78rem;
  }

  #flowchart-svg,
  #mindmap-svg {
    min-width: 620px;
  }
}