/* CMS pages: shared documents, recursive tabs and page cards. */
body.portal-page .custom-page { padding: 0 0 40px !important; color: var(--portal-ink); }
body.portal-page .custom-page .custom-page-header { padding: 28px 0 30px !important; margin: 0 0 24px !important; }
.custom-page-header .custom-eyebrow { color: #d4e5ff; margin-bottom: 8px; }
body.portal-page .custom-page-header .post-title { margin: 0 0 14px !important; font-size: clamp(26px, 3vw, 36px); overflow-wrap: anywhere; }
.custom-eyebrow { display: block; color: var(--portal-blue); font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .13em; }
body.portal-page .custom-page .custom-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 11px; padding: 0; }
body.portal-page .custom-breadcrumb .custom-current-crumb { color: #fff; font-weight: 500; background: none; margin: 0; width: auto; height: auto; }
.custom-breadcrumb .custom-current-crumb::before, .custom-breadcrumb .custom-current-crumb::after { content: none; }
.custom-page-container { min-width: 0; }
.custom-page--single > .custom-page-container { max-width: 1120px; }
.custom-page--single > .custom-page-container:first-child { padding-top: 24px; }
.custom-tabs { min-width: 0; }
.custom-tabs--vertical { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); align-items: start; gap: 24px; }
.custom-tab-navigation { min-width: 0; }
.custom-tabs--vertical > .custom-tab-navigation { position: sticky; top: 104px; padding: 16px; border: 1px solid var(--portal-border); border-radius: 16px; background: var(--portal-surface); }
.custom-navigation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 0 2px 12px; border-bottom: 1px solid var(--portal-border); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.custom-count { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 7px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 10px; }
.custom-tab-list { display: flex; gap: 6px; margin: 0; padding: 0; min-width: 0; }
.custom-tabs--vertical > .custom-tab-navigation > .custom-tab-list { flex-direction: column; }
.custom-page .custom-tab { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: var(--portal-muted); background: transparent; font-size: 12px; font-weight: 500; line-height: 1.65; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.custom-tab > span:not(.custom-tab-icon) { overflow-wrap: anywhere; }
.custom-tab-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 7px; background: var(--portal-soft); font-size: 18px; }
.custom-tab-arrow { flex-shrink: 0; margin-left: auto; font-size: 12px; opacity: .5; }
.custom-page .custom-tab:hover { color: var(--portal-blue); background: var(--portal-soft); }
.custom-page .custom-tab.is-active { color: var(--portal-blue); background: var(--portal-blue-soft); border-color: var(--portal-blue-soft); font-weight: 600; }
.custom-tab.is-active .custom-tab-icon { color: #fff; background: #084fb9; }
.custom-tab.is-active .custom-tab-arrow { opacity: 1; }
.custom-tabs--horizontal > .custom-tab-navigation { margin-bottom: 18px; }
.custom-tabs--horizontal > .custom-tab-navigation > .custom-navigation-heading { display: none; }
.custom-tabs--horizontal > .custom-tab-navigation > .custom-tab-list { width: fit-content; max-width: 100%; padding: 5px; overflow-x: auto; border: 1px solid var(--portal-border); border-radius: 13px; background: var(--portal-blue-soft); scrollbar-width: thin; }
.custom-tabs--horizontal > .custom-tab-navigation > .custom-tab-list > .custom-tab { flex: 0 0 auto; max-width: 280px; padding: 9px 16px; }
.custom-tabs--horizontal > .custom-tab-navigation > .custom-tab-list > .custom-tab.is-active { background: var(--portal-surface); box-shadow: 0 2px 6px rgb(19 42 57 / 6%); border-color: var(--portal-border); }
.custom-tabs--horizontal > .custom-tab-navigation > .custom-tab-list > .custom-tab .custom-tab-icon,
.custom-tabs--horizontal > .custom-tab-navigation > .custom-tab-list > .custom-tab .custom-tab-arrow { display: none; }
.custom-tab-panels, .custom-panel { min-width: 0; }
.custom-panel:focus-visible { outline-offset: 5px; }
.custom-document { min-width: 0; margin: 0; padding: clamp(20px, 2.8vw, 34px); border: 1px solid var(--portal-border); border-radius: 18px; background: var(--portal-surface); box-shadow: 0 4px 20px rgb(19 42 57 / 3%); }
.custom-richtext { color: var(--portal-ink); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; display: flow-root; }
.custom-richtext:empty { display: none; }
.custom-richtext > :first-child { margin-top: 0; }
.custom-richtext > :is(h1,h2,h3,h4,h5,h6):first-child { margin-top: 0; }
.custom-richtext > :last-child { margin-bottom: 0; }
.custom-richtext :is(h1,h2,h3,h4,h5,h6) { color: var(--portal-ink); margin: 24px 0 12px; font-weight: 600; line-height: 1.45; }
.custom-richtext h1 { font-size: clamp(24px, 2.5vw, 30px); }
.custom-richtext h2 { font-size: 23px; }
.custom-richtext h3 { font-size: 20px; }
.custom-richtext :is(h4,h5,h6) { font-size: 17px; }
.custom-richtext p { margin: 0 0 16px; font-size: inherit; line-height: inherit; }
.custom-richtext :is(ul,ol) { padding-left: 24px; margin: 0 0 16px; }
.custom-richtext ul { list-style: disc; }
.custom-richtext ol { list-style: decimal; }
.custom-richtext li { margin-bottom: 6px; }
.custom-richtext a { color: var(--portal-blue); text-decoration: underline; text-underline-offset: 3px; }
.custom-richtext img { max-width: 100%; height: auto; border-radius: 10px; }
.custom-richtext :is(iframe,video,embed,object) { max-width: 100%; border: 0; border-radius: 10px; }
.custom-richtext iframe[src*='youtube'], .custom-richtext iframe[src*='youtu.be'], .custom-richtext iframe[src*='vimeo'] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.custom-richtext blockquote { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--portal-blue); border-radius: 0 10px 10px 0; background: var(--portal-blue-soft); font-size: 15px; }
.custom-table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--portal-border); border-radius: 10px; }
.custom-richtext table { width: 100%; margin: 0; border-collapse: collapse; font-size: 12px; }
.custom-richtext :is(th,td) { padding: 12px 14px; border: 1px solid var(--portal-border); vertical-align: top; }
.custom-richtext th { background: var(--portal-blue-soft); font-weight: 600; }
.custom-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.custom-section-heading h2 { font-size: 23px; font-weight: 600; margin: 5px 0 0; line-height: 1.4; color: var(--portal-ink); }
.custom-section-count { flex-shrink: 0; color: var(--portal-muted); font-size: 11px; padding-bottom: 3px; }
.custom-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 20px; }
.custom-page .custom-link-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--portal-border); border-radius: 17px; background: var(--portal-surface); color: var(--portal-ink); text-decoration: none; box-shadow: 0 4px 20px rgb(19 42 57 / 3%); transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.custom-link-card::before { content: ''; position: absolute; z-index: 1; top: 0; left: 24px; right: 24px; height: 3px; background: #084fb9; border-radius: 0 0 3px 3px; }
.custom-page .custom-link-card:is(:hover, :focus-visible) { color: var(--portal-ink); border-color: var(--portal-blue); box-shadow: 0 12px 26px rgb(8 79 185 / 9%); transform: translateY(-3px); }
.custom-card-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.custom-card-top { display: flex; justify-content: space-between; align-items: center; }
.custom-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; color: var(--portal-blue); background: var(--portal-blue-soft); font-size: 26px; }
.custom-card-number { color: var(--portal-muted); opacity: .4; font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.custom-card-copy { flex: 1; }
.custom-card-category { display: block; font-size: 10px; font-weight: 500; color: var(--portal-muted); margin-bottom: 7px; }
.custom-card-copy h3 { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--portal-ink); margin: 0; overflow-wrap: anywhere; }
.custom-card-action { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--portal-border); padding-top: 16px; color: var(--portal-blue); font-size: 11px; font-weight: 600; }
.custom-card-action i { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--portal-blue-soft); font-size: 16px; transition: transform .3s ease, background .3s ease; }
.custom-link-card:is(:hover, :focus-visible) .custom-card-action i { transform: translateX(3px); }
.custom-card-image { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; overflow: hidden; background: #0f4494; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 50% 75% at -20% 50%, transparent calc(100% - 1px), #000 100%); mask-image: radial-gradient(ellipse 50% 75% at -20% 50%, transparent calc(100% - 1px), #000 100%); }
.custom-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.3,1); }
.custom-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(9,30,59,.08), rgba(9,30,59,.18) 50%, rgba(6,23,46,.4)); transition: opacity .4s ease; }
.custom-link-card--image::before { display: none; }
.custom-link-card--image .custom-card-inner { min-height: 244px; }
.custom-link-card--image .custom-card-copy { max-width: 48%; }
.custom-link-card--image .custom-card-number { color: #fff; opacity: .8; text-shadow: 0 1px 6px rgb(0 0 0 / 25%); }
.custom-link-card--image .custom-card-action { border-top-color: transparent; background: linear-gradient(to right, var(--portal-border), transparent 65%) top / 100% 1px no-repeat; }
.custom-link-card--image .custom-card-action i { color: #084fb9; background: #fff; box-shadow: 0 2px 8px rgb(9 30 59 / 12%); }
.custom-link-card:is(:hover, :focus-visible) .custom-card-image img { transform: scale(1.07); }
.custom-link-card:is(:hover, :focus-visible) .custom-card-image::after { opacity: .9; }
.custom-page .custom-link-card:active { transform: translateY(-1px) scale(.99); }

.custom-document-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.custom-document-heading h2 { display: flex; align-items: center; gap: 8px; color: var(--portal-ink); margin: 0; font-size: 17px; font-weight: 600; }
.custom-document-heading h2 i { color: var(--portal-blue); font-size: 22px; }
.custom-document-heading > :is(a,span) { color: var(--portal-muted); font-size: 11px; }
.custom-document-heading > a { color: var(--portal-blue); }
.custom-file-preview, .custom-attachments { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--portal-border); }
.custom-document > .custom-richtext:empty + :is(.custom-file-preview,.custom-attachments) { border-top: 0; padding-top: 0; margin-top: 0; }
.custom-file-preview iframe { display: block; width: 100%; height: min(70vh, 680px); min-height: 320px; background: var(--portal-soft); border: 1px solid var(--portal-border); border-radius: 10px; }
.custom-attachment-list { list-style: none; margin: 0; padding: 0; }
.custom-attachment-list li + li { margin-top: 10px; }
.custom-attachment { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--portal-border); border-radius: 11px; color: var(--portal-ink); background: var(--portal-soft); transition: border-color .2s; }
.custom-attachment:hover { border-color: var(--portal-blue); color: var(--portal-blue); }
.custom-attachment-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 44px; color: var(--portal-blue); background: var(--portal-surface); border-radius: 8px; font-size: 26px; }
.custom-attachment-info { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.custom-attachment-info strong { font-size: 12px; font-weight: 600; }
.custom-attachment-info > span { font-size: 10px; color: var(--portal-muted); }
.custom-attachment > .la-download { font-size: 20px; color: var(--portal-blue); }
.custom-file-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.custom-file-pagination button { padding: 6px 12px; border: 1px solid var(--portal-border); border-radius: 7px; background: var(--portal-surface); color: var(--portal-ink); font-size: 11px; }
.custom-file-pagination button[aria-current='page'] { background: #084fb9; color: #fff; border-color: #084fb9; }
.custom-file-pagination button:disabled { opacity: .4; cursor: default; }
.custom-empty { padding: 32px 20px; text-align: center; border: 1px dashed var(--portal-border); border-radius: 14px; color: var(--portal-muted); background: var(--portal-surface); grid-column: 1 / -1; }
.custom-empty > i { display: block; font-size: 36px; color: var(--portal-blue); margin-bottom: 8px; }
.custom-empty p { margin: 0; font-size: 12px; }
@media (min-width: 1200px) { .custom-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .custom-card-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    body.portal-page .custom-page { padding-bottom: 28px !important; }
    body.portal-page .custom-page .custom-page-header { padding: 23px 0 !important; margin-bottom: 20px !important; }
    body.portal-page .custom-page-header .post-title { font-size: 26px; }
    .custom-tabs--vertical { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .custom-tabs--vertical > .custom-tab-navigation { position: static; padding: 12px; }
    .custom-tabs--vertical > .custom-tab-navigation > .custom-tab-list { flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
    .custom-tabs--vertical > .custom-tab-navigation > .custom-tab-list > .custom-tab { flex: 0 0 auto; max-width: 240px; padding: 9px 12px; }
    .custom-tabs--vertical .custom-tab-arrow { display: none; }
    .custom-richtext { font-size: 13px; line-height: 1.85; }
    .custom-card-grid { gap: 14px; }
    .custom-card-inner { padding: 20px; gap: 18px; }
    .custom-section-heading h2 { font-size: 21px; }
    .custom-attachment { padding: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .custom-page *, .custom-page *::before { transition: none !important; scroll-behavior: auto !important; } }
/* Remove duplicated gutters from the CMS's older single-column template. */
.custom-richtext > .axil-privacy-area { padding: 0 !important; background: transparent; }
.custom-richtext > .axil-privacy-area > .container { max-width: none; width: 100%; padding: 0; }
.custom-richtext > .axil-privacy-area > .container > .row { margin: 0; }
.custom-richtext > .axil-privacy-area > .container > .row > .col-lg-12 { padding: 0; }
.custom-richtext > .axil-privacy-area :is(.content, .inner.title-up, .section-title) { padding-top: 0 !important; margin-top: 0 !important; }
.custom-richtext > .axil-privacy-area .section-title > :first-child { margin-top: 0; }
