/* =============================================
   TRIBUNAL AI — Courtroom Design System
   Warm woods, brass, parchment — real courtroom feel
   ============================================= */

/* ---- Google Fonts imported in HTML ---- */

:root {
  /* Courtroom Palette */
  --bench-wood-dark:    #3D1F0A;
  --bench-wood:         #5C3317;
  --bench-wood-light:   #7B4A2C;
  --bench-gold:         #8B6914;
  --bench-gold-light:   #C9A84C;
  --bench-cream:        #F5ECD7;
  --bench-parchment:    #FDF8EE;
  --robes-red:          #722F37;
  --robes-red-dark:     #4A1E23;
  --navy-deep:          #0F1B2D;
  --petitioner-blue:    #1B3A5C;
  --petitioner-bg:      rgba(27, 58, 92, 0.06);
  --petitioner-border:  rgba(27, 58, 92, 0.25);
  --defense-purple:     #4A1B5C;
  --defense-bg:         rgba(74, 27, 92, 0.06);
  --defense-border:     rgba(74, 27, 92, 0.25);
  --text-parchment:     #1C2014;
  --text-muted-wood:    #6B6455;
  --text-gold:          #7A5D10;
  --white-warm:         #FFFAF2;
  --gavel-shadow:       rgba(60, 40, 0, 0.12);
  --border-wood:        #D4C4A8;
  --font-heading:       'Playfair Display', serif;
  --font-body:          'Inter', sans-serif;
  --font-legal:         'Cormorant Garamond', serif;
  --transition:         all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bench-cream);
  color: var(--text-parchment);
  min-height: 100vh;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(92, 51, 23, 0.03) 60px,
      rgba(92, 51, 23, 0.03) 61px
    ),
    linear-gradient(180deg, var(--bench-cream) 0%, #F0E6D4 100%);
}

/* =========================================
   NAVIGATION
   ========================================= */
.tribunal-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--bench-wood-dark), var(--bench-wood));
  border-bottom: 2px solid var(--bench-gold);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.tribunal-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.tribunal-logo-gavel { font-size: 1.5rem; }

.tribunal-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bench-gold-light);
  letter-spacing: 0.5px;
}

.tribunal-logo-badge {
  font-size: 0.65rem;
  background: var(--robes-red);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-left: 0.25rem;
}

.tribunal-nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.tribunal-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: var(--transition);
}

.tribunal-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.tribunal-nav-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

/* =========================================
   JUDGE'S BENCH
   ========================================= */
.judges-bench {
  background: linear-gradient(180deg, var(--bench-wood-dark) 0%, var(--bench-wood) 40%, var(--bench-wood-light) 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--bench-gold);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.bench-ornament-top,
.bench-ornament-bottom {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--bench-gold) 0px,
    var(--bench-gold) 20px,
    transparent 20px,
    transparent 24px
  );
  opacity: 0.4;
}

.bench-ornament-top { margin-bottom: 1.5rem; }
.bench-ornament-bottom { margin-top: 1.5rem; }

.bench-content { max-width: 800px; margin: 0 auto; }

.bench-seal {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  animation: sealGlow 3s ease-in-out infinite;
}

@keyframes sealGlow {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.3)); }
  50% { filter: drop-shadow(0 2px 20px rgba(201, 168, 76, 0.6)); }
}

.bench-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bench-gold-light);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bench-subtitle {
  font-family: var(--font-legal);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(201, 168, 76, 0.7);
  margin-bottom: 1rem;
}

.bench-instruction {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* =========================================
   COUNSEL PODIUM
   ========================================= */
.counsel-podium {
  max-width: 900px;
  margin: -1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.podium-card {
  background: var(--white-warm);
  border: 1px solid var(--border-wood);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(60, 40, 0, 0.1);
  padding: 2rem;
  border-top: 4px solid var(--bench-gold);
}

.podium-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.podium-icon { font-size: 2rem; line-height: 1; }

.podium-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--bench-wood-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.podium-hint {
  font-size: 0.88rem;
  color: var(--text-muted-wood);
  line-height: 1.4;
}

.podium-textarea {
  width: 100%;
  min-height: 160px;
  padding: 1.25rem;
  background: var(--bench-parchment);
  border: 1.5px solid var(--border-wood);
  border-radius: 12px;
  font-family: var(--font-legal);
  font-size: 1.05rem;
  color: var(--text-parchment);
  resize: vertical;
  transition: var(--transition);
  line-height: 1.7;
}

.podium-textarea::placeholder {
  color: #A8987A;
  font-style: italic;
  font-family: var(--font-legal);
}

.podium-textarea:focus {
  outline: none;
  border-color: var(--bench-gold);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
}

.podium-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.podium-location-row {
  flex: 1;
  min-width: 200px;
}

.podium-location-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bench-parchment);
  border: 1.5px solid var(--border-wood);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-parchment);
  transition: var(--transition);
}

.podium-location-input::placeholder { color: #A8987A; }

.podium-location-input:focus {
  outline: none;
  border-color: var(--bench-gold);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
}

.podium-summon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--bench-wood-dark), var(--bench-wood));
  color: var(--bench-gold-light);
  border: 1.5px solid var(--bench-gold);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(60, 40, 0, 0.2);
}

.podium-summon-btn:hover {
  background: linear-gradient(135deg, var(--bench-wood), var(--bench-wood-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 40, 0, 0.3);
}

.podium-summon-btn:active {
  transform: translateY(0);
}

.podium-summon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.gavel-icon { font-size: 1.2rem; }

/* =========================================
   LOADER
   ========================================= */
.court-loader {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 500px;
  margin: 2rem auto;
}

.court-loader.hidden { display: none; }

.loader-gavel-container {
  margin-bottom: 1.5rem;
}

.loader-gavel {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: inline-block;
  animation: logoPulse 2s ease-in-out infinite;
  filter: brightness(0) invert(0.85) sepia(1) saturate(3) hue-rotate(10deg);
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; filter: brightness(0) invert(0.85) sepia(1) saturate(3) hue-rotate(10deg); }
  50% { transform: scale(1.08); opacity: 1; filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(5deg) drop-shadow(0 0 15px rgba(201, 168, 76, 0.6)); }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--bench-wood);
  margin-bottom: 1.5rem;
}

.loader-progress-bar {
  height: 6px;
  background: var(--border-wood);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bench-gold), var(--bench-gold-light));
  border-radius: 10px;
  animation: progressLoader 20s ease-in-out forwards;
}

@keyframes progressLoader {
  0% { width: 0%; }
  20% { width: 20%; }
  50% { width: 55%; }
  80% { width: 85%; }
  95% { width: 98%; }
  100% { width: 100%; }
}

/* =========================================
   VERDICT DOCK (Results)
   ========================================= */
.verdict-dock {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
  animation: dockFadeIn 0.6s ease-out;
}

.verdict-dock.hidden { display: none; }

@keyframes dockFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white-warm);
  border: 1px solid var(--border-wood);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--bench-gold);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.case-number-plate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.case-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted-wood);
  font-weight: 700;
}

.case-number {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bench-wood-dark);
  background: var(--bench-parchment);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-wood);
}

.case-court-name {
  font-family: var(--font-legal);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted-wood);
}

/* =========================================
   COURT SPLIT LAYOUT
   ========================================= */
.court-split-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

/* ----- Petitoner / Defense Sides ----- */
.court-side {
  background: var(--white-warm);
  border: 1px solid var(--border-wood);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(60, 40, 0, 0.06);
  animation: sideSlideIn 0.6s ease-out forwards;
  opacity: 0;
}

.petitioner-side { animation: sideSlideLeft 0.6s ease-out forwards; }
.defense-side { animation: sideSlideRight 0.6s ease-out forwards; }

@keyframes sideSlideLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sideSlideRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Side Header */
.side-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid;
}

.petitioner-header {
  background: var(--petitioner-bg);
  border-bottom-color: var(--petitioner-blue);
}

.defense-header {
  background: var(--defense-bg);
  border-bottom-color: var(--defense-purple);
}

.side-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.side-icon { font-size: 1.15rem; }

.side-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.petitioner-header .side-label { color: var(--petitioner-blue); }
.defense-header .side-label { color: var(--defense-purple); }

.win-probability-badge {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
}

.win-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
}

.win-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Win badge colors */
.win-probability-badge.high {
  background: rgba(78, 107, 82, 0.12);
  color: #4E6B52;
}
.win-probability-badge.medium {
  background: rgba(139, 105, 20, 0.12);
  color: var(--text-gold);
}
.win-probability-badge.low {
  background: rgba(114, 47, 55, 0.1);
  color: var(--robes-red);
}


/* Identity */
.side-identity {
  padding: 1rem 1.25rem;
  background: var(--bench-parchment);
  border-bottom: 1px solid var(--border-wood);
}

.identity-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.identity-row:last-child { margin-bottom: 0; }

.identity-key {
  font-weight: 700;
  color: var(--text-muted-wood);
  min-width: 110px;
  flex-shrink: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.identity-value {
  color: var(--text-parchment);
  font-weight: 500;
}

.prayer-row .identity-value {
  font-weight: 700;
  color: var(--bench-wood-dark);
}

/* Summary */
.side-summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-legal);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-parchment);
  border-bottom: 1px solid var(--border-wood);
  font-style: italic;
}

/* Exhibits */
.exhibits-container {
  padding: 1rem 1.25rem;
}

.exhibits-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted-wood);
  margin-bottom: 0.85rem;
}

.argument-card {
  background: var(--bench-parchment);
  border: 1px solid var(--border-wood);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  animation: argFadeIn 0.4s ease-out forwards;
  opacity: 0;
}

.argument-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(60,40,0,0.08);
}

.argument-card:nth-child(1) { animation-delay: 0.1s; }
.argument-card:nth-child(2) { animation-delay: 0.2s; }
.argument-card:nth-child(3) { animation-delay: 0.3s; }
.argument-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes argFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.arg-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bench-wood-dark);
  margin-bottom: 0.4rem;
}

.arg-detail {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-parchment);
  margin-bottom: 0.6rem;
}

.arg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.arg-section-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(139, 105, 20, 0.1);
  border: 1px solid rgba(139, 105, 20, 0.3);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-gold);
}

.arg-evidence {
  font-size: 0.82rem;
  color: var(--text-muted-wood);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.arg-evidence strong {
  color: var(--bench-wood-dark);
}

.arg-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.arg-strength {
  font-size: 0.82rem;
  font-weight: 700;
}

.arg-weakness {
  font-size: 0.78rem;
  color: var(--robes-red);
  font-style: italic;
}

/* Objections */
.objections-container {
  padding: 0 1.25rem 1rem;
}

.objections-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--robes-red);
  margin-bottom: 0.65rem;
}

.objection-card {
  background: rgba(114, 47, 55, 0.04);
  border: 1px solid rgba(114, 47, 55, 0.2);
  border-left: 3px solid var(--robes-red);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.objection-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--robes-red-dark);
  margin-bottom: 0.25rem;
}

.objection-detail {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted-wood);
  margin-bottom: 0.25rem;
}

.objection-section {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-gold);
}

/* Footer Info */
.side-footer-info {
  padding: 1rem 1.25rem;
  background: var(--bench-parchment);
  border-top: 1px solid var(--border-wood);
}

.footer-info-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-info-row:last-child { margin-bottom: 0; }

.info-key {
  font-weight: 700;
  color: var(--text-muted-wood);
  min-width: 100px;
  flex-shrink: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--text-parchment);
}

.strategy-row .info-value {
  font-style: italic;
  font-family: var(--font-legal);
  font-size: 0.9rem;
}

/* =========================================
   VS DIVIDER
   ========================================= */
.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0.75rem;
  position: relative;
}

.vs-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bench-gold), var(--bench-gold-light));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(139, 105, 20, 0.15), 0 0 30px rgba(139, 105, 20, 0.2);
  animation: vsPulse 2.5s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

@keyframes vsPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 105, 20, 0.15), 0 0 20px rgba(139, 105, 20, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(139, 105, 20, 0.08), 0 0 40px rgba(139, 105, 20, 0.3); }
}

.vs-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--bench-gold), var(--border-wood), var(--bench-gold));
  opacity: 0.3;
  margin-top: 0.5rem;
}

/* =========================================
   TRIBUNAL OBSERVATIONS
   ========================================= */
.tribunal-observations {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--white-warm), #F5ECD7);
  border: 1px solid var(--border-wood);
  border-radius: 14px;
  border-left: 4px solid var(--bench-gold);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(60, 40, 0, 0.06);
  animation: obsFadeIn 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

@keyframes obsFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.observations-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-wood);
}

.observations-icon { font-size: 1.5rem; }

.observations-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bench-wood-dark);
}

.observations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.observation-card {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-wood);
  transition: var(--transition);
}

.observation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(60,40,0,0.08);
}

.petitioner-edge { background: var(--petitioner-bg); }
.defense-edge { background: var(--defense-bg); }

.edge-icon { font-size: 1.5rem; line-height: 1; }

.edge-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.petitioner-edge .edge-label { color: var(--petitioner-blue); }
.defense-edge .edge-label { color: var(--defense-purple); }

.edge-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-parchment);
}

/* Pivotal Factors */
.pivotal-section {
  margin-bottom: 1.5rem;
}

.pivotal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--bench-wood-dark);
  margin-bottom: 0.85rem;
}

.pivotal-list {
  display: grid;
  gap: 0.6rem;
}

.pivotal-factor {
  padding: 0.85rem 1rem;
  background: var(--bench-parchment);
  border-left: 3px solid var(--bench-gold);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-parchment);
  animation: factorSlideIn 0.4s ease-out forwards;
  opacity: 0;
}

.pivotal-factor:nth-child(1) { animation-delay: 0.1s; }
.pivotal-factor:nth-child(2) { animation-delay: 0.2s; }
.pivotal-factor:nth-child(3) { animation-delay: 0.3s; }

@keyframes factorSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Settlement */
.settlement-section { padding-top: 1rem; border-top: 1px solid var(--border-wood); }

.settlement-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--bench-wood-dark);
  margin-bottom: 1rem;
}

.settlement-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.settlement-bar-bg {
  flex: 1;
  height: 12px;
  background: var(--border-wood);
  border-radius: 10px;
  overflow: hidden;
}

.settlement-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #C0392B, var(--bench-gold), var(--bench-gold-light));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.settlement-percent {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bench-wood-dark);
  min-width: 3.5rem;
}

.settlement-status-label {
  font-size: 0.78rem;
  color: var(--text-muted-wood);
  margin-bottom: 1rem;
}

.settlement-recommendation {
  background: var(--bench-parchment);
  border: 1px solid var(--border-wood);
  border-radius: 10px;
  padding: 1.1rem;
  font-family: var(--font-legal);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-parchment);
  font-style: italic;
}

/* =========================================
   FOOTER
   ========================================= */
.tribunal-footer {
  background: var(--bench-wood-dark);
  border-top: 2px solid var(--bench-gold);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1000px) {
  .court-split-layout {
    grid-template-columns: 1fr;
  }

  .vs-divider {
    flex-direction: row;
    padding: 0.5rem 0;
  }

  .vs-line {
    width: 100%;
    height: 2px;
    margin-top: 0;
    margin-left: 0.5rem;
    background: linear-gradient(90deg, var(--bench-gold), var(--border-wood), var(--bench-gold));
  }

  .observations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tribunal-nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    gap: 0.5rem;
  }

  .tribunal-nav-links { display: none; }

  .bench-title { font-size: 1.6rem; }
  .bench-subtitle { font-size: 1rem; }

  .counsel-podium { margin-top: -1rem; padding: 0 1rem; }
  .podium-card { padding: 1.5rem; }
  .podium-actions { flex-direction: column; }
  .podium-summon-btn { width: 100%; justify-content: center; }

  .case-header { flex-direction: column; align-items: flex-start; }

  .side-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

  .identity-row { flex-direction: column; gap: 0.2rem; }
  .identity-key { min-width: auto; }

  .verdict-dock { padding: 0 1rem 2rem; }
}

@media (max-width: 500px) {
  .tribunal-nav {
    padding: 0 0.65rem;
    min-height: 50px;
  }
  .tribunal-logo-text {
    font-size: 0.95rem;
  }
  .tribunal-logo-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
  
  .judges-bench {
    padding: 1.5rem 1rem 1.25rem;
  }
  .bench-seal {
    font-size: 2.5rem;
  }
  .bench-title {
    font-size: 1.3rem;
  }
  .bench-subtitle {
    font-size: 0.85rem;
  }
  .bench-instruction {
    font-size: 0.82rem;
  }
  
  .counsel-podium {
    margin-top: -0.75rem;
    padding: 0 0.75rem;
  }
  .podium-card {
    padding: 1.25rem;
  }
  .podium-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .podium-icon {
    font-size: 1.5rem;
  }
  .podium-header h2 {
    font-size: 1.1rem;
  }
  .podium-hint {
    font-size: 0.8rem;
  }
  .podium-textarea {
    min-height: 120px;
    padding: 0.85rem;
    font-size: 0.9rem;
  }
  .podium-location-row {
    min-width: 100%;
  }
  .podium-location-input {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
  }
  .podium-summon-btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .court-loader {
    padding: 2rem 1rem;
  }
  .loader-text {
    font-size: 0.9rem;
  }
  
  .case-header {
    padding: 0.85rem 1rem;
  }
  .case-number-plate {
    flex-wrap: wrap;
  }
  .case-number {
    font-size: 0.9rem;
  }
  .case-court-name {
    font-size: 0.85rem;
  }
  
  .court-split-layout {
    gap: 0;
  }
  
  .vs-divider {
    padding: 0.35rem 0.5rem;
  }
  .vs-badge {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
  
  .side-header {
    padding: 0.75rem 0.85rem;
  }
  .side-icon {
    font-size: 0.9rem;
  }
  .side-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  .win-num {
    font-size: 1.1rem;
  }
  .win-label {
    font-size: 0.6rem;
  }
  .win-probability-badge {
    padding: 0.2rem 0.6rem;
  }
  
  .side-identity {
    padding: 0.75rem 0.85rem;
  }
  .identity-row {
    font-size: 0.8rem;
  }
  .identity-key {
    font-size: 0.72rem;
    min-width: 80px;
  }
  
  .side-summary {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.55;
  }
  
  .exhibits-container {
    padding: 0.75rem 0.85rem;
  }
  .exhibits-title {
    font-size: 0.65rem;
  }
  .argument-card {
    padding: 0.75rem;
  }
  .arg-title {
    font-size: 0.85rem;
  }
  .arg-detail {
    font-size: 0.8rem;
  }
  .arg-evidence {
    font-size: 0.75rem;
  }
  .arg-stats {
    gap: 0.5rem;
  }
  .arg-strength {
    font-size: 0.75rem;
  }
  
  .objections-container {
    padding: 0 0.85rem 0.75rem;
  }
  .objection-card {
    padding: 0.55rem 0.75rem;
  }
  .objection-title {
    font-size: 0.82rem;
  }
  .objection-detail {
    font-size: 0.75rem;
  }
  
  .side-footer-info {
    padding: 0.75rem 0.85rem;
  }
  .footer-info-row {
    font-size: 0.78rem;
  }
  .info-key {
    font-size: 0.7rem;
    min-width: 80px;
  }
  .strategy-row .info-value {
    font-size: 0.82rem;
  }
  
  .tribunal-observations {
    padding: 1.25rem;
  }
  .observations-header h3 {
    font-size: 1.1rem;
  }
  .observations-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .observation-card {
    padding: 0.85rem;
  }
  .edge-text {
    font-size: 0.82rem;
  }
  .pivotal-title {
    font-size: 0.95rem;
  }
  .pivotal-factor {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
  .settlement-title {
    font-size: 0.95rem;
  }
  .settlement-percent {
    font-size: 1.1rem;
  }
  .settlement-recommendation {
    padding: 0.85rem;
    font-size: 0.88rem;
  }
  
  .tribunal-footer {
    padding: 1rem;
  }
  .footer-disclaimer {
    font-size: 0.72rem;
  }
}
