:root {
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-navy: #0b1f3a;
  --color-navy-soft: #132d4f;
  --color-blue: #1e4d8c;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --font: "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-accent) 100%);
  box-shadow: var(--shadow-sm);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}

.primary-nav a:hover {
  color: var(--color-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--color-navy);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #eef3fa 0%, var(--color-bg) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: rgba(30, 77, 140, 0.08);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-blue);
  text-decoration: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--color-success);
  font-weight: 700;
}

/* Mockup */
.mockup-window {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-titlebar span:nth-child(1) { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.mockup-titlebar span:nth-child(2) { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; }
.mockup-titlebar span:nth-child(3) { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }

.mockup-title {
  margin-left: auto;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.55);
}

.mockup-body {
  padding: 1.25rem;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-pill {
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-pill .label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.stat-pill .value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.stat-pill .value.up {
  color: #6ee7b7;
}

.chart-svg {
  width: 100%;
  height: 120px;
  margin-bottom: 1rem;
}

.mockup-insight {
  padding: 0.75rem 0.85rem;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.ai-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #93c5fd;
  margin-bottom: 0.35rem;
}

.mockup-insight p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* Sections */
section.features,
section.ai-preview,
section.learning {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--color-navy);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--color-blue);
  background: rgba(30, 77, 140, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* AI Preview */
.ai-preview {
  background: linear-gradient(180deg, var(--color-bg) 0%, #e8eef7 100%);
}

.preview-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.preview-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.input-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fafbfc;
}

.input-row input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  border-color: var(--color-accent);
  background: #fff;
}

.form-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.preview-output {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #0f172a;
  border-radius: var(--radius);
  color: #e2e8f0;
  min-height: 180px;
  font-size: 0.92rem;
}

.output-placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.output-placeholder p {
  margin: 0;
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
}

.report-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.metric .k {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.metric .v {
  font-weight: 600;
  font-size: 0.85rem;
}

.report-body p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.report-body p:last-child {
  margin-bottom: 0;
}

.report-disclaimer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #64748b;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.is-loading .btn-label {
  opacity: 0.7;
}

/* Learning */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.learning-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(30, 77, 140, 0.1);
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.learning-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-navy);
  line-height: 1.4;
}

.learning-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Contact */
.contact {
  padding: 3rem 0;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-navy);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
}

.contact h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.35rem;
}

.contact p {
  margin: 0;
  max-width: 48ch;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
}

.contact .btn-primary {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #070f1c;
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  display: block;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}

.disclaimer-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
}

/* Mobile nav open */
.site-header.nav-open .primary-nav {
  display: block;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .mockup-stats {
    grid-template-columns: 1fr;
  }

  .feature-cards,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav li:last-child a {
    border-bottom: none;
  }

  .site-header {
    position: relative;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row .btn {
    width: 100%;
  }
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.legal-breadcrumb a {
  color: var(--color-blue);
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-document {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  max-width: 820px;
}

.legal-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--color-navy);
  line-height: 1.3;
}

.legal-meta {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.legal-lead {
  margin: 0;
  padding: 1rem 1.15rem;
  background: rgba(30, 77, 140, 0.06);
  border-left: 3px solid var(--color-blue);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.legal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.legal-section:first-of-type {
  margin-top: 2rem;
}

.legal-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--color-navy);
  font-weight: 700;
}

.legal-section p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  font-size: 0.95rem;
}

.legal-section li {
  margin-bottom: 0.45rem;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-contact-box {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.legal-contact-box p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.legal-contact-box p:last-child {
  margin-bottom: 0;
}

.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal-footer-note p {
  margin: 0;
}

.footer-links a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.contact-details {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.9);
}

.contact-details li {
  margin-bottom: 0.35rem;
}

.contact-details a {
  color: #93c5fd;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.company-table th {
  width: 28%;
  min-width: 7rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg);
}

.company-list {
  margin: 0;
  padding-left: 1.2rem;
}

.company-list li {
  margin-bottom: 0.35rem;
}

.company-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }
}

/* Article pages */
.article-page {
  padding: 2rem 0 4rem;
  background: linear-gradient(180deg, #eef3fa 0%, var(--color-bg) 120px);
}

.article-shell {
  max-width: 760px;
  margin-inline: auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.3;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.article-deck {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.article-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.article-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.article-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
}

.article-toc li {
  margin-bottom: 0.35rem;
}

.article-toc a {
  color: var(--color-text);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.article-body section {
  margin-bottom: 2.5rem;
}

.article-body section:last-of-type {
  margin-bottom: 0;
}

.article-body h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-navy);
  border-bottom: 2px solid rgba(30, 77, 140, 0.12);
}

.article-body h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  color: var(--color-navy-soft);
}

.article-body p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.article-steps li {
  margin-bottom: 0.5rem;
}

.article-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
}

.article-callout-muted {
  background: rgba(30, 77, 140, 0.06);
  border-left-color: var(--color-blue);
}

.callout-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-blue);
}

.article-callout p:last-child {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 0.5rem;
}

.article-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.85rem;
}

.article-data-table th,
.article-data-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article-data-table thead th {
  background: var(--color-navy);
  color: #e2e8f0;
  font-weight: 600;
}

.article-data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.article-table-note {
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
}

.article-diagram {
  margin: 1.25rem 0;
  padding: 1rem;
  background: #0f172a;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.diagram-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.diagram-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  min-width: 7rem;
  text-align: center;
}

.diagram-chip.export {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.diagram-chip.domestic {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.diagram-chip.global {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.diagram-arrow {
  font-size: 0.82rem;
  color: #94a3b8;
}

.article-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.article-checklist li {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2rem;
  margin-bottom: 0.5rem;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.article-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  color: var(--color-success);
  font-weight: 700;
}

.article-disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: #f1f5f9;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.article-disclaimer h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--color-navy);
  border: none;
  padding: 0;
}

.article-disclaimer p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.article-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

.course-outline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.course-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-lessons li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.course-lessons li:last-child {
  border-bottom: none;
}

.lesson-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--color-navy);
  color: #e2e8f0;
}

.course-lessons a {
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.5;
}

.course-lessons a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
