/*
 * MAYCHI V15 — cross-page visual system
 * Based on the approved V14 package. This layer harmonizes page rhythm,
 * typography, color, buttons, editorial sections and card treatment with the
 * homepage's International Brand 2.0 cool-neutral / ink / blue design language.
 * Content, route structure, forms, filters, calculators and existing JS stay intact.
 */
:root {
  --v15-ink: var(--b2-navy);
  --v15-ink-soft: var(--b2-ink);
  --v15-muted: var(--b2-gray);
  --v15-muted-light: var(--b2-gray);
  --v15-paper: var(--b2-surface);
  --v15-paper-deep: var(--b2-surface-deep);
  --v15-white: var(--b2-white);
  --v15-accent: var(--b2-blue);
  --v15-line: rgba(17,29,43,.15);
  --v15-line-soft: rgba(17,29,43,.09);
  --v15-content-width: 1400px;
}

/* A shared editorial type scale for every non-home page. */
main.ia-page:not(.p26-home) {
  color: var(--section-ink, var(--v15-ink));
  background: var(--v15-white);
  font-family: var(--b2-font);
}
main.ia-page:not(.p26-home) :is(h1, h2, h3, h4) {
  color: var(--section-ink, var(--v15-ink));
  text-wrap: balance;
}
main.ia-page:not(.p26-home) :is(h1, h2) {
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.06;
}
main.ia-page:not(.p26-home) :is(h1, h2, h3) em {
  color: var(--section-accent, var(--v15-accent));
  font-style: normal;
}
main.ia-page:not(.p26-home) p {
  text-wrap: pretty;
}
main.ia-page:not(.p26-home) :is(.container, .s11-wrap, .tech83-shell) {
  max-width: var(--v15-content-width);
}

/* Common page-heading eyebrow, also used on standard pageHero routes. */
.v15-page-eyebrow {
  display: block;
  margin: 0 0 22px;
  color: var(--section-accent, var(--v15-accent));
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
main.ia-page:not(.p26-home) .section-title {
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
main.ia-page:not(.p26-home) .section-title h2,
main.ia-page:not(.p26-home) .resource-v14-section-heading h2,
main.ia-page:not(.p26-home) .s11-section-head h2,
main.ia-page:not(.p26-home) .tech83-platform-heading h2,
main.ia-page:not(.p26-home) .about-v13-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.05vw, 61px) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
  line-height: 1.035 !important;
}
main.ia-page:not(.p26-home) .section-title p:not(.kicker),
main.ia-page:not(.p26-home) .resource-v14-section-heading > p,
main.ia-page:not(.p26-home) .s11-section-head > p,
main.ia-page:not(.p26-home) .about-v13-section-head > p {
  color: var(--v15-muted);
  font-size: 15px;
  line-height: 1.75;
}
main.ia-page:not(.p26-home) :is(.kicker, .mini-label, .resource-v14-eyebrow, .s11-eyebrow, .tech83-index, .about-v13-eyebrow) {
  color: var(--section-accent, var(--v15-accent));
  letter-spacing: .14em;
}

/* Standard hero — same left-aligned, spacious editorial composition as Home. */
main.ia-page:not(.p26-home) .page-hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  padding: clamp(74px, 8.5vw, 124px) 0;
  overflow: hidden;
  background: linear-gradient(112deg, var(--v15-paper) 0%, var(--b2-surface-deep) 60%, var(--b2-surface-deep) 100%);
}
main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) .page-hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 96px), var(--v15-content-width));
  max-width: var(--v15-content-width);
  margin-inline: auto;
  padding: 0;
  text-align: left;
}
main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) h1 {
  max-width: 980px;
  margin: 0 0 24px;
  font-size: clamp(46px, 5.4vw, 82px) !important;
  line-height: 1.025 !important;
  letter-spacing: -.04em !important;
  font-weight: 500 !important;
}
main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) p:not(.kicker) {
  max-width: 670px;
  margin: 0;
  color: var(--b2-gray);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
}
main.ia-page:not(.p26-home) .page-hero.page-hero-banner {
  min-height: clamp(390px, 43vw, 620px) !important;
  padding: 0 !important;
  background: var(--b2-ink);
}
main.ia-page:not(.p26-home) .page-hero.page-hero-banner .page-hero-banner-media img {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.005);
}
main.ia-page:not(.p26-home) .page-hero.page-hero-banner::before {
  background: linear-gradient(90deg, rgba(17,29,43,.76) 0%, rgba(17,29,43,.58) 40%, rgba(17,29,43,.20) 76%, rgba(17,29,43,.12) 100%);
}
main.ia-page:not(.p26-home) .page-hero.page-hero-banner .page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(calc(100% - 96px), var(--v15-content-width)) !important;
  max-width: var(--v15-content-width) !important;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 110px) 0 !important;
  text-align: left !important;
}
main.ia-page:not(.p26-home) .page-hero.page-hero-banner h1 {
  max-width: 960px !important;
  margin: 0 0 23px !important;
  color: var(--b2-white);
  -webkit-text-fill-color: var(--b2-white);
  font-size: clamp(46px, 5.35vw, 82px) !important;
  font-weight: 500 !important;
  line-height: 1.025 !important;
  letter-spacing: -.04em !important;
  text-align: left !important;
  text-shadow: 0 14px 40px rgba(17,29,43,.24);
}
main.ia-page:not(.p26-home) .page-hero.page-hero-banner p:not(.kicker) {
  max-width: 680px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.88);
  -webkit-text-fill-color: rgba(255,255,255,.88);
  font-size: clamp(16px, 1.3vw, 19px) !important;
  line-height: 1.7 !important;
  text-align: left !important;
}
main.ia-page:not(.p26-home) .resource-banner-hero--center .page-hero-content,
main.ia-page:not(.p26-home) .resource-banner-hero--left .page-hero-content {
  align-items: flex-start !important;
  text-align: left !important;
}
main.ia-page:not(.p26-home) .resource-banner-hero--center .page-hero-content h1,
main.ia-page:not(.p26-home) .resource-banner-hero--center .page-hero-content p {
  margin-left: 0 !important;
  margin-right: auto !important;
}
main.ia-page:not(.p26-home) .resource-banner-hero .resource-banner-kicker {
  margin-bottom: 22px;
  color: var(--b2-blue-light);
  -webkit-text-fill-color: var(--b2-blue-light);
  font-size: 11px;
  letter-spacing: .16em;
}

/* The Technology hero echoes Home's cool neutral product stage. */
main.ia-page.tech83 .tech83-hero {
  background: linear-gradient(110deg, var(--b2-surface) 0%, var(--b2-surface-deep) 47%, var(--b2-line) 52%, var(--b2-line) 58%, var(--b2-ink) 59%, var(--b2-navy) 100%);
}
main.ia-page.tech83 .tech83-hero-grid {
  width: min(calc(100% - 96px), var(--v15-content-width));
}
main.ia-page.tech83 .tech83-hero h1 {
  font-size: clamp(48px, 5.1vw, 79px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.04em !important;
  font-weight: 500 !important;
}
main.ia-page.tech83 .tech83-hero-copy > p { color: var(--b2-gray); }
main.ia-page.tech83 .tech83-hero-links a {
  border-bottom-color: rgba(17,29,43,.32);
  font-size: 11px;
}
main.ia-page.tech83 .tech83-hero-links a:hover { color: var(--section-accent, var(--v15-accent)); border-color: var(--section-accent, var(--v15-accent)); }
main.ia-page.tech83 .tech83-hero-dashboard { border-radius: 3px; }
main.ia-page.tech83 .tech83-hero-machine { filter: drop-shadow(15px 25px 18px rgba(17,29,43,.27)); }

/* Solutions overview and location pages: align with the same cool editorial system. */
main.ia-page.s11-page .s11-v113-hero,
main.ia-page.s11-page .s11-detail-hero {
  background: linear-gradient(110deg, var(--b2-surface) 0%, var(--b2-surface-deep) 51%, var(--b2-line) 100%);
}
main.ia-page.s11-page .s11-v113-hero-wrap,
main.ia-page.s11-page .s11-detail-hero-layout {
  width: min(calc(100% - 96px), var(--v15-content-width));
}
main.ia-page.s11-page .s11-v113-hero h1,
main.ia-page.s11-page .s11-detail-hero h1 {
  font-size: clamp(47px, 5.15vw, 80px) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
  line-height: 1.04 !important;
}
main.ia-page.s11-page .s11-v113-hero-visual {
  border-radius: 2px;
  box-shadow: 0 24px 56px rgba(17,29,43,.15);
}
main.ia-page.s11-page .s11-v113-hero-proof { border-top-color: var(--v15-line); }
main.ia-page.s11-page .s11-section {
  padding-block: clamp(72px, 7.5vw, 116px) !important;
}
main.ia-page.s11-page .s11-section-head { margin-bottom: clamp(30px, 4.2vw, 54px); }
main.ia-page.s11-page .s11-section-head h2 {
  font-size: clamp(35px, 4.15vw, 62px) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
  line-height: 1.04 !important;
}
main.ia-page.s11-page .s11-scenetab { border-radius: 0; }
main.ia-page.s11-page .s11-scenetab.is-active { border-bottom-color: var(--v15-accent) !important; }
main.ia-page.s11-page :is(.s11-match-result, .s11-match-inputs, .s11-support-grid article, .s12-placement-visual, .s12-sku) {
  border-radius: 2px;
  box-shadow: none;
}
main.ia-page.s11-page .s11-detail-hero-photo { border-radius: 2px; }

/* About Us retains its custom story, with homepage palette and quieter surfaces. */
main.ia-page.about-v13-page .about-v13-hero {
  background: linear-gradient(112deg, var(--b2-surface) 0%, var(--b2-surface-deep) 72%, var(--b2-surface-deep) 100%);
}
main.ia-page.about-v13-page .about-v13-title-block h1 {
  font-size: clamp(47px, 5.25vw, 80px) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
  line-height: 1.035 !important;
}
main.ia-page.about-v13-page :is(.about-v13-global, .about-v13-history, .about-v13-capabilities, .about-v13-proof) {
  padding-block: clamp(72px, 7.4vw, 116px) !important;
}
main.ia-page.about-v13-page .about-v13-principles { padding-block: clamp(56px, 6vw, 88px) !important; }
main.ia-page.about-v13-page :is(.about-v13-map-panel, .about-v13-proof-item) {
  border-radius: 2px;
  box-shadow: none;
}
main.ia-page.about-v13-page .about-v13-cta { background: linear-gradient(110deg, var(--b2-ink), var(--b2-navy)); }
main.ia-page.about-v13-page .about-v13-cta h2 { color: var(--b2-white); }
main.ia-page.about-v13-page .about-v13-cta h2 em { color: var(--b2-blue); }

/* Shared section rhythm and alternate warm surfaces. */
main.ia-page:not(.p26-home) :is(.soft-section, .product-comparison-section, .resource-v14-products, .resource-v14-service, .resource-v14-faq-section, .insights-v14-topic-section) {
  background-color: var(--v15-paper);
}
main.ia-page:not(.p26-home) :is(.section, .resource-v14-section, .insights-v14-list-section, .insights-v14-latest-section) {
  padding-block: clamp(68px, 7.2vw, 112px);
}
main.ia-page:not(.p26-home) :is(.resource-v14-section + .resource-v14-section, .about-v13-capability + .about-v13-capability) {
  border-top-color: var(--v15-line-soft) !important;
}
main.ia-page:not(.p26-home) .resource-v14-section-heading {
  padding-top: 21px;
  border-top-color: var(--v15-line) !important;
}

/* Card restraint: preserve structure and imagery, remove the mismatched UI-kit feel. */
main.ia-page:not(.p26-home) :is(
  .product-card, .compact-product-card, .feature-card, .technology-engine-item,
  .engine-card, .resource-card, .resource-v14-about-card, .resource-v14-product-item,
  .resource-v14-promotion-card, .resource-v14-service-item, .insights-v14-featured,
  .insights-v14-article-card, .insights-v14-latest-item, .about-v13-proof-item,
  .about-v13-map-panel, .comparison-common, .comparison-wrap, .faq-category,
  .resource-insight-detail-card
) {
  border-radius: 2px;
  box-shadow: none;
}
main.ia-page:not(.p26-home) :is(.resource-v14-about-card, .resource-v14-product-item, .resource-v14-promotion-card) {
  border-color: var(--v15-line);
  background: rgba(255,255,255,.72);
}
main.ia-page:not(.p26-home) :is(.resource-v14-about-card:hover, .resource-v14-product-item:hover, .resource-v14-promotion-card:hover) {
  border-color: rgba(40,85,217,.62);
  transform: translateY(-2px);
}
main.ia-page:not(.p26-home) .resource-v14-about-visual { background: var(--v15-paper); }
main.ia-page:not(.p26-home) .resource-v14-icon { color: var(--section-accent, var(--v15-accent)); }
main.ia-page:not(.p26-home) :is(.product-card, .compact-product-card) { border-color: var(--v15-line); }
main.ia-page:not(.p26-home) .product-card-top { border-bottom-color: var(--v15-line-soft) !important; }
main.ia-page:not(.p26-home) :is(.insights-v14-featured, .resource-insight-detail-card) { background: var(--b2-white); }

/* CTA panels share the graphite finish and brand blue accent of the homepage. */
main.ia-page:not(.p26-home) :is(.cta-panel, .resource-v14-request-cta, .tech83-cta, .s11-detail-final, .about-v13-cta) {
  background: linear-gradient(112deg, var(--b2-ink) 0%, var(--b2-navy) 100%);
  color: var(--b2-white);
}
main.ia-page:not(.p26-home) :is(.cta-panel, .resource-v14-request-cta, .tech83-cta, .s11-detail-final, .about-v13-cta) :is(h2, h3, strong) { color: var(--b2-white); }
main.ia-page:not(.p26-home) :is(.cta-panel, .resource-v14-request-cta, .tech83-cta, .s11-detail-final, .about-v13-cta) p { color: rgba(255,255,255,.74); }
main.ia-page:not(.p26-home) :is(.cta-panel, .resource-v14-request-cta, .tech83-cta, .s11-detail-final, .about-v13-cta) em { color: var(--b2-blue); }

/* One consistent action language: brand blue primary, quiet outline secondary. */
main.ia-page:not(.p26-home) :is(.btn-primary, .btn-dark, .p26-button-dark, .resource-v14-button-primary, .about-v13-cta-primary) {
  border-radius: 2px;
  color: var(--b2-white);
  background: var(--b2-navy);
  box-shadow: none;
  font-weight: 650 !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
main.ia-page:not(.p26-home) :is(.btn-primary, .btn-dark, .p26-button-dark, .resource-v14-button-primary, .about-v13-cta-primary):hover {
  background: var(--v15-accent);
  color: var(--b2-white);
  transform: translateY(-1px);
}
main.ia-page:not(.p26-home) :is(.btn-secondary, .btn-soft, .p26-cta-outline, .resource-v14-button-secondary, .about-v13-cta-secondary) {
  border-radius: 2px;
  box-shadow: none;
  font-weight: 650 !important;
}
main.ia-page:not(.p26-home) :is(.text-link, .p26-text-link, .s11-text-action, .resource-v14-text-link, .insights-v14-read-link) {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Resource sub-navigation is aligned to the same understated underline treatment. */
main.ia-page:not(.p26-home) .resource-v14-subnav {
  border-bottom-color: var(--v15-line) !important;
  background: rgba(255,255,255,.96);
}
main.ia-page:not(.p26-home) .resource-v14-subnav a {
  min-height: 58px;
  font-weight: 650;
  letter-spacing: .01em;
}
main.ia-page:not(.p26-home) .resource-v14-subnav a.is-active { border-bottom-color: var(--v15-accent) !important; }

/* Keep responsive rhythm intentional rather than shrinking desktop layouts. */
@media (max-width: 1024px) {
  main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) .page-hero-content,
  main.ia-page:not(.p26-home) .page-hero.page-hero-banner .page-hero-content,
  main.ia-page.tech83 .tech83-hero-grid,
  main.ia-page.s11-page .s11-v113-hero-wrap,
  main.ia-page.s11-page .s11-detail-hero-layout {
    width: calc(100% - 56px) !important;
  }
  main.ia-page.tech83 .tech83-hero {
    background: linear-gradient(120deg, var(--b2-surface) 0%, var(--b2-surface-deep) 54%, var(--b2-ink) 55%, var(--b2-navy) 100%);
  }
}
@media (max-width: 760px) {
  main.ia-page:not(.p26-home) .page-hero {
    min-height: 0;
    padding: 60px 0 64px;
  }
  main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) .page-hero-content,
  main.ia-page:not(.p26-home) .page-hero.page-hero-banner .page-hero-content,
  main.ia-page.tech83 .tech83-hero-grid,
  main.ia-page.s11-page .s11-v113-hero-wrap,
  main.ia-page.s11-page .s11-detail-hero-layout {
    width: calc(100% - 38px) !important;
  }
  main.ia-page:not(.p26-home) .page-hero.page-hero-banner { min-height: 350px !important; }
  main.ia-page:not(.p26-home) .page-hero.page-hero-banner .page-hero-content { padding-block: 54px !important; }
  main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) h1,
  main.ia-page:not(.p26-home) .page-hero.page-hero-banner h1 {
    font-size: clamp(38px, 10vw, 55px) !important;
    letter-spacing: -.04em !important;
    line-height: 1.06 !important;
  }
  main.ia-page:not(.p26-home) .page-hero.page-hero-banner p:not(.kicker),
  main.ia-page:not(.p26-home) .page-hero:not(.page-hero-banner) p:not(.kicker) {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }
  main.ia-page:not(.p26-home) :is(.section, .resource-v14-section, .insights-v14-list-section, .insights-v14-latest-section) {
    padding-block: 58px !important;
  }
  main.ia-page:not(.p26-home) .section-title { align-items: flex-start; flex-direction: column; gap: 14px; }
  main.ia-page:not(.p26-home) :is(.section-title h2, .resource-v14-section-heading h2, .s11-section-head h2, .tech83-platform-heading h2, .about-v13-section-head h2) {
    font-size: clamp(32px, 8.4vw, 46px) !important;
    line-height: 1.06 !important;
  }
  main.ia-page:not(.p26-home) .resource-v14-section-heading { gap: 13px; }
  main.ia-page:not(.p26-home) :is(.resource-v14-about-card, .resource-v14-product-item, .resource-v14-promotion-card) { border-radius: 2px; }
  main.ia-page.tech83 .tech83-hero { background: linear-gradient(180deg, var(--b2-surface) 0%, var(--b2-surface-deep) 48%, var(--b2-ink) 49%, var(--b2-navy) 100%); }
  main.ia-page.tech83 .tech83-hero h1 { font-size: clamp(32px, 9.2vw, 56px) !important; }
  main.ia-page.tech83 .tech83-hero-copy > p { color: var(--b2-gray); }
  main.ia-page.s11-page .s11-v113-hero h1,
  main.ia-page.s11-page .s11-detail-hero h1,
  main.ia-page.about-v13-page .about-v13-title-block h1 {
    font-size: clamp(39px, 10vw, 56px) !important;
    letter-spacing: -.04em !important;
  }
  main.ia-page.about-v13-page :is(.about-v13-global, .about-v13-history, .about-v13-capabilities, .about-v13-proof, .about-v13-principles) {
    padding-block: 56px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  main.ia-page:not(.p26-home) *,
  main.ia-page:not(.p26-home) *::before,
  main.ia-page:not(.p26-home) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
