/* ==========================================================================
   Prosecutor report - chart + layout styles.

   Loaded AFTER styles.css and report.css, which already own the page chrome
   (header, container, .ppr-card shell, .ppr-unlock aside, unlock modal, toasts).
   Nothing here redefines those. This file only adds what the prosecutor charts
   need, ported from the chart POC.

   The POC's own tokens are mapped onto the Pay Per Patent palette so the
   prosecutor report looks like the rest of the product rather than like the
   POC. Colours INSIDE the charts are not themed - they are data encodings that
   must keep matching the /pa screen, so they stay as the chart JS sets them.
   ========================================================================== */

:root {
    /* Aliases so the ported POC rules keep reading naturally. */
    --ppr-border: var(--ppp-color-border);
    --ppr-ink-muted: var(--ppp-color-text-muted);
    --ppr-accent: var(--ppp-color-primary);
    --ppr-accent-soft: var(--ppp-color-icon-bg);
}

/* ---------- two-column card body: chart + insights aside ---------- */

.ppr-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.ppr-split--even { grid-template-columns: 1fr 1fr; }

/* Grid items default to min-width:auto, so a wide scrolling chart would stretch
   its column and push the aside off the card. Pin them to zero so the chart
   scrolls inside its own track instead. */
.ppr-split > * { min-width: 0; }

.ppr-split > .ppr-split__aside {
    border-left: 1px solid var(--ppr-border);
    padding-left: 20px;
}

@media (max-width: 900px) {
    .ppr-split,
    .ppr-split--even { grid-template-columns: 1fr; }

    .ppr-split > .ppr-split__aside {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--ppr-border);
        padding-top: 16px;
    }
}

/* ---------- insight bullets ---------- */

.ppr-insights {
    list-style: disc;
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--ppp-color-text-dark);
}

.ppr-insights li { margin-bottom: 10px; }

.ppr-hl {
    color: var(--ppr-accent);
    font-weight: 600;
}

/* 166495 - Empty-data placeholder for a chart with nothing to show (e.g. a
   prosecutor with a tiny application history). Keeps the card the same height
   so the layout doesn't jump. */
.ppr-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.ppr-muted {
    color: var(--ppr-ink-muted);
    font-size: 13px;
}

.ppr-center { text-align: center; }

/* Heading above each of the paired FR / NFR charts in "Time Between a Response
   & Office Action" - without them the two charts are indistinguishable. */
.ppr-subchart-title {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ppr-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--ppp-color-text-dark);
}

/* Allowance-rate formula under the Allowance Trend chart (Percentage view). */
.ppr-allowance-formula {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    color: var(--ppr-ink-muted);
}

.ppr-chart-caption {
    text-align: center;
    font-size: 13px;
    color: var(--ppr-ink-muted);
    margin: 6px 0 0;
}

/* Appeal Decisions & Briefs pager. */
.ppr-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
}

.ppr-pager__label {
    color: var(--ppr-ink-muted);
}

.ppr-pager .ppr-btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

/* Totals line above the Allowance Rate (Granted/Abandoned) bar chart. */
.ppr-chart-totals {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ppr-ink-muted);
    margin: 0 0 8px;
}

.ppr-chart-totals p {
    margin: 0;
}

.ppr-chart-totals strong {
    color: var(--ppr-ink);
}

/* ---------- legend swatches (allowance-rate rings) ---------- */

.ppr-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 7px;
    vertical-align: middle;
}

/* ---------- pinned-Y-axis horizontally scrolling chart (Group Art Units) ----
   The Y axis is drawn once and stays put while the plot area scrolls sideways,
   which is how the /pa screen handles a prosecutor with many art units. */

.ppr-scrollchart { display: flex; align-items: flex-start; }
.ppr-scrollchart__y { flex: 0 0 auto; }
.ppr-scrollchart__x { overflow-x: auto; overflow-y: hidden; }

.ppr-scrollchart__x::-webkit-scrollbar { height: 8px; }

.ppr-scrollchart__x::-webkit-scrollbar-thumb {
    background: #c7d2e5;
    border-radius: 4px;
}

/* ---------- chart toggle buttons (Value/Percentage, Filing/Grant Year) ------
   Named ppr-chartbtn rather than ppr-btn: report.css has no .ppr-btn today, but
   these sit inside chart cards and must not inherit any future global button
   styling that would change their size mid-chart. */

.ppr-toggles {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}

.ppr-btn {
    padding: 6px 14px;
    border: 1px solid var(--ppr-border);
    border-radius: var(--ppp-radius-sm);
    background: var(--ppp-color-white);
    color: var(--ppp-color-text-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ppr-btn:disabled { opacity: 0.55; cursor: default; }

.ppr-btn--ghost {
    background: transparent;
    color: var(--ppr-ink-muted);
}

.ppr-btn--on {
    background: var(--ppr-accent);
    color: var(--ppp-color-white);
    border-color: var(--ppr-accent);
}

/* ---------- data tables inside cards ---------- */

.ppr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ppr-table th,
.ppr-table td {
    border: 1px solid var(--ppr-border);
    padding: 7px 10px;
    text-align: left;
}

.ppr-table th {
    background: var(--ppp-color-light-bg);
    font-weight: 700;
    color: var(--ppp-color-text-dark);
}

.ppr-table--scroll {
    display: block;
    max-height: 320px;
    overflow-y: auto;
    /* Explicit - otherwise the CSS Overflow spec computes overflow-x to
       auto too (since overflow-y isn't visible), adding a horizontal
       scrollbar the moment any row's content is a hair too wide, instead
       of the vertical-only scroll the tool shows. Cell text already wraps
       (no white-space:nowrap anywhere on .ppr-table), so nothing clips. */
    overflow-x: hidden;
}

/* Allowance-rate pill in the Popular Applicants table. Clickable: it opens the
   same applicant drill-down the chart bars do. */
.ppr-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--ppp-radius-pill);
    background: #64748b;
    color: var(--ppp-color-white);
    font-size: 12px;
    font-weight: 600;
}

.ppr-tag.clickable-rate { cursor: pointer; }
.ppr-tag.clickable-rate:hover { filter: brightness(1.12); }

/* Badge colours are a data encoding (±10pp against the overall rate), set by
   the backend as `classes` - keep them as /pa renders them. */
.ppr-tag.badge-success { background: #3f9b46; }
.ppr-tag.badge-warning { background: #b8860b; }
.ppr-tag.badge-danger  { background: #ed5b56; }
.ppr-tag.badge-primary { background: #0d6efd; }

/* Appeal Decisions & Briefs cells (Appeal Briefs / Examiner's Answers / Reply
   Briefs / PTAB Decisions): the Solr-sourced markup ships its own Bootstrap-
   style `class="badge badge-primary badge-warning"`. The internal tool renders
   these as plain links, NOT coloured pills, so the badge classes are flattened
   to a simple link here - the per-status colours (success/warning/danger) are
   deliberately neutralised rather than mapped, keeping the column scannable. */
.badge {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--ppr-accent);
    font-size: inherit;
    font-weight: 400;
}
.badge.badge-primary,
.badge.badge-success,
.badge.badge-warning,
.badge.badge-danger { background: none; color: var(--ppr-accent); }

/* ---------- hero links: Claim Profile button + LinkedIn ---------- */

.ppr-hero__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.ppr-hero__claim {
    gap: 8px;
}

.ppr-hero__claim svg {
    width: 16px;
    height: 16px;
}

/* On the dark hero the plain "View LinkedIn profile" link needs a light colour. */
.ppr-hero .ppr-extlink {
    color: #cfe8ff;
}

/* ---------- report headline ----------
   "<name> Prosecutor Report", drawn as soon as the free preview responds. */

.ppr-report-title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--ppp-color-text-dark);
}

@media (max-width: 640px) {
    .ppr-report-title { font-size: 22px; }
}

/* ---------- prosecutor identity header (the free card) ---------- */

.ppr-identity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
}

/* ---------- AI summary ----------
   Named ppr-ai-summary, NOT ppr-summary: report.css already defines
   .ppr-summary for the patent report's abstract and the two would collide. */

.ppr-ai-summary {
    margin: 14px 0 0;
    padding: 14px 16px;
    background: var(--ppp-color-light-bg);
    border-radius: var(--ppp-radius-sm);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ppp-color-text-dark);
}

/* ---------- per-card loading / error states ----------
   Each data type lands independently, so a card carries its own state: one slow
   or failed section must never blank out a report someone has paid for. */

.ppr-card__pending,
.ppr-card__failed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 4px;
    font-size: 13px;
    color: var(--ppr-ink-muted);
}

.ppr-card__failed { color: #b4453f; }

/* Peer-distribution modal: the loading/error state has no chart around it
   yet, so center it in the body rather than hugging the left edge. */
#pprDistStatus .ppr-card__pending,
#pprDistStatus .ppr-card__failed {
    justify-content: center;
    padding: 48px 4px;
}

.ppr-card__pending .ppr-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* ---------- note strip (filing-history statistics sentence) ---------- */

.ppr-note {
    padding: 10px 14px;
    border-radius: var(--ppp-radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
}

.ppr-note--info {
    background: var(--ppr-accent-soft);
    color: var(--ppp-color-text-dark);
}

/* ---------- peer distribution modal ----------
   The /pa version is built from Antd (Modal/Select/DatePicker/Radio/Tag), none
   of which exist on a static page, so the controls are rebuilt in plain HTML
   against the Pay Per Patent tokens. Behaviour matches: basis toggle, GAU
   subset, date presets + custom range, Apply/Reset. */

.ppr-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 27, 52, 0.55);
}

.ppr-modal[hidden] { display: none; }

.ppr-modal__panel {
    background: var(--ppp-color-white);
    border-radius: var(--ppp-radius-lg);
    box-shadow: var(--ppp-shadow-search);
    width: 100%;
    max-width: 1200px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}

.ppr-modal__panel--sm { max-width: 520px; }

.ppr-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--ppr-border);
}

.ppr-modal__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--ppp-color-text-dark);
}

.ppr-modal__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--ppr-ink-muted);
    padding: 0 4px;
}

.ppr-modal__body {
    padding: 12px 24px 24px;
    overflow-y: auto;
}

.ppr-distbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0 16px;
}

.ppr-distbar select,
.ppr-distbar input[type="date"] {
    padding: 5px 9px;
    border: 1px solid var(--ppr-border);
    border-radius: var(--ppp-radius-sm);
    font: inherit;
    font-size: 12px;
    background: var(--ppp-color-white);
    color: var(--ppp-color-text-dark);
}

/* Art-unit options carry the technology-area title, so they are long. Pin the
   width or the list box stretches the whole filter bar and wraps it. */
.ppr-distbar select[multiple] {
    width: 260px;
    max-width: 260px;
    height: auto;
}

/* Peer-distribution summary bullets (above the chart) + zone legend and
   "How to read this" explainer (below the chart). Mirrors the plain-language
   copy of the internal /pa AllowanceValueAddedDistribution component - added
   because the modal previously had only the bare chart, with nothing to help
   a buyer interpret it. No filter/customization controls are added here on
   purpose (see the comment above #pprDistModal). */
.ppr-dist-summary { margin-bottom: 8px; }
.ppr-dist-point {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    color: var(--ppp-color-text-dark);
    padding: 3px 0;
}
.ppr-dist-zones {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}
.ppr-dist-zones-note {
    font-size: 11px;
    color: var(--ppr-ink-muted);
    text-align: center;
    margin-top: 4px;
}
.ppr-dist-help {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--ppr-border);
    font-size: 12px;
    color: var(--ppp-color-text-dark);
}
.ppr-dist-help__title { font-weight: 700; margin-bottom: 6px; }
.ppr-dist-help > div { margin-bottom: 4px; line-height: 1.5; }

.ppr-seg { display: inline-flex; }

.ppr-seg .ppr-btn {
    border-radius: 0;
    margin-left: -1px;
}

.ppr-seg .ppr-btn:first-child {
    border-radius: var(--ppp-radius-sm) 0 0 var(--ppp-radius-sm);
    margin-left: 0;
}

.ppr-seg .ppr-btn:last-child { border-radius: 0 var(--ppp-radius-sm) var(--ppp-radius-sm) 0; }

/* Trigger that opens the peer distribution from the allowance-rate card. */
.ppr-dist-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ppr-border);
    background: var(--ppp-color-white);
    border-radius: var(--ppp-radius-pill);
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ppr-accent);
    cursor: pointer;
}

.ppr-dist-trigger:hover { background: var(--ppr-accent-soft); }

/* 166495 - Profile table signal metrics (Allowance Rate, Avg Grant Time, Avg
   Office Actions) coloured blue + bold, matching /pa's StyledBlueText. */
.ppr-table td.ppr-hl-val {
    color: var(--ppr-accent);
    font-weight: 600;
}

/* 166495 - Inline peer-distribution icon to the right of the entity's own
   allowance rate (mirrors the /pa UserProfile graph icon). */
.ppr-dist-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ppr-accent);
    cursor: pointer;
    vertical-align: middle;
}
.ppr-dist-inline:hover { color: var(--ppp-color-bg-dark); }
.ppr-dist-inline svg { display: block; }

/* Icon-only peer-distribution trigger placed under the Examiner gauge
   specifically (not centered under the whole gauge row). Hover/focus reveals
   a small dark tooltip instead of a permanent "View peer distribution" label. */
.ppr-dist-inline--gauge {
    margin: 6px auto 0;
    position: relative;
}
.ppr-dist-inline--gauge[data-tooltip]::before,
.ppr-dist-inline--gauge[data-tooltip]::after {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.ppr-dist-inline--gauge[data-tooltip]::before {
    content: attr(data-tooltip);
    margin-bottom: 8px;
    padding: 5px 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
}
.ppr-dist-inline--gauge[data-tooltip]::after {
    content: '';
    margin-bottom: 3px;
    border: 5px solid transparent;
    border-top-color: #1f2937;
}
.ppr-dist-inline--gauge[data-tooltip]:hover::before,
.ppr-dist-inline--gauge[data-tooltip]:hover::after,
.ppr-dist-inline--gauge[data-tooltip]:focus-visible::before,
.ppr-dist-inline--gauge[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

/* ---------- utility ---------- */

.ppr-hidden { display: none !important; }

/* ==========================================================================
   167309 - free examiner report + UI review fixes. Scoped to the examiner page
   (body.ppr-body--examiner) so the prosecutor report keeps its look.
   ========================================================================== */

/* Free mode: the CTA box replaces the unlock and "unlocked" boxes. */
.ppr-unlock--free { display: none; }
body.is-free .ppr-unlock--free { display: flex; }
body.is-free .ppr-unlock--locked,
body.is-free .ppr-unlock--unlocked { display: none; }
.ppr-unlock--free .ppr-unlock__cta { text-decoration: none; }

/* Highlights are emphasis, not links: bold dark text, not blue. */
.ppr-body--examiner .ppr-insights .ppr-hl,
.ppr-body--examiner .ppr-insights [style*="color"] { color: inherit !important; font-weight: 700; }
.ppr-body--examiner .ppr-table td.ppr-hl-val { color: inherit; }

/* Shared tooltip: hover, keyboard focus and tap (a tap focuses the button). */
.ppr-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 4px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #9aa8bb;
    background: transparent;
    color: #5b6b82;
    font: 700 10px/1 "Nunito Sans", system-ui, sans-serif;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    cursor: help;
    position: relative;
    vertical-align: middle;
}
.ppr-tip:hover,
.ppr-tip:focus { border-color: #0a5ea8; color: #0a5ea8; outline: none; }
.ppr-tip::after,
.ppr-tip-inline::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #0f1f33;
    color: #fff;
    font: 500 12px/1.45 "Nunito Sans", system-ui, sans-serif;
    text-align: left;
    text-transform: none;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(15, 31, 51, 0.25);
    /* display:none, not just hidden: a hidden box still widens the page on phones. */
    display: none;
    z-index: 50;
    pointer-events: none;
}
.ppr-tip:hover::after,
.ppr-tip:focus::after,
.ppr-tip-inline:hover::after { display: block; }
.ppr-tip-inline { position: relative; cursor: help; }
.ppr-table th .ppr-tip::after,
.ppr-card__head .ppr-tip::after { left: auto; right: -10px; transform: none; }
.ppr-table td:first-child .ppr-tip::after,
.ppr-id-card__label .ppr-tip::after { left: -10px; transform: none; }
.ppr-body--examiner .ppr-card__head,
.ppr-body--examiner .ppr-id-card { overflow: visible; }
/* Scroll tables keep their own overflow (never override it); their tips open downwards. */
.ppr-table--scroll th .ppr-tip::after { bottom: auto; top: calc(100% + 8px); }

/* Email copy button: icon only, same line as the email. */
.ppr-id-card__value-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ppr-id-card__value-row > .ppr-id-card__value { min-width: 0; overflow-wrap: anywhere; }
.ppr-copy {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #5b6b82;
    cursor: pointer;
    position: relative;
}
.ppr-copy:hover { background: #eef6fd; border-color: #c9d3e0; color: #0a5ea8; }
.ppr-copy.is-done { color: #1e8449; }
.ppr-copy::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 5px;
    background: #0f1f33;
    color: #fff;
    font: 600 11px/1.2 "Nunito Sans", system-ui, sans-serif;
    white-space: nowrap;
    display: none;
    pointer-events: none;
}
.ppr-copy:hover::after,
.ppr-copy:focus-visible::after,
.ppr-copy.is-done::after { display: block; }
.ppr-copy:focus-visible { outline: 2px solid #0a5ea8; outline-offset: 2px; }

/* Profile table "Vs art units" column. */
.ppr-diff { font-weight: 700; font-size: 13px; }
.ppr-diff--worse { color: #c0392b; }
.ppr-diff--better { color: #1e8449; }
.ppr-diff--none { color: #9aa8bb; font-weight: 400; }
.ppr-diff-legend { margin: 8px 0 0; font-size: 12px; color: #5b6b82; }
.ppr-body--examiner #pprProfileTable td:nth-child(n+2),
.ppr-body--examiner #pprProfileTable th:nth-child(n+2) { white-space: nowrap; }

/* Allowance Rate Comparison: same gauges, bigger and evenly spread. */
.ppr-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; padding: 4px 0; }
.ppr-gauges__col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 16px; }
.ppr-gauges__col + .ppr-gauges__col { border-left: 1px solid #eef1f5; }
.ppr-gauges__chart { width: 190px; height: 190px; max-width: 100%; }
.ppr-gauges__label { margin-top: 8px; font-size: 16px; font-weight: 600; color: #4c5773; }
.ppr-gauges__sub { font-size: 13px; color: #8a94a6; }
@media (max-width: 760px) {
    .ppr-gauges { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ppr-gauges__col + .ppr-gauges__col { border-left: 0; border-top: 1px solid #eef1f5; padding-top: 16px; }
}

/* Allowance Trend toggles as labelled segmented controls. */
.ppr-toggles--segmented { gap: 20px; flex-wrap: wrap; }
.ppr-seg-ctl { display: flex; align-items: center; gap: 8px; }
.ppr-seg-ctl__label { font-size: 12px; font-weight: 700; color: #5b6b82; text-transform: uppercase; letter-spacing: 0.06em; }
.ppr-seg-ctl__group { display: inline-flex; border: 1px solid #0a5ea8; border-radius: 8px; overflow: hidden; }
.ppr-seg__btn {
    padding: 6px 14px;
    border: 0;
    border-left: 1px solid #0a5ea8;
    background: #fff;
    color: #0a5ea8;
    font: 600 13px/1.2 "Nunito Sans", system-ui, sans-serif;
    cursor: pointer;
}
.ppr-seg__btn:first-child { border-left: 0; }
.ppr-seg__btn:hover { background: #e6f1fb; }
.ppr-seg__btn.is-on { background: #0a5ea8; color: #fff; }
.ppr-seg__btn:focus-visible { outline: 2px solid #f5a623; outline-offset: -2px; }

/* Phones: wide tables scroll inside their card instead of widening the page. */
@media (max-width: 640px) {
    .ppr-body--examiner .ppr-cards { grid-template-columns: minmax(0, 1fr); }
    .ppr-body--examiner .ppr-card { min-width: 0; }
    .ppr-body--examiner .ppr-card [data-role="content"] { overflow-x: auto; }
    .ppr-body--examiner #pprProfileTable td:nth-child(n+2),
    .ppr-body--examiner #pprProfileTable th:nth-child(n+2) { white-space: normal; }
}

/* 167309 - free page: locked teaser cards keep blurred values and link into TIP. */
body.is-paid .ppr-card--tip-locked .ppr-card__locked { display: block; }
body.is-paid .ppr-card--tip-locked .ppr-card__unlocked { display: none; }
body.is-paid .ppr-card--tip-locked .ppr-card__lock { display: inline-block; }
.ppr-locked-heading {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: #0B2545;
}
.ppr-tip-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f3f6fa;
}
.ppr-tip-cta__text { flex: 1 1 260px; margin: 0; font-size: 14px; color: #3b4a60; }
.ppr-tip-cta__link {
    background: var(--ppp-color-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.ppr-tip-cta__link:hover { background: var(--ppp-color-bg-dark); }

/* Top patent classes under the profile table. */
.ppr-top-classes { margin-top: 20px; }
.ppr-top-classes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.ppr-top-classes__title { margin: 0; font-size: 15px; font-weight: 800; color: #0B2545; }
.ppr-share { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ppr-share__track { width: 80px; height: 8px; border-radius: 4px; background: #e6edf5; overflow: hidden; }
.ppr-share__fill { display: block; height: 100%; background: #0a5ea8; }
.ppr-seg__btn:disabled { color: #9aa7b8; cursor: not-allowed; background: #fff; }
.ppr-top-classes td:nth-child(2) { white-space: normal; text-align: left; }

/* One-line interview benefit above the interviews / RCEs / appeals chart. */
.ppr-interview-line { margin: 0 0 12px; font-size: 15px; color: #0B2545; }

/* 167309 - "Did you mean" list on the not-found page. */
.ppr-error__suggest {
    margin: 0 0 22px;
}

.ppr-error__suggest-title {
    margin: 0 0 8px;
    font-weight: 700;
}

.ppr-error__suggest ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppr-error__suggest li {
    margin: 4px 0;
}

.ppr-error__suggest a {
    color: inherit;
    text-decoration: underline;
}
