/* Desk2Quant UI kit, part 1: annotated text, browser mockup, ink-stamp cards, graph-paper section.
   Ported to plain CSS from Opensource UI (https://opensourceui.in, MIT, (c) 2026 Bidyut Kundu);
   see THIRD_PARTY_NOTICES.md. Recoloured to the site's palette. No JavaScript needed. */

/* ---------- Annotated text: hand-drawn marks that draw in on load ---------- */
.ann { position: relative; display: inline-block; white-space: nowrap; }
.ann::after {
    content: "";
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    animation: ann-draw 0.9s cubic-bezier(.65, 0, .35, 1) 0.45s both;
}
/* rough hand-drawn underline (brand blue) */
.ann-underline::after {
    left: -1%; bottom: -0.16em; width: 102%; height: 0.32em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 10' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='2' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1.5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath d='M3,6 C40,3 100,3 137,5' stroke='%232f63e8' stroke-width='2.4' stroke-linecap='round' fill='none' filter='url(%23r)'/%3E%3C/svg%3E");
}
/* rough hand-drawn circle (accent rose) */
.ann-circle { padding: 0 0.12em; }
.ann-circle::after {
    left: -0.32em; top: -0.18em; width: calc(100% + 0.64em); height: calc(100% + 0.36em);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 64' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2.6' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath d='M40,40 C20,23 53,7 102,5 C153,3 207,11 211,29 C215,47 167,60 109,60 C59,60 15,53 19,35 C21,27 27,22 37,20' stroke='%23f43f5e' stroke-width='3' stroke-linecap='round' fill='none' filter='url(%23r)'/%3E%3Cpath d='M43,37 C28,25 58,9 105,7 C151,6 199,14 206,29 C212,45 167,57 110,58' stroke='%23f43f5e' stroke-width='1.5' stroke-linecap='round' fill='none' opacity='.55' filter='url(%23r)'/%3E%3C/svg%3E");
}
/* marker highlight behind the words (soft yellow) */
.ann-highlight { isolation: isolate; }
.ann-highlight::after {
    z-index: -1; left: -4%; bottom: -0.02em; width: 108%; height: 0.95em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 26' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='2' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1.5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath d='M4,17 C2,11 5,7 12,6 C45,2 95,2 138,4 C152,5 164,7 166,13 C167,18 163,21 155,22 C112,24 60,24 16,22 C8,21.5 4,20 4,17 Z' fill='%23fde68a' filter='url(%23r)'/%3E%3C/svg%3E");
}
/* ann-highlight-dark: in dark mode (data-theme="dark", or the system setting when no theme is saved) the pale yellow
   marker sat under near-white words and hid them, so it is toned down to olive-amber there. Light mode is unchanged. */
:root[data-theme="dark"] .ann-highlight::after { opacity: .38; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) .ann-highlight::after { opacity: .38; }
}
@keyframes ann-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .ann::after { animation: none; } }

/* ---------- Browser mockup: light chrome with traffic lights and a URL bar ---------- */
.browser-mock {
    width: 100%; min-width: 0; overflow: hidden;
    border: 1px solid #e5e5e5; border-radius: 12px; background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
}
.browser-mock__chrome {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; background: #fafafa; border-bottom: 1px solid #e5e5e5;
}
.browser-mock__dots { display: flex; gap: 6px; }
.browser-mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-mock__dots span:nth-child(2) { background: #fbbf24; }
.browser-mock__dots span:nth-child(3) { background: #34d399; }
.browser-mock__url {
    flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; gap: 6px;
    padding: 0 10px; border-radius: 6px; background: #fff; border: 1px solid #ededed;
    font-family: var(--font-mono); font-size: 12px; color: #737373;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-mock__url i { font-size: 10px; color: #a3a3a3; }
.browser-mock__view { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.browser-mock__view img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.browser-mock__tag {
    position: absolute; left: 14px; bottom: 14px;
    padding: 5px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.86); color: #fff;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
}

/* ---------- Ink-stamp document card ---------- */
.stamp-doc {
    position: relative; display: block; overflow: hidden;
    padding: 18px 20px 20px; border: 1px solid #e5e5e5; border-radius: 12px;
    background: #fffef9; color: inherit; text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}
.stamp-doc:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12); }
.stamp-doc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stamp-doc__ref {
    margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
    text-transform: uppercase; color: #737373;
}
.stamp-doc__title { margin: 6px 0 0; font-family: var(--font-ui); font-size: 1.02rem; font-weight: 600; color: #171717; }
/* the cards stay paper-white in dark mode, so their text keeps dark ink whatever the page theme sets for headings */
body .stamp-doc .stamp-doc__title { color: #171717; }
.stamp-doc__icon {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: 8px; background: #f5f5f5; color: #737373; font-size: 15px;
}
.stamp-doc__meta { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: #525252; }
.stamp-doc__meta li + li { margin-top: 5px; }
.stamp-doc__meta b { color: #737373; font-weight: 500; }
.stamp-doc__rule { height: 1px; margin: 14px 0 10px; background: #e5e5e5; }
.stamp-doc__status { margin: 0; font-size: 12.5px; color: #737373; }
.stamp-doc__status i { margin-left: 4px; font-size: 11px; transition: transform .2s ease; }
.stamp-doc:hover .stamp-doc__status i { transform: translateX(3px); }
.stamp-doc__stamp {
    position: absolute; right: 16px; bottom: 16px; transform: rotate(-12deg);
    padding: 5px 12px; border: 2px solid #f43f5e; border-radius: 6px;
    font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.28em;
    text-transform: uppercase; color: #e11d48; pointer-events: none;
}

/* ---------- The "peek inside" section on graph paper ---------- */
.peek-section {
    position: relative; isolation: isolate; padding: 80px 0;
    background-color: #fff;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.peek-section .section-header { margin-bottom: 40px; }
.peek-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.peek-docs { display: grid; gap: 16px; }
.peek-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.peek-cta small { font-size: 13px; color: var(--text-tertiary); }
@media (max-width: 900px) {
    .peek-section { padding: 56px 0; }
    .peek-grid { grid-template-columns: 1fr; gap: 28px; }
}
.peek-section .section-label { display: inline-flex; }
.editorial-list-page .peek-section { margin: 8px 0 48px; padding: 48px 28px; border: 1px solid var(--border-subtle); border-radius: 16px; }
.editorial-list-page .peek-section .section-container { padding: 0; }
/* hold the kit's look against page-level rules */
section.peek-section .section-header .section-label { display: inline-flex; width: auto; }
.editorial-list-page section.peek-section {
    background-color: #fff;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.peek-grid { align-items: start; }

/* ---------- Session ticket (booking confirmation modal): event-ticket component, recoloured ---------- */
.session-ticket {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; margin: 0 0 16px;
    background: #fffef9; color: #171717; border-radius: 14px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: ticket-in .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
.session-ticket__main { padding: 16px 20px 18px; min-width: 0; }
.session-ticket__kicker {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #737373;
}
.session-ticket__kicker img { border-radius: 4px; }
.session-ticket__title { margin: 8px 0 12px; font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; line-height: 1.1; color: #0f172a; }
.session-ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.session-ticket__grid dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a3a3; }
.session-ticket__grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #171717; overflow-wrap: anywhere; }
.session-ticket__stub {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px 12px; background: #f4f1ea; border-left: 2px dashed #d4d4d4; text-align: center;
}
/* the punched notches at the perforation */
.session-ticket__stub::before, .session-ticket__stub::after {
    content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: #0f172a;
}
.session-ticket__stub::before { top: -10px; }
.session-ticket__stub::after { bottom: -10px; }
.session-ticket__admit {
    padding: 4px 10px; border: 2px solid #0b7f79; border-radius: 6px; transform: rotate(-6deg);
    font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: #0b7f79;
}
.session-ticket__bars {
    width: 100%; height: 34px; opacity: .85;
    background: repeating-linear-gradient(90deg, #171717 0 2px, transparent 2px 4px, #171717 4px 5px, transparent 5px 8px, #171717 8px 11px, transparent 11px 13px);
}
.session-ticket .session-ticket__ref {
    display: block; margin: 0; padding: 0; border: 0; background: none;
    font-family: var(--font-mono); font-size: 10px; line-height: 1.5; color: #525252;
}
.session-ticket__ref #calPaymentId { display: block; font-size: 10.5px; color: #171717; overflow-wrap: anywhere; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
    .session-ticket { grid-template-columns: 1fr; }
    .session-ticket__stub { flex-direction: row; border-left: 0; border-top: 2px dashed #d4d4d4; }
    .session-ticket__stub::before, .session-ticket__stub::after { top: -11px; bottom: auto; }
    .session-ticket__stub::before { left: -10px; }
    .session-ticket__stub::after { left: auto; right: -10px; }
    .session-ticket__bars { width: 90px; flex: none; }
    .session-ticket__main { padding: 14px 16px; }
    .session-ticket__title { font-size: 1.35rem; margin: 6px 0 10px; }
    .session-ticket__grid { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .session-ticket { animation: none; } }

/* ---------- Making Quant Easy: 30-day tracker (contribution-grid component, recoloured) ---------- */
.series-track { margin: 8px 0 48px; padding: 32px 28px 26px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; }
.series-track__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.series-track .section-label { display: inline-flex; width: auto; }
.series-track__title { margin: 10px 0 6px; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; }
.series-track__sub { margin: 0; color: var(--text-secondary); max-width: 560px; }
.series-track__count { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.series-track__big { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: #2f63e8; }
.series-track__of { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-tertiary); }
.series-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.series-grid li { position: relative; }
.series-cell {
    position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.series-cell.is-out { background: #2f63e8; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.series-grid li:nth-child(3n) .series-cell.is-out { background: #2552c9; }
.series-grid li:nth-child(4n+1) .series-cell.is-out { background: #3b6ff0; }
.series-cell.is-next { background: #eef3ff; color: #2f63e8; border: 2px dashed #9db6f5; }
.series-cell.is-later { background: #f3f4f6; color: #6b7280; }
a.series-cell:hover, a.series-cell:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 22px rgba(47, 99, 232, .28); outline: none; z-index: 2; }
.series-tip {
    position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: 240px;
    padding: 9px 12px; border-radius: 10px; background: #0f172a; color: #fff; text-align: left;
    font-family: var(--font-ui); font-size: 12.5px; font-weight: 400; line-height: 1.35;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .3);
    opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .15s ease, transform .15s ease;
}
.series-tip b { display: block; font-weight: 600; }
.series-tip small { display: block; margin-top: 3px; color: #cbd5e1; font-size: 11.5px; }
a.series-cell:hover .series-tip, a.series-cell:focus-visible .series-tip { opacity: 1; transform: translate(-50%, 0); }
.series-grid li:nth-child(10n+1) .series-tip, .series-grid li:nth-child(10n+2) .series-tip { left: 0; transform: translate(0, 6px); }
.series-grid li:nth-child(10n+1) a:hover .series-tip, .series-grid li:nth-child(10n+2) a:hover .series-tip { transform: none; }
.series-grid li:nth-child(10n) .series-tip, .series-grid li:nth-child(10n+9) .series-tip { left: auto; right: 0; transform: translate(0, 6px); }
.series-grid li:nth-child(10n) a:hover .series-tip, .series-grid li:nth-child(10n+9) a:hover .series-tip { transform: none; }
.series-track__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 13px; color: var(--text-secondary); }
.series-legend { display: inline-flex; align-items: center; gap: 6px; }
.series-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.series-dot.is-out { background: #2f63e8; }
.series-dot.is-next { background: #eef3ff; border: 2px dashed #9db6f5; }
.series-dot.is-later { background: #f3f4f6; border: 1px solid #e5e7eb; }
.series-track__follow { margin-left: auto; font-weight: 600; color: #2f63e8; text-decoration: none; }
.series-track__follow:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .series-track { padding: 24px 16px 20px; }
    .series-track__head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .series-track__count { flex-direction: row; align-items: baseline; gap: 8px; }
    .series-track__big { font-size: 2.4rem; }
    .series-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
    .series-tip { display: none; }
    .series-track__follow { margin-left: 0; }
}
section.series-track .series-track__head .section-label { display: inline-flex; width: auto; }

/* ---------- Article code blocks: terminal frame + copy button (assets/js/code-blocks.js) ---------- */
.code-frame { margin: 1.4em 0; border: 1px solid #1f2937; border-radius: 12px; overflow: hidden; background: #0b1020; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); }
.code-frame__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #111827; border-bottom: 1px solid #1f2937; }
.code-frame__dots { display: inline-flex; gap: 6px; }
.code-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.code-frame__dots i:nth-child(2) { background: #febc2e; }
.code-frame__dots i:nth-child(3) { background: #28c840; }
.code-frame__lang { flex: 1; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.code-frame__copy {
    padding: 4px 10px; border: 1px solid #334155; border-radius: 6px; background: #1e293b; color: #e2e8f0;
    font: 600 12px/1.2 var(--font-ui, system-ui, sans-serif); cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.code-frame__copy:hover { background: #273449; }
.code-frame__copy.is-done { border-color: #10b981; color: #6ee7b7; }
.code-frame pre { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

/* ---------- Article typography: drop cap and pull quote (drop-cap editorial and editorial quote components) ---------- */
.seo-article-body > p:first-of-type::first-letter {
    float: left; margin: 0.08em 0.12em 0 0; font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: 3.6em; line-height: 0.8; color: #2f63e8;
}
.seo-article-body blockquote {
    position: relative; margin: 1.6em 0; padding: 18px 22px 18px 58px;
    background: #fffef9; border: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5; border-radius: 12px;
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-size: 1.3em; line-height: 1.35; color: #171717;
}
.seo-article-body blockquote::before {
    content: "\201C"; position: absolute; left: 16px; top: 4px;
    font-family: 'Instrument Serif', Georgia, serif; font-size: 3.2em; line-height: 1; color: #2f63e8;
}
.seo-article-body blockquote p { margin: 0; }

/* Booking: two-week date strip above the native date input */
.date-strip-group { min-width: 0; }
.date-strip-label { display: block; margin-bottom: 8px; font-family: var(--lz-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.date-strip { display: flex; width: 0; min-width: 100%; box-sizing: border-box; gap: 8px; margin: 0; padding: 2px 2px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date-strip__day { flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; width: 56px; padding: 8px 0 7px; border: 1px solid #d9dee8; border-radius: 12px; background: #fff; color: #0f172a; font: inherit; cursor: pointer; scroll-snap-align: start; transition: border-color .15s, background .15s, transform .15s; }
.date-strip__day:hover { border-color: #2f63e8; transform: translateY(-1px); }
.date-strip__day:focus-visible { outline: 2px solid #2f63e8; outline-offset: 2px; }
.date-strip__dow, .date-strip__mon { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.date-strip__num { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.date-strip__day.is-selected { border-color: #2f63e8; background: #2f63e8; color: #fff; }
.date-strip__day.is-selected .date-strip__dow, .date-strip__day.is-selected .date-strip__mon { color: rgba(255,255,255,.85); }
@media (prefers-reduced-motion: reduce) { .date-strip__day { transition: none; } }

/* Products: segmented filter (one track, sliding pill, counts). Added by src/site/020-page-init.js as .is-seg. */
body .products-filter.is-seg {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--hft-rule, #d9dee8);
  border-radius: 999px;
  background: var(--hft-paper, #f3f4f1);
}
body .products-filter.is-seg .seg-indicator {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: var(--hft-accent, #2f63e8);
  box-shadow: 0 4px 14px rgba(47, 99, 232, .28);
  transition: left .3s cubic-bezier(.3, .9, .3, 1), top .3s cubic-bezier(.3, .9, .3, 1), width .3s cubic-bezier(.3, .9, .3, 1), height .3s cubic-bezier(.3, .9, .3, 1), opacity .2s;
  pointer-events: none;
}
body .products-filter.is-seg .filter-btn,
body .products-filter.is-seg .filter-btn:hover,
body .products-filter.is-seg .filter-btn.active {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hft-ink, #15201b) !important;
  transition: color .2s;
}
body .products-filter.is-seg .filter-btn:hover:not(.active) { background: rgba(127, 127, 127, .10) !important; }
body .products-filter.is-seg .filter-btn.active { color: var(--hft-accent-ink, #fff) !important; }
body .products-filter.is-seg .filter-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(127, 127, 127, .16);
  font-family: var(--lz-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .72em;
  font-weight: 700;
  line-height: 1.6;
}
body .products-filter.is-seg .filter-btn.active .filter-count { background: rgba(255, 255, 255, .22); }
@media (max-width: 768px) {
  body .products-filter.is-seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 24px;
  }
  body .products-filter.is-seg .filter-btn { padding: 0 8px; gap: 5px; font-size: .92rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { body .products-filter.is-seg .seg-indicator { transition: none; } }

/* Product card "+": turns into a tick with a pop after adding to the cart. */
body .cart-add-btn.is-added,
body.d2q-launchzone #productsGrid .product-card .cart-add-btn.is-added.is-added {
  background: #0f8a57 !important;
  border-color: #0f8a57 !important;
  color: #fff !important;
  animation: cart-add-pop .42s cubic-bezier(.3, 1.6, .5, 1);
}
body .cart-add-btn.is-added i,
body.d2q-launchzone #productsGrid .product-card .cart-add-btn.is-added.is-added i { color: #fff !important; }
@keyframes cart-add-pop { 0% { transform: scale(.82); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { body .cart-add-btn.is-added { animation: none; } }
