/* The Naira Curve: styles the Tailwind CDN cannot express on Directus-rendered HTML. */

:root {
  --ink: #232A26;
  --treasury: #0A5C45;
  --muted: #5E6B64;
  --rule: #D5DDD8;
  --mist: #EEF3F0;
  --signal: #7A4E0E;
  --signal-bg: #FBF3E4;
}

.reading-column { max-width: 42rem; }

/* Masthead: the one memorable element, an upward-sloping curve under the name. */
.masthead { color: var(--ink); text-decoration: none; }
.masthead-curve { display: block; width: 100%; height: 0.9rem; margin-top: 0.3rem; overflow: visible; }
.masthead-curve path {
  fill: none; stroke: var(--treasury); stroke-width: 2.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 460; stroke-dashoffset: 0;
  animation: draw-curve 1.1s ease-out 0.15s both;
}
@keyframes draw-curve { from { stroke-dashoffset: 460; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .masthead-curve path { animation: none; } }

.nav-link { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: var(--rule); }
.nav-link[aria-current="page"] { border-bottom-color: var(--treasury); color: var(--treasury); }
.footer-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--treasury); }
.site-text p { margin: 0.4rem 0; line-height: 1.55; }
.site-text a { color: var(--treasury); text-decoration: underline; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible { outline: 2px solid var(--treasury); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0.5rem; background: #fff; color: var(--treasury); padding: 0.5rem 0.75rem; z-index: 50; }
.skip-link:focus { left: 0.5rem; }

/* Issue header */
.issue-kicker { font-size: 0.9rem; color: var(--treasury); font-weight: 500; font-variant-numeric: tabular-nums; }
.kicker-sep { color: var(--muted); }
.issue-header { margin-bottom: 2.25rem; }

/* Long-form prose in Spectral; tables and figures in Public Sans with tabular numerals. */
.prose-nc { color: var(--ink); font-family: 'Spectral', Georgia, serif; line-height: 1.72; }
.prose-nc h2, .prose-nc h3 { font-family: 'Spectral', Georgia, serif; font-weight: 600; color: var(--ink); }
.prose-nc h2 { margin-top: 2.6em; padding-top: 0.9em; border-top: 1px solid var(--rule); font-size: 1.35em; }
.prose-nc a { color: var(--treasury); text-underline-offset: 3px; }
.prose-nc strong { color: var(--ink); }
.prose-nc ul > li::marker { color: var(--treasury); }
.prose-nc img { border: 1px solid var(--rule); }
.prose-nc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* Blockquotes are reserved for dated correction notes (Site Content Contract v1). */
.prose-nc blockquote { background: var(--signal-bg); border-left: 4px solid var(--signal); color: var(--signal);
  font-style: normal; padding: 0.6rem 1rem; }
.prose-nc blockquote p::before, .prose-nc blockquote p::after { content: none; }
.prose-nc blockquote strong { color: var(--signal); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border-top: 2px solid var(--ink); }
.table-scroll table { margin: 0; width: max-content; min-width: 100%;
  font-family: 'Public Sans', system-ui, sans-serif; font-size: 0.86rem; line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums; }
.table-scroll th { font-weight: 600; color: var(--ink); white-space: nowrap; vertical-align: bottom; }
.table-scroll td { white-space: nowrap; }
.table-scroll th, .table-scroll td { padding: 0.5rem 0.9rem 0.5rem 0; }
.table-scroll tbody tr { border-bottom-color: var(--rule); }

.math-display { display: block; margin: 1.2em 0; overflow-x: auto; overflow-y: hidden; }

/* Status notices */
.preview-banner { background: var(--signal-bg); color: var(--signal); border-left: 4px solid var(--signal);
  padding: 0.8rem 1rem; margin-bottom: 2rem; font-size: 0.93rem; }
.corrected-notice { background: var(--signal-bg); color: var(--signal); padding: 0.7rem 1rem; margin-bottom: 2rem; font-size: 0.95rem; }
.corrected-notice a { color: var(--signal); text-decoration: underline; }
.correction { margin-top: 1.6rem; }
.correction-date { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.correction-date a { color: var(--treasury); text-decoration: underline; text-underline-offset: 3px; }

/* Archive: issue numbers are a real sequence, so they lead each row. */
.archive-year { font-family: 'Spectral', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: var(--muted);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-item { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.archive-number { font-variant-numeric: tabular-nums; color: var(--treasury); font-weight: 600; padding-top: 0.15rem; }
.archive-title { font-family: 'Spectral', Georgia, serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.archive-title:hover { color: var(--treasury); text-decoration: underline; text-underline-offset: 3px; }
.month-start { margin-top: 0.5rem; font-size: 0.82rem; color: var(--treasury); }
