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

:root {
  color-scheme: light;
  --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;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 14px/1.4 var(--font); letter-spacing: 0; }
.page { width: min(210mm, 100%); min-height: 297mm; margin: 12px auto; padding: 12mm 13mm; background: #fff; border: 1px solid var(--line); }
header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: flex-start; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.cis-brand { display: flex; align-items: center; gap: 13px; }
.cis-brand img { width: 88px; height: auto; flex: 0 0 auto; }
.eyebrow { display: block; margin-bottom: 3px; color: var(--blue-dark); font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 700; line-height: 1.12; letter-spacing: 0; }
h2 { margin: 14px 0 6px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
h2::after { display: block; width: 28px; height: 2px; margin-top: 4px; background: var(--blue); content: ""; }
h3 { margin: 10px 0 4px; color: var(--ink); font-size: 13px; font-weight: 600; }
p { margin: 5px 0; }
ul { margin: 5px 0 5px 19px; padding: 0; }
li + li { margin-top: 3px; }
.meta { color: var(--muted); text-align: right; white-space: nowrap; font-size: 11px; font-weight: 400; }
.download-link { grid-column: 2; margin: -4px 0 0; text-align: right; white-space: nowrap; }
.key { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 7px; margin: 10px 0; }
.key div { padding: 8px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); }
.key div:first-child { border-top-color: var(--green); }
.key strong { display: block; margin-bottom: 2px; color: var(--blue-dark); font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
table { width: 100%; margin: 6px 0; border-collapse: collapse; border: 1px solid var(--line); font-size: 11.2px; }
th, td { padding: 5px 6px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
th { color: var(--ink); background: var(--sky); font-size: 10px; font-weight: 600; }
tbody tr:nth-child(even) td { background: #fbfdff; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num.wrap { text-align: left; white-space: normal; overflow-wrap: anywhere; }
table[aria-label="One-off and optional charges"] { table-layout: fixed; }
table[aria-label="One-off and optional charges"] tr > :nth-child(1) { width: 23%; }
table[aria-label="One-off and optional charges"] tr > :nth-child(2) { width: 29%; }
table[aria-label="One-off and optional charges"] tr > :nth-child(3) { width: 48%; }
.note { color: var(--muted); font-size: 10.5px; }
.callout { margin: 7px 0; padding: 8px 10px; background: var(--sky); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.callout + .callout { border-left-color: var(--green); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.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; }
a { color: var(--blue-dark); font-weight: 600; }

@media (max-width: 700px) {
  body { background: #fff; }
  .page { min-height: 0; margin: 0; padding: 20px 16px; border: 0; }
  header, .footer { display: block; }
  .cis-brand { align-items: flex-start; }
  .meta { margin-top: 8px; text-align: left; white-space: normal; }
  .key, .cols { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}

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