/* ElmVue Accelerate. Palette and type from the ElmVue RFP tool's style.css and the
   elmvue-branded-documents skill. Pages are white (BLUEPRINT section 3); accents are used only
   for the nav bar, buttons, phase headers, status chips and chart series. */
:root {
  /* Brand palette (unchanged from the RFP tool / brand skill) */
  --deep-forest: #0B1C16;
  --forest-green: #0B3D2E;
  --emerald: #1A5E3A;
  --copper: #B97333;
  --dark-copper: #9B5C29;
  --light-copper: #E3AC6B;
  --gold: #D4A843;
  --sage: #A8C5A0;
  --ivory: #F5F1E8;
  --cream: #FDFAF4;
  --copper-tint: #F7EBD8;
  --charcoal: #2C2C2A;
  --muted: #5F5E5A;
  --line: #E4DDCC;
  --neutral: #E6E1D3;     /* RFP tool .pill.neutral */
  --danger: #B23B3B;      /* RFP tool .btn.danger / .badge-danger */

  /* Status-only colors, approved 2026-10-19 because the palette has no blue or slate.
     Used for status chips and chart series only, never decoration. */
  --status-blue: #2F5D8A;
  --status-slate: #5A6670;

  /* Brand skill (Oct 2026): Georgia Bold headings, Trebuchet MS body. */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Trebuchet MS', 'Trebuchet', Calibri, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--charcoal); font-family: var(--font-body); font-size: 14px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: bold; color: var(--forest-green); }
a { color: var(--forest-green); }
a:hover { color: var(--emerald); }
a:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Top nav (accent: Forest Green, copper logo approved on this fill at 3.2:1) */
.topnav { background: var(--forest-green); color: #fff; display: flex; align-items: center; padding: 0 20px; height: 56px; gap: 24px; }
.topnav .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: bold; font-size: 17px; }
.topnav .brand img { height: 38px; }
.topnav nav { display: flex; gap: 4px; flex: 1; }
.topnav nav a { color: #fff; opacity: .85; padding: 8px 12px; border-radius: 4px; text-decoration: none; }
.topnav nav a.active, .topnav nav a:hover { opacity: 1; background: rgba(255,255,255,.12); color: #fff; }
.topnav .right { display: flex; align-items: center; gap: 12px; }
.userchip { background: var(--copper); color: #fff; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
.topnav .role { font-size: 12px; color: var(--light-copper); }
.linkbutton { background: none; border: 0; color: #fff; opacity: .85; cursor: pointer; font: inherit; padding: 0; }
.linkbutton:hover { opacity: 1; text-decoration: underline; }
.tagline-bar { background: var(--deep-forest); color: var(--light-copper); font-size: 11px; padding: 4px 20px; letter-spacing: .04em; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }
.page-title { font-size: 26px; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.muted { color: var(--muted); font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Project shell: left sidebar of project pages */
.project-body { display: flex; gap: 22px; }
.project-sidebar { width: 200px; flex-shrink: 0; align-self: flex-start; position: sticky; top: 16px; }
.project-sidebar a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 5px; color: var(--charcoal); text-decoration: none; margin-bottom: 2px; }
.project-sidebar a.active { background: var(--forest-green); color: #fff; font-weight: bold; }
.project-sidebar a:hover:not(.active) { background: var(--copper-tint); }
.project-sidebar .soon { font-size: 10px; color: var(--muted); }
.project-sidebar a.active .soon { color: var(--light-copper); }
.project-sidebar .group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 10px 4px; }
.project-main { flex: 1; min-width: 0; }

/* Buttons (accent) */
.btn { display: inline-block; font-family: var(--font-body); font-weight: bold; font-size: 13px; padding: 8px 16px; border-radius: 5px; border: 1px solid var(--forest-green); background: var(--forest-green); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--emerald); color: #fff; }
.btn.secondary { background: #fff; color: var(--forest-green); }
.btn.secondary:hover { background: var(--copper-tint); color: var(--forest-green); }
.btn.copper { background: var(--copper); border-color: var(--copper); color: var(--deep-forest); }
.btn.copper:hover { background: var(--dark-copper); color: #fff; }
.btn.danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: #fbeaea; }
.btn.small { padding: 4px 10px; font-size: 11.5px; }

/* Forms */
input, select, textarea { font-family: var(--font-body); font-size: 13.5px; padding: 7px 9px; border: 1px solid #cfc7b3; border-radius: 5px; background: #fff; color: var(--charcoal); }
textarea { width: 100%; }
label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; }
.field { margin-bottom: 12px; }
.field input:not([type=checkbox]), .field select { width: 100%; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { margin-bottom: 0; }
.checkbox { display: flex; align-items: center; gap: 6px; color: var(--charcoal); font-size: 13.5px; }

/* Tables: no zebra fill, white page per the blueprint */
table { border-collapse: collapse; width: 100%; }
th { background: var(--forest-green); color: #fff; text-align: left; padding: 8px 10px; font-size: 12px; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
tbody tr:hover td { background: var(--cream); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Flash messages */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13.5px; }
.flash.success { background: var(--sage); color: var(--deep-forest); }
.flash.error { background: #f3d3d3; color: #7a1f1f; }
.callout { background: var(--copper-tint); border-left: 4px solid var(--copper); padding: 10px 14px; border-radius: 4px; font-size: 13px; }

/* KPI tiles */
.kpi-row { display: flex; gap: 14px; margin: 14px 0; flex-wrap: wrap; }
.kpi { flex: 1 1 150px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.kpi .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 20px; font-weight: bold; color: var(--forest-green); font-family: var(--font-heading); }

/* Status chips: one set everywhere (BLUEPRINT section 3). Text colors chosen for >= 4.5:1. */
.chip { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; white-space: nowrap; }
.chip-not-started { background: var(--neutral); color: var(--charcoal); }
.chip-in-progress { background: var(--status-blue); color: #fff; }
.chip-passed, .chip-complete { background: var(--emerald); color: #fff; }
.chip-failed { background: var(--danger); color: #fff; }
.chip-blocked { background: var(--gold); color: var(--deep-forest); }
.chip-deferred { background: var(--status-slate); color: #fff; }
/* Non-status labels (roles, project status) use the brand neutrals, not the status hues. */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: bold; background: var(--copper-tint); color: var(--dark-copper); }
.tag.green { background: var(--sage); color: var(--deep-forest); }

/* Error page */
.error-box { max-width: 520px; margin: 60px auto; text-align: center; }
.error-box .code { font-family: var(--font-heading); font-size: 56px; color: var(--copper); }

/* Phase ribbon (project home) and phase headers. Accent: Forest Green steps, Emerald fill,
   Copper marks the current phase. */
.ribbon { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 8px 0 20px; }
.ribbon-step { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 10px; row-gap: 8px; padding: 12px 22px 12px 26px; background: var(--forest-green);
  color: #fff; text-decoration: none; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); }
.ribbon-step:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 16px; }
.ribbon-step:nth-child(even) { background: var(--emerald); }
.ribbon-step:hover { color: #fff; filter: brightness(1.12); }
.ribbon-step.current { box-shadow: inset 0 -4px 0 var(--copper); }
.ribbon-icon { grid-row: 1 / span 2; color: var(--light-copper); display: flex; }
.ribbon-name { font-family: var(--font-heading); font-weight: bold; font-size: 15px; }
.ribbon-pct { font-weight: bold; font-size: 13px; }
.ribbon-bar { grid-column: 2 / span 2; height: 6px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.ribbon-fill { display: block; height: 100%; background: var(--light-copper); }
.cross-band { background: var(--forest-green); color: #fff; padding: 7px 16px; border-radius: 4px; font-family: var(--font-heading); font-weight: bold; font-size: 13px; margin: -12px 0 20px; }
.cross-band span { font-family: var(--font-body); font-weight: normal; color: var(--light-copper); font-size: 12px; margin-left: 8px; }

.phase-header { display: flex; align-items: center; gap: 18px; background: var(--forest-green); color: #fff; border-radius: 8px; padding: 16px 22px; margin-bottom: 18px; }
.phase-header .phase-icon { color: var(--light-copper); flex-shrink: 0; }
.phase-header h2 { color: #fff; margin: 0; font-size: 24px; }
.phase-header .sub { color: var(--light-copper); font-size: 13px; }
.phase-header .pct { margin-left: auto; text-align: right; font-family: var(--font-heading); font-size: 28px; font-weight: bold; }
.phase-header .pct small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: normal; color: var(--light-copper); }
.progress { height: 8px; background: var(--neutral); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--emerald); }
.phase-section-title { display: flex; align-items: center; gap: 10px; color: var(--forest-green); margin: 26px 0 10px; }
.phase-section-title .phase-icon { color: var(--copper); }

.resp { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; border-left: 4px solid; background: var(--cream); }
.resp-elmvue { border-color: var(--copper); }
.resp-shared { border-color: var(--gold); }
.resp-client { border-color: var(--sage); }
ul.plain { margin: 6px 0 0; padding-left: 18px; }
ul.plain li { margin-bottom: 4px; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--charcoal); margin-bottom: 6px; }
.approval { border-left: 4px solid var(--emerald); background: var(--cream); padding: 10px 14px; border-radius: 4px; }
.placeholder { text-align: center; padding: 44px 20px; border: 1px dashed var(--line); border-radius: 8px; }
.placeholder h2 { margin-top: 0; }
.mt16 { margin-top: 16px; }
.checklist-table td { background: #fff; border-bottom: 1px solid var(--line); }
