/* ERDI Round 11 inner-page polish.
 * Loaded after every existing inner bundle. The approved homepage remains
 * untouched through the body:not(.home) boundary.
 */
body:not(.home) {
  --r11-paper: #f3f5f3;
  --r11-paper-2: #e8eeeb;
  --r11-ink: #071016;
  --r11-text: #13232b;
  --r11-muted: #63737a;
  --r11-rule: #cdd8d5;
  --r11-accent: #8de5e2;
  --r11-accent-deep: #08777b;
  color: var(--r11-text);
  overflow-x: clip;
}

body:not(.home) :is(main, .wp-site-blocks > main, .entry-content) {
  max-width: none;
}

body:not(.home) main :is(h1, h2, h3, h4) {
  text-wrap: balance;
}

body:not(.home) main :is(p, li, dd, dt, td, th) {
  font-size: max(15px, 1em);
  line-height: 1.6;
}

body:not(.home) main :is(.erdi-model__eyebrow, .erdi-kicker, .sp-eyebrow, .ed-eyebrow, .oa-kicker, .e2-cta-kicker, .erdi-page__note) {
  font-size: 12px !important;
  line-height: 1.45;
  letter-spacing: .08em;
}

body:not(.home) main :is(a, button, summary, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}
body:not(.home) main a {
  line-height: 1.6;
}
body:not(.home) main a:not([class]) {
  padding-block: 4px;
}
body:not(.home) main :is(.oc-note, .erdi-rich-content, .erdi-page__note, .oa-close, .oa-buy-contact, .oa-accordion-body, .spotlight-content, .ox-not-found, .erdi-context-link) a {
  display: inline-block;
  min-height: 24px;
  line-height: 1.6 !important;
}
body:not(.home) .ox-application a {
  line-height: 1.6 !important;
}

/* The mega-menu group label is shared with the approved homepage; its 11px
 * legacy value is below the Round 11 readability floor. */
body .erdi-nav-group-label {
  font-size: 12px !important;
}

body:not(.home) main :is(input, select, textarea) {
  font-size: 16px !important;
  line-height: 1.45;
}
body:not(.home) main :is(input[type="checkbox"], input[type="radio"]) {
  min-width: 44px;
  min-height: 44px;
}

body:not(.home) main :is(a, button, summary):focus-visible {
  outline: 2px solid var(--r11-accent-deep);
  outline-offset: 3px;
}

/* The floating advisor gets a reserved footer lane so it never sits on the
 * final CTA or legal links while the reader is at the bottom of a page. */
body:not(.home) footer.ox-footer {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
body:not(.home) .erdi-support .erdi-support__launcher {
  min-width: 44px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.25;
}

/* Breadcrumbs are a quiet orientation rail, with a real hit area on phones. */
body:not(.home) :is(.erdi-breadcrumb, .sp-breadcrumbs) {
  max-width: none;
  min-height: 68px;
  padding: 20px var(--rd26-gutter, 24px) 12px;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.4;
}
body:not(.home) :is(.erdi-breadcrumb, .sp-breadcrumbs) a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

/* Catalog index ---------------------------------------------------------- */
body:not(.home) main.erdi-model-index .oc-intro {
  padding: 32px var(--rd26-gutter, 24px) 40px;
  min-height: 0;
}
body:not(.home) main.erdi-model-index .oc-intro h1 {
  max-width: 13ch;
  padding: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
}
body:not(.home) main.erdi-model-index .oc-intro > p {
  max-width: 64ch;
  padding: 20px 0 0;
  font-size: 16px;
}
body:not(.home) main.erdi-model-index :is(.erdi-platform-nav, .erdi-family-links) {
  scrollbar-width: thin;
  scrollbar-color: #8ea1a5 transparent;
}
body:not(.home) main.erdi-model-index .erdi-platform-nav a,
body:not(.home) main.erdi-model-index .erdi-family-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
body:not(.home) main.erdi-model-index .oc-toolbar {
  gap: 16px;
}
body:not(.home) main.erdi-model-index .oc-toolbar > label {
  min-width: 0;
}
body:not(.home) main.erdi-model-index .oc-toolbar :is(select, input) {
  min-height: 52px;
  padding-inline: 12px;
}
body:not(.home) main.erdi-model-index .cx-card {
  min-width: 0;
}
body:not(.home) main.erdi-model-index .cx-card__visual {
  min-height: 0;
  aspect-ratio: 1 / 1;
}
body:not(.home) main.erdi-model-index .cx-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body:not(.home) main.erdi-model-index .cx-card__actions :is(a, button) {
  min-height: 44px;
}
body:not(.home) main.erdi-model-index .oc-note a,
body:not(.home) main.erdi-model-index .op-text-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
body:not(.home) main.erdi-model-index .cx-navigation span,
body:not(.home) main.erdi-model-index .erdi-nav-group-label {
  font-size: 12px !important;
}
body:not(.home) main.erdi-model-index .wp-block-query-pagination .page-numbers {
  min-width: 44px;
  justify-content: center;
}
body:not(.home) .wp-block-query-pagination .page-numbers {
  min-width: 44px;
  justify-content: center;
}

/* Model detail pages ----------------------------------------------------- */
body:not(.home) main.erdi-source-product {
  padding-top: 0;
}
body:not(.home) main.erdi-source-product .sp-hero {
  min-width: 0;
  padding: 32px var(--rd26-gutter, 24px) 72px;
  gap: clamp(28px, 5vw, 72px);
}
body:not(.home) main.erdi-source-product .sp-hero > * {
  min-width: 0;
}
body:not(.home) main.erdi-source-product .sp-hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}
body:not(.home) main.erdi-source-product .sp-eyebrow {
  margin-bottom: 14px;
}
body:not(.home) main.erdi-source-product .sp-model,
body:not(.home) main.erdi-source-product .sp-overview {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
}
body:not(.home) main.erdi-source-product .sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
body:not(.home) main.erdi-source-product .sp-actions > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}
body:not(.home) main.erdi-source-product .sp-downloads a,
body:not(.home) main.erdi-source-product .erdi-product-gallery__open-3d {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:not(.home) main.erdi-source-product .sp-section-nav {
  position: sticky;
  top: 68px;
  z-index: 30;
  min-height: 62px;
  padding: 8px var(--rd26-gutter, 24px);
  gap: 8px 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #8ea1a5 transparent;
  background: var(--r11-paper);
  border-block: 1px solid var(--r11-rule);
}
body:not(.home) main.erdi-source-product .sp-section-nav a {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}
body:not(.home) main.erdi-source-product .sp-documentation {
  padding-inline: var(--rd26-gutter, 24px);
}
body:not(.home) main.erdi-source-product .sp-documentation :is(.erdi-table-wrap, .erdi-specification-table-wrap, .erdi-table-scroll) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body:not(.home) main.erdi-source-product .sp-documentation table {
  min-width: 680px;
}
body:not(.home) main.erdi-source-product .sp-documentation :is(th, td) {
  font-size: 15px;
  line-height: 1.55;
  vertical-align: top;
}
body:not(.home) main.erdi-source-product .erdi-source-evidence a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
body:not(.home) main.erdi-source-product .sp-inquiry {
  padding-inline: var(--rd26-gutter, 24px);
}
body:not(.home) main.erdi-source-product .sp-inquiry :is(input, select, textarea) {
  min-height: 52px;
}
body:not(.home) main.erdi-source-product .sp-inquiry textarea {
  min-height: 132px;
}
body:not(.home) main.erdi-source-product .sp-inquiry :is(button, .erdi-btn) {
  min-height: 48px;
}
body:not(.home) main.erdi-source-product .sp-guides a,
body:not(.home) main.erdi-source-product .sp-related a {
  min-height: 44px;
}
body:not(.home) main.erdi-source-product .erdi-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}
body:not(.home) main.erdi-source-product .erdi-product-gallery__thumbs > a {
  flex: 0 0 72px;
  min-width: 72px;
  min-height: 72px;
}
body:not(.home) main.erdi-source-product .erdi-product-gallery__caption {
  font-size: 12px !important;
  line-height: 1.55;
}
body:not(.home) main.erdi-source-product .erdi-product-gallery__thumbs :is(span, a),
body:not(.home) main.erdi-source-product .erdi-file-badge,
body:not(.home) main.erdi-source-product .erdi-file-badge * {
  font-size: 12px !important;
}

/* Resources / downloads ------------------------------------------------- */
body:not(.home) .ox-downloads {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}
body:not(.home) .ox-downloads > header {
  padding-block: 48px 36px;
}
body:not(.home) .ox-downloads > header h1 {
  max-width: 13ch;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
}
body:not(.home) .ox-downloads .erdi-source-document-families {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body:not(.home) .ox-downloads .erdi-source-document-families a,
body:not(.home) .ox-downloads .ox-download-table a,
body:not(.home) .ox-downloads > p a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 8px;
  line-height: 1.35;
}
body:not(.home) .ox-downloads .ox-download-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body:not(.home) .ox-downloads .ox-download-table {
  min-width: 760px;
}
body:not(.home) .ox-downloads .ox-download-table :is(th, td) {
  font-size: 15px;
  line-height: 1.5;
  vertical-align: top;
}

/* Knowledge and spotlight ----------------------------------------------- */
body:not(.home) .ox-knowledge {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}
body:not(.home) .ox-knowledge .erdi-knowledge-topics,
body:not(.home) .erdi-knowledge-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body:not(.home) :is(.erdi-knowledge-topics, .ox-knowledge) a {
  min-height: 44px;
}
body:not(.home) .ox-knowledge .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
body:not(.home) .ox-knowledge .wp-block-post-template > li {
  min-width: 0;
}
body:not(.home) .ox-knowledge .wp-block-post-template > li:first-child {
  grid-column: 1 / -1;
}
body:not(.home) .ox-knowledge .wp-block-post-featured-image,
body:not(.home) .ox-knowledge .e2-thumb {
  overflow: hidden;
}
body:not(.home) .ox-knowledge .wp-block-post-featured-image img,
body:not(.home) .ox-knowledge .e2-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
body:not(.home) .spotlight-shell {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
  padding-block: 24px 88px;
}
body:not(.home) .spotlight-link,
body:not(.home) .spotlight-subtle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:not(.home) .spotlight-feature__image img,
body:not(.home) .spotlight-hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Application pages ------------------------------------------------------ */
body:not(.home) main:has(.ox-application) {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body:not(.home) .ox-application :is(.oa-button, .oa-text-link, .oa-jump a, .oa-compact-details summary, .oa-accordion > summary, .oa-resource-grid > a) {
  min-height: 44px;
}
body:not(.home) .ox-application .oa-hero {
  min-height: 640px;
}
body:not(.home) .ox-application .oa-hero-band h2 {
  max-width: 16ch;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
}
body:not(.home) .ox-application .oa-directory-product img,
body:not(.home) .ox-application .oa-product-stage img,
body:not(.home) .ox-application .oa-dark-product img,
body:not(.home) .ox-application .oa-related img {
  image-rendering: auto;
  object-fit: contain !important;
}

/* Editorial page shells, forms and utility routes ----------------------- */
body:not(.home) main.wp-block-group:has(.ox-page) > .wp-block-post-title {
  max-width: 100%;
  text-wrap: balance;
}
body:not(.home) main.wp-block-group .ox-page .ed-eyebrow,
body:not(.home) main.wp-block-group .ox-page .ed-about-section-head > .ed-eyebrow,
body:not(.home) main.wp-block-group .ox-page .ed-contact-intro > .ed-eyebrow {
  font-size: 12px !important;
}
body:not(.home) :is(.ox-contact, .ox-about, .ox-page) :is(a, button) {
  min-height: 44px;
}
body:not(.home) .ox-contact :is(input, select, textarea),
body:not(.home) .ox-about :is(input, select, textarea) {
  font-size: 16px !important;
  min-height: 52px;
}
body:not(.home) .ox-contact textarea,
body:not(.home) .ox-about textarea {
  min-height: 140px;
}
body:not(.home) .ox-utility {
  width: min(100% - 48px, 960px);
  margin-inline: auto;
  padding-block: 96px 112px;
}
body:not(.home) .ox-utility h1 {
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
}
body:not(.home) .ox-utility :is(input, select, textarea) {
  min-height: 52px;
  font-size: 16px !important;
}
body:not(.home) .ox-utility :is(a, button) {
  min-height: 44px;
}

/* Footer remains legible and gives the floating advisor a clear lane. */
body:not(.home) footer.ox-footer :is(a, button, summary) {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:not(.home) footer.ox-footer .ox-footer-legal :is(a, button) {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
}
body:not(.home) footer.ox-footer :is(p, li, a, button, summary, span) {
  font-size: max(12px, 1em);
}

@media (max-width: 900px) {
  body:not(.home) {
    --rd26-gutter: 24px;
  }
  body:not(.home) .ox-knowledge .wp-block-post-template {
    grid-template-columns: 1fr;
  }
  body:not(.home) .ox-knowledge .wp-block-post-template > li:first-child {
    grid-column: auto;
  }
  body:not(.home) .spotlight-intro,
  body:not(.home) .spotlight-feature,
  body:not(.home) .spotlight-next,
  body:not(.home) .spotlight-story,
  body:not(.home) .spotlight-use {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body:not(.home) .spotlight-feature__image {
    min-height: 0;
    padding: 24px;
  }
  body:not(.home) .spotlight-intro h1,
  body:not(.home) .spotlight-article-head h1 {
    max-width: 14ch;
    font-size: clamp(40px, 11vw, 60px);
  }
  body:not(.home) .ox-application .oa-hero {
    height: 640px;
    min-height: 0;
  }
  body:not(.home) .ox-application .oa-hero-band {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body:not(.home) .ox-application .oa-hero-band > div {
    padding: 24px;
  }
  body:not(.home) .ox-application .oa-hero-band > div + div {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--e-white) 20%, transparent);
  }
  body:not(.home) .ox-application .oa-intro,
  body:not(.home) .ox-application .oa-section-heading,
  body:not(.home) .ox-application .oa-dark-grid,
  body:not(.home) .ox-application .oa-support-brief,
  body:not(.home) .ox-application .oa-support-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body:not(.home) .ox-application .oa-directory-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body:not(.home) .ox-application .oa-directory-copy {
    padding: 48px 24px;
  }
  body:not(.home) .ox-application .oa-directory-product {
    border-left: 0;
    border-top: 1px solid var(--e-oa-line);
    padding: 24px;
  }
  body:not(.home) .ox-application .oa-directory-product img {
    height: 280px;
    padding: 24px;
  }
  body:not(.home) .ox-application .oa-product-stage {
    margin-inline: 24px !important;
  }
  body:not(.home) .ox-application .oa-product-stage > a {
    height: 420px;
  }
  body:not(.home) .ox-application .oa-review,
  body:not(.home) .ox-application .oa-dark,
  body:not(.home) .ox-application .oa-related,
  body:not(.home) .ox-application .oa-resources {
    padding: 56px 24px;
  }
  body:not(.home) .ox-application .oa-related-grid,
  body:not(.home) .ox-application .oa-resource-grid {
    grid-template-columns: 1fr;
  }
  body:not(.home) .ox-application .oa-related > h2 {
    margin-inline: 0;
  }
  body:not(.home) .ox-application .oa-buy-row {
    grid-template-columns: 1fr;
  }
  body:not(.home) .ox-application .oa-buy-row > div,
  body:not(.home) .ox-application .oa-buy-row > ul {
    padding: 48px 24px;
  }
  body:not(.home) footer.ox-footer {
    grid-template-columns: 1fr;
  }
  body:not(.home) footer.ox-footer .ox-footer-brand {
    min-height: 0;
    padding: 40px 24px 32px;
  }
  body:not(.home) footer.ox-footer .ox-footer-topline,
  body:not(.home) footer.ox-footer .ox-footer-inquiry,
  body:not(.home) footer.ox-footer .ox-footer-map,
  body:not(.home) footer.ox-footer .ox-footer-legal {
    padding-inline: 24px;
  }
  body:not(.home) footer.ox-footer .ox-footer-inquiry {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body:not(.home) footer.ox-footer .ox-footer-sla {
    grid-column: auto;
  }
  body:not(.home) footer.ox-footer .ox-footer-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  body:not(.home) footer.ox-footer .ox-footer-legal {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 540px) {
  body:not(.home) :is(.erdi-breadcrumb, .sp-breadcrumbs) {
    padding-inline: 24px;
  }
  body:not(.home) main.erdi-model-index .oc-intro {
    padding-block: 24px 32px;
  }
  body:not(.home) main.erdi-model-index .oc-intro h1 {
    font-size: 42px;
  }
  body:not(.home) main.erdi-model-index .oc-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }
  body:not(.home) main.erdi-source-product .sp-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 24px 56px;
  }
  body:not(.home) main.erdi-source-product .sp-hero-media {
    order: 1;
  }
  body:not(.home) main.erdi-source-product .sp-hero-copy {
    order: 2;
  }
  body:not(.home) main.erdi-source-product .sp-hero-copy h1 {
    font-size: 42px;
  }
  body:not(.home) main.erdi-source-product .sp-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  body:not(.home) main.erdi-source-product .sp-actions > a {
    width: 100%;
  }
  body:not(.home) main.erdi-source-product .sp-section-nav {
    top: 68px;
    padding-inline: 24px;
  }
  body:not(.home) .ox-downloads,
  body:not(.home) .ox-knowledge,
  body:not(.home) .spotlight-shell,
  body:not(.home) .ox-utility {
    width: min(100% - 32px, 1360px);
  }
  body:not(.home) .ox-downloads > header {
    padding-block: 32px;
  }
  body:not(.home) .ox-downloads > header h1,
  body:not(.home) .spotlight-intro h1,
  body:not(.home) .spotlight-article-head h1,
  body:not(.home) .ox-utility h1 {
    font-size: 42px;
  }
  body:not(.home) .ox-knowledge .wp-block-post-template {
    gap: 16px;
  }
  body:not(.home) .spotlight-shell {
    padding-bottom: 64px;
  }
  body:not(.home) .ox-application .oa-hero {
    height: 580px;
  }
  body:not(.home) .ox-application .oa-hero-band h2 {
    font-size: 32px;
  }
  body:not(.home) .ox-application .oa-intro,
  body:not(.home) .ox-application .oa-jump {
    padding-inline: 24px;
  }
  body:not(.home) .ox-application .oa-product-stage {
    margin-inline: 16px !important;
  }
  body:not(.home) .ox-application .oa-product-stage > a {
    height: 330px;
  }
  body:not(.home) footer.ox-footer .ox-footer-map {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) * {
    scroll-behavior: auto !important;
  }
}

/* Reviewer fixes: breadcrumb items share one centre line; the series label
 * stays on one line; the support launcher steps aside on form pages. */
body:not(.home) :is(.erdi-breadcrumb, .sp-breadcrumbs) ol {
  align-items: center;
}
body:not(.home) :is(.erdi-breadcrumb, .sp-breadcrumbs) li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 600px) {
  body:not(.home) .erdi-family-links > span {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  body:not(.home):has(main textarea) .erdi-support__launcher {
    display: none !important;
  }
}
body:not(.home).r11-inner-js:not(.r11-support-ready) .erdi-support__launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
body:not(.home).r11-inner-js .erdi-support__launcher {
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body:not(.home) .erdi-tier-row small {
  font-size: 12px;
}
