/* Subscriptions page (subscriptions.js). Loaded before lab.css and content.css by the template's
   EXTRA_CSS slot, so every rule here uses its own sb- classes. The table is the page's one loud
   element; the covers above it and the questions below stay quiet.
   Tier columns get lighter from left to right (each tier holds the one before it); a solid
   orange tick marks where an item first appears, an outlined one marks it carried upward. */

.sb-intro { max-width: 980px; }
.sb-lead { color: var(--wall, #d6d6dc); font-size: 18px; line-height: 1.55; margin: 14px 0 0; max-width: 62ch; }
.sb-via { align-items: center; color: var(--muted); display: flex; font-size: 15px; gap: 8px; margin: 12px 0 0; }
.sb-via .ct-logo { background: none; color: #fff; height: auto; width: auto; }
.sb-via .ct-logo svg { height: 15px; width: 15px; }

.sb-sec { margin-top: 56px; }
.sb-sec--strip { margin-top: 36px; }

/* ---------- The covers, as nested tiers ---------- */
.sb-strip { column-gap: 4px; display: grid; grid-template-columns: repeat(var(--total), minmax(0, 1fr)); row-gap: 0; }
.sb-brackets { display: contents; list-style: none; margin: 0; padding: 0; }
/* Outermost tier on top: the brackets are written cheapest first, so they reverse here. */
.sb-bracket { grid-column: 1 / span var(--span); padding-bottom: 8px; position: relative; }
.sb-bracket:nth-child(1) { grid-row: 3; }
.sb-bracket:nth-child(2) { grid-row: 2; }
.sb-bracket:nth-child(3) { grid-row: 1; }
.sb-bracket::after {
  border: 1.5px solid rgb(255 255 255 / .22); border-bottom: 0; border-radius: 3px 3px 0 0; bottom: 0; content: ""; height: 7px; left: 0; position: absolute; right: 0;
  transition: border-color .15s;
}
.sb-bracket__label { color: var(--muted); display: block; font-size: 13.5px; padding: 0 0 4px 2px; white-space: nowrap; }
.sb-bracket__label b { color: #fff; font-weight: 800; }
.sb-bracket.is-lit::after { border-color: var(--flare); }
.sb-bracket.is-lit .sb-bracket__label b { color: var(--flare); }
.sb-segs { display: contents; }
.sb-seg { grid-column: span var(--cols); grid-row: 4; min-width: 0; }
.sb-seg__grid { display: grid; gap: 4px; grid-auto-flow: dense; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(3, auto); margin-top: 6px; }
.sb-seg__head { color: var(--muted); font-size: 13.5px; margin: 8px 0 0 2px; order: 2; }
.sb-seg__head b { color: #fff; font-weight: 800; }
/* The first tier is named by its bracket, and one cover is too narrow for a caption. */
.sb-seg:first-child .sb-seg__head { visibility: hidden; }
.sb-seg { display: flex; flex-direction: column; }
.sb-cover { aspect-ratio: 16 / 10; background: var(--card); border-radius: 4px; display: block; overflow: hidden; position: relative; transition: opacity .2s, filter .2s; }
.sb-cover[style*="span"] { aspect-ratio: auto; }
.sb-cover img { height: 100%; object-fit: cover; width: 100%; }
.sb-cover__name {
  background: linear-gradient(transparent, rgb(0 0 0 / .85)); bottom: 0; color: #fff; font-size: 12px; font-weight: 700; left: 0; line-height: 1.25; opacity: 0;
  padding: 14px 6px 5px; position: absolute; right: 0; transition: opacity .15s;
}
.sb-cover:hover .sb-cover__name, .sb-cover:focus-visible .sb-cover__name { opacity: 1; }
.sb-cover:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
.sb-strip.is-lighting .sb-seg:not(.is-lit) .sb-cover { filter: grayscale(.8); opacity: .28; }

/* ---------- Section head: the title and the keep-your-files note ---------- */
.sb-sechead { align-items: end; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; margin-bottom: 22px; }
.sb-keep {
  align-items: center; background: rgb(196 153 82 / .1); border: 1px solid rgb(196 153 82 / .35); border-radius: 8px; color: #ece6da; display: flex; font-size: 15px;
  gap: 12px; line-height: 1.45; margin: 0; max-width: 640px; padding: 12px 16px;
}
.sb-keep svg { color: var(--gold); flex: none; height: 24px; width: 24px; }
.sb-keep b { color: #fff; font-weight: 800; }

/* ---------- The table ---------- */
/* Dali, 11-10: "redesign the table itself so it has a background color (same as content cards),
   also i want every row for the patreon tiers to have its own container so each will have like a
   tall box behind it". So the table sits on a card, and inside it every tier (Free too) is one
   tall box from its name down to its last row. It stays a real table: a box is the tier
   column's own cells, with a gap between the columns (border-spacing), a side line on every
   cell and rounded ends on the first and last. The row labels stay on the card, outside the
   boxes, and group rows carry an empty cell per tier so the boxes run on through them. */
#compare, #questions {
  /* The content cards' surface (.ct-card in content.css keeps these as plain values, so they
     are repeated here): its hairline, orange underline and radius, and its fill as one colour,
     the middle of its #111117 to #0c0c11 gradient, because the pinned row needs a solid colour
     to match and over a table this tall the gradient is one colour anyway. The questions'
     containers further down use the same surface. */
  --sb-card: #0e0e14;
  --sb-card-line: rgb(255 255 255 / .07);
  --sb-card-rule: rgb(248 80 32 / .45);
  --sb-card-radius: 10px;
}
#compare {
  /* The boxes, lighter as a tier includes more. Solid, so the pinned names hide the rows that
     scroll under them. */
  --sb-b0: #15151c;
  --sb-b1: #191921;
  --sb-b2: #1d1d26;
  --sb-b3: #22222c;
  --sb-box-line: rgb(255 255 255 / .1);
  --sb-box-radius: 10px;
  --sb-gap: 10px;
  --sb-strip: 26px; /* the price line under a pinned name */
}
/* Positioned, so the table's absolutely placed .sr-only labels stay inside it. No overflow
   here or on anything up to the page: the pinned row sticks to the window. */
.sb-card {
  background: var(--sb-card); border: 1px solid var(--sb-card-line); border-bottom: 2px solid var(--sb-card-rule); border-radius: var(--sb-card-radius);
  padding: 0 calc(18px - var(--sb-gap)) 16px; position: relative;
}
.sb-table { border-collapse: separate; border-spacing: var(--sb-gap) 0; font-size: 15px; table-layout: fixed; width: 100%; }
.sb-table th, .sb-table td { padding: 10px 14px; text-align: center; vertical-align: middle; }
.sb-table th[scope="row"], .sb-table th[scope="rowgroup"] { text-align: left; }
.sb-table th[scope="row"] { font-weight: 600; }
.sb-table th[scope="row"] small { color: var(--muted); display: block; font-size: 13px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.sb-table tbody tr:not(.sb-group) > * { border-top: 1px solid var(--hair); }
.sb-table .sb-corner { width: 31%; }

/* A tier's cells are its box. --tint lights a column (pointing at it, or ?tier=), --line is its
   outline. */
.sb-col { --box: var(--sb-b0); --line: var(--sb-box-line); --tint: transparent; }
.sb-col--supporter { --box: var(--sb-b1); }
.sb-col--adventurer { --box: var(--sb-b2); }
.sb-col--legend { --box: var(--sb-b3); }
.sb-table td.sb-col, .sb-pin, .sb-pin__price { background-color: var(--box); background-image: linear-gradient(var(--tint), var(--tint)); }
.sb-table td.sb-col { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sb-table[data-lit="free"] .sb-col--free,
.sb-table[data-lit="supporter"] .sb-col--supporter,
.sb-table[data-lit="adventurer"] .sb-col--adventurer,
.sb-table[data-lit="legend"] .sb-col--legend { --line: rgb(248 80 32 / .45); --tint: rgb(248 80 32 / .085); }
.sb-table .sb-col.is-mine { --line: rgb(248 80 32 / .75); }

/* Head, first row: the tier names, pinned under the site header while the table is on screen
   (--sb-top is the header's height, set by subscriptions.js). The cell itself is the card's
   colour and square, so nothing shows around the box's rounded top or in the gap above it; the
   box top is the .sb-pin inside. */
.sb-table .sb-pinrow > * { background: var(--sb-card); padding: 12px 0 0; position: sticky; top: var(--sb-top, 0px); vertical-align: bottom; z-index: 3; }
.sb-pin {
  align-items: center; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--sb-box-radius) var(--sb-box-radius) 0 0; display: flex; flex-direction: column;
  padding: 16px 6px 8px; position: relative;
}
/* Under a pinned name, its price, once the row below has scrolled away (.is-past, set by
   subscriptions.js). It hangs below the row, over the table's rows, so nothing moves when it
   comes and goes. The corner gets the section's title and the same strip in the card's colour. */
.sb-pin__price {
  border: 1px solid var(--line); border-bottom-color: var(--hair-strong); border-top: 0; box-shadow: 0 14px 16px -12px rgb(0 0 0 / .9); box-sizing: border-box; color: var(--muted);
  font-size: 13px; font-weight: 600; height: var(--sb-strip); left: -1px; line-height: 16px; opacity: 0; overflow: hidden; position: absolute; right: -1px; text-overflow: ellipsis;
  top: 100%; transition: opacity .15s, visibility 0s .15s; visibility: hidden; white-space: nowrap;
}
.sb-pin__title { color: #fff; display: block; font-size: 15px; font-weight: 800; line-height: 1.2; opacity: 0; padding: 0 14px 10px; text-align: left; transition: opacity .15s, visibility 0s .15s; visibility: hidden; }
.sb-pinrow .sb-corner::after { background: var(--sb-card); content: ""; height: var(--sb-strip); left: 0; opacity: 0; position: absolute; right: 0; top: 100%; transition: opacity .15s; }
.sb-table.is-past :is(.sb-pin__price, .sb-pin__title) { opacity: 1; transition: opacity .15s; visibility: visible; }
.sb-table.is-past .sb-pinrow .sb-corner::after { opacity: 1; }
/* Head, second row: the price, what the tier adds, the button. It scrolls away. */
.sb-table .sb-headrow > * { border-bottom: 1px solid var(--hair-strong); padding: 2px 12px 18px; vertical-align: top; }
.sb-head { align-items: center; display: flex; flex-direction: column; gap: 8px; }
.sb-badge {
  background: var(--flare-fill); border: 2px solid var(--flare-fill); border-radius: 999px; color: #fff; display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: -.005em;
  line-height: 1.2; padding: 5px 14px;
}
.sb-badge--free { background: transparent; border-color: rgb(255 255 255 / .55); color: #fff; }
.sb-head__price { color: var(--muted); font-size: 14px; line-height: 1.1; white-space: nowrap; }
.sb-head__price .price { color: #fff; display: block; font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 3px; }
.sb-head__plus { color: var(--muted); font-size: 13px; line-height: 1.35; min-height: 2.7em; }
.sb-head__act { align-items: center; display: flex; flex-direction: column; gap: 6px; width: 100%; }

/* The buttons: the Patreon tier badge of the buy box, white on --flare-fill (MagmaGuy 11-05:
   dark text on the bright orange read badly). Tier badges and the solid ticks use the same pair. */
.sb-cta {
  align-items: center; background: var(--flare-fill); border: 2px solid var(--flare-fill); border-radius: 4px; color: #fff; display: inline-flex; font-size: 14.5px; font-weight: 800;
  gap: .5em; justify-content: center; line-height: 1.25; max-width: 220px; padding: 11px 14px; text-decoration: none; width: 100%;
}
.sb-cta:hover { background: var(--flare-fill-hover); border-color: var(--flare-fill-hover); }
.sb-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sb-cta .ct-logo { background: none; color: inherit; height: auto; width: auto; }
.sb-cta .ct-logo svg { height: 1em; width: 1em; }
.sb-cta__on { color: var(--muted); font-size: 12px; line-height: 1.3; }
.sb-cta__on span { color: #d8d8de; white-space: nowrap; }
.sb-yours { align-items: center; color: var(--flare); display: inline-flex; font-size: 14px; font-weight: 800; gap: 6px; padding: 11px 0; }
.sb-yours svg { height: 18px; width: 18px; }
.sb-incl { color: var(--muted); display: inline-block; font-size: 13.5px; padding: 11px 0; }
.sb-freelink { color: #fff; font-size: 14px; font-weight: 700; padding: 11px 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.sb-freelink:hover { color: var(--flare); }

/* Group rows: the plugin names, as section heads in the label column. Their tier cells are
   empty, so the boxes run on through them. */
.sb-group th { padding: 34px 14px 10px; }
.sb-group th > span { color: var(--flare); font-size: 18px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sb-group small { color: var(--muted); display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.sb-table tbody:first-of-type .sb-group th { padding-top: 26px; }

/* Ticks and dashes. */
.sb-tick { align-items: center; border-radius: 50%; display: inline-flex; height: 26px; justify-content: center; vertical-align: middle; width: 26px; }
.sb-tick svg { height: 16px; width: 16px; }
.sb-tick--yes, .sb-tick--new { background: var(--flare-fill); color: #fff; }
.sb-tick--kept { box-shadow: inset 0 0 0 1.5px rgb(248 80 32 / .6); color: var(--flare); }
.sb-dash { background: rgb(255 255 255 / .2); border-radius: 2px; display: inline-block; height: 2px; vertical-align: middle; width: 14px; }
.sb-cellnote { color: var(--muted); display: block; font-size: 12px; margin-top: 3px; }

/* Value rows. */
.sb-val { color: #fff; font-size: 15px; white-space: nowrap; }
.sb-val b { font-size: 21px; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.01em; }
.sb-val__n { color: var(--muted); display: block; font-size: 13px; }
.sb-est { color: var(--gold); font-size: 14px; font-weight: 800; margin-left: 1px; }
.sb-months, .sb-num { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.sb-num { font-size: 18px; }
/* "Keep the files you downloaded": gold across the row, on the card and inside every box. */
.sb-table tr.sb-row--keep > * { background-image: linear-gradient(rgb(196 153 82 / .13), rgb(196 153 82 / .13)), linear-gradient(var(--tint, transparent), var(--tint, transparent)); }
.sb-row--keep th[scope="row"] { border-radius: 6px 0 0 6px; color: #fff; font-weight: 800; }

/* Item rows: a small cover, the name as a link to its page. */
.sb-item { align-items: center; display: flex; gap: 12px; }
.sb-item img { aspect-ratio: 16 / 10; border-radius: 3px; flex: none; object-fit: cover; width: 54px; }
.sb-item a { color: #fff; font-weight: 700; text-decoration: none; }
.sb-item a:hover { color: var(--flare); text-decoration: underline; text-underline-offset: 3px; }
.sb-item small { margin-top: 1px; }
.sb-row--own th a { color: #d8d8de; }

/* Foot: the price and button again after the long list, and the boxes' rounded ends. */
.sb-table tfoot td { border-top: 1px solid var(--hair-strong); padding: 18px 12px 22px; vertical-align: top; }
.sb-table tfoot td.sb-col { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--sb-box-radius) var(--sb-box-radius); }
.sb-foot { align-items: center; display: flex; flex-direction: column; gap: 10px; }
.sb-foot .sb-head__price .price { font-size: 22px; }

/* Narrow screens: tabs pick the tier shown next to Free (see "Narrow screens" below). Each tab
   is at least 48px tall. */
.sb-tabs { display: none; gap: 6px; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin: 0 0 10px; }
.sb-tab {
  align-items: center; background: var(--sb-b1); border: 1px solid var(--hair-strong); border-radius: 8px; color: #fff; cursor: pointer; display: flex; flex-direction: column;
  font: inherit; gap: 1px; justify-content: center; line-height: 1.25; min-height: 48px; min-width: 0; padding: 6px;
}
.sb-tab b { font-size: 14.5px; font-weight: 800; }
.sb-tab small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sb-tab:hover { border-color: #fff; }
.sb-tab[aria-selected="true"] { background: var(--flare-fill); border-color: var(--flare-fill); }
.sb-tab[aria-selected="true"] small { color: #fff; }
.sb-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sb-legend { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13.5px; gap: 8px 26px; margin: 16px 0 0; }
.sb-legend > span { align-items: center; display: inline-flex; gap: 8px; }
.sb-legend .sb-tick { height: 20px; width: 20px; }
.sb-legend .sb-tick svg { height: 12px; width: 12px; }

/* ---------- Questions ---------- */
/* Dali, 11-10: "put all questions under eachother and align them to the middle, put each
   question in a container with a background as well". One column at every width, centred on
   the page with the heading centred over it. The column is 640px wide at most: with a
   container's padding that leaves a 590px line, which measured 87 characters of answer text at
   its longest, and most lines are shorter. Each question is its own container on the comparison
   table's card surface (same colour, hairline and corners; not its orange underline, which six
   times over would shout). The words inside stay left aligned: centred paragraphs are hard to
   read. A container's header (the <summary>) is the whole click target, 56px tall or more. */
/* Dali, 2026-11-10 17:22: the "Questions" heading bigger (44px on a desktop where the page's other
   section headings are 30px) and a bit more air between the table and this section (88px, was 56). */
#questions { margin-top: 88px; }
#questions > .nb-heading { font-size: clamp(32px, 3.2vw, 44px); text-align: center; }
.sb-qs { display: grid; gap: 10px; margin: 28px auto 0; max-width: 640px; }
.sb-q { background: var(--sb-card); border: 1px solid var(--sb-card-line); border-radius: var(--sb-card-radius); min-width: 0; }
.sb-q summary {
  border-radius: calc(var(--sb-card-radius) - 1px); cursor: pointer; font-size: 17px; font-weight: 700; line-height: 1.3; list-style: none; padding: 17px 58px 17px 24px;
  position: relative;
}
.sb-q summary::-webkit-details-marker { display: none; }
.sb-q summary::after {
  border-bottom: 2px solid var(--flare); border-right: 2px solid var(--flare); content: ""; height: 8px; margin-top: -7px; position: absolute; right: 27px; top: 50%;
  transform: rotate(45deg); transition: transform .2s; width: 8px;
}
.sb-q[open] summary::after { margin-top: -3px; transform: rotate(-135deg); }
.sb-q summary:hover { color: var(--flare); }
.sb-q summary:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
.sb-q__a { color: var(--wall, #d6d6dc); font-size: 15.5px; padding: 0 24px 20px; }
.sb-q__a p { margin: 0 0 10px; }
.sb-q__a p:last-child { margin-bottom: 0; }
#q-keep summary { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sb-cover, .sb-cover__name, .sb-bracket::after, .sb-q summary::after,
  .sb-pin__price, .sb-pin__title, .sb-pinrow .sb-corner::after, .sb-table.is-past :is(.sb-pin__price, .sb-pin__title) { transition: none; }
}

/* Narrowing columns: the button's word is the first thing to outgrow its column (Russian's
   "Подписаться" first, then German and Portuguese), so the button gives up side padding and
   half a pixel of type before that. */
@media (max-width: 1100px) {
  .sb-cta { font-size: 13.5px; gap: .4em; padding: 11px 8px; }
}
/* Four narrow columns: what a tier adds runs to three lines, so every column keeps room for
   three and the buttons stay level. */
@media (min-width: 960px) and (max-width: 1240px) {
  .sb-head__plus { min-height: 4.05em; }
}

/* ---------- Narrow screens: Free and one tier ---------- */
/* Where four tier columns stop fitting, measured in the nine languages on 11-10 with the
   four-column layout forced: the Subscribe button's word sticks out of its button below 900px
   in Russian, 840 in German, 820 in Portuguese, 800 in Spanish; at 960 every language still has
   5px to spare. 960 is also where the site header folds into its menu button, so the table
   switches there too. The tabs show, and the table hides every tier column but the picked one
   (data-pick, subscriptions.js), so it never scrolls sideways; the two-column layout fits down
   to 360px wide in every language. Keep the width in step with `narrow` in subscriptions.js. */
@media (max-width: 959px) {
  .sb-tabs { display: grid; }
  .sb-table[data-pick="supporter"] :is(.sb-col--adventurer, .sb-col--legend),
  .sb-table[data-pick="adventurer"] :is(.sb-col--supporter, .sb-col--legend),
  .sb-table[data-pick="legend"] :is(.sb-col--supporter, .sb-col--adventurer) { display: none; }
  .sb-table .sb-corner { width: 38%; }
  .sb-table .sb-pinrow .sb-col--free { width: 28%; }
}
@media (max-width: 760px) {
  .sb-lead { font-size: 16px; }
  .sb-sec { margin-top: 44px; }
  /* The strip: one block per tier, cheapest first. */
  .sb-strip { display: block; }
  .sb-brackets { display: none; }
  .sb-seg { margin-top: 16px; }
  .sb-seg__head { margin: 0 0 6px 0; order: 0; }
  .sb-seg:first-child .sb-seg__head { visibility: visible; }
  .sb-seg__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: none; margin-top: 0; }
  .sb-cover[style*="span"] { aspect-ratio: 16 / 10; grid-row: auto !important; }
  .sb-cover__name { display: none; }
  .sb-keep { font-size: 14.5px; }
  #compare { --sb-gap: 6px; --sb-strip: 24px; }
  .sb-card { padding: 0 calc(8px - var(--sb-gap)) 10px; }
  .sb-table { font-size: 14px; }
  .sb-table .sb-corner { width: 36%; }
  .sb-table .sb-pinrow .sb-col--free { width: 29%; }
  .sb-table th, .sb-table td { padding: 9px 6px; }
  .sb-table .sb-pinrow > * { padding: 8px 0 0; }
  .sb-pin { padding: 10px 3px 6px; }
  .sb-pin__price { font-size: 12px; }
  .sb-pin__title { font-size: 13px; padding: 0 6px 6px; }
  .sb-table .sb-headrow > * { padding: 2px 5px 14px; }
  .sb-table tfoot td { padding: 14px 5px 16px; }
  .sb-table th[scope="row"] small { font-size: 12px; }
  .sb-group th { padding: 26px 6px 8px; }
  .sb-group small { display: block; font-size: 12.5px; margin: 2px 0 0; }
  .sb-item { align-items: flex-start; flex-direction: column; gap: 6px; }
  .sb-item img { width: 46px; }
  .sb-badge { font-size: 12.5px; padding: 3px 8px; white-space: nowrap; }
  .sb-head__price .price { font-size: 24px; }
  .sb-head__plus { font-size: 12px; }
  .sb-cta { font-size: 13px; padding: 9px 6px; }
  .sb-yours { font-size: 13px; text-align: center; }
  .sb-yours svg { display: none; }
  .sb-cta .ct-logo { display: none; } /* the "On Patreon" line under it names Patreon */
  .sb-cta__on span { white-space: normal; }
  .sb-val b { font-size: 17px; }
  .sb-group th > span { font-size: 16px; }
  #questions { margin-top: 68px; } /* 44px between the other sections at this width */
  .sb-qs { margin-top: 20px; }
  .sb-q summary { padding: 15px 48px 15px 16px; }
  .sb-q summary::after { right: 20px; }
  .sb-q__a { padding: 0 16px 16px; }
  /* A long name or word breaks inside its column instead of sticking out of it. */
  .sb-item > span { max-width: 100%; min-width: 0; }
  .sb-freelink, .sb-head__plus, .sb-cta, .sb-item a { overflow-wrap: anywhere; }
}
/* The smallest phones (360px and under): tighter gaps and a 12px tier name, so the longest
   words still fit (measured: "Бесплатно", "Tommyknockers"). */
@media (max-width: 380px) {
  #compare { --sb-gap: 4px; }
  .sb-card { padding: 0 calc(6px - var(--sb-gap)) 10px; }
  .sb-table th, .sb-table td { padding-left: 4px; padding-right: 4px; }
  .sb-pin { padding-left: 2px; padding-right: 2px; }
  .sb-badge { font-size: 12px; padding: 3px 6px; }
  .sb-freelink { font-size: 13px; }
  .sb-item a { font-size: 13.5px; }
}
