/* ===========================
   UDHR Educational Webpage
   Professional Light Theme
   Primary: Steel Blue + Ivory
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       rgb(41, 98, 155);
  --primary-dark:  rgb(20, 60, 110);
  --primary-light: rgb(210, 230, 255);
  --accent:        rgb(0, 160, 100);
  --accent-light:  rgb(200, 255, 225);
  --bg-main:       rgb(245, 247, 252);
  --bg-card:       rgb(255, 255, 255);
  --bg-section:    rgb(248, 250, 255);
  --border:        rgb(180, 205, 240);
  --border-card:   rgb(200, 218, 248);
  --text-main:     rgb(22, 40, 70);
  --text-sub:      rgb(60, 80, 120);
  --text-light:    rgb(100, 120, 160);
  --shadow:        0 4px 18px rgba(41, 98, 155, 0.10);
  --shadow-hover:  0 8px 28px rgba(41, 98, 155, 0.18);
  --radius:        10px;
  --font-head:     'Georgia', 'Times New Roman', serif;
  --font-body:     'Segoe UI', 'Trebuchet MS', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── DISCLAIMER BANNER ── */
.disclaimer-banner {
  background: rgb(255, 243, 205);
  border-bottom: 3px solid rgb(200, 150, 0);
  color: rgb(100, 70, 0);
  text-align: center;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(200,150,0,0.15);
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(135deg, rgb(20,60,110) 0%, rgb(41,98,155) 60%, rgb(0,130,180) 100%);
  color: white;
  padding: 50px 20px 40px;
  text-align: center;
  border-bottom: 4px solid rgb(0,160,100);
}

.header-inner { max-width: 860px; margin: 0 auto; }

.header-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  padding: 4px 18px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.9);
}

.site-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 8px;
}

.site-subtitle {
  font-size: 17px;
  opacity: 0.88;
  font-weight: bold;
  margin-bottom: 4px;
}

.site-sub2 {
  font-size: 13px;
  opacity: 0.65;
}

/* ── TOOLBAR ── */
.toolbar {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(41,98,155,0.07);
  position: sticky;
  top: 40px;
  z-index: 100;
}

.toolbar-label {
  font-weight: bold;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.btn-print {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-print:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.jump-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.jump-nav button {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.jump-nav button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ── MAIN CONTENT ── */
.main-content {
  max-width: 1020px;
  margin: 30px auto;
  padding: 0 16px 60px;
}

/* ── CONTENT SECTION ── */
.content-section {
  margin-bottom: 50px;
  scroll-margin-top: 120px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-dark);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.section-desc {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 14px;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.card ul {
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main);
}

/* ── TABS ── */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0;
  background: var(--primary-dark);
  padding: 12px 12px 0 12px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-btn {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary-dark);
  border-color: var(--border);
}

.tab-panels {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.tab-panel {
  display: none;
  padding: 28px 30px;
}

.tab-panel.active { display: block; }

.tab-panel h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.tab-panel .art-subtitle {
  color: var(--accent);
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 16px;
  display: block;
}

.tab-panel .art-text {
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 14px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 10px 16px;
  border-radius: 4px;
  font-style: italic;
}

.tab-panel h4 {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-sub);
  margin: 14px 0 6px;
}

.tab-panel ul {
  padding-left: 20px;
}

.tab-panel ul li {
  margin-bottom: 7px;
  font-weight: bold;
  color: var(--text-main);
}

.example-box {
  background: rgb(240,255,245);
  border: 1.5px solid rgb(0,160,100);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 14px;
}

.example-box strong {
  color: rgb(0,110,60);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.example-box p {
  font-weight: bold;
  color: rgb(20,70,40);
  font-size: 14px;
}

/* ── SUMMARY TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-weight: bold;
  background: var(--bg-card);
  min-width: 600px;
}

.summary-table thead tr {
  background: var(--primary-dark);
  color: white;
}

.summary-table th {
  padding: 13px 14px;
  text-align: left;
  letter-spacing: 0.4px;
}

.summary-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.summary-table td:first-child {
  font-weight: bold;
  color: var(--primary-dark);
  white-space: nowrap;
}

.summary-table tbody tr:nth-child(even) {
  background: var(--bg-section);
}

.summary-table tbody tr:hover {
  background: var(--primary-light);
  transition: background 0.15s;
}

/* ── FLOWCHART & MINDMAP ── */
.flowchart-card {
  padding: 10px;
  overflow-x: auto;
}

.flowchart-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  font-family: var(--font-body);
}

/* ── ROADMAP ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.roadmap-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--primary);
  transition: box-shadow 0.2s, transform 0.2s;
}

.roadmap-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.stage1 { border-top-color: rgb(41, 98, 155); }
.stage2 { border-top-color: rgb(0, 140, 60); }
.stage3 { border-top-color: rgb(180, 40, 40); }
.stage4 { border-top-color: rgb(200, 130, 0); }
.stage5 { border-top-color: rgb(100, 40, 180); }

.stage-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stage2 .stage-badge { background: rgb(0, 140, 60); }
.stage3 .stage-badge { background: rgb(180, 40, 40); }
.stage4 .stage-badge { background: rgb(200, 130, 0); }
.stage5 .stage-badge { background: rgb(100, 40, 180); }

.roadmap-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.roadmap-card ul {
  padding-left: 18px;
}

.roadmap-card ul li {
  margin-bottom: 7px;
  font-weight: bold;
  font-size: 13.5px;
  color: var(--text-main);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  font-weight: bold;
  line-height: 2;
}

/* ── PRINT STYLES ── */
@media print {
  .disclaimer-banner,
  .toolbar,
  .site-footer,
  .tab-bar,
  .btn-print { display: none !important; }

  body { background: white; font-size: 12px; }
  .main-content { max-width: 100%; margin: 0; padding: 0; }
  .content-section { page-break-inside: avoid; }
  .card, .tab-panel { box-shadow: none; border: 1px solid #ccc; }

  .tab-panel {
    display: block !important;
    border: 1px solid #ddd;
    margin-bottom: 16px;
    break-inside: avoid;
  }

  .tab-panels {
    border-radius: 0;
    border: none;
  }

  .summary-table { font-size: 11px; }
  .site-header { padding: 20px; }
  .site-title { font-size: 26px; }
  .flowchart-svg { max-width: 600px; }
  @page { margin: 1.5cm; }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .toolbar { top: 36px; }
  .disclaimer-banner { font-size: 12px; padding: 8px 12px; }
  .site-header { padding: 32px 14px 28px; }
  .tab-btn { padding: 6px 9px; font-size: 11px; }
  .tab-panel { padding: 18px 16px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 18px; }
  .toolbar { gap: 8px; }
}