:root {
  --ink: #111827;
  --muted: #526174;
  --line: #d8e0e8;
  --panel: #f5f7f9;
  --paper: #ffffff;
  --navy: #07111f;
  --blue: #087abf;
  --cyan: #16a7bd;
  --green: #18794e;
  --green-bg: #eaf7f0;
  --amber: #8a4b08;
  --amber-bg: #fff4df;
  --red: #a63030;
  --red-bg: #fff0f0;
  --gray-bg: #edf1f5;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #055c91; }
button, input { font: inherit; letter-spacing: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--blue); border-radius: 4px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid #233246;
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: #d6e2ef; text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: #fff; }
.language-switch { display: flex; align-items: center; gap: 4px; }
.language-switch a { min-width: 30px; padding: 5px 7px; border: 1px solid transparent; border-radius: 4px; color: #b9c9d8; text-align: center; text-decoration: none; font-size: 12px; }
.language-switch a:hover { color: #fff; border-color: #52657a; }
.language-switch a[aria-current="page"] { color: #07111f; background: #85d9e5; }

.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy);
  background-image: url("brand-operator-dashboard.png");
  background-size: cover;
  background-position: center 28%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 18, 0.84);
}
.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 64px;
}
.eyebrow { margin: 0 0 10px; color: #7ddbea; font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1 { max-width: 1120px; margin: 0; font-size: 48px; line-height: 1.08; letter-spacing: 0; }
.hero-copy { max-width: 820px; margin: 22px 0 0; color: #d8e5f1; font-size: 19px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: #b9c9d8; font-size: 14px; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid #85d9e5;
  border-radius: 6px;
  color: #06121e;
  background: #85d9e5;
  text-decoration: none;
  font-weight: 750;
}
.button.secondary { color: #fff; background: transparent; border-color: #7d8da0; }

main { display: block; }
.band { width: 100%; border-bottom: 1px solid var(--line); }
.band.alt { background: var(--panel); }
.section { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.section.compact { padding-top: 36px; padding-bottom: 36px; }
.section-heading { max-width: 820px; margin-bottom: 26px; }
.section-heading h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; }
.section-heading p { margin: 0; color: var(--muted); }

.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.proof-item { min-width: 0; padding: 22px; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-label { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.proof-item h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.proof-item p { margin: 0; color: var(--muted); font-size: 14px; }

.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.legend-item { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.legend-item p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.status {
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.status.available { color: var(--green); background: var(--green-bg); }
.status.integration { color: var(--amber); background: var(--amber-bg); }
.status.confirm { color: #125c8a; background: #e9f5fc; }
.status.unknown { color: var(--red); background: var(--red-bg); }

.role-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.role-selector button { min-height: 40px; padding: 8px 12px; border: 1px solid #aeb9c5; border-radius: 6px; color: #334155; background: #fff; cursor: pointer; }
.role-selector button:hover { border-color: var(--blue); }
.role-selector button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }

.function-tools { position: sticky; top: 64px; z-index: 10; padding: 14px 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.tools-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 14px; align-items: center; }
.search-wrap { position: relative; }
.search-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-wrap input { width: 100%; min-height: 42px; padding: 9px 12px; color: var(--ink); background: #fff; border: 1px solid #aeb9c5; border-radius: 6px; }
.search-wrap input:focus { outline: 3px solid rgba(8,122,191,.18); border-color: var(--blue); }
.active-role { margin: 0; color: var(--blue); font-size: 14px; font-weight: 800; }
.result-count { margin: 16px 0 10px; color: var(--muted); font-size: 14px; }
.no-results { margin: 18px 0; padding: 16px; border-left: 4px solid var(--cyan); color: var(--muted); background: #edf9fb; }

.function-groups { display: grid; gap: 34px; }
.function-module[hidden], .function-table tr[hidden] { display: none; }
.module-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.module-heading p { margin: 0 0 3px; color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.module-heading h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.module-heading > span { min-width: 32px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #fff; text-align: center; font-size: 12px; font-weight: 800; }
.function-table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.function-table { width: 100%; min-width: 940px; border-collapse: collapse; table-layout: fixed; }
.function-table th, .function-table td { padding: 16px 15px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.function-table th { color: #e7f0f8; background: #122237; font-size: 12px; text-transform: uppercase; }
.function-table tbody tr:last-child td { border-bottom: 0; }
.function-table tbody tr:hover { background: #f8fbfd; }
.function-table .col-function { width: 28%; }
.function-table .col-view { width: 27%; }
.function-table .col-action { width: 31%; }
.function-table .col-scope { width: 14%; }
.function-name { font-size: 16px; font-weight: 800; line-height: 1.35; }
.role-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.role-list span { padding: 2px 5px; border: 1px solid #d4dde6; border-radius: 4px; color: #5c6b7b; background: #f7f9fb; font-size: 10px; }
.evidence-details { margin-top: 10px; color: var(--muted); font-size: 12px; }
.evidence-details summary { color: var(--blue); cursor: pointer; font-weight: 750; }
.evidence-details p { margin: 8px 0 5px; }
.evidence-links { display: grid; gap: 4px; }
.evidence-links a { display: flex; gap: 6px; align-items: baseline; font-size: 11px; text-decoration: none; }
.evidence-links a span { color: #6d7b89; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.delivery-item { min-width: 0; padding: 20px; border-bottom: 1px solid var(--line); }
.delivery-item:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.delivery-item:nth-last-child(-n+3) { border-bottom: 0; }
.delivery-item h3 { margin: 10px 0 7px; font-size: 16px; line-height: 1.3; }
.delivery-item p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.delivery-item a { font-size: 12px; font-weight: 750; }

.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.matrix { width: 100%; min-width: 1160px; border-collapse: collapse; table-layout: fixed; }
.matrix th, .matrix td { padding: 15px 14px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.matrix th { position: sticky; top: 0; z-index: 2; color: #e7f0f8; background: #122237; font-size: 12px; text-transform: uppercase; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:hover { background: #f8fbfd; }
.matrix .col-capability { width: 18%; }
.matrix .col-buyer { width: 18%; }
.matrix .col-status { width: 12%; }
.matrix .col-boundary { width: 22%; }
.matrix .col-dependency { width: 18%; }
.matrix .col-evidence { width: 12%; }
.module-name { color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.capability-name { margin-top: 5px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.row-id { margin-top: 7px; color: #7a8795; font-size: 11px; }
.role { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.evidence-link { display: inline-block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.evidence-state, .reviewed { color: var(--muted); font-size: 11px; }
.matrix tr[hidden] { display: none; }

.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.route { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.route h3 { margin: 0 0 7px; font-size: 16px; }
.route p { margin: 0; color: var(--muted); font-size: 13px; }
.route .route-state { margin-top: 12px; color: var(--green); font-size: 11px; font-weight: 800; }
.route.planned { border-color: #e0b272; background: #fffaf0; }
.route.planned .route-state { color: var(--amber); }

.scope-note { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 26px; align-items: start; }
.scope-note h2 { margin: 0 0 10px; font-size: 28px; }
.scope-note p { margin: 0; color: var(--muted); }
.scope-box { padding: 18px; border-left: 4px solid var(--cyan); background: #edf9fb; }
.scope-box strong { display: block; margin-bottom: 6px; }

.site-footer { color: #c1ceda; background: var(--navy); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 28px 0; display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }
.footer-inner a { color: #8bdde8; }

html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
html[dir="rtl"] .matrix th,
html[dir="rtl"] .matrix td,
html[dir="rtl"] .function-table th,
html[dir="rtl"] .function-table td { text-align: right; }
html[dir="rtl"] .scope-box { border-left: 0; border-right: 4px solid var(--cyan); }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .proof-grid, .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item + .proof-item { border-left: 0; }
  .proof-item:nth-child(even) { border-left: 1px solid var(--line); }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-item:not(:nth-child(3n+1)) { border-left: 0; }
  .delivery-item:nth-child(even) { border-left: 1px solid var(--line); }
  .delivery-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .delivery-item:nth-last-child(-n+2) { border-bottom: 0; }
  .tools-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { gap: 8px; }
  .brand { gap: 6px; white-space: nowrap; font-size: 13px; }
  .brand img { width: 30px; height: 30px; }
  .language-switch { max-width: 52%; overflow-x: auto; padding: 6px 0; }
  .language-switch a { flex: 0 0 auto; }
  .hero { min-height: 520px; background-position: 58% center; }
  .hero-inner { padding: 64px 0 54px; }
  h1 { font-size: 38px; }
  .hero-copy { font-size: 17px; }
  .section { padding: 42px 0; }
  .proof-grid, .legend, .route-grid, .scope-note, .delivery-grid { grid-template-columns: 1fr; }
  .proof-item:nth-child(even) { border-left: 0; }
  .proof-item + .proof-item { border-top: 1px solid var(--line); }
  .function-tools { position: static; }
  .role-selector { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .role-selector button { flex: 0 0 auto; }
  .delivery-item, .delivery-item:nth-child(even), .delivery-item:nth-last-child(-n+2) { border-left: 0; border-bottom: 1px solid var(--line); }
  .delivery-item:last-child { border-bottom: 0; }
  .function-table-shell { overflow: visible; border: 0; background: transparent; }
  .function-table { min-width: 0; display: block; }
  .function-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .function-table tbody { display: grid; gap: 12px; }
  .function-table tr { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .function-table td { display: block; width: 100%; padding: 10px 0; border: 0; }
  .function-table td + td { border-top: 1px solid #e8edf2; }
  .function-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .function-table td:first-child::before { display: none; }
  .table-shell { overflow: visible; border: 0; background: transparent; }
  .matrix { min-width: 0; display: block; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix tbody { display: grid; gap: 12px; }
  .matrix tr { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .matrix td { display: block; width: 100%; padding: 10px 0; border: 0; }
  .matrix td + td { border-top: 1px solid #e8edf2; }
  .matrix td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .matrix td:first-child::before { display: none; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .site-header, .function-tools, .role-selector, .hero-actions { display: none; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .hero::before { display: none; }
  .hero-copy, .hero-meta { color: #333; }
  .table-shell { overflow: visible; }
  .matrix { min-width: 0; font-size: 10px; }
  .matrix th { color: #000; background: #eee; }
  .function-table { min-width: 0; font-size: 10px; }
  .function-table th { color: #000; background: #eee; }
}
