/* ==========================================================================
   TapBrain MGW SDK Documentation - Design System & Stylesheet
   Theme: Pure semantic tokens, high readability, WCAG AA contrast
   Stack: Vanilla CSS, System Fonts, Zero External Dependencies
   ========================================================================== */

/* --- 1. Design Tokens (Three-Layer Architecture) --- */
:root {
  /* Primitive Colors */
  --c-white: #ffffff;
  --c-slate-50: #f8fafc;
  --c-slate-100: #f1f5f9;
  --c-slate-200: #e2e8f0;
  --c-slate-300: #cbd5e1;
  --c-slate-400: #94a3b8;
  --c-slate-500: #64748b;
  --c-slate-600: #475569;
  --c-slate-700: #334155;
  --c-slate-800: #1e293b;
  --c-slate-900: #0f172a;
  --c-slate-950: #020617;

  /* Primary Accent: Indigo / Slate */
  --c-blue-500: #0284c7;
  --c-blue-600: #0369a1;
  --c-blue-700: #075985;
  --c-sky-100: #e0f2fe;
  --c-sky-900: #0c4a6e;

  /* Semantic Feedback */
  --c-emerald-600: #059669;
  --c-emerald-100: #d1fae5;
  --c-amber-600: #d97706;
  --c-amber-100: #fef3c7;
  --c-rose-600: #e11d48;
  --c-rose-100: #ffe4e6;

  /* Light Theme (Default) */
  --bg-page: var(--c-white);
  --bg-surface: var(--c-slate-50);
  --bg-surface-subtle: var(--c-slate-100);
  --border-subtle: var(--c-slate-200);
  --border-strong: var(--c-slate-300);

  --text-main: var(--c-slate-900);
  --text-muted: var(--c-slate-500);
  --text-inverse: var(--c-white);

  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-bg: #f0f9ff;
  --brand-border: #bae6fd;

  --callout-note-bg: #f0f9ff;
  --callout-note-border: #0284c7;
  --callout-note-text: #0369a1;

  --callout-wrong-bg: #fff1f2;
  --callout-wrong-border: #e11d48;
  --callout-wrong-text: #be123c;

  --callout-tip-bg: #f0fdf4;
  --callout-tip-border: #059669;
  --callout-tip-text: #047857;

  --callout-check-bg: #fefce8;
  --callout-check-border: #d97706;
  --callout-check-text: #b45309;

  --code-bg: #f8fafc;
  --code-border: #e2e8f0;
  --code-text: #0f172a;

  /* Typography Scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Sizing & Spacing */
  --header-height: 60px;
  --sidebar-width: 280px;
  --toc-width: 240px;
  --content-max-width: 860px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Focus ring */
  --focus-ring: 2px solid var(--brand-primary);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-surface: #111827;
  --bg-surface-subtle: #1e293b;
  --border-subtle: #243042;
  --border-strong: #334155;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --brand-primary: #38bdf8;
  --brand-primary-hover: #7dd3fc;
  --brand-bg: #082f49;
  --brand-border: #0284c7;

  --callout-note-bg: #082f4944;
  --callout-note-border: #38bdf8;
  --callout-note-text: #7dd3fc;

  --callout-wrong-bg: #4c051933;
  --callout-wrong-border: #f43f5e;
  --callout-wrong-text: #fda4af;

  --callout-tip-bg: #064e3b33;
  --callout-tip-border: #10b981;
  --callout-tip-text: #6ee7b7;

  --callout-check-bg: #451a0333;
  --callout-check-border: #f59e0b;
  --callout-check-text: #fcd34d;

  --code-bg: #0f172a;
  --code-border: #1e293b;
  --code-text: #f8fafc;
}

/* --- 2. CSS Reset & Base Rules --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* Accessibility Focus States */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--brand-primary);
  color: var(--c-white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* --- 3. Header & Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--brand-primary);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-search:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.search-kbd {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  font-family: var(--font-mono);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-icon:hover {
  background-color: var(--bg-surface);
}

.menu-toggle {
  display: none;
}

/* --- 4. Main App Layout --- */
.layout-container {
  display: flex;
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar Navigation */
.site-sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  padding: 1.25rem 0.75rem 3rem 0.75rem;
  flex-shrink: 0;
}

.sidebar-group {
  margin-bottom: 1.5rem;
}

.sidebar-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.25rem;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-item-link:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-subtle);
  text-decoration: none;
}

.nav-item-link.active {
  color: var(--brand-primary);
  background-color: var(--brand-bg);
  font-weight: 600;
}

/* Content Area */
.content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 2.5rem 2rem 4rem 2.5rem;
}

.content-article {
  max-width: var(--content-max-width);
  width: 100%;
}

/* Table of Contents (Right Sticky or in-flow) */
.toc-aside {
  width: var(--toc-width);
  position: sticky;
  top: calc(var(--header-height) + 2.5rem);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-subtle);
  margin-left: 2rem;
  font-size: 0.825rem;
  flex-shrink: 0;
}

.toc-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  transition: all 0.15s ease;
}

.toc-link:hover, .toc-link.active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  text-decoration: none;
}

/* --- 5. Article Typography & Headings --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb-separator {
  color: var(--border-strong);
}

.content-article h1 {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.content-article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.content-article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.content-article p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  max-width: 75ch; /* Comfortable reading length */
}

.content-article ul, .content-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content-article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* --- 6. Callout Boxes --- */
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  font-size: 0.925rem;
  line-height: 1.6;
}

.callout-header,
.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Variants used by the pages map onto the four base palettes:
   info = note (blue), danger = wrong (red), warning/important = check (amber). */
.callout-note,
.callout-info {
  background-color: var(--callout-note-bg);
  border-color: var(--callout-note-border);
  color: var(--callout-note-text);
}

.callout-wrong,
.callout-danger {
  background-color: var(--callout-wrong-bg);
  border-color: var(--callout-wrong-border);
  color: var(--callout-wrong-text);
}

.callout-tip {
  background-color: var(--callout-tip-bg);
  border-color: var(--callout-tip-border);
  color: var(--callout-tip-text);
}

.callout-check,
.callout-warning,
.callout-important {
  background-color: var(--callout-check-bg);
  border-color: var(--callout-check-border);
  color: var(--callout-check-text);
}

/* Lead paragraph under the page title and small status badges. */
.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface-subtle);
  color: var(--text-muted);
}

.badge-danger {
  background-color: var(--callout-wrong-bg);
  border-color: var(--callout-wrong-border);
  color: var(--callout-wrong-text);
}

.badge-neutral {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-strong);
  color: var(--text-muted);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* --- 7. Code Blocks & Syntax Highlighting --- */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.35em;
  color: var(--brand-primary);
}

pre {
  position: relative;
  margin: 1.5rem 0;
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--code-text);
  font-size: 1em;
}

.btn-copy-code {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  opacity: 1;
  color: var(--text-main);
  background-color: var(--bg-surface-subtle);
}

/* Syntax Highlighting Tokens (CSS lightweight) */
.hl-kw { color: #8b5cf6; font-weight: 600; } /* Keywords (public, class, void, return) */
.hl-type { color: #0284c7; font-weight: 600; } /* Types (string, int, IAdsService) */
.hl-str { color: #16a34a; } /* Strings ("level_end") */
.hl-com { color: #94a3b8; font-style: italic; } /* Comments */
.hl-num { color: #ea580c; } /* Numbers */
.hl-attr { color: #d97706; } /* Attributes ([SerializeField]) */

[data-theme="dark"] .hl-kw { color: #c084fc; }
[data-theme="dark"] .hl-type { color: #38bdf8; }
[data-theme="dark"] .hl-str { color: #4ade80; }
[data-theme="dark"] .hl-com { color: #64748b; }
[data-theme="dark"] .hl-num { color: #fb923c; }
[data-theme="dark"] .hl-attr { color: #fcd34d; }

/* Code Comparison (Sai vs Đúng) */
.code-compare {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Pages use two vocabularies for the same widget: compare-col/bad/good and code-compare-item/wrong/right. */
.compare-col,
.code-compare-item {
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.compare-header {
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compare-bad .compare-header,
.compare-wrong .compare-header {
  background-color: var(--callout-wrong-bg);
  color: var(--callout-wrong-text);
  border-bottom: 1px solid var(--callout-wrong-border);
}

.compare-good .compare-header,
.compare-right .compare-header {
  background-color: var(--callout-tip-bg);
  color: var(--callout-tip-text);
  border-bottom: 1px solid var(--callout-tip-border);
}

.compare-col pre,
.code-compare-item pre {
  margin: 0;
  border: none;
  border-radius: 0;
}

/* --- 8. Tables --- */
.table-wrapper,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

th {
  background-color: var(--bg-surface);
  font-weight: 600;
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-strong);
}

td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}

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

tbody tr:hover {
  background-color: var(--bg-surface-subtle);
}

/* --- 9. SVG Diagrams & Visuals --- */
.svg-diagram-wrapper {
  margin: 2rem 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  text-align: center;
}

.svg-diagram-wrapper svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.diagram-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* --- 10. Prev / Next Navigation --- */
.page-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  width: 48%;
  transition: all 0.15s ease;
}

.nav-card:hover {
  border-color: var(--brand-primary);
  background-color: var(--bg-surface);
  text-decoration: none;
}

.nav-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.nav-card-next {
  text-align: right;
  margin-left: auto;
}

/* --- 11. Search Modal --- */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 90%;
  max-width: 620px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

.search-results-list {
  overflow-y: auto;
  padding: 0.5rem;
  list-style: none;
  flex: 1;
}

.search-result-item {
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
}

.search-result-link {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.1s ease;
}

.search-result-link:hover, .search-result-item.selected .search-result-link {
  background-color: var(--brand-bg);
  color: var(--brand-primary);
  text-decoration: none;
}

.search-res-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.search-res-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--brand-primary);
  z-index: 101;
  width: 0%;
  transition: width 0.1s ease;
}

/* --- 12. Checklist Component --- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  background-color: var(--bg-surface);
}

.checklist-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.checklist-content {
  flex: 1;
}

.checklist-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.checklist-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --- 13. Responsive Styles --- */
/* --- FAQ accordion (details/summary) and checklist wrapper --- */
.checklist-group {
  margin: 1rem 0 1.5rem;
}

.faq-group {
  margin: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-page);
}

.faq-item[open] {
  border-color: var(--border-strong);
  background-color: var(--bg-surface);
}

.faq-question {
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  list-style-position: inside;
}

.faq-question:hover {
  color: var(--brand-primary);
}

.faq-question:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.faq-answer {
  padding: 0 1rem 0.9rem;
  line-height: 1.65;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .toc-aside {
    display: none;
  }
  .content-wrapper {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .site-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    display: none;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .content-article h1 {
    font-size: 1.75rem;
  }

  .content-article h2 {
    font-size: 1.3rem;
  }

  .code-compare {
    flex-direction: column;
  }

  .page-navigation {
    flex-direction: column;
  }

  .nav-card {
    width: 100%;
  }

  .nav-card-next {
    text-align: left;
  }
}
