.sxm main:has(> .sxm-page-cover), .sxm main:has(> .sxm-enrol) { max-width: 1220px; }
.sxm main:has(> .sxm-reading), .sxm main:has(> .sxm-document-grid) { max-width: 960px; }
.sxm-page-cover, .sxm-index-heading, .sxm-task, .sxm-reading, .sxm-action-sheet, .sxm-credit-cell,
.sxm-document-grid, .sxm-directory-entry, .sxm-form-sheet { box-sizing: border-box; min-width: 0; }
.sxm .sxm-page-kicker, .sxm .sxm-entry-type {
  margin: 0 0 12px; color: #a9ceff; font-size: .75rem; line-height: 1.4; font-weight: 750;
  letter-spacing: .1em; text-transform: uppercase;
}
.sxm .sxm-page-cover {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 0 20px;
  padding: clamp(23px,4vw,55px); border: 1px solid #34546e; border-radius: 16px;
  background: linear-gradient(115deg,#183b60,#0d253f 88%); color: #fff;
}
.sxm-page-cover.has-photo { display: flex; align-items: flex-end; min-height: 258px; }
.sxm-page-cover > img { position: absolute; inset: 0 0 0 auto; width: 54%; height: 100%; object-fit: cover; object-position: center 44%; z-index: -2; }
.sxm-page-cover.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#102c48 0%,#102c48 44%,rgba(16,44,72,.94) 53%,rgba(16,44,72,.18) 81%);
}
.sxm-page-heading { position: relative; max-width: 60rem; }
.sxm-page-heading .sxm-button { margin-top: 18px; }
.has-photo .sxm-page-heading { max-width: 65%; }
.sxm .sxm-page-heading h1, .sxm .sxm-index-heading h1, .sxm .sxm-task h1 {
  margin: 0; color: #fff; font-size: clamp(2rem,3.8vw,3.55rem); line-height: 1.1;
  font-weight: 730; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance;
}
.sxm .sxm-page-intro { max-width: 68ch; margin: 15px 0 0; color: #e1eaf4; line-height: 1.62; font-size: 1.04rem; }
.sxm .sxm-page-back { display: inline-flex; align-items: center; min-height: 42px; margin-bottom: 8px; color: #d9e8ff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.sxm .sxm-page-back:hover, .sxm .sxm-entry-link:hover { text-decoration: underline; }
.sxm-page-columns { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(240px,1fr); align-items: start; gap: 20px; }
.sxm .sxm-reading, .sxm .sxm-action-sheet, .sxm .sxm-task, .sxm .sxm-form-sheet {
  border-radius: 14px; padding: clamp(22px,3.2vw,42px); border: 1px solid #394f67;
}
.sxm .sxm-reading { background: #122d49; color: #deE9f4; line-height: 1.78; }
.sxm .sxm-reading p { max-width: 76ch; margin: 0 0 1em; }
.sxm .sxm-reading p:last-child, .sxm .sxm-action-sheet p:last-child { margin-bottom: 0; }
.sxm .sxm-reading h2, .sxm .sxm-action-sheet h2 { margin: 0 0 15px; line-height: 1.25; font-size: clamp(1.35rem,2.2vw,1.8rem); letter-spacing: -.025em; }
.sxm .sxm-reading h2:not(:first-child) { margin-top: 1.5em; }
.sxm .sxm-reading a:not(.sxm-button) { color: #b3d4ff; }
.sxm .sxm-action-sheet { background: #edf4fc; color: #152f4e; border-color: #d5e4f3; }
.sxm .sxm-action-sheet h2 { color: #102a48; }
.sxm .sxm-action-sheet p { margin: 0 0 20px; color: #364f68; }
.sxm .sxm-action-sheet > a { display: flex; width: fit-content; min-height: 40px; align-items: center; margin-top: 4px; }
.sxm .sxm-action-sheet a:not(.sxm-button) { color: #174c92; }
.sxm .sxm-action-sheet .sxm-button, .sxm .sxm-task .sxm-button { background: #205bce; border: 1px solid #205bce; color: white; padding: 11px 18px; }
.sxm .sxm-action-sheet a:focus-visible, .sxm .sxm-task a:focus-visible { outline-color: #2267cc; }
.sxm .sxm-action-sheet .sxm-button:hover, .sxm .sxm-task .sxm-button:hover { background: #154bac; }
.sxm .sxm-profile-facts { margin: 0 0 19px; }
.sxm-profile-facts > div { padding: 12px 0; border-bottom: 1px solid #35506b; }
.sxm-profile-facts dt { color: #b7cbde; font-size: .84rem; }
.sxm-profile-facts dd { margin: 2px 0 0; font-weight: 650; }
.sxm-credit-grid, .sxm-document-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 20px; }
.sxm .sxm-credit-cell, .sxm-document-grid a, .sxm-directory-entry {
  background: #132f4d; border: 1px solid #395571; border-radius: 12px; padding: clamp(18px,2.3vw,30px);
}
.sxm .sxm-credit-cell h2 { margin: 0 0 8px; font-size: 1rem; color: #c2d5e8; }
.sxm .sxm-credit-value { margin: 0; color: #fff; font-size: clamp(2.8rem,5vw,4.2rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 730; }
.sxm-credit-value span { font-size: clamp(1.2rem,2vw,1.55rem); letter-spacing: -.01em; }
.sxm .sxm-credit-cell p:last-child { margin: 12px 0 0; max-width: 48ch; color: #c2d2e2; line-height: 1.55; }
.sxm-document-grid a { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none; line-height: 1.45; color: white; font-weight: 650; }
.sxm-document-grid a:hover, .sxm-directory-entry:focus-within, .sxm-directory-entry:hover { border-color: #82b7f5; }
.sxm .sxm-index-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 22px; }
.sxm .sxm-index-heading h1 { font-size: clamp(1.8rem,3.2vw,2.8rem); }
.sxm .sxm-index-heading .sxm-button { flex-shrink: 0; }
.sxm .sxm-directory-entry { display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.sxm .sxm-directory-entry h2 { margin: 0 0 10px; font-size: 1.23rem; letter-spacing: -.015em; line-height: 1.3; }
.sxm-directory-entry h2 a, .sxm-entry-link { text-decoration: none; }
.sxm .sxm-directory-entry p { margin: 2px 0; color: #c4d4e4; font-size: .91rem; }
.sxm .sxm-entry-type { font-size: .66rem; }
.sxm .sxm-entry-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding-top: 12px; margin-top: auto; min-height: 44px; color: #acd0ff; font-size: .88rem; font-weight: 650; }
.sxm .sxm-enrol { max-width: 870px; margin: auto; }
.sxm .sxm-form-sheet { background: #112b48; }
.sxm .sxm-form-sheet .sxm-form, .sxm .sxm-task .sxm-form { display: block; width: 100%; max-width: none; margin: 0; }
.sxm .sxm-form-sheet fieldset { border: 0; border-top: 1px solid #3d5975; margin: 0 0 21px; padding: 14px 0 0; min-width: 0; }
.sxm .sxm-form-sheet legend { padding: 0 12px 0 0; font-weight: 700; font-size: 1.2rem; color: #edf5ff; }
.sxm .sxm-form-sheet :is(input:not([type=checkbox]):not([type=hidden]),select,textarea), .sxm .sxm-task :is(select,textarea) { width: 100%; max-width: 100%; margin: 5px 0 13px; }
.sxm .sxm-form-sheet .sxm-check { margin: 10px 0; }
.sxm .sxm-form-sheet .sxm-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0; }
.sxm .sxm-form-offer { margin: 0 0 24px; padding: 12px 15px; border-left: 3px solid #82b6ff; background: #193958; color: #d6e6f8; }
.sxm .sxm-form-offer strong { color: white; }
.sxm .sxm-task { max-width: 680px; margin: clamp(15px,5vw,68px) auto; background: #f1f6fc; color: #203c58; border-color: #d0dfee; }
.sxm .sxm-task h1 { color: #102c4a; font-size: clamp(1.9rem,3.4vw,3rem); }
.sxm .sxm-task .sxm-page-kicker { color: #365d85; }
.sxm .sxm-task header > p:last-child { margin: 12px 0 20px; color: #344e66; }
.sxm .sxm-task-help { padding-top: 18px; border-top: 1px solid #ccdbe9; }
.sxm .sxm-task a:not(.sxm-button) { color: #164d96; font-weight: 650; }
.sxm .sxm-task label { color: #1c3954; }
.sxm .sxm-task select, .sxm .sxm-task textarea { background: #fff; color: #182e46; border: 1px solid #69819b; color-scheme: light; }
.sxm-task-actions { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
.sxm:has(.sxm-form-sheet, .sxm-account-layout, .sxm-task) .sxm-sticky-quote { display: none; }
@media (max-width: 850px) {
  .sxm .sxm-account-menu { min-width: 0; border: 1px solid #3c5774; border-radius: 10px; background: #132d49; }
  .sxm .sxm-account-menu summary { min-height: 46px; padding: 11px 16px; color: #e2edfa; font-weight: 650; cursor: pointer; }
  .sxm .sxm-account-nav {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; overflow: visible;
  }
  .sxm .sxm-account-menu .sxm-account-nav { border: 0; border-top: 1px solid #3c5774; border-radius: 0 0 10px 10px; }
  .sxm .sxm-account-nav a, .sxm .sxm-account-nav a.sxm-account-logout {
    display: flex; align-items: center; margin: 0; gap: 7px; padding: 8px 10px; min-height: 44px; border: 0; white-space: normal; line-height: 1.4;
  }
}
@media (max-width: 760px) {
  .sxm-page-columns { grid-template-columns: 1fr; }
  .sxm-page-columns:has(.sxm-reading > h2:nth-of-type(2)) .sxm-action-sheet { grid-row: 1; }
  .sxm-page-cover.has-photo { min-height: 215px; }
  .sxm-page-cover.has-photo > img { width: 100%; }
  .sxm-page-cover.has-photo::before { background: linear-gradient(90deg,rgba(9,28,48,.95),rgba(9,28,48,.74)); }
  .has-photo .sxm-page-heading { max-width: 100%; }
  .sxm .sxm-page-heading h1 { font-size: clamp(1.85rem,6vw,2.6rem); }
}
@media (max-width: 600px) {
  .sxm .sxm-index-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sxm-credit-grid, .sxm-document-grid { grid-template-columns: 1fr; gap: 10px; }
  .sxm-page-columns { gap: 12px; }
  .sxm-credit-cell { padding: 18px; }
  .sxm .sxm-task { margin-top: 15px; }
  .sxm .sxm-account-content .sxm-stat-grid { grid-template-columns: 1fr; }
  .sxm .sxm-account-content .sxm-stat-grid .sxm-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; font-size: .92rem; }
  .sxm .sxm-account-content .sxm-stat-grid .sxm-stat { margin: 0; font-size: 1.5rem; }
}
