@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.aftel-cis-document {
  --navy: #123252;
  --blue: #377fbd;
  --blue-dark: #245b93;
  --sky: #eaf4ff;
  --green: #16803a;
  --ink: #14263b;
  --muted: #51677e;
  --line: #dbe7f4;
  --page: #f7fbff;
  --font: Montserrat, Inter, Arial, sans-serif;
  width: 100%;
  margin: 0;
  padding: 1px 0;
  color: var(--ink);
  background: var(--page);
  font: 400 14px/1.4 var(--font);
  letter-spacing: 0;
}
.aftel-cis-document,
.aftel-cis-document * { box-sizing: border-box; }
.aftel-cis-document .aftel-compliance-back {
  width: min(210mm, 100%);
  margin: 0 auto 4px;
}
.aftel-cis-document .aftel-compliance-back a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 2px;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}
.aftel-cis-document .aftel-compliance-back a:hover { text-decoration: underline; }
.aftel-cis-document .page {
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 12px auto;
  padding: 12mm 13mm;
  background: #fff;
  border: 1px solid var(--line);
}
.aftel-cis-document .page > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: flex-start;
  gap: 16px 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.aftel-cis-document .cis-brand {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.aftel-cis-document .cis-brand img {
  width: 96px;
  height: auto;
  margin-top: 3px;
}
body.aftel-compliance-route.aftel-compliance-cis-route .aftel-cis-document h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.aftel-cis-document .cis-brand p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.aftel-cis-document h2 { margin: 14px 0 6px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.25; }
.aftel-cis-document h2::after { display: block; width: 28px; height: 2px; margin-top: 4px; background: var(--blue); content: ""; }
.aftel-cis-document h3 { margin: 10px 0 4px; color: var(--ink); font-size: 13px; font-weight: 600; }
.aftel-cis-document p { margin: 5px 0; }
.aftel-cis-document ul { margin: 5px 0 5px 19px; padding: 0; }
.aftel-cis-document li + li { margin-top: 3px; }
.aftel-cis-document .meta { color: var(--muted); text-align: right; white-space: normal; font-size: 11px; font-weight: 400; line-height: 1.45; }
.aftel-cis-document .download-link { grid-column: 2; align-self: end; margin: 0; text-align: right; white-space: nowrap; }
.aftel-cis-document .key { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 7px; margin: 10px 0; }
.aftel-cis-document .key div { padding: 8px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); }
.aftel-cis-document .key div:first-child { border-top-color: var(--green); }
.aftel-cis-document .key strong { display: block; margin-bottom: 2px; color: var(--blue-dark); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.aftel-cis-document table { width: 100%; margin: 6px 0; border-collapse: collapse; border: 1px solid var(--line); font-size: 11.2px; }
.aftel-cis-document th,
.aftel-cis-document td { padding: 5px 6px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.aftel-cis-document th { color: var(--ink); background: var(--sky); font-size: 10px; font-weight: 600; }
.aftel-cis-document tbody tr:nth-child(even) td { background: #fbfdff; }
.aftel-cis-document td.num,
.aftel-cis-document th.num { text-align: right; white-space: nowrap; }
.aftel-cis-document td.num.wrap { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.aftel-cis-document table[aria-label="One-off and optional charges"] { table-layout: fixed; }
.aftel-cis-document table[aria-label="One-off and optional charges"] tr > :nth-child(1) { width: 23%; }
.aftel-cis-document table[aria-label="One-off and optional charges"] tr > :nth-child(2) { width: 29%; }
.aftel-cis-document table[aria-label="One-off and optional charges"] tr > :nth-child(3) { width: 48%; }
.aftel-cis-document .note { color: var(--muted); font-size: 10.5px; }
.aftel-cis-document .callout { margin: 7px 0; padding: 8px 10px; background: var(--sky); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.aftel-cis-document .callout + .callout { border-left-color: var(--green); }
.aftel-cis-document .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aftel-cis-document .footer { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 7px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9.5px; }
.aftel-cis-document a { color: var(--blue-dark); font-weight: 600; }
.aftel-cis-document tbody tr[id] { scroll-margin-top: 24px; }
.aftel-cis-document tbody tr:target td { background: #fff4cf; box-shadow: inset 0 2px 0 #d79a2b, inset 0 -2px 0 #d79a2b; }
.aftel-cis-document tbody tr:target td:first-child { box-shadow: inset 4px 0 0 #d79a2b, inset 0 2px 0 #d79a2b, inset 0 -2px 0 #d79a2b; }

@media (max-width: 700px) {
  .aftel-cis-document { background: #fff; }
  .aftel-cis-document .page { min-height: 0; margin: 0; padding: 20px 16px; border: 0; }
  .aftel-cis-document .page > header { grid-template-columns: 1fr; gap: 12px; }
  .aftel-cis-document .cis-brand { grid-row: auto; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
  .aftel-cis-document .cis-brand img { width: 78px; }
  body.aftel-compliance-route.aftel-compliance-cis-route .aftel-cis-document h1 { font-size: 29px; }
  .aftel-cis-document .footer { display: flex; align-items: flex-end; gap: 8px; }
  .aftel-cis-document .footer span:first-child { min-width: 0; }
  .aftel-cis-document .footer span:last-child { flex: 0 0 auto; }
  .aftel-cis-document .meta { margin-top: 0; text-align: left; }
  .aftel-cis-document .download-link { grid-column: 1; margin-top: 0; text-align: left; white-space: normal; }
  .aftel-cis-document .key,
  .aftel-cis-document .cols { grid-template-columns: 1fr; }
  .aftel-cis-document table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
}

@page { size: A4; margin: 0; }
@media print {
  .aftel-cis-document { padding: 0; background: #fff; font-size: 8.15pt; line-height: 1.21; }
  .aftel-cis-document .page { width: 210mm; height: 297mm; min-height: 297mm; margin: 0; padding: 8mm 11mm; overflow: hidden; border: 0; page-break-after: always; }
  .aftel-cis-document .page:last-child { page-break-after: auto; }
  .aftel-cis-document .page > header { display: block; position: relative; min-height: 47px; padding: 0 210px 6px 0; break-inside: avoid; }
  .aftel-cis-document .cis-brand { display: block; position: relative; min-height: 40px; }
  .aftel-cis-document .cis-brand img { position: absolute; top: 4px; left: 0; width: 74px; margin: 0; }
  .aftel-cis-document .cis-brand > div { padding-left: 86px; }
  .aftel-cis-document .meta { position: absolute; top: 0; right: 0; }
  .aftel-cis-document .download-link { display: none; }
  body.aftel-compliance-route.aftel-compliance-cis-route .aftel-cis-document h1 { font-size: 18px; line-height: 1.12; letter-spacing: 0; }
  .aftel-cis-document .cis-brand p { margin-top: 3px; font-size: inherit; line-height: inherit; }
  .aftel-cis-document h2 { margin: 7px 0 3px; font-size: 12.5px; }
  .aftel-cis-document h2::after { margin-top: 2px; }
  .aftel-cis-document h3 { margin: 5px 0 2px; font-size: 10.4px; }
  .aftel-cis-document p { margin: 2.5px 0; }
  .aftel-cis-document ul { margin-top: 2px; margin-bottom: 2px; }
  .aftel-cis-document li + li { margin-top: 2px; }
  .aftel-cis-document table { display: table; margin: 3px 0; overflow: visible; font-size: 9.2px; }
  .aftel-cis-document th,
  .aftel-cis-document td { padding: 3px 4px; }
  .aftel-cis-document .callout { margin: 3px 0; padding: 4px 6px; }
  .aftel-cis-document .footer { margin-top: 5px; }
  .aftel-cis-document a { color: inherit; text-decoration: none; }
  .aftel-cis-document tbody tr:target td,
  .aftel-cis-document tbody tr:target td:first-child { background: #fff; box-shadow: none; }
  .aftel-cis-document tbody tr:nth-child(even):target td { background: #fbfdff; }
}
