/* ============================================================
   Mark Edwards — Walmart Supplier Manual
   Brand: navy/blue corporate, clean editorial type
   ============================================================ */

:root {
  /* Brand palette — ME navy */
  --navy-900: #01243f;
  --navy-800: #01355e;
  --navy-700: #0a4b7c;
  --navy-600: #155b94;
  --blue-500: #2876b8;
  --blue-100: #e8f0f8;
  --blue-50:  #f3f7fb;

  /* Neutrals */
  --ink-900: #0f1722;
  --ink-700: #2a3645;
  --ink-500: #51607a;
  --ink-400: #7a869b;
  --ink-300: #aab4c4;
  --line:    #e3e8ef;
  --line-2:  #eef2f7;
  --bg:      #ffffff;
  --bg-soft: #f7f9fc;
  --bg-card: #ffffff;

  /* Accents */
  --gold:    #b8893a;
  --green:   #2f7d4f;
  --red:     #b8392b;
  --amber-bg:#fff6e5;
  --amber-bd:#f0d9a2;
  --info-bg: #eff5fb;
  --info-bd: #c9dbed;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Layout */
  --sidebar-w: 280px;
  --content-max: 920px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15,23,34,.05), 0 1px 1px rgba(15,23,34,.04);
  --shadow-md: 0 4px 12px rgba(15,23,34,.06), 0 2px 4px rgba(15,23,34,.04);
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink-900); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; color: var(--ink-900); }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- Mobile top bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--navy-900);
  color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}
.menu-toggle {
  background: transparent; border: none; color: #fff;
  padding: 8px; cursor: pointer; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle:hover { background: rgba(255,255,255,.08); }
.mobile-logo img {
  height: 30px;
  width: auto;
  background: #fff;
  padding: 4px 6px;
  border-radius: 4px;
}
.mobile-cta {
  background: #fff; color: var(--navy-900);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy-900);
  color: #d8e3ef;
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 24px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand {
  display: block;
  color: #fff;
}
.brand-logo {
  height: 72px; width: auto;
  max-width: 200px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
}
.brand-text { display: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #8aa3c0;
  margin-top: 2px;
}
.manual-label {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.version-pill {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,.08);
  color: #b9cde0;
  border-radius: 999px;
  letter-spacing: .02em;
}

/* Nav */
.nav { padding: 14px 12px; flex: 1; }
.nav-group { margin-bottom: 18px; }
.nav-group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6b88a8;
  padding: 6px 10px;
  font-weight: 600;
}
.nav-link {
  display: block;
  padding: 7px 10px;
  margin: 1px 0;
  color: #c2d2e3;
  font-size: 14px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-link:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}
.nav-link.active {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-left-color: var(--blue-500);
  font-weight: 500;
}
.nav-cta {
  background: var(--blue-500);
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  border-left: none !important;
  margin-top: 4px;
}
.nav-cta:hover { background: var(--blue-500); filter: brightness(1.1); }

.sidebar-footer {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: #8aa3c0;
}
.footer-line { margin-bottom: 4px; }
.footer-email { color: #fff; word-break: break-all; }
.footer-email:hover { color: var(--blue-500); }

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,36,63,.55);
  z-index: 40;
  opacity: 0;
  transition: opacity .2s;
}
.sidebar-backdrop.open {
  display: block;
  opacity: 1;
}

/* ---------- Content ---------- */
.content {
  margin-left: var(--sidebar-w);
  padding: 56px 56px 80px;
  min-height: 100vh;
}
.section {
  max-width: var(--content-max);
  margin: 0 auto 4.5rem;
  scroll-margin-top: 24px;
}
.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--navy-700);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -.015em;
  margin-bottom: 12px;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-500);
  line-height: 1.55;
  max-width: 68ch;
  margin-bottom: 28px;
}
.sub-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 28px 0 12px;
}

/* ---------- Cover ---------- */
.cover {
  max-width: var(--content-max);
  margin: 0 auto 5rem;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.cover-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--navy-700);
  font-weight: 600;
  margin-bottom: 16px;
}
.cover-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink-900);
  margin-bottom: 18px;
}
.cover-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-500);
  max-width: 60ch;
  margin-bottom: 32px;
}
.cover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cover-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.meta-item {
  font-size: 14px;
  color: var(--ink-700);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-item .meta-label,
.meta-item strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  font-weight: 600;
}
.meta-item .meta-value {
  color: var(--ink-900);
  font-weight: 500;
}

/* ---------- Glossary ---------- */
.glossary-list {
  margin: 16px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.glossary-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.glossary-item dt {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 14px;
  letter-spacing: .01em;
  padding-top: 1px;
}
.glossary-item dd {
  margin: 0;
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.6;
}
.glossary-item dd strong {
  color: var(--ink-900);
}
@media (max-width: 768px) {
  .glossary-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .glossary-item dt {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy-700);
  }
}

/* ---------- Confidential banner ---------- */
.confidential-banner {
  margin-top: 28px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff8e8;
  border: 1px solid #e9d39a;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: #5a4418;
  line-height: 1.55;
}
.confidential-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 1px;
}
@media (max-width: 768px) {
  .confidential-banner {
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }
  .confidential-label { align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--navy-800);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--navy-900);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
/* card-accent: an emphasized card variant (used on the Before-you-ship checklist) */
.card.card-accent {
  border-color: var(--blue-100);
  background: var(--blue-50);
  border-top: 3px solid var(--blue-500);
}
.card.card-accent::before { content: none; }
.card-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 6px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-700);
  padding: 4px 0;
  flex-wrap: wrap;
}
.card-row > :first-child {
  flex-shrink: 0;
  color: var(--ink-500);
}
.card-row > :last-child {
  text-align: right;
  word-break: break-word;
  min-width: 0;
  flex: 1 1 auto;
}
.card-row a {
  word-break: break-all;
}
.card-note {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-700);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.bullet-list {
  margin: 12px 0 20px;
  padding-left: 1.3em;
}
.bullet-list li {
  color: var(--ink-700);
  padding: 3px 0;
}

/* ---------- Callouts ---------- */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--navy-700);
  background: var(--blue-50);
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--ink-700);
}
.callout strong { color: var(--navy-900); }
.callout-info {
  border-left-color: var(--blue-500);
  background: var(--info-bg);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 18px 0;
}

/* ---------- Flowchart ---------- */
.flowchart-wrap {
  background: var(--bg-soft);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 16px 0;
  text-align: center;
}
.flowchart-img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}
.flowchart-caption {
  font-size: 13px;
  color: var(--ink-500);
  font-style: italic;
}

/* ---------- Labs ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.lab-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.lab-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 14px;
}
.lab-contact {
  font-size: 14px;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.lab-contact a { color: var(--navy-700); word-break: break-word; }
.lab-note {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

/* ---------- Table ---------- */
.table-wrap {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead {
  background: var(--navy-800);
  color: #fff;
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-700);
}
.data-table tr:nth-child(even) td { background: var(--bg-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Tracks (timeline / steps) ---------- */
.track-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 12px 0;
}
.track-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-700);
  font-weight: 700;
  margin-bottom: 6px;
}
.track-intro {
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.track-note {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 6px;
}

/* ---------- Compliance grid ---------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  padding-left: 56px;
}
.compliance-num {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}
.compliance-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
  line-height: 1.3;
}
.compliance-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
}

/* ---------- People ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.person {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.person-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.person-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-400);
  margin-bottom: 10px;
  font-weight: 600;
}
.person-email {
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
  word-break: break-all;
}
.person-topics {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}

/* ---------- Appendix images ---------- */
.appendix-image {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  padding: 20px;
  text-align: center;
}
.appendix-image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* ---------- LOA card (Appendix C) ---------- */
.loa-card {
  margin: 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "meta preview"
    "actions preview";
  gap: 22px 28px;
  align-items: start;
}
.loa-meta { grid-area: meta; }
.loa-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }
.loa-preview { grid-area: preview; }
.loa-meta-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.loa-meta-row:last-child { border-bottom: none; }
.loa-meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding-top: 1px;
}
.loa-meta-value { color: var(--ink-900); word-break: break-word; }
.loa-preview a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.loa-preview a:hover {
  box-shadow: 0 8px 24px rgba(1, 53, 94, 0.12);
  transform: translateY(-1px);
}
.loa-preview img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .loa-card {
    grid-template-columns: 1fr;
    grid-template-areas: "preview" "meta" "actions";
    padding: 20px;
  }
  .loa-meta-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Acknowledgment form ---------- */
.section-acknowledge {
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-100);
}
.ack-form {
  margin-top: 24px;
}
.form-row {
  margin-bottom: 18px;
}
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row label,
.form-row-half label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.req { color: var(--red); }
.form-row input,
.form-row textarea,
.form-row-half input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row-half input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(40,118,184,.15);
}
.form-row textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
  cursor: pointer;
}
.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 12px;
  line-height: 1.5;
}
.form-success {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #eaf6ee;
  border: 1px solid #c3e2cf;
  border-radius: 8px;
  color: #1f5a37;
}
.form-success.show { display: block; }
.form-success strong { color: #154526; }
.form-success textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 200px;
  background: #fff;
  color: var(--ink-700);
}

/* ---------- Footer ---------- */
.footer {
  margin-left: var(--sidebar-w);
  background: var(--ink-900);
  color: #b0bccd;
  padding: 48px 56px 28px;
  font-size: 13px;
}
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo {
  height: 36px;
  width: auto;
  background: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
  display: inline-block;
}
.footer-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-line {
  margin-bottom: 6px;
  color: #b0bccd;
}
.footer a { color: #b0bccd; }
.footer a:hover { color: #fff; }
.muted { color: #7a8aa1; font-size: 12px; }
.footer-base {
  max-width: var(--content-max);
  margin: 24px auto 0;
  font-size: 12px;
  color: #7a8aa1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content { padding: 48px 36px 64px; }
  .footer { padding: 40px 36px 24px; }
  .cover-title { font-size: 44px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  body { padding-top: 56px; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 86%;
    max-width: 320px;
    top: 56px;
  }
  .sidebar.open { transform: translateX(0); }
  .content {
    margin-left: 0;
    padding: 32px 20px 56px;
  }
  .footer {
    margin-left: 0;
    padding: 36px 20px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cover { padding: 24px 0 32px; }
  .cover-title { font-size: 34px; }
  .cover-sub { font-size: 17px; }
  .section { margin-bottom: 3rem; }
  .section-title { font-size: 26px; }
  .section-lede { font-size: 16px; }
  .two-col,
  .lab-grid,
  .form-row-half {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-acknowledge { padding: 24px 18px; }
  .cover-meta { gap: 20px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

/* ---------- Print stylesheet ---------- */
@media print {
  @page { margin: 0.6in; }
  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }
  .mobile-bar,
  .sidebar,
  .sidebar-backdrop,
  .cover-actions,
  .form-actions,
  .nav-cta,
  .section-acknowledge .ack-form { display: none !important; }
  .content,
  .footer { margin-left: 0; padding: 0; }
  .section, .cover {
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
  .section-title, .cover-title { color: #000; }
  .cover { border-bottom: 2pt solid #000; padding-bottom: 18pt; }
  .cover-title { font-size: 28pt; }
  .section-title { font-size: 18pt; }
  .card, .lab-card, .track-card, .compliance-card, .person, .callout {
    border: 1px solid #888 !important;
    background: #fff !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .data-table thead { background: #ddd !important; color: #000 !important; }
  .data-table th { color: #000 !important; }
  a { color: #000; text-decoration: none; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .footer { background: #fff !important; color: #555 !important; border-top: 1pt solid #aaa; padding-top: 12pt; }
  .footer-heading, .footer-base, .footer a { color: #555 !important; }
  .footer-logo { filter: none; }
  .appendix-image, .flowchart-wrap { background: #fff !important; border: 1px solid #888 !important; }
}
