/* Premium card and generated-icon upgrade · 2026-08-25 */
:root {
  --card-v97-ink: #112436;
  --card-v97-bronze: #9b704b;
  --card-v97-paper: #f5f2ec;
  --card-v97-line: rgba(17, 36, 54, 0.14);
  --card-v97-shadow: 0 18px 42px rgba(17, 36, 54, 0.07);
}

/* Shared text-only sections */
.role-list {
  gap: 12px;
  border-top: 0;
}

.role-list article,
.role-list article:not(:first-child) {
  position: relative;
  min-height: 196px;
  padding: 24px !important;
  overflow: hidden;
  border: 1px solid var(--card-v97-line) !important;
  background:
    radial-gradient(circle at 94% 8%, rgba(155, 112, 75, 0.12), transparent 34%),
    linear-gradient(145deg, #faf9f6 0%, var(--card-v97-paper) 100%);
  box-shadow: 0 12px 30px rgba(17, 36, 54, 0.04);
}

.role-list article::after {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(155, 112, 75, 0.16);
  border-radius: 50%;
  content: "";
}

.role-list article > span {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  margin-bottom: 42px;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid rgba(155, 112, 75, 0.28);
  background: rgba(255, 255, 255, 0.68);
  color: var(--card-v97-bronze);
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}

.role-list h3,
.role-list p {
  position: relative;
  z-index: 1;
}

.role-list h3 {
  color: var(--card-v97-ink);
}

/* Numbered flows: detach the number from separator rules. */
.number-process {
  gap: 10px;
  border-top: 0;
}

.number-process li,
.number-process li:not(:first-child),
.inquiry-process-editorial .number-process li,
.inquiry-process-editorial .number-process li:not(:first-child),
.production-flow-editorial .number-process li,
.production-flow-editorial .number-process li:not(:first-child) {
  min-height: 154px;
  padding: 18px !important;
  border: 1px solid var(--card-v97-line) !important;
  background: linear-gradient(150deg, #fbfaf7 0%, #f1eee7 100%);
}

.number-process span {
  display: inline-flex;
  width: 34px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 112, 75, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-v97-bronze);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.number-process strong,
.inquiry-process-editorial .number-process strong,
.production-flow-editorial .number-process strong {
  margin-top: 28px;
  color: var(--card-v97-ink);
}

.readiness-grid {
  gap: 12px;
  border-top: 0;
}

.readiness-grid article,
.readiness-grid article:not(:first-child) {
  min-height: 180px;
  padding: 22px !important;
  border: 1px solid var(--card-v97-line) !important;
  background: linear-gradient(145deg, #faf9f6 0%, var(--card-v97-paper) 100%);
}

.readiness-grid span {
  display: inline-flex;
  min-height: 25px;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid rgba(155, 112, 75, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-v97-bronze);
}

.readiness-grid strong {
  margin-top: 36px;
  color: var(--card-v97-ink);
}

.disclosure-row,
.disclosure-row:last-child {
  grid-template-columns: 180px 1fr;
  gap: 28px;
  margin-top: 10px;
  padding: 22px 24px;
  align-items: center;
  border: 1px solid var(--card-v97-line);
  background: linear-gradient(100deg, rgba(245, 242, 236, 0.9), rgba(255, 255, 255, 0.48));
}

.disclosure-row strong {
  display: inline-flex;
  width: max-content;
  min-height: 27px;
  padding: 5px 10px;
  align-items: center;
  border-left: 3px solid var(--card-v97-bronze);
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-v97-ink);
}

/* Company departments, certifications and brand usage rules. */
.org-units,
.cert-ledger,
.usage-rules {
  gap: 12px;
  border-top: 0;
}

.cert-ledger {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.org-units article,
.org-units article:not(:first-child),
.cert-ledger article,
.cert-ledger article:not(:first-child),
.usage-rules article,
.usage-rules article:not(:first-child) {
  position: relative;
  min-height: 188px;
  padding: 22px !important;
  overflow: hidden;
  border: 1px solid var(--card-v97-line) !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(155, 112, 75, 0.11), transparent 31%),
    linear-gradient(145deg, #fbfaf7 0%, #f1eee7 100%);
  box-shadow: 0 11px 28px rgba(17, 36, 54, 0.035);
}

.org-units article {
  min-height: 232px;
}

.org-units article > span,
.cert-ledger article > span,
.usage-rules article > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: max-content;
  min-width: 34px;
  min-height: 25px;
  margin-bottom: 34px;
  padding: 5px 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 112, 75, 0.3);
  background: rgba(255, 255, 255, 0.76);
  color: var(--card-v97-bronze);
  font-family: var(--font-en);
}

.org-units h3,
.org-units p,
.cert-ledger h3,
.cert-ledger p,
.usage-rules h3,
.usage-rules p {
  position: relative;
  z-index: 1;
}

.org-units h3 {
  margin-top: 78px;
}

.cert-ledger h3,
.usage-rules h3 {
  margin-top: 6px;
  color: var(--card-v97-ink);
}

.section-card-icon {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 5px;
  display: block;
  width: 104px;
  height: 104px;
  pointer-events: none;
}

.section-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 11px 12px rgba(17, 36, 54, 0.12));
}

/* Manufacturing and workforce ledgers: replace rule tables with material tiles. */
.machine-ledger,
.equipment-detail-ledger,
.workforce-ledger {
  gap: 10px;
  border-top: 0;
}

.machine-ledger > div,
.machine-ledger > div:nth-child(n),
.equipment-detail-ledger > div,
.equipment-detail-ledger > div:nth-child(n),
.workforce-ledger > div,
.workforce-ledger > div:nth-child(n),
.page-manufacturing .equipment-ledger-editorial .equipment-detail-ledger > div:nth-child(n) {
  position: relative;
  min-height: 118px;
  padding: 18px !important;
  border: 1px solid var(--card-v97-line) !important;
  background: linear-gradient(145deg, #fbfaf7 0%, #f1eee7 100%);
}

.machine-ledger > div {
  min-height: 88px;
  align-items: center;
}

.machine-ledger strong,
.equipment-detail-ledger > div > span,
.workforce-ledger > div > strong {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  padding: 5px 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 112, 75, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-v97-bronze);
}

.equipment-detail-ledger > div > strong,
.workforce-ledger > div > span,
.machine-ledger > div > span {
  color: var(--card-v97-ink);
}

.page-manufacturing .detail-stats,
.page-projects .detail-stats {
  gap: 10px;
  border-top: 0;
  border-bottom: 0;
}

.page-manufacturing .detail-stats > div,
.page-projects .detail-stats > div {
  min-height: 130px;
  padding: 20px !important;
  border: 1px solid var(--card-v97-line) !important;
  background: linear-gradient(145deg, #fbfaf7 0%, #f1eee7 100%);
}

.page-manufacturing .detail-stats dt,
.page-projects .detail-stats dt {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid rgba(155, 112, 75, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-v97-bronze);
}

.page-manufacturing .detail-stats dd,
.page-projects .detail-stats dd {
  margin-top: 24px;
  color: var(--card-v97-ink);
}

/* Inquiry checklist: generated object cues plus detached number badges. */
.inquiry-checklist {
  gap: 10px;
  border-top: 0;
}

.page-inquiry .inquiry-checklist-layout .inquiry-checklist article:nth-child(n),
.inquiry-checklist article,
.inquiry-checklist article:not(:nth-child(3n + 1)) {
  position: relative;
  min-height: 184px;
  padding: 18px !important;
  overflow: hidden;
  border: 1px solid var(--card-v97-line) !important;
  background: linear-gradient(145deg, #fbfaf7 0%, #f1eee7 100%);
}

.inquiry-checklist article > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 34px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 112, 75, 0.32);
  background: rgba(255, 255, 255, 0.76);
  color: var(--card-v97-bronze);
}

.inquiry-checklist h3 {
  position: relative;
  z-index: 1;
  margin-top: 78px;
  color: var(--card-v97-ink);
}

.inquiry-checklist p {
  position: relative;
  z-index: 1;
}

/* Remaining catalog text grids follow the same detached-card system. */
.catalog-quality-layers,
.catalog-request-grid {
  gap: 12px;
  border-top: 0;
  border-bottom: 0;
}

.catalog-quality-layers article,
.catalog-quality-layers article:last-child,
.catalog-request-grid article,
.catalog-request-grid article:nth-child(n) {
  position: relative;
  min-height: 196px;
  padding: 20px !important;
  border: 1px solid var(--card-v97-line) !important;
  background:
    radial-gradient(circle at 94% 8%, rgba(155, 112, 75, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.48);
}

.catalog-quality-layers article > span,
.catalog-request-grid article > span {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid rgba(155, 112, 75, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-v97-bronze);
}

.catalog-quality-layers h3,
.catalog-request-grid h3 {
  margin-top: 50px;
}

/* Catalog contents: purpose-built generated visuals replace plain text tiles. */
.page-catalog .catalog-chapter-nav-v97 {
  gap: 12px;
  border-top: 0;
  border-bottom: 0;
}

.page-catalog .catalog-chapter-nav-v97 a,
.page-catalog .catalog-chapter-nav-v97 a:not(:first-child),
.page-catalog .catalog-chapter-nav-v97 a:nth-child(4n + 1) {
  position: relative;
  display: flex;
  min-height: 218px;
  padding: 18px !important;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--card-v97-line);
  background:
    radial-gradient(circle at 86% 14%, rgba(155, 112, 75, 0.1), transparent 34%),
    linear-gradient(145deg, #faf9f6 0%, #f0ede6 100%);
  box-shadow: 0 12px 30px rgba(17, 36, 54, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.page-catalog .catalog-chapter-nav-v97 a:hover,
.page-catalog .catalog-chapter-nav-v97 a:focus-visible {
  border-color: rgba(155, 112, 75, 0.42);
  box-shadow: var(--card-v97-shadow);
  transform: translateY(-3px);
}

.page-catalog .catalog-chapter-nav-v97 a > span {
  display: inline-flex;
  width: 34px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 112, 75, 0.32);
  background: rgba(255, 255, 255, 0.78);
  color: var(--card-v97-bronze);
  font-family: var(--font-en);
}

.page-catalog .catalog-chapter-nav-v97 strong {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--card-v97-ink);
  font-size: 20px;
}

.page-catalog .catalog-chapter-nav-v97 small {
  position: relative;
  z-index: 1;
  margin-top: 6px;
}

.page-catalog .catalog-chapter-nav-v97 a::after {
  display: none;
}

.catalog-nav-icon,
.catalog-scope-icon {
  display: block;
  pointer-events: none;
}

.catalog-nav-icon {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 126px;
  height: 126px;
}

.catalog-nav-icon img,
.catalog-scope-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(17, 36, 54, 0.12));
}

/* Catalog business cards: image-led, with no number touching a vertical rule. */
.catalog-business-scope {
  gap: 12px;
  border-top: 0;
  border-bottom: 0;
}

.catalog-business-scope article,
.catalog-business-scope article:nth-child(2n),
.catalog-business-scope article:last-child {
  position: relative;
  min-height: 276px;
  padding: 20px !important;
  overflow: hidden;
  border: 1px solid var(--card-v97-line) !important;
  background: linear-gradient(145deg, #faf9f6 0%, #f0ede6 100%);
}

.catalog-business-scope article > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid rgba(155, 112, 75, 0.3);
  background: rgba(255, 255, 255, 0.76);
}

.catalog-scope-icon {
  position: absolute;
  top: 10px;
  right: 7px;
  width: 124px;
  height: 124px;
}

.catalog-business-scope h3 {
  position: relative;
  z-index: 1;
  margin-top: 108px;
}

.catalog-business-scope p {
  position: relative;
  z-index: 1;
}

/* Catalog history: year pills sit inside independent cards, not on grid lines. */
.catalog-history-compact {
  gap: 12px;
  border-top: 0;
}

.catalog-history-compact li,
.catalog-history-compact li:nth-child(3n) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 152px;
  padding: 20px;
  border: 1px solid var(--card-v97-line);
  background: rgba(255, 255, 255, 0.48);
}

.catalog-history-compact time {
  display: inline-flex;
  width: max-content;
  min-height: 29px;
  padding: 5px 10px;
  align-items: center;
  border: 1px solid rgba(155, 112, 75, 0.34);
  background: var(--card-v97-paper);
  line-height: 1;
}

@media (max-width: 980px) {
  .org-units,
  .cert-ledger,
  .usage-rules,
  .machine-ledger,
  .equipment-detail-ledger,
  .workforce-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-catalog .catalog-chapter-nav-v97,
  .catalog-business-scope,
  .catalog-history-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .role-list,
  .org-units,
  .cert-ledger,
  .usage-rules,
  .machine-ledger,
  .equipment-detail-ledger,
  .workforce-ledger,
  .page-inquiry .inquiry-checklist-layout .inquiry-checklist,
  .catalog-quality-layers,
  .catalog-request-grid {
    grid-template-columns: 1fr;
  }

  .role-list article,
  .role-list article:not(:first-child) {
    min-height: 164px;
    padding: 20px !important;
  }

  .role-list article > span {
    margin-bottom: 30px;
  }

  .org-units article,
  .org-units article:not(:first-child),
  .cert-ledger article,
  .cert-ledger article:not(:first-child),
  .usage-rules article,
  .usage-rules article:not(:first-child),
  .page-inquiry .inquiry-checklist-layout .inquiry-checklist article:nth-child(n),
  .catalog-quality-layers article,
  .catalog-request-grid article:nth-child(n) {
    min-height: 164px;
    padding: 18px !important;
  }

  .org-units article,
  .page-inquiry .inquiry-checklist-layout .inquiry-checklist article:nth-child(n) {
    min-height: 194px;
  }

  .org-units h3,
  .inquiry-checklist h3 {
    margin-top: 60px;
  }

  .section-card-icon {
    width: 88px;
    height: 88px;
  }

  .machine-ledger > div:nth-child(n),
  .equipment-detail-ledger > div:nth-child(n),
  .workforce-ledger > div:nth-child(n),
  .page-manufacturing .equipment-ledger-editorial .equipment-detail-ledger > div:nth-child(n) {
    min-height: 104px;
    padding: 16px !important;
  }

  .number-process,
  .inquiry-process-editorial .number-process,
  .production-flow-editorial .number-process,
  .readiness-grid {
    gap: 8px;
  }

  .number-process li,
  .number-process li:not(:first-child),
  .inquiry-process-editorial .number-process li:nth-child(n),
  .production-flow-editorial .number-process li:nth-child(n),
  .readiness-grid article,
  .readiness-grid article:not(:first-child) {
    min-height: 132px;
    padding: 16px !important;
  }

  .number-process strong,
  .inquiry-process-editorial .number-process strong,
  .production-flow-editorial .number-process strong,
  .readiness-grid strong {
    margin-top: 22px;
  }

  .disclosure-row,
  .disclosure-row:last-child {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .page-catalog .catalog-chapter-nav-v97 a,
  .page-catalog .catalog-chapter-nav-v97 a:not(:first-child),
  .page-catalog .catalog-chapter-nav-v97 a:nth-child(4n + 1) {
    display: flex;
    min-height: 174px;
    padding: 14px !important;
    align-items: flex-start;
  }

  .page-catalog .catalog-chapter-nav-v97 strong {
    margin-top: auto;
    font-size: 17px;
  }

  .page-catalog .catalog-chapter-nav-v97 small {
    align-self: auto;
  }

  .catalog-nav-icon {
    width: 92px;
    height: 92px;
  }

  .catalog-business-scope,
  .catalog-history-compact {
    grid-template-columns: 1fr;
  }

  .catalog-business-scope article,
  .catalog-business-scope article:nth-child(2n),
  .catalog-business-scope article:last-child {
    min-height: 230px;
  }

  .catalog-business-scope h3 {
    margin-top: 74px;
  }

  .catalog-scope-icon {
    width: 104px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-catalog .catalog-chapter-nav-v97 a {
    transition: none;
  }

  .page-catalog .catalog-chapter-nav-v97 a:hover,
  .page-catalog .catalog-chapter-nav-v97 a:focus-visible {
    transform: none;
  }
}
