@font-face {
  font-family: Archivo;
  src: local("Archivo"), url("./assets/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #132b50;
  --navy-mid: #36547b;
  --navy-wash: #edf1f7;
  --navy-rule: #aebdd0;
  --ink: #0a0a0a;
  --tertiary: #7a7a7a;
  --muted: #595959;
  --rule: #d5d5d5;
  --wash: #f4f4f4;
  --paper: #fff;
  --font: Archivo, Vazirmatn, V, Tahoma, sans-serif;
  --gutter: 16px;
  --edge: clamp(16px, 4vw, 48px);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
}

html { scroll-padding-block-start: 16px; }

body, .site-report body.report-v1 {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  font: 400 16px/1.7 var(--font);
  overflow-wrap: anywhere;
}

h1, h2, h3, p { margin-block-start: 0; }
a { color: var(--navy); text-underline-offset: 0.25em; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.site-frame, .site-report :is(.wrap, main.report-shell) {
  width: calc(100% - 2 * var(--edge));
  max-width: 1440px;
  margin-inline: auto;
}

.site-skip {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: var(--edge);
  z-index: 10;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-150%);
}

.site-skip:focus { transform: none; }

.site-masthead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
  min-height: 72px;
  padding-block: 8px;
  border-block-end: 1px solid var(--ink);
}

.site-brand {
  grid-column: span 5;
  width: fit-content;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-brand span {
  margin-inline-start: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.site-cases {
  grid-column: 6 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0 16px;
  font-size: 13px;
}

.site-cases a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.site-cases a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-brand:hover, .site-cases a:hover, #report-menu a:hover {
  text-decoration: underline;
}

.index-hero, .index-catalog {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.index-hero { padding-block: 96px 64px; }

.index-kicker {
  grid-column: 1 / -1;
  margin-block-end: 16px;
  font-size: 13px;
  color: var(--muted);
}

.index-hero h1 {
  grid-column: 1 / 10;
  margin-block-end: 24px;
  font-size: clamp(42px, 7.3vw, 88px);
  line-height: 1.2;
  font-weight: 700;
}

.index-intro {
  grid-column: 1 / 8;
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
}

.index-catalog { padding-block-end: 96px; }

.index-catalog h2 {
  grid-column: 1 / 4;
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.index-list {
  grid-column: 4 / -1;
  list-style: none;
  padding: 0;
  margin: 0;
  border-block-start: 1px solid var(--ink);
}

.index-list li { border-block-end: 1px solid var(--rule); }

.index-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(0, 6fr) minmax(90px, 1.5fr) 24px;
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: 24px;
  color: var(--ink);
  text-decoration: none;
}

.index-row:hover, .index-row:focus-visible { background: var(--wash); }
.index-row:hover h3, .index-row:focus-visible h3 { color: var(--navy); text-decoration: underline; }
.index-id, .index-topic p, .index-score span { color: var(--muted); font-size: 13px; }
.index-topic h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.index-topic p { margin: 4px 0 0; }
.index-score strong, .index-score span { display: block; }
.index-score strong { font-size: 20px; }
.index-arrow { color: var(--navy); font-size: 20px; }
.index-status { font-size: 13px; }
.index-status span { display: block; color: var(--muted); }
.index-history { grid-column: 4 / -1; margin: 16px 0 0; }

/* Keep the underlying report components and interactions. Use one visual
   treatment for the older wrappers, headings, score grids and disclosures. */
.site-report :is(.wrap, main.report-shell) { padding: 0 0 96px; min-width: 0; }

.site-report header.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--gutter);
  margin: 0;
  padding: 0 0 32px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: start;
}

.site-report :is(.wrap > .top, header.hero .teb4-top) {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gutter);
  border: 0;
  padding: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
}

.site-report header.hero > div:not(.teb4-top, .rating) {
  grid-column: 1 / 9;
  width: auto;
  min-width: 0;
  margin-block-start: 24px;
}

.site-report header.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.25;
}

.site-report header.hero .description {
  max-width: 66ch;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.site-report header.hero :is(.eyebrow, .meta) {
  max-width: 78ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-report header.hero .eyebrow { margin-block-end: 8px; }
.site-report header.hero .meta { margin-block: 8px 0; }

.site-report header.hero .rating {
  grid-column: 10 / 13;
  display: grid;
  gap: 8px;
  width: auto;
  max-width: 260px;
  margin-block-start: 24px;
  padding: 16px;
  background: var(--ink);
  border: 0;
  color: var(--paper);
}

.site-report header.hero .rating * { color: inherit; }
.site-report header.hero .rating strong { font-size: 32px; line-height: 1.2; }
.site-report header.hero .rating small { display: block; font-size: 13px; }

.site-report #report-menu {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0 16px;
  padding: 8px 0;
  margin: 0 0 32px;
  border-block: 1px solid var(--rule);
  position: static;
}

.site-report #report-menu a {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.site-report .report-toolbar { margin-block: 0 16px; }

/* The approved links point inside these sections, below their headings. */
.site-report #report-findings > #findings { scroll-margin-block-start: 120px; }
.site-report #report-testing > #steps { scroll-margin-block-start: 64px; }
.site-report div#stored-result { scroll-margin-block-start: 96px; }

.site-report :is(.wrap, main.report-shell) > section {
  min-width: 0;
  margin: 0;
  padding: 32px 0 48px;
  border: 0;
  border-block-start: 1px solid var(--ink);
  background: var(--paper);
}

.site-report section :where(.source-block.panel) {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}

.site-report section h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
}

.site-report section h3 { font-size: 20px; line-height: 1.4; }
.site-report :is(.hero, section) :where(p, li, dd) { line-height: 1.75; }
.site-report :is(button, summary, .record, .quote, .marker, .source, .verbatim) { font-family: var(--font); }
.site-report :is(code, kbd) { font-family: ui-monospace, monospace; }
.site-report :is(.panel, .source-block, .sequence, .rating) { background-image: none; }

.site-report :is(.scores, .score-grid) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

/* The linked score section supplies the heading in every report. */
.site-report #report-scores > h2 { display: none; }

.site-report .score {
  min-width: 0;
  padding: 16px 0;
  border: 0;
  border-block-start: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: start;
}

.site-report .score small { font: inherit; }

.site-report .score strong {
  display: block;
  margin-block-start: 8px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.site-report table { border-collapse: collapse; }

.site-report :is(th, td) {
  border: 0;
  border-block-end: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.site-report th { border-block-end-color: var(--ink); }

.site-report table.profile {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.site-report .profile :is(th, td) {
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-report button:not(.viz-tile) {
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  cursor: pointer;
}

.site-report button:not(.viz-tile):is([aria-pressed="true"], [aria-expanded="true"]) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
  outline: 1px solid var(--navy);
  outline-offset: 2px;
}

.site-report button:not(.viz-tile)[aria-pressed="false"] {
  background: var(--paper);
  border-color: var(--rule);
  color: var(--ink);
}

/* The grid and its legend share the report's status patterns. */
.site-report .viz-tile { min-height: 44px; }
.site-report .viz-tile[aria-pressed="true"] { outline: 2px solid var(--navy); outline-offset: 2px; }
.site-report .viz-tile:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.site-report [data-fidelity-grid] .legend i:is(.inference, .handoff) { border-style: dashed; }
.site-report [data-fidelity-grid] .legend i.interface { border-style: dotted; }
.site-report [data-fidelity-grid] :is(.viz-tile, .legend i).supported { background: var(--paper); }
.site-report [data-fidelity-grid] :is(.viz-tile, .legend i).display { background: #bfbfbf; }
.site-report [data-fidelity-grid] :is(.viz-tile, .legend i).handoff { background: var(--wash); }
.site-report [data-fidelity-grid] :is(.viz-tile, .legend i).adapted {
  background: repeating-linear-gradient(45deg, var(--rule) 0 4px, var(--paper) 4px 9px);
}
.site-report button:not(.viz-tile):hover { border-color: var(--navy); }
.site-report summary { cursor: pointer; }
.site-report :is(.marker, .capture-number) { background: var(--navy); color: var(--paper); }
.site-report .capture-region { border-color: var(--navy); }
.site-report #screenshots svg rect[stroke] { stroke: var(--navy); }
.site-report #screenshots svg rect[fill]:not([fill="none"]) { fill: var(--navy); rx: 0; }
.site-report #screenshots svg rect:is([stroke="#2d719a"], [stroke="#176fa1"]) { stroke: var(--navy-mid); }
.site-report #screenshots svg rect:is([fill="#2d719a"], [fill="#176fa1"]) { fill: var(--navy-mid); }

.site-workflow section > :where(p, ul, ol, dl, details, blockquote) { max-width: 80ch; }
.site-workflow section :where(details, figure) { margin: 16px 0; }
.site-workflow section summary { padding-block: 8px; font-weight: 700; }
.site-workflow section > details { border-block-start: 1px solid var(--rule); }
.site-workflow figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.site-workflow figcaption { margin-block-start: 8px; font-size: 13px; color: var(--muted); }
.site-workflow .profile { margin-block-end: 16px; }
.site-workflow .profile :is(th, td) { padding: 8px; text-align: start; }
.site-workflow .profile th { width: 33%; }
.site-workflow .workflow-note, .site-workflow .workflow-message h3 span {
  color: var(--muted);
  font-size: 13px;
}
.site-workflow .workflow-message { padding-block: 16px; border-block-start: 1px solid var(--rule); }
.site-workflow .workflow-verbatim { margin-inline: 0; white-space: pre-wrap; }
.site-workflow .workflow-status b { font-size: 18px; }
.site-workflow .score p { margin-block: 8px 0; color: var(--muted); }

@media (max-width: 800px) {
  .index-hero { padding-block: 64px 48px; }
  .index-hero h1 { grid-column: 1 / -1; }
  .index-intro { grid-column: 1 / 11; }
  .index-catalog h2, .index-list, .index-history { grid-column: 1 / -1; }
  .index-catalog h2 { margin-block-end: 16px; }
  .site-report header.hero > div:not(.teb4-top, .rating) { grid-column: 1 / 10; }
  .site-report header.hero .rating { grid-column: 10 / -1; }
}

@media (max-width: 600px) {
  .site-masthead { grid-template-columns: 1fr; gap: 0; padding-block: 16px 4px; }
  .site-brand, .site-cases { grid-column: 1; }
  .site-cases { justify-content: start; }
  .index-hero { padding-block: 48px; }
  .index-intro { grid-column: 1 / -1; }
  .index-catalog { padding-block-end: 48px; }
  .index-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 8px; padding-block: 16px; }
  .index-id, .index-topic, .index-score, .index-status { grid-column: 1; }
  .index-score { display: flex; align-items: baseline; gap: 8px; }
  .index-score strong { font-size: 16px; }
  .index-arrow { grid-column: 2; grid-row: 2; }
  .site-report header.hero { grid-template-columns: 1fr; padding-block-end: 24px; }
  .site-report header.hero > div:not(.teb4-top, .rating), .site-report header.hero .rating {
    grid-column: 1;
    margin-block-start: 8px;
  }
  .site-report header.hero .rating { max-width: none; grid-template-columns: 1fr 1fr; align-items: center; }
  .site-report #report-menu { column-gap: 12px; margin-block-end: 24px; }
  .site-report :is(.scores, .score-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-report :is(.wrap, main.report-shell) > section { padding-block: 24px 32px; }
  .site-report .form-table-scroll table { min-width: 0; table-layout: fixed; }
  .site-report #form-ratings td { width: 30%; white-space: normal; }
  .site-report #form-safety thead th:first-child { width: 38%; }
  .site-report #form-safety :is(th, td):nth-child(2) { width: 24%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-skip, .site-masthead { display: none; }
  .site-report :is(.wrap, main.report-shell) { width: 100%; padding: 0; }
  .site-report header.hero .rating { background: var(--paper); color: var(--ink); }
}
