/* ==========================================================================
   NVM Vendor Patent Maps (具名機構核心專利地圖 · By Filing Company 分析)
   以專利申請機構 (Assignee) 為核心單位，深度呈現專利組合、獨立權利項 (Claim 1) 邊界、
   第一性原理物理機制與晶圓代工落地；扁平化架構杜絕多層過度嵌套。
   ========================================================================== */

.nvm-patent-maps-editorial {
  padding-bottom: 60px;
}

/* 專利申請機構快速選單 (Filing Entity Navigation) */
.nvm-entity-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 32px;
  padding: 16px 20px;
  background: #f1f6f9;
  border: 1px solid #c8dbe6;
  border-radius: 4px;
}

.nvm-entity-nav .nvm-vendor-nav-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #17425e;
  text-transform: uppercase;
}

.nvm-entity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.nvm-entity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #b8cee0;
  border-radius: 3px;
  font-size: 14px;
  color: #123e59;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease-in-out;
}

.nvm-entity-pill span {
  font-size: 12px;
  color: #557285;
  font-weight: 500;
}

.nvm-entity-pill:hover,
.nvm-entity-pill:focus {
  background: #087f86;
  border-color: #087f86;
  color: #ffffff;
}

.nvm-entity-pill:hover span,
.nvm-entity-pill:focus span {
  color: #d1eff2;
}

/* 專利地圖檔案 (Patent Map Dossier by Company) */
.nvm-patent-dossier {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 3px solid #14425d;
}

.nvm-dossier-kicker-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.nvm-dossier-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #087f86;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nvm-dossier-model {
  font-size: 12px;
  color: #4f6b7d;
  background: #e6eef3;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.nvm-dossier-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  margin: 6px 0 12px;
  color: #0f3047;
}

.nvm-dossier-title small {
  font-size: 0.75em;
  color: #507185;
  font-weight: 500;
}

.nvm-vendor-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 14px;
  color: #4a6375;
  margin: 12px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d0dee8;
}

.nvm-vendor-meta-strip span {
  display: inline-flex;
  gap: 6px;
}

.nvm-vendor-meta-strip strong {
  color: #17425e;
}

/* 公司專利指標看板 (Stats Grid) */
.nvm-vendor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.nvm-vendor-stat-card {
  background: #f7fafc;
  border: 1px solid #ccdbe5;
  border-top: 3px solid #087f86;
  padding: 14px 16px;
  border-radius: 2px;
}

.nvm-vendor-stat-card dt {
  font-size: 12px;
  font-weight: 700;
  color: #556e80;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.nvm-vendor-stat-card dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #14354c;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 專利戰略護城河說明 (Patent Moat Strategy) */
.nvm-vendor-stat-card .nvm-stat-source {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  color: #38546a;
}
.nvm-stat-source a { color: #086c73; text-decoration: underline; }
.nvm-stat-source a:focus-visible { outline: 2px solid #087f86; outline-offset: 3px; }

.nvm-vendor-strategy {
  background: #f0f7f9;
  border-left: 4px solid #087f86;
  padding: 18px 22px;
  margin: 24px 0 32px;
}

.nvm-vendor-strategy h4 {
  font-size: 17px;
  color: #103850;
  margin: 0 0 8px;
}

.nvm-vendor-strategy p {
  font-size: 15px;
  line-height: 1.8;
  color: #23465b;
  margin: 0;
}

/* 專利組合群組跳轉導覽 */
.nvm-family-jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
}

.nvm-family-jump-title {
  font-size: 13px;
  font-weight: 700;
  color: #2b4f67;
}

.nvm-family-jump-nav a {
  padding: 5px 12px;
  background: #eaf1f5;
  border: 1px solid #c2d6e3;
  border-radius: 3px;
  font-size: 13px;
  color: #174360;
  text-decoration: none;
  font-weight: 600;
}

.nvm-family-jump-nav a:hover {
  background: #087f86;
  color: #ffffff;
  border-color: #087f86;
}

/* 專利組合區塊 (Patent Portfolio Group) */
.nvm-patent-portfolio-group {
  background: #ffffff;
  border: 1px solid #cadbe6;
  border-radius: 4px;
  margin: 28px 0 36px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nvm-portfolio-group-header {
  border-bottom: 1px solid #e0ebf1;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.nvm-portfolio-tagline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #087f86;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.nvm-portfolio-group-header h4 {
  font-size: 22px;
  color: #10344d;
  margin: 2px 0 12px;
}

.nvm-portfolio-specs {
  background: #f7fafc;
  padding: 14px 18px;
  border: 1px solid #dce7ee;
  border-radius: 3px;
}

.nvm-portfolio-specs dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
}

.nvm-portfolio-specs dt {
  font-size: 12px;
  font-weight: 700;
  color: #4d6d82;
  margin-bottom: 2px;
}

.nvm-portfolio-specs dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #14354c;
  overflow-wrap: anywhere;
}

.nvm-portfolio-summary {
  font-size: 15px;
  line-height: 1.75;
  color: #27485c;
  margin: 16px 0 24px;
}

.nvm-portfolio-patents-heading {
  font-size: 16px;
  font-weight: 700;
  color: #133c56;
  margin: 20px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2edf2;
}

/* 核心專利分析卡片 (Patent Card - 扁平直呈，不搞多層 details/summary 隱藏) */
.nvm-patent-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nvm-vendor-patent-card {
  background: #fdfefe;
  border: 1px solid #c2d7e5;
  border-radius: 4px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(16, 52, 77, 0.04);
  transition: border-color 0.15s ease-in-out;
}

.nvm-vendor-patent-card:hover {
  border-color: #8bb5cc;
  box-shadow: 0 2px 8px rgba(16, 52, 77, 0.07);
}

.nvm-patent-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1edf3;
  margin-bottom: 16px;
}

.nvm-patent-card-identity {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1 1 500px;
}

.nvm-patent-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #087f86;
  background: #e4f2f4;
  border: 1px solid #a8d5d9;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.nvm-patent-id-badge:hover {
  background: #087f86;
  color: #ffffff;
  border-color: #087f86;
}

.nvm-patent-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #10334a;
  margin: 0;
  line-height: 1.4;
}

/* 專利卡片頭部標籤組 */
.nvm-patent-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.nvm-patent-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1.4;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
}

.nvm-status-active {
  background: #e6f6ee;
  color: #0d6e3c;
  border: 1px solid #a3dfbe;
}

.nvm-status-expired {
  background: #fbf1e4;
  color: #8c5b16;
  border: 1px solid #edd1a4;
}

.nvm-status-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.nvm-status-active .nvm-status-indicator {
  background: #199451;
}

.nvm-status-expired .nvm-status-indicator {
  background: #bf7e24;
}

.nvm-patent-expiry-tag {
  font-size: 12px;
  color: #557285;
  background: #f0f5f8;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid #d4e3eb;
  max-width: 100%;
  overflow-wrap: break-word;
}

.nvm-patent-badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
}

.nvm-badge-cat {
  background: #edf3f7;
  color: #2b536f;
  border: 1px solid #cadbe6;
}

.nvm-badge-gen {
  background: #f3f0f7;
  color: #553b75;
  border: 1px solid #dcd4ea;
}

/* 專利卡片活動與過期外框差別 */
.nvm-card-active {
  border-left: 4px solid #199451;
}

.nvm-card-expired {
  border-left: 4px solid #bf7e24;
}

.nvm-patent-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #557285;
}

.nvm-patent-card-meta strong {
  color: #27495e;
}

/* 自由實施 (FTO) 評估行 */
.nvm-patent-fto-row {
  background: #faf6ee;
  border-left: 3px solid #b38030;
  padding: 10px 14px;
  border-radius: 0 3px 3px 0;
}

.nvm-patent-fto-row dt {
  color: #805615;
  font-weight: 800;
}

.nvm-patent-fto-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #3b2b11;
}

/* 機構頭部狀態摘要 */
.nvm-meta-status-pill {
  background: #eef5f8;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #c9dce6;
}

.nvm-meta-active {
  color: #0d6e3c;
  font-weight: 700;
}

.nvm-meta-expired {
  color: #8c5b16;
  font-weight: 700;
}

/* 附錄表格狀態標籤與圖例 */
.nvm-patent-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: #35586f;
  background: #f4f8fa;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #d3e4ed;
  margin: 12px 0 16px;
}

.nvm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nvm-legend-dot {
  font-size: 11px;
}

.nvm-legend-active {
  color: #0d6e3c;
}

.nvm-legend-expired {
  color: #8c5b16;
}

.nvm-patent-tag-active {
  background: #eef8f2 !important;
  color: #0c6a39 !important;
  border-color: #a7e0c0 !important;
}

.nvm-patent-tag-expired {
  background: #fbf5eb !important;
  color: #885715 !important;
  border-color: #ecd5ae !important;
}

/* 專利分析網格行 */
.nvm-patent-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nvm-patent-grid-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.nvm-patent-grid-row dt {
  font-weight: 700;
  color: #3b5c71;
}

.nvm-patent-grid-row dd {
  margin: 0;
  color: #1a384c;
  overflow-wrap: anywhere;
}

/* 獨立權利項 (Claim 1) 專門高亮導讀樣式 */
.nvm-patent-claim-row {
  background: #f0f7f8;
  border-left: 3px solid #087f86;
  padding: 12px 14px;
  border-radius: 0 3px 3px 0;
}

.nvm-patent-claim-row dt {
  color: #087f86;
  font-weight: 800;
}

.nvm-patent-claim-text {
  font-size: 14px;
  line-height: 1.65;
  color: #0d2e42;
  font-weight: 500;
}

.nvm-patent-footer-meta {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px dashed #d5e5ee;
  font-size: 13px;
  color: #506d80;
}

.nvm-patent-footer-meta dt {
  font-weight: 700;
  color: #4b6a7f;
}

.nvm-patent-footer-meta dd {
  margin: 0;
}

.nvm-patent-footer-meta a {
  color: #087f86;
  font-weight: 600;
  text-decoration: underline;
}

/* 專利演進時序線 (Timeline) */
/* 專利訴訟與防禦深度案卷 (Patent Litigation & Defense Dossier) */
.nvm-vendor-litigation-section {
  margin: 32px 0 28px;
  background: #fdfaf5;
  border: 1px solid #e5d8c3;
  border-left: 4px solid #b38030;
  border-radius: 4px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(130, 90, 30, 0.04);
}

.nvm-litigation-header {
  margin-bottom: 18px;
  border-bottom: 1px solid #ebdcc5;
  padding-bottom: 14px;
}

.nvm-litigation-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #94651a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.nvm-litigation-header h4 {
  font-size: 19px;
  color: #2b1f0c;
  margin: 2px 0 8px;
}

.nvm-litigation-overview {
  font-size: 14.5px;
  line-height: 1.7;
  color: #403017;
  margin: 0;
}

.nvm-litigation-battles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.nvm-battle-card {
  background: #ffffff;
  border: 1px solid #e8dbca;
  border-radius: 3px;
  padding: 14px 16px;
}

.nvm-battle-card h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #241705;
  margin: 0 0 8px;
}

.nvm-battle-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #423219;
  margin: 0;
}

.nvm-litigation-fto-box {
  background: #f7eedf;
  border: 1px dashed #d9bf98;
  border-radius: 3px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

.nvm-litigation-fto-box strong {
  display: block;
  color: #7d4f0d;
  margin-bottom: 4px;
}

.nvm-litigation-fto-box p {
  color: #382810;
  margin: 0;
}

.nvm-patent-timeline-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #dbe6ee;
}

.nvm-patent-timeline-section h4 {
  font-size: 18px;
  color: #11364e;
  margin: 0 0 6px;
}

.nvm-timeline-intro {
  font-size: 14px;
  color: #4e6c80;
  margin: 0 0 20px;
}

.nvm-patent-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nvm-timeline-node {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  background: #f7fafc;
  border: 1px solid #d5e3ed;
  border-radius: 3px;
  padding: 14px 18px;
}

.nvm-timeline-period {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nvm-timeline-period span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  color: #087f86;
}

.nvm-timeline-period small {
  font-size: 12px;
  color: #587487;
  line-height: 1.3;
}

.nvm-timeline-content h5 {
  font-size: 15px;
  color: #133951;
  margin: 0 0 6px;
}

.nvm-timeline-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #27495d;
  margin: 0 0 10px;
}

.nvm-timeline-content dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  font-size: 13px;
}

.nvm-timeline-content dt {
  color: #537083;
  font-weight: 600;
}

.nvm-timeline-content dd {
  margin: 0;
  color: #13354b;
  font-weight: 600;
}

/* 附錄：產業競爭格局矩陣 (Competitive Landscape Appendix) */
.nvm-competitive-appendix {
  margin-top: 60px;
  background: #fbfdfd;
  border: 1px solid #cbdde7;
  border-top: 3px solid #6b889c;
  border-radius: 4px;
  padding: 24px 28px;
}

.nvm-competitive-appendix .nvm-landscape-header {
  border-bottom: 1px solid #e1edf3;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.nvm-competitive-appendix .nvm-landscape-header h3 {
  font-size: 20px;
  color: #143c56;
  margin: 4px 0 6px;
}

.nvm-competitive-appendix .nvm-landscape-lede {
  font-size: 14px;
  color: #4b6a7f;
  margin: 0;
}

.nvm-vendor-landscape-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.nvm-vendor-landscape-table th {
  background: #edf4f8;
  color: #18415c;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #c8dbe6;
  font-size: 13px;
}

.nvm-vendor-landscape-table th:nth-child(1) { width: 18%; }
.nvm-vendor-landscape-table th:nth-child(2) { width: 20%; }
.nvm-vendor-landscape-table th:nth-child(3) { width: 24%; }
.nvm-vendor-landscape-table th:nth-child(4) { width: 23%; }
.nvm-vendor-landscape-table th:nth-child(5) { width: 15%; }

.nvm-vendor-landscape-table td {
  padding: 12px;
  border-bottom: 1px solid #e0ecf3;
  vertical-align: top;
  min-width: 0;
  overflow-wrap: break-word;
}

.nvm-landscape-patents {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  align-items: center;
}

.nvm-landscape-vendor-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #087f86;
  background: #e3f1f3;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 6px;
}

.nvm-landscape-vendor-link {
  font-weight: 700;
  color: #113c56;
  text-decoration: underline;
}

.nvm-landscape-vendor-sub {
  font-size: 12px;
  color: #59778a;
  margin: 2px 0;
}

.nvm-landscape-model {
  font-size: 12px;
  color: #688597;
}

.nvm-landscape-family-item {
  font-size: 13px;
}

.nvm-landscape-physics-p {
  font-size: 13px;
  line-height: 1.5;
  color: #1b3d52;
  margin: 0 0 6px;
}

.nvm-landscape-physics-p:last-child {
  margin-bottom: 0;
}

.nvm-landscape-patent-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #087f86;
  background: #edf6f8;
  border: 1px solid #bedee3;
  border-radius: 2px;
  padding: 1px 5px;
  text-decoration: none;
  white-space: nowrap;
}

.nvm-landscape-patent-badge:hover {
  background: #087f86;
  color: #ffffff;
}

.nvm-landscape-foundry-p {
  font-size: 13px;
  color: #1f4257;
  margin: 0 0 4px;
}

.nvm-landscape-foundry-p:last-child {
  margin-bottom: 0;
}

/* 響應式佈局適配 (Responsive Breakpoints) */
@media (max-width: 1200px) {
  .nvm-vendor-landscape-table,
  .nvm-vendor-landscape-table tbody,
  .nvm-vendor-landscape-table tr,
  .nvm-vendor-landscape-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .nvm-vendor-landscape-table thead {
    display: none;
  }
  .nvm-vendor-landscape-table tr {
    background: #ffffff;
    border: 1px solid #cadbe6;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }
  .nvm-vendor-landscape-table td {
    padding: 10px 0;
    border: 0;
    border-bottom: 1px dashed #e1edf3;
  }
  .nvm-vendor-landscape-table td:last-child {
    border-bottom: 0;
  }
  .nvm-vendor-landscape-table td:first-child {
    font-size: 17px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cadbe6;
  }
  .nvm-vendor-landscape-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #43657a;
    margin-bottom: 5px;
    letter-spacing: 0.03em;
  }
  .nvm-vendor-landscape-table td:first-child:before {
    display: none;
  }
}

@media (max-width: 900px) {
  .nvm-vendor-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nvm-litigation-battles {
    grid-template-columns: 1fr;
  }
  .nvm-portfolio-specs dl {
    grid-template-columns: 1fr;
  }
  .nvm-patent-grid-row,
  .nvm-patent-footer-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .nvm-timeline-node {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .nvm-vendor-stats-grid {
    grid-template-columns: 1fr;
  }
  .nvm-vendor-litigation-section {
    padding: 16px 14px;
  }
  .nvm-patent-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nvm-patent-card-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: auto;
  }
  .nvm-patent-card-meta {
    flex-direction: column;
    gap: 4px;
  }
  .nvm-vendor-patent-card {
    padding: 14px 12px;
  }
  .nvm-entity-nav {
    padding: 12px 10px;
  }
  .nvm-entity-pills {
    gap: 6px;
  }
  .nvm-entity-pill {
    padding: 6px 10px;
    font-size: 13px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .nvm-patent-portfolio-group {
    padding: 16px 12px;
  }
  .nvm-patent-status-legend {
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
  }
}



/* 專利地圖：總覽、篩選與保留案卷的閱讀入口。 */
#patent-maps [hidden] { display: none !important; }
.nvm-map-header { align-items: center; gap: 24px; }
.nvm-map-header h2 { max-width: 22ch; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.nvm-map-header .nvm-lede { max-width: 65ch; font-size: 1.05rem; line-height: 1.6; }
.nvm-map-asof { font-size: .82rem; color: #456171; }
.nvm-map-stats { display: grid; grid-template-columns: repeat(2,minmax(90px,1fr)); gap: 16px 24px; min-width: 220px; margin: 0; }
.nvm-map-stats div { border-top: 1px solid #aac7c8; padding-top: 8px; }
.nvm-map-stats dt { font-size: .75rem; color: #456171; }
.nvm-map-stats dd { margin: 0; color: #00686c; font-size: 2rem; font-weight: 650; line-height: 1.3; }
.nvm-map-explorer { margin: 28px 0; }
.nvm-map-explorer h3 { margin: 4px 0 8px; font-size: 1.5rem; }
.nvm-map-explorer header > p:last-child { margin-top: 0; color: #456171; }
.nvm-map-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: end; padding: 20px; background: #eef5f5; border: 1px solid #c6dada; }
.nvm-map-controls label:first-child { grid-column: 1 / -1; }
.nvm-map-controls button { justify-self: start; max-width: 15rem; }
.nvm-map-controls label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 650; min-width: 0; }
.nvm-map-controls input, .nvm-map-controls select, .nvm-map-controls button { box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid #91adb8; border-radius: 3px; background: white; color: #163f53; font: inherit; padding: 9px 10px; }
.nvm-map-controls button { cursor: pointer; font-size: .85rem; }
.nvm-map-record-actions { display: flex; justify-content: flex-end; margin: 8px 0 12px; }
.nvm-map-record-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; color: #00696d; text-underline-offset: 4px; }
#nvm-map-heading, #nvm-map-results { scroll-margin-top: var(--nvm-anchor-top,150px); }
#nvm-map-count { min-height: 1.5em; margin: 14px 0; font-size: .88rem; font-weight: 650; color: #315a69; }
.nvm-map-matrix-wrap { overflow-x: auto; border: 1px solid #c8d8df; border-radius: 4px; }
.nvm-map-matrix { border-collapse: collapse; width: 100%; min-width: 630px; font-size: .86rem; }
.nvm-map-matrix caption { text-align: left; padding: 14px; color: #456171; background: #f2f6f7; line-height: 1.5; }
.nvm-map-matrix th, .nvm-map-matrix td { padding: 4px 8px; border-bottom: 1px solid #dce6e9; text-align: center; }
.nvm-map-matrix thead th { padding-block: 12px; color: #456171; font-weight: 600; }
.nvm-map-matrix th:first-child { text-align: left; width: 26%; }
.nvm-map-matrix tbody th { background: #f6f9f9; }
.nvm-map-matrix a { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; color: #00696d; text-underline-offset: 4px; }
.nvm-map-matrix tbody th a { justify-content: flex-start; }
.nvm-map-matrix tbody tr:hover { background: #edf6f5; }
.nvm-map-reading-links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0; }
.nvm-map-reading-links a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; font-size: .9rem; }
.nvm-map-empty {
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  background: #f8fafc;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 0.92rem;
}
.nvm-map-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
}
.nvm-map-reset-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0284c7;
}
.nvm-map-reset-btn:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
#nvm-map-results { border-left: 3px solid #087f86; padding: 8px 20px; margin-top: 20px; }
#nvm-map-results ul { padding-left: 1.1em; }
#nvm-map-results li { padding: 10px 0; }
#nvm-map-results li span { display: block; color: #456171; font-size: .85rem; }
.nvm-map-evidence { padding: 20px 24px; background: #f8f4ec; border-left: 3px solid #9b6c31; font-size: .9rem; line-height: 1.65; }
.nvm-map-evidence h3 { font-size: 1.05rem; margin: 0 0 8px; }
.nvm-map-evidence p { margin: 8px 0 0; }
#patent-maps :is(input,select,button,a,[tabindex]):focus-visible { outline: 3px solid #a15d17; outline-offset: 3px; }
#patent-maps :is(.nvm-vendor-study,.nvm-patent-portfolio-group,.nvm-vendor-patent-card,.nvm-map-evidence,#nvm-map-dossiers) { scroll-margin-top: var(--nvm-anchor-top,150px); }
#patent-maps :is(p,dd,h3,h4,h5,h6,.nvm-patent-card-badges) { overflow-wrap: anywhere; }
#patent-maps .nvm-patent-card-body { margin: 0; }
@media (max-width: 1100px) {
  .nvm-map-controls { grid-template-columns: 1fr 1fr; }
  .nvm-map-controls label:first-child { grid-column: 1 / -1; }
  .nvm-map-controls label:has(#nvm-map-company) { grid-column: 1 / -1; }
  .nvm-map-controls button { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .nvm-map-header { display: block; padding: 20px; }
  .nvm-map-stats { grid-template-columns: repeat(4,minmax(0,1fr)); min-width: 0; gap: 10px; margin-top: 20px; }
  .nvm-map-stats dt { font-size: .65rem; min-height: 2.8em; }
  .nvm-map-stats dd { font-size: 1.6rem; }
  .nvm-map-controls { padding: 14px; gap: 12px; }
  .nvm-map-controls label { font-size: .8rem; }
  .nvm-map-controls select { padding-inline: 5px; }
  .nvm-map-evidence { padding: 16px; }

  /* 矩陣表格卡片化：確保在窄螢幕下無任何單元格超出視窗邊界 */
  .nvm-map-matrix-wrap {
    overflow-x: visible;
    border: none;
    max-width: 100%;
  }
  .nvm-map-matrix {
    display: block;
    position: relative;
    min-width: 0;
    width: 100%;
    border-collapse: separate;
  }
  .nvm-map-matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nvm-map-matrix caption {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
  }
  .nvm-map-matrix tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .nvm-map-matrix tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #c8d8df;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
  }
  .nvm-map-matrix tr:hover {
    background: #ffffff;
  }
  .nvm-map-matrix th[scope="row"] {
    position: static;
    box-shadow: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0 10px;
    border: none;
    border-bottom: 1px solid #e1edf0;
    font-size: 1.05rem;
  }
  .nvm-map-matrix th[scope="row"] a {
    font-weight: 700;
    color: #123e59;
    min-height: 44px;
    min-width: auto;
  }
  .nvm-map-matrix td[data-map-cell] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid #d8e5ea;
    border-radius: 3px;
    background: #f7fafb;
    font-size: 0.82rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .nvm-map-matrix td[data-map-cell]:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #557285;
  }
  .nvm-map-matrix td[data-map-cell] a {
    font-weight: 700;
    min-width: 44px;
    min-height: 44px;
    padding: 0 2px;
  }
  .nvm-map-matrix td[data-map-cell] span {
    color: #8da4b0;
  }
  .nvm-map-matrix td[data-map-row-total] {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 0 0;
    border: none;
    border-top: 1px dashed #e1edf0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a4968;
    box-sizing: border-box;
  }
  .nvm-map-matrix td[data-map-row-total]:before {
    content: attr(data-label) ": ";
    font-weight: 500;
    color: #557285;
  }
  .nvm-map-reading-links { gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { #patent-maps * { scroll-behavior: auto; transition: none; } }
#patent-maps > .nvm-map-header { grid-template-columns: minmax(0,1fr) 230px; }
#patent-maps .nvm-map-header > div { min-width: 0; }
#patent-maps [tabindex="-1"]:focus-visible { outline: none; }
.nvm-keyboard-navigation #patent-maps [tabindex="-1"]:focus-visible { outline: 3px solid #a15d17; outline-offset: 3px; }
@media (max-width: 700px) { #patent-maps > .nvm-map-header { grid-template-columns: 1fr; } }

/* 申請公開案與其他未核定狀態保留獨立呈現。 */
.nvm-status-unverified, .nvm-patent-tag-unverified { color: #735318; background: #fff4d5; }
.nvm-card-unverified { border-left-color: #a77c2b; }

/* 全球 14 家廠商專利全景矩陣樣式 */
.nvm-map-summary-matrix-wrap {
  overflow-x: auto;
  border: 1px solid #c8d8df;
  border-radius: 4px;
  margin-top: 20px;
  background: #ffffff;
}
.nvm-map-summary-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.nvm-map-summary-table caption {
  text-align: left;
  padding: 14px 16px;
  color: #0f4c5c;
  background: #f0f7f8;
  font-weight: 600;
  border-bottom: 1px solid #c8d8df;
}
.nvm-map-summary-table th, .nvm-map-summary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #dce6e9;
  vertical-align: middle;
}
.nvm-map-summary-table thead th {
  background: #f8fafb;
  color: #456171;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #b8ccd4;
}
.nvm-map-summary-table tbody th {
  background: #fdfefe;
  text-align: left;
  width: 20%;
}
.nvm-map-summary-table tbody th a {
  color: #00696d;
  text-decoration: none;
}
.nvm-map-summary-table tbody th a:hover {
  text-decoration: underline;
}
.nvm-vendor-alias {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  color: #5c7684;
}
.nvm-map-grant-cell {
  text-align: center;
  white-space: nowrap;
  width: 12%;
}
.nvm-map-grant-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #e0f2f1;
  color: #004d40;
  font-weight: 700;
  border-radius: 12px;
  font-size: 0.82rem;
  border: 1px solid #b2dfdb;
}
.nvm-map-grant-total {
  color: #004d40;
  font-size: 0.95rem;
}
.nvm-map-families-cell {
  width: 32%;
}
.nvm-map-fam-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nvm-map-fam-list li {
  margin-bottom: 4px;
  font-size: 0.82rem;
}
.nvm-map-fam-list a {
  color: #00696d;
  text-decoration: none;
}
.nvm-map-fam-list a:hover {
  text-decoration: underline;
}
.nvm-fam-count {
  color: #64748b;
  font-size: 0.78rem;
}
.nvm-map-summary-table tfoot th, .nvm-map-summary-table tfoot td {
  background: #f2f7f8;
  font-weight: 600;
  color: #0f4c5c;
  border-top: 2px solid #b8ccd4;
}
.nvm-map-summary-table tbody tr:hover {
  background: #f4faf9;
}

/* 優先權日時間軸：與收錄狀態徽章同色；待核對用空心點區分。 */
.nvm-priority-timeline { margin: 32px 0; }
.nvm-priority-timeline > p { max-width: 72ch; color: #334155; line-height: 1.75; }
.nvm-timeline-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 12px 0; font-size: 14px; color: #1e293b; }
.nvm-timeline-legend li { display: inline-flex; align-items: center; gap: 6px; }
.nvm-timeline-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.nvm-timeline-key[data-status="active"] { background: #199451; }
.nvm-timeline-key[data-status="expired"] { background: #bf7e24; }
.nvm-timeline-key[data-status="unverified"] { background: #ffffff; box-shadow: inset 0 0 0 2px #735318; }
.nvm-timeline-wrap { overflow-x: auto; border: 1px solid #d9e2e7; border-radius: 6px; background: #ffffff; }
.nvm-timeline-wrap:focus-visible { outline: 3px solid #14777a; outline-offset: 2px; }
.nvm-timeline-wrap svg { display: block; width: 100%; min-width: 880px; height: auto; }
.nvm-timeline-wrap text { font: 500 13px/1 system-ui, "Microsoft JhengHei", sans-serif; fill: #334155; }
.nvm-timeline-grid { stroke: #e2e8f0; stroke-width: 1; }
.nvm-timeline-lane { stroke: #eef2f5; stroke-width: 1; }
.nvm-timeline-dot[data-status="active"] { fill: #199451; }
.nvm-timeline-dot[data-status="expired"] { fill: #bf7e24; }
.nvm-timeline-dot[data-status="unverified"] { fill: #ffffff; stroke: #735318; stroke-width: 1.4; }
.nvm-timeline-table { margin-top: 12px; }
.nvm-timeline-table summary { cursor: pointer; font-weight: 600; color: #155959; }
.nvm-timeline-table table { margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.nvm-timeline-table th, .nvm-timeline-table td { padding: 6px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
@media print { .nvm-timeline-wrap { overflow: visible; } .nvm-timeline-wrap svg { min-width: 0; } }
.nvm-timeline-hint { display: none; margin: 0 0 8px; font-size: 13px; color: #475569; }
@media (max-width: 900px) { .nvm-timeline-hint { display: block; } }
