/*
 * Swift and Memes: tests hub (/tests/) and the in-test experience (reference implementation)
 * Requires tokens.css. Selectors are scoped to .smh-tests (hub) and .smh-quiz (a test) so nothing leaks into Katen.
 * Theme: Katen puts `dark` on <html> and <body>; light is the default.
 * Mobile-first. Breakpoints: 768px and 1024px.
 */
.smh-tests, .smh-quiz {
  --t-body: var(--ccp-text);
  --t-strong: var(--ccp-heading);
  --t-card: var(--ccp-surface);
  --t-card-alt: var(--ccp-band-bg);
  --t-chip: rgba(61, 102, 152, 0.10);
  --t-btn-bg: var(--ccp-navy);
  --t-btn-text: #ffffff;
  --t-btn-hover: #12306b;
  --t-ghost-line: var(--ccp-accent);
  --t-ghost-text: var(--ccp-heading);
  --t-track: var(--ccp-border);
  --t-sel: rgba(61, 102, 152, 0.08);
  --t-ok: #15803d;   --t-ok-bg: #e8f6ec;
  --t-bad: #b91c1c;  --t-bad-bg: #fdecec;
  --t-warn: #b45309; --t-warn-bg: #fdf3e2;
  --t-code-bg: #0b1422;
  max-width: 980px; width: calc(100% - 20px); margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  color: var(--t-body); font-family: var(--ccp-font-body); font-size: 16px; line-height: 1.6;
}
html.dark :is(.smh-tests, .smh-quiz), body.dark :is(.smh-tests, .smh-quiz) {
  --t-body: #b6c2d3;
  --t-card-alt: #16233a;
  --t-chip: rgba(123, 188, 255, 0.12);
  --t-btn-bg: var(--ccp-sky);
  --t-btn-text: var(--ccp-navy);
  --t-btn-hover: var(--ccp-sky-hover);
  --t-ghost-line: var(--ccp-sky);
  --t-ghost-text: #ffffff;
  --t-sel: rgba(123, 188, 255, 0.12);
  --t-ok: #4ade80;  --t-ok-bg: rgba(74, 222, 128, 0.12);
  --t-bad: #f87171; --t-bad-bg: rgba(248, 113, 113, 0.12);
  --t-warn: #fbbf24; --t-warn-bg: rgba(251, 191, 36, 0.12);
}
:is(.smh-tests, .smh-quiz) *, :is(.smh-tests, .smh-quiz) *::before, :is(.smh-tests, .smh-quiz) *::after { box-sizing: border-box; }
:is(.smh-tests, .smh-quiz) a { color: var(--ccp-accent); }
:is(.smh-tests, .smh-quiz) code { font-family: var(--ccp-font-mono); font-size: .9em; }
:is(.smh-tests, .smh-quiz) h1 code, .smh-quiz__q-title code { padding: 1px 6px; border-radius: 6px; background: var(--t-chip); }
.smh-t-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.smh-t-icon--fill { fill: currentColor; stroke: none; }
.smh-t-eyebrow { display: block; font-family: var(--ccp-font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ccp-accent); }
.smh-t-h2 { margin: 8px 0 0; font-family: var(--ccp-font-head); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--t-strong); }
.smh-t-card { background: var(--t-card); border: 1px solid var(--ccp-border); border-radius: 16px; }
.smh-t-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  background: var(--t-chip); color: var(--t-strong); font-size: 13px; font-weight: 500;
}
.smh-t-chip .smh-t-icon { width: 16px; height: 16px; color: var(--ccp-accent); }
.smh-t-dots { color: var(--ccp-accent); letter-spacing: 2px; }
.smh-t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
  border-radius: 12px; border: 0; font: 600 15px/1 var(--ccp-font-head); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.smh-t-btn .smh-t-icon { width: 18px; height: 18px; stroke-width: 2.2; }
:is(.smh-tests, .smh-quiz) .smh-t-btn--primary { background: var(--t-btn-bg); color: var(--t-btn-text); }
:is(.smh-tests, .smh-quiz) .smh-t-btn--primary:hover { background: var(--t-btn-hover); }
:is(.smh-tests, .smh-quiz) .smh-t-btn--ghost { background: transparent; border: 1.5px solid var(--t-ghost-line); color: var(--t-ghost-text); }
.smh-t-btn:disabled { opacity: .45; cursor: not-allowed; }
:is(.smh-tests, .smh-quiz) :is(a, button, input, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 3px solid var(--ccp-sky); outline-offset: 2px; }
.smh-t-icon-tile { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--t-chip); color: var(--ccp-accent); flex: 0 0 auto; }
.smh-t-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =================== Hub =================== */
.smh-tests__hero { padding-top: 28px; text-align: center; }
.smh-tests__title { margin: 12px auto 14px; max-width: 900px; font-family: var(--ccp-font-head); font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; color: var(--t-strong); }
.smh-tests__lede { margin: 0 auto; max-width: 660px; font-size: 17px; }
.smh-tests__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.smh-tests__search { display: flex; align-items: center; gap: 12px; margin-top: 24px; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--ccp-input-border); background: var(--ccp-input-bg); }
.smh-tests__search .smh-t-icon { width: 20px; height: 20px; color: var(--ccp-muted); }
.smh-tests__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--t-strong); font: 16px var(--ccp-font-body); outline: none; }
.smh-tests__search input::placeholder { color: var(--ccp-placeholder); }
.smh-tests__search:focus-within { outline: 3px solid var(--ccp-sky); outline-offset: 2px; }
.smh-tests__empty { margin: 16px 0 0; text-align: center; color: var(--ccp-muted); }
.smh-tests__section { margin-top: 48px; }
.smh-tests__section[hidden] { display: none; }
.smh-tests__section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.smh-tests__section-head p { margin: 0; font-size: 15px; color: var(--ccp-muted); }
.smh-tests__grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.smh-tests__grid > li[hidden] { display: none; }
.smh-test-card { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px; text-decoration: none; }
.smh-test-card--quick { flex-direction: column; gap: 12px; padding: 22px; }
.smh-test-card__top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.smh-test-card__level { font: 600 13px var(--ccp-font-head); color: var(--t-strong); }
.smh-test-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.smh-test-card__name { margin: 0; font: 600 18px/1.3 var(--ccp-font-head); color: var(--t-strong); }
.smh-test-card--quick .smh-test-card__name { margin-top: 4px; font-size: 20px; }
.smh-test-card__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ccp-muted); flex: 1; }
.smh-test-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.smh-test-card--quick .smh-test-card__foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ccp-border); }
.smh-test-card__meta { font-size: 13px; color: var(--ccp-muted); }
.smh-test-card__go { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--ccp-font-head); color: var(--ccp-accent); white-space: nowrap; }
.smh-test-card__go .smh-t-icon { width: 16px; height: 16px; stroke-width: 2.2; }
.smh-test-card:hover { border-color: var(--ccp-accent); }
.smh-tests__how { margin-top: 56px; padding: 22px; background: var(--t-card-alt); }
.smh-tests__steps { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.smh-tests__steps li { display: flex; gap: 14px; align-items: flex-start; }
.smh-tests__steps .smh-t-icon-tile { width: 40px; height: 40px; border-radius: 50%; }
.smh-tests__steps b { display: block; font: 600 16px var(--ccp-font-head); color: var(--t-strong); }
.smh-tests__steps div > span { font-size: 14px; color: var(--ccp-muted); }

/* =================== A test =================== */
.smh-quiz__crumbs { padding-top: 20px; font-size: 14px; color: var(--ccp-muted); }
.smh-quiz__crumbs a { text-decoration: none; }
.smh-quiz__crumbs span[aria-hidden] { margin: 0 6px; }
.smh-quiz__panel { margin: 16px auto 0; max-width: none; width: 100%; }

/* Start */
.smh-quiz__start { padding: 24px; }
.smh-quiz__start-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.smh-quiz__start-head .smh-t-icon-tile { width: 52px; height: 52px; border-radius: 14px; }
.smh-quiz__start h1 { margin: 18px 0 10px; font: 700 32px/1.15 var(--ccp-font-head); color: var(--t-strong); }
.smh-quiz__start > p { margin: 0; font-size: 16px; }
.smh-quiz__rules { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ccp-border); list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.smh-quiz__rules li { display: flex; gap: 10px; align-items: flex-start; }
.smh-quiz__rules .smh-t-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--t-ok); stroke-width: 2.4; }
.smh-quiz__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* Question */
.smh-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.smh-quiz__top-name { margin: 0; font: 600 15px var(--ccp-font-head); color: var(--t-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smh-quiz__top-count { font-size: 13px; color: var(--ccp-muted); }
.smh-quiz__timer {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--t-chip); color: var(--t-strong); font: 600 15px var(--ccp-font-head); font-variant-numeric: tabular-nums;
}
.smh-quiz__timer .smh-t-icon { width: 18px; height: 18px; color: var(--ccp-accent); }
.smh-quiz__timer[data-urgent="1"] { background: var(--t-bad-bg); color: var(--t-bad); box-shadow: 0 0 0 2px var(--t-bad); }
.smh-quiz__timer[data-urgent="1"] .smh-t-icon { color: var(--t-bad); }
.smh-quiz__progress { display: flex; gap: 4px; margin-top: 14px; }
.smh-quiz__progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--t-track); }
.smh-quiz__progress span.is-done { background: var(--ccp-accent); }
.smh-quiz__progress span.is-current { background: color-mix(in srgb, var(--ccp-accent) 40%, transparent); }
.smh-quiz__urgent { margin-top: 16px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--t-bad-bg); color: var(--t-bad); font-size: 14px; font-weight: 500; }
.smh-quiz__urgent .smh-t-icon { width: 18px; height: 18px; }
.smh-quiz__q { margin-top: 22px; }
.smh-quiz__q-title { margin: 10px 0 16px; font: 700 22px/1.3 var(--ccp-font-head); color: var(--t-strong); }
.smh-quiz__q-title:focus, .smh-quiz__summary h1:focus { outline: none; }
.smh-quiz__code { margin: 0 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--t-code-bg); border: 1px solid var(--ccp-border); overflow-x: auto; font: 13px/1.6 var(--ccp-font-mono); color: #e2e8f0; }
.smh-quiz__code .k { color: #c792ea; } .smh-quiz__code .n { color: #f78c6c; } .smh-quiz__code .f { color: #82aaff; }
.smh-quiz__hint { margin: 0 0 14px; font-size: 14px; color: var(--ccp-muted); display: flex; align-items: center; gap: 8px; }
.smh-quiz__hint .smh-t-icon { width: 16px; height: 16px; color: var(--ccp-accent); }
.smh-quiz__answers { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.smh-quiz__answer { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer; border: 1px solid var(--ccp-border); background: var(--t-card); margin: 1px; }
.smh-quiz__answer input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smh-quiz__answer:has(input:focus-visible) { outline: 3px solid var(--ccp-sky); outline-offset: 2px; }
.smh-quiz__mark { flex: 0 0 auto; display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; font: 600 14px var(--ccp-font-head); background: var(--t-chip); color: var(--t-strong); }
.smh-quiz__answer--multi .smh-quiz__mark { width: 24px; height: 24px; border-radius: 7px; background: transparent; border: 2px solid var(--ccp-input-border); }
.smh-quiz__mark .smh-t-icon { width: 16px; height: 16px; stroke-width: 3; display: none; }
.smh-quiz__text { flex: 1; font-size: 15px; line-height: 1.45; }
.smh-quiz__answer:has(input:checked) { border: 2px solid var(--ccp-accent); background: var(--t-sel); margin: 0; }
.smh-quiz__answer:has(input:checked) .smh-quiz__mark { background: var(--t-btn-bg); color: var(--t-btn-text); border-color: var(--t-btn-bg); }
.smh-quiz__answer:has(input:checked) .smh-quiz__mark .smh-t-icon { display: block; }
.smh-quiz__answer:has(input:checked) .smh-quiz__text { color: var(--t-strong); font-weight: 500; }
.smh-quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ccp-border); }
.smh-quiz__nav .smh-t-btn--primary { flex: 1; }

/* Notices */
.smh-quiz__notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--t-warn-bg); border: 1px solid color-mix(in srgb, var(--t-warn) 35%, transparent); color: var(--t-strong); }
.smh-quiz__notice .smh-t-icon { width: 20px; height: 20px; color: var(--t-warn); margin-top: 1px; }
.smh-quiz__notice b { display: block; font: 600 15px var(--ccp-font-head); }
.smh-quiz__notice span { font-size: 14px; color: var(--t-body); }
.smh-quiz__error { margin: 40px auto 0; max-width: 560px; padding: 28px; text-align: center; }
.smh-quiz__error-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--t-bad-bg); color: var(--t-bad); }
.smh-quiz__error-icon .smh-t-icon { width: 28px; height: 28px; }
.smh-quiz__error h1 { margin: 16px 0 8px; font: 700 24px var(--ccp-font-head); color: var(--t-strong); }
.smh-quiz__error p { margin: 0; }
.smh-quiz__error .smh-quiz__actions { margin-top: 22px; }

/* Results */
.smh-quiz__summary { padding: 24px; }
.smh-quiz__summary-head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.smh-quiz__ring { width: 112px; height: 112px; flex: 0 0 auto; }
.smh-quiz__ring circle { fill: none; stroke-width: 10; }
.smh-quiz__ring .track { stroke: var(--t-track); }
.smh-quiz__ring .value { stroke: var(--ccp-accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.smh-quiz__ring[data-band="low"] .value { stroke: var(--t-warn); }
.smh-quiz__ring text { font: 700 26px var(--ccp-font-head); fill: var(--t-strong); }
.smh-quiz__summary h1 { margin: 8px 0 6px; font: 700 28px/1.2 var(--ccp-font-head); color: var(--t-strong); }
.smh-quiz__summary-head p { margin: 0; }
.smh-quiz__stats { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.smh-quiz__stats li { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--ccp-muted); }
.smh-quiz__stats b { display: block; font: 700 22px var(--ccp-font-head); }
.smh-quiz__stats .ok { background: var(--t-ok-bg); } .smh-quiz__stats .ok b { color: var(--t-ok); }
.smh-quiz__stats .bad { background: var(--t-bad-bg); } .smh-quiz__stats .bad b { color: var(--t-bad); }
.smh-quiz__stats .none { background: var(--t-warn-bg); } .smh-quiz__stats .none b { color: var(--t-warn); }
.smh-quiz__review { margin-top: 40px; }
.smh-quiz__review-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.smh-quiz__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.smh-quiz__filters button { border: 0; cursor: pointer; font-family: inherit; }
.smh-quiz__filters button[aria-pressed="true"] { background: var(--t-btn-bg); color: var(--t-btn-text); }
.smh-quiz__items { display: flex; flex-direction: column; gap: 14px; }
.smh-quiz__item { padding: 18px; }
.smh-quiz__item[hidden] { display: none; }
.smh-quiz__badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.smh-quiz__badge--ok { background: var(--t-ok-bg); color: var(--t-ok); }
.smh-quiz__badge--bad { background: var(--t-bad-bg); color: var(--t-bad); }
.smh-quiz__badge--partial, .smh-quiz__badge--none { background: var(--t-warn-bg); color: var(--t-warn); }
.smh-quiz__item h3 { margin: 12px 0 14px; font: 600 17px/1.35 var(--ccp-font-head); color: var(--t-strong); }
.smh-quiz__item .smh-quiz__code { margin-bottom: 14px; }
.smh-quiz__item ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.smh-quiz__item li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ccp-border); margin: 1px; font-size: 15px; line-height: 1.45; }
.smh-quiz__item li .smh-t-icon { width: 18px; height: 18px; stroke-width: 2.6; }
.smh-quiz__item li .spacer { display: inline-block; width: 18px; flex: 0 0 auto; }
.smh-quiz__item li span.txt { flex: 1; }
.smh-quiz__item li em { display: none; flex: 0 0 auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ccp-muted); }
.smh-quiz__item li.is-yours-ok { border: 2px solid var(--t-ok); background: var(--t-ok-bg); margin: 0; }
.smh-quiz__item li.is-yours-bad { border: 2px solid var(--t-bad); background: var(--t-bad-bg); margin: 0; }
.smh-quiz__item li.is-correct { border: 2px dashed var(--t-ok); margin: 0; }
.smh-quiz__item li.is-yours-ok .smh-t-icon, .smh-quiz__item li.is-correct .smh-t-icon { color: var(--t-ok); }
.smh-quiz__item li.is-yours-bad .smh-t-icon { color: var(--t-bad); }
.smh-quiz__explain { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--t-card-alt); display: flex; gap: 10px; font-size: 14px; line-height: 1.55; }
.smh-quiz__explain .smh-t-icon { width: 18px; height: 18px; color: var(--ccp-accent); margin-top: 1px; }
.smh-quiz__explain strong { color: var(--t-strong); }
.smh-quiz__no-answer { margin: 12px 0 0; font-size: 14px; color: var(--ccp-muted); }
.smh-quiz__related { margin-top: 40px; }
.smh-quiz__related ul { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.smh-quiz__post { display: flex; align-items: center; gap: 14px; padding: 16px; height: 100%; text-decoration: none; }
.smh-quiz__post-thumb { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #0A2250, #23427a); color: #7bbcff; }
.smh-quiz__post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.smh-quiz__post b { display: block; font: 600 15px/1.35 var(--ccp-font-head); color: var(--t-strong); }
.smh-quiz__post-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--ccp-muted); }

/* =================== 768px and up =================== */
@media (min-width: 768px) {
  .smh-tests, .smh-quiz { padding: 0; font-size: 17px; }
  .smh-t-h2 { font-size: 28px; }
  .smh-tests__title { font-size: 44px; }
  .smh-tests__grid--quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .smh-tests__grid--deep { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .smh-tests__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .smh-tests__how { padding: 28px; }
  .smh-quiz__crumbs { padding-top: 32px; }
  .smh-quiz__start { padding: 40px; }
  .smh-quiz__start h1 { font-size: 40px; }
  .smh-quiz__actions { flex-direction: row; }
  .smh-quiz__actions .smh-t-btn--primary { min-width: 200px; }
  .smh-quiz__q-title { font-size: 26px; margin-bottom: 20px; }
  .smh-quiz__code { font-size: 14px; }
  .smh-quiz__answer { padding: 16px 18px; }
  .smh-quiz__text { font-size: 16px; }
  .smh-quiz__nav .smh-t-btn--primary { flex: 0 0 auto; min-width: 170px; }
  .smh-quiz__summary { padding: 36px; }
  .smh-quiz__summary-head { flex-direction: row; text-align: left; gap: 32px; }
  .smh-quiz__ring { width: 136px; height: 136px; }
  .smh-quiz__ring text { font-size: 32px; }
  .smh-quiz__summary h1 { font-size: 36px; }
  .smh-quiz__review { margin-top: 56px; }
  .smh-quiz__review-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .smh-quiz__item { padding: 24px; }
  .smh-quiz__item h3 { font-size: 19px; }
  .smh-quiz__item li em { display: inline; }
  .smh-quiz__related { margin-top: 64px; }
  .smh-quiz__related ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .smh-quiz__post { flex-direction: column; align-items: stretch; }
  .smh-quiz__post-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .smh-quiz__post-thumb .smh-t-icon { width: 40px; height: 40px; }
  .smh-quiz__error { margin-top: 72px; padding: 40px; }
  .smh-quiz__error .smh-quiz__actions { justify-content: center; }
}

/* =================== 1024px and up =================== */
@media (min-width: 1024px) {
  .smh-tests__hero { padding-top: 64px; text-align: left; }
  .smh-tests__title { margin-left: 0; font-size: 52px; }
  .smh-tests__lede { margin-left: 0; font-size: 19px; }
  .smh-tests__chips { justify-content: flex-start; }
  .smh-tests__search { max-width: 520px; margin-top: 32px; }
  .smh-tests__empty { text-align: left; }
  .smh-tests__section { margin-top: 80px; }
  .smh-tests__section-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .smh-tests__grid--quick { gap: 20px; }
  .smh-tests__grid--deep { gap: 20px; }
  .smh-test-card { padding: 24px; }
  .smh-test-card--quick { padding: 26px; }
  .smh-tests__how { margin-top: 80px; padding: 32px; }
  .smh-quiz__crumbs { padding-top: 40px; }
  .smh-quiz__panel { margin-top: 24px; }
  .smh-quiz__q { margin-top: 30px; }
  .smh-quiz__q-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) { .smh-t-btn { transition: none; } }
