/* ==========================================================================
   Scrimpr Rankings — editorial comparison page
   Full-width section bands, content aligned to one max-width container.

   A. Dark blue header + tab bar   B. Community vote band
   C. Comparison: filters + rankings list   D. Editorial bands
   ========================================================================== */

/* ---------- Tokens (theme colours, rankings-only sizing) ---------- */
.scrimpr-rankings-hub {
    --srk-blue: var(--scrimpr-blue, #1F6A95);
    --srk-blue-dark: var(--scrimpr-blue-dark, #034063);
    --srk-navy: var(--scrimpr-nav-blue-dark, #1A365D);
    --srk-ink: var(--scrimpr-headings, #1E293B);
    --srk-text: var(--scrimpr-body-text, #374151);
    /* Slightly darker than the theme's #64748b so small secondary text stays above AA */
    --srk-muted: #5B6577;
    --srk-line: var(--scrimpr-border-light, #e2e8f0);
    --srk-tint: var(--scrimpr-light-bg, #f0f4f8);
    --srk-green: var(--scrimpr-save-primary, #16A34A);
    --srk-radius: var(--scrimpr-radius-md, 8px);
    --srk-max: 1300px;
    --srk-tap: 44px;

    /* Section surfaces */
    --srk-page: var(--scrimpr-site-bg, #F3F7FC);
    --srk-surface: var(--scrimpr-content-bg, #FFFFFF);
    --srk-wash: #E8F0F8;        /* homepage band colour (mobile-hub.css --wash) */
    --srk-wash-line: #DBE3EE;
    --srk-bar-provisional: var(--scrimpr-border-dark, #ccc);
}

.scrimpr-rankings-hub {
    background: var(--srk-page);
}

/* Section bands run edge to edge, so the theme's centred content box steps aside */
.scrimpr-rankings-hub .site-content {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.srk-page a:focus-visible,
.srk-page button:focus-visible,
.srk-page select:focus-visible,
.srk-page input:focus-visible {
    outline: 2px solid var(--srk-blue);
    outline-offset: 2px;
}

/* One content width for every band */
.srk-wrap {
    max-width: var(--srk-max);
    margin: 0 auto;
    padding: 0 32px;
}

.srk-muted {
    color: var(--srk-muted);
}

.srk-text-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--srk-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.srk-text-link:hover {
    color: var(--srk-blue-dark);
}

/* ==========================================================================
   A. Dark blue header
   ========================================================================== */
.srk-hero {
    padding: 32px 0;
    background: var(--srk-navy);
    color: #fff;
}

.srk-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.srk-crumbs {
    font-size: 14px;
    color: #CBD5E1;
}

.srk-crumbs a {
    color: #E2E8F0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.srk-crumbs a:hover {
    color: #fff;
}

.srk-crumb-sep {
    margin: 0 8px;
}

.srk-crumbs [aria-current] {
    color: #fff;
}

.srk-title {
    margin: 0 0 8px;
    font-size: 2.25rem;
    line-height: 1.2;
    color: #fff;
}

.srk-intro {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: 1.125rem;
    line-height: 1.5;
    color: #E2E8F0;
}

/* "Last updated [date] · What changed" from the page's update log */
.srk-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin: 8px 0 16px;
    font-size: 0.9375rem;
    color: #E2E8F0;
}

.srk-updated-when {
    font-weight: 600;
    color: #fff;
}

.srk-updated-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.srk-updated-link:hover,
.srk-updated-link:focus-visible {
    color: #fff;
    text-decoration-thickness: 2px;
}

.srk-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: #E2E8F0;
}

.srk-stats strong {
    color: #fff;
    font-weight: 700;
}

/* Tab bar: navigation between the three rankings guides */
.srk-tabbar {
    border-bottom: 1px solid var(--srk-line);
    background: var(--srk-surface);
}

.srk-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 32px;
}

.srk-tabs-nav {
    display: flex;
    gap: 32px;
}

/* "Jump to a section": collapsed contents box at the end of the tab bar;
   the list opens over the page rather than pushing it down */
.srk-jump {
    position: relative;
    padding: 8px 0;
}

.srk-jump-box {
    display: inline-block;
    min-width: 280px;
    max-width: 100%;
    border: 1px solid var(--srk-line);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
}

.srk-jump-box summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--srk-tap);
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--srk-blue);
    cursor: pointer;
    list-style: none;
}

.srk-jump-box summary::-webkit-details-marker {
    display: none;
}

.srk-jump-box summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.srk-jump-box[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.srk-jump-list {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    min-width: 320px;
    margin: 0;
    padding: 16px 16px 16px 40px;
    border: 1px solid var(--srk-line);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    box-shadow: 0 8px 24px rgba(15, 39, 66, 0.15);
    font-size: 15px;
    line-height: 1.5;
}

.srk-jump-list li + li {
    margin-top: 8px;
}

.srk-jump-list a {
    color: var(--srk-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.srk-jump-list a:hover {
    text-decoration-thickness: 2px;
}

.srk-tab {
    display: inline-block;
    padding: 16px 0 8px;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--srk-text);
    text-decoration: none;
}

.srk-tab:hover {
    border-bottom-color: var(--srk-line);
    color: var(--srk-ink);
}

.srk-tab.is-active {
    border-bottom-color: var(--srk-blue);
    color: var(--srk-ink);
}

/* Arena whose rankings aren't switched on yet: readable, not clickable */
.srk-tab.is-disabled,
.srk-tab.is-disabled:hover {
    border-bottom-color: transparent;
    color: var(--srk-muted);
    cursor: default;
}

.srk-tab-soon {
    font-size: 14px;
    font-weight: 400;
}

.srk-tab-short {
    display: none;
}

/* ==========================================================================
   B. Community vote band
   ========================================================================== */
.srk-voteband {
    padding: 32px 0;
    border-bottom: 1px solid var(--srk-wash-line);
    background: var(--srk-wash);
}

.srk-voteband.is-empty {
    display: none;
}

.srk-vote {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.srk-vote-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--srk-ink);
}

.srk-vote-intro p {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-arena {
    min-height: 160px;
}

/* Two options with OR between them, then the secondary buttons */
.srk-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.srk-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
        "logo name"
        "logo desc"
        "logo pick";
    grid-template-rows: auto 1fr auto;
    gap: 8px 16px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--srk-wash-line);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, opacity 0.2s ease;
}

.srk-card:hover {
    border-color: var(--srk-blue);
}

.srk-card:disabled {
    cursor: default;
}

.srk-card-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--srk-radius);
    overflow: hidden;
    background: var(--srk-tint);
    color: var(--scrimpr-nav-blue, #2C5282);
    font-size: 1.25rem;
    font-weight: 700;
}

.srk-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.srk-card-name {
    grid-area: name;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--srk-ink);
    overflow-wrap: anywhere;
}

.srk-card-desc {
    grid-area: desc;
    font-size: 15px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-card-pick {
    grid-area: pick;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--srk-radius);
    background: var(--srk-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.srk-card:hover .srk-card-pick {
    background: var(--srk-blue-dark);
}

.srk-card.is-picked {
    border-color: var(--srk-green);
}

.srk-card.is-picked .srk-card-pick {
    background: var(--srk-green);
}

.srk-card.is-lost {
    opacity: 0.4;
}

/* "vs" from the script reads as OR */
.srk-vs {
    align-self: center;
    font-size: 0;
}

.srk-vs::after {
    content: "OR";
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--srk-muted);
}

.srk-vote-btns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.srk-btn {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--scrimpr-border-dark, #ccc);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    font: inherit;
    font-size: 15px;
    color: var(--srk-text);
    cursor: pointer;
}

.srk-btn:hover {
    border-color: var(--srk-blue);
    color: var(--srk-blue);
}

.srk-vote-status {
    min-height: 1.5em;
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--srk-muted);
}

.srk-vote-status.is-ok { color: var(--scrimpr-save-dark, #15803D); }
.srk-vote-status.is-error { color: var(--scrimpr-accent-red-hover, #B91C1C); }

/* ==========================================================================
   C. Comparison: filters (left) + rankings (right)
   ========================================================================== */
.srk-compare {
    padding: 32px 0;
    background: var(--srk-surface);
}

.srk-compare-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* Filters */
.srk-filter-toggle {
    display: none;
}

.srk-fieldset {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid var(--srk-line);
}

.srk-fieldset legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--srk-ink);
}

.srk-fieldset-note {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--srk-muted);
}

/* Long option lists (offerwalls) scroll inside the group instead of stretching the sidebar */
.srk-fieldset-scroll {
    max-height: 256px;
    overflow-y: auto;
    padding-right: 8px;
}

.srk-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--srk-text);
    cursor: pointer;
}

.srk-check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--srk-blue);
}

.srk-check-count {
    margin-left: auto;
    font-size: 14px;
    color: var(--srk-muted);
}

.srk-filter-link {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: var(--srk-blue);
}

.srk-check-note {
    display: block;
    font-size: 14px;
    color: var(--srk-muted);
}

/* Drawer parts: only used at tablet width (see the 769–1100px query) */
.srk-drawer-head,
.srk-drawer-done,
.srk-filter-open,
.srk-drawer-backdrop {
    display: none;
}

.srk-drawer-foot {
    display: contents;
}

.srk-results-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Results */
.srk-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.srk-board-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--srk-ink);
}

.srk-results-count {
    margin: 0;
    font-size: 14px;
    color: var(--srk-muted);
}

/* Receipt apps page: where its points come from */
.srk-view-note {
    /* Own line when the heading row wraps (phones) */
    flex-basis: 100%;
    max-width: 60ch;
    margin: 8px 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-view-note a {
    font-weight: 600;
    color: var(--srk-blue);
}

/* Each row's key facts under its description: labels in one column, values in the other */
.srk-glance {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 24px;
    margin: 8px 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.srk-glance > div {
    display: contents;
}

.srk-glance dt {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--srk-muted);
}

.srk-glance dd {
    margin: 0;
    font-weight: 500;
    color: var(--srk-ink);
    overflow-wrap: anywhere;
}

/* Icons beside the key facts: wide-screen rows only (see the min-width query) */
.srk-glance-icon {
    display: none;
}

/* Referral code popup (receipt apps page): the code, Copy, how to use it, then on */
html.srk-code-lock {
    overflow: hidden;
}

.srk-code-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.55);
}

.srk-code {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    width: min(480px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 16px;
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.3);
    color: var(--srk-text);
    transform: translate(-50%, -50%);
}

.srk-code[hidden],
.srk-code-backdrop[hidden] {
    display: none;
}

.srk-code-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.srk-code-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--srk-ink);
}

.srk-code-close {
    flex: 0 0 var(--srk-tap);
    width: var(--srk-tap);
    height: var(--srk-tap);
    margin: -8px -8px 0 0;
    border: 0;
    border-radius: var(--srk-radius);
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--srk-ink);
    cursor: pointer;
}

.srk-code-close:hover {
    background: var(--srk-tint);
}

.srk-code-bonus {
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.5;
}

.srk-code-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 16px;
    padding: 16px;
    border: 2px dashed var(--srk-blue);
    border-radius: var(--srk-radius);
    background: var(--srk-wash);
}

.srk-code-label {
    flex: 1 0 100%;
    font-size: 0.875rem;
    color: var(--srk-muted);
}

.srk-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--srk-ink);
}

.srk-code-copy {
    min-height: var(--srk-tap);
    margin-left: auto;
    padding: 0 16px;
    border: 2px solid var(--srk-blue);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    font-size: 1rem;
    font-weight: 600;
    color: var(--srk-blue);
    cursor: pointer;
}

.srk-code-copy:hover {
    background: var(--srk-tint);
}

.srk-code-status {
    min-height: 1.5em;
    margin: 8px 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--srk-ink);
}

.srk-code-steps {
    margin: 8px 0 0;
    padding-left: 1.5em;
    font-size: 1rem;
    line-height: 1.5;
}

.srk-code-steps li + li {
    margin-top: 4px;
}

.srk-code-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 16px;
}

.srk-code-go {
    min-height: var(--srk-tap);
}

.srk-code-alt {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    color: var(--srk-blue);
}

.srk-code-close:focus-visible,
.srk-code-copy:focus-visible,
.srk-code-go:focus-visible,
.srk-code-alt:focus-visible {
    outline: 2px solid var(--srk-ink);
    outline-offset: 2px;
}

.srk-sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--srk-text);
}

.srk-sort {
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--scrimpr-border-dark, #ccc);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    font: inherit;
    font-size: 15px;
    color: var(--srk-text);
}

/* The list: one ruled row per site, no cards */
.srk-table-wrap {
    border-top: 1px solid var(--srk-line);
}

.srk-table-wrap[hidden] {
    display: none;
}

.srk-table,
.srk-table tbody {
    display: block;
    width: 100%;
}

/* Column headings once, above the list, instead of labels in every row */
.srk-table thead {
    display: block;
}

.srk-table thead tr,
.srk-table tbody tr {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 150px 110px 190px;
    gap: 8px 16px;
}

.srk-table thead tr {
    grid-template-areas: "rank site comm rating act";
    padding: 8px 0;
    border-bottom: 1px solid var(--srk-line);
}

.srk-table th {
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--srk-muted);
    text-align: left;
}

.srk-table th.srk-col-rank { grid-area: rank; }
.srk-table th.srk-col-site { grid-area: site; }
.srk-table th.srk-col-community { grid-area: comm; padding-left: 16px; }
.srk-table th.srk-col-rating { grid-area: rating; padding-left: 16px; }
.srk-table th.srk-col-actions { grid-area: act; }

.srk-table th.srk-col-desc,
.srk-table th.srk-col-bonus,
.srk-table .srk-cell-label {
    display: none;
}

/* Upper level: rank · site · community · Scrimpr · actions
   Lower level:        description · sign-up offer           */
.srk-table tbody tr {
    grid-template-areas:
        "rank site comm rating act"
        "rank desc desc desc   act";
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--srk-line);
}

/* A sign-up offer gets its own full-width strip along the bottom of the row */
.srk-table tbody tr[data-strip="1"] {
    grid-template-areas:
        "rank site  comm  rating act"
        "rank desc  desc  desc   act"
        "rank bonus bonus bonus  bonus";
}

.srk-table tbody tr[hidden] {
    display: none;
}

.srk-table tbody tr.srk-flash {
    animation: srk-flash 1.2s ease;
}

@keyframes srk-flash {
    from { background: var(--scrimpr-save-light, #DCFCE7); }
    to { background: transparent; }
}

.srk-table td {
    display: block;
    padding: 0;
    border: 0;
}

.srk-table td.srk-col-rank { grid-area: rank; }
.srk-table td.srk-col-site { grid-area: site; }
.srk-table td.srk-col-desc { grid-area: desc; }
.srk-table td.srk-col-community { grid-area: comm; }
.srk-table td.srk-col-rating { grid-area: rating; }
.srk-table td.srk-col-bonus { grid-area: bonus; }
.srk-table td.srk-col-actions { grid-area: act; }

/* Details panel spans the row under everything else (its own implicit grid row) */
.srk-table td.srk-col-details {
    grid-column: 2 / -1;
}

.srk-table td.srk-col-bonus.is-empty {
    display: none;
}

/* Community and Scrimpr: two measures, two ruled columns */
.srk-table td.srk-col-community,
.srk-table td.srk-col-rating {
    padding-left: 16px;
    border-left: 1px solid var(--srk-line);
}

.srk-table td.srk-col-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-cell-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--srk-muted);
}

.srk-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    color: var(--srk-ink);
}

.srk-pos-settling {
    color: var(--srk-muted);
}

.srk-medal {
    color: #fff;
}

/* Darkened so the white number keeps 4.5:1 */
.srk-medal-1 { background: #A27408; }
.srk-medal-2 { background: #64748B; }
.srk-medal-3 { background: #9A5B22; }

.srk-site {
    display: flex;
    align-items: center;
    gap: 16px;
}

.srk-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--srk-radius);
    object-fit: contain;
    background: var(--srk-tint);
}

.srk-logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--scrimpr-nav-blue, #2C5282);
}

.srk-site-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.srk-site-name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--srk-ink);
    overflow-wrap: anywhere;
}

.srk-site-name a {
    color: inherit;
    text-decoration: none;
}

.srk-site-name a:hover {
    color: var(--srk-blue);
    text-decoration: underline;
}

.srk-site-meta {
    font-size: 14px;
    color: var(--srk-muted);
}


.srk-community {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
}

.srk-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--srk-ink);
}

/* Under the vote minimum the score is still settling */
.srk-score.is-provisional {
    color: var(--srk-muted);
}

.srk-score-unit {
    font-weight: 500;
}

/* After a vote: the points it moved, shown briefly beside the score */
.srk-delta {
    font-size: 14px;
    font-weight: 700;
    color: #15803D;
}

.srk-delta.is-down {
    color: #B91C1C;
}

/* ⓘ beside the score: opens the shared points explanation */
.srk-info {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin: -8px -8px -8px 0;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--srk-blue);
    cursor: pointer;
}

.srk-info[aria-expanded="true"] {
    color: var(--srk-blue-dark);
}

/* Desktop: a popover under the narrow Community column. Phones: in the flow. */
.srk-table td.srk-col-community.has-help {
    position: relative;
}

.srk-points-help {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    width: 320px;
    max-width: 80vw;
    margin-top: 8px;
    padding: 8px 16px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--srk-line);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    font-size: 14px;
    line-height: 1.5;
    color: var(--srk-text);
    text-align: left;
    white-space: normal;
}

.srk-points-help p {
    margin: 8px 0;
}

.srk-points-help a {
    color: var(--srk-blue);
    font-weight: 600;
}

.srk-votes {
    font-size: 14px;
    color: var(--srk-muted);
}

/* Favourite: a plain heart at the end of the vote bar (outline, filled once
   picked), with the count beside it. The top site's badge is plain text. */
.srk-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.srk-bar-row .srk-bar {
    flex: 1 1 auto;
    margin-top: 0;
}

.srk-fav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    margin: -4px -4px -4px 0;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--srk-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.srk-fav:hover,
.srk-fav[aria-pressed="true"] {
    color: #BE123C;
}

.srk-fav:focus-visible {
    outline: 2px solid var(--srk-blue);
    outline-offset: 0;
    border-radius: 4px;
}

.srk-fav:disabled {
    cursor: wait;
}

.srk-fav-icon {
    flex: 0 0 18px;
}

.srk-fav[aria-pressed="true"] .srk-fav-icon {
    fill: currentColor;
}

.srk-fav.is-error {
    color: #B91C1C;
}

.srk-fav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.srk-fav-badge {
    font-size: 13px;
    font-weight: 700;
    color: #9F1239;
}

.srk-bar {
    display: block;
    height: 6px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--srk-tint);
    overflow: hidden;
}

.srk-bar-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--srk-green);
    transition: width 0.4s ease;
}

/* Fewer than the minimum votes: grey, so a 2-from-2 bar doesn't look settled */
.srk-bar.is-provisional .srk-bar-fill {
    background: var(--srk-bar-provisional);
}

.srk-rating {
    font-size: 16px;
    font-weight: 700;
    color: var(--srk-ink);
    white-space: nowrap;
}

.srk-rating-star {
    color: var(--scrimpr-warning, #f59e0b);
}

.srk-rating-out {
    font-weight: 400;
    color: var(--srk-muted);
}

/* Survey rows: Scrimpr's verdict. The label carries the meaning; colour only supports it. */
.srk-verdict {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--srk-ink);
}

.srk-verdict-recommended {
    color: #166534;
}

.srk-verdict-trying {
    color: #1E40AF;
}

.srk-verdict-not-recommended {
    color: #92400E;
}

.srk-verdict-avoid {
    color: #991B1B;
}

/* "· provisional" beside the vote count: wide-screen rows only */
.srk-prov {
    display: none;
}

.srk-verdict-stars {
    display: block;
    margin-top: 8px;
}

/* Sign-up offer: a full-width strip with the amount, its conditions and a T&Cs note */
.srk-bonus {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--srk-green);
    border-radius: var(--srk-radius);
    background: var(--scrimpr-save-light, #DCFCE7);
    font-size: 15px;
    line-height: 1.5;
    color: var(--srk-ink);
}

.srk-bonus .srk-bonus-icon {
    flex: 0 0 18px;
    margin-top: 3px;
}

.srk-bonus-text {
    margin: 0;
}

/* The conditions toggle is for phones only */
.srk-bonus-toggle {
    display: none;
}

.srk-bonus strong {
    font-weight: 700;
}

.srk-bonus-tcs {
    font-size: 14px;
    color: var(--srk-muted);
}

/* No direct sign-up: a neutral strip with the steps behind "How to join" */
.srk-join {
    padding: 8px 16px;
    border: 1px solid var(--srk-wash-line);
    border-radius: var(--srk-radius);
    background: var(--srk-wash);
    font-size: 15px;
    line-height: 1.5;
    color: var(--srk-ink);
}

.srk-col-bonus .srk-bonus + .srk-join {
    margin-top: 8px;
}

p.srk-join {
    margin: 0;
}

.srk-join summary {
    cursor: pointer;
}

.srk-join-more {
    font-weight: 600;
    color: var(--srk-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.srk-join ol {
    margin: 8px 0 0;
    padding-left: 16px;
}

.srk-join li + li {
    margin-top: 8px;
}

/* "How [Site] works": reads as part of the listing, not a separate box.
   White, a narrow left accent, thin dividers between sections. */
.srk-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--srk-tap);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--srk-blue);
    cursor: pointer;
    list-style: none;
}

.srk-details summary::-webkit-details-marker {
    display: none;
}

.srk-details summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.srk-details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.srk-details summary:hover {
    text-decoration: underline;
}

.srk-details-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: 16px 32px;
    padding: 0 0 8px 16px;
    border-left: 3px solid var(--srk-wash-line);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-dsec + .srk-dsec {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--srk-line);
}

.srk-dsec-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--srk-ink);
}

.srk-dsec p {
    margin: 0;
}

.srk-dsec .srk-dsec-note {
    margin-top: 8px;
    color: var(--srk-muted);
}

.srk-tips,
.srk-steps {
    margin: 0;
    padding-left: 16px;
}

.srk-steps li + li,
.srk-tips li + li {
    margin-top: 8px;
}

.srk-steps strong {
    color: var(--srk-ink);
}

/* Reward panel: line icon beside each heading, content indented under the heading */
.srk-dsec.has-icon {
    position: relative;
    padding-left: 32px;
}

.srk-dsec-icon {
    position: absolute;
    left: 0;
    color: var(--srk-muted);
}

.srk-dsec + .srk-dsec .srk-dsec-icon {
    top: 16px;
}

.srk-dsec .srk-walls + .srk-walls {
    margin-top: 8px;
}
/* At a glance */
.srk-facts dl {
    margin: 0;
}

.srk-facts {
    margin: 0;
    padding: 16px;
    border-radius: var(--srk-radius);
    background: var(--srk-page);
}

.srk-facts dl div + div {
    margin-top: 16px;
}

.srk-facts dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--srk-muted);
}

.srk-facts dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--srk-ink);
}

.srk-facts .srk-fact-cost dd {
    font-weight: 700;
}

.srk-checked {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--srk-muted);
}

.srk-bonus-icon {
    flex-shrink: 0;
    color: var(--scrimpr-save-dark, #15803D);
}

.srk-actions {
    display: grid;
    gap: 8px;
}

.srk-btn-visit,
.srk-btn-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
    border-radius: var(--srk-radius);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.srk-btn-visit {
    gap: 8px;
    background: var(--srk-blue);
    color: #fff;
}

/* "Go to [Site]" falls back to "Visit site" when it would wrap (rankings.js) */
.srk-go-short,
.srk-btn-visit.is-short .srk-go-long {
    display: none;
}

.srk-btn-visit.is-short .srk-go-short {
    display: inline;
}

/* Same outbound icon as the rest of Scrimpr; the button's gap spaces it */
.bs-cta-external-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -2px;
}

.srk-text-link .bs-cta-external-icon,
.guide-content .btn-primary .bs-cta-external-icon {
    margin-left: 8px;
}

.srk-btn-visit:hover {
    background: var(--srk-blue-dark);
    color: #fff;
}

.srk-btn-review {
    border: 1px solid var(--srk-blue);
    background: var(--srk-surface);
    color: var(--srk-blue);
}

.srk-btn-review:hover {
    background: var(--srk-tint);
}

/* Gap lives on the wrapper: the theme's h3:first-child rule zeroes the heading's top margin. */
.srk-settling {
    margin-top: 32px;
}

.srk-settling-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--srk-ink);
}

.srk-settling-note {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--srk-muted);
}

.srk-settling-note a {
    color: var(--srk-blue);
    font-weight: 600;
}

.srk-empty {
    padding: 16px 0;
    font-size: 16px;
}

.srk-tool-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--srk-blue);
}

/* ==========================================================================
   D. Editorial bands
   ========================================================================== */
.srk-editorial-band {
    padding: 32px 0;
    background: var(--srk-page);
}

.srk-section-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--srk-ink);
}

/* "Best of each type": the editor's pick per survey type above the list (pages that switch it on).
   A compact table; on phones each row stacks into a short block. (Not the older .srk-picks rules.) */
.srk-start {
    padding: 16px 0;
    background: var(--srk-page);
}

.srk-start .srk-section-title {
    margin: 0;
}

.srk-start-intro {
    max-width: 75ch;
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-start-note {
    margin: 0 0 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--srk-muted);
}

.srk-start-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--srk-line);
    border-radius: var(--srk-radius);
    background: var(--srk-surface);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.srk-start-table th,
.srk-start-table td {
    padding: 8px 16px;
    border-bottom: 1px solid var(--srk-line);
    text-align: left;
    vertical-align: middle;
    color: var(--srk-text);
}

.srk-start-table tbody tr:last-child th,
.srk-start-table tbody tr:last-child td {
    border-bottom: 0;
}

.srk-start-table thead th {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--srk-muted);
}

.srk-start-table .srk-start-type {
    font-weight: 700;
    color: var(--srk-blue-dark);
}

.srk-start-name {
    font-weight: 700;
    white-space: nowrap;
}

.srk-start-table .srk-start-name {
    color: var(--srk-ink);
}

.srk-start-name .srk-logo {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.srk-start-table .srk-start-actions {
    white-space: nowrap;
    text-align: right;
}

.srk-start-table .srk-btn-visit {
    min-height: 32px;
    padding: 0 16px;
}

.srk-start-actions .srk-text-link {
    margin-left: 16px;
}

/* Closed sites, listed under the rankings (not ranked, voted on or linked) */
.srk-closed {
    margin-top: 32px;
    padding: 16px;
    border: 1px solid var(--srk-line);
    border-radius: var(--srk-radius);
    background: var(--srk-page);
}

.srk-closed-intro {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-closed-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.srk-closed-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-section-intro {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

/* Personal picks: three editorial columns under a ruled top edge */
.srk-picks {
    margin-bottom: 32px;
}

.srk-picks-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 16px;
}

.srk-pick {
    padding-top: 16px;
    border-top: 3px solid var(--srk-blue);
}

.srk-pick-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--srk-muted);
}

.srk-pick-name {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--srk-ink);
}

.srk-pick-name .srk-logo {
    width: 40px;
    height: 40px;
}

.srk-pick-why {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-method-grid {
    margin-bottom: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--srk-wash-line);
}

.srk-method-text {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-method-text p {
    margin: 0 0 8px;
}

.srk-method-list {
    margin: 0 0 8px;
    padding-left: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-method-list li + li {
    margin-top: 8px;
}

.srk-extras {
    padding-top: 32px;
    border-top: 1px solid var(--srk-wash-line);
}

.srk-extras-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.srk-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--srk-wash-line);
}

.srk-extra-name {
    margin: 0;
    font-size: 1.25rem;
    color: var(--srk-ink);
}

.srk-extra .srk-logo {
    width: 40px;
    height: 40px;
}

.srk-extra-desc,
.srk-extra-who {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-extra-who {
    font-size: 15px;
}

.srk-extra .srk-text-link {
    margin-top: auto;
}

/* Workplace schemes placed inside the article by [scrimpr_workplace_schemes] */
.guide-content .srk-extras {
    padding-top: 0;
    border-top: 0;
}

.guide-content .srk-extras-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.guide-content .srk-extra h3.srk-extra-name {
    margin: 0;
}

/* The guide itself: ordinary article styling on white */
.srk-guide-band {
    padding: 32px 0;
    background: var(--srk-surface);
}

/* The article continues the page rather than sitting in its own guide box */
.srk-guide-band .guide-content {
    max-width: 960px;
}

/* Update log: the site's note format (theme .scrimpr-comments), left-aligned in its band */
.srk-updates-band {
    padding: 32px 0;
    background: var(--srk-page);
}

.srk-updates.scrimpr-comments {
    max-width: 760px;
    margin: 0;
}

.srk-updates-intro {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--srk-text);
}

.srk-updates .scrimpr-comments__list {
    margin-bottom: 0;
}

.srk-guide-band .guide-content .has-top-divider {
    margin-top: 0;
    padding: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.srk-editorial-note {
    font-size: 14px;
    color: var(--srk-muted);
}

/* ==========================================================================
   Responsive overrides — largest to smallest
   ========================================================================== */

/* Wide screens: a comparison-table row. Top line: rank, site, community score, Scrimpr's
   verdict and the Go button, each in its own column, all aligned to the top. Below it, aligned
   with the site column: the description, key facts, sign-up offer and details link.
   The heading row is kept for screen readers only; each row carries its own labels. */
@media (min-width: 1101px) {
    .srk-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .srk-table thead tr {
        display: block;
    }

    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        grid-template-columns: 40px minmax(0, 1fr) 150px 120px 170px;
        grid-template-areas:
            "rank site  comm  rating act"
            "rank desc  desc  desc   desc"
            "rank bonus bonus bonus  bonus";
        align-items: start;
        column-gap: 16px;
        row-gap: 0;
        padding: 16px 0;
    }

    /* Rank: a small square, centred on the logo line (community medals keep their colours) */
    .srk-table td.srk-col-rank {
        display: flex;
        align-items: center;
        height: 44px;
    }

    .srk-table .srk-pos {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .srk-table .srk-pos:not(.srk-medal) {
        border: 1px solid var(--srk-line);
        background: var(--srk-page);
        color: var(--srk-ink);
    }

    /* Site: 44px logo (wide logos fit without stretching), name, then type */
    .srk-table td.srk-col-site .srk-logo {
        width: 44px;
        height: 44px;
        object-fit: contain;
        background: #fff;
    }

    .srk-table td.srk-col-site .srk-logo-letter {
        background: var(--srk-tint);
    }

    .srk-table .srk-site-name {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .srk-table .srk-site-meta {
        font-size: 0.8125rem;
        line-height: 1.5;
        color: var(--srk-muted);
    }

    /* The two measures: labelled, in their own ruled columns */
    .srk-table td.srk-col-community,
    .srk-table td.srk-col-rating {
        align-self: stretch;
        padding-left: 16px;
        border-left: 1px solid var(--srk-line);
    }

    .srk-table .srk-cell-label {
        display: block;
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.5;
        color: var(--srk-muted);
    }

    /* Community score, three short lines: label and ⓘ; points and the favourite heart;
       votes (and "provisional" under the vote minimum). The two pseudo-elements are line breaks. */
    .srk-table td.srk-col-community {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        align-content: start;
        gap: 0 8px;
    }

    .srk-table td.srk-col-community::before,
    .srk-table td.srk-col-community::after {
        content: "";
        flex-basis: 100%;
        height: 0;
    }

    .srk-table td.srk-col-community .srk-cell-label { order: 1; }
    .srk-table td.srk-col-community .srk-info { order: 2; margin: 0; padding: 0; }
    .srk-table td.srk-col-community::before { order: 3; }
    .srk-table td.srk-col-community .srk-score { order: 4; }
    .srk-table td.srk-col-community .srk-fav { order: 5; }
    .srk-table td.srk-col-community::after { order: 6; }
    .srk-table td.srk-col-community .srk-votes { order: 7; }

    .srk-table td.srk-col-community .srk-community,
    .srk-table td.srk-col-community .srk-bar-row {
        display: contents;
    }

    .srk-table td.srk-col-community .srk-score {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.5;
    }

    .srk-table td.srk-col-community .srk-votes,
    .srk-table td.srk-col-community .srk-prov {
        font-size: 0.8125rem;
        color: var(--srk-muted);
    }

    .srk-table td.srk-col-community .srk-prov {
        display: inline;
    }

    /* The bar repeated the points as a shape without a scale, so it's left out here */
    .srk-table td.srk-col-community .srk-bar {
        display: none;
    }

    /* Scrimpr verdict: the word, then the stars directly beneath */
    .srk-table td.srk-col-rating .srk-verdict {
        display: block;
        white-space: normal;
    }

    .srk-table td.srk-col-rating .srk-verdict-stars {
        display: block;
        margin-top: 0;
    }

    /* Go button: its own column, full column width, 40px tall */
    .srk-table td.srk-col-actions .srk-btn-visit,
    .srk-table td.srk-col-actions .srk-btn-review {
        width: 100%;
        min-height: 40px;
        padding: 8px;
        border-radius: 6px;
        font-size: 0.875rem;
        font-weight: 600;
    }

    /* Supporting section, aligned with the site column */
    .srk-table td.srk-col-desc {
        max-width: 90ch;
        padding-top: 8px;
        font-size: 0.9375rem;
        line-height: 1.5;
        color: var(--srk-text);
    }

    .srk-table td.srk-col-bonus {
        padding-top: 16px;
    }

    .srk-table td.srk-col-bonus .srk-bonus {
        padding: 8px 16px;
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .srk-table td.srk-col-details {
        grid-column: 2 / -1;
        padding-top: 8px;
    }

    .srk-table td.srk-col-details .srk-details > summary {
        min-height: 0;
        font-size: 0.875rem;
        font-weight: 600;
    }

    /* Key facts: one line where they fit, wrapping where they don't; icon, muted label, value */
    .srk-glance-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 32px;
        margin-top: 8px;
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .srk-glance-row > div {
        display: flex;
        align-items: flex-start;
        gap: 0 8px;
        min-width: 0;
    }

    .srk-glance-row dt {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        white-space: nowrap;
        font-size: inherit;
        font-weight: 400;
        color: var(--srk-muted);
    }

    .srk-glance-row dt::after {
        content: ":";
    }

    .srk-glance-row dd {
        min-width: 0;
        font-size: inherit;
        font-weight: 600;
        color: var(--srk-ink);
    }

    .srk-glance-row .srk-glance-icon {
        display: inline-block;
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        margin-right: 8px;
        color: var(--srk-muted);
    }
}

/* Too narrow for the five-column rows: filters fold behind a button,
   results become cards, two per row */
@media (max-width: 1100px) {
    .srk-compare-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .srk-filter-toggle {
        display: inline-flex;
        align-items: center;
        min-height: var(--srk-tap);
        padding: 0 16px;
        border: 1px solid var(--srk-blue);
        border-radius: var(--srk-radius);
        background: var(--srk-surface);
        font: inherit;
        font-size: 16px;
        font-weight: 600;
        color: var(--srk-blue);
        cursor: pointer;
    }

    .srk-filter-toggle::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    .srk-filter-toggle[aria-expanded="true"]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .srk-filters-panel {
        display: none;
        margin-top: 16px;
        padding: 16px;
        border: 1px solid var(--srk-line);
        border-radius: var(--srk-radius);
    }

    .srk-filters.is-open .srk-filters-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 32px;
    }

    .srk-filters.is-open .srk-clear {
        justify-self: start;
    }

    .srk-fieldset {
        border-bottom: 0;
    }

    .srk-table-wrap {
        border-top: 0;
    }

    .srk-table thead {
        display: none;
    }

    .srk-table .srk-cell-label {
        display: block;
    }

    .srk-table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        grid-template-areas:
            "rank site  rating"
            "desc desc  desc"
            "comm comm  comm"
            "bonus bonus bonus"
            "act  act   act";
        align-content: start;
        padding: 16px;
        border: 1px solid var(--srk-line);
        border-radius: var(--srk-radius);
        background: var(--srk-surface);
    }

    .srk-table td.srk-col-rank { align-self: center; }
    /* Always after the buttons, even when the bonus row is empty */
    .srk-table td.srk-col-details { grid-column: 1 / -1; grid-row: 6; }

    .srk-details-body {
        grid-template-columns: minmax(0, 1fr);
    }
    .srk-table td.srk-col-rating { align-self: center; text-align: right; }

    .srk-table td.srk-col-community,
    .srk-table td.srk-col-rating {
        padding-left: 0;
        border-left: 0;
    }

    .srk-table .srk-logo {
        width: 40px;
        height: 40px;
    }

    .srk-table td.srk-col-desc {
        font-size: 15px;
    }

    .srk-actions {
        grid-template-columns: 1fr 1fr;
    }

    .srk-btn-visit,
    .srk-btn-review {
        min-height: var(--srk-tap);
    }

    .srk-vote {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* Tablet and phones: Filters sits beside Sort, and the filters open in a side
   drawer over the page instead of pushing the rankings down. */
@media (max-width: 1100px) {
    .srk-filters .srk-filter-toggle {
        display: none;
    }

    .srk-filter-open {
        display: inline-flex;
        align-items: center;
        min-height: var(--srk-tap);
        padding: 0 16px;
        border: 1px solid var(--srk-blue);
        border-radius: var(--srk-radius);
        background: var(--srk-surface);
        font: inherit;
        font-size: 16px;
        font-weight: 600;
        color: var(--srk-blue);
        cursor: pointer;
    }

    .srk-filters-panel,
    .srk-filters.is-open .srk-filters-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        width: min(400px, 90vw);
        margin: 0;
        padding: 0 16px;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: var(--srk-surface);
        box-shadow: -8px 0 32px rgba(15, 39, 66, 0.2);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s;
    }

    .srk-filters.is-open .srk-filters-panel {
        transform: none;
        visibility: visible;
    }

    .srk-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0 -16px 16px;
        padding: 8px 16px;
        border-bottom: 1px solid var(--srk-line);
        background: var(--srk-surface);
    }

    .srk-drawer-title {
        margin: 0;
        font-size: 1.25rem;
        color: var(--srk-ink);
    }

    .srk-drawer-close {
        width: var(--srk-tap);
        height: var(--srk-tap);
        border: 0;
        background: transparent;
        font-size: 1.75rem;
        line-height: 1;
        color: var(--srk-ink);
        cursor: pointer;
    }

    .srk-drawer-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: sticky;
        bottom: 0;
        margin: auto -16px 0;
        padding: 16px;
        border-top: 1px solid var(--srk-line);
        background: var(--srk-surface);
    }

    .srk-drawer-done {
        display: inline-flex;
        align-items: center;
        min-height: var(--srk-tap);
        padding: 0 16px;
        border: 0;
        border-radius: var(--srk-radius);
        background: var(--srk-blue);
        font: inherit;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
    }

    .srk-drawer-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(15, 23, 42, 0.4);
    }

    .srk-drawer-lock {
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .srk-picks-list,
    .srk-extras-list,
    .guide-content .srk-extras-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .srk-filters.is-open .srk-filters-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Verdict on phones: the stars carry "Recommended", so the word shows only for the other
       verdicts (or when there are no stars), smaller and free to wrap, so the site column keeps its width */
    .srk-table td.srk-col-rating .srk-verdict-recommended:has(+ .srk-verdict-stars) {
        display: none;
    }

    .srk-table td.srk-col-rating .srk-verdict {
        font-size: 0.8125rem;
        white-space: normal;
    }

    /* "Best of each type": each row stacks (type above the pick, links beside them) */
    .srk-start-table thead {
        display: none;
    }

    .srk-start-table tbody {
        display: block;
    }

    .srk-start-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 16px;
        align-items: center;
        padding: 8px 16px;
        border-bottom: 1px solid var(--srk-line);
    }

    .srk-start-table tbody tr:last-child {
        border-bottom: 0;
    }

    .srk-start-table th,
    .srk-start-table td {
        padding: 0;
        border-bottom: 0;
    }

    /* The payout facts stay one tap away under Details, so each row is two short lines */
    .srk-start-table .srk-start-fact {
        display: none;
    }

    .srk-start-table .srk-start-type {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.8125rem;
    }

    .srk-start-table .srk-start-name {
        grid-column: 1;
        grid-row: 2;
    }

    .srk-start-table .srk-start-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .srk-wrap {
        padding: 0 16px;
    }

    /* Compact header */
    .srk-hero {
        padding: 16px 0;
    }

    .srk-hero-top {
        margin-bottom: 8px;
    }

    .srk-title {
        font-size: 1.6rem;
    }

    .srk-intro {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .srk-stats {
        gap: 0 16px;
        font-size: 14px;
    }

    /* Tabs share the width; the jump box drops to its own line beneath them */
    .srk-tabs-nav {
        flex: 1 0 100%;
        gap: 0;
    }

    .srk-jump {
        flex: 1 0 100%;
        padding: 8px 0 16px;
    }

    .srk-jump-box {
        display: block;
    }

    .srk-jump-list {
        left: 0;
        min-width: 0;
    }

    .srk-tab {
        flex: 1;
        padding: 16px 8px 8px;
        text-align: center;
    }

    .srk-tab-soon {
        display: none;
    }

    /* "Receipt apps" reads "Receipts" so the four tabs fit; the full label stays for screen readers */
    .srk-tab-long {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .srk-tab-short {
        display: inline;
    }

    .srk-compare {
        padding: 16px 0 32px;
    }

    .srk-filters.is-open .srk-filters-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .srk-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .srk-board-title {
        font-size: 1.25rem;
    }

    /* One card per row */
    .srk-table tbody {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Vote inside the list after the third site (rankings.js) */
    .srk-table tbody tr.srk-vote-slot {
        display: block;
        grid-column: 1 / -1;
        padding: 16px;
        border: 0;
        border-radius: var(--srk-radius);
        background: var(--srk-wash);
    }

    .srk-vote-intro p,
    .srk-vote-intro .srk-text-link {
        display: none;
    }

    .srk-vote-title {
        font-size: 1.25rem;
        text-align: center;
    }

    /* Side-by-side options, stacked inside */
    .srk-pair {
        gap: 8px;
    }

    .srk-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "logo"
            "name"
            "desc"
            "pick";
        grid-template-rows: auto auto 1fr auto;
        justify-items: center;
        padding: 16px 8px;
        text-align: center;
    }

    .srk-card-name {
        font-size: 16px;
    }

    .srk-card-desc {
        font-size: 14px;
    }

    .srk-card-pick {
        justify-self: stretch;
        justify-content: center;
        padding: 0 8px;
        font-size: 14px;
    }

    .srk-vote-btns {
        justify-content: center;
    }

    .srk-vote-status {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .srk-crumbs {
        display: none;
    }

    .srk-hero-top {
        justify-content: flex-end;
    }

    .srk-settling {
        margin-top: 16px;
    }

    .srk-settling-title {
        font-size: 1.125rem;
    }
}


/* ==========================================================================
   Phone layout pass (2026-11-01)
   Phones get the rankings sooner: tighter header and tab bar, the count shown
   once (above the list), Filters + Sort on one row (filters open in the
   drawer) and a short "not ranked yet" note. Desktop is unchanged: the short
   note is hidden above 768px.
   ========================================================================== */

/* The short "not ranked yet" note is for phones */
.srk-note-short {
    display: none;
}

/* In-page anchors clear the site header when scrolled to */
.srk-page [id] {
    scroll-margin-top: 76px;
}

@media (max-width: 768px) {
    .srk-hero {
        padding: 12px 0 14px;
    }

    .srk-hero-top {
        margin-bottom: 6px;
    }

    .srk-title {
        margin-bottom: 6px;
        font-size: 1.5rem;
    }

    .srk-intro {
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.45;
    }

    .srk-intro-more,
    .srk-stat-count {
        display: none;
    }

    .srk-tab {
        min-height: var(--srk-tap);
        padding: 12px 8px 9px;
    }

    .srk-jump {
        padding: 6px 0 10px;
    }








    .srk-compare {
        padding: 12px 0 28px;
    }

    .srk-compare-grid {
        gap: 0;
    }

    /* Heading, then Filters + Sort on one row */
    .srk-results-head {
        gap: 8px;
        margin-bottom: 12px;
    }

    .srk-results-tools {
        width: 100%;
        gap: 8px;
    }

    .srk-filter-open {
        flex: 0 0 auto;
    }

    .srk-sort-label {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .srk-sort {
        flex: 1;
        width: 100%;
        min-width: 0;
        min-height: var(--srk-tap);
    }

    /* "Not ranked yet" as a short note, not a section heading */
    .srk-settling,
    .srk-results-head + .srk-settling {
        margin-top: 12px;
    }

    .srk-results-head + .srk-settling {
        margin-top: 0;
    }

    .srk-settling-title {
        margin: 0 0 2px;
        font-size: 0.9375rem;
        font-weight: 700;
    }

    .srk-settling-note {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.45;
    }

    .srk-note-long {
        display: none;
    }

    .srk-note-short {
        display: inline;
    }

    .srk-tool-link {
        display: inline-flex;
        align-items: center;
        min-height: var(--srk-tap);
    }

    /* 44px tap targets */
    .srk-check {
        min-height: var(--srk-tap);
    }

    .srk-jump-list li + li {
        margin-top: 0;
    }

    .srk-jump-list a {
        display: flex;
        align-items: center;
        min-height: var(--srk-tap);
    }

    /* The disclosure button keeps its look; an invisible pad makes it 44px to tap */
    .srk-hero .scrimpr-disclosure-button {
        position: relative;
    }

    .srk-hero .scrimpr-disclosure-button::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: var(--srk-tap);
        transform: translateY(-50%);
    }
}

/* Very narrow phones: the select's own text says what it sorts by, and the
   Scrimpr rating moves beside the community result so the site name gets the
   full width (long names like "CheckoutSmart" broke mid-word up to ~375px). */
@media (max-width: 399px) {
    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        grid-template-areas:
            "rank site  site"
            "desc desc  desc"
            "comm comm  rating"
            "bonus bonus bonus"
            "act  act   act";
    }

    .srk-table td.srk-col-rating {
        align-self: start;
    }
}

@media (max-width: 359px) {
    .srk-sort-label > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* ==========================================================================
   Phones: less above the list (2026-11-01)
   Title + intro → tabs → Filters/Sort → small count + "* = links I may earn
   from" → list. The affiliate disclosure moves from a button row atop the
   header to a small link beside the count, under the "… rankings" heading;
   "Jump to a section" moves below the rankings; "Not ranked yet" is a single
   line.
   ========================================================================== */
.srk-jump-m,
.srk-m-disclosure {
    display: none;
}

@media (max-width: 768px) {
    .srk-tabbar .srk-jump,
    .srk-hero-top .scrimpr-disclosure-button {
        display: none;
    }

    .srk-intro {
        margin-bottom: 6px;
    }

    /* Count and disclosure share a line above the list */
    .srk-results-head > div:first-child {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px 12px;
    }

    /* Receipt apps page: full width so its note wraps under the count */
    .srk-results-head.is-view > div:first-child {
        width: 100%;
    }

    .srk-m-disclosure {
        display: inline-block;
        position: relative;
        padding: 0;
        border: 0;
        background: none;
        font: inherit;
        font-size: 13px;
        color: var(--srk-muted);
        text-decoration: underline;
        text-underline-offset: 2px;
        cursor: pointer;
    }

    /* 44px to tap without adding height */
    .srk-m-disclosure::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: var(--srk-tap);
        transform: translateY(-50%);
    }

    .srk-m-disclosure:focus-visible {
        outline: 2px solid var(--srk-ink);
        outline-offset: 2px;
    }

    /* Heading on its own line, the count + disclosure under it, then the toolbar */
    .srk-board-title {
        flex: 1 0 100%;
    }

    .srk-compare {
        padding-top: 10px;
    }

    .srk-results-head {
        gap: 6px;
        margin-bottom: 10px;
    }


    .srk-results-count {
        font-size: 13px;
    }

    /* "Not ranked yet · Sites need 12 votes…" on one line */
    .srk-results-head + .srk-settling {
        margin-top: 0;
    }

    .srk-settling-title {
        display: inline;
        margin: 0;
        font-size: 14px;
    }

    .srk-settling-note {
        display: inline;
        margin: 0;
        font-size: 13px;
    }

    .srk-settling-note::before {
        content: "· ";
    }

    .srk-settling .srk-table-wrap {
        margin-top: 10px;
    }

    /* "Jump to a section" below the rankings */
    .srk-jump-m {
        display: block;
        padding-top: 16px;
        background: var(--srk-surface);
    }

    .srk-jump-m .srk-jump-box {
        display: block;
        min-width: 0;
    }

    .srk-jump-m .srk-jump-list {
        position: static;
        min-width: 0;
        box-shadow: none;
    }
}

/* Narrow phones hide the breadcrumbs, so with the disclosure moved down the
   header's top row would be empty. */
@media (max-width: 600px) {
    .srk-hero-top {
        display: none;
    }
}

/* ==========================================================================
   Phones: "Go to" and Details on one line (2026-11-01)
   Rows without a "Read review" button put the Details button beside "Go to":
   the details cell shares the actions cell, its summary sits on the right
   42% (outline "Details" button) and the panel opens full width below.
   Rows with a review button keep Go to + Read review side by side.
   ========================================================================== */
.srk-sum-short {
    display: none;
}

@media (max-width: 768px) {
    .srk-table tbody tr:not(:has(.srk-btn-review)) td.srk-col-actions {
        align-self: start;
    }

    /* Go to gets the wider share so its label fits on one line, even at 320px */
    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-actions {
        grid-template-columns: 58% minmax(0, 1fr);
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) td.srk-col-details {
        grid-area: act;
        pointer-events: none;
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-details > summary {
        display: flex;
        justify-content: center;
        width: calc(42% - 8px);
        min-height: var(--srk-tap);
        margin-left: calc(58% + 8px);
        padding: 0 8px;
        border: 1px solid var(--srk-blue);
        border-radius: var(--srk-radius);
        background: var(--srk-surface);
        pointer-events: auto;
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-details > summary:hover {
        text-decoration: none;
        background: var(--srk-tint);
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-sum-long {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-sum-short {
        display: inline;
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-details-body {
        margin-top: 12px;
        pointer-events: auto;
    }

    .srk-table tbody tr:not(:has(.srk-btn-review)) .srk-btn-visit {
        min-height: var(--srk-tap);
    }
}

/* ==========================================================================
   Phones: sign-up bonus on one line (2026-11-01)
   The bonus box shows just the offer in bold and "Terms apply"; when there are
   conditions, tapping it opens them in place (still before "Go to"). Desktop
   keeps the full box.
   ========================================================================== */
@media (max-width: 768px) {
    /* Bonus: the offer and "Terms apply"; tapping anywhere on it opens the conditions */
    .srk-table .srk-bonus {
        position: relative;
        align-items: center;
        min-height: var(--srk-tap);
        padding: 8px 12px;
    }

    .srk-table .srk-bonus.has-more {
        padding-right: 36px;
    }

    .srk-table .srk-bonus .srk-bonus-icon {
        margin-top: 0;
    }

    .srk-table .srk-bonus-text {
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .srk-table .srk-bonus.has-more:not(.is-open) .srk-bonus-sep,
    .srk-table .srk-bonus.has-more:not(.is-open) .srk-bonus-more {
        display: none;
    }

    .srk-table .srk-bonus.is-open .srk-bonus-more {
        display: block;
        margin-top: 4px;
    }

    .srk-table .srk-bonus-tcs {
        margin-left: 4px;
        font-size: 0.8125rem;
        white-space: nowrap;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .srk-table .srk-bonus-toggle {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: inherit;
        background: transparent;
        cursor: pointer;
    }

    .srk-table .srk-bonus-toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 14px;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--srk-muted);
        border-bottom: 2px solid var(--srk-muted);
        transform: translateY(-70%) rotate(45deg);
    }

    .srk-table .srk-bonus.is-open .srk-bonus-toggle::after {
        top: 22px;
        transform: translateY(-30%) rotate(-135deg);
    }

    .srk-table .srk-bonus-toggle:focus-visible {
        outline: 2px solid var(--srk-ink);
        outline-offset: 2px;
    }
}

/* ==========================================================================
   Phones: tabs → list strip (2026-11-01)
   Order: tabs → slim vote shortcut → "109 reward sites" + disclosure →
   Filters & Sort → "Sites need 12 votes…" → first card. The "… rankings"
   heading and "Sort by" label are for screen readers only here; the votes line
   moves from the header into the vote section. Wider screens keep the long
   count, the heading, the header stats and the "Not ranked yet" block.
   ========================================================================== */
.srk-count-short,
.srk-voteshortcut,
.srk-vote-stat,
.srk-settling-m {
    display: none;
}

@media (max-width: 768px) {
    .srk-stats {
        display: none;
    }

    /* Slim vote shortcut straight under the tabs */
    .srk-voteshortcut {
        display: block;
        padding-top: 8px;
        background: var(--srk-surface);
    }

    .srk-vsc {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 2px 2px 2px 12px;
        border: 1px solid var(--srk-wash-line);
        border-radius: var(--srk-radius);
        background: var(--srk-wash);
    }

    .srk-vsc-text {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--srk-ink);
    }

    .srk-vsc-btn {
        display: inline-flex;
        align-items: center;
        min-height: var(--srk-tap);
        padding: 0 16px;
        border-radius: var(--srk-radius);
        background: var(--srk-blue);
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        white-space: nowrap;
    }

    .srk-vsc-btn:hover,
    .srk-vsc-btn:focus-visible {
        color: #fff;
        filter: brightness(1.1);
    }

    .srk-vsc-btn:focus-visible {
        outline: 2px solid var(--srk-ink);
        outline-offset: 2px;
    }

    /* Count + disclosure row, then the toolbar */
    .srk-compare {
        padding-top: 8px;
    }

    .srk-board-title {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .srk-results-head {
        gap: 4px;
        margin-bottom: 8px;
    }

    .srk-results-head > div:first-child {
        min-height: 28px;
    }

    .srk-count-long {
        display: none;
    }

    .srk-count-short {
        display: inline;
    }

    .srk-results-count {
        font-size: 13px;
    }

    /* The dropdown says what it sorts by, so its label is for screen readers */
    .srk-sort-label > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    /* One understated sentence instead of the "Not ranked yet" block */
    .srk-settling-title,
    .srk-settling-note {
        display: none;
    }

    .srk-settling-m {
        display: block;
        margin: 0 0 8px;
        font-size: 13px;
        line-height: 1.4;
        color: var(--srk-muted);
    }

    .srk-results-head + .srk-settling,
    .srk-settling {
        margin-top: 0;
    }

    .srk-settling .srk-table-wrap {
        margin-top: 0;
    }

    /* The votes line now lives in the vote section */
    .srk-vote-intro .srk-vote-stat {
        display: block;
        margin: 2px 0 0;
        font-size: 13px;
        text-align: center;
        color: var(--srk-muted);
    }
}

/* ==========================================================================
   Phones: the blue header keeps ALL its content (2026-11-01)
   Breadcrumbs, the "* = links I may earn from" disclosure, title, intro and
   the live votes line all stay in the header on phones. Do not hide or move
   these for mobile optimisation; only the strip below the tabs is compacted.
   Breadcrumbs and disclosure share a row where they fit and wrap tidily where
   they don't. The disclosure appears once, here (the copy beside the site
   count is hidden).
   ========================================================================== */
@media (max-width: 768px) {
    .srk-hero-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px 8px;
        margin-bottom: 8px;
    }

    .srk-crumbs {
        display: block;
        font-size: 12px;
        line-height: 1.4;
    }

    .srk-crumbs .srk-crumb-sep {
        margin: 0 4px;
    }

    .srk-hero-top .scrimpr-disclosure-button {
        display: inline-flex;
        gap: 4px;
        margin-left: auto;
        padding: 3px 6px;
        font-size: 11px;
    }

    .srk-stats {
        display: flex;
        margin-top: 8px;
        font-size: 14px;
    }

    .srk-m-disclosure,
    .srk-vote-intro .srk-vote-stat {
        display: none;
    }
}

@media (max-width: 600px) {
    .srk-hero-top {
        display: flex;
        justify-content: space-between;
    }

    .srk-crumbs {
        display: block;
    }
}

/* ==========================================================================
   Phones: mockup pass (2026-11-01)
   Header stats as two items with icons; vote strip with a trophy, a line of
   explanation and "Vote now →"; count + Filters + "Sort by …" on one row where
   it fits; the threshold note on a light band; on cards a grey square for an
   unranked position, the Scrimpr rating top-right (from 370px) and a single
   "Community: 91% (11 votes)" line with its bar. Desktop is unchanged.
   ========================================================================== */
.srk-stat-m {
    display: none;
}

@media (max-width: 768px) {
    /* Header: two stats with icons */
    .srk-stat-combined {
        display: none;
    }

    .srk-stats {
        gap: 4px 14px;
        font-size: 13.5px;
    }

    .srk-stat-m {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .srk-stat-icon {
        flex: 0 0 16px;
        opacity: 0.85;
    }

    /* Vote strip */
    .srk-vsc {
        gap: 10px;
        padding: 8px 8px 8px 10px;
    }

    .srk-vsc-icon {
        display: inline-flex;
        flex: 0 0 36px;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--srk-blue);
        color: #fff;
    }

    .srk-vsc-text {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
        font-weight: 400;
    }

    .srk-vsc-text strong {
        font-size: 15px;
        font-weight: 700;
        color: var(--srk-ink);
    }

    .srk-vsc-text span {
        display: block;
        font-size: 12.5px;
        line-height: 1.35;
        color: var(--srk-text);
    }

    .srk-vsc-btn {
        gap: 6px;
        padding: 0 14px;
    }

    /* Count + Filters + Sort: one row where it fits, else count above */
    .srk-results-head {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
    }

    .srk-results-head > div:first-child {
        flex: 0 0 auto;
        min-height: 0;
    }

    .srk-results-count {
        font-size: 15px;
        font-weight: 600;
        color: var(--srk-ink);
    }

    .srk-results-tools {
        flex: 1 1 280px;
        width: auto;
        min-width: 0;
    }

    .srk-filter-open {
        gap: 6px;
    }

    .srk-filter-icon {
        flex: 0 0 18px;
    }

    /* "Sort by" sits inside the dropdown */
    .srk-sort-label {
        position: relative;
    }

    .srk-sort-label > span {
        position: absolute;
        top: 50%;
        left: 12px;
        z-index: 1;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        transform: translateY(-50%);
        font-size: 15px;
        color: var(--srk-muted);
        white-space: nowrap;
        pointer-events: none;
    }

    .srk-sort-label .srk-sort {
        padding-left: 70px;
    }

    /* Threshold note on a light band */
    .srk-settling-m {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 10px;
        padding: 7px 10px;
        border-radius: var(--srk-radius);
        background: var(--srk-tint);
        color: var(--srk-text);
    }

    .srk-settling-m svg {
        flex: 0 0 16px;
        color: var(--srk-muted);
    }

    /* Cards: unranked position as a grey square */
    .srk-table .srk-pos-settling {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        background: #EEF2F6;
    }

    /* Cards: one "Community: 91% (11 votes)" line with the bar beside it */
    /* Wraps so the vote bar and heart (and the points explanation) can take
       their own line under the score when the score line fills the width */
    /* Same columns as the facts above: label | points, then votes | heart */
    .srk-table td.srk-col-community {
        display: grid;
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr) auto;
        align-items: center;
        gap: 4px 12px;
        min-width: 0;
    }

    .srk-table .srk-points-help {
        position: static;
        grid-column: 1 / -1;
        flex: 1 0 100%;
        width: auto;
        max-width: none;
        box-shadow: none;
    }

    .srk-table td.srk-col-community::before {
        display: none;
        content: "";
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9'/%3E%3Cpath d='M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
    }

    .srk-table td.srk-col-community .srk-cell-label {
        display: block;
        font-size: 0.8125rem;
        font-weight: 400;
        color: var(--srk-muted);
    }

    .srk-table .srk-community {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 4px;
        min-width: 0;
    }

    .srk-table .srk-score {
        font-size: 15px;
        font-weight: 800;
    }

    /* Points on the first line; votes and the explanation beneath */
    .srk-table .srk-community .srk-score {
        flex: 0 0 100%;
    }

    .srk-table .srk-votes {
        font-size: 0.8125rem;
    }

    /* The bar repeats the score as a length, so phones show the number only */
    .srk-table td.srk-col-community .srk-bar {
        display: none;
    }

    /* Favourite: bar and heart (and count) join the end of the community line */
    .srk-table .srk-bar-row {
        display: contents;
    }

    .srk-table .srk-fav {
        margin: 0 -4px 0 auto;
    }
}

/* From 370px the Scrimpr rating sits top-right, divided off, label beneath */
@media (min-width: 370px) and (max-width: 768px) {
    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        grid-template-areas:
            "rank site  rating"
            "desc desc  desc"
            "comm comm  comm"
            "bonus bonus bonus"
            "act  act   act";
    }

    .srk-table td.srk-col-rating {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        align-self: center;
        padding-left: 12px;
        border-left: 1px solid var(--srk-line);
        text-align: center;
    }

    /* "Not rated" no bigger than a star rating, so it stays secondary */
    .srk-table td.srk-col-rating .srk-muted {
        font-size: 0.875rem;
    }

    .srk-table td.srk-col-rating .srk-cell-label {
        max-width: 4.5em;
        font-size: 0.8125rem;
        font-weight: 500;
        line-height: 1.2;
    }
}

@media (min-width: 400px) and (max-width: 768px) {
    .srk-stat-since {
        padding-left: 14px;
        border-left: 1px solid rgba(255, 255, 255, 0.25);
    }
}

/* The vote strip's explanation line only where it fits in two lines */
@media (max-width: 399px) {
    .srk-vsc-text span {
        display: none;
    }
}

@media (max-width: 359px) {

    /* Too narrow for "Sort by" inside the dropdown: screen readers only */
    .srk-sort-label > span {
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .srk-sort-label .srk-sort {
        padding-left: 8px;
    }
}


/* 370-419px: a touch smaller names and rating so one-word names like
   "CheckoutSmart" or "KeepRewarding" fit beside the rating without breaking */
@media (min-width: 370px) and (max-width: 419px) {
    .srk-table .srk-site-name {
        font-size: 15px;
    }

    .srk-table td.srk-col-rating {
        padding-left: 10px;
    }

    .srk-table td.srk-col-rating .srk-rating {
        font-size: 14px;
    }
}

/* ==========================================================================
   Phones: compact ranking card (2026-11-08)
   Identity (rank, logo, name, Scrimpr rating on the right) → description →
   community points with the favourite → bonus → Go to / Details. The key facts
   open at the top of the details panel. Desktop rows are unchanged.
   ========================================================================== */
@media (max-width: 768px) {
    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        grid-template-areas:
            "rank site   rating"
            "desc desc   desc"
            "comm comm   comm"
            "bonus bonus bonus"
            "act  act    act";
        gap: 12px;
        padding: 16px;
    }

    /* Identity: the Scrimpr rating sits on the right, divided off, label beneath */
    .srk-table td.srk-col-rating {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        justify-content: center;
        align-self: center;
        min-width: 0;
        padding-left: 12px;
        border-left: 1px solid var(--srk-line);
        text-align: right;
    }

    /* "Scrimpr rating" on two short lines, so the name and category keep their width */
    .srk-table td.srk-col-rating .srk-cell-label {
        display: block;
        max-width: 4.5em;
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.3;
        color: var(--srk-muted);
    }

    .srk-table td.srk-col-rating .srk-rating,
    .srk-table td.srk-col-rating .srk-muted {
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.3;
    }

    /* Description, then nothing else until the community line */
    .srk-table td.srk-col-desc {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    /* Community: "1,639 community points · 30 votes", favourite on the right */
    .srk-table td.srk-col-community {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--srk-line);
    }

    .srk-table td.srk-col-community .srk-cell-label,
    .srk-table td.srk-col-community .srk-info,
    .srk-table td.srk-col-community .srk-bar {
        display: none;
    }

    .srk-table .srk-community {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 4px;
        min-width: 0;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .srk-table .srk-community .srk-score {
        flex: 0 1 auto;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--srk-ink);
    }

    /* "1,639 community points": the HTML says "points" once; phones add the word */
    .srk-table .srk-score-unit {
        font-weight: 400;
        color: var(--srk-text);
    }

    .srk-table .srk-score-unit::before {
        content: " community";
    }

    .srk-table .srk-votes {
        font-size: 0.875rem;
        color: var(--srk-muted);
    }

    .srk-table .srk-votes::before {
        content: "· ";
    }

    .srk-table .srk-bar-row {
        display: contents;
    }

    .srk-table .srk-fav {
        flex: 0 0 auto;
        margin: 0 -4px 0 auto;
    }

    /* Details: the key facts first, under a divider */
    .srk-table .srk-details-body {
        padding: 12px 0 0;
        border-top: 1px solid var(--srk-line);
        border-left: 0;
    }

    /* The facts, moved here on phones by rankings.js */
    .srk-details-body > .srk-glance {
        display: grid;
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 4px 12px;
        margin: 0;
    }
}

@media (max-width: 360px) {
    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        column-gap: 8px;
        padding: 12px;
    }

    .srk-table td.srk-col-rating {
        padding-left: 8px;
    }

    /* Narrowest phones: a smaller logo and badge so names like "CheckoutSmart" stay whole */
    .srk-table tbody tr,
    .srk-table tbody tr[data-strip="1"] {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }

    .srk-table .srk-logo {
        width: 32px;
        height: 32px;
    }

    .srk-table .srk-site {
        gap: 8px;
    }

    .srk-table .srk-site-name {
        font-size: 0.9375rem;
        overflow-wrap: normal;
        word-break: normal;
    }
}
