/* ---------- Theme tokens (same as landing page) ---------- */
:root {
  --sea-deep: #0b3954;
  --sea: #087e8b;
  --sea-light: #bfe3e6;
  --sand: #f6efe4;
  --foam: #fbfaf7;
  --ink: #1f2d36;
  --muted: #5f6f78;
  --accent: #e0a458;
  --navy: #072a3e;
  --navy-hover: #0b3954;
}
body { font-family: 'Roboto', sans-serif; color: var(--ink); background: var(--foam); }
h1, h2, h3, h4, .font-serif { font-family: 'Lora', serif; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 500; color: var(--sea); }
.section-title { color: var(--sea-deep); font-weight: 600; }
.lead-muted { color: var(--muted); }

.btn-sea { background: var(--navy); color: #fff; }
.btn-sea:hover, .btn-sea:focus { background: var(--navy-hover); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover, .btn-outline-navy:focus { background: var(--navy); color: #fff; }
.article-body .back-link { color: var(--navy); font-size: .95rem; font-weight: 500; text-decoration: none; }
.article-body .back-link i { transition: transform .25s ease; }
.article-body .back-link:hover i { transform: translateX(-4px); }
.article-body .btn { text-decoration: none; }
.btn-floating.btn-navy { background: var(--navy); color: #fff; }
.btn-floating.btn-navy:hover { background: var(--navy-hover); color: #fff; }

/* ---------- Navbar (solid on this page, transparent over header image) ---------- */
#mainNav { transition: background-color .35s ease, padding .35s ease; padding: 1.1rem 0; }
#mainNav .navbar-brand { font-family: 'Lora', serif; font-weight: 600; font-size: 1.35rem; }
#mainNav .nav-link { font-weight: 500; letter-spacing: .03em; }
#mainNav.nav-transparent { background: transparent; }
#mainNav.nav-transparent .navbar-brand,
#mainNav.nav-transparent .nav-link,
#mainNav.nav-transparent .navbar-toggler { color: #fff; }
#mainNav.nav-solid { background: rgba(251,250,247,.97); padding: .5rem 0; }
#mainNav.nav-solid .navbar-brand { color: var(--sea-deep); }
#mainNav.nav-solid .nav-link { color: var(--ink); }
@media (max-width: 991.98px) {
  #mainNav.nav-transparent .navbar-collapse.show,
  #mainNav.nav-transparent .navbar-collapse.collapsing { background: rgba(11,57,84,.92); border-radius: .5rem; padding: .5rem 1rem; }
}

/* Reading progress bar */
#readProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 1100; transition: width .1s linear; }

/* ---------- Article header ---------- */
.article-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  background: var(--sea-deep) center/cover no-repeat;
  color: #fff; padding: 8rem 0 3.5rem;
}
.article-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,42,62,.45) 0%, rgba(7,42,62,.35) 40%, rgba(7,42,62,.85) 100%);
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; max-width: 820px; }
.article-hero .badge { background: var(--sea-light); color: var(--navy); font-weight: 500; }
.breadcrumb-light a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb-light a:hover { color: var(--accent); }
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.breadcrumb-light .breadcrumb-item.active { color: rgba(255,255,255,.6); }
.author-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.article-meta { font-size: .9rem; color: rgba(255,255,255,.8); }
.article-meta i { margin-right: .35rem; }

/* ---------- Article body ---------- */
.article-body { font-size: 1.125rem; line-height: 1.85; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { color: var(--sea-deep); font-size: 1.75rem; font-weight: 600; margin: 2.75rem 0 1rem; scroll-margin-top: 90px; }
.article-body h3 { color: var(--sea-deep); font-size: 1.3rem; margin: 2rem 0 .75rem; }
.article-body .lead { font-size: 1.3rem; font-weight: 300; color: var(--muted); }
.article-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.article-body ul li { margin-bottom: .5rem; }
.article-body ul li::marker { color: var(--navy); }
.article-body blockquote {
  font-family: 'Lora', serif; font-style: italic; font-size: 1.45rem; line-height: 1.6;
  color: var(--sea-deep); border-left: 4px solid var(--accent);
  padding: .5rem 0 .5rem 1.5rem; margin: 2.5rem 0;
}
.article-body figure { margin: 2.5rem 0; }
.article-body figure img { width: 100%; border-radius: 1rem; aspect-ratio: 16/9; object-fit: cover; background: var(--sea-light); }
.article-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.callout {
  background: var(--sand); border-radius: 1rem; padding: 1.5rem 1.75rem; margin: 2.5rem 0;
  display: flex; gap: 1rem; align-items: flex-start;
}
.callout .ci { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Sidebar ---------- */
.sticky-side { position: sticky; top: 100px; }
.side-card { border: 0; border-radius: 1rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: .35rem 0 .35rem .9rem; border-left: 2px solid #e3e7ea; font-size: .92rem; }
.toc a:hover, .toc a.active { color: var(--navy); border-left-color: var(--navy); font-weight: 500; }
.share-btns .btn { width: 40px; height: 40px; }

/* ---------- Author box ---------- */
.author-box { background: #fff; border-radius: 1.25rem; padding: 2rem; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* ---------- Related ---------- */
#related { background: var(--sand); }
.blog-card { border: 0; border-radius: 1rem; overflow: hidden; height: 100%; }
.blog-card .img-wrap { overflow: hidden; display: block; }
.blog-card img { height: 200px; width: 100%; object-fit: cover; transition: transform .5s ease; background: var(--sea-light); }
.blog-card:hover img { transform: scale(1.06); }
.blog-card .badge { background: var(--sea-light); color: var(--sea-deep); font-weight: 500; }
.blog-meta { font-size: .8rem; color: var(--muted); }
.blog-meta i { color: var(--navy); }
.read-more { color: var(--navy); font-weight: 500; text-decoration: none; }
.read-more i { transition: transform .25s ease; }
.read-more:hover i { transform: translateX(4px); }

/* ---------- CTA + footer ---------- */
.cta-band { background: linear-gradient(160deg, var(--sea-deep), #0f5266 60%, var(--sea)); color: #fff; border-radius: 1.5rem; }
footer { background: var(--navy); color: rgba(255,255,255,.75); }
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.policy-body h2 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--navy); }
.policy-body p, .policy-body li { line-height: 1.6; }
.policy-body > p:first-child em { color: #6c757d; }
.navbar-brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: 32px;
  height: 32px;
  margin-right: .6rem;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25); /* faint edge so the navy tile shows on dark backgrounds */
  flex-shrink: 0;
}