/* Marine Intel — educational article pages
   Dark brand chrome, light article body for readability. */

:root {
  --mi-deep:    #050F1E;
  --mi-navy:    #0A2342;
  --mi-signal:  #0369A1;
  --mi-wave:    #0EA5E9;
  --mi-sky:     #38BDF8;
  --mi-mist:    #BAE6FD;
  --mi-surface: #E0F2FE;
  --mi-foam:    #F0F9FF;
  --mi-white:   #FFFFFF;
  --mi-warn:    #FCD34D;
  --mi-danger:  #F87171;
  --mi-good:    #4ADE80;
  --font-display: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--mi-deep); }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  color: var(--mi-deep);
}

/* Sticky dark nav */
.article-nav {
  background: rgba(5,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56,189,248,0.16);
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.02em;
  color: var(--mi-foam);
  text-decoration: none;
}
.article-nav .brand .accent { color: var(--mi-wave); }
.article-nav .nav-cta {
  font-family: var(--font-body);
  font-size: 0.92em;
  color: var(--mi-mist);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid rgba(56,189,248,0.32);
  border-radius: 4px;
  transition: all 0.2s;
}
.article-nav .nav-cta:hover { background: rgba(14,165,233,0.12); color: var(--mi-foam); border-color: var(--mi-wave); }

/* Light article body */
.article-page {
  background: var(--mi-foam);
  color: var(--mi-deep);
  min-height: calc(100vh - 100px);
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.article-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--mi-deep);
  letter-spacing: -0.01em;
}
.article-page .lede {
  font-size: 1.18em;
  color: var(--mi-navy);
  margin-bottom: 40px;
  border-left: 3px solid var(--mi-wave);
  padding-left: 20px;
  font-weight: 300;
  line-height: 1.55;
}
.article-page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55em;
  margin: 48px 0 14px;
  color: var(--mi-deep);
  letter-spacing: -0.005em;
}
.article-page h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15em;
  margin: 28px 0 8px;
  color: var(--mi-signal);
}
.article-page p { margin: 0 0 18px; color: #1A2942; font-size: 1.04em; }
.article-page strong { color: var(--mi-deep); font-weight: 600; }
.article-page em { font-style: italic; }
.article-page a {
  color: var(--mi-signal);
  text-decoration: none;
  border-bottom: 1px dotted var(--mi-signal);
}
.article-page a:hover { border-bottom-style: solid; color: var(--mi-wave); }
.article-page ul, .article-page ol { margin: 0 0 22px 24px; }
.article-page li { margin-bottom: 8px; color: #1A2942; }

.article-page code {
  background: var(--mi-surface);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 0.92em;
  color: var(--mi-navy);
}
.article-page pre {
  background: var(--mi-deep);
  color: var(--mi-foam);
  padding: 18px 22px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0 0 22px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 0.9em;
  line-height: 1.5;
}
.article-page pre code { background: transparent; padding: 0; color: var(--mi-foam); }

.callout {
  background: var(--mi-surface);
  border-left: 4px solid var(--mi-signal);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 4px 4px 0;
}
.callout strong { color: var(--mi-navy); }

table.metric-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.95em;
}
table.metric-table th,
table.metric-table td {
  border: 1px solid var(--mi-surface);
  padding: 10px 14px;
  text-align: left;
  color: var(--mi-deep);
}
table.metric-table th {
  background: var(--mi-surface);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mi-navy);
}
table.metric-table tbody tr:nth-child(odd) { background: var(--mi-white); }

/* CTA block — return to brand-dark */
.cta-block {
  background: linear-gradient(135deg, var(--mi-navy) 0%, var(--mi-deep) 100%);
  color: var(--mi-foam);
  padding: 48px 36px;
  border-radius: 10px;
  margin: 56px 0 32px;
  text-align: center;
  border: 1px solid rgba(56,189,248,0.18);
}
.cta-block h2 { color: var(--mi-foam); margin: 0 0 14px; font-size: 1.45em; }
.cta-block p { color: var(--mi-mist); margin-bottom: 24px; font-size: 1.02em; }
.cta-block .btn {
  display: inline-block;
  background: var(--mi-wave);
  color: var(--mi-deep);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02em;
  border: none;
}
.cta-block .btn:hover { background: var(--mi-sky); }

.faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mi-deep);
  margin-top: 22px;
  font-size: 1.05em;
}
.faq dd { margin: 6px 0 0; color: #2A3956; }

.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--mi-surface);
}
.related-section h2 { font-size: 1.3em; margin-bottom: 18px; }
.related-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.related-links a {
  display: block;
  background: var(--mi-white);
  padding: 16px 20px;
  border: 1px solid var(--mi-surface);
  border-radius: 6px;
  text-decoration: none;
  border-bottom: 1px solid var(--mi-surface);
  color: var(--mi-deep);
  font-family: var(--font-body);
  font-size: 0.98em;
  line-height: 1.4;
  transition: all 0.2s;
}
.related-links a:hover { border-color: var(--mi-wave); color: var(--mi-signal); }

/* Footer */
.article-footer {
  background: var(--mi-deep);
  color: var(--mi-mist);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.92em;
}
.article-footer a { color: var(--mi-sky); text-decoration: none; }
.article-footer a:hover { color: var(--mi-foam); }

@media (max-width: 720px) {
  .article-inner { padding: 40px 20px 60px; }
  .article-page h1 { font-size: 1.85em; }
  .article-page .lede { font-size: 1.04em; padding-left: 14px; }
  .cta-block { padding: 36px 22px; }
}
