/*
    Terms Safety Score — the public card on the casino hub and the compact block in the review sidebar.
    Built to the approved mockup (boards 1, 2, 4, 7).
    Colours mean one thing each: green meets the standard, amber is restrictive (and unclear wording, which
    scores like it), red is seriously unfair, grey is an answer that scores nothing. Small text stays at or
    above 4.5:1 on its background; the lighter tints are only for bars, dots and borders.
    Two inline values are read here: --tss-grow (a tier's share of the scale) and --tss-at (a position on a
    scale, a percentage), both written invariant by TermsScorePublicService.
*/

.tss-card,
.tss-compact {
    --tss-ink: #281e32;
    --tss-text: #4a3f55;
    --tss-muted: #6b5d78;
    --tss-line: rgba(40, 30, 50, .08);
    --tss-soft: #fbfafc;
    --tss-meets: #17753f;
    --tss-restrictive: #9a5207;
    --tss-unfair: #c02a39;
    --tss-meets-fill: #1f9d57;
    --tss-restrictive-fill: #d9760a;
    --tss-unfair-fill: #d83545;
    --tss-link: #c2410c;
}

/* ---------- The card ---------- */

.tss-card {
    position: relative;
    margin: 32px 0 8px;
    background: #fff;
    border: 1px solid rgba(40, 30, 50, .10);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(40, 30, 50, .04);
    overflow: hidden;
    color: var(--tss-ink);
    font-family: 'Inter', sans-serif;
    scroll-margin-top: 90px;
}

.tss-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #fe5001, #ff8f65);
}

.tss-card p,
.tss-card h2,
.tss-card h3,
.tss-card dl,
.tss-card dd,
.tss-card ul,
.tss-card ol {
    margin: 0;
}

.tss-card a {
    color: var(--tss-link);
    font-weight: 600;
    text-decoration: none;
}

/* A link inside a sentence needs more than its colour to stand out from the words around it (WCAG 1.4.1). */
.tss-card .tss-subnote a,
.tss-card .tss-source a,
.tss-card .tss-clause-meta a,
.tss-card .tss-move-meta a,
.tss-rtp-meta a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tss-card a:hover {
    text-decoration: underline;
}

.tss-card a:focus-visible,
.tss-card summary:focus-visible,
.tss-card button:focus-visible,
.tss-compact a:focus-visible {
    outline: 2px solid #fe5001;
    outline-offset: 2px;
    border-radius: 4px;
}

.tss-main {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
}

.tss-lead {
    display: flex;
    flex-direction: column;
    padding: 26px 28px;
    background: var(--tss-soft);
    border-right: 1px solid rgba(40, 30, 50, .06);
}

.tss-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tss-text);
}

.tss-heading {
    margin: 14px 0 18px !important;
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tss-ink);
}

/* The no-score heading sits tight on the sentence it introduces (proximity), not 18px above it. */
.tss-heading--tight { margin-bottom: 8px !important; }

/* ---------- Icons (style B) ---------- */

.tss-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(150deg, #46364f 0%, #281e32 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 10px -4px rgba(40, 30, 50, .45);
}

.tss-ic svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tss-ic .f { stroke: none; fill: rgba(255, 255, 255, .13); }
.tss-ic .o { fill: none; stroke: #fff; }
.tss-ic .a { fill: none; stroke: #ff8f65; }

.tss-ic--sm { width: 28px; height: 28px; border-radius: 8px; }
.tss-ic--sm svg { width: 16px; height: 16px; }
.tss-ic--xs { width: 22px; height: 22px; border-radius: 6px; }
.tss-ic--xs svg { width: 13px; height: 13px; }

/* ---------- Chips ---------- */

.tss-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tss-chip--small { padding: 3px 8px; font-size: 10px; }
.tss-chip--meets { color: var(--tss-meets); background: rgba(70, 214, 160, .14); }
.tss-chip--restrictive { color: var(--tss-restrictive); background: rgba(255, 176, 92, .18); }
.tss-chip--unfair { color: var(--tss-unfair); background: rgba(255, 93, 108, .14); }
.tss-chip--neutral { color: var(--tss-muted); background: rgba(40, 30, 50, .07); }

/* ---------- Score ---------- */

.tss-score-line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tss-score {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.02em;
}

.tss-score--meets { color: var(--tss-meets); }
.tss-score--restrictive { color: var(--tss-restrictive); }
.tss-score--unfair { color: var(--tss-unfair); }

.tss-score-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.tss-score-side .tss-chip { font-size: 12px; }

.tss-out-of {
    font-size: 13px;
    color: var(--tss-muted);
}

.tss-sentence {
    margin-top: 14px !important;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--tss-text);
}

/* ---------- Tier scale ---------- */

.tss-scale { margin-top: 20px; }

.tss-scale-bar {
    position: relative;
    display: flex;
    gap: 3px;
    height: 8px;
}

.tss-seg {
    flex: var(--tss-grow, 1) 1 0;
    border-radius: 2px;
    opacity: .28;
}

.tss-seg:first-child { border-radius: 4px 2px 2px 4px; }
.tss-seg:nth-last-child(2) { border-radius: 2px 4px 4px 2px; }
.tss-seg.is-current { opacity: 1; }
.tss-seg--poor { background: #d83545; }
.tss-seg--below { background: #e2530a; }
.tss-seg--average { background: #d9760a; }
.tss-seg--good { background: #1f9d57; }
.tss-seg--excellent { background: #15803d; }

.tss-pin {
    position: absolute;
    top: 50%;
    left: var(--tss-at, 0);
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--tss-meets-fill);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(40, 30, 50, .25);
}

.tss-pin--restrictive { border-color: var(--tss-restrictive-fill); }
.tss-pin--unfair { border-color: var(--tss-unfair-fill); }

.tss-scale-ticks {
    position: relative;
    height: 16px;
    margin-top: 6px;
}

.tss-scale-ticks span {
    position: absolute;
    left: var(--tss-at, 0);
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--tss-muted);
}

.tss-scale-names {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    font-size: 11px;
    color: var(--tss-muted);
}

/* ---------- Held, tally ---------- */

.tss-held {
    margin-top: 16px !important;
    padding: 12px 14px;
    border: 1px solid rgba(216, 53, 69, .25);
    border-radius: 12px;
    background: rgba(255, 93, 108, .08);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--tss-text);
}

.tss-tally {
    margin-top: 22px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--tss-line);
    border-radius: 12px;
}

.tss-tally-bar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    height: 6px;
}

.tss-cell { border-radius: 2px; background: rgba(40, 30, 50, .14); }
.tss-cell--meets { background: var(--tss-meets-fill); }
.tss-cell--restrictive { background: var(--tss-restrictive-fill); }
.tss-cell--unfair { background: var(--tss-unfair-fill); }

.tss-tally-row {
    display: flex;
    flex-direction: column;
    margin-top: 12px !important;
}

.tss-tally-row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid rgba(40, 30, 50, .06);
}

.tss-tally-row > div:first-child {
    padding-top: 2px;
    border-top: 0;
}

.tss-tally-row dt {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 400;
    color: var(--tss-text);
}

.tss-tally-row dt .tss-dot { width: 8px; height: 8px; }

.tss-tally-row dd {
    min-width: 2ch;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--tss-ink);
}

.tss-tally-row > .is-zero dt,
.tss-tally-row > .is-zero dd { color: var(--tss-muted); }

.tss-tally-row > .is-zero dd { font-weight: 600; }

.tss-tally-other {
    margin-top: 10px !important;
    font-size: 12.5px;
    color: var(--tss-muted);
}

.tss-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(40, 30, 50, .25);
}

.tss-dot--meets { background: var(--tss-meets-fill); }
.tss-dot--restrictive { background: var(--tss-restrictive-fill); }
.tss-dot--unfair { background: var(--tss-unfair-fill); }

/* ---------- Headings shared by the sections ---------- */

.tss-subheading {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--tss-ink);
}

.tss-subnote {
    margin: 3px 0 16px !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tss-muted);
}

/* ---------- What would raise this score ---------- */

.tss-raise {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--tss-line);
}

.tss-lifts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.tss-lift {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.tss-lift-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tss-ink);
}

.tss-lift-note {
    margin-top: 3px !important;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tss-text);
}

/* ---------- Footer strip: editors, dates, method, disclosure ----------
   Under both columns, so the lead column is never taller than the eight checks beside it. Flex, not a
   three-column grid: with no public editor or no dates the remaining blocks share the row instead of
   leaving an empty column (1 : 1 : 1.2 when all three are there). */

.tss-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    align-items: flex-start;
    padding: 20px 28px;
    background: var(--tss-soft);
    border-top: 1px solid var(--tss-line);
}

.tss-foot > * {
    flex: 1 1 0;
    min-width: 0;
}

.tss-foot > .tss-foot-method { flex-grow: 1.2; }

.tss-foot > .tss-disclosure { flex-basis: 100%; }

.tss-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tss-dates dt {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--tss-muted);
}

.tss-dates dd {
    margin-top: 2px !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--tss-ink);
}

.tss-zone {
    font-size: .82em;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--tss-muted);
}

.tss-method,
.tss-disclosure {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tss-text);
}

.tss-disclosure {
    padding-top: 14px;
    border-top: 1px solid var(--tss-line);
    color: var(--tss-muted);
}

.tss-how {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 0;
    font-size: 13px;
}

.tss-editors-label {
    margin-bottom: 6px !important;
    font-size: 11.5px;
    color: var(--tss-muted);
}

.tss-editor-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.tss-card .tss-editor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -10px;
    padding: 6px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color .15s ease;
}

.tss-card .tss-editor:hover { background: rgba(40, 30, 50, .04); }

.tss-editor-photo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(40, 30, 50, .08);
}

.tss-editor-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.tss-editor-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--tss-ink);
}

.tss-editor:hover .tss-editor-name { color: var(--tss-link); }

.tss-editor-role {
    font-size: 12.5px;
    color: var(--tss-muted);
}

/* ---------- The eight checks ---------- */

.tss-checks { padding: 22px 28px 12px; }

.tss-checks-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}

.tss-checks-head .tss-subheading { font-size: 17px; }
.tss-checks-head .tss-subnote { margin: 0 0 6px !important; }

.tss-check-list {
    padding: 0;
    list-style: none;
}

.tss-check {
    display: grid;
    grid-template-columns: 230px 150px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid rgba(40, 30, 50, .06);
}

.tss-check-name {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: -4px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--tss-ink);
}

.tss-reason,
.tss-source,
.tss-note,
.tss-lift-note,
.tss-move-meta { overflow-wrap: anywhere; }

.tss-reason {
    font-size: 14px;
    line-height: 1.55;
    color: var(--tss-text);
}

/* A side fact the score leaves out (a free-spin cap, a sportsbook-only term), tight under the reason it qualifies. */
.tss-note {
    margin-top: 4px !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tss-muted);
}

.tss-note-label {
    font-weight: 600;
    color: var(--tss-text);
}

.tss-source {
    margin-top: 4px !important;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tss-muted);
}

.tss-clause { margin-top: 6px; }

.tss-clause summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tss-link);
    cursor: pointer;
    list-style: none;
}

.tss-clause summary::-webkit-details-marker { display: none; }

.tss-clause summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}

.tss-clause[open] summary::before { transform: rotate(45deg); }

.tss-quote {
    margin: 8px 0 0;
    padding: 10px 14px;
    border-left: 3px solid rgba(40, 30, 50, .18);
    border-radius: 0 8px 8px 0;
    background: var(--tss-soft);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--tss-ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.tss-clause-meta {
    margin-top: 6px !important;
    font-size: 12px;
    color: var(--tss-muted);
}

/* ---------- History ---------- */

.tss-lower {
    background: var(--tss-soft);
    border-top: 1px solid var(--tss-line);
}

.tss-history { padding: 24px 28px 26px; }

.tss-timeline {
    position: relative;
    padding: 0 0 0 22px;
    list-style: none;
}

.tss-timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 5px;
    width: 2px;
    border-radius: 1px;
    background: rgba(40, 30, 50, .10);
}

.tss-move {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    padding-bottom: 20px;
}

.tss-move:last-child { padding-bottom: 0; }

.tss-move-dot {
    position: absolute;
    top: 4px;
    left: -22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8a7e97;
    box-shadow: 0 0 0 3px var(--tss-soft);
}

.tss-move-dot--up { background: var(--tss-meets-fill); }
.tss-move-dot--down { background: var(--tss-unfair-fill); }

.tss-move-meta {
    font-size: 12.5px;
    color: var(--tss-muted);
}

.tss-move-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 3px !important;
    font-size: 14px;
    color: var(--tss-ink);
}

.tss-move-score b {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
}

.tss-move-old {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--tss-muted);
}

.tss-move-arrow { color: var(--tss-muted); }

.tss-delta {
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
}

.tss-delta--up { color: var(--tss-meets); background: rgba(70, 214, 160, .14); }
.tss-delta--down { color: var(--tss-unfair); background: rgba(255, 93, 108, .12); }

.tss-move-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--tss-line);
    border-radius: 10px;
    list-style: none;
}

.tss-move-checks li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tss-text);
}

.tss-move-check { font-weight: 600; color: var(--tss-ink); }

.tss-move-was {
    color: var(--tss-muted);
    text-decoration-color: rgba(107, 93, 120, .6);
}

.tss-move-dir {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
}

.tss-move-dir--better { color: var(--tss-meets); }
.tss-move-dir--worse { color: var(--tss-unfair); }

.tss-more {
    margin: 4px 0 0 22px;
    padding: 8px 14px;
    border: 1px solid rgba(40, 30, 50, .14);
    border-radius: 10px;
    background: #fff;
    color: var(--tss-ink);
    font: 600 13px 'Inter', sans-serif;
    cursor: pointer;
}

.tss-more:hover { border-color: rgba(40, 30, 50, .3); }

/* ---------- Game RTP check (review page, under the review text) ---------- */

.tss-rtp-slot:empty { display: none; }

.tss-rtp-slot { margin-top: 24px; }

.tss-rtp-card .card-body { padding: 22px 24px; }

.tss-rtp-verdict {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tss-ink);
}

.tss-rtp-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tss-rtp-game {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: var(--tss-soft);
    border: 1px solid var(--tss-line);
    border-radius: 14px;
}

.tss-rtp-game-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tss-rtp-thumb {
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(40, 30, 50, .08);
    box-shadow: 0 2px 6px -2px rgba(40, 30, 50, .35);
}

.tss-rtp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tss-rtp-game-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tss-ink);
    overflow-wrap: anywhere;
}

.tss-rtp-game-name > a { text-decoration: none; }

.tss-rtp-game-name > a:hover { color: var(--tss-link); text-decoration: underline; }

.tss-rtp-game-provider {
    font-size: 12px;
    font-weight: 400;
    color: var(--tss-muted);
}

.tss-rtp-game-name > .tss-rtp-play {
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tss-link);
}

.tss-rtp-game-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px !important;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tss-ink);
}

.tss-rtp-tag {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.tss-rtp-tag--meets { color: var(--tss-meets); }
.tss-rtp-tag--restrictive { color: var(--tss-restrictive); }

.tss-rtp-meta {
    margin-top: 6px !important;
    font-size: 12px;
    color: var(--tss-muted);
}

.tss-rtp-meta:last-child { margin-top: auto !important; padding-top: 8px; }

.tss-rtp-meta a { color: var(--tss-link); font-weight: 600; }

.tss-rtp-card a:focus-visible {
    outline: 2px solid #fe5001;
    outline-offset: 2px;
}

.tss-rtp { margin: 8px 0 0; }

.tss-rtp-track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(40, 30, 50, .08);
}

.tss-rtp-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--tss-at, 0);
    border-radius: 3px;
    background: var(--tss-restrictive-fill);
}

.tss-rtp-track--meets .tss-rtp-fill { background: var(--tss-meets-fill); }

.tss-rtp-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11px;
    color: var(--tss-muted);
}

/* ---------- No score yet ---------- */

/* Body text under the card's heading, not a second heading: the two sat at 21px and 22px bold and read as twins
   (Filip, Oct 4). */
.tss-none {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--tss-text);
}

.tss-lead > .tss-how { margin-top: auto; padding-top: 20px; }

.tss-docs {
    width: 100%;
    border-collapse: collapse;
}

.tss-docs thead th {
    padding: 0 16px 8px 0;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    color: var(--tss-muted);
}

.tss-docs tbody th,
.tss-docs tbody td {
    padding: 12px 16px 12px 0;
    border-top: 1px solid rgba(40, 30, 50, .07);
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
    color: var(--tss-text);
}

.tss-docs tbody th {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--tss-ink);
}

.tss-docs td { white-space: nowrap; }

/* ---------- Compact (review sidebar) ---------- */

.tss-compact p { margin: 0; }

.tss-compact-score {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tss-score--compact { font-size: 40px; line-height: 1; }

.tss-compact-tier {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--tss-ink);
}

.tss-compact-by {
    font-size: 12.5px;
    color: var(--tss-muted);
}

.tss-compact-note {
    margin: 12px 0 6px !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tss-muted);
}

.tss-compact-checks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tss-compact-checks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(40, 30, 50, .07);
    font-size: 14px;
}

.tss-compact-name {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--tss-ink);
}

.tss-compact-answer {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tss-muted);
}

.tss-compact-answer--meets { color: var(--tss-meets); }
.tss-compact-answer--restrictive { color: var(--tss-restrictive); }
.tss-compact-answer--unfair { color: var(--tss-unfair); }

.tss-compact-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(40, 30, 50, .07);
    font-size: 12px;
    color: var(--tss-muted);
}

.tss-compact-none {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tss-text);
}

.tss-compact-sentence {
    margin-top: 12px !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tss-text);
}

.tss-compact-disclosure {
    margin-top: 10px !important;
    font-size: 12px;
    line-height: 1.5;
    color: var(--tss-muted);
}

.tss-compact-link {
    display: block;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(254, 80, 1, .18);
    border-radius: 10px;
    background: #fff5f2;
    color: var(--tss-link);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.tss-compact-link:hover {
    color: var(--tss-link);
    text-decoration: underline;
}

/* ---------- Badges: hub hero pill, record details row ---------- */

.tss-seal {
    --seal: #5fd68f;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 53px;
    padding: 0 12px 0 7px;
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.tss-seal--restrictive { --seal: #f6a94a; }
.tss-seal--unfair { --seal: #ff9aa3; }

.tss-seal:hover,
.tss-seal:focus {
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .1);
}

.tss-seal:focus-visible {
    outline: 2px solid #ff8f65;
    outline-offset: 2px;
}

.tss-seal__ring {
    position: relative;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(var(--seal) var(--tss-at, 0), rgba(255, 255, 255, .14) 0);
}

.tss-seal__ring::before {
    content: "";
    position: absolute;
    inset: 3.5px;
    border-radius: 50%;
    background: #2b2035;
}

.tss-seal__score {
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.tss-seal__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tss-seal__label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .72);
}

.tss-seal__tier {
    font-family: 'Outfit', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--seal);
}

.tss-seal__go {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: rgba(255, 255, 255, .6);
    transition: transform .15s ease;
}

.tss-seal:hover .tss-seal__go {
    color: #fff;
    transform: translateY(2px);
}

.tss-record-row {
    margin: 4px -10px 0;
    padding: 10px !important;
    border-bottom: none !important;
    border-radius: 10px;
    background: #fbfafc;
}

.tss-record-link {
    display: inline-flex;
    flex-wrap: wrap;
    row-gap: 2px;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.tss-record-link:hover { text-decoration: underline; }

.tss-record-more {
    font-size: 13px;
    font-weight: 600;
    color: #c2410c;
    white-space: nowrap;
}

.tss-record-link:focus-visible {
    outline: 2px solid #fe5001;
    outline-offset: 2px;
}

.tss-record-score {
    padding: 1px 8px;
    border-radius: 7px;
    background: #15803d;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.tss-record-link--meets b:nth-of-type(2) { color: #17753f; }
.tss-record-link--restrictive .tss-record-score { background: #b45309; }
.tss-record-link--restrictive b:nth-of-type(2) { color: #9a5207; }
.tss-record-link--unfair .tss-record-score { background: #c02a39; }
.tss-record-link--unfair b:nth-of-type(2) { color: #c02a39; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1199.98px) {
    .tss-check { grid-template-columns: minmax(0, 1fr) auto; }
    .tss-check-body { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .tss-main { grid-template-columns: minmax(0, 1fr); }

    .tss-lead {
        border-right: none;
        border-bottom: 1px solid rgba(40, 30, 50, .06);
    }

    .tss-move { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }

    .tss-foot > * { flex-basis: 100%; }
}

@media (max-width: 575.98px) {
    .tss-lead,
    .tss-checks,
    .tss-history,
    .tss-foot {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tss-score { font-size: 52px; }

    .tss-docs thead { display: none; }
    .tss-docs,
    .tss-docs tbody,
    .tss-docs tr { display: block; }

    .tss-docs tbody tr {
        padding: 10px 0;
        border-top: 1px solid rgba(40, 30, 50, .07);
    }

    .tss-docs tbody th,
    .tss-docs tbody td {
        display: block;
        padding: 0;
        border: none;
    }

    .tss-docs tbody th {
        display: flex;
        align-items: flex-start;
        margin-bottom: 4px;
    }

    .tss-docs tbody td {
        margin-left: 39px;
        font-size: 12.5px;
        color: var(--tss-muted);
        white-space: normal;
    }

    .tss-docs tbody td::before {
        content: attr(data-label) ": ";
    }
}

@media (max-width: 359.98px) {
    .tss-check { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .tss-clause summary::before,
    .tss-card .tss-editor,
    .tss-seal,
    .tss-seal__go { transition: none; }
}
