/* SiteVoice — modern, minimal, light fall palette */

:root {
  --bg: #ffefe4;             /* light neutral, BWR body ground */
  --surface: #ffffff;
  --surface-soft: #ecd2c0;   /* cool light gray */
  --ink: #0a0a0a;            /* near-black, BWR body text */
  --ink-soft: #33383b;
  --ink-muted: #6b7378;
  --line: #e2e5e7;
  --accent: #ff6b00;         /* BWR primary orange */
  --accent-deep: #ff6b00;    /* BWR link-hover rust */
  --accent-soft: #ffe4d1;
  --gold: #c97a1f;           /* warm amber, harmonized w/ orange */
  --gold-soft: #fbe8d0;
  --sage: #627d47;           /* BWR success green */
  --sage-soft: #e7ecdf;
  --rose: #b20000;           /* BWR alert red */
  --rose-soft: #f6dcdc;
  --navy: #1a4e6b;           /* BWR secondary navy */
  --navy-soft: #e2ebef;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 10px 30px rgba(10, 10, 10, 0.07);
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Momo Trust Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 40px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-family: "Momo Trust Display", "Momo Trust Sans", sans-serif; font-weight: bold; color: var(--accent); }
h1 { font-size: 2.3rem; margin: 0.3em 0 0.55em; }
h2 { font-size: 1.45rem; margin: 0.2em 0 1.1em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 0.6em; }

a { color: var(--accent-deep); }
.muted { color: var(--ink-muted); font-size: 0.92em; font-weight: 400; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* Header / footer */
.site-header {
  background: #1a4e6bd9;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; padding-bottom: 24px;
}
.brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
    position: absolute;
    top: 10px;
    color: #fff;
    font-size: 1.4em;
    line-height: 3em;
}
span.brand-mark {
    background: url(/static/logo.png);
    width: 140px;
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
}
.site-header nav { display: flex; gap: 5px; margin-left: auto; }
.site-header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    border-radius: 15px;
    padding: 10px 20px;
	font-family: "Momo Trust Display", "Momo Trust Sans", sans-serif;
	text-transform: uppercase;
}
.site-header nav a:hover { background-color: var(--accent-deep); }

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}
.nav-toggle span + span { margin-top: 6px; }

.site-footer {
    padding: 20px 0;
    border-top: 2px solid #0a3046;
    font-size: 0.9rem;
    background: #1a4e6b;
    color: #fff;
    text-align: right;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 40px;
    align-items: center;
}
.site-footer .copyright {
    text-align:left;
}
.site-footer .footer_info {
    text-align:right;
}

/* Mobile header nav */
@media (max-width: 800px) {
  span.brand-mark {
	width: 120px;
	height: 120px;
	z-index: 1;
}
  .nav-toggle { display: flex; }
    .site-header nav {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        background: #1a4e6b;
        padding: 8px 40px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        text-align: right;
    }
  .site-header nav.nav-open { display: flex; }
  .site-header nav a { padding: 12px 10px; }
  .site-footer .wrap { flex-direction: column; gap: 10px; }
  .site-footer .footer_info, .site-footer .copyright { text-align: center; }
  .wrap { padding: 20px; }
  .card, .card-soft { padding: 20px; }
  .hero {
    padding-left: 0;
    padding-top: 72px;
    text-align: center;
  }

  /* Report table -> stacked cards on mobile */
  .report-table thead { display: none; }
  .report-table, .report-table tbody, .report-table tr, .report-table td {
    display: block;
    width: 100%;
  }
  .report-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .report-table tr:last-child { margin-bottom: 0; }
  .report-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #f2ebdd;
    text-align: right;
  }
  .report-table tr:last-child td { border-bottom: 1px solid #f2ebdd; }
  .report-table td:last-child,
  .report-table tr:last-child td:last-child { border-bottom: none; }
  .report-table td::before {
    content: attr(data-label);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    font-weight: 600;
    text-align: left;
  }
}

/* Layout */
main { padding-top: 56px; }
.grid-2 {
  display: grid; grid-template-columns: 3fr 2fr; gap: 15px; align-items: start;
  margin-top: 12px;
}
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 28px; }

.hero {
    margin: 24px auto 30px;
    text-align: left;
    padding-left: 160px; /* sit clear of the hanging logo */
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 8px 20px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { font-size: 2.9rem; margin-bottom: 0.45em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 52px;
  margin-bottom: 15px;
}
.card-soft {
  background: var(--surface-soft); box-shadow: none; border-color: transparent;
  padding: 36px 40px;
}
@media (max-width: 800px) {
  .card, .card-soft {padding: 20px 20px;}
}
.card-soft h3 { margin-top: 0; }
.card-soft p { margin: 0; color: var(--ink-soft); }
.card-soft .checklist + p { margin-top: 14px; }
.card-narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.card-center { text-align: center; }
.card-center .notice { text-align: left; }

/* Forms */
label { display: block; font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], input[type="password"], select, textarea {
  display: block; width: 100%;
  margin-top: 10px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fffefc; color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea { resize: vertical; }

.suggest { position: relative; margin-top: 10px; }
.suggest input[type="text"] { margin-top: 0; }
.suggest-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: 100%;
  margin: 6px 0 0; padding: 6px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}
.suggest-list li {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--ink);
}
.suggest-list li:hover,
.suggest-list li.is-active { background: var(--accent-soft); }
.suggest-list li.suggest-empty {
  cursor: default; color: var(--ink-muted);
}
.suggest-list li.suggest-empty:hover { background: transparent; }
form.stack > * + * { margin-top: 28px; }
.inline-form { display: flex; gap: 14px; margin-top: 22px; }
.inline-form input { margin-top: 0; }
.inline-form .btn { flex-shrink: 0; }

.btn {
  display: inline-block; padding: 15px 30px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.98rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-deep); color: #fffdf9; }
.btn-primary:hover { background: #834219; }
.btn-ghost { background: transparent; color: var(--ink-muted); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-small {
  padding: 7px 18px; font-size: 0.85rem;
  background: var(--accent-soft); color: var(--accent-deep);
}
.btn-small:hover { background: #efd5c0; }

/* Large, high-contrast buttons for the employer sign-in page. Dark text on
   the brand orange, since white on #ff6b00 is too faint to read reliably. */
.btn-block {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 14px 24px;
  font-size: 1.1rem; font-weight: 700; text-align: center;
}
.btn-cta { background: var(--accent); color: var(--ink); }
.btn-cta:hover { background: #e86000; }
.btn-outline { background: var(--surface); color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }
.btn-block:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.link-strong { color: var(--navy); font-weight: 600; }

/* Flash messages & notices */
.flashes {
    margin-bottom: 24px;
    max-width: 620px;
    margin: 0 auto 24px auto;
    text-align: center;
}
.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 10px; font-size: 0.95rem; }
.flash-error { background: var(--rose-soft); color: #864848; }
.flash-ok { background: var(--sage-soft); color: #50603f; }

.notice {
  padding: 16px 20px; border-radius: 12px; margin: 22px 0; font-size: 0.95rem;
}
.notice-warn { background: var(--gold-soft); color: #755a24; }

/* Badges */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; white-space: nowrap; letter-spacing: 0.01em;
}
.badge-ok { background: var(--sage-soft); color: #50603f; }
.badge-bad { background: var(--rose-soft); color: #864848; }
.badge-status-submitted { background: #efe8da; color: #7a6c52; }
.badge-status-under_review { background: var(--gold-soft); color: #755a24; }
.badge-status-action_taken { background: var(--sage-soft); color: #50603f; }
.badge-status-closed { background: #ece9e3; color: #85807a; }
.badge-submitter { background: var(--navy-soft); color: var(--navy); }

/* Tracking code display */
.tracking-wrap { margin: 32px auto; }
.tracking-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 2.4rem; font-weight: 700; letter-spacing: 0.1em;
  background: var(--surface-soft); border: 1px dashed var(--accent);
  border-radius: var(--radius); color: var(--accent-deep);
  padding: 28px 40px; margin: 0 auto; display: inline-block;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  line-height: 1.2; white-space: nowrap;
  touch-action: manipulation;
  -webkit-user-select: all; user-select: all;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tracking-code:hover { background: var(--accent-soft); }
.tracking-code:focus-visible {
  outline: none; box-shadow: 0 0 0 4px var(--accent-soft);
}
.tracking-code.is-copied {
  border-style: solid; background: var(--sage-soft); color: #50603f;
}
.tracking-hint { margin: 10px 0 0; }
@media (max-width: 800px) {
  .tracking-code {
    font-size: 1.55rem; padding: 20px 16px; letter-spacing: 0.08em;
  }
}

/* Page-level nav row (e.g. "back to dashboard" above a card) */
.page-nav { display: flex; justify-content: flex-end; margin-bottom: 18px; }

/* Report metadata */
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.report-head h1, .report-head h2 { margin: 0; }
.meta {
  display: flex; flex-wrap: wrap; gap: 16px 56px;
  margin: 32px 0; padding: 26px 32px;
  background: var(--surface-soft); border-radius: 16px;
}
.meta div { margin: 0; }
.meta dt {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); font-weight: 600;
}
.meta dd { margin: 4px 0 0; font-weight: 500; font-size: 1.04rem; }
.description { white-space: pre-wrap; color: var(--ink-soft); }

/* Checklist */
.checklist { padding-left: 0; list-style: none; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 16px; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-deep); font-weight: 700;
}

/* Timeline */
.timeline { list-style: none; padding-left: 24px; margin: 0; border-left: 2px solid var(--accent-soft); }
.timeline li { position: relative; padding: 0 0 32px 22px; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
}
.timeline-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.timeline p { margin: 8px 0; }
.hash-line { font-size: 0.8rem; word-break: break-all; color: var(--ink-muted); }

/* Portal */
.portal-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 36px 0; }
.stat {
  flex: 1; min-width: 160px; text-align: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 16px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stat:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.stat-active { border-color: var(--accent-deep); background: var(--accent-soft); }
.stat-num { display: block; font-size: 2.2rem; font-weight: 700; color: var(--accent-deep); line-height: 1.2; }
.stat-label { font-size: 0.86rem; color: var(--ink-muted); font-weight: 500; margin-top: 4px; }

.filter-bar { display: flex; gap: 16px; align-items: center; margin-bottom: 36px; }
.filter-bar select { width: auto; margin-top: 0; }

.report-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.report-table th {
  text-align: left; font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.report-table td {
    padding: 10px 18px;
    border-bottom: 1px solid #f2ebdd;
}
.report-table tbody tr { transition: background 0.1s; }
.report-table tbody tr:hover { background: #fbf5ea; }
.report-table tr:last-child td { border-bottom: none; }

/* Employer sign-in welcome */
.portal-welcome .lede { margin: 0 0 18px; }
.portal-no-password {
  background: var(--accent-soft); border-radius: 12px;
  padding: 14px 18px; margin: 0 0 28px; color: var(--ink-soft);
}
.portal-actions { display: flex; flex-direction: column; gap: 14px; }
.portal-hint { margin: 4px 0 0; }
.portal-fine-print {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft);
}
.portal-fine-print p { margin: 0 0 8px; }

/* Verification chain */
.chain { list-style: none; padding: 0; margin: 0; }
.chain-link {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 30px; margin-bottom: 20px;
}
.chain-valid { border-left: 4px solid var(--sage); }
.chain-invalid { border-left: 4px solid var(--rose); background: var(--rose-soft); }

/* Admin (MBA staff: portal contacts) */
.admin-head { flex-wrap: wrap; gap: 12px; }
.admin-whoami { display: flex; align-items: center; gap: 14px; }
.admin-tabs { display: flex; gap: 8px; margin: 0 0 28px; }
.admin-tabs a {
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); font-weight: 600; border: 1px solid var(--line);
}
.admin-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.admin-grid {
  display: grid; gap: 20px; align-items: end;
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
}
.admin-grid-action .btn { white-space: nowrap; }
.admin-hint { margin: 18px 0 0; }
.filter-bar input[type="search"] { margin-top: 0; max-width: 420px; }
.admin-email { overflow-wrap: anywhere; }
.admin-row-actions {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  position: relative;
}
.admin-edit summary { list-style: none; }
.admin-edit summary::-webkit-details-marker { display: none; }
.admin-edit[open] summary { background: #efd5c0; }
/* Opens as a dropdown under the button so the table doesn't reflow. */
.admin-edit[open] form {
  position: absolute; z-index: 5; right: 0; top: calc(100% + 8px);
  width: 340px; padding: 20px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
}
.admin-edit form.stack > * + * { margin-top: 16px; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
  .admin-row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .admin-edit[open] form { position: static; width: auto; margin-top: 12px; box-shadow: none; }
}
