/* Research records, specification guidance, and primary-source archive styling */
.crm-research-page { padding-block: clamp(30px, 5vw, 65px); }
.crm-nav-curtain.nav-rd .crm-curtain-grid > .crm-curtain-col:last-child { display: block; }
.crm-tech-footnote { margin-top: 14px; font-size: .84rem; color: #6b7280; line-height: 1.65; max-width: 78ch; }
.crm-research-heading .eyebrow,
.crm-research-band .eyebrow,
.crm-research-section .eyebrow { display: inline-block; margin-bottom: 8px; }
.crm-research-heading h1 { font-size: clamp(32px, 4.4vw, 57px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
.crm-research-heading p, .crm-research-band > p, .crm-research-band-head p { max-width: 72ch; color: #4b525c; line-height: 1.65; }
.crm-research-links, .crm-research-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.crm-research-jumps { margin: 18px 0 22px; padding-bottom: 16px; border-bottom: 1px solid #dfe2e7; font-size: .92rem; }
.crm-research-jumps a { color: #1b1f24; font-weight: 500; text-decoration: none; }
.crm-research-jumps a:hover, .crm-research-jumps a:focus-visible { color: var(--crm-crimson, #a42520); text-decoration: underline; text-underline-offset: .2em; }

.crm-research-filters { gap: 8px; margin-bottom: 12px; }
.crm-filter-pill { padding: 7px 13px; border: 1px solid #d4d8df; border-radius: 3px; background: #fff; color: #2b3038; font-size: .86rem; font-weight: 500; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.crm-filter-pill span { color: #6b7280; font-size: .82em; }
.crm-filter-pill:hover, .crm-filter-pill:focus-visible { border-color: var(--crm-crimson, #a42520); color: var(--crm-crimson, #a42520); }
.crm-filter-pill[aria-current="true"], .crm-filter-pill.is-active { background: var(--crm-crimson, #a42520); border-color: var(--crm-crimson, #a42520); color: #fff; }
.crm-filter-pill[aria-current="true"] span, .crm-filter-pill.is-active span { color: rgba(255, 255, 255, .86); }
.crm-research-count { margin: 0 0 18px; font-size: .88rem; color: #5a626e; }

.crm-research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.crm-research-card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border: 1px solid #d8dce2; border-top: 3px solid #d8dce2; border-radius: 3px; padding: 20px 22px; overflow-wrap: anywhere; transition: border-color .15s ease; }
.crm-research-card:hover { border-top-color: var(--crm-crimson, #a42520); }
.crm-research-card[hidden] { display: none; }
.crm-research-card-body { display: flex; flex-direction: column; gap: 8px; }
.crm-research-card .crm-research-meta { margin: 0; color: var(--crm-crimson, #a42520); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.crm-research-card h3 { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.35; margin: 0; color: #15181c; font-weight: 600; }
.crm-mat-sep { color: #9ca3af; font-weight: 400; }
.crm-mat-spec { font-weight: 500; color: #4b525c; font-size: .9em; }
.crm-research-use { margin: 0; color: #454c56; font-size: .94rem; line-height: 1.6; }

.crm-research-details { margin-top: 4px; font-size: .86rem; color: #4b525c; }
.crm-research-details summary { cursor: pointer; font-weight: 500; color: #2b3038; user-select: none; }
.crm-research-details summary:hover { color: var(--crm-crimson, #a42520); }
.crm-research-details-body { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e5e7eb; display: flex; flex-direction: column; gap: 6px; }
.crm-research-details p { margin: 0; line-height: 1.55; }
.crm-cit-title { font-weight: 600; color: #1f2328; }
.crm-cit-supplier span { font-weight: 500; color: #1f2328; }
.crm-research-card blockquote { margin: 4px 0; padding: 6px 12px; border-inline-start: 3px solid var(--crm-crimson, #a42520); background: #fafbfc; font-size: .85rem; color: #374151; }
.crm-cit-doi { color: var(--crm-crimson, #a42520); font-size: .83rem; font-weight: 500; text-decoration: none; align-self: flex-start; }
.crm-cit-doi:hover { text-decoration: underline; }

.crm-research-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eceef2; }
.crm-research-sku-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.crm-research-sku-link { color: var(--crm-crimson, #a42520); font-weight: 600; font-size: .88rem; text-decoration: none; }
.crm-research-sku-link:hover, .crm-research-sku-link:focus-visible { text-decoration: underline; text-underline-offset: .18em; }

.crm-research-band { padding-top: 32px; margin-top: 36px; border-top: 1px solid #d6d8dc; }
.crm-research-band h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 10px; letter-spacing: -0.015em; }
.crm-research-band h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 28px 0 12px; }
.crm-research-band-head, .crm-research-section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; }
.crm-research-section-head h2 { margin: 0; }
.crm-research-section-head p { margin: 4px 0 0; color: #5a626e; font-size: .92rem; }

.crm-table-wrap { overflow-x: auto; border: 1px solid #d8dce2; border-radius: 3px; background: #fff; margin-top: 14px; }
.crm-sec-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .88rem; }
.crm-sec-table th { background: #f7f8fa; color: #4b525c; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding: 11px 14px; border-bottom: 1px solid #dfe2e7; }
.crm-sec-table td { padding: 11px 14px; border-bottom: 1px solid #eceef2; vertical-align: top; line-height: 1.5; }
.crm-sec-table tr:last-child td { border-bottom: 0; }
.crm-sec-table small { color: #6b7280; font-size: .8em; }
.crm-sec-drawer { margin-top: 14px; border: 1px solid #d8dce2; border-radius: 3px; background: #fafbfc; padding: 10px 14px; }
.crm-sec-drawer summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--crm-crimson, #a42520); padding: 4px 0; }
.crm-sec-drawer .crm-table-wrap { margin-top: 12px; }

.crm-research-source-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.crm-research-source-list li { padding: 12px 14px; background: #fff; border: 1px solid #dfe2e7; border-radius: 3px; overflow-wrap: anywhere; }
.crm-research-source-list li :is(small, p) { display: block; margin: 4px 0 0; color: #5a626e; font-size: .86rem; }

.crm-patent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.crm-patent-card { background: #fff; border: 1px solid #d8dce2; border-top: 3px solid #d8dce2; border-radius: 3px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.crm-patent-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.crm-patent-no { font-family: var(--font-mono, monospace); font-size: .8rem; font-weight: 600; color: #1f2328; }
.crm-patent-badge { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 2px; }
.crm-patent-badge.is-granted { background: #fef2f2; color: var(--crm-crimson, #a42520); border: 1px solid #f5c2c7; }
.crm-patent-badge.is-published { background: #f3f4f6; color: #4b525c; border: 1px solid #d1d5db; }
.crm-patent-card h3 { margin: 0; font-size: .95rem; line-height: 1.45; font-weight: 600; }
.crm-patent-card h3 a { color: #15181c; text-decoration: none; }
.crm-patent-card h3 a:hover { color: var(--crm-crimson, #a42520); text-decoration: underline; }

.crm-research-page :is(section, article)[id] { scroll-margin-top: 112px; }
.crm-research-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.crm-lit-compact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding: 14px 18px; margin-bottom: 24px; background: #fafbfc; border: 1px solid #d8dce2; border-radius: 3px; }
.crm-lit-compact-label { font-size: .88rem; font-weight: 600; color: #1f2328; }
.crm-detail-updated .crm-research-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.crm-detail-updated .crm-research-inline a { color: var(--crm-crimson, #a42520); font-weight: 500; text-decoration: none; }
.crm-detail-updated .crm-research-inline a:hover { text-decoration: underline; }
.crm-detail-updated .crm-research-section { margin-bottom: 28px; }

.crm-spec-fit { margin: 12px 0 14px; padding: 11px 14px; background: #fafbfc; border: 1px solid #e2e5ea; border-left: 3px solid var(--crm-crimson, #a42520); border-radius: 2px; font-size: .9rem; }
.crm-spec-fit strong { display: block; color: #15181c; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; color: var(--crm-crimson, #a42520); }
.crm-spec-fit p { margin: 4px 0 0; color: #374151; line-height: 1.55; }

.crm-page-home .crm-opening .home-title-lead { color: inherit; font-size: 1.12em; }
.crm-page-home .crm-opening .intro-actions { flex-wrap: wrap; gap: 12px 24px; }
.crm-page-home .crm-opening .intro-actions > a { white-space: nowrap; }
.crm-page-home .crm-opening .home-inline-link { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.crm-page-home .crm-opening .home-inline-link:hover,
.crm-page-home .crm-opening .home-inline-link:focus-visible { color: var(--crm-crimson, #a42520); text-decoration-thickness: 2px; }
.crm-page-home .crm-opening .home-research-inline { color: inherit; font-size: 1.25em; text-decoration: none; }
.crm-page-home .crm-opening .home-research-inline:hover,
.crm-page-home .crm-opening .home-research-inline:focus-visible { color: var(--crm-crimson, #a42520); }
.crm-page-home .crm-opening .home-research-inline:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.crm-page-home .crm-opening .opening-gallery::before {
  content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 100px;
  background: linear-gradient(to bottom, rgba(8, 10, 12, .85), rgba(8, 10, 12, .75) 54%, transparent); pointer-events: none;
}
.crm-page-home .crm-opening .home-research-reference {
  position: absolute; z-index: 3; top: 16px; left: 22px; max-width: calc(100% - 44px);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #bfc2c5;
  font-size: 12px; font-weight: 500; line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .88); text-decoration: none;
}
.crm-page-home .crm-opening .home-research-reference::after {
  content: ""; position: absolute; inset: auto 0 6px; height: 1px; background: rgba(191, 194, 197, .35);
}
.crm-page-home .crm-opening .home-research-reference:hover,
.crm-page-home .crm-opening .home-research-reference:focus-visible { color: #e5e6e8; }
.crm-page-home .crm-opening .home-research-reference:hover::after,
.crm-page-home .crm-opening .home-research-reference:focus-visible::after { background: var(--crm-crimson, #a42520); }
.crm-page-home .crm-opening .home-research-reference:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 801px) {
  .crm-page-home .crm-opening .opening-gallery::before { left: 43.5%; }
  .crm-page-home .crm-opening .home-research-reference { top: 22px; left: calc(43.5% + 24px); max-width: calc(56.5% - 48px); min-height: 36px; }
}
.crm-page-home #chamber-engineering .editorial-reference-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.crm-page-home #chamber-engineering .editorial-reference-links > a { min-width: 0; padding-bottom: 0; }

.crm-page-capabilities .native-heading { padding-bottom: clamp(24px, 3.5vw, 44px); }
.crm-capability-research-link { color: var(--crm-crimson, #a42520); text-decoration: underline; text-underline-offset: .15em; }
.crm-capability-specifications { margin-top: 0; padding-top: 28px; }
.crm-capability-specifications .crm-research-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crm-spec-num { display: inline-block; font-family: var(--font-mono, monospace); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--crm-crimson, #a42520); margin-bottom: 4px; }
.crm-capability-specifications .crm-research-card-foot { border-top: 1px solid #eceef2; }

@media (max-width: 900px) {
  .crm-patent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .crm-capability-specifications .crm-research-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .crm-page .detail-content { grid-row: 1; }
  .crm-page .detail-visual { grid-row: 2; }
}
@media (max-width: 720px) {
  .crm-research-grid, .crm-research-source-list, .crm-patent-grid { grid-template-columns: minmax(0, 1fr); }
  .crm-sec-table thead { display: none; }
  .crm-sec-table, .crm-sec-table tbody, .crm-sec-table tr, .crm-sec-table td { display: block; width: 100%; box-sizing: border-box; }
  .crm-sec-table tr { padding: 10px 12px; border-bottom: 1px solid #dfe2e7; }
  .crm-sec-table td { border: 0; padding: 3px 0; }
  .crm-sec-table td::before { content: attr(data-label) ": "; font-weight: 600; color: #5a626e; font-size: .82em; }
}

/* Engineering FAQ & Copy-for-AI button */
.crm-faq-list { display: grid; gap: 10px; margin-top: 14px; }
.crm-faq-item { background: #fff; border: 1px solid #d8dce2; border-radius: 3px; padding: 14px 18px; }
.crm-faq-item summary { cursor: pointer; font-weight: 600; color: #15181c; font-size: .95rem; line-height: 1.45; }
.crm-faq-item[open] summary { color: var(--crm-crimson, #a42520); }
.crm-faq-item p { margin: 10px 0 0; color: #454c56; font-size: .92rem; line-height: 1.65; }
.crm-copy-ai-btn { padding: 10px 14px; border: 1px solid #cfd4dc; border-radius: 2px; background: #fafbfc; color: #2b3038; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; white-space: nowrap; }
.crm-copy-ai-btn:hover { border-color: var(--crm-crimson, #a42520); color: var(--crm-crimson, #a42520); background: #fff; }
