/* ============================================================
   Maritime Welfare Review — additions to the main IMWIRSA
   stylesheet. Loaded AFTER css/style.css and depends on it:
   typography, navbar, page-hero, footer and buttons all come
   from there. Only what the publication genuinely needs that
   the site does not already have is defined here.
   ============================================================ */

/* ── INDEX LIST ────────────────────────────────────────────── */
.mwr-list { max-width: 820px; margin: 0 auto; }
.mwr-entry { padding: 30px 0; border-top: 1px solid var(--border); }
.mwr-entry:first-child { border-top: none; padding-top: 0; }

.mwr-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 12px;
}
.mwr-rubric { padding: 3px 10px; border-radius: 20px; background: rgba(13,110,138,0.1); color: var(--teal); }
.mwr-rubric.is-commentary { background: rgba(184,134,11,0.14); color: #8a6408; }

.mwr-entry h3 { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.35; margin-bottom: 10px; }
.mwr-entry h3 a { text-decoration: none; transition: color .2s; }
.mwr-entry h3 a:hover { color: var(--teal); }
.mwr-standfirst { font-size: 15px; color: var(--gray); line-height: 1.75; }

/* ── ARTICLE ───────────────────────────────────────────────── */
.mwr-article { max-width: 780px; margin: 0 auto; }
.mwr-lede { font-size: 18px; line-height: 1.7; color: var(--dark); font-weight: 500; margin-bottom: 26px; }
.mwr-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: 12.5px; color: var(--gray);
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}
.mwr-article h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 38px 0 14px; }
.mwr-article p { font-size: 15.5px; color: var(--gray); line-height: 1.85; margin-bottom: 16px; }
.mwr-article strong { color: var(--dark); }
.mwr-article ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.mwr-article ul li { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* Year-by-year figures. A plain table, because the point is that
   the reader can check each number against its source, not that
   the trend looks dramatic. */
.mwr-figures { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.mwr-figures th, .mwr-figures td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.mwr-figures th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gray); }
.mwr-figures td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.mwr-figures tr:last-child td { border-bottom: none; background: var(--slate); }

/* ── THE FACT / OPINION LINE ────────────────────────────────
   The one device the Review is built around. Everything above
   it is sourced and checkable; everything below is IMWIRSA's
   own reading, and it carries a name. A reader should never
   have to work out which of the two they are looking at. */
.mwr-divider { display: flex; align-items: center; gap: 16px; margin: 48px 0 24px; }
.mwr-divider::before, .mwr-divider::after {
  content: ""; flex: 1; height: 3px;
  border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy);
}
.mwr-divider span {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--navy); white-space: nowrap;
}

.mwr-view { background: var(--slate); border: 1px solid var(--border); border-radius: 18px; padding: 30px 32px; }
.mwr-view p { font-size: 15.5px; line-height: 1.85; color: var(--dark); }
.mwr-view p:last-of-type { margin-bottom: 24px; }
.mwr-signature { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }
.mwr-signature b { font-size: 15px; font-weight: 800; color: var(--navy); }
.mwr-signature span { font-size: 12.5px; color: var(--gray); }

/* ── SOURCES ───────────────────────────────────────────────── */
.mwr-sources { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.mwr-sources h2 { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gray); margin: 0 0 16px; }
.mwr-sources ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 11px; }
.mwr-sources li { font-size: 13.5px; line-height: 1.65; color: var(--gray); }
.mwr-sources li a { color: var(--teal); text-decoration: none; }
.mwr-sources li a:hover { text-decoration: underline; }

.mwr-corrections {
  margin-top: 26px; padding: 16px 20px; background: var(--slate);
  border-left: 4px solid var(--teal); border-radius: 4px 14px 14px 4px;
  font-size: 13px; line-height: 1.7; color: var(--gray);
}
.mwr-corrections a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* ── DRAFT BANNER — delete before publishing ───────────────── */
.mwr-draft {
  max-width: 780px; margin: 0 auto 32px; background: #FFF4E5;
  border: 2px solid var(--coral); border-radius: 14px; padding: 18px 22px;
  font-size: 14px; line-height: 1.7; color: #7A2E1B;
}
.mwr-draft b { display: block; margin-bottom: 4px; font-size: 15px; }

@media (max-width: 768px) {
  .mwr-view { padding: 24px 20px; }
  .mwr-divider { gap: 10px; }
  .mwr-divider span { font-size: 9.5px; letter-spacing: 1.2px; }
  .mwr-figures th, .mwr-figures td { padding: 8px 6px; font-size: 13.5px; }
}

@media print {
  .navbar, .lang-toggle, .mwr-draft, footer, .page-nav-pills { display: none !important; }
  .page-hero { padding-top: 20px; background: none; }
  .page-hero h1, .page-hero p, .breadcrumb { color: var(--dark) !important; }
}
