:root {
    --accent: #2347b8;
    --accent-ink: #1b3891;
    --accent-soft: #dfe5f5;
    --paper: #ecedea;
    --surface: #f6f6f4;
    --ink: #16181b;
    --text: #2a2d31;
    --muted: #595e65;
    --line: #c6c8c4;
    --line-soft: #d9dad6;
    --dark: #1d1f22;
    --sans: "Inter Tight", "Segoe UI", Arial, system-ui, sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --wrap: 1280px;
    --pad: 24px;
    --side: 250px;
    --gap: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body.qt {
    display: flex; flex-direction: column; min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 17px/1.6 var(--sans);
    font-variant-numeric: lining-nums tabular-nums;
    overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.qt-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.qt-skip {
    position: absolute; left: -9999px; top: 0; z-index: 50;
    padding: 12px 18px; background: var(--accent); color: #fff;
    font: 600 15px var(--sans); text-decoration: none;
}
.qt-skip:focus { left: 0; color: #fff; }

.qt-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.qt-main { flex: 1 0 auto; padding-bottom: 72px; }

.qt-head { background: var(--surface); }
.qt-head__grid {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 40px;
    min-height: 88px;
}
.qt-logo {
    display: inline-flex; align-items: center; gap: 14px;
    color: var(--ink); text-decoration: none;
}
.qt-logo:hover { color: var(--ink); }
.qt-logo__mark { flex: none; color: var(--ink); }
.qt-logo__lot { fill: var(--accent); }
.qt-logo__name { font: 800 27px/1 var(--sans); letter-spacing: -.035em; }
.qt-head__tagline {
    margin: 0; padding-left: 40px; border-left: 1px solid var(--line);
    font: 500 15px/1.35 var(--sans); color: var(--muted); max-width: 40ch;
}
.qt-head__date { margin: 0; font: 600 15px var(--sans); color: var(--ink); }

.qt-nav { border-top: 1px solid var(--line); border-bottom: 2px solid var(--ink); background: var(--surface); }
.qt-nav__row { display: flex; flex-wrap: wrap; }
.qt-nav__link {
    padding: 13px 22px; border-right: 1px solid var(--line);
    font: 600 15px/1.2 var(--sans); color: var(--ink); text-decoration: none;
}
.qt-nav__link:first-child { border-left: 1px solid var(--line); }
.qt-nav__link:hover { background: var(--paper); color: var(--ink); }
.qt-nav__link.is-active { box-shadow: inset 0 -4px 0 var(--accent); }

.qt-front {
    display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    margin-top: 40px;
}
.qt-lead { padding: 28px 40px 36px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.qt-lead__media { display: block; }
.qt-lead__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qt-lead__text { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 28px; margin-top: 26px; }
.qt-lead__meta {
    grid-row: span 2; margin: 6px 0 0; padding-top: 10px; border-top: 2px solid var(--accent);
    font: 700 17px/1.3 var(--sans); color: var(--ink);
}
.qt-lead__meta span { display: block; font-weight: 500; color: var(--muted); }
.qt-lead__title {
    margin: 0 0 16px; font: 800 clamp(30px, 3.6vw, 46px)/1.06 var(--sans);
    letter-spacing: -.03em; color: var(--ink); text-wrap: balance;
}
.qt-lead__title a { text-decoration: none; }
.qt-lead__title a:hover { color: var(--accent); }
.qt-lead__lead { margin: 0; max-width: 62ch; font: 400 19px/1.6 var(--serif); color: var(--text); }

.qt-index { padding: 28px 0 36px 32px; border-top: 1px solid var(--line); }
.qt-index__title {
    margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
    font: 700 20px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink);
}
.qt-index__list { margin: 0 0 22px; padding: 0; list-style: none; }
.qt-index__item {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 0;
    padding: 15px 0; border-bottom: 1px solid var(--line);
}
.qt-index__num { grid-row: span 2; font: 700 15px/1.45 var(--sans); color: var(--accent); }
.qt-index__link { font: 600 17px/1.35 var(--sans); color: var(--ink); text-decoration: none; }
.qt-index__link:hover { text-decoration: underline; }
.qt-index__time { font: 500 13px var(--sans); color: var(--muted); }

.qt-more {
    display: inline-block; padding: 9px 16px; border: 1px solid var(--ink);
    font: 600 14px var(--sans); color: var(--ink); text-decoration: none;
}
.qt-more:hover { background: var(--ink); color: var(--paper); }

.qt-plan { margin-top: 56px; }
.qt-plan__head {
    display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px;
    padding-bottom: 14px; border-bottom: 2px solid var(--ink);
}
.qt-plan__title { margin: 0; font: 800 30px/1.1 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.qt-plan__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid var(--line);
}
.qt-block {
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px 20px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.qt-block__ref { display: flex; align-items: center; gap: 10px; }
.qt-block__ref b {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px;
    border: 1px solid var(--ink); border-radius: 50%;
    font: 600 12px/1 var(--sans); color: var(--ink);
}
.qt-block__ref::after {
    content: ""; flex: 1; height: 1px; opacity: .6;
    background: repeating-linear-gradient(90deg, var(--muted) 0 10px, transparent 10px 14px, var(--muted) 14px 16px, transparent 16px 20px);
}
.qt-block__media { display: block; }
.qt-block__media img, .qt-block__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qt-block__ph { display: block; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 9px), var(--surface); }
.qt-block__title { margin: 0; font: 700 18px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.qt-block__title a { text-decoration: none; }
.qt-block__title a:hover { color: var(--accent); }
.qt-block__meta {
    display: flex; flex-wrap: wrap; gap: 4px 16px; margin: auto 0 0;
    font: 500 13px var(--sans); color: var(--muted);
}
.qt-block__meta time { color: var(--ink); font-weight: 600; }


.qt-title {
    margin: 0; font: 800 clamp(34px, 5vw, 60px)/1.04 var(--sans);
    letter-spacing: -.035em; color: var(--ink);
}
.qt-title__page { display: block; margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); }

.qt-section__head { padding: 28px 0 32px; }
.qt-section__note { margin: 14px 0 0; font: 400 19px/1.5 var(--serif); color: var(--muted); }

.qt-rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.qt-row {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) 220px; gap: 0 32px;
    padding: 24px 0; border-bottom: 1px solid var(--line);
}
.qt-row__date { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.qt-row__day { font: 700 22px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.qt-row__time { font: 500 14px var(--sans); color: var(--muted); }
.qt-row__title { margin: 0 0 8px; font: 700 23px/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.qt-row__title a { text-decoration: none; }
.qt-row__title a:hover { color: var(--accent); text-decoration: underline; }
.qt-row__lead { margin: 0; max-width: 64ch; font: 400 17px/1.6 var(--serif); color: var(--text); }
.qt-row__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.qt-rows--compact .qt-row { grid-template-columns: 100px minmax(0, 1fr); }
.qt-rows--compact .qt-row__thumb, .qt-rows--compact .qt-row__lead { display: none; }
.qt-rows--compact .qt-row__title { font-size: 19px; margin: 0; }

.qt-empty { padding: 40px 0; font-size: 18px; color: var(--muted); }

.crumbs { margin: 0 0 22px; font: 500 13px/1.4 var(--sans); color: var(--muted); }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs__item { min-width: 0; }
.crumbs__item + .crumbs__item::before { content: "/"; margin: 0 10px; color: var(--line); }
.crumbs__item a { color: var(--muted); text-decoration: none; }
.crumbs__item a:hover { color: var(--accent); text-decoration: underline; }
.crumbs__item span { color: var(--ink); }

.qt-article__head { padding-top: 28px; padding-bottom: 36px; }
.qt-article__section { margin: 0 0 14px; font: 700 15px var(--sans); }
.qt-article__section a { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; }
.qt-article__section a::before { content: ""; width: 12px; height: 12px; background: var(--accent); }
.qt-article__section a:hover { text-decoration: underline; }
.qt-article__title {
    margin: 0 0 20px; font: 800 clamp(32px, 4.4vw, 56px)/1.06 var(--sans);
    letter-spacing: -.035em; color: var(--ink);
}
.qt-article__lead { margin: 0; font: 400 22px/1.5 var(--serif); color: var(--text); }

.qt-article__grid, .qt-after {
    display: grid; grid-template-columns: var(--side) auto; gap: 0 var(--gap);
}
.qt-article__grid { padding-top: 0; }
.qt-article__side { border-top: 2px solid var(--ink); }
.qt-article__main { min-width: 0; }
.qt-after__main { grid-column: 2; min-width: 0; }

.qt-facts { margin: 0 0 22px; }
.qt-facts__row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qt-facts dt { font: 500 13px var(--sans); color: var(--muted); }
.qt-facts dd { margin: 2px 0 0; font: 600 16px/1.35 var(--sans); color: var(--ink); }
.qt-facts dd span { color: var(--muted); font-weight: 500; }

.qt-article__cover { margin: 0 0 36px; }
.qt-article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qt-article__cover figcaption {
    margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--accent);
    font: 500 13px/1.45 var(--sans); color: var(--muted);
}

.qt-prose { counter-reset: qs; font: 400 19px/1.72 var(--serif); color: var(--text); }
.qt-prose > * { margin: 0 0 1.1em; }
.qt-prose > :first-child { margin-top: 0; }
.qt-prose h2 {
    counter-increment: qs;
    display: grid; grid-template-columns: 52px minmax(0, 1fr);
    margin: 2em 0 .7em; padding-top: 16px; border-top: 1px solid var(--line);
    font: 700 28px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink);
    scroll-margin-top: 20px;
}
.qt-prose h2::before { content: counter(qs, decimal-leading-zero); font-size: 17px; line-height: 1.95; color: var(--accent); }
.qt-prose h3 { margin: 1.6em 0 .5em; font: 700 21px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.qt-prose a { color: var(--accent); }
.qt-prose a:hover { color: var(--accent-ink); }
.qt-prose strong { color: var(--ink); font-weight: 600; }
.qt-prose ul, .qt-prose ol { padding-left: 1.4em; }
.qt-prose li { margin-bottom: .4em; padding-left: .2em; }
.qt-prose ul { list-style: square; }
.qt-prose li::marker { color: var(--accent); font-family: var(--sans); font-weight: 700; }
.qt-prose blockquote {
    margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent);
    font: 500 22px/1.45 var(--sans); letter-spacing: -.01em; color: var(--ink);
}
.qt-prose blockquote p { margin: 0; }
.qt-prose img { margin: 1.4em 0; }
.qt-prose figure { margin: 1.6em 0; }
.qt-prose figcaption { margin-top: 8px; font: 500 13px var(--sans); color: var(--muted); }
.qt-prose table {
    display: block; overflow-x: auto; width: 100%; border-collapse: collapse;
    font: 400 15px/1.45 var(--sans);
}
.qt-prose thead th { border-bottom: 2px solid var(--ink); }
.qt-prose th, .qt-prose td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.qt-prose th { font-weight: 700; color: var(--ink); }
.qt-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.toc { margin: 0 0 36px; padding: 18px 22px 20px; border: 1px solid var(--line); background: var(--surface); }
.toc__title { margin: 0 0 10px; font: 700 15px var(--sans); color: var(--ink); }
.toc__list { counter-reset: tc; margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc__list li {
    counter-increment: tc; break-inside: avoid;
    display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 5px 0;
}
.toc__list li::before { content: counter(tc, decimal-leading-zero); font: 600 13px/1.6 var(--sans); color: var(--accent); }
.toc__link { font: 500 15px/1.4 var(--sans); color: var(--ink); text-decoration: none; }
.toc__link:hover { color: var(--accent); text-decoration: underline; }

.faq { margin: 48px 0 0; }
.faq__title { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 800 26px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: start; gap: 16px;
    padding: 16px 0; cursor: pointer; list-style: none;
    font: 600 18px/1.4 var(--sans); color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+"; display: grid; place-items: center; width: 26px; height: 26px;
    border: 1px solid var(--ink); font: 500 18px/1 var(--sans);
}
.faq__item[open] .faq__q::after { content: "−"; background: var(--ink); color: var(--paper); }
.faq__q:hover { color: var(--accent); }
.faq__a p { margin: 0 0 18px; font: 400 17px/1.65 var(--serif); }

.qt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.qt-tags li { padding: 5px 12px; border: 1px solid var(--line); background: var(--surface); font: 500 14px var(--sans); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font: 500 14px var(--sans); color: var(--muted); }
.share__label { width: 100%; font-size: 13px; }
.share__link {
    padding: 6px 10px; border: 1px solid var(--line); background: var(--surface);
    font: 600 13px var(--sans); color: var(--ink); text-decoration: none; cursor: pointer;
}
.share__link:hover { border-color: var(--ink); color: var(--ink); }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 500 14px var(--sans); color: var(--muted); }
.rating__label { width: 100%; font-size: 13px; }
.rating__stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; color: var(--line); }
.rating__stars::before { content: "★★★★★"; }
.rating__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.rating__fill::before { content: "★★★★★"; }
.rating__value { font-weight: 700; color: var(--ink); }
.rating__count { font-size: 13px; }
.rating__vote { display: inline-flex; gap: 2px; width: 100%; margin-top: 4px; }
.rating__btn {
    width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); background: var(--surface);
    font-size: 16px; line-height: 1; color: var(--line); cursor: pointer;
}
.rating__vote:hover .rating__btn, .rating__btn.is-on { color: var(--accent); border-color: var(--accent); }
.rating__btn:hover ~ .rating__btn { color: var(--line); border-color: var(--line); }
.rating__mine { width: 100%; font-weight: 600; color: var(--accent); }

.comments { margin-top: 56px; }
.comments__title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
    font: 800 26px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink);
}
.comments__count { padding: 2px 9px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.comments__notice { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); font: 500 15px var(--sans); color: var(--ink); }
.comments__empty { color: var(--muted); }
.comments__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; }
.comment__author { font: 700 16px var(--sans); color: var(--ink); }
.comment__date { font: 500 13px var(--sans); color: var(--muted); }
.comment__text { font: 400 17px/1.6 var(--serif); color: var(--text); }
.comment__reply { margin-top: 8px; padding: 0; border: 0; background: none; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; }
.comment__reply:hover { text-decoration: underline; }
.comment--reply { margin: 16px 0 0 32px; padding-left: 18px; border-left: 1px solid var(--ink); }
.comments__form { margin-top: 28px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.comments__form-title { margin: 0 0 16px; font: 700 20px var(--sans); color: var(--ink); }
.comments__replying { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; font: 500 14px var(--sans); color: var(--muted); }
.comments__cancel { padding: 0; border: 0; background: none; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; }
.comments__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comments__field { display: block; margin-bottom: 16px; }
.comments__field span { display: block; margin-bottom: 6px; font: 600 14px var(--sans); color: var(--ink); }
.comments__field input, .comments__field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; background: #fff;
    font: 400 16px/1.5 var(--sans); color: var(--ink);
}
.comments__field input:focus, .comments__field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.comments__submit {
    padding: 12px 26px; border: 0; border-radius: 0; background: var(--ink); color: #fff;
    font: 600 16px var(--sans); cursor: pointer;
}
.comments__submit:hover { background: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; font: 600 15px var(--sans); }
.pager__link {
    display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.pager__link:hover { border-color: var(--ink); color: var(--ink); }
.pager__link.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__gap { display: grid; place-items: center; min-width: 30px; color: var(--muted); }

.qt-error { padding-top: 48px; }
.qt-error__plate {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px 48px;
    padding: 36px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.qt-error__code { margin: 0; font: 800 clamp(80px, 14vw, 168px)/.85 var(--sans); letter-spacing: -.05em; color: var(--accent); }
.qt-error__text { margin: 16px 0 24px; max-width: 52ch; font: 400 19px/1.55 var(--serif); }
.qt-button {
    display: inline-block; padding: 12px 22px; background: var(--ink); color: #fff;
    font: 600 16px var(--sans); text-decoration: none;
}
.qt-button:hover { background: var(--accent); color: #fff; }
.qt-error__latest { margin-top: 48px; }
.qt-error__latest .qt-plan__title { margin-bottom: 14px; }

.qt-foot { flex: none; padding: 40px 0 28px; background: var(--dark); color: #b9bdc3; }
.qt-foot__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px;
}
.qt-foot__name { font: 800 22px var(--sans); letter-spacing: -.03em; color: #fff; text-decoration: none; }
.qt-foot__name:hover { color: #fff; text-decoration: underline; }
.qt-foot__tagline { margin: 8px 0 0; font-size: 15px; }
.qt-foot__links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 26px; font: 600 15px var(--sans); }
.qt-foot__links a { color: #fff; text-decoration: none; }
.qt-foot__links a:hover { color: #fff; text-decoration: underline; }
.qt-foot__copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid #3a3d42; font-size: 13px; color: #9a9fa6; }
.qt-foot :focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
    :root { --side: 210px; --gap: 40px; }
    .qt-plan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .qt-head__grid { grid-template-columns: 1fr auto; min-height: 0; padding-top: 18px; padding-bottom: 16px; }
    .qt-head__tagline { grid-row: 2; grid-column: 1 / -1; padding-left: 0; border-left: 0; }
    .qt-front { grid-template-columns: 1fr; margin-top: 24px; }
    .qt-lead { padding: 24px 0 32px; border-right: 0; }
    .qt-index { padding: 0; border-top: 0; }
    .qt-block__media img, .qt-block__ph { aspect-ratio: 16 / 9; }
    .qt-article__grid, .qt-after { grid-template-columns: minmax(0, 1fr); }
    .qt-after__main { grid-column: 1; }
    .qt-article__side { margin-bottom: 32px; }
    .qt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
    .qt-row { grid-template-columns: 96px minmax(0, 1fr) 180px; gap: 0 22px; }
}

@media (max-width: 640px) {
    :root { --pad: 16px; }
    body.qt { font-size: 16px; }
    .qt-logo__name { font-size: 22px; }
    .qt-logo__mark { width: 24px; height: 24px; }
    .qt-nav__link { padding: 12px 16px; }
    .qt-lead__text { grid-template-columns: 1fr; }
    .qt-lead__meta { grid-row: auto; display: flex; gap: 10px; margin: 0 0 14px; border-top: 0; padding-top: 0; font-size: 15px; }
    .qt-lead__meta span { display: inline; }
    .qt-lead__lead { font-size: 17px; }
    .qt-plan__grid { grid-template-columns: minmax(0, 1fr); border-left: 0; }
    .qt-block { padding: 18px 0 24px; border-right: 0; }
    .qt-plan__title { font-size: 25px; }
    .qt-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
    .qt-row__date { flex-direction: row; align-items: baseline; gap: 10px; padding: 0; }
    .qt-row__day { font-size: 16px; }
    .qt-row__thumb { display: none; }
    .qt-row__title { font-size: 20px; }
    .qt-rows--compact .qt-row { grid-template-columns: 1fr; }
    .qt-article__lead { font-size: 19px; }
    .qt-prose { font-size: 18px; }
    .qt-prose h2 { grid-template-columns: 40px minmax(0, 1fr); font-size: 23px; }
    .qt-prose h2::before { font-size: 15px; line-height: 1.75; }
    .qt-prose blockquote { font-size: 19px; padding-left: 16px; }
    .toc__list { columns: 1; }
    .comment--reply { margin-left: 14px; padding-left: 12px; }
    .comments__form { padding: 18px 16px; }
    .qt-error__plate { grid-template-columns: 1fr; }
    .qt-foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.comments__replying[hidden], .rating__mine[hidden] { display: none; }

figure:not([class]) { margin: 1.8em 0; }
figure:not([class]) img { display: block; width: 100%; height: auto; border-radius: 0; }
figure:not([class]) figcaption { margin-top: .6em; font-size: .86em; line-height: 1.45; color: inherit; opacity: .72; }

.qt-cookie { position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(420px, calc(100vw - 32px)); padding: 20px 22px; background: var(--surface); border: 1px solid var(--ink); color: var(--text); font: 400 15px/1.6 var(--sans); }
.qt-cookie[hidden] { display: none; }
.qt-cookie::before, .qt-cookie::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
.qt-cookie::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.qt-cookie::after { right: -8px; bottom: -8px; border-top: 0; border-left: 0; }
.qt-cookie__title { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 16px/1.3 var(--sans); }
.qt-cookie__text { margin: 0 0 16px; color: var(--muted); }
.qt-cookie__text a { color: var(--accent-ink); }
.qt-cookie__ok { padding: 11px 22px; border: 0; background: var(--accent); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; }
.qt-cookie__ok:hover { background: var(--ink); }
@media (max-width: 560px) { .qt-cookie { left: 16px; bottom: 16px; } }

.qt-search { display: flex; align-items: stretch; margin-left: auto; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.qt-search__input { width: 220px; padding: 0 16px; border: 0; background: none; color: var(--ink); font: 500 15px var(--sans); }
.qt-search__btn { display: grid; place-items: center; width: 48px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.qt-search__btn:hover { background: var(--ink); }
.qt-search:focus-within { background: var(--paper); }
.qt-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qt-search__input { min-width: 0; -webkit-appearance: none; appearance: none; }
.qt-search__input:focus { outline: none; }
.qt-search__input::placeholder { color: var(--muted); opacity: 1; }
.qt-tags a { color: inherit; text-decoration: none; }
.qt-tags a:hover { text-decoration: underline; }
@media (max-width: 640px) { .qt-search { width: 100%; margin-left: 0; border-top: 1px solid var(--line); } .qt-search__input { flex: 1; width: auto; padding: 12px 16px; } }
