/* ── METRA SITE — SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #0a0a0a;
  --white:       #ffffff;
  --off-white:   #f7f6f3;
  --mid:         #e8e6e1;
  --subtle:      #c8c5be;
  --muted:       #7a7872;
  --blue:        #0f4c8a;
  --blue-light:  #e8f0f9;
  --green:       #0d6b3a;
  --green-light: #e6f4ed;
  --amber:       #7a4a00;
  --amber-light: #fdf3e3;
  --red:         #8a1a1a;
  --red-light:   #fdf0f0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--mid);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
nav .logo img { height: 26px; display: block; }
nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav ul a { font-size: 14px; font-weight: 400; color: var(--muted); text-decoration: none; transition: color .2s; }
nav ul a:hover, nav ul a.active { color: var(--black); }
nav ul a.active { font-weight: 500; }
.nav-cta {
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--black) !important;
  border: 1px solid var(--mid); padding: 6px 15px;
  border-radius: 6px; transition: background .2s, border-color .2s !important;
}
.nav-cta:hover { background: var(--off-white) !important; border-color: var(--subtle) !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 40px; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--mid); background: var(--off-white);
  text-align: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { margin: 0 6px; }

/* ── HERO ── */
.page-hero {
  padding: 60px 40px 44px;
  border-bottom: 1px solid var(--mid);
  text-align: center;
}
.eyebrow {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 40px; font-weight: 400; line-height: 1.15;
  color: var(--black); margin-bottom: 18px;
}
.page-hero p {
  font-size: 17px; color: var(--muted);
  line-height: 1.7; max-width: 680px; font-weight: 300;
  margin: 0 auto 14px;
}
.page-hero .meta {
  font-size: 12px; color: var(--subtle); margin-top: 14px;
}

/* ── LAYOUT ── */
.page-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  max-width: 1060px; margin: 0 auto;
  padding: 0 40px; gap: 60px; align-items: start;
}
.sidebar {
  position: sticky; top: 80px;
  padding: 40px 0;
}
.sidebar-label {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--subtle); margin-bottom: 10px;
}
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 1px; }
.sidebar ul a {
  display: block; font-size: 13px; color: var(--muted);
  text-decoration: none; padding: 6px 10px; border-radius: 5px;
  transition: background .15s, color .15s; line-height: 1.4;
}
.sidebar ul a:hover { background: var(--off-white); color: var(--black); }
.sidebar ul a.active { background: var(--blue-light); color: var(--blue); font-weight: 500; }
.sidebar-sep { margin: 20px 0 16px; border: none; border-top: 1px solid var(--mid); }
.content { padding: 48px 0 80px; }

/* ── SECTION ── */
.section { margin-bottom: 56px; }
.section-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--mid);
  justify-content: center; text-align: center;
}
.section-head h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px; font-weight: 400; color: var(--black);
}

/* ── BADGES ── */
.badge {
  font-size: 11px; font-weight: 500; padding: 3px 8px;
  border-radius: 4px; white-space: nowrap; letter-spacing: .02em;
}
.badge-blue  { background: var(--blue-light);  color: var(--blue);  }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-red   { background: var(--red-light);   color: var(--red);   }

/* ── NOTICE ── */
.notice {
  background: var(--blue-light); border: 1px solid #c2d8f0;
  border-radius: 8px; padding: 14px 18px;
  font-size: 14px; color: var(--blue); line-height: 1.6; margin-bottom: 26px;
}
.notice strong { font-weight: 500; }
.notice-amber {
  background: var(--amber-light); border-color: #f0c980;
  color: var(--amber);
}

/* ── PROSE ── */
.prose p { font-size: 15px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.prose h3 { font-size: 16px; font-weight: 500; color: var(--black); margin: 28px 0 10px; text-align: center; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose ul li { font-size: 15px; color: var(--muted); margin-bottom: 7px; line-height: 1.6; }
.prose ul li strong { color: var(--black); font-weight: 500; }
.prose a { color: var(--blue); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .last-updated { font-size: 12px; color: var(--subtle); margin-bottom: 24px; text-align: center; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-size: 11px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: 10px 16px; border-bottom: 1px solid var(--mid); background: var(--off-white);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--mid); vertical-align: top; line-height: 1.5; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }
.cell-title { font-weight: 500; color: var(--black); font-size: 14px; }
.cell-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ── PILL STATUS ── */
.pill {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.pill-green  { background: var(--green-light); color: var(--green); }
.pill-amber  { background: var(--amber-light); color: var(--amber); }
.pill-blue   { background: var(--blue-light);  color: var(--blue);  }

/* ── PERSON CARDS ── */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person-card {
  border: 1px solid var(--mid); border-radius: 10px; padding: 18px 20px;
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.person-card:hover { border-color: var(--subtle); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.person-role { font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px; text-align: center; }
.person-name { font-family: 'DM Serif Display', serif; font-size: 19px; font-weight: 400; color: var(--black); margin-bottom: 5px; text-align: center; }
.person-detail { font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; }

/* ── STANDARDS GRID ── */
.standards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.std-card { border: 1px solid var(--mid); border-radius: 8px; padding: 16px 18px; background: var(--white); transition: border-color .2s; }
.std-card:hover { border-color: var(--subtle); }
.std-num { font-size: 11px; font-weight: 500; color: var(--subtle); margin-bottom: 5px; letter-spacing: .04em; text-align: center; }
.std-title { font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 5px; line-height: 1.3; text-align: center; }
.std-desc { font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; }

/* ── DOC CARD GRID ── */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.doc-card {
  border: 1px solid var(--mid); border-radius: 10px; padding: 20px 22px;
  text-decoration: none; display: block;
  transition: border-color .2s, box-shadow .2s;
}
.doc-card:hover { border-color: var(--subtle); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.doc-card-label { font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; text-align: center; }
.doc-card-title { font-size: 15px; font-weight: 500; color: var(--black); margin-bottom: 5px; line-height: 1.3; text-align: center; }
.doc-card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; text-align: center; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: var(--white);
  padding: 52px 40px 36px;
}
.footer-inner {
  max-width: 1060px; margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px; margin-bottom: 44px;
}
.footer-brand img { height: 22px; filter: brightness(0) invert(1); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; color: #777; line-height: 1.6; max-width: 200px; }
.footer-col h4 {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: #555; margin-bottom: 13px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { font-size: 13px; color: #999; text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 22px; border-top: 1px solid #1e1e1e;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #444;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav { padding: 0 20px; }
  nav ul { display: none; }
  .page-hero { padding: 36px 20px 28px; }
  .page-hero h1 { font-size: 28px; }
  .page-wrap { grid-template-columns: 1fr; padding: 0 20px; gap: 0; }
  .sidebar { display: none; }
  .standards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .breadcrumb { padding: 10px 20px; }
}
