/* Competition · Comparison table (17 criteria). Ported from v1. Scope .sr-ctb. */
.sr-ctb { padding: 0 0 var(--sp-xl); background: transparent; color: var(--c-text); position: relative; }
.sr-ctb * { box-sizing: border-box; }
.sr-ctb .tabs { margin: 0 0 var(--sp-lg); padding: .55rem; background: linear-gradient(160deg, rgba(255,255,255,.94), rgba(236,254,255,.82)); border: 1px solid var(--c-border); border-radius: var(--r-pill); box-shadow: 0 8px 22px rgba(36,67,120,.08); display: inline-flex; gap: .25rem; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.sr-ctb .tabs::-webkit-scrollbar { display: none; }
.sr-ctb .tab { font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--c-text-soft); padding: .55em 1.1em; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; transition: color var(--t-micro), background var(--t-micro); background: none; border: none; }
.sr-ctb .tab:hover { color: var(--c-ink); }
.sr-ctb .tab.active { background: var(--c-ink); color: #fff; }
.sr-ctb .tab .count { margin-left: .35em; font-size: .72rem; opacity: .7; }
/* The header strip carries the ink of the approved table: dark blue gradient,
   white type, the G-Rex logo on its white card popping against it. */
.sr-ctb .table-head { margin: var(--sp-xl) 0 .8rem; padding: .9rem 1.2rem; border-radius: var(--r-xl); border: 1px solid rgba(34,211,238,.25); background: radial-gradient(120% 160% at 10% 0%, #274a86 0%, #1b3467 45%, #14264e 100%); box-shadow: 0 14px 34px rgba(14,26,56,.25); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,1.3fr); gap: var(--sp-md); align-items: center; }
.sr-ctb .th-crit { font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); padding-left: .4rem; }
.sr-ctb .th-grex { justify-self: start; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: .6rem 1.3rem; display: inline-flex; align-items: center; justify-content: center; min-height: 84px; max-width: 270px; box-shadow: 0 3px 10px rgba(20,29,55,.05); }
.sr-ctb .th-grex img { height: 58px; width: auto; }
.sr-ctb .th-comps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem .8rem; font-family: var(--font-display); font-size: .92rem; font-weight: 800; color: #fff; letter-spacing: .01em; line-height: 1.25; }
/* inline-flex turned the <sup> into a flex item and the ® ended up floating far
   from the word. In normal flow, anchored to the cap-height, it travels tight
   against the name — the house rule for ® in headings. */
.sr-ctb .th-comps span { display: block; }
.sr-ctb .th-comps sup { font-size: .65em; line-height: 0; vertical-align: baseline; position: relative; top: -.45em; margin-left: 1px; color: rgba(255,255,255,.65); }
.sr-ctb .rows { display: flex; flex-direction: column; gap: .8rem; }
.sr-ctb .crow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,1.3fr); gap: var(--sp-md); align-items: stretch; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro), border-color var(--t-micro); }
.sr-ctb .crow:hover { transform: translateY(-2px); box-shadow: var(--sh-card); border-color: transparent; }
.sr-ctb .crow.is-hidden { display: none; }
.sr-ctb .cell { padding: var(--sp-lg); }
.sr-ctb .cell-criterion { padding: var(--sp-lg) 0 var(--sp-lg) var(--sp-lg); background: linear-gradient(160deg, #f6f8fb, #fff 90%); }
.sr-ctb .cell-criterion h3,
.sr-ctb .cell-criterion .crit-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--c-ink-deep); line-height: 1.3; letter-spacing: -.005em; margin: 0; }
.sr-ctb .cell-body, .sr-ctb .grx, .sr-ctb .comp { display: flex; flex-direction: column; gap: .55rem; }
.sr-ctb .pill { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-display); font-weight: 800; font-size: .75rem; padding: .4em .85em; border-radius: var(--r-pill); letter-spacing: .02em; align-self: flex-start; }
.sr-ctb .pill.yes, .sr-ctb .pill.safe { background: var(--c-yes-bg); color: var(--c-yes-text); border: 1px solid var(--c-yes-bd); }
.sr-ctb .pill.no, .sr-ctb .pill.risk { background: var(--c-no-bg); color: var(--c-no-text); border: 1px solid var(--c-no-bd); }
.sr-ctb .pill.mixed { background: var(--c-warn-bg); color: var(--c-warn-text); border: 1px solid var(--c-warn-bd); }
.sr-ctb .pill .ico { width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sr-ctb .pill.yes .ico, .sr-ctb .pill.safe .ico { background: var(--c-yes); color: #fff; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.sr-ctb .pill.no .ico, .sr-ctb .pill.risk .ico { background: var(--c-no); color: #fff; box-shadow: 0 0 0 3px rgba(239,71,87,.18); }
.sr-ctb .pill.mixed .ico { background: var(--c-warn); color: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.sr-ctb .pill .ico svg { width: 8px; height: 8px; }
.sr-ctb .cell-explain { font-size: .94rem; color: var(--c-text); line-height: 1.55; margin: 0; }
.sr-ctb .cell-explain b { color: var(--c-ink); font-weight: 800; }
.sr-ctb .cell-explain em { font-style: normal; color: var(--c-glow); font-weight: 800; }
.sr-ctb .cell-expand { margin-top: .35rem; font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: var(--c-text-soft); cursor: pointer; background: none; border: none; padding: .3em 0; display: inline-flex; align-items: center; gap: .4em; align-self: flex-start; transition: color var(--t-micro); }
.sr-ctb .cell-expand:hover { color: var(--c-ink); }
.sr-ctb .cell-expand svg { width: 12px; height: 12px; transition: transform .3s var(--ease-expo); }
.sr-ctb .cell-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.sr-ctb .crow-detail { grid-column: 1/-1; padding: var(--sp-lg) var(--sp-xl); background: linear-gradient(180deg, #f7f9fc, #fff); border-top: 1px solid var(--c-line); display: none; flex-wrap: wrap; gap: .55rem; }
.sr-ctb .crow.expanded .crow-detail { display: flex; }
.sr-ctb .crow-detail .cmp { display: inline-flex; align-items: center; gap: .5em; padding: .4em .85em; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-border); font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: var(--c-ink); }
.sr-ctb .crow-detail .cmp .st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sr-ctb .crow-detail .cmp .st.yes { background: var(--c-yes); }
.sr-ctb .crow-detail .cmp .st.no { background: var(--c-no); }
.sr-ctb .crow-detail .cmp .st.mixed { background: var(--c-warn); }
@media (max-width: 820px) {
	.sr-ctb .table-head { display: none; }
	.sr-ctb .crow { grid-template-columns: 1fr; }
	.sr-ctb .cell-criterion { padding: var(--sp-lg); }
	.sr-ctb .grx::before { content: "G-Rex®"; font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-glow); }
	.sr-ctb .comp::before { content: "Competition"; font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-soft); }
	/* With the list published by the render, the label names each competitor. */
	.sr-ctb .comp[data-comps]::before { content: attr(data-comps); letter-spacing: .06em; line-height: 1.6; }
}

/* Criterion tooltip: the blue dot from the approved design, with the panel in
   the brand ink. It opens on hover and on keyboard focus. */
.sr-ctb .crit-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; vertical-align: super; border-radius: 50%; background: var(--c-ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 1; cursor: help; }
.sr-ctb .crit-tip { visibility: hidden; opacity: 0; position: absolute; z-index: 30; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: min(400px, 70vw); background: var(--c-ink); color: #fff; text-align: left; border-radius: 8px; padding: 12px 14px; font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.5; transition: opacity .2s ease; }
.sr-ctb .crit-tip::after { content: ""; position: absolute; top: 50%; right: 100%; margin-top: -5px; border: 5px solid transparent; border-right-color: var(--c-ink); }
.sr-ctb .crit-tip-title { display: block; font-weight: 800; margin-bottom: .4em; }
.sr-ctb .crit-tip p,
.sr-ctb .crit-tip-p { display: block; color: #dce4f2; margin: 0 0 .6em; font-size: 14px; }
.sr-ctb .crit-tip p:last-child,
.sr-ctb .crit-tip-p:last-child { margin-bottom: 0; }
.sr-ctb .crit-info:hover .crit-tip, .sr-ctb .crit-info:focus .crit-tip { visibility: visible; opacity: 1; }
@media (max-width: 860px) {
	.sr-ctb .crit-tip { left: 50%; top: calc(100% + 12px); transform: translateX(-50%); width: min(320px, 86vw); }
	.sr-ctb .crit-tip::after { top: -10px; right: auto; left: 50%; transform: translateX(-50%); margin-top: 0; border-color: transparent transparent var(--c-ink) transparent; }
}

/* Two pills in one cell (High Reward + Low Risk) sit side by side with breathing room. */
.sr-ctb .cell .pill + .pill { margin-left: 8px; }
.sr-ctb .cell-explain + .cell-explain { margin-top: .5em; }

/* The row clips its children for the rounded corners, which also beheads the
   tooltip. While a tooltip is open the row lets go of the clipping and rises
   above its siblings; closed, corners clip exactly as before. */
.sr-ctb .crow { position: relative; }
.sr-ctb .crow:focus-within,
.sr-ctb .crow:has(.crit-info:hover) { overflow: visible; z-index: 6; }

/* And the panel opens downward from the dot, aligned to the criterion column,
   so a long note grows over the rows below instead of dying against the top
   edge of its own row. */
.sr-ctb .crit-tip { left: -12px; top: calc(100% + 12px); transform: none; }
.sr-ctb .crit-tip::after { top: -10px; right: auto; left: 22px; margin-top: 0; border-color: transparent transparent var(--c-ink) transparent; }
