/* Shared navigation and footer. Colors inherit the portal's light/dark theme. */
.portal-header .header-sticky { background: var(--portal-surface); border-bottom: 1px solid var(--portal-border); }
.portal-header .header-sticky.sticky-bar { box-shadow: 0 8px 30px rgba(19,42,57,.08); }
.portal-header .portal-navbar { gap: 28px; min-height: 88px; }
.portal-header .portal-brand { flex: 0 0 auto; gap: 14px; text-decoration: none; }
.portal-header .portal-brand img { width: 92px !important; max-height: 52px; }
.portal-brand-caption { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--portal-border); line-height: 1.7; white-space: nowrap; }
.portal-brand-caption strong { font-size: 10px; font-weight: 600; color: var(--portal-ink); }
.portal-brand-caption > span { font-size: 9px; color: var(--portal-muted); }
.portal-header .main-nav .main-menu { gap: 3px; justify-content: flex-end; }
.portal-header .main-nav .main-menu > li { position: relative; padding: 21px 0; }
.portal-header .main-nav .main-menu > li > a { padding: 12px 13px; border-radius: 10px; line-height: 1.5; font-size: 13px !important; transition: background .2s,color .2s; }
.portal-header .main-nav .main-menu > li > a:hover,
.portal-header .main-nav .main-menu > li > a[aria-current],
.portal-header .main-nav .main-menu > li > a.has-active-child,
.portal-header .main-nav .main-menu > li.is-open > a { background: var(--portal-blue-soft); color: var(--portal-blue) !important; }
.portal-header .main-nav .main-menu > li > a::after { content: none !important; }
.portal-header .main-nav .main-menu > li.menu-item-has-children > a::before { position: static; margin: 0; padding: 0; order: 2; transition: transform .2s; }
.portal-header .main-nav .main-menu > li.menu-item-has-children:hover > a::before,
.portal-header .main-nav .main-menu > li.menu-item-has-children:focus-within > a::before { transform: rotate(180deg); }
.portal-header .portal-nav-actions { padding-left: 20px; gap: 8px; border-left: 0; }
.portal-header .portal-theme-toggle { border-radius: 50%; border-color: transparent; background: var(--portal-soft); width: 40px; height: 40px; transition: background .2s; }
.portal-header .portal-theme-toggle:hover { background: var(--portal-blue-soft); color: var(--portal-blue); }
.portal-header button.portal-search-toggle { min-height: 42px; border-radius: 11px; padding: 10px 16px; gap: 8px; box-shadow: 0 4px 10px rgba(8,79,185,.12); }
.portal-header button.portal-search-toggle:hover { filter: brightness(.94); }
.portal-header .main-nav .main-menu .sub-menu { top: 100%; min-width: 295px; padding: 8px; border: 1px solid var(--portal-border); border-radius: 16px !important; box-shadow: 0 16px 40px rgba(19,42,57,.12); transform: translateY(6px); }
.portal-header .main-nav .main-menu .sub-menu li { padding: 0; }
.portal-header .main-nav .main-menu .sub-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; line-height: 1.65; border-radius: 9px; font-size: 11px !important; }
.portal-header .main-nav .main-menu .sub-menu a span { flex: 1; }
.portal-header .main-nav .main-menu .sub-menu a[aria-current] { background: var(--portal-blue-soft); color: var(--portal-blue) !important; }
.portal-header .main-nav .main-menu .sub-menu .portal-submenu-arrow { position: static; font-size: 14px; opacity: .4; transition: transform .2s,opacity .2s; }
.portal-header .main-nav .main-menu .sub-menu a:hover .portal-submenu-arrow { opacity: 1; transform: translateX(3px); }
/* A small transparent bridge keeps dropdowns open while moving the pointer. */
.portal-header .main-nav .main-menu .sub-menu::before,.portal-mega-panel::before { content: ''; position: absolute; top: -9px; left: 0; width: 100%; height: 10px; }
.portal-header .main-nav .main-menu .portal-mega-panel { top: 100% !important; left: 50%; width: calc(100% - 24px); max-width: 1000px; transform: translateX(-50%); align-items: stretch; gap: 10px; padding: 8px; margin-top: 6px; border: 1px solid var(--portal-border); border-radius: 16px; background: var(--portal-surface); box-shadow: 0 16px 40px rgba(19,42,57,.12); }
.portal-mega-intro { flex: 0 0 26%; min-width: 190px; padding: 20px; background: #0f4494 center/cover; border-radius: 10px; color: #fff; }
.portal-mega-intro > span { font-size: 9px; letter-spacing: .12em; color: #bcfe5a; }
.portal-mega-intro h2 { font-size: 20px; line-height: 1.5; margin: 10px 0 0; color: #fff; }
.portal-mega-intro p { margin: 10px 0 0; font-size: 11px; line-height: 1.8; color: #e4edfa; }
.portal-mega-links { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; align-items: start; gap: 4px 8px; margin: 0; padding: 4px; list-style: none; }
.portal-header .main-nav .portal-mega-links > li { min-width: 0; height: auto; margin: 0; padding: 0; }
.portal-header .main-nav .portal-mega-links a { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px; border-radius: 9px; font-size: 11px; line-height: 1.7; color: var(--portal-ink); }
.portal-header .portal-mega-links a > i:first-child:not(:last-child) { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; margin: 0; border-radius: 9px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 19px; }
.portal-header .portal-mega-links a > i:last-child { flex: 0 0 auto; width: auto; height: auto; padding: 0; margin: 0; background: none; font-size: 14px; }
.portal-header .portal-mega-links a > span { min-width: 0; overflow-wrap: anywhere; }
.portal-mega-links a span { flex: 1; }
.portal-header .main-nav .portal-mega-links a:hover { background: var(--portal-blue-soft); color: var(--portal-blue); }
.portal-header .menu-item-has-children:focus-within > .portal-mega-panel,.portal-header .menu-item-has-children.is-open > .portal-mega-panel { display: flex; }
/* Mobile navigation drawer. */
body #sidebar-wrapper { border-radius: 0 24px 24px 0; }
.portal-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--portal-border); }
.portal-drawer-brand img { width: 90px; height: 50px; object-fit: contain; }
body #sidebar-wrapper .off-canvas-close { position: static; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border: 1px solid var(--portal-border); border-radius: 50%; background: var(--portal-soft); }
body #sidebar-wrapper .off-canvas-close i { position: static; font-size: 21px; }
body #sidebar-wrapper .sidebar-inner { display: block; height: auto; padding: 24px 18px; }
.portal-menu-caption { display: block; padding: 0 12px 16px; color: var(--portal-muted); font-size: 9px; font-weight: 600; letter-spacing: .14em; }
body #sidebar-wrapper .accordion { background: transparent; box-shadow: none; margin: 0; padding: 0; width: 100%; }
body #sidebar-wrapper .accordion > li { margin: 0 0 5px; border: 0; }
body #sidebar-wrapper .accordion .link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 13px 14px; border: 0; background: transparent; border-radius: 10px; color: var(--portal-ink); font-size: 13px; line-height: 1.7; text-align: left; font-weight: 500; }
body #sidebar-wrapper .accordion .link > span { display: flex; align-items: center; gap: 10px; }
body #sidebar-wrapper .accordion li i { position: static; margin: 0; font-size: 17px; color: inherit; }
body #sidebar-wrapper .accordion .link:hover,body #sidebar-wrapper .accordion .link[aria-current],body #sidebar-wrapper .accordion .open > .link { color: var(--portal-blue); background: var(--portal-blue-soft); }
body #sidebar-wrapper .accordion li.open .link > i { transform: rotate(180deg); }
body #sidebar-wrapper .accordion .submenu { padding: 6px; margin: 5px 0 8px 12px; border-left: 2px solid var(--portal-border); border-radius: 0 10px 10px 0; }
body #sidebar-wrapper .submenu li { border: 0; }
body #sidebar-wrapper .submenu li a { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 11px; line-height: 1.8; border-radius: 8px; background: transparent; }
body #sidebar-wrapper .submenu a:hover,body #sidebar-wrapper .submenu a[aria-current] { background: var(--portal-surface); color: var(--portal-blue); }
.portal-drawer-contact { display: flex; align-items: center; gap: 12px; margin: 28px 6px 0; padding: 16px 12px; border-top: 1px solid var(--portal-border); color: var(--portal-muted); font-size: 10px; }
.portal-drawer-contact > i:first-child { font-size: 24px; color: var(--portal-blue); }
.portal-drawer-contact span { flex: 1; }
.portal-drawer-contact strong { display: block; color: var(--portal-ink); font-weight: 500; font-size: 11px; }
/* Footer composition. */
body .portal-footer { position: relative; margin-top: 48px; padding: 0; background: var(--portal-surface); border-top: 1px solid var(--portal-border); }
body .portal-footer::before,body .portal-footer::after { content: none; }
.portal-footer-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px 0; border-bottom: 1px solid var(--portal-border); }
.portal-footer-intro .portal-eyebrow { font-size: 9px; letter-spacing: .14em; }
.portal-footer-intro h2 { margin: 8px 0 0; font-size: clamp(20px,2.2vw,27px); font-weight: 600; line-height: 1.45; color: var(--portal-ink); }
body .portal-footer a.portal-footer-contact { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 18px; white-space: nowrap; border: 1px solid var(--portal-border); border-radius: 12px; background: var(--portal-soft); color: var(--portal-blue); font-size: 11px; font-weight: 600; transition: border-color .2s,background .2s; }
.portal-footer-contact i { font-size: 20px; transform: rotate(45deg); }
body .portal-footer a.portal-footer-contact:hover { background: var(--portal-blue-soft); border-color: var(--portal-blue); }
.portal-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1.1fr; gap: 64px; padding: 40px 0; }
.portal-footer-brand { display: block; margin-bottom: 20px; }
.portal-footer-brand img { max-width: 190px; max-height: 64px; width: auto; object-fit: contain; }
body .portal-footer .textwidget { font-size: 11px; line-height: 1.95; color: var(--portal-muted); max-width: 330px; margin-bottom: 18px; }
body .portal-footer h3 { font-size: 13px; font-weight: 600; margin: 0 0 20px; color: var(--portal-ink); }
body .portal-footer .portal-footer-connect p { font-size: 11px; line-height: 1.9; color: var(--portal-muted); margin: 0 0 16px; }
.portal-footer-links,.portal-footer-social,.portal-footer-legal { list-style: none; padding: 0; margin: 0; }
body .portal-footer ul li + li { margin-left: 0; }
.portal-footer-links { display: flex; flex-direction: column; gap: 10px; }
body .portal-footer .portal-footer-links a { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.8; color: var(--portal-muted); font-weight: 400; }
body .portal-footer .portal-footer-links a:hover { color: var(--portal-blue); }
.portal-footer-navigation .portal-footer-links a { justify-content: space-between; max-width: 180px; }
.portal-footer-navigation .portal-footer-links i { font-size: 12px; color: var(--portal-border); }
.portal-footer-navigation .portal-footer-links a:hover i { color: var(--portal-blue); }
.portal-footer-contacts i { font-size: 16px; color: var(--portal-blue); }
.portal-app-download { padding: 18px; margin-bottom: 22px; border: 1px solid var(--portal-border); border-radius: 16px; background: var(--portal-soft); }
.portal-app-download-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.portal-app-icon { display: grid; place-items: center; width: 36px; height: 40px; flex-shrink: 0; color: var(--portal-blue); background: var(--portal-blue-soft); border-radius: 10px; font-size: 26px; }
body .portal-footer .portal-app-download h4 { font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--portal-ink); margin: 0 0 3px; letter-spacing: -.02em; }
body .portal-footer .portal-app-download p { font-size: 9px; color: var(--portal-muted); line-height: 1.8; margin: 0; }
.portal-app-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 12px; }
body .portal-footer .portal-app-links a { display: flex; align-items: center; justify-content: center; min-height: 55px; min-width: 0; padding: 7px; background: #000; border: 1px solid #253546; border-radius: 11px; box-shadow: 0 3px 8px rgba(19,42,57,.07); transition: transform .2s,box-shadow .2s,border-color .2s; }
body .portal-footer .portal-app-links a:hover { transform: translateY(-3px); border-color: var(--portal-blue); box-shadow: 0 6px 14px rgba(19,42,57,.15); }
body .portal-footer .portal-app-links a:focus-visible { outline: 3px solid var(--portal-blue); outline-offset: 4px; }
.portal-app-links img { display: block; width: 128px; max-width: 100%; height: 38px; object-fit: contain; }
.portal-app-platforms { display: flex; align-items: center; gap: 6px; font-size: 9px; line-height: 1.7; color: var(--portal-muted); }
.portal-app-platforms i { font-size: 14px; color: var(--portal-blue); }
body .portal-footer .portal-footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
body .portal-footer .portal-footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--portal-border); border-radius: 50%; background: var(--portal-surface); color: var(--portal-muted); font-size: 18px; transition: background .2s,color .2s,transform .2s; }
body .portal-footer .portal-footer-social a:hover { transform: translateY(-2px); background: var(--portal-blue-soft); color: var(--portal-blue); border-color: var(--portal-blue); }
.portal-footer-language { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--portal-muted); }
.portal-footer-language .gt-container { min-height: 34px; }
.portal-footer-bottom { display: flex; align-items: center; gap: 28px; padding: 22px 0; border-top: 1px solid var(--portal-border); }
body .portal-footer .portal-footer-bottom p { margin: 0; font-size: 9px; line-height: 1.9; color: var(--portal-muted); flex: 1; }
.portal-footer-bottom p span { opacity: .8; }
.portal-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
body .portal-footer .portal-footer-legal a { font-size: 9px; font-weight: 400; color: var(--portal-muted); }
body .portal-footer .portal-footer-legal a:hover { color: var(--portal-blue); }
.portal-footer-dagang { width: 115px; max-height: 32px; object-fit: contain; }
@media (max-width: 1199.98px) {
    .portal-brand-caption { display: none; }
    .portal-header .portal-navbar { gap: 20px; }
    .portal-header .main-nav .main-menu > li > a { padding: 12px 11px; }
    .portal-footer-grid { gap: 36px; }
}
@media (max-width: 991.98px) {
    .portal-header .portal-navbar { min-height: 76px; }
    .portal-brand-caption { display: flex; }
    .portal-header .portal-nav-actions { border: 0; padding-left: 0; }
    .portal-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .portal-footer-identity { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
    .portal-footer-brand { grid-row: span 2; align-self: center; margin-bottom: 0; }
    .portal-footer-contacts { grid-column: 2; }
    .portal-footer-bottom { flex-wrap: wrap; gap: 16px; }
    body .portal-footer .portal-footer-bottom p { flex: 1 0 100%; }
    .portal-footer-dagang { margin-left: auto; }
}
@media (max-width: 575.98px) {
    .portal-header .portal-brand img { width: 76px !important; max-height: 46px; }
    .portal-brand-caption { display: none; }
    .portal-header .portal-navbar { gap: 12px; }
    .portal-header .portal-nav-actions { gap: 8px; }
    .portal-header button.portal-search-toggle { min-width: 42px; padding: 10px 12px; }
    .portal-header button.portal-search-toggle span { display: none; }
    .portal-footer-intro { align-items: flex-start; flex-direction: column; gap: 18px; padding: 28px 0; }
    .portal-footer-intro h2 { font-size: 22px; max-width: 310px; }
    .portal-footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
    .portal-footer-identity { display: block; }
    .portal-footer-brand { margin-bottom: 18px; }
    .portal-footer-brand img { max-width: 175px; }
    .portal-footer-navigation .portal-footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
    .portal-footer-navigation .portal-footer-links a { max-width: none; }
    body .portal-footer h3 { margin-bottom: 16px; }
    .portal-footer-bottom { padding: 20px 0; }
    .portal-footer-legal { gap: 14px; }
    .portal-footer-dagang { width: 94px; }
}
/* Reset spacing inherited from the older accordion and footer theme. */
body #sidebar-wrapper .accordion li { padding: 0 !important; border: 0 !important; }
body #sidebar-wrapper .accordion .link,body #sidebar-wrapper .accordion .link > i { color: var(--portal-ink) !important; }
body #sidebar-wrapper .accordion .open > .link,body #sidebar-wrapper .accordion .link[aria-current] { color: var(--portal-blue) !important; }
body #sidebar-wrapper .accordion li i { background: transparent; padding: 0; }
body .portal-footer ul li { margin: 0; }
body .portal-footer { border-image: none; box-shadow: none; }
.portal-header .main-nav .main-menu > .has-mega-menu:hover > .portal-mega-panel { display: flex; opacity: 1; visibility: visible; }
.portal-language-fallback { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid var(--portal-border); border-radius: 9px; color: var(--portal-ink); background: var(--portal-soft); }
.js-google-translate:has(select, .gt-custom) .portal-language-fallback { display: none; }
.portal-footer-language .gt-custom { min-width: 150px; border-radius: 9px; font-size: 10px; color: var(--portal-ink) !important; background: var(--portal-soft); border-color: var(--portal-border) !important; }
body[data-theme='dark'] .portal-header .header-sticky,
body[data-theme='dark'] #sidebar-wrapper,
body[data-theme='dark'] .portal-footer { background: var(--portal-surface) !important; }
body[data-theme='dark'] .portal-header .main-nav .main-menu > li > a,
body[data-theme='dark'] .portal-header .main-nav .main-menu .sub-menu a { color: var(--portal-ink) !important; }
body[data-theme='dark'] .portal-header .main-nav .main-menu a:hover,
body[data-theme='dark'] .portal-header .main-nav .main-menu a[aria-current],
body[data-theme='dark'] .portal-header .main-nav .main-menu a.has-active-child { color: var(--portal-blue) !important; }

/* Social accounts and language selection share one footer row. */
.portal-footer-social-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body .portal-footer .portal-footer-social-row .portal-footer-social { flex: 0 0 auto; flex-wrap: nowrap; margin: 0; gap: 7px; }
.portal-footer-social-row .portal-footer-language { flex: 0 1 152px; min-width: 0; margin-left: auto; gap: 0; }
.portal-footer-social-row .js-google-translate { width: 100%; min-width: 0; }
.portal-footer-social-row .gt-custom { width: 100%; min-width: 0; min-height: 36px; padding: 8px 28px 8px 10px; font-size: 10px; }
.portal-footer-social-row .gt-custom-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-footer-social-row .portal-language-fallback { width: 100%; justify-content: center; min-height: 36px; }
@media (max-width: 1199.98px) {
    .portal-footer-social-row { gap: 10px; }
    body .portal-footer .portal-footer-social-row .portal-footer-social { gap: 6px; }
    body .portal-footer .portal-footer-social-row .portal-footer-social a { width: 30px; height: 30px; font-size: 16px; }
}
/* Compact theme switch and mobile navigation. */
.portal-header .portal-theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 44px; border: 0; border-radius: 10px; background: transparent; }
.portal-header .portal-theme-toggle:hover { background: transparent; }
.portal-theme-toggle .portal-theme-track { position: relative; display: block; width: 48px; height: 28px; border: 1px solid var(--portal-border); border-radius: 20px; background: #e5edf5; transition: background .2s, border-color .2s; pointer-events: none; }
.portal-theme-thumb { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #7a5a16; background: #fff; box-shadow: 0 1px 4px rgb(19 42 57 / 15%); transition: transform .2s; }
.portal-theme-thumb svg { grid-area: 1 / 1; width: 14px; height: 14px; }
.portal-theme-moon { opacity: 0; }
.portal-theme-toggle input:checked + .portal-theme-track { background: #084fb9; border-color: #084fb9; }
.portal-theme-toggle input:checked + .portal-theme-track .portal-theme-thumb { transform: translateX(20px); color: #084fb9; }
.portal-theme-toggle input:checked + .portal-theme-track .portal-theme-sun { opacity: 0; }
.portal-theme-toggle input:checked + .portal-theme-track .portal-theme-moon { opacity: 1; }
body #sidebar-wrapper { display: flex; flex-direction: column; width: min(360px, calc(100vw - 24px)); height: 100vh; height: 100dvh; left: auto; right: 0; border-radius: 20px 0 0 20px; transform: translateX(105%); overflow: hidden; }
body.canvas-opened #sidebar-wrapper { width: min(360px, calc(100vw - 24px)); transform: translateX(0); }
.portal-drawer-header { flex-shrink: 0; padding: 22px 20px 18px; align-items: flex-start; }
.portal-drawer-identity { display: flex; flex-direction: column; gap: 8px; }
.portal-drawer-identity > span { font-size: 10px; font-weight: 500; color: var(--portal-muted); }
.portal-drawer-brand { display: block; }
.portal-drawer-brand img { width: 82px; height: 42px; }
body #sidebar-wrapper .off-canvas-close { flex: 0 0 36px; border-radius: 10px; cursor: pointer; }
body #sidebar-wrapper .sidebar-inner { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 14px max(20px, env(safe-area-inset-bottom)); }
body #sidebar-wrapper .portal-menu-caption { padding: 0 10px 12px; font-size: 9px; }
body #sidebar-wrapper .accordion .link { padding: 10px; min-height: 48px; font-size: 12px; }
body #sidebar-wrapper .portal-mobile-label { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; }
body #sidebar-wrapper .portal-mobile-label > span:last-child { overflow-wrap: anywhere; }
body #sidebar-wrapper .portal-mobile-icon { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--portal-soft); color: var(--portal-muted); }
body #sidebar-wrapper .accordion .portal-mobile-icon i { font-size: 19px; }
body #sidebar-wrapper .accordion .open > .link .portal-mobile-icon,body #sidebar-wrapper .accordion .link[aria-current] .portal-mobile-icon { background: var(--portal-blue-soft); color: var(--portal-blue); }
body #sidebar-wrapper .accordion .link > .la-angle-down { font-size: 13px; transition: transform .18s; }
body #sidebar-wrapper .accordion .submenu { padding: 4px 0 4px 10px; margin: 2px 10px 12px 25px; background: transparent; border-radius: 0; }
body #sidebar-wrapper .submenu li a { padding: 10px 12px; font-size: 11px; color: var(--portal-muted); }
body #sidebar-wrapper .portal-drawer-contact { border: 1px solid var(--portal-border); border-radius: 12px; background: var(--portal-soft); padding: 14px 12px; margin: 20px 6px 0; }
body.canvas-opened .dark-mark { background: rgb(12 28 45 / 45%); backdrop-filter: blur(3px); }
@media (max-width: 991.98px) {
    .portal-header .portal-navbar { min-height: 72px; gap: 12px; }
    .portal-header .portal-nav-actions { gap: 8px; }
    .portal-header button.portal-search-toggle { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 11px; }
    .portal-header button.portal-search-toggle span { display: none; }
    .portal-header .portal-nav-actions #off-canvas-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--portal-border); border-radius: 11px; color: var(--portal-ink); background: var(--portal-surface); cursor: pointer; }
    .portal-header #off-canvas-toggle svg { width: 22px; height: 22px; }
}
@media (max-width: 380px) { .portal-header .portal-nav-actions { gap: 5px; } .portal-header .portal-brand img { width: 70px !important; } }
@media (prefers-reduced-motion: reduce) { .portal-theme-toggle *, body #sidebar-wrapper { transition: none !important; } }
.portal-drawer-identity { align-items: flex-start; }
body #sidebar-wrapper .portal-drawer-brand img { width: 82px; height: 42px; margin: 0 !important; object-position: left center; }
body #sidebar-wrapper .accordion,body #sidebar-wrapper .accordion .submenu { background: transparent !important; }
body #sidebar-wrapper .off-canvas-close,body #sidebar-wrapper .off-canvas-close i { color: var(--portal-ink) !important; }
body #sidebar-wrapper .accordion .portal-mobile-icon i { color: inherit !important; }
/* Search dialog: compact form and related public services. */
body #portal-search { padding: 112px 0 32px; background: radial-gradient(ellipse at 15% 10%, rgb(8 79 185 / 5%), transparent 60%), var(--portal-soft); overscroll-behavior: contain; }
#portal-search .portal-search-shell { max-width: 960px; }
.portal-search-card { padding: 28px 32px; border: 1px solid var(--portal-border); border-radius: 20px; background: var(--portal-surface); box-shadow: 0 8px 32px rgb(19 42 57 / 4%); }
.portal-search-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.portal-search-caption { display: flex; align-items: center; gap: 12px; }
.portal-search-symbol { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--portal-blue); background: var(--portal-blue-soft); font-size: 23px; }
#portal-search .search-close { position: static; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--portal-border); border-radius: 10px; background: var(--portal-soft); color: var(--portal-muted); cursor: pointer; transition: background .2s, color .2s; }
#portal-search .search-close i { position: static; font-size: 22px; color: inherit; }
#portal-search .search-close:hover { color: var(--portal-blue); background: var(--portal-blue-soft); }
#portal-search-title { margin: 0 0 10px; color: var(--portal-ink); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.4; }
#portal-search-description { margin: 0 0 24px; color: var(--portal-muted); font-size: 12px; line-height: 1.8; }
.portal-search-form { margin: 0; }
.portal-search-field { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--portal-border); border-radius: 13px; background: var(--portal-soft); transition: border-color .2s, box-shadow .2s; }
.portal-search-field:focus-within { border-color: var(--portal-blue); box-shadow: 0 0 0 3px rgb(8 79 185 / 9%); }
#portal-search-query { flex: 1; width: 100%; min-width: 0; height: 44px; padding: 10px 12px; margin: 0; border: 0; border-radius: 8px; outline: none; box-shadow: none; background: transparent; color: var(--portal-ink); font-size: 13px; line-height: 1.5; }
#portal-search-query::placeholder { color: var(--portal-muted); opacity: .7; }
#portal-search .portal-search-submit { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; height: 44px; min-width: 94px; padding: 10px 18px; border: 1px solid #084fb9; border-radius: 9px; color: #fff; background: #084fb9; font-size: 12px; font-weight: 600; line-height: 1.5; transition: background .2s, border-color .2s; }
#portal-search .portal-search-submit i { font-size: 20px; }
#portal-search .portal-search-submit:hover { background: #0f4494; border-color: #0f4494; }
.portal-search-keyboard-hint { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--portal-muted); font-size: 10px; }
.portal-search-keyboard-hint kbd { padding: 1px 5px; border: 1px solid var(--portal-border); border-radius: 4px; background: var(--portal-soft); box-shadow: 0 1px 0 var(--portal-border); color: var(--portal-muted); font-family: inherit; font-size: 9px; }
.portal-search-services { margin-top: 26px; }
.portal-search-services-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.portal-search-services-heading h2 { margin: 0; color: var(--portal-ink); font-size: 14px; font-weight: 600; }
.portal-search-services-heading > span { color: var(--portal-muted); font-size: 10px; }
.portal-search-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#portal-search .portal-search-service { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid var(--portal-border); border-radius: 14px; color: var(--portal-ink); background: var(--portal-surface); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
#portal-search .portal-search-service:is(:hover, :focus-visible) { border-color: var(--portal-blue); transform: translateY(-2px); box-shadow: 0 5px 14px rgb(8 79 185 / 6%); }
.portal-search-service-logo { display: grid; place-items: center; height: 78px; margin-bottom: 14px; border-radius: 8px; overflow: hidden; background: #f5f7f8; }
.portal-search-service-logo img { display: block; width: 100%; max-width: 200px; height: 100%; object-fit: contain; }
.portal-search-service-copy { min-width: 0; padding-right: 20px; }
.portal-search-service-copy h3 { margin: 0 0 5px; color: var(--portal-ink); font-size: 12px; font-weight: 600; line-height: 1.6; }
.portal-search-service-copy p { margin: 0; color: var(--portal-muted); font-size: 10px; line-height: 1.7; }
.portal-search-service > .la-arrow-up { position: absolute; bottom: 20px; right: 14px; font-size: 17px; color: var(--portal-blue); transform: rotate(45deg); }
@media (max-width: 991.98px) { body #portal-search { padding-top: 96px; } }
@media (max-width: 575.98px) {
    body #portal-search { padding: 90px 0 24px; }
    .portal-search-card { padding: 20px; border-radius: 16px; }
    .portal-search-card-header { gap: 10px; margin-bottom: 18px; }
    .portal-search-caption { gap: 8px; }
    .portal-search-caption .portal-eyebrow { font-size: 8px; letter-spacing: .06em; }
    .portal-search-symbol { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; font-size: 19px; }
    #portal-search .search-close { width: 32px; height: 32px; flex-basis: 32px; }
    #portal-search-title { font-size: 23px; }
    #portal-search-description { font-size: 11px; margin-bottom: 18px; }
    #portal-search-query { padding: 10px 8px; font-size: 12px; }
    #portal-search .portal-search-submit { min-width: 44px; padding: 10px; }
    #portal-search .portal-search-submit span { display: none; }
    .portal-search-keyboard-hint { display: none; }
    .portal-search-services { margin-top: 22px; }
    .portal-search-services-heading > span { display: none; }
    .portal-search-service-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    #portal-search .portal-search-service { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
    .portal-search-service-logo { flex: 0 0 86px; width: 86px; height: 52px; margin: 0; }
    .portal-search-service-copy { flex: 1; }
    .portal-search-service > .la-arrow-up { top: 50%; bottom: auto; right: 12px; transform: translateY(-50%) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { #portal-search *, #portal-search *::before { transition: none !important; } }
/* Return to the top, with a reading progress ring. */
body.portal-page #scrollUp { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 99; display: grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(var(--portal-blue) var(--scroll-progress, 0%), var(--portal-border) 0); color: #fff; box-shadow: 0 4px 16px rgb(8 45 98 / 18%); line-height: 1; cursor: pointer; transition: transform .2s, box-shadow .2s; }
body.portal-page #scrollUp[hidden] { display: none; }
body.portal-page #scrollUp::before { content: ''; position: absolute; inset: 3px; border: 2px solid var(--portal-surface); border-radius: inherit; background: #084fb9; }
body.portal-page #scrollUp > i { position: relative; font-size: 22px; }
body.portal-page #scrollUp:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgb(8 45 98 / 24%); }
body.portal-page #scrollUp:focus-visible { outline: 2px solid var(--portal-blue); outline-offset: 4px; }
#scrollUp .scroll-up-label { position: absolute; top: 50%; right: calc(100% + 10px); width: max-content; max-width: 170px; padding: 8px 11px; border: 1px solid var(--portal-border); border-radius: 8px; color: var(--portal-ink); background: var(--portal-surface); box-shadow: 0 3px 12px rgb(19 42 57 / 8%); font-size: 10px; line-height: 1.6; opacity: 0; visibility: hidden; transform: translateY(-50%); pointer-events: none; transition: opacity .2s; }
#scrollUp:is(:hover, :focus-visible) .scroll-up-label { opacity: 1; visibility: visible; }
body.portal-page:is(.canvas-opened, .open-search-form) #scrollUp { visibility: hidden; }
@media (max-width: 575.98px) { body.portal-page #scrollUp { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { body.portal-page #scrollUp, #scrollUp .scroll-up-label { transition: none; } }

/* Floating help sits above the return-to-top button. */
.portal-help-toggle { position: fixed; right: 24px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; color: #fff; background: #084fb9; box-shadow: 0 5px 18px rgb(8 45 98 / 22%); cursor: pointer; transition: transform .2s, background .2s; }
.portal-help-toggle > i { font-size: 25px; }
.portal-help-toggle > span { position: absolute; right: calc(100% + 10px); padding: 8px 11px; border: 1px solid var(--portal-border); border-radius: 8px; color: var(--portal-ink); background: var(--portal-surface); font-size: 10px; opacity: 0; visibility: hidden; pointer-events: none; }
.portal-help-toggle:is(:hover, :focus-visible) { background: #12458e; transform: translateY(-2px); }
.portal-help-toggle:is(:hover, :focus-visible) > span { opacity: 1; visibility: visible; }
.portal-help-toggle:focus-visible, .portal-help-dialog :is(a,button):focus-visible { outline: 2px solid var(--portal-blue); outline-offset: 4px; }
body:is(.canvas-opened, .open-search-form) .portal-help-toggle { visibility: hidden; }
body.portal-help-open { overflow: hidden; }
.portal-help-dialog { position: fixed; inset: auto 24px calc(140px + env(safe-area-inset-bottom, 0px)) auto; width: 390px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 172px); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; border: 0px solid var(--portal-border); border-radius: 20px; color: var(--portal-ink); background: var(--portal-surface); box-shadow: 0 20px 65px rgb(10 33 65 / 24%); }
.portal-help-dialog:not([open]) { display: none; }
.portal-help-dialog::backdrop { background: rgb(16 39 65 / 42%); }
.portal-help-header { position: relative; display: flex; align-items: center; gap: 14px; padding: 24px 48px 24px 22px; color: #fff; background: linear-gradient(130deg, #124b9a, #153b75); }
.portal-help-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border: 1px solid rgb(188 254 90 / 35%); border-radius: 14px; color: #bcfe5a; background: rgb(188 254 90 / 8%); font-size: 29px; }
.portal-help-header > div > span { display: block; margin-bottom: 5px; color: #bcfe5a; font-size: 9px; font-weight: 500; letter-spacing: .1em; }
.portal-help-header h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.5; }
.portal-help-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; color: #fff; background: rgb(255 255 255 / 12%); font-size: 21px; cursor: pointer; }
.portal-help-close:hover { background: rgb(255 255 255 / 23%); }
.portal-help-body { padding: 22px; }
.portal-help-body > p { margin: 0 0 20px; color: var(--portal-muted); font-size: 12px; line-height: 1.95; }
.portal-help-body nav { display: grid; gap: 12px; }
.portal-help-body nav a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 11px; font-size: 12px; font-weight: 600; line-height: 1.7; }
.portal-help-body nav a > span { flex: 1; }
.portal-help-body nav a > i { flex-shrink: 0; font-size: 20px; }
.portal-help-body nav .portal-help-hero { color: #203c17; background: #bcfe5a; }
.portal-help-body nav .portal-help-hero:hover { background: #a8ec44; }
.portal-help-body nav .portal-help-contact { color: #fff; background: #124b9a; }
.portal-help-body nav .portal-help-contact:hover { background: #0d3d80; }
.portal-help-body .portal-help-faq { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--portal-blue); font-size: 11px; }
@media (max-width: 575.98px) {
    .portal-help-toggle { right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
    .portal-help-dialog { right: 16px; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 152px); }
    .portal-help-header { padding: 20px 45px 20px 18px; gap: 10px; }
    .portal-help-header h2 { font-size: 20px; }
    .portal-help-icon { width: 44px; height: 44px; }
    .portal-help-body { padding: 18px; }
    .portal-help-body nav a { font-size: 11px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .portal-help-toggle { transition: none; } }
