.patent-topics { color: var(--white); font-family: var(--font-sans); }
.patent-topics [hidden] { display: none !important; }
.patent-topics button { font: inherit; cursor: pointer; }
.patent-topics button:disabled { cursor: default; }
.patent-topics :is(button, input, a, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.pt-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: 12px; color: var(--text-light); font-size: .75rem; }
.pt-actions button { padding: 5px 0; border: 0; background: transparent; color: var(--text-light); font-size: .75rem; }
.pt-actions button:hover { color: var(--blue-ink); }
.pt-actions button:disabled { opacity: .45; }
.pt-comparison-chart { --comparison-label-width: 250px; --comparison-value-width: 70px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1; min-height: 310px; padding: 12px 0; }
.pt-comparison-scale { position: relative; height: 20px; margin-left: calc(var(--comparison-label-width) + 24px); margin-right: calc(var(--comparison-value-width) + 24px); color: var(--text-light); font-size: 12px; }
.pt-comparison-scale span { position: absolute; transform: translateX(-50%); }
.pt-comparison-scale span:first-child { left: 0; transform: none; }
.pt-comparison-scale span:nth-child(2) { left: 33.333333%; white-space: nowrap; }
.pt-comparison-scale span:nth-child(3) { left: 66.666667%; }
.pt-comparison-scale span:last-child { right: 0; transform: none; }
.pt-comparison-row { position: relative; }
.pt-comparison-button { display: grid; grid-template-columns: var(--comparison-label-width) minmax(0, 1fr) var(--comparison-value-width); gap: 24px; align-items: center; width: 100%; min-height: 60px; padding: 8px 0; border: 0; background: transparent; color: var(--white); text-align: left; }
.pt-comparison-label { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.pt-comparison-label small { display: block; margin-top: 5px; color: var(--text-light); font: 12px var(--font-sans); }
.pt-comparison-button strong { font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-comparison-track { position: relative; height: 10px; border-radius: 2px; background: var(--chart-track); }
.pt-comparison-track > span { display: block; height: 100%; border-radius: 2px; background: var(--blue); }
.pt-comparison-track::after { content: ''; position: absolute; left: 33.333333%; top: -15px; bottom: -15px; border-left: 1px dashed var(--text-light); }
.pt-comparison-button:hover .pt-comparison-label { color: var(--blue-ink); }
.pt-comparison-row .pt-comparison-tooltip { top: calc(100% + 4px); bottom: auto; width: min(440px, 100%); }
.pt-comparison-row .pt-comparison-tooltip::after { inset: auto 0 100%; }
.pt-comparison-row:not(.pt-dismissed):hover .pt-tooltip, .pt-comparison-row:not(.pt-dismissed):focus-within .pt-tooltip { display: block; }
.pt-life-summary { margin: 0; color: var(--text-light); font-size: 14px; line-height: 1.6; }
.pt-life-summary strong { color: var(--white); font-weight: 600; }
.pt-slide { width: 100%; container-type: inline-size; }
.pt-slide-body { box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; padding: 28px; background: var(--surface-card); color: var(--white); }
.pt-slide-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.pt-slide-header h2 { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.pt-slide-header p { margin: 9px 0 0; color: var(--text-light); font-size: 14px; }
.pt-stat { flex-shrink: 0; display: grid; gap: 4px; text-align: right; }
.pt-stat strong { font-size: 28px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-stat span { font-size: 12px; color: var(--text-light); }
.pt-scatter-scroll { flex: 1; }
.pt-scatter-frame { position: relative; min-width: 720px; padding: 0 0 46px 58px; }
.pt-scatter { position: relative; height: 400px; border-left: 1px solid var(--border-mid); border-bottom: 1px solid var(--border-mid); }
.pt-tick-x, .pt-tick-y { position: absolute; color: var(--text-light); font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-tick-x { top: 100%; margin-top: 7px; transform: translateX(-50%); }
.pt-tick-y { right: 100%; left: -58px; padding-right: 8px; text-align: right; transform: translateY(50%); }
.pt-tick-y::after { content: ''; position: absolute; left: 58px; bottom: 50%; width: 100vw; max-width: calc(100cqw - 116px); border-top: 1px dashed var(--border-light); }
.pt-axis-x, .pt-axis-y { position: absolute; color: var(--text-light); font-size: 11px; }
.pt-axis-x { left: 58px; right: 0; bottom: 4px; text-align: center; }
.pt-axis-y { left: 0; top: -20px; }
.pt-dot { position: absolute; width: 12px; height: 12px; margin: 0 0 -6px -6px; padding: 0; border: 1.5px solid var(--surface-card); border-radius: 50%; background: var(--blue); opacity: .55; cursor: pointer; }
.pt-dot-named { opacity: 1; }
.pt-dot:hover, .pt-dot:focus-visible { opacity: 1; z-index: 3; outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.pt-dot-name { position: absolute; color: var(--white); font-size: 12px; font-weight: 600; line-height: 15px; white-space: nowrap; pointer-events: none; }
.pt-dot-right .pt-dot-name { left: 15px; top: -3px; }
.pt-dot-left .pt-dot-name { right: 15px; top: -3px; }
.pt-dot-top .pt-dot-name { left: 50%; bottom: 14px; transform: translateX(-50%); }
.pt-dot-bottom .pt-dot-name { left: 50%; top: 14px; transform: translateX(-50%); }
.pt-dot-tip { display: none; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; width: max-content; max-width: 320px; padding: 11px 13px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface-card); color: var(--text-light); font-size: 12px; line-height: 1.5; text-align: left; box-shadow: var(--shadow-md); }
.pt-dot-tip strong { display: block; color: var(--white); }
.pt-dot-tip em { display: block; margin: 8px 0 2px; padding-top: 8px; border-top: 1px solid var(--border-light); color: var(--text-lighter); font-size: 11px; font-style: normal; }
.pt-dot-tip > span { display: block; margin-top: 3px; padding-left: 10px; border-left: 2px solid var(--blue-light); color: var(--white); line-height: 1.35; }
.pt-tip-below .pt-dot-tip { top: 18px; bottom: auto; }
.pt-tip-start .pt-dot-tip { left: -8px; transform: none; }
.pt-tip-end .pt-dot-tip { left: auto; right: -8px; transform: none; }
.pt-third { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.pt-dot:hover .pt-dot-tip, .pt-dot:focus-visible .pt-dot-tip { display: block; }
.pt-patents { margin-top: 28px; }
.pt-patents h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.015em; }
.pt-patents-sub { margin: 6px 0 18px; color: var(--text-light); font-size: .8125rem; }
.pt-patent-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-card); overflow: hidden; }
.pt-patent { display: grid; grid-template-columns: 22px 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--border-light); }
.pt-patent:first-child { border-top: 0; }
.pt-patent .pt-logo { flex-basis: 48px; width: 48px; height: 48px; border-radius: 10px; }
.pt-patent-rank { color: var(--text-lighter); font-size: .8125rem; font-variant-numeric: tabular-nums; text-align: right; }
.pt-patent-main p { margin: 0; }
.pt-patent-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-light); font-size: .75rem; font-weight: 600; }
.pt-patent-tech { padding: 2px 8px; border-radius: 999px; background: var(--blue-light); color: var(--blue-ink); font-size: .6875rem; font-weight: 500; }
.pt-patent-title { margin: 5px 0 6px !important; color: var(--white); font-size: .9375rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pt-patent-facts { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; color: var(--text-lighter); font-size: .75rem; }
.pt-patent-facts a { color: var(--blue-ink); text-decoration: none; }
.pt-patent-facts a:hover { text-decoration: underline; }
.pt-signal { display: grid; justify-items: end; gap: 5px; }
.pt-signal-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.pt-signal-bars i { width: 5px; border-radius: 1.5px; background: var(--chart-track); }
.pt-signal-bars i:nth-child(1) { height: 30%; } .pt-signal-bars i:nth-child(2) { height: 47%; } .pt-signal-bars i:nth-child(3) { height: 65%; } .pt-signal-bars i:nth-child(4) { height: 82%; } .pt-signal-bars i:nth-child(5) { height: 100%; }
.pt-signal-bars i.on { background: var(--blue); }
.pt-signal small { color: var(--text-light); font-size: .6875rem; white-space: nowrap; }
.pt-company-empty { opacity: .55; cursor: default; }
.pt-company-empty:hover { border-color: var(--border-light); }
.pt-slide-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: auto; }
.pt-slide-footer p { margin: 0; color: var(--text-light); font-size: 11px; line-height: 1.7; }
.pt-slide-footer .pt-brands { display: flex; align-items: center; flex-shrink: 0; gap: 20px; margin: 0; padding: 0; border: 0; }
.pt-brands img { display: block; object-fit: contain; }
.pt-brands img:first-child { width: 110px; height: 26px; }
.pt-brands img:last-child { width: 78px; height: 36px; }
.pt-results-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.pt-results-heading .pt-note { margin: 5px 0 16px; }
.pt-note, .pt-city, .pt-source, .pt-method { color: var(--text-light); font-size: .75rem; line-height: 1.6; }
.pt-note { margin: 12px 0; }
.pt-results { min-width: 0; margin-top: 24px; padding: 24px; border: 1px solid var(--border-light); border-radius: 10px; scroll-margin-top: 90px; }
.pt-results h3 { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; margin: 0 0 4px; scroll-margin-top: 90px; }
.pt-results > .pt-note { margin: 0 0 16px; }
.pt-search { display: grid; gap: 6px; color: var(--text-light); font-size: .75rem; }
.pt-search input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 6px; background: var(--surface-card); color: var(--white); font: inherit; font-size: .875rem; }
.pt-result-count { margin: 14px 0; color: var(--text-light); font-size: .75rem; }
.pt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pt-card { position: relative; min-width: 0; }
.pt-company { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 14px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface-card); color: var(--white); text-align: left; }
.pt-company:hover { border-color: var(--blue); }
.pt-company-name { font-size: .875rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pt-logo { position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--logo-tile-border); border-radius: 8px; background: var(--logo-tile-bg); color: var(--text-light); overflow: hidden; font-size: .75rem; }
.pt-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--logo-tile-bg); }
.pt-tooltip { display: none; position: absolute; left: 0; bottom: calc(100% + 8px); width: min(290px, 75vw); box-sizing: border-box; padding: 15px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface-card); color: var(--text-light); box-shadow: var(--shadow-md); font-size: .75rem; line-height: 1.5; z-index: 10; }
.pt-tooltip::after { content: ''; position: absolute; inset: 100% 0 auto; height: 10px; }
.pt-tooltip strong { color: var(--white); font-size: .875rem; }
.pt-tooltip p { margin: 7px 0 0; }
.pt-card:nth-child(even) .pt-tooltip { left: auto; right: 0; }
.pt-card:not(.pt-dismissed):hover .pt-tooltip, .pt-card:not(.pt-dismissed):focus-within .pt-tooltip { display: block; }
.pt-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--text-light); font-size: .75rem; }
.pt-pagination button, .pt-family-heading button, .pt-results-heading button { border: 1px solid var(--border-light); border-radius: 6px; background: var(--surface-card); color: var(--white); padding: 9px 12px; font-size: .75rem; }
.pt-pagination button:disabled { opacity: .4; }
.pt-families { margin-top: 28px; padding: 22px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-card); scroll-margin-top: 90px; }
.pt-family-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.pt-family-heading p { max-width: 70ch; margin: 0; color: var(--text-light); font-size: .8125rem; line-height: 1.6; }
.pt-family-heading button { flex-shrink: 0; }
.pt-source { margin: 28px 0 8px; }
.pt-method { margin-top: 14px; }
.pt-method summary { cursor: pointer; width: fit-content; }
.pt-method p { max-width: 100ch; margin: 12px 0 0; }
/* Reflow for phones; exported images always restore the widescreen canvas. */
@container (max-width: 850px) {
  .pt-slide-body { padding: 16px 0; gap: 20px; }
  .pt-slide-header h2 { font-size: 24px; }
  .pt-stat strong { font-size: 24px; }
  .pt-comparison-chart { --comparison-label-width: 195px; --comparison-value-width: 50px; }
  .pt-comparison-label { font-size: 18px; }
  .pt-comparison-button strong { font-size: 22px; }
}
@container (max-width: 760px) {
  .pt-slide-header { flex-direction: column; gap: 14px; }
  .pt-stat { display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .pt-slide-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* Phones: the scatter fits the card instead of scrolling; only the names
   placed for this width show (pt-dot-phone-*, a separate build-time pass). */
@container (max-width: 760px) {
  .pt-scatter-frame { min-width: 0; padding: 0 0 40px 44px; }
  .pt-scatter { height: 300px; }
  .pt-tick-y { left: -44px; }
  .pt-tick-y::after { left: 44px; max-width: calc(100cqw - 76px); }
  .pt-axis-x { left: 44px; }
  .pt-dot { width: 10px; height: 10px; margin: 0 0 -5px -5px; }
  .pt-dot-named { opacity: .55; }
  .pt-dot-phone { opacity: 1; }
  .pt-dot .pt-dot-name { display: none; font-size: 11px; }
  .pt-dot-phone .pt-dot-name { display: block; left: auto; right: auto; top: auto; bottom: auto; transform: none; }
  .pt-dot-phone-right .pt-dot-name { left: 13px; top: -3px; }
  .pt-dot-phone-left .pt-dot-name { right: 13px; top: -3px; }
  .pt-dot-phone-top .pt-dot-name { left: 50%; bottom: 12px; transform: translateX(-50%); }
  .pt-dot-phone-bottom .pt-dot-name { left: 50%; top: 12px; transform: translateX(-50%); }
}
@container (max-width: 600px) {
  .pt-comparison-chart { --comparison-value-width: 48px; gap: 16px; }
  .pt-comparison-scale { margin-left: 0; margin-right: 64px; }
  .pt-comparison-button { grid-template-columns: minmax(0, 1fr) 48px; column-gap: 16px; row-gap: 13px; }
  .pt-comparison-label { grid-column: 1 / -1; font-size: 18px; }
  .pt-comparison-label small { display: inline; margin-left: 7px; }
  .pt-comparison-track::after { top: -6px; bottom: -6px; }
  .pt-life-summary { font-size: 13px; }
}
html[data-chart-export] .pt-slide { width: 1200px !important; max-width: none !important; }
html[data-chart-export] .pt-slide-body { width: 1200px; height: 675px; padding: 32px; gap: 24px; }
html[data-chart-export] .pt-tooltip { display: none !important; }
html[data-chart-export] .pt-scatter-scroll { overflow: visible; }
@media (max-width: 700px) {
  .pt-family-heading, .pt-results-heading { flex-direction: column; gap: 12px; }
  .pt-families, .pt-results { padding: 16px; }
  .pt-results-heading { margin-bottom: 14px; }
}
@media (max-width: 420px) {
  .pt-cards { grid-template-columns: 1fr; }
  .pt-card:nth-child(even) .pt-tooltip { left: 0; right: auto; }
}
/* The list sits outside the slide, so the slide's container queries do not reach it. */
@media (max-width: 640px) {
  .pt-patent { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: start; }
  .pt-patent-rank { display: none; }
  .pt-signal { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: end; justify-content: start; gap: 8px; }
}
@media (max-width: 760px) {
  .pt-scatter-scroll { overflow-x: auto; }
}
