/* Default theme. Colours come from the customizer (--theme-*); layout uses logical properties for RTL/LTR. */
:root {
    --theme-primary-color: #0e7c66;
    --theme-accent-color: #d97706;
}

.theme-hero {
    background: linear-gradient(135deg, var(--theme-primary-color), color-mix(in srgb, var(--theme-primary-color) 55%, var(--theme-accent-color)));
    color: #fff;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: -3rem;
    padding: .5rem 1rem;
    border-radius: .5rem;
    background: #0f172a;
    color: #fff;
    z-index: 50;
}

.skip-link:focus {
    inset-block-start: 1rem;
}

/* Menus (filled by the Content module: <ul><li><a/><ul>…</ul></li></ul>). */
.theme-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-menu li {
    position: relative;
}

.theme-menu a {
    display: inline-block;
    padding-block: .25rem;
}

.theme-menu a:hover,
.theme-menu a[aria-current="page"] {
    color: var(--theme-primary-color);
}

.theme-menu li ul {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    min-inline-size: 12rem;
    flex-direction: column;
    gap: 0;
    padding: .5rem;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 10px 30px rgb(15 23 42 / .08);
    z-index: 30;
}

.theme-menu li:hover > ul,
.theme-menu li:focus-within > ul {
    display: flex;
}

.theme-menu--stacked ul,
.theme-menu--stacked li ul {
    display: flex;
    position: static;
    flex-direction: column;
    gap: .25rem;
    border: 0;
    box-shadow: none;
    padding-block: 0;
    padding-inline: 1rem 0;
}

/* Blocks */
.theme-blocks > * + * {
    margin-block-start: 3rem;
}

.theme-blocks--full > .theme-block {
    border-radius: 0;
}

.theme-blocks--full > :not(.theme-hero):not(.theme-block--full) {
    max-inline-size: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.theme-page__title {
    margin-block-end: 2rem;
}

/* Rich text written in the editor */
.theme-prose {
    max-inline-size: 48rem;
    line-height: 1.8;
    color: #334155;
}

.theme-prose > * + * {
    margin-block-start: 1em;
}

.theme-prose h2 {
    margin-block-start: 1.6em;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.theme-prose h3 {
    margin-block-start: 1.4em;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.theme-prose a {
    color: var(--theme-primary-color);
    text-decoration: underline;
}

.theme-prose ul,
.theme-prose ol {
    padding-inline-start: 1.5rem;
}

.theme-prose ul {
    list-style: disc;
}

.theme-prose ol {
    list-style: decimal;
}

.theme-prose blockquote {
    border-inline-start: 4px solid var(--theme-primary-color);
    padding-inline-start: 1rem;
    color: #475569;
    font-style: italic;
}

.theme-prose pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: .75rem;
    background: #0f172a;
    color: #e2e8f0;
    direction: ltr;
}

.theme-prose table {
    inline-size: 100%;
    border-collapse: collapse;
}

.theme-prose th,
.theme-prose td {
    border: 1px solid #e2e8f0;
    padding: .5rem .75rem;
    text-align: start;
}

.theme-prose img {
    max-inline-size: 100%;
    block-size: auto;
    border-radius: .75rem;
}

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

/* Reveal on scroll: only when JavaScript runs (theme.js adds .theme-js) and motion is welcome. */
.theme-js .theme-reveal {
    opacity: 0;
    transform: translateY(.75rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.theme-js .theme-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .theme-js .theme-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Shared block settings (ADR-0059): spacing, devices, background with readable text. */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block-shell--space-none { margin-block: 0; }
.block-shell--space-small { margin-block: .75rem; }
.block-shell--space-large { margin-block: 3rem; }
.block-shell--bg { background: var(--block-fill); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.block-shell--text, .block-shell--text :where(h2, h3, p, a, span) { color: var(--block-text); }
@media (max-width: 767px) { .block-shell--hide-mobile { display: none; } }
@media (min-width: 768px) { .block-shell--hide-desktop { display: none; } }

/* Columns block. */
.block-row { display: grid; gap: 1rem; grid-template-columns: repeat(var(--row-cols-sm, 1), minmax(0, 1fr)); }
@media (min-width: 768px) { .block-row { grid-template-columns: repeat(var(--row-cols-md, 2), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .block-row { grid-template-columns: repeat(var(--row-cols, 4), minmax(0, 1fr)); } }
.block-row__cell > * { margin-block: 0; }

/* Layout regions, slides, department cards, product rows. */
.theme-layout__block { margin-block: 2rem; }
.theme-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.theme-block__more { font-weight: 600; color: var(--theme-primary-color); }
.theme-slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.theme-slides__item { position: relative; scroll-snap-align: start; }
.theme-slides__item img { display: block; inline-size: 100%; max-block-size: 32rem; object-fit: cover; }
.theme-slides__text { position: absolute; inset-inline-start: 1.5rem; inset-block-end: 1.5rem; max-inline-size: min(32rem, calc(100% - 3rem)); padding: 1rem 1.25rem; border-radius: 1rem; background: rgb(15 23 42 / .72); color: #fff; }
.theme-slides__text h2 { font-size: 1.5rem; font-weight: 700; }
.theme-slides__cta { display: inline-block; margin-block-start: .5rem; padding: .4rem 1rem; border-radius: 999px; background: var(--theme-accent-color); color: #fff; font-weight: 600; }
.theme-departments { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.theme-department { padding: 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .08); }
.theme-department h2 { margin-block-end: .75rem; font-size: 1.125rem; font-weight: 700; }
.theme-department ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.theme-department li span { display: block; overflow: hidden; font-size: .8125rem; white-space: nowrap; text-overflow: ellipsis; }

/*
 * Block styles shared by every theme (ADR-0061): product panel, tiles, detailed row and offer board, category bubbles
 * and cards, brand stores. Colours follow the marketplace tokens (--bm-*) when the theme has them, so dark mode works.
 */
.tb-block {
    --tb-surface: var(--bm-surface, #fff);
    --tb-text: var(--bm-text, #0f172a);
    --tb-muted: var(--bm-muted, #64748b);
    --tb-line: var(--bm-line, #e2e8f0);
    --tb-radius: var(--bm-radius, 1rem);
    --tb-sale: var(--bm-danger, #cc0c39);
    color: var(--tb-text);
}
.tb-block ul { margin: 0; padding: 0; list-style: none; }
.tb-block img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.tb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-block-end: .875rem; }
.tb-head h2 { margin: 0; font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 800; line-height: 1.25; }
.tb-more, .tb-link { color: var(--bm-link, var(--theme-primary-color)); font-weight: 600; }
.tb-more:hover, a:hover > .tb-link, .tb-link:hover { text-decoration: underline; }
.tb-muted { color: var(--tb-muted); font-size: .8125rem; }
.tb-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--tb-radius) * .6); background: var(--bm-surface-2, #f1f5f9); }
.tb-clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .875rem; line-height: 1.4; }
.tb-badge { align-self: flex-start; padding: .2rem .5rem; border-radius: .3rem; background: var(--tb-sale); color: #fff; font-size: .75rem; font-weight: 700; }
.tb-price { font-weight: 700; }
.tb-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.tb-prices strong { font-size: 1.0625rem; }
.tb-off { color: var(--tb-sale); font-weight: 700; }
.tb-stock { color: var(--tb-sale); font-size: .75rem; font-weight: 600; }
.tb-rating { display: flex; align-items: center; gap: .35rem; }
.tb-stars { --tb-pct: calc(var(--tb-rating, 0) / 5 * 100%); background: linear-gradient(90deg, var(--bm-star, #f2a516) var(--tb-pct), var(--tb-line) var(--tb-pct)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .05em; }
[dir="rtl"] .tb-stars { background: linear-gradient(270deg, var(--bm-star, #f2a516) var(--tb-pct), var(--tb-line) var(--tb-pct)); -webkit-background-clip: text; background-clip: text; }

/*
 * A row that scrolls sideways on every screen (display "auto" or "slider"); "grid" wraps instead. It always shows a
 * whole number of items (--tb-rail-n), so none is cut at the edge of the screen.
 */
.tb-rail {
    --tb-rail-n: 2; --tb-rail-gap: .75rem;
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--tb-rail-n) - 1) * var(--tb-rail-gap)) / var(--tb-rail-n));
    gap: var(--tb-rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-block-end: .25rem;
}
.tb-rail > * { scroll-snap-align: start; min-inline-size: 0; }
@media (min-width: 640px) { .tb-rail { --tb-rail-n: 3; } }
@media (min-width: 960px) { .tb-rail { --tb-rail-n: 5; } }
@media (min-width: 1280px) { .tb-rail { --tb-rail-n: 6; } }

/* Coloured panel (2×2 products, offer board). */
.tb-panel { padding: clamp(.875rem, 2vw, 1.25rem); border-radius: var(--tb-radius); background: var(--tb-tint, var(--bm-accent, var(--theme-accent-color, #d97706))); }
.tb-panel > .tb-head :where(h2, a) { color: var(--tb-on-tint, #fff); }
.tb-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tb-panel__item { display: flex; flex-direction: column; gap: .4rem; block-size: 100%; padding: .5rem; border-radius: calc(var(--tb-radius) * .75); background: var(--tb-surface); }
.tb-name { overflow: hidden; font-size: .8125rem; white-space: nowrap; text-overflow: ellipsis; }

/* Single-product tiles. */
.tb-tiles:not(.tb-rail) { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.tb-tile { display: flex; flex-direction: column; gap: .5rem; block-size: 100%; padding: .75rem; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: var(--tb-surface); }
.tb-tile__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-block-size: 2.6em; font-size: 1rem; font-weight: 800; line-height: 1.3; }

/* Detailed row. */
.tb-surface { padding: clamp(.875rem, 2vw, 1.25rem); border-radius: var(--tb-radius); background: var(--tb-surface); }
.tb-detailed { gap: 1rem; --tb-rail-gap: 1rem; }
.tb-detailed:not(.tb-rail) { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.tb-detailed__item { display: flex; flex-direction: column; gap: .4rem; }
.tb-detailed__item .tb-img { background: transparent; }

/* Offer board. */
.tb-board__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 1024px) { .tb-board__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tb-board__item { position: relative; display: flex; flex-direction: column; gap: .4rem; block-size: 100%; padding: 2rem .75rem .75rem; border-radius: calc(var(--tb-radius) * .75); background: var(--tb-surface); }
.tb-ribbon { position: absolute; inset-block-start: 0; inset-inline-start: 0; max-inline-size: 80%; overflow: hidden; padding: .2rem .65rem; border-start-start-radius: inherit; border-end-end-radius: .5rem; background: var(--tb-sale); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }

/* Category bubbles on an arch, and large cards. */
.tb-bubbles { gap: .75rem; }
.tb-bubbles.tb-rail { --tb-rail-n: 3; }
@media (min-width: 640px) { .tb-bubbles.tb-rail { --tb-rail-n: 5; } }
@media (min-width: 960px) { .tb-bubbles.tb-rail { --tb-rail-n: 7; } }
@media (min-width: 1280px) { .tb-bubbles.tb-rail { --tb-rail-n: 8; } }
.tb-bubbles:not(.tb-rail) { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.tb-bubble { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.tb-bubble__arch { display: block; inline-size: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: .75rem .5rem 0; border-radius: 999px 999px var(--tb-radius) var(--tb-radius); background: color-mix(in srgb, var(--tb-tint, #ffe14d) 70%, white); }
.tb-bubble__arch img { object-fit: contain; object-position: bottom; }
.tb-bubble__name { font-size: .875rem; font-weight: 700; line-height: 1.3; }
.tb-cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .tb-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tb-card { display: flex; flex-direction: column; overflow: hidden; block-size: 100%; border-radius: var(--tb-radius); background: var(--bm-surface-2, #f1f5f9); }
.tb-card__img { display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--tb-tint, var(--bm-accent, #d97706)) 18%, var(--tb-surface)); }
.tb-card__img img { object-fit: cover; }
.tb-card__body { display: flex; flex-direction: column; gap: .15rem; padding: .75rem 1rem; }
.tb-card__body strong { font-size: 1.0625rem; }

/* Official brand stores. */
.tb-stores { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tb-store { display: flex; align-items: stretch; overflow: hidden; min-block-size: 6rem; border-radius: var(--tb-radius); background: var(--bm-surface-2, #f1f5f9); }
.tb-store__logo { display: grid; flex: 0 0 42%; place-items: center; padding: .75rem; background: #0b0b0b; color: #fff; font-weight: 800; text-align: center; }
.tb-store__logo img { max-block-size: 3.5rem; filter: brightness(0) invert(1); }
.tb-store__body { display: flex; flex-direction: column; justify-content: center; gap: .35rem; padding: .75rem 1rem; }
.tb-store__body strong { font-size: 1.125rem; }

@media (prefers-reduced-motion: no-preference) {
    .tb-panel__item, .tb-tile, .tb-board__item, .tb-bubble__arch, .tb-card, .tb-store { transition: transform .2s ease; }
    :where(.tb-panel__item, .tb-tile, .tb-board__item, .tb-card, .tb-store):hover, .tb-bubble:hover .tb-bubble__arch { transform: translateY(-2px); }
}

/*
 * App badges in the footers (partials/app-badges): always one row of three equal tiles, glass-dark with a soft top
 * light; a store without a link is muted with a "Coming soon" tag. The list is a size container, so narrow footers
 * drop the small line and tighten the tiles instead of wrapping.
 */
.tb-apps { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding-block: 1.5rem; text-align: center; }
.tb-apps__heading { margin: 0; font-size: 1.125rem; font-weight: 700; }
.tb-apps__list {
    container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem;
    inline-size: 100%; max-inline-size: 34rem; margin: 0; padding: 0; padding-block-start: .5rem; list-style: none;
}
.tb-apps__list > li { display: flex; min-inline-size: 0; }
.tb-app-badge {
    position: relative; display: flex; flex: 1; align-items: center; justify-content: center; gap: .55rem; min-inline-size: 0; min-block-size: 3.25rem;
    padding: .5rem .75rem; border: 1px solid rgb(255 255 255 / .14); border-radius: .875rem;
    background: linear-gradient(180deg, #26262b 0%, #0b0b0d 100%); color: #fff; text-decoration: none;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 10px 22px -14px rgb(0 0 0 / .9);
}
.tb-app-badge__icon { flex: none; inline-size: 1.6rem; block-size: 1.6rem; }
.tb-app-badge__label { display: flex; flex-direction: column; min-inline-size: 0; line-height: 1.1; text-align: start; }
.tb-app-badge__label small, .tb-app-badge__label strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-app-badge__label small { font-size: .625rem; letter-spacing: .02em; opacity: .7; }
.tb-app-badge__label strong { font-size: .975rem; font-weight: 600; letter-spacing: -.01em; }
.tb-app-badge--logo { padding: .25rem; background: none; border-color: transparent; box-shadow: none; }
.tb-app-badge--logo picture, .tb-app-badge--logo img { display: block; inline-size: 100%; }
.tb-app-badge--logo img { block-size: 2.75rem; object-fit: contain; }
a.tb-app-badge:focus-visible { outline: 3px solid var(--bm-accent, var(--theme-primary-color)); outline-offset: 2px; }

/* Not linked yet: muted content and a small tag on the corner. */
.tb-app-badge--soon { cursor: default; box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.tb-app-badge--soon > :not(.tb-app-badge__soon) { opacity: .62; }
.tb-app-badge__soon {
    position: absolute; inset-block-start: 0; inset-inline-end: .5rem; translate: 0 -50%;
    padding: .125rem .5rem; border-radius: 999px; background: var(--bm-accent, var(--theme-accent-color)); color: #fff;
    font-size: .625rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
    box-shadow: 0 0 0 2px var(--bm-nav, #fff), 0 4px 10px -4px var(--bm-accent, var(--theme-accent-color));
}

/* Narrow footers (phones): icon above the store name, so the three still fit in one row without cutting names. */
@container (max-width: 22rem) {
    .tb-app-badge { flex-direction: column; justify-content: center; gap: .3rem; padding: .6rem .35rem .5rem; }
    .tb-app-badge__icon { inline-size: 1.5rem; block-size: 1.5rem; }
    .tb-app-badge__label { align-items: center; text-align: center; }
    .tb-app-badge__label small { display: none; }
    .tb-app-badge__label strong { font-size: .78rem; }
    .tb-app-badge__soon { inset-inline-end: 50%; translate: 50% -50%; }
}

@media (prefers-reduced-motion: no-preference) {
    a.tb-app-badge { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
    a.tb-app-badge:hover {
        transform: translateY(-2px); border-color: color-mix(in srgb, var(--bm-accent, var(--theme-accent-color)) 70%, transparent);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 14px 26px -14px var(--bm-accent, var(--theme-accent-color));
    }
}

/*
 * Store text and popular searches (blocks/seo_text), in the style of large marketplaces: a white panel, small muted
 * paragraphs cut after exactly N lines (paragraphs run inline while cut, so no half lines), blue links and outlined
 * search chips. "Read more" / "Show more" are visually hidden checkboxes: no JavaScript, and the full text and every
 * link stay in the HTML for search engines.
 */
.tb-seo {
    --tb-seo-link: var(--bm-link, #3866df);
    --tb-seo-text: var(--bm-muted, #7e859b);
    --tb-seo-lh: 1.6;
    display: grid;
    gap: 1.25rem;
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    border-radius: var(--bm-radius, .5rem);
    background: var(--tb-surface);
    font-size: .75rem;
}
.tb-seo__section { position: relative; min-inline-size: 0; }
.tb-seo__title { margin: 0 0 .375rem; color: var(--tb-text); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.tb-seo__text { color: var(--tb-seo-text); line-height: var(--tb-seo-lh); overflow-wrap: anywhere; }
.tb-seo__text > * { margin: 0; }
.tb-seo__text > * + * { margin-block-start: .5em; }
.tb-seo__text h3, .tb-seo__text h4 { color: var(--tb-text); font-size: inherit; font-weight: 700; }
.tb-seo__text ul, .tb-seo__text ol { padding-inline-start: 1.25rem; list-style: revert; }
/* Prefixed with .tb-seo so marketplace themes' "a { color: inherit }" does not win. */
.tb-seo .tb-seo__text a, .tb-seo .tb-seo__more { color: var(--tb-seo-link); text-decoration: none; }
.tb-seo .tb-seo__text a:hover, .tb-seo .tb-seo__more:hover { text-decoration: underline; }
.tb-seo__text strong, .tb-seo__text b { color: var(--tb-text); }
.tb-seo__text--cut { max-block-size: calc(var(--tb-seo-lines, 3) * var(--tb-seo-lh) * 1em); overflow: hidden; }
.tb-seo__text--cut > * { display: inline; }
.tb-seo__text--cut > * + * { margin: 0; }
.tb-seo__text--cut > * + *::before { content: " "; }
.tb-seo__toggle { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tb-seo__toggle:checked + .tb-seo__text--cut { max-block-size: none; }
.tb-seo__toggle:checked + .tb-seo__text--cut > * { display: block; }
.tb-seo__toggle:checked + .tb-seo__text--cut > * + * { margin-block-start: .5em; }
.tb-seo__toggle:checked + .tb-seo__text--cut > * + *::before { content: none; }
.tb-seo__more { display: inline-block; margin-block-start: .375rem; cursor: pointer; font-size: .75rem; font-weight: 500; user-select: none; }
.tb-seo__toggle:focus-visible ~ .tb-seo__more { outline: 2px solid var(--tb-seo-link); outline-offset: 2px; border-radius: 2px; }
.tb-seo__open, .tb-seo__toggle:checked ~ .tb-seo__more .tb-seo__closed { display: none; }
.tb-seo__section--fits .tb-seo__toggle:not(:checked) ~ .tb-seo__more { display: none; }
.tb-seo__toggle:checked ~ .tb-seo__more .tb-seo__open { display: inline; }
.tb-block .tb-seo__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: .75rem; }
.tb-seo__extra { display: none; }
.tb-seo__toggle:checked + .tb-seo__chips .tb-seo__extra { display: block; }
.tb-seo__chip {
    display: inline-block; padding: .3125rem .625rem; border: 1px solid var(--tb-line); border-radius: .25rem;
    background: var(--tb-surface); color: var(--tb-text); font-size: .75rem; line-height: 1.35; white-space: nowrap;
}
.tb-seo a.tb-seo__chip { color: var(--tb-text); text-decoration: none; }
.tb-seo a.tb-seo__chip:hover { border-color: var(--tb-seo-link); color: var(--tb-seo-link); }
a.tb-seo__chip:focus-visible { outline: 2px solid var(--tb-seo-link); outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) { a.tb-seo__chip { transition: border-color .15s ease, color .15s ease; } }
