/* Shared design refinements for Final UI and native Joomla components. */
:root {
  --ink-muted: #405968;
  --line-subtle: #d9e4e9;
  --surface-soft: #f3f6f7;
  --focus: #366e91;
  --reading-width: 74ch;
  scroll-padding-top: 6rem;
}
main :is(h1,h2,h3) { text-wrap: balance; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.header.scrolled :focus-visible, footer :focus-visible { outline-color: #c5e6fb; }
.navrow :is(.icon-button,.menu-button,.nav-phone,.lang a) { min-height: 44px; }
.navrow :is(.icon-button,.menu-button,.nav-phone) { min-width: 44px; }
.navrow .dropdown .mega-heading,.navrow .dropdown .mega-desc { display: none; }
.navrow .dropdown a { min-height: 40px; }
.navrow .dropdown a:focus-visible { outline-offset: -3px; }
.section-head { gap: 1.25rem; }
.hero-copy :is(h1,h2) { max-width: 13ch; }
.hero-copy .btn:focus-visible,.hero .slide-nav :focus-visible { outline-color: #fff; }
.hero-slide.green .hero-art img { object-position: 62% center; }
.hero-slide.business .hero-art img { object-position: 70% center; }
.hero-slide.consumer .hero-art img { object-position: right bottom; }
.quick-strip :is(a,button):focus-visible { outline-offset: -3px; }
.footer-main .footer-contact { color: #e0eaf0; }
.footer-main .footer-contact address { line-height: 1.65; }
.footer-legal-links { row-gap: .65rem; }
.native-page > .native-content,.native-page > .com-contact,.native-page > .com-finder {
  padding-block: clamp(24px,4vw,56px) clamp(44px,6vw,88px);
}
.native-content .article-body { color: var(--ink-muted); line-height: 1.7; }
.native-content .article-body :is(h2,h3) { color: var(--navy); line-height: 1.19; }
.native-content .article-body :is(p,ul,ol) { max-width: var(--reading-width); }
.native-content :is(figure,img) { max-width: 100%; }
.native-content figure { margin: 0; }
.native-content .content-row > * { min-width: 0; }
.native-content .feature-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: center;
  gap: clamp(20px,4vw,56px);
  padding-block: clamp(20px,4vw,56px);
  border-bottom: 1px solid var(--line-subtle);
}
.native-content .feature-row:first-child { padding-top: 0; }
.native-content--history .feature-image img { display: block; width: 100%; border-radius: 8px; }
.native-content--history .feature-row:nth-child(even) .feature-image { order: 1; }
.native-content--leadership .inv-exec-section + .inv-exec-section { margin-top: 3.5rem; }
.native-content--leadership .inv-exec-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(14px,3vw,32px);
}
.native-content--leadership .inv-exec-card { min-width: 0; border-bottom: 1px solid var(--line-subtle); }
.native-content--leadership .inv-exec-photo-box { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 7px; background: var(--surface-soft); }
.native-content--leadership .inv-exec-photo-box img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 23%; }
.native-content--leadership .inv-exec-info { padding: 1rem 0; }
.native-content--leadership .inv-exec-name { font-weight: 700; color: var(--navy); line-height: 1.3; }
.native-content--leadership .inv-exec-role { font-size: .92rem; }
.native-content--repayment .article-body,.native-content--legal .article-body { max-width: var(--reading-width); }
.native-content--repayment h2 { margin-block: 1.5rem .6rem; }
.native-content--legal .article-body { font-size: 1.025rem; }
.native-content--legal .article-body a { text-decoration: underline; text-underline-offset: .2em; }
.native-content--event .article-body > .cols-3 {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem;
  padding: 1rem; background: var(--navy); margin-bottom: 2rem;
}
.native-content--event .article-body > .cols-3 img { display: block; max-height: 110px; object-fit: contain; margin: auto; }
.investment-current { padding: clamp(20px,4vw,48px); background: var(--surface-soft); border-radius: 8px; }
.investment-current h2 { margin-top: 0; }
.investment-current p { max-width: 58ch; color: var(--ink-muted); }
.native-content--careers .career-grid { margin-top: 1.5rem; }
.native-page .com-contact__form,.native-page .com-finder__form {
  width: min(100%,50rem); padding: clamp(16px,4vw,32px);
  border: 1px solid var(--line-subtle); border-radius: 10px; background: var(--surface-soft);
}
.native-page :is(.com-contact,.com-finder) legend { font-weight: 650; padding: 0 .25rem; }
.native-page :is(.com-contact,.com-finder) fieldset { min-inline-size: 0; border: 0; padding: 0; }
.native-page :is(.com-contact,.com-finder) :is(input:not([type=checkbox]):not([type=hidden]),textarea,select) {
  min-height: 44px; max-width: 100%; border: 1px solid #829ba9;
  border-radius: 6px; background: #fff; color: var(--navy); font: inherit; padding: .55rem .75rem;
}
.native-page .com-contact__form :is(.form-control,textarea) { width: 100%; }
.native-page .com-contact__form textarea { min-height: 8rem; }
.native-page :is(.com-contact,.com-finder) .btn-primary { color: #fff; background: var(--navy); min-height: 44px; }
.native-page .com-finder__results-list { max-width: 72ch; padding: 0; list-style: none; }
.native-page .com-finder__result,.native-page .result__item { padding-block: 1rem; border-bottom: 1px solid var(--line-subtle); }
.native-page .com-finder .result__title { margin-block: 0 .4rem; }
.native-page .com-finder .result__title-link { font-size: 1.12rem; font-weight: 700; color: var(--navy); }
.native-page .com-finder .result__title-url { display: none; }
.native-page .com-finder .result__description { margin: 0; color: var(--ink-muted); overflow-wrap: anywhere; }
.native-page .com-finder .result__taxonomy { display: none; }
.native-page .com-finder:has(.com-finder__results-list) .com-finder__explained { display: none; }
.native-page .com-finder .result__item mark { background: #e3edf3; color: inherit; }
.native-page .com-finder .pagination { display: flex; gap: .35rem; flex-wrap: wrap; padding: 0; list-style: none; }
.native-page .com-finder .page-link { display: grid; min-width: 36px; min-height: 36px; place-items: center; }
.native-page .com-finder .page-item.active .page-link { background: var(--navy); color: #fff; border-radius: 4px; }
.native-page .com-finder .collapse:not(.show) { display: none; }
.error-main .section { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.news-photo img { object-fit: contain; background: var(--surface-soft); }
.v2-dialog [role=status]:empty { display: none; }
.v2-dialog .search-form { display: flex; flex-wrap: wrap; gap: .75rem; }
.v2-dialog .search-input { flex: 1 1 15rem; min-width: 0; margin: 0; }
@media (max-width: 760px) {
  .hero .hero-copy .button-row { align-items: start; flex-direction: row; flex-wrap: wrap; }
  .hero-slide.auto .hero-art img { object-position: center bottom; }
  .hero-slide.green .hero-art img { object-position: 65% 65%; }
  .hero-slide.business .hero-art img,.hero-slide.consumer .hero-art img { object-position: right bottom; }
  .native-content .feature-row { grid-template-columns: 1fr; }
  .native-content--history .feature-row:nth-child(even) .feature-image { order: 0; }
  .native-content--leadership .inv-exec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .native-content--leadership .inv-exec-role { font-size: .84rem; }
  .native-content--event .article-body > .cols-3 img { max-height: 56px; }
  .v2-dialog :is(button,.btn) { min-height: 44px; }
  .footer-main > .footer-contact:last-child {
    grid-row: 2; border-block: 1px solid #ffffff23; padding-block: 1.15rem;
  }
}
@media (max-width: 380px) {
  .navrow { gap: 2px; }
  .navrow .brand-link { min-width: 0; }
  .navrow .logo { width: min(100px,100%); }
  .navrow > .lang { padding: 0; }
  .navrow > .lang a { padding-inline: 4px; min-width: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .header,.header *,.v2-dialog { transition: none; animation: none; }
}

/* The archive uses its own type scale. Article headings stay full-length on detail pages. */
.news-archive { padding-block: clamp(22px,4vw,48px) clamp(36px,6vw,68px); }
.news-archive .archive-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(12px,2.3vw,24px);
  align-items: start;
}
.news-archive .news-card { min-width: 0; min-height: 0; height: auto; }
.news-archive .news-card[hidden], .news-archive .news-empty[hidden], .product-workspace label[hidden] { display: none !important; }
.news-archive .news-copy { padding: 16px 18px 20px; }
.news-archive .news-copy h2 {
  margin: 6px 0 0;
  font-size: clamp(1rem,1.6vw,1.25rem);
  line-height: 1.37;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  text-wrap: initial;
}
.news-archive .news-copy time { color: var(--ink-muted); font-size: .82rem; }
.news-archive .news-photo { aspect-ratio: 16 / 10; height: auto; }
.news-archive .news-photo--empty { display: none; }
.news-archive .news-photo.landscape img { object-fit: cover; }
.news-archive .news-photo.poster img { width: 100%; height: 100%; object-fit: contain; }
.news-archive .news-empty { padding: 1.25rem; background: var(--surface-soft); border-radius: 8px; }
.news-article-intro { padding-block: clamp(22px,4vw,44px); }
.news-article-intro h1 {
  max-width: 36ch;
  margin-block: .35em .45em;
  font-size: clamp(1.6rem,3.1vw,2.65rem);
  line-height: 1.17;
  overflow-wrap: anywhere;
}
.news-article-intro time { color: var(--ink-muted); font-size: .875rem; }
.news-detail { padding-block: clamp(20px,3.6vw,42px); }
.news-detail :is(figure,.prose) { max-width: min(100%, 850px); margin-inline: auto; }
.news-detail img { max-width: 100%; height: auto; }
.news-detail .article-actions { max-width: 850px; margin-inline: auto; }
.native-content--careers .content-row:not(.career-grid):empty { display: none; }
.native-content--careers { padding-block: clamp(20px,3.5vw,38px); }
body[data-template="careers"] main { min-height: 0; }
.native-content--careers .career-grid { margin-top: 0; }
.native-content--careers .career-grid .content-col { min-height: 0; padding: 18px; }
.native-content--careers .career-grid :is(h2,h3) { font-size: clamp(1rem,2vw,1.25rem); }
.native-content--careers .career-grid img { height: clamp(72px,12vw,124px); object-fit: contain; }
.native-content--repayment .article-body { max-width: min(100%, 52rem); margin-inline: auto; }
.repayment-banks { display: grid; gap: 12px; margin-block: 1rem 0; }
.repayment-banks details { border: 1px solid var(--line-subtle); border-radius: 8px; background: #fff; }
.repayment-banks summary { cursor: pointer; padding: 15px 20px; color: var(--navy); font-weight: 700; }
.repayment-banks details[open] summary { background: var(--surface-soft); border-radius: 8px 8px 0 0; }
.repayment-banks details > div { padding: 16px 20px; overflow-wrap: anywhere; }
.native-page .com-contact { max-width: 54rem; }
.native-page .com-contact .contact-form { width: 100%; }
.native-page .com-contact .field-spacer { margin-top: .25rem; font-size: .85rem; color: var(--ink-muted); }
.native-page .com-contact .contact-consent > .control-label { display: none; }
.native-page .com-contact .contact-consent .form-check { line-height: 1.45; }
.native-page .com-contact .contact-consent input { margin-inline-end: 6px; }
.native-page .com-contact .contact-consent a { text-decoration: underline; text-underline-offset: .18em; }
.native-page .com-contact #contact-form textarea { height: 9rem; }
.native-page .com-contact .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.product-editorial .product-hero-grid { min-width: 0; padding-block: clamp(10px,2.5vw,28px); }
.product-editorial img { object-fit: contain; }
.product-workspace .calc-controls .range-label { margin-top: 0; }
.product-workspace .range-bounds { color: var(--ink-muted); }
.product-workspace .calculator { padding: clamp(16px,3vw,30px); }
.product-workspace .calc-head { margin-bottom: .75rem; }
@media (max-width: 760px) {
  .news-archive .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 700px) {
  .native-page .com-contact #contact-form fieldset:first-child {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px;
  }
  .native-page .com-contact #contact-form fieldset:first-child > .control-group { grid-column: 1 / -1; }
  .native-page .com-contact #contact-form fieldset:first-child > .control-group:has(#jform_contact_name) { grid-column: 1; }
  .native-page .com-contact #contact-form fieldset:first-child > .control-group:has(#jform_contact_email) { grid-column: 2; }
}

/* Align product art to its content; portrait assets and panoramas need different framing. */
.product-editorial .product-hero-grid { align-items: center; gap: clamp(24px,4vw,60px); }
.product-editorial .product-visual {
  display: grid; place-items: center; isolation: isolate;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  min-height: 0; aspect-ratio: 16 / 10;
  border: 0; border-radius: 12px; padding: clamp(12px,2vw,26px);
  background: #e3edf1;
}
.product-editorial .product-visual::before,.product-editorial .product-visual::after { display: none; }
.product-editorial .product-visual img {
  position: static; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0;
  margin: 0; transform: none; object-fit: contain; object-position: center;
}
.product-green .product-editorial .product-visual { padding: 0; }
.product-green .product-editorial .product-visual img { object-fit: cover; object-position: 62% center; }
.product-business .product-editorial .product-visual img { width: 88%; }
.product-return .product-editorial .product-visual { background: #e9eef0; }
.product-consumer .product-editorial .product-visual img { width: 87%; }
.product-pocket .product-editorial .product-visual { background: #dce8ee; }
.product-pocket .product-editorial .product-visual img { width: auto; height: 83%; }

/* Calculator layout separates the inputs from the resulting payment. */
.product-workspace .calculator {
  gap: 18px clamp(14px,3vw,34px);
  padding: clamp(18px,3vw,36px);
  border-color: #d8e4e9;
  background: #fff;
  border-radius: 16px;
}
.product-workspace .calc-head { padding-bottom: 14px; margin-bottom: 0; }
.product-workspace .calc-head h2 { font-size: clamp(1.4rem,3vw,2.1rem); }
.product-workspace .calc-controls { background: #f3f6f7; padding: clamp(14px,2.5vw,24px); border-radius: 10px; }
.product-workspace .calc-controls .range-label { gap: 5px 12px; }
.product-workspace .calc-controls .range-label + .range-label { border-top: 1px solid #dbe5ea; padding-top: 14px; }
.product-workspace .calc-controls .num-input { max-width: 100%; padding: 5px 10px; min-height: 45px; }
.product-workspace .calc-controls input[type="range"] { width: 100%; min-height: 29px; accent-color: #286077; }
.product-workspace .calc-result { border-radius: 10px; padding: clamp(16px,3vw,28px); }
.product-workspace .calc-result strong[data-payment] { font-size: clamp(1.55rem,3.5vw,2.6rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.product-workspace .schedule-launch { min-height: 48px; border-radius: 8px; }
.product-workspace .calc-note { padding-top: 12px; margin: 0; color: #405968; }

.office-directory .office-list { gap: 0; border-block: 1px solid var(--line-subtle); }
.office-directory .office-entry { border: 0; border-bottom: 1px solid var(--line-subtle); border-radius: 0; padding: 0; }
.office-directory .office-entry:last-child { border-bottom: 0; }
.office-directory .office-select { padding: 12px 14px 4px; gap: 3px; text-align: left; min-height: 44px; }
.office-directory .office-location { display: none; }
.office-directory .office-select strong { font-size: .98rem; }
.office-directory .office-address { font-size: .85rem; line-height: 1.4; }
.office-directory .office-actions { padding: 0 14px 8px; display: flex; gap: 8px 14px; flex-wrap: wrap; }
.office-directory .office-actions :is(a,button) { min-height: 32px; display: inline-flex; align-items: center; }
.office-directory .office-entry.is-selected { background: var(--surface-soft); box-shadow: inset 3px 0 #42768d; }
.header.scrolled { background: rgba(12,41,58,.85); backdrop-filter: blur(22px) saturate(135%); }
.news-archive .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.news-archive .page-link { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line-subtle); border-radius: 6px; }
.news-archive .page-item.active .page-link { color: #fff; background: var(--navy); border-color: var(--navy); }
.news-search-form { min-width: 0; }
.news-search-form > div { display: flex; gap: 6px; }
.news-search-form input { min-width: 0; }
.news-search-form .btn { min-height: 44px; padding-inline: 12px; flex: none; }
@media (761px <= width <= 1050px) {
  .native-content--leadership .inv-exec-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .product-editorial .product-visual { width: 100%; aspect-ratio: 16 / 9; }
  .product-workspace .calc-controls .range-label { grid-template-columns: minmax(0,1fr) minmax(110px,45%); }
}

.header.scrolled { background: rgb(12 41 58 / 69%); backdrop-filter: blur(22px) saturate(140%); }
.header.scrolled .navrow > .lang a { color: #fff; }
.product-page .product-editorial .product-visual {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; overflow: visible;
}
.product-page .product-editorial .product-visual img { width: 100%; height: 100%; object-position: right center; }
.product-pocket .product-editorial .product-visual img { width: auto; height: 88%; justify-self: center; }
.product-business .product-editorial .product-visual img { filter: drop-shadow(0 8px 14px #0c293a26); }
.product-return .product-editorial .product-visual { align-self: end; aspect-ratio: 16 / 7; }
.product-return .product-editorial .product-visual img {
  height: auto;
  mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 91%,transparent),
              linear-gradient(180deg,transparent,#000 16%,#000 83%,transparent);
  mask-composite: intersect;
}
.product-green .product-editorial .product-visual img {
  object-fit: cover; object-position: 60% center;
  mask-image: linear-gradient(90deg,transparent 0%,#000 31%,#000 92%,transparent);
}
.product-page .contact-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  max-width: 61rem; padding: 14px 18px; margin: 18px auto 0;
  border: 1px solid var(--line-subtle); background: var(--surface-soft);
}
.product-page .contact-inline > svg { flex: 0 0 20px; }
.product-page .contact-inline > div:not(.inline-phones) { flex: 1 1 13rem; min-width: 0; }
.product-page .contact-inline .inline-phones {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px 10px;
  flex: 1 1 28rem; width: auto; min-width: 0;
}
.product-page .contact-inline .company-phone { min-width: 0; padding: 6px; overflow-wrap: anywhere; font-size: .8rem; }
.repayment-intro { color: var(--ink-muted); margin: 0 0 16px; }
.repayment-banks { gap: 10px; }
.repayment-banks summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 16px; list-style: none;
}
.repayment-banks summary::-webkit-details-marker { display: none; }
.repayment-banks summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; }
.repayment-banks details[open] summary::after { content: '−'; }
.repayment-banks details[open] { border-color: #9bb5c2; }
.bank-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; background: var(--line-subtle); }
.bank-fields > div { min-width: 0; background: #fff; padding: 10px 12px; }
.bank-fields dt { color: var(--ink-muted); font-size: .82rem; }
.bank-fields dd { margin: 2px 0 0; color: var(--navy); font-weight: 550; }
.bank-field-number dd { font-variant-numeric: tabular-nums; }
.bank-number-copy { display: inline-block; min-height: 34px; margin-inline-start: 8px; border: 0; padding: 0 8px; border-radius: 5px; background: #e5eef2; color: var(--navy); cursor: pointer; font: inherit; font-size: .78rem; }
.bank-copy-status:not(:empty) { display: block; margin-top: .75rem; font-size: .85rem; }
.office-directory .office-select { position: relative; padding: 9px 10px 9px 44px; gap: 2px; }
.office-directory .office-select strong { font-weight: 600; font-size: .92rem; }
.office-directory .office-number {
  position: absolute; inset: 11px auto auto 10px;
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px;
  background: #e5eef2; color: var(--navy); font-size: .72rem; font-weight: 650;
}
.office-directory .office-entry:not(.is-selected) .office-actions { display: none; }
.office-directory .office-actions { padding: 0 10px 4px 44px; }
.office-directory .office-address { font-size: .82rem; }
.office-directory .office-actions :is(a,button) { font-size: .78rem; font-weight: 600; }
.office-directory .office-entry.is-selected { box-shadow: inset 2px 0 #42768d; }
.office-directory .office-list { max-height: min(510px,70vh); }
.news-archive .pagination li:has(.icon-angle-double-left,.icon-angle-double-right) { display: none; }
.news-archive .pagination .icon-angle-left::before { content: '‹'; }
.news-archive .pagination .icon-angle-right::before { content: '›'; }
.news-archive .pagination :is(.icon-angle-left,.icon-angle-right) { font: 1.4rem/1 system-ui,sans-serif; }
.news-archive .page-item.disabled .page-link { background: #f2f6f7; color: #526b78; }
body[data-template=feedback] .native-page > .com-contact { max-width: min(100%,43rem); padding-block: 24px 52px; }
body[data-template=feedback] .page-header h1 { font-size: clamp(1.9rem,3.6vw,2.8rem); margin-bottom: 14px; }
body[data-template=feedback] .com-contact__form { padding: clamp(14px,2.4vw,23px); }
body[data-template=feedback] #contact-form .control-group { margin-block: .35rem; }
body[data-template=feedback] #contact-form .field-spacer { margin-top: 0; }
body[data-template=feedback] #contact-form textarea { min-height: 96px; height: 100px; }
body[data-template=feedback] #contact-form .form-check-inline { max-width: none; }
@media (max-width: 600px) {
  .product-page .contact-inline .inline-phones { flex-basis: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bank-fields { grid-template-columns: 1fr; }
  .office-directory .office-list { max-height: none; }
}
@media (max-width: 500px) {
  .news-archive .archive-grid { grid-template-columns: minmax(0,1fr); }
}
