/* Dedicated page layouts. Loaded after the shared site stylesheet. */
.main-nav > .mobile-contact { display: none; }
.main-nav > a[aria-current="page"], .nav-contact[aria-current="page"] { color: var(--blue); }
.main-nav > a[aria-current="page"]::after { transform: scaleX(1); }

.page-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(105deg, #f4f7fb 0%, #f1f5fa 60%, #e4edf8 100%);
  border-bottom: 1px solid #e3eaf3;
}
.page-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  top: -180px;
  right: 7%;
  border: 1px solid #b5cae44d;
  transform: rotate(35deg);
  box-shadow: 0 0 0 45px #afc7e30b, 0 0 0 90px #afc7e30b, 0 0 0 135px #afc7e30b;
}
.page-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 36%;
  height: 100%;
  opacity: .25;
  background-image: linear-gradient(#9bb8dc30 1px, transparent 1px), linear-gradient(90deg, #9bb8dc30 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, black);
}
.page-banner > .wrap { position: relative; padding-top: 25px; padding-bottom: 55px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: #8591a1; margin-bottom: 36px; }
.breadcrumbs a { color: #6a788c; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current="page"] { color: #3d506c; }
.page-banner h1 { font-size: 42px; line-height: 1.4; letter-spacing: -.7px; font-weight: 600; max-width: 950px; overflow-wrap: anywhere; }
.page-banner .eyebrow { margin-bottom: 12px; }
.page-description { color: #6e7b8e; font-size: 14px; line-height: 1.95; max-width: 680px; margin-top: 17px; }

.home-portals { padding: 52px 0 62px; background: #f5f7fa; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portal-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 29px 30px 32px; background: #fff; border: 1px solid #e5ebf3; transition: border-color .2s, transform .2s, box-shadow .2s; }
.portal-card:hover { border-color: #b6cdef; transform: translateY(-3px); box-shadow: 0 12px 28px #17345b0a; }
.portal-card > small { color: #8c9aac; font-size: 9px; letter-spacing: 1.8px; }
.portal-card h2 { font-size: 25px; font-weight: 500; margin-top: 15px; letter-spacing: 0; }
.portal-card p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 12px 0 29px; padding-right: 24px; }
.portal-card .arrow { position: absolute; right: 29px; bottom: 27px; color: var(--blue); font-size: 24px; line-height: 1; }

.page-cta { background: linear-gradient(110deg, #1554d8, #173f9e); color: #fff; padding: 38px 0; }
.page-cta > .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.page-cta h2 { font-size: 27px; font-weight: 500; letter-spacing: 0; }
.page-cta p { color: #bbcef1; font-size: 12px; margin-top: 10px; }
.page-cta .button { flex-shrink: 0; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 62px; }
.detail-visual { min-width: 0; min-height: 360px; background: #f1f5f9; border: 1px solid #e7edf5; display: flex; align-items: center; justify-content: center; padding: 25px; }
.detail-visual img, img.detail-visual { width: 100%; max-height: 400px; object-fit: contain; }
.detail-summary { min-width: 0; }
.detail-summary h2 { font-size: 30px; margin-bottom: 20px; }
.detail-summary > p:not(.eyebrow) { color: #6d798b; font-size: 14px; line-height: 2; }
.detail-summary .button, .detail-summary .text-link { margin-top: 27px; }
.detail-summary .product-tags { font-size: 12px; margin-top: 24px; }
.detail-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.detail-feature-grid > * { min-width: 0; padding: 28px; border-top: 3px solid #1554d8; background: #f5f7fa; }
.detail-feature-grid h3 { font-size: 18px; line-height: 1.6; font-weight: 500; margin-bottom: 12px; }
.detail-feature-grid p { font-size: 13px; color: #718096; line-height: 1.95; }

.article-layout { width: calc(100% - 112px); max-width: 850px; margin: 0 auto; }
.reading-content { color: #56667b; }
.reading-content h2 { font-size: 24px; line-height: 1.6; font-weight: 500; color: var(--ink); letter-spacing: 0; margin: 38px 0 16px; }
.reading-content h2:first-child { margin-top: 0; }
.reading-content p { font-size: 15px; line-height: 2.15; margin: 0 0 22px; overflow-wrap: anywhere; }
.reading-content ul { padding-left: 22px; font-size: 14px; line-height: 2; }
.article-links { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 15px 30px; border-top: 1px solid var(--line); margin-top: 45px; padding-top: 24px; }
.article-links a { font-size: 13px; color: var(--blue); max-width: 100%; overflow-wrap: anywhere; }
.article-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.contact-page { background: #f7f9fc; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.contact-info { min-width: 0; }
.contact-info h2 { font-size: 30px; line-height: 1.6; }
.contact-info > p { color: var(--muted); font-size: 14px; line-height: 2; margin-top: 20px; }
.contact-info dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px 12px; margin-top: 35px; padding-top: 28px; border-top: 1px solid #dfe6ef; font-size: 13px; line-height: 1.8; }
.contact-info dt { color: #8a96a7; }
.contact-info dd { color: #41516a; margin: 0; overflow-wrap: anywhere; }
.contact-form-panel { min-width: 0; padding: 34px 38px 31px; background: #fff; border: 1px solid #e3eaf3; box-shadow: 0 10px 38px #193a6210; }
.contact-form-panel h2 { font-size: 26px; line-height: 1.5; }
.contact-form-panel .dialog-intro, .contact-intro-note { color: #7b8798; font-size: 12px; line-height: 1.9; margin-top: 13px; }
.contact-intro-note { padding: 16px 18px; border-left: 2px solid #a8c4ef; background: #edf3fb; }
.contact-form-panel #brief-form { margin-top: 25px; }
.contact-form-panel #brief-form .button { justify-self: start; min-width: 200px; }

.industry-assessment { margin-top: 28px; background: #f5f8fc; border-left: 3px solid #1554d8; padding: 26px 30px; }
.industry-assessment h3 { font-size: 18px; line-height: 1.6; font-weight: 500; margin-bottom: 12px; }
.industry-assessment p { color: #6b7a8e; font-size: 13px; line-height: 1.95; max-width: 1000px; }
.page-subnav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.page-subnav a { position: relative; font-size: 14px; color: #748197; padding: 13px 0 16px; }
.page-subnav a:hover, .page-subnav a.active, .page-subnav a[aria-current="page"] { color: var(--blue); }
.page-subnav a.active::after, .page-subnav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); }

@media (max-width: 1200px) {
  .detail-layout { gap: 42px; }
  .contact-grid { gap: 48px; }
  .article-layout { width: calc(100% - 72px); }
}
@media (max-width: 900px) {
  .page-banner > .wrap { padding-bottom: 44px; }
  .portal-grid { gap: 15px; }
  .portal-card { padding: 24px 22px 29px; }
  .portal-card h2 { font-size: 22px; }
  .portal-card .arrow { right: 22px; }
  .detail-layout { gap: 30px; }
  .detail-visual { min-height: 300px; padding: 15px; }
  .detail-feature-grid { gap: 16px; }
  .detail-feature-grid > * { padding: 23px 20px; }
  .contact-grid { gap: 30px; }
  .contact-info h2 { font-size: 26px; }
  .contact-form-panel { padding: 28px; }
}
@media (max-width: 700px) {
  .main-nav > .mobile-contact { display: flex; }
  .page-banner > .wrap { padding-top: 20px; padding-bottom: 35px; }
  .page-banner::before { width: 230px; height: 230px; top: -140px; right: -40px; }
  .breadcrumbs { font-size: 10px; gap: 8px; margin-bottom: 28px; }
  .page-banner h1 { font-size: 32px; line-height: 1.45; letter-spacing: -.5px; }
  .page-description { font-size: 12px; margin-top: 14px; }
  .home-portals { padding: 30px 0 40px; }
  .portal-grid { grid-template-columns: 1fr; gap: 14px; }
  .portal-card { padding: 22px 24px; }
  .portal-card h2 { font-size: 23px; margin-top: 12px; }
  .portal-card p { margin: 10px 0 9px; padding-right: 28px; }
  .portal-card .arrow { right: 24px; bottom: 28px; }
  .page-cta { padding: 31px 0; }
  .page-cta > .wrap { flex-direction: column; align-items: flex-start; gap: 22px; }
  .page-cta h2 { font-size: 24px; }
  .page-cta p { font-size: 11px; }
  .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .detail-visual { min-height: 250px; padding: 16px; }
  .detail-visual img, img.detail-visual { max-height: 285px; }
  .detail-summary h2 { font-size: 25px; margin-bottom: 15px; }
  .detail-summary > p:not(.eyebrow) { font-size: 13px; }
  .detail-summary .button, .detail-summary .text-link { margin-top: 22px; }
  .detail-feature-grid { grid-template-columns: 1fr; margin-top: 32px; gap: 15px; }
  .detail-feature-grid > * { padding: 22px 24px; }
  .detail-feature-grid h3 { font-size: 17px; margin-bottom: 10px; }
  .detail-feature-grid p { font-size: 12px; }
  .article-layout { width: calc(100% - 40px); }
  .reading-content h2 { font-size: 21px; margin-top: 30px; }
  .reading-content p { font-size: 14px; line-height: 2.1; }
  .article-links { gap: 17px; margin-top: 32px; padding-top: 21px; flex-direction: column; }
  .article-links a { font-size: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 29px; }
  .contact-info h2 { font-size: 26px; }
  .contact-info > p { font-size: 13px; margin-top: 16px; }
  .contact-info dl { grid-template-columns: 76px minmax(0, 1fr); font-size: 12px; gap: 13px 10px; margin-top: 25px; padding-top: 22px; }
  .contact-form-panel { padding: 26px 22px 22px; }
  .contact-form-panel h2 { font-size: 24px; }
  .contact-intro-note { font-size: 11px; padding: 13px 15px; }
  .contact-form-panel #brief-form .button { width: 100%; }
  .industry-assessment { padding: 22px; margin-top: 21px; }
  .industry-assessment h3 { font-size: 17px; }
  .industry-assessment p { font-size: 12px; }
  .page-subnav { gap: 5px 20px; margin-bottom: 25px; }
  .page-subnav a { font-size: 12px; padding: 10px 0 13px; }
}
