/*
 * Vanaya Strategic content site.
 * Flat, editorial, institutional. No rounded corners, no glow, no gradients,
 * no pill shapes. Light mode over the charcoal and red palette from the
 * supplied swatches.
 */

:root {
  /* Surfaces (light) */
  --bg:          #f4f5f6;
  --surface:     #ffffff;
  --surface-2:   #f0f1f3;
  --border:      #d7dade;
  --border-soft: #e6e8ea;

  /* Neutrals from the swatches */
  --charcoal: #3a3d42;
  --grey:     #6f7378;
  --off-white:#f2f3f4;
  --white:    #ffffff;

  /* Reds from the swatches, dark to bright */
  --maroon:     #5b1f27;
  --brick:      #9e2b32;
  --red:        #c62b30;
  --red-bright: #d62b26;

  /* Text (dark on light) */
  --heading:   #17191d;
  --text:      #23262b;
  --text-dim:  #5a5f66;
  --text-faint:#8a8f96;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- Navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: var(--surface);
  border-bottom: 2px solid var(--red);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
}

/* Logo slot: drop assets/logo.svg or assets/logo.png in and it appears here. */
.brand-logo {
  height: 36px;
  width: auto;
  display: none; /* brand.js reveals it once a real logo file loads */
}

.brand-wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-left: 1px solid var(--border);
  padding-left: 14px;
  margin-left: 4px;
}

.navbar-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.navbar-links a {
  color: var(--text-dim);
}

.navbar-links a:hover {
  color: var(--heading);
  text-decoration: none;
}

/* ---------------------------------------------------------------- Layout */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 80px 32px;
}

.page-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px 0;
}

.page-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: var(--heading);
}

.page-sub {
  color: var(--text-dim);
  margin: 10px 0 0 0;
  max-width: 70ch;
}

.section-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 40px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-dim);
}

/* ------------------------------------------------------------ Stat cards */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-card {
  background: var(--surface);
  padding: 20px;
  border-top: 2px solid var(--red);
}

.stat-card.is-muted {
  border-top-color: var(--grey);
}

.stat-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}

.stat-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------- Status badges */

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--grey);
  color: var(--text-dim);
  white-space: nowrap;
}

.badge.status-draft {
  border-color: var(--grey);
  color: var(--text-dim);
}

.badge.status-needs-sourcing {
  border-color: var(--maroon);
  color: var(--maroon);
}

.badge.status-ready-for-review {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}

.badge.status-approved {
  background: var(--brick);
  border-color: var(--brick);
  color: var(--white);
}

.badge.status-scheduled {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.badge.status-published {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--white);
}

.badge.badge-flag {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

/* ---------------------------------------------------------- Status bars */

.status-bar {
  display: flex;
  height: 22px;
  border: 1px solid var(--border);
  margin: 6px 0 20px 0;
}

.status-bar-seg {
  height: 100%;
}

.status-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.legend-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ----------------------------------------------------------------- Tables */

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 10px 12px;
  border: 1px solid var(--border);
}

table.data td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  vertical-align: middle;
}

table.data td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data tr.clickable:hover td {
  background: var(--surface-2);
  cursor: pointer;
}

/* ------------------------------------------------------------- Month cards */

.month-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 20px;
  display: block;
  color: inherit;
}

.month-card:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.month-card .m-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.month-card .m-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--heading);
  margin: 6px 0 6px 0;
}

.month-card .m-theme {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.month-card .m-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

@media (max-width: 860px) {
  .month-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- Week / pieces */

.week-block {
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.week-head {
  background: var(--surface-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.week-head .w-num {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.week-head .w-title {
  color: var(--text-dim);
  font-size: 14px;
}

.piece-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

.piece-row:first-child {
  border-top: none;
}

.piece-row:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.piece-type {
  width: 150px;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.piece-title {
  flex: 1;
  color: var(--text);
}

.piece-meta {
  color: var(--text-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- Article body */

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 48px;
  max-width: 76ch;
}

.doc h1 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--heading);
  margin-top: 0;
}

.doc h2 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--heading);
  margin-top: 32px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 6px;
}

.doc h3 {
  font-size: 16px;
  color: var(--charcoal);
  margin-top: 24px;
}

.doc p, .doc li {
  color: var(--text);
  line-height: 1.7;
}

.doc a {
  color: var(--red);
}

.doc blockquote {
  border-left: 3px solid var(--red);
  margin: 20px 0;
  padding: 4px 18px;
  color: var(--text-dim);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.doc th {
  background: var(--surface-2);
}

.doc code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  padding: 1px 5px;
}

/* ------------------------------------------------------------ Meta panel */

.meta-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-key {
  width: 160px;
  flex-shrink: 0;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  padding-top: 2px;
}

.meta-val {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Utility */

.muted {
  color: var(--text-faint);
}

.empty-note {
  background: var(--surface);
  border: 1px dashed var(--border);
  padding: 24px;
  color: var(--text-dim);
  text-align: center;
}

.error-note {
  background: var(--surface);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  color: var(--text-dim);
}
