.ip-research-page,
.launch-ip-research-page { background: #f8fafc; color: #0f172a; }
.ip-research-container { width: min(1290px, calc(100% - 48px)); margin-inline: auto; }
/* Directory: the shared Innovation Hub section, search, filter buttons and cards (innovation-intelligence.css). */
.ip-research-directory .opp-inner { width: min(1290px, calc(100% - 48px)); }
.ip-research-directory .section-heading-group { display: grid; gap: 10px; min-width: 0; }
/* Heading on one line (wraps only when the screen is too narrow); the intro keeps a readable measure. */
.ip-research-directory .section-subtitle { max-width: 760px; }
.ip-research-page .hero-sub { max-width: none; }
/* Phones: filters on one row, compact; if a translation is longer they scroll sideways instead of wrapping. */
@media (max-width: 767px) {
  .ip-research-directory .ip-research-filters { flex-wrap: nowrap; gap: 5px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ip-research-filters::-webkit-scrollbar { display: none; }
  /* Fade at the edge that still has buttons behind it (classes set by ip-research.js). */
  .ip-research-filters.has-more-end { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ip-research-filters.has-more-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
  .ip-research-filters.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
  .ip-research-directory .ip-research-filters .filter-btn { flex: 0 0 auto; padding: 6px 9px; font-size: 12px; white-space: nowrap; }
}
/* "IP/Research Hub" stays on one line on phones. */
@media (max-width: 767px) { .ip-research-page .hero-title { font-size: clamp(30px, 10.4vw, 60px); white-space: nowrap; } }
/* Pill search field, like the design. */
.ip-research-directory .search-input { border-radius: 9999px; }
.ip-research-directory .section-title { margin: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
.ip-research-directory .section-subtitle { margin: 0; color: #66758b; font-size: 16px; line-height: 1.6; text-transform: none; letter-spacing: 0; }
.ip-research-count { flex: 0 0 auto; margin: 0; color: #475569; font-size: 14px; font-variant-numeric: tabular-nums; }
.ip-research-filters { flex-wrap: wrap; gap: 8px; }
.ip-research-filters .filter-btn { cursor: pointer; transition: border-color .18s ease-out, background-color .18s ease-out; }
.ip-research-filters .filter-btn:hover { border-color: #3ba295; }
.ip-research-filters .filter-btn.is-active { background: #f0fdfa; border-color: #3ba295; color: #042f2e; font-weight: 600; }
.ip-research-directory :is(.filter-btn, .view-details, .connect-btn, .card-title, .search-input):focus-visible { outline: 2px solid #3ba295; outline-offset: 2px; }
.ip-research-grid { margin-bottom: 24px; }
.ip-research-card { min-width: 0; transition: border-color .2s ease-out, box-shadow .2s ease-out; }
.ip-research-card:hover { border-color: #b7d9d3; box-shadow: 0 10px 28px -18px rgba(8, 22, 45, .35); }
.ip-research-card[hidden], .ip-research-empty[hidden], .ip-research-modal[hidden] { display: none; }
/* The cover carries the record itself: jurisdiction, number and grant date. */
.ip-research-cover { display: flex; align-items: flex-end; height: 168px; padding: 20px 22px; background: linear-gradient(180deg, #f8fafc 0%, #eef5f4 100%); border-bottom: 1px solid #e6eef0; }
.ip-research-cover .card-badge + .card-badge { left: auto; right: 14px; }
.ip-research-badge-expired { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; }
.ip-research-record { display: grid; gap: 4px; min-width: 0; }
.ip-research-record-label { color: #0f766e; font-size: 12px; font-weight: 600; }
.ip-research-record-number { color: #08162d; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-research-record-date { color: #66758b; font-size: 12px; font-variant-numeric: tabular-nums; }
.ip-research-record.is-document { align-items: center; grid-auto-flow: column; justify-content: start; gap: 12px; color: #0f766e; }
.ip-research-card.is-expired .ip-research-record-number { color: #64748b; }
.ip-research-card.is-expired .ip-research-record-label { color: #64748b; }
.ip-research-card .card-org-badge { max-width: 100%; }
.ip-research-card .card-title { text-decoration: none; }
.ip-research-card a.card-title:hover { color: #0f766e; }
.ip-research-card h3.card-title { margin: 0; }
.ip-research-card .card-footer { gap: 12px; }
.ip-research-card .card-footer > div { display: grid; gap: 2px; min-width: 0; }
.ip-research-card .view-details { margin-bottom: 0; padding: 4px 0; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; }
.ip-research-card .view-details:hover { text-decoration: underline; text-underline-offset: 3px; }
.ip-research-grid:empty, .ip-research-grid.is-empty { display: none; }
.ip-research-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; padding: 40px 24px; border: 1px dashed #d5e3e0; border-radius: 16px; background: #f8fafc; text-align: center; }
.ip-research-empty p { margin: 0; }
.ip-research-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: #ecfdf5; color: #0f766e; }
.ip-research-empty-title { color: #0f172a; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ip-research-empty-text { max-width: 36ch; color: #64748b; font-size: 14px; line-height: 1.6; }
.ip-research-empty-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 10px; }
.ip-research-empty-reset { padding: 9px 18px; border: 1px solid #3ba295; border-radius: 9999px; background: #fff; color: #0f766e; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .18s ease-out; }
.ip-research-empty-reset:hover { background: #f0fdfa; }
.ip-research-empty-share { color: #475569; font-size: 14px; font-weight: 600; text-decoration: none; }
.ip-research-empty-share:hover { color: #0f766e; }
.ip-research-empty :is(.ip-research-empty-reset, .ip-research-empty-share):focus-visible { outline: 2px solid #3ba295; outline-offset: 2px; }
.ip-research-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 40px; }
.ip-research-modal-backdrop { position: absolute; inset: 0; background: rgba(7,17,39,.76); }
.ip-research-modal-dialog { position: relative; display: flex; width: min(1100px, 100%); height: min(84vh, 820px); flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 25px 60px rgba(0,0,0,.28); }
.ip-research-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-bottom: 1px solid #e2e8f0; }
.ip-research-modal-header h2 { margin: 0; font-size: 20px; }
.ip-research-modal-header button { width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; color: #475569; cursor: pointer; font-size: 22px; line-height: 1; }
.ip-research-modal-actions { display: flex; flex: none; align-items: center; gap: 12px; }
.ip-research-modal-header .ip-research-modal-connect { width: auto; height: auto; padding: 8px 16px; border-color: #0d766e; border-radius: 999px; background: #0d766e; color: #fff; font-size: 13px; font-weight: 700; }
.ip-research-modal-header .ip-research-modal-connect[hidden] { display: none; }
.ip-research-modal-dialog iframe { width: 100%; min-height: 0; flex: 1; border: 0; }
.ip-research-form-hero { padding: 34px 0 88px; background: linear-gradient(120deg, #071127, #102d46 60%, #0d766e); color: #fff; }
.ip-research-form-hero h1.section-title { margin: 6px 0 0; color: #fff; }
.ip-research-breadcrumb { display: flex; gap: 10px; align-items: center; margin-bottom: 52px; color: #cbd5e1; font-size: 13px; }
.ip-research-breadcrumb a { color: #cbd5e1; text-decoration: none; }
.ip-research-form-hero > .ip-research-container > p:last-child { max-width: 680px; margin: 16px 0 0; color: #cbd5e1; font-size: 18px; line-height: 1.55; }
.ip-research-form-content { position: relative; margin-top: -48px; padding-bottom: 80px; }
.ip-research-form, .ip-research-form-section, .ip-research-notice { border: 1px solid #dbe3ec; border-radius: 16px; background: #fff; }
.ip-research-form { padding: 10px; }
.ip-research-form-section { margin-bottom: 10px; padding: 30px; }
.ip-research-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ip-research-form-heading .section-title { margin: 0; font-size: 28px; line-height: 1.15; }
.ip-research-form-heading > span, .ip-research-field small, .ip-research-file-field small, .ip-research-form-footer p { color: #64748b; font-size: 13px; }
.ip-research-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.ip-research-field, .ip-research-file-field { display: flex; flex-direction: column; gap: 8px; color: #0f172a; font-size: 14px; font-weight: 600; }
.ip-research-field-full { grid-column: 1 / -1; }
.ip-research-field em, .ip-research-file-field em { color: #dc2626; font-style: normal; }
.ip-research-field input, .ip-research-field select, .ip-research-field textarea, .ip-research-file-field input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; font-weight: 400; }
.ip-research-field textarea { min-height: 120px; resize: vertical; }
.ip-research-field input:focus, .ip-research-field select:focus, .ip-research-field textarea:focus, .ip-research-file-field input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.12); outline: 0; }
.ip-research-file-field { max-width: 620px; }
.ip-research-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px 10px; }
.ip-research-form-footer p { margin: 0; }
.ip-research-submit { min-height: 46px; padding: 12px 28px; border: 0; border-radius: 9999px; background: linear-gradient(90deg, rgba(67,178,99,.99) 0%, #3ba295 25%, #3b7ab5 50%, #7147a7 75%, #814272 100%); box-shadow: 0 10px 15px -3px rgba(2,44,34,.3), 0 4px 6px -4px rgba(2,44,34,.3); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.ip-research-notice { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding: 18px 24px; color: #475569; }
.ip-research-notice strong { color: #0f172a; }
.ip-research-notice a { margin-left: auto; color: #059669; font-weight: 700; text-decoration: none; }
.ip-research-notice.is-success { border-color: #a7f3d0; background: #ecfdf5; }
.ip-research-notice.is-error { border-color: #fecaca; background: #fef2f2; }
body.ip-research-modal-open { overflow: hidden; }
@media (max-width: 850px) { .ip-research-directory .section-header { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .ip-research-container { width: min(100% - 28px, 1290px); } .ip-research-directory .opp-inner { width: min(100% - 32px, 1290px); padding-top: 48px; } .ip-research-directory .filter-bar.ip-research-filters { flex-direction: row; flex-wrap: nowrap; } .ip-research-filters .filter-btn { width: auto; flex: 0 0 auto; } .ip-research-cover { height: 140px; } .ip-research-form-grid { grid-template-columns: 1fr; } .ip-research-record-number { font-size: 22px; } .ip-research-form-section { padding: 22px 16px; } .ip-research-field-full { grid-column: auto; } .ip-research-form-footer, .ip-research-notice { align-items: flex-start; flex-direction: column; } .ip-research-notice a { margin-left: 0; } .ip-research-submit { width: 100%; } .ip-research-modal { padding: 14px; } .ip-research-modal-dialog { height: 90vh; } }

