/* ===================================================================
   MATERIALITY ASSESSMENT — page-specific styles
   =================================================================== */

/* ===================================================================
   HERO
   =================================================================== */
.ma-hero { background: #f0f4f8; }
.ma-hero .src-hero__wrap { grid-template-columns: 1fr; }
.ma-hero .src-hero__left { max-width: 100%; }

/* ===================================================================
   SHARED
   =================================================================== */
.ma-p {
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 16px;
}
.ma-p:last-child { margin-bottom: 0; }

/* ===================================================================
   HERO QUOTE
   =================================================================== */
.ma-hero__quote {
  border-left: 4px solid var(--brand);
  padding-left: 24px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--brand);
  margin-top: 24px;
}

/* ===================================================================
   OVERVIEW SECTION
   =================================================================== */
.ma-ov { background: #ffffff; }
.ma-ov__wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 48px;
}
.ma-ov__intro {
  max-width: 900px;
  margin-bottom: 48px;
}

/* HOW ARE PRIORITIES SHORTLISTED */
.ma-ov__how-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.ma-ov__how-body {
  margin-bottom: 12px;
}
.ma-ov__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ma-ov__list li {
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.75;
  color: var(--ink);
  padding: 8px 0 8px 22px;
  position: relative;
}
.ma-ov__list li:last-child { border-bottom: none; }
.ma-ov__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--brand);
}

/* ===================================================================
   MATERIALITY MATRIX SECTION
   =================================================================== */
.ma-matrix { background: #f7f9fc; }
.ma-matrix__wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 56px;
}
.ma-matrix__head {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.ma-matrix__svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.ma-matrix__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  max-width: 900px;
  margin: 32px auto 0;
}
.ma-matrix__legend-col { }
.ma-matrix__legend-item {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ma-matrix__m {
  font-weight: 700;
  color: var(--brand);
  min-width: 32px;
  flex-shrink: 0;
}

/* ===================================================================
   MANAGING MATERIAL PRIORITIES SECTION
   =================================================================== */
.ma-mmp { background: #ffffff; }
.ma-mmp__wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 64px;
}
.ma-mmp__title {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  text-align: center;
}

/* SVG rows */
.ma-mmp__svgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.ma-mmp__row-svg {
  margin: 0;
  padding: 0;
  vertical-align: top;
}
.ma-mmp__row-svg {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
}

/* Table */
.ma-table {
  width: 100%;
  border-collapse: collapse;
}
.ma-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--brand);
  background: #f7f9fc;
}
.ma-table th:first-child { width: 220px; }
.ma-table th:last-child  { width: 120px; text-align: center; }

.ma-table td {
  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.7;
  color: var(--ink);
  padding: 20px 16px;
  vertical-align: top;
  border-bottom: 1px solid #dde8f2;
}
.ma-table td:last-child { text-align: center; vertical-align: middle; }
.ma-table tr:last-child td { border-bottom: none; }
.ma-table tr:nth-child(even) td { background: #f7f9fc; }

.ma-table__topic {
  font-weight: 700;
  color: var(--brand);
  font-size: clamp(13px, 0.95vw, 15px);
}
.ma-table__svg {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===================================================================
   MANAGING MATERIAL PRIORITIES — HTML TABLE
   =================================================================== */
.ma-tbl-wrap { width: 100%; overflow-x: auto; }
.ma-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 20px;
  min-width: 680px;
}
.ma-tbl thead th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
  border-top: 2px solid #00adef;
  border-bottom: 2px solid #00adef;
  background: #fff;
  text-align: left;
  vertical-align: bottom;
}
.ma-tbl thead th:nth-child(3),
.ma-tbl thead th:nth-child(4) { text-align: center; }
.ma-tbl tbody tr:last-child td { border-bottom: none; }
.ma-tbl td { vertical-align: middle; }

/* Row bottom border colors matching row theme */
.ma-tbl tbody tr:nth-child(1) td  { border-bottom: 2px solid #d4876c; }
.ma-tbl tbody tr:nth-child(2) td  { border-bottom: 2px solid #7ab890; }
.ma-tbl tbody tr:nth-child(3) td  { border-bottom: 2px solid #6ab8d0; }
.ma-tbl tbody tr:nth-child(4) td  { border-bottom: 2px solid #c87868; }
.ma-tbl tbody tr:nth-child(5) td  { border-bottom: 2px solid #9080c0; }
.ma-tbl tbody tr:nth-child(6) td  { border-bottom: 2px solid #6898c8; }
.ma-tbl tbody tr:nth-child(7) td  { border-bottom: 2px solid #c87890; }
.ma-tbl tbody tr:nth-child(8) td  { border-bottom: 2px solid #889878; }
.ma-tbl tbody tr:nth-child(9) td  { border-bottom: 2px solid #c09040; }
.ma-tbl tbody tr:nth-child(10) td { border-bottom: 2px solid #6898c8; }
.ma-tbl__topic {
  width: 185px;
  background: var(--rbg);
  padding: 20px 14px;
  text-align: center;
}
.ma-tbl__topic-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ma-tbl__topic-icon { width: 72px; height: 72px; display: block; filter: drop-shadow(0 0 0.4px #2b57a4); }
.ma-tbl__ico-path {
  fill: none;
  stroke: #2b57a4;
  stroke-width: .75px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ma-tbl__ico-path--sq {
  fill: none;
  stroke: #2b57a4;
  stroke-width: .75px;
  stroke-linecap: square;
  stroke-linejoin: round;
}
.ma-tbl__topic-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.4;
  text-align: left;
}
.ma-tbl__manage {
  background: color-mix(in srgb, var(--rbg) 30%, #fff);
  padding: 20px 5px 20px 28px;
}
.ma-tbl__manage p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 10px;
}
.ma-tbl__manage p:last-child { margin-bottom: 0; }
.ma-read-more {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
}
.ma-read-more:hover { opacity: 0.75; }
.ma-tbl__cap {
  width: 77px;
  background: color-mix(in srgb, var(--rbg) 30%, #fff);
  padding: 20px 10px;
  text-align: center;
  vertical-align: top !important;
}
.ma-tbl__cap-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ma-tbl__cap-icon { width: 36px; height: 36px; object-fit: contain; display: block; }
.ma-tbl__stake {
  width: 112px;
  background: var(--rbg);
  padding: 20px 10px;
  text-align: center;
  vertical-align: top !important;
}
.ma-tbl__stake-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ma-tbl__stake-icon { width: 40px; height: 40px; object-fit: contain; display: block; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .ma-table th:first-child { width: 140px; }
  .ma-table th:last-child  { width: 80px; }
  .ma-table__svg { width: 60px; }
}
@media (max-width: 600px) {
  .ma-table { display: block; overflow-x: auto; }
}

/* ===== Tablet (max 1024px) ===== */
@media (max-width: 1024px) {
  .src-hero__title { font-size: 32px; }
  .ma-hero__quote { font-size: 15px; }
  .ma-matrix__legend { gap: 0 24px; }
  .ma-mmp__title { font-size: 18px; }
}

/* ===== Mobile (max 768px) ===== */
@media (max-width: 768px) {
  .src-hero__wrap { padding: 0 20px 28px; margin-top: -30px; }
  .src-hero__breadcrumb { margin-bottom: 20px; }
  .src-hero__title { font-size: 24px; line-height: 1.25; }
  .src-hero__eyebrow { margin-bottom: 8px; }
  .src-hero__eye-label { font-size: 12px; }
  .ma-hero__quote { font-size: 14px; padding-left: 14px; margin-top: 16px; }
  .src-hero__breadcrumb { font-size: 11px; }
  .ma-ov__wrap { padding: 32px 20px 28px; }
  .ma-ov__how-head { font-size: 12px; margin-bottom: 14px; }
  .ma-ov__list li { font-size: 13px; padding: 8px 0 8px 18px; }
  .ma-matrix__wrap { padding: 32px 20px 32px; }
  .ma-matrix__legend { grid-template-columns: 1fr; gap: 0; }
  .ma-matrix__legend-item { font-size: 13px; }
  .ma-mmp__wrap { padding: 32px 20px 40px; }
  .ma-mmp__title { font-size: 15px; margin-bottom: 24px; }

  /* ── HTML Table → Card layout on mobile ── */
  .ma-tbl-wrap { overflow-x: hidden; }
  .ma-tbl { min-width: 0; }
  .ma-tbl,
  .ma-tbl thead,
  .ma-tbl tbody,
  .ma-tbl tr,
  .ma-tbl th,
  .ma-tbl td { display: block; width: 100%; box-sizing: border-box; }
  .ma-tbl td { word-wrap: break-word; overflow-wrap: break-word; }

  /* Hide desktop thead */
  .ma-tbl thead { display: none; }

  /* Each row = a card */
  .ma-tbl tbody tr {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    border-bottom: none !important;
  }
  .ma-tbl tbody tr td { border-bottom: none !important; }

  /* Topic header — icon + name side by side */
  .ma-tbl__topic {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-align: left;
  }
  .ma-tbl__topic-inner {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .ma-tbl__topic-icon { width: 48px; height: 48px; flex-shrink: 0; }
  .ma-tbl__topic-name { font-size: 14px; text-align: left; }

  /* How we manage — full width */
  .ma-tbl__manage { width: 100%; padding: 14px 16px; }
  .ma-tbl__manage p { font-size: 13px; line-height: 1.65; }

  /* Capitals + Stakeholders — full width stacked */
  .ma-tbl__cap,
  .ma-tbl__stake {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
  }

  /* Labels above icons */
  .ma-tbl__cap::before  { content: "Capitals Impacted"; display: block; font-size: 10px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
  .ma-tbl__stake::before { content: "Stakeholders Impacted"; display: block; font-size: 10px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }

  .ma-tbl__cap-inner  { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .ma-tbl__cap-icon   { width: 30px; height: 30px; }
  .ma-tbl__stake-inner { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .ma-tbl__stake-icon  { width: 32px; height: 32px; }

  /* Row bottom border — use a bottom border on the stake cell (last visible cell) */
  .ma-tbl tbody tr:nth-child(1) .ma-tbl__stake  { border-bottom: 3px solid #d4876c; }
  .ma-tbl tbody tr:nth-child(2) .ma-tbl__stake  { border-bottom: 3px solid #7ab890; }
  .ma-tbl tbody tr:nth-child(3) .ma-tbl__stake  { border-bottom: 3px solid #6ab8d0; }
  .ma-tbl tbody tr:nth-child(4) .ma-tbl__stake  { border-bottom: 3px solid #c87868; }
  .ma-tbl tbody tr:nth-child(5) .ma-tbl__stake  { border-bottom: 3px solid #9080c0; }
  .ma-tbl tbody tr:nth-child(6) .ma-tbl__stake  { border-bottom: 3px solid #6898c8; }
  .ma-tbl tbody tr:nth-child(7) .ma-tbl__stake  { border-bottom: 3px solid #c87890; }
  .ma-tbl tbody tr:nth-child(8) .ma-tbl__stake  { border-bottom: 3px solid #889878; }
  .ma-tbl tbody tr:nth-child(9) .ma-tbl__stake  { border-bottom: 3px solid #c09040; }
  .ma-tbl tbody tr:nth-child(10) .ma-tbl__stake { border-bottom: 3px solid #6898c8; }
  .ma-tbl tbody tr:nth-child(1) .ma-tbl__cap  { border-bottom: 3px solid #d4876c; }
  .ma-tbl tbody tr:nth-child(2) .ma-tbl__cap  { border-bottom: 3px solid #7ab890; }
  .ma-tbl tbody tr:nth-child(3) .ma-tbl__cap  { border-bottom: 3px solid #6ab8d0; }
  .ma-tbl tbody tr:nth-child(4) .ma-tbl__cap  { border-bottom: 3px solid #c87868; }
  .ma-tbl tbody tr:nth-child(5) .ma-tbl__cap  { border-bottom: 3px solid #9080c0; }
  .ma-tbl tbody tr:nth-child(6) .ma-tbl__cap  { border-bottom: 3px solid #6898c8; }
  .ma-tbl tbody tr:nth-child(7) .ma-tbl__cap  { border-bottom: 3px solid #c87890; }
  .ma-tbl tbody tr:nth-child(8) .ma-tbl__cap  { border-bottom: 3px solid #889878; }
  .ma-tbl tbody tr:nth-child(9) .ma-tbl__cap  { border-bottom: 3px solid #c09040; }
  .ma-tbl tbody tr:nth-child(10) .ma-tbl__cap { border-bottom: 3px solid #6898c8; }
}

/* ===== Small Mobile (max 480px) ===== */
@media (max-width: 480px) {
  .src-hero__title { font-size: 20px; }
  .ma-hero__quote { font-size: 13px; }
}
