.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-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.pt-toolbar .pt-actions { margin: 0; flex-wrap: wrap; }
.pt-views { display: flex; gap: 6px; }
.pt-views button { padding: 8px 12px; border: 0; border-radius: 5px; color: var(--text-light); background: transparent; font-size: .8125rem; }
.pt-views button[aria-pressed="true"] { color: var(--blue-ink); background: var(--blue-light); }
.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-map { position: relative; aspect-ratio: 1136 / 448; min-height: 380px; }
.patent-topics .pt-tile { position: absolute; left: var(--tile-x); top: var(--tile-y); width: var(--tile-w); height: var(--tile-h); display: block; box-sizing: border-box; padding: 3px; border: 0; background: transparent; color: var(--white); text-align: left; }
.pt-tile-face { position: relative; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; width: 100%; height: 100%; padding: 16px; border-radius: 5px; background: var(--blue-light); }
.pt-tile:nth-child(3n) .pt-tile-face { background: var(--navy-lighter); }
.pt-tile:nth-child(4n) .pt-tile-face { background: var(--surface-data); }
.pt-tile-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pt-tile-label { font-family: var(--font-display); font-size: 18px; line-height: 1.2; font-weight: 600; }
.pt-tile-count { font-size: 21px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-examples { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; font-size: 13px; line-height: 1.3; }
.pt-examples > span { display: block; }
.pt-tile-0 .pt-tile-face { padding: 26px; background: var(--blue); color: var(--text-on-inverse); }
.pt-tile-0 .pt-tile-label { max-width: 13ch; font-size: 29px; }
.pt-tile-0 .pt-tile-count { font-size: 38px; }
.pt-tile-0 .pt-examples { flex-direction: column; gap: 7px; font-size: 17px; }
.pt-tile-7 .pt-tile-face { padding: 12px 10px; }
.pt-tile-7 .pt-tile-heading { gap: 5px; }
.pt-tile-7 .pt-tile-label { font-size: 15px; }
.pt-tile-7 .pt-tile-count { font-size: 18px; }
.pt-tile-7 .pt-examples { font-size: 12px; }
.pt-tile:hover .pt-tile-face, .pt-tile[aria-expanded="true"] .pt-tile-face { box-shadow: inset 0 0 0 2px var(--blue); }
.pt-tile-0:hover .pt-tile-face, .pt-tile-0[aria-expanded="true"] .pt-tile-face { box-shadow: inset 0 0 0 2px var(--blue-hover); }
.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-map { min-height: 420px; }
  .pt-tile-face { padding: 12px; }
  .pt-tile-label { font-size: 15px; }
  .pt-tile-count { font-size: 18px; }
  .pt-tile-0 .pt-tile-face { padding: 18px; }
  .pt-tile-0 .pt-tile-label { font-size: 25px; }
  .pt-tile-0 .pt-tile-count { font-size: 30px; }
  .pt-tile-7 .pt-tile-heading { flex-direction: column-reverse; }
  .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-map { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .patent-topics .pt-tile { position: static; width: auto; height: auto; min-height: 122px; padding: 0; }
  .pt-tile-0 { grid-column: 1 / -1; }
  .pt-tile-7 .pt-tile-heading { flex-direction: row; }
  .pt-tile-0 .pt-examples { flex-direction: row; gap: 12px; font-size: 13px; }
  .pt-tile-0 .pt-tile-label { max-width: none; }
  .pt-tile-0 .pt-tile-face { padding: 16px; }
  .pt-tile-0 .pt-tile-count { font-size: 24px; }
  .pt-tile-0 .pt-tile-label { font-size: 21px; }
  .pt-tile-7 { grid-column: 1 / -1; }
  .pt-tile-7 .pt-tile-face { padding: 14px; }
  .pt-slide-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@container (max-width: 340px) {
  .pt-map { grid-template-columns: minmax(0, 1fr); }
}
@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-map { flex: 1; aspect-ratio: auto; min-height: 0; }
html[data-chart-export] .pt-tile-face { box-shadow: none !important; }
html[data-chart-export] .pt-tooltip { display: none !important; }
@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; }
}
