/* AFA finishing details. No scene, page-grid, rail, image source or interaction rewrites. */
body.afa-card-ui {
  --detail-ink: #171717;
  --detail-line: #d6d6d6;
  --detail-muted: #555;
  --detail-red: #b91f32;
  --detail-paper: #f5f5f5;
  accent-color: var(--detail-red);
}
body.afa-card-ui :is(button, input, select, textarea) {
  font: inherit;
}
body.afa-card-ui :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--detail-red) !important;
  outline-offset: 4px;
  scroll-margin-block: 110px 24px;
}
body.afa-card-ui :is(input, select, textarea):focus-visible {
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #b91f320a;
}
body.afa-card-ui :is(input, textarea)::placeholder {
  color: #596570;
  opacity: 1;
  font-weight: 400;
}
body.afa-card-ui textarea {
  resize: vertical;
}
body.afa-card-ui :is(button, [role='button']):disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
body.afa-card-ui :is(h1, h2, h3) {
  text-wrap: balance;
}
body.afa-card-ui :is(.article-breadcrumb, .contact-breadcrumb, .product-breadcrumb) {
  line-height: 1.9;
}
body.afa-card-ui
  :is(
    .article-meta,
    .news-card-meta,
    .home-news-card time,
    .certificate-description > summary,
    .field-help
  ) {
  color: #555;
  font-size: 12px;
  line-height: 1.9;
}
body.afa-card-ui
  :is(.article-body, .certificate-copy, .news-card-copy, .subprod-main-info, .inquiry-panel) {
  min-width: 0;
}
/* Catalog: keep technical labels quiet and the actual measurement legible. */
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  :is(.category-main-card, .sub-product-card) {
  border-color: #d4d4d4;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .subprod-title {
  font-weight: 700;
  line-height: 1.8;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .quick-pill .pill-label {
  color: #555;
  font-size: 12px;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .quick-pill .pill-value {
  font-size: 12px;
  font-weight: 600;
  color: #171717;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .box-filter-pill.is-active {
  box-shadow: inset 0 -2px var(--detail-red);
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .catalog-live-price {
  font-variant-numeric: tabular-nums;
}
body.product-detail-page .product-eyebrow bdi {
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #333;
}
body.product-detail-page :is(.product-key-specs dt, .product-price-history > div > span) {
  font-size: 12px;
  color: #555;
  line-height: 1.8;
}
body.product-detail-page .product-key-specs dd {
  line-height: 1.8;
}
/* Public prices and technical dossiers: consistent reading lines and restrained hover. */
body.afa-card-ui.prices-page .table-shell th,
body.afa-card-ui .dossier-table th {
  background: #f3f3f3;
  color: #333;
  font-weight: 700;
  border-bottom: 1px solid #ccc;
  line-height: 1.9;
}
body.afa-card-ui .dossier-table td {
  line-height: 1.95;
  border-bottom-color: #e5e5e5;
}
body.afa-card-ui .dossier-table tbody tr:nth-child(even) {
  background: #fafafa;
}
body.afa-card-ui.prices-page .update-time {
  font-size: 12px;
  line-height: 1.9;
  color: #555;
}
body.afa-card-ui.prices-page .stock-badge {
  font-size: 12px;
  color: #444;
  border-color: #ddd;
  background: #fafafa;
}
body.afa-card-ui .price-history {
  background: #fff;
  color: #171717;
}
body.afa-card-ui .price-history .history-header {
  border-bottom-color: #d6d6d6;
}
body.afa-card-ui .history-periods [aria-pressed='true'] {
  box-shadow: inset 0 -2px #b91f32;
}
body.afa-card-ui .history-stage {
  border-radius: 18px 18px 18px 0;
}
body.afa-card-ui .history-content summary {
  font-weight: 600;
  color: #333;
}
/* Articles retain their grid; only the rhythm within the reading column changes. */
body.afa-card-ui.news-body .article-body {
  font-size: 16px;
  line-height: 2.15;
  color: #242424;
}
body.afa-card-ui.news-body .article-body > p {
  margin: 0 0 22px;
  line-height: 2.15;
}
body.afa-card-ui.news-body .article-body > h2 {
  margin: 36px 0 14px;
  font-size: 24px;
  line-height: 1.8;
  scroll-margin-top: 112px;
}
body.afa-card-ui.news-body .article-body > h2:first-child {
  margin-top: 0;
}
body.afa-card-ui.news-body .article-body :is(ul, ol) {
  padding-inline-start: 24px;
  line-height: 2.1;
}
body.afa-card-ui.news-body .article-body li + li {
  margin-top: 10px;
}
body.afa-card-ui.news-body .article-note {
  padding: 22px 24px;
  background: #f6f6f6;
  border-inline-start: 3px solid #b91f32;
  border-radius: 14px 14px 14px 0;
}
body.afa-card-ui.news-body .article-note p:last-child {
  margin-bottom: 0;
}
body.afa-card-ui .news-read-link,
body.afa-card-ui .home-news-link {
  text-underline-offset: 5px;
}
/* Forms share a clear focus, label hierarchy and low-noise idle border. */
body.afa-card-ui
  :is(#contactInquiryForm, #trackingForm, .collab-form, .customer-login-card, .login-card)
  :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  border-color: #c8c8c8;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
body.afa-card-ui :is(#contactInquiryForm, #trackingForm, .collab-form) label {
  line-height: 1.9;
}
body.afa-card-ui :is(.field-help, .draft-state, .screening-note) {
  line-height: 1.95;
}
body.afa-card-ui :is(.form-error, [aria-invalid='true']) {
  --detail-line: #b91f32;
}
body.afa-card-ui [aria-invalid='true'] {
  border-color: #b91f32 !important;
}
body.afa-card-ui .upload-zone {
  border-radius: 14px 14px 14px 0;
}
body.afa-card-ui.portal-body .customer-login-card,
body.afa-card-ui.admin-body .login-card {
  border: 1px solid #ddd;
  border-radius: 18px 18px 18px 0 !important;
  box-shadow: 0 8px 28px #00000005;
}
/* Preserve the agreed physical lower-left corner even in later page-specific styles. */
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.contact-hub-page
  :is(.contact-route-card, .inquiry-layout, .tracking-card, .location-card),
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.product-detail-page
  :is(.product-page-hero, .product-specimen, .product-price-history),
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
  :is(.connected-box-header, .sub-product-card) {
  border-radius: 18px 18px 18px 0 !important;
}
/* Small supporting text remains readable without recoloring photographic captions. */
body.afa-card-ui :is(.afa-photo-grid, .afa-lab-tests) figcaption {
  font-size: 12px;
  line-height: 1.9;
  padding-block: 12px;
  color: #555;
}
body.afa-card-ui .afa-footer a {
  text-underline-offset: 5px;
}
body.afa-card-ui .afa-footer a:focus-visible {
  outline-color: #fff !important;
}
@media (hover: hover) {
  body.afa-card-ui
    :is(.news-read-link, .home-news-link, .article-breadcrumb a, .afa-footer a):hover {
    text-decoration: underline;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .sub-product-card:hover {
    border-color: #888;
  }
  body.afa-card-ui.prices-page .table-shell tbody tr:hover {
    background: #f7f7f7;
  }
  body.afa-card-ui
    :is(#contactInquiryForm, #trackingForm, .collab-form)
    :is(input, select, textarea):hover {
    border-color: #888;
  }
  body.afa-card-ui.organization-page .org-node:hover {
    border-color: #b91f32;
  }
}
@media (max-width: 700px) {
  body.afa-card-ui.news-body .article-body {
    font-size: 15px;
    line-height: 2.1;
  }
  body.afa-card-ui.news-body .article-body > h2 {
    font-size: 21px;
    margin-top: 28px;
  }
  body.afa-card-ui.news-body .article-note {
    padding: 18px;
  }
  body.afa-card-ui .price-history .history-price strong {
    font-size: 32px;
  }
  body.afa-card-ui .price-history .history-label {
    font-size: 12px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.contact-hub-page
    .contact-route-card
    > p {
    font-size: 13px;
    line-height: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.afa-card-ui :is(input, select, textarea) {
    transition: none;
  }
}
/* Clear obsolete horizontal-card placement on small family catalogs. */
@media (max-width: 480px) {
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card[data-product-id] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card[data-product-id]
    > :is(
      .subprod-image,
      .subprod-header,
      .subprod-main-info,
      .subprod-pills-row,
      .catalog-live-price,
      .subprod-card-action
    ) {
    grid-column: 1;
    grid-row: auto;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card[data-product-id]
    .subprod-image {
    height: 160px !important;
    max-height: 160px;
    width: 100%;
    margin: 0;
    padding: 20px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card[data-product-id]
    .subprod-image
    img {
    height: 120px;
    max-height: 120px;
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .subprod-pills-row {
    grid-template-columns: 1fr;
    padding: 8px 20px 12px;
    gap: 0;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .quick-pill {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .quick-pill
    .pill-label {
    min-height: 0;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card
    .catalog-live-price {
    justify-content: normal;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .subprod-card-action {
    margin-top: 0;
  }
}
/* Keep the menu and order controls in separate hit areas at 320px. */
@media (max-width: 360px) {
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .mega-nav-container {
    gap: 6px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .mega-nav-brand {
    width: 58px;
    min-width: 58px;
    flex: none;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .mega-nav-brand img {
    max-width: 58px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .mega-nav-actions {
    flex: none;
    gap: 3px;
    margin: 0;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .nav-secondary-tools {
    padding: 0;
    gap: 2px;
    border: 0;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .nav-commerce-tools {
    gap: 3px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .utility-button {
    min-width: 48px;
    padding: 4px;
    font-size: 10px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .account-button {
    width: 32px;
    min-width: 32px;
    padding: 4px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .account-button svg {
    width: 22px;
    height: 22px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .visual-inquiry-link {
    padding: 0 3px;
    font-size: 11px;
    min-width: 0;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .order-basket-button {
    width: 44px;
    min-width: 44px;
    padding: 4px;
    gap: 2px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
    .navbar
    .order-basket-button
    span {
    display: none;
  }
}
@media (max-width: 360px) {
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .mega-nav-brand {
    width: 58px !important;
    min-width: 58px !important;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
    .navbar
    :is(.mega-brand-logo, .mega-brand-logo img) {
    width: 58px !important;
    max-width: 58px !important;
    height: 32px !important;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .utility-button {
    font-size: 10px !important;
    padding-inline: 4px !important;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout .navbar .order-basket-button {
    padding-inline: 4px !important;
  }
}
@media (max-width: 480px) {
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card
    .catalog-live-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
    .sub-product-card
    .catalog-live-price
    > span {
    width: auto;
    white-space: normal;
  }
}
/* Match the specificity of the established page layer for reading typography. */
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.news-body .article-body {
  font-size: 16px;
  line-height: 2.15;
  color: #242424;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.news-body .article-body > p {
  font-size: 16px;
  line-height: 2.15;
  margin: 0 0 22px;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.news-body .article-body > h2 {
  font-size: 24px;
  line-height: 1.8;
  margin: 36px 0 14px;
}
body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout[data-catalog-family]
  .quick-pill
  .pill-label {
  font-size: 12px;
  color: #555;
}
@media (max-width: 700px) {
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.news-body .article-body > p {
    font-size: 15px;
    line-height: 2.1;
  }
  body.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout.news-body .article-body > h2 {
    font-size: 21px;
    margin: 28px 0 14px;
  }
}
body.production-page .production-page-title {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.65;
  margin: 0 0 20px;
}
