/* ============================================================
   Ocean Bridge Advisory — Articles & Insights
   Shared styles for the /articles/ section.
   Design tokens & chrome ported from the homepage so the
   subpages match the site exactly.
   ============================================================ */

:root {
  --ink:        #0F2740;
  --ink-2:      #1B3B5A;
  --slate:      #4A5568;
  --slate-2:    #6B7280;
  --brass:      #B08A4F;
  --brass-2:    #C9A875;
  --paper:      #F7F4EE;
  --paper-2:    #EEEAE1;
  --paper-3:    #E8E3D6;
  --hairline:   rgba(15,39,64,0.18);
  --hairline-2: rgba(15,39,64,0.08);
  --rule-light: rgba(247,244,238,0.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
  text-rendering: geometricPrecision;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 56px; }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--hairline-2);
  background: rgba(247,244,238,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { display: block; }
.brand .firm {
  font-family: "Spectral", Georgia, serif; font-weight: 400; font-size: 19px;
  line-height: 1; letter-spacing: -0.005em; color: var(--ink);
}
.brand .firm-sub {
  font-family: "Manrope", sans-serif; font-size: 8px; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); margin-top: 5px;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--ink-2); transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--brass); }
.nav-links a.current { color: var(--brass); }
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; position: relative; padding: 0;
}
.menu-btn span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn span:nth-child(1) { top: 2px; }
.menu-btn span:nth-child(2) { top: 10px; }
.menu-btn span:nth-child(3) { top: 18px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============== PAGE HEAD ============== */
.page-head { padding: 96px 0 56px; position: relative; }
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass); display: flex; align-items: center;
  gap: 14px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.page-title {
  font-family: "Spectral", Georgia, serif; font-weight: 300;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.014em;
  margin: 0 0 20px; max-width: 920px; color: var(--ink); text-wrap: pretty;
}
.page-title em { font-style: italic; color: var(--ink-2); }
.page-sub {
  font-family: "Manrope", system-ui, sans-serif; font-weight: 300; font-style: italic;
  font-size: 20px; line-height: 1.6; color: var(--ink); max-width: 660px; margin: 0;
  text-wrap: pretty;
}
.page-lede {
  font-family: "Spectral", Georgia, serif; font-weight: 300; font-style: italic;
  font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 660px; margin: 0;
  text-wrap: pretty;
}

/* ============== ARTICLES SECTION ============== */
section.list-section { padding: 24px 0 96px; }

.art-toolbar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 28px;
  flex-wrap: wrap; padding: 0 0 20px;
}
.art-count {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate);
}
.art-count b { color: var(--ink); font-weight: 400; }
.art-search { position: relative; flex: 0 1 300px; }
.art-search input {
  width: 100%; font-family: "Manrope", sans-serif; font-weight: 300; font-size: 13.5px;
  color: var(--ink); background: transparent; border: none;
  border-bottom: 1px solid var(--hairline); padding: 9px 0 9px 24px;
}
.art-search input::placeholder { color: var(--slate-2); }
.art-search input:focus { outline: none; border-bottom-color: var(--brass); }
.art-search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); pointer-events: none; }

table.articles { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.articles thead th {
  font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate);
  text-align: left; padding: 0 24px 14px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom;
}
table.articles thead th.col-date { width: 124px; }
table.articles thead th.col-links { width: 152px; text-align: right; padding-right: 0; }

table.articles tbody tr { border-bottom: 1px solid var(--hairline); transition: background 0.18s ease; }
table.articles tbody tr:hover { background: rgba(176,138,79,0.05); }
table.articles td { padding: 28px 24px 28px 0; vertical-align: top; }

td.col-date {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.04em;
  color: var(--brass); white-space: nowrap; padding-top: 31px;
}
td.col-date .yr { display: block; color: var(--slate-2); font-size: 10px; margin-top: 5px; letter-spacing: 0.12em; }

.art-title {
  font-family: "Spectral", Georgia, serif; font-weight: 400; font-size: 22px;
  line-height: 1.24; letter-spacing: -0.006em; color: var(--ink); margin: 0 0 9px; text-wrap: pretty;
}
.art-summary {
  font-family: "Manrope", sans-serif; font-weight: 300; font-size: 14px; line-height: 1.65;
  color: var(--slate); margin: 0 0 14px; max-width: 620px; text-wrap: pretty;
}
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tag {
  font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate); border: 1px solid var(--hairline); padding: 4px 9px;
}

td.col-links { text-align: right; padding-right: 0; padding-top: 30px; }
.art-links { display: inline-flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.art-link {
  font-family: "Manrope", sans-serif; font-weight: 500; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 1px solid transparent; transition: color 0.18s, border-color 0.18s;
}
.art-link .lk-ic {
  font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.08em;
  color: var(--brass); border: 1px solid var(--hairline); padding: 3px 6px; line-height: 1;
}
.art-link:hover { color: var(--ink-2); border-bottom-color: var(--brass); }
.art-link.disabled { color: var(--slate-2); pointer-events: none; opacity: 0.5; }
.art-link.disabled .lk-ic { color: var(--slate-2); }

.art-empty { padding: 72px 0; text-align: center; border-bottom: 1px solid var(--hairline); }
.art-empty p {
  font-family: "Spectral", Georgia, serif; font-style: italic; font-weight: 300; font-size: 20px;
  color: var(--slate); margin: 0 0 8px;
}
.art-empty .hint { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--slate-2); }
.art-state {
  padding: 56px 0; font-family: "JetBrains Mono", monospace; font-size: 11.5px;
  letter-spacing: 0.08em; line-height: 1.7; color: var(--slate); max-width: 640px;
}
.art-state.error { color: var(--ink); }
.art-state.error code { display: inline-block; margin-top: 8px; background: var(--paper-2); padding: 3px 8px; color: var(--brass); }

/* ============== ARTICLE (reading template) ============== */
.article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 26px;
}
.article-meta .sep { width: 1px; height: 11px; background: var(--hairline); }
.article-meta .m-tags { color: var(--slate); letter-spacing: 0.14em; }
.byline { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; padding-top: 26px; border-top: 1px solid var(--hairline); }
.byline .who { font-family: "Manrope", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: var(--ink); }
.byline .role { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.byline .stack { line-height: 1.3; }

.prose { padding: 48px 0 8px; }
.prose .col { max-width: 700px; }
.prose p {
  font-family: "Spectral", Georgia, serif; font-weight: 300; font-size: 19px; line-height: 1.72;
  color: var(--ink-2); margin: 0 0 24px; text-wrap: pretty;
}
.prose p.lead-para { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose p.lead-para::first-letter {
  font-family: "Spectral", Georgia, serif; font-weight: 300; font-size: 60px; line-height: 0.8;
  float: left; margin: 8px 14px 0 0; color: var(--brass);
}
.prose h2 {
  font-family: "Spectral", Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--ink); margin: 44px 0 16px; text-wrap: pretty;
}
.prose h3 {
  font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--slate); margin: 36px 0 14px;
}
.prose blockquote {
  margin: 30px 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--brass);
  font-family: "Spectral", Georgia, serif; font-style: italic; font-weight: 300; font-size: 21px;
  line-height: 1.5; color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { font-family: "Spectral", Georgia, serif; font-weight: 300; font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-bottom: 9px; }
.prose em { font-style: italic; color: var(--ink); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }

.back-link {
  display: inline-flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace;
  font-weight: 400; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 24px; transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }
.back-link .arrow { color: var(--brass); }
.article-foot { border-top: 1px solid var(--hairline); margin-top: 24px; padding: 36px 0 80px; }

/* ============== FOOTER ============== */
footer {
  background: var(--ink); color: rgba(247,244,238,0.55); border-top: 1px solid var(--rule-light);
  padding: 32px 0; font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .firm { color: var(--brass-2); }
footer .legal-line {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-light);
  justify-content: flex-start; color: rgba(247,244,238,0.40); text-transform: none;
  letter-spacing: 0.06em; font-size: 9.5px;
}
footer .legal-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--brass); transition: color 0.2s; }
footer .legal-line a:hover { color: var(--brass-2); }

/* ============== RESPONSIVE ============== */

/* ---- Tablet / large phone (≤820px) ---- */
@media (max-width: 820px) {
  .container { padding: 0 28px; }
  .nav .container { padding-top: 16px; padding-bottom: 16px; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0;
    /* Push down by the nav's actual rendered height via padding-top */
    padding-top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline-2);
    padding-left: 28px; padding-right: 28px; padding-bottom: 28px;
    transform: translateY(-110%); transition: transform 0.3s ease;
    box-shadow: 0 14px 32px -16px rgba(15,39,64,0.22);
    z-index: 49;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 17px 0; border-bottom: 1px solid var(--hairline-2);
    font-size: 15px; min-height: 54px; display: flex; align-items: center;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-btn { display: block; }

  /* Page header */
  .page-head { padding: 56px 0 36px; }
  .page-sub { font-size: 17px; }

  /* Articles toolbar */
  .art-toolbar { flex-direction: column; gap: 14px; padding-bottom: 18px; }
  .art-search { flex: none; width: 100%; }
  .art-search input {
    width: 100%; padding: 12px 0 12px 28px; font-size: 15px;
    border-bottom-width: 1.5px;
  }
  .art-search svg { width: 16px; height: 16px; top: 50%; }

  /* Article cards (table → stacked) */
  table.articles,
  table.articles thead,
  table.articles tbody,
  table.articles tr,
  table.articles td { display: block; width: 100%; }
  table.articles thead { display: none; }
  table.articles tbody tr { padding: 26px 0; }
  table.articles tbody tr:hover { background: none; }
  table.articles td { padding: 0; }

  td.col-date {
    padding-top: 0; margin-bottom: 10px;
    font-size: 11px;
  }
  td.col-date .yr { display: inline; margin: 0 0 0 8px; }

  td.col-links { text-align: left; padding-top: 18px; }
  .art-links { flex-direction: row; align-items: center; gap: 12px; }
  .art-link {
    /* Button-style tap target */
    min-height: 44px; padding: 0 16px;
    border: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px;
  }
  .art-link:hover { border-color: var(--brass); background: rgba(176,138,79,0.05); }
  .art-link.disabled { border-color: var(--hairline-2); }

  .art-summary { max-width: none; }

  /* Prose (article reading page) */
  .prose { padding: 36px 0 4px; }
  .prose p { font-size: 18px; }
  .prose h2 { font-size: 24px; }

  /* Footer */
  footer .container {
    flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9.5px;
  }
}

/* ---- Phone (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav .container { padding-left: 20px; padding-right: 20px; }
  .nav-links { padding-left: 20px; padding-right: 20px; }

  /* Tighter header */
  .page-head { padding: 44px 0 28px; }
  .page-title { font-size: clamp(34px, 9vw, 48px); }
  .page-sub { font-size: 15.5px; }
  .eyebrow { font-size: 9.5px; margin-bottom: 16px; }

  /* Article cards */
  .art-title { font-size: 19px; }
  .art-summary { font-size: 13.5px; line-height: 1.6; }
  table.articles tbody tr { padding: 22px 0; }

  /* Read/PDF links — full touch width */
  .art-links { gap: 10px; }
  .art-link { min-height: 46px; padding: 0 14px; font-size: 10.5px; }

  /* Prose */
  .prose p { font-size: 17px; line-height: 1.68; }
  .prose p.lead-para { font-size: 19px; }
  .prose p.lead-para::first-letter { font-size: 48px; }
  .prose h2 { font-size: 22px; }
  .prose blockquote { font-size: 18px; padding-left: 18px; }
  .prose li { font-size: 16px; }

  /* Back link */
  .back-link { min-height: 44px; align-items: center; }

  /* Footer */
  footer { padding: 28px 0; }
  footer .container { gap: 8px; }
  footer .legal-line { margin-top: 14px; padding-top: 14px; }
}
