/* Custom Prose & Theme Styles for GBC Business Meeting Site */

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.6);
}

/* Light Mode Typography (Default) */
.prose h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prose h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: #ea580c;
  border-radius: 2px;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c2410c;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  color: #334155;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.4rem; font-size: 0.93rem; }

/* Light Mode Blockquotes */
.prose blockquote {
  border-left: 4px solid #ea580c;
  background: #fff7ed;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  color: #c2410c;
  font-style: normal;
  margin: 1.25rem 0;
}
.prose blockquote p {
  margin: 0;
  color: #9a3412;
}

/* Light Mode Table Formatting */
.prose table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.prose th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #cbd5e1;
  vertical-align: top;
}

.prose td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover td {
  background: #f8fafc;
}

/* Balance column widths for 3-column summary tables without text overlapping */
.prose table tr th:first-child,
.prose table tr td:first-child {
  width: 18% !important;
  min-width: 120px !important;
}

.prose table tr th:nth-child(2),
.prose table tr td:nth-child(2) {
  width: 18% !important;
  min-width: 120px !important;
  text-align: center !important;
}

.prose table tr th:nth-child(3),
.prose table tr td:nth-child(3) {
  width: 64% !important;
}

/* Code Blocks */
.prose code {
  background: #f1f5f9;
  color: #ea580c;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-family: monospace;
  font-size: 0.85rem;
}

.prose pre {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.prose pre code {
  background: transparent;
  color: #e2e8f0;
  padding: 0;
}


/* ==========================================
   Dark Mode Overrides (.dark class on html)
   ========================================== */

.dark .prose h1 {
  color: #f8fafc;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.dark .prose h2 {
  color: #f1f5f9;
}

.dark .prose h3 {
  color: #fb923c;
}

.dark .prose p, 
.dark .prose ul, 
.dark .prose ol, 
.dark .prose li {
  color: #cbd5e1;
}

.dark .prose blockquote {
  background: rgba(234, 88, 12, 0.08);
  color: #fdba74;
}

.dark .prose blockquote p {
  color: #fed7aa;
}

.dark .prose table {
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.prose table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th {
  text-align: left;
  vertical-align: bottom;
  padding: 0.75rem 1rem;
}

.prose td {
  text-align: left !important;
  vertical-align: top;
  padding: 0.875rem 1rem;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

/* Column Width Proportions for 3-Column Tables */
.prose table tr > th:first-child:nth-last-child(3),
.prose table tr > td:first-child:nth-last-child(3) {
  width: 6%;
  text-align: center !important;
}

.prose table tr > th:first-child:nth-last-child(3) + th,
.prose table tr > td:first-child:nth-last-child(3) + td {
  width: 24%;
}

.prose table tr > th:first-child:nth-last-child(3) + th + th,
.prose table tr > td:first-child:nth-last-child(3) + td + td {
  width: 70%;
}

/* Column Width Proportions for 4-Column Tables */
.prose table tr > th:first-child:nth-last-child(4),
.prose table tr > td:first-child:nth-last-child(4) {
  width: 22%;
}

.prose table tr > th:first-child:nth-last-child(4) + th,
.prose table tr > td:first-child:nth-last-child(4) + td {
  width: 10%;
}

.prose table tr > th:first-child:nth-last-child(4) + th + th,
.prose table tr > td:first-child:nth-last-child(4) + td + td {
  width: 53%;
}

.prose table tr > th:first-child:nth-last-child(4) + th + th + th,
.prose table tr > td:first-child:nth-last-child(4) + td + td + td {
  width: 15%;
}

.prose td ul, .prose td ol {
  text-align: left !important;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  white-space: normal !important;
}

.prose td li {
  text-align: left !important;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  white-space: normal !important;
  word-break: break-word !important;
}

.dark .prose th {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

.dark .prose td {
  background: rgba(15, 23, 42, 0.4);
  color: #cbd5e1;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.dark .prose tr:hover td {
  background: rgba(30, 41, 59, 0.6);
}

.dark .prose code {
  background: rgba(30, 41, 59, 0.8);
  color: #f97316;
}

/* ==========================================
   HTML Contradictions & Risks Diagram Styles
   ========================================== */

.contradiction-board {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
  font-family: inherit;
}

.contradiction-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contradiction-header p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.contradiction-header br {
  display: none !important;
}

.dark .contradiction-header {
  color: #fb923c;
}

.contradiction-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .contradiction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contradiction-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0.875rem;
  padding: 1.125rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contradiction-card:hover {
  border-color: #f97316;
  box-shadow: 0 8px 16px -4px rgba(249, 115, 22, 0.12);
  transform: translateY(-2px);
}

.dark .contradiction-card {
  border-color: rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .contradiction-card:hover {
  border-color: #fb923c;
  box-shadow: 0 8px 20px -4px rgba(251, 146, 60, 0.2);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.contradiction-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.dark .contradiction-badge {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.contradiction-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.dark .contradiction-title {
  color: #f8fafc;
}

.contradiction-desc {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.55;
}

.dark .contradiction-desc {
  color: #94a3b8;
}

/* Risks Section */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.risk-card {
  border-radius: 0.875rem;
  padding: 1.125rem;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.risk-card.fatal {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(254, 242, 242, 0.7);
}

.dark .risk-card.fatal {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(127, 29, 29, 0.25);
}

.risk-card.operational {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(254, 243, 199, 0.6);
}

.dark .risk-card.operational {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(120, 53, 15, 0.25);
}

.risk-badge.fatal {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.dark .risk-badge.fatal {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.risk-badge.operational {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.dark .risk-badge.operational {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}


/* ==========================================
   Presentation Mode (Fullscreen)
   ========================================== */

body.fullscreen-mode aside,
body.fullscreen-mode header {
  display: none !important;
}

body.fullscreen-mode main {
  max-width: 100vw;
  padding: 2.5rem 1.5rem 6rem 1.5rem;
}

.dark.fullscreen-mode main, 
body.fullscreen-mode.dark main {
  background: #020617;
}

body.fullscreen-mode main {
  background: #f8fafc;
}

body.fullscreen-mode article {
  max-width: 1280px;
  margin: 0 auto;
  font-size: 1.125rem;
}

body.fullscreen-mode #presentation-controls {
  display: flex !important;
}

/* ==========================================
   Architecture Diagram Custom Styles
   ========================================== */
.intro-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.intro-row .lead { max-width: 68%; margin: 0; font-size: 0.95rem; color: #475569; }
.architecture-legend { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; justify-content: center; padding: 0.25rem 0.65rem; border: 2px solid currentColor; border-radius: 0.375rem; background: #ffffff; font-size: 0.78rem; font-weight: 700; line-height: 1.2; }
.legend-item.evolving { color: #15803d; border-color: #15803d; }
.legend-item.delayed { color: #e11d48; border-color: #e11d48; }

.arch { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 0.85rem; margin-top: 0.8rem; margin-bottom: 1.5rem; padding: 0.85rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #f8fafc; }
@media (max-width: 640px) { .arch { grid-template-columns: 1fr; } .intro-row .lead { max-width: 100%; } }

.arch-main { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.block { padding: 0.65rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #ffffff; }
.block-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.block-title { font-size: 0.92rem; font-weight: 750; color: #0f172a; }
.block.gov { background: #fff7ed; border: 1px dashed #fdba74; }
.block.infra { background: #f1f5f9; }

.ic { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 0.375rem; background: #ffedd5; color: #c2410c; flex: 0 0 auto; }
.ic svg { width: 1.15rem; height: 1.15rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { padding: 0.22rem 0.55rem; border-radius: 9999px; background: #f1f5f9; color: #475569; font-size: 0.78rem; font-weight: 600; }

.subs { display: grid; grid-template-columns: 1.8fr 1fr; gap: 0.65rem; }
@media (max-width: 640px) { .subs { grid-template-columns: 1fr; } }
.sub { padding: 0.5rem 0.65rem; border-radius: 0.45rem; background: #f8fafc; }
.sub-label { margin-bottom: 0.35rem; font-size: 0.78rem; font-weight: 750; color: #c2410c; letter-spacing: 0.04em; }

.services { display: grid; grid-template-columns: 1.5fr 0.9fr 1fr 2.4fr; gap: 0.65rem; }
@media (max-width: 1024px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .services { grid-template-columns: 1fr; } }

.side-rail { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; height: 100%; }
.security { display: flex; flex-direction: column; flex: 1 1 0%; padding: 0.75rem; border-radius: 0.5rem; background: linear-gradient(180deg, #fbf1ea 0%, #f7ede6 100%); border: 1px solid #f0dccf; }
.security .block-head { margin-bottom: 0.4rem; }
.security .ic { background: #ea580c; color: #ffffff; }
.security .block-title { color: #9a3412; font-size: 0.88rem; }
.security-list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.25rem; flex: 1; }
.security-item { padding: 0.32rem 0.55rem; border-radius: 0.375rem; background: #f6e0d4; color: #9a3412; font-size: 0.76rem; font-weight: 650; }

.operations { display: flex; flex-direction: column; flex: 1 1 0%; padding: 0.75rem; border: 1px solid #f0dccf; border-radius: 0.5rem; background: linear-gradient(180deg, #fbf1ea 0%, #f7ede6 100%); }
.operations-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.45rem; color: #0f172a; font-size: 0.88rem; font-weight: 750; }
.operations-icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 0.375rem; background: #ffedd5; color: #c2410c; }
.operations-icon svg { width: 1rem; height: 1rem; }
.operations-grid { display: grid; grid-template-columns: 1fr; gap: 0.35rem; margin-top: 0.25rem; flex: 1; }
.operation-item { padding: 0.32rem 0.55rem; border-radius: 0.375rem; background: rgba(255, 255, 255, 0.85); font-size: 0.76rem; font-weight: 650; }

.state-evolving { border: 2px solid #15803d !important; }
.state-delayed { border: 2px solid #e11d48 !important; }

/* Dark Mode Compatibility for Architecture Diagram */
.dark .intro-row .lead { color: #94a3b8; }
.dark .arch { background: #0f172a; border-color: #334155; }
.dark .block { background: #1e293b; border-color: #334155; }
.dark .block-title { color: #f8fafc; }
.dark .block.gov { background: rgba(234, 88, 12, 0.1); border-color: #ea580c; }
.dark .block.infra { background: #1e293b; }
.dark .chip { background: #334155; color: #cbd5e1; }
.dark .sub { background: #0f172a; }
.dark .security { background: rgba(234, 88, 12, 0.12); border-color: rgba(234, 88, 12, 0.3); }
.dark .security-item { background: rgba(234, 88, 12, 0.2); color: #fdba74; }
.dark .operations { background: rgba(234, 88, 12, 0.12); border-color: rgba(234, 88, 12, 0.3); }
.dark .operations-head { color: #f8fafc; }
.dark .operation-item { background: rgba(30, 41, 59, 0.8); color: #e2e8f0; }
.dark .legend-item { background: #1e293b; }

/* Sidebar Hover-Reveal Floating Drawer Styles */
#left-sidebar.sidebar-collapsed {
  position: absolute !important;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: 20rem !important;
  min-width: 20rem !important;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
}

.dark #left-sidebar.sidebar-collapsed {
  background-color: rgba(15, 23, 42, 0.98) !important;
}

#left-sidebar.sidebar-collapsed.sidebar-hover-active {
  transform: translateX(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#right-toc.toc-collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-left: none !important;
  opacity: 0;
  pointer-events: none;
}

.btn-active-toggle {
  background-color: rgba(249, 115, 22, 0.15) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
  color: #ea580c !important;
}

/* ==========================================
   Red Line Cards & Roadmap Timeline Custom Component Styles
   ========================================== */
.redline-box {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(255, 247, 237, 0.9) 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}
.dark .redline-box {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.25) 0%, rgba(124, 45, 18, 0.2) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.redline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #991b1b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(248, 113, 113, 0.3);
}
.dark .redline-header {
  color: #fca5a5;
}

.redline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.redline-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #fecaca;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.dark .redline-card {
  background: #1e293b;
  border-color: #7f1d1d;
}

.redline-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.dark .redline-title {
  color: #f87171;
}

.redline-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.redline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  background: #fef2f2;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}
.dark .redline-item {
  background: rgba(127, 29, 29, 0.2);
  color: #f1f5f9;
}

.redline-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  background: #fee2e2;
  color: #991b1b;
}
.dark .redline-badge {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Timeline Flow Custom Component */
.timeline-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.timeline-step {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.timeline-step:hover {
  border-color: #f97316;
  transform: translateY(-2px);
}
.dark .timeline-step {
  background: #1e293b;
  border-color: #334155;
}
.dark .timeline-step:hover {
  border-color: #fb923c;
}

.timeline-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ea580c;
  background: #ffedd5;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  width: fit-content;
}
.dark .timeline-step-num {
  background: rgba(234, 88, 12, 0.2);
  color: #fdba74;
}

.timeline-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.dark .timeline-step-title {
  color: #f8fafc;
}

.timeline-step-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}
.dark .timeline-step-desc {
  color: #94a3b8;
}

/* Guiding Principles Grid */
.principles-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}
.principle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.dark .principle-card {
  background: #1e293b;
  border-color: #334155;
}
.principle-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #f97316;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.principle-content {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
}
.dark .principle-content {
  color: #cbd5e1;
}
.principle-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.dark .principle-title {
  color: #f8fafc;
}

