/* qaechi site style: plain and quiet, system fonts, a single highlight color.
   ink        #101418   header, text on highlight
   slate      #4a5562   secondary lines
   highlight  #ffd84d   the highlighter stroke: "this is the evidence" */

:root {
  --qaechi-ink: #101418;
  --qaechi-slate: #4a5562;
  --qaechi-highlight: #ffd84d;
  --qaechi-highlight-soft: rgba(255, 216, 77, .38);
  /* System fonts only, no web font download. Korean falls back to the OS face. */
  --md-text-font-family: "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic",
                         "Noto Sans KR", sans-serif;
  --md-code-font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  /* The variables Material itself reads (font: false in mkdocs.yml). */
  --md-text-font: "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR";
  --md-code-font: "SFMono-Regular", Menlo, Consolas, "Liberation Mono";
}
body, input { -webkit-font-smoothing: antialiased; }

/* Light scheme: ink header, amber links (yellow on white fails contrast). */
[data-md-color-scheme="default"] {
  --md-default-fg-color: #333;
  --md-primary-fg-color: var(--qaechi-ink);
  --md-primary-fg-color--light: #2a323c;
  --md-primary-fg-color--dark: #000;
  --md-primary-bg-color: #fff;
  --md-primary-bg-color--light: rgba(255, 255, 255, .7);
  --md-accent-fg-color: #b07d00;
  --md-accent-fg-color--transparent: rgba(176, 125, 0, .1);
  --md-typeset-a-color: #8a6200;
  --md-typeset-mark-color: var(--qaechi-highlight-soft);
  --qaechi-panel: #fafbfc;
}

/* Dark scheme: the mark's own colors. */
[data-md-color-scheme="slate"] {
  --md-hue: 210;
  --md-default-bg-color: #101418;
  --md-default-bg-color--light: #161b21;
  --md-code-bg-color: #171d24;
  --md-primary-fg-color: #0b0e11;
  --md-primary-fg-color--light: #1b2128;
  --md-primary-fg-color--dark: #000;
  --md-primary-bg-color: #e8ebef;
  --md-accent-fg-color: var(--qaechi-highlight);
  --md-accent-fg-color--transparent: rgba(255, 216, 77, .12);
  --md-typeset-a-color: var(--qaechi-highlight);
  --md-typeset-mark-color: rgba(255, 216, 77, .28);
  --md-footer-bg-color: #0b0e11;
  --md-footer-bg-color--dark: #07090b;
  --qaechi-panel: #141a20;
}

/* Wider page, so tables and diagrams get room (Material's default is 61rem). */
.md-grid { max-width: 68rem; }

/* From the width where the tab bar shows, the tabs are the navigation: drop the duplicate left
   sidebar so content, tables and diagrams get the room. Below it the drawer still has the nav. */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { display: none; }
}

/* ---------- Header ----------
   One dark band (header + tabs, sticky), slightly translucent with a blur, a hairline at the
   bottom and a single highlighter-yellow accent on the current tab. */
.md-header {
  background-color: rgba(16, 20, 24, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
[data-md-color-scheme="slate"] .md-header { background-color: rgba(11, 14, 17, .92); }
/* Material's shadow class */
.md-header--shadow { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.md-header__inner { align-items: center; }
.md-header__button.md-logo { margin: .3rem .3rem .3rem .4rem; }
.md-header__button.md-logo img { height: 1.5rem; }
.md-header__topic:first-child { font-weight: 700; letter-spacing: -.01em; }
/* Every control on the right sits on the same center line. */
.md-header__option { display: flex; align-items: center; align-self: center; }
.md-header__button.md-icon:hover { color: var(--qaechi-highlight); opacity: 1; }

/* Search: a quiet rounded field that lights up on focus. */
@media screen and (min-width: 60em) {
  .md-search__form { border-radius: .6rem; background-color: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .2s, box-shadow .2s; }
  .md-search__form:hover { background-color: rgba(255, 255, 255, .11); }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__form { border-radius: .6rem .6rem 0 0; }
}

/* Site menu in the header row (overrides/partials/qaechi-menu.html): group triggers that open
   a dropdown panel listing each page with a one-line summary, and an Enterprise pill. */
.qaechi-menu { display: none; }
@media screen and (min-width: 76.25em) {
  .qaechi-menu { display: flex; align-self: stretch; flex-shrink: 0; margin: 0 .6rem 0 .4rem; }
  .md-header__title { flex-grow: 1; margin-right: .4rem; }
}
.qaechi-menu__list { display: flex; align-items: stretch; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.qaechi-menu__item { position: relative; display: flex; align-items: center; }
.qaechi-menu__trigger { display: inline-flex; align-items: center; gap: .1rem; height: 1.8rem; padding: 0 .45rem 0 .65rem;
  border-radius: .45rem; font: inherit; font-size: .7rem; font-weight: 600; color: var(--md-primary-bg-color);
  opacity: .85; background: transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, opacity .2s; }
.qaechi-menu__trigger svg { width: .9rem; height: .9rem; fill: currentColor; transition: transform .2s; }
.qaechi-menu__item:hover .qaechi-menu__trigger, .qaechi-menu__item:focus-within .qaechi-menu__trigger {
  opacity: 1; background: rgba(255, 255, 255, .08); }
.qaechi-menu__item:hover .qaechi-menu__trigger svg, .qaechi-menu__item:focus-within .qaechi-menu__trigger svg { transform: rotate(180deg); }
.qaechi-menu__item--active .qaechi-menu__trigger { opacity: 1; color: var(--qaechi-highlight); }
.qaechi-menu__item--active::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: 0; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--qaechi-highlight); }

/* The panel hangs from the bottom of the header; a transparent strip on top keeps the hover
   alive while the pointer travels down into it. */
.qaechi-menu__panel { position: absolute; top: 100%; left: -.4rem; z-index: 5; min-width: 10rem; padding: .4rem;
  border-radius: 0 0 .8rem .8rem; background: var(--md-default-bg-color); color: var(--md-default-fg-color);
  border: 1px solid var(--md-default-fg-color--lightest); border-top: 2px solid var(--qaechi-highlight);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(-.35rem);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.qaechi-menu__item:hover .qaechi-menu__panel, .qaechi-menu__item:focus-within .qaechi-menu__panel {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.qaechi-menu__panel ul { margin: 0; padding: 0; list-style: none; }
.qaechi-menu__link { display: block; padding: .5rem .7rem; border-radius: .45rem; font-size: .72rem; font-weight: 600;
  white-space: nowrap; color: var(--md-default-fg-color); transition: background-color .15s, color .15s; }
.qaechi-menu__link:hover, .qaechi-menu__link:focus { background: var(--md-accent-fg-color--transparent); color: var(--md-default-fg-color); }
.qaechi-menu__link--active, .qaechi-menu__link--active:hover { color: var(--md-accent-fg-color); }
.qaechi-menu__item--cta { margin-left: .5rem; }
.qaechi-menu__cta { display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .85rem; border-radius: 1rem;
  border: 1px solid rgba(255, 216, 77, .55); color: var(--qaechi-highlight); font-size: .68rem; font-weight: 700;
  white-space: nowrap; transition: background-color .2s, color .2s; }
.qaechi-menu__cta:hover, .qaechi-menu__cta:focus, .qaechi-menu__cta--active {
  background: var(--qaechi-highlight); color: var(--qaechi-ink); border-color: var(--qaechi-highlight); }

/* Header language picker (overrides/partials/qaechi-language.html): a small "KO v" pill,
   vertically centered on the header line like the icons next to it. */
.qaechi-lang .md-select { display: flex; align-items: center; height: 2.4rem; }
.qaechi-lang .md-select__inner { top: calc(100% - .3rem); }
.md-header__button.qaechi-lang__button { display: inline-flex; align-items: center; gap: .15rem; width: auto;
  height: 1.5rem; margin: 0 .3rem; padding: 0 .35rem 0 .65rem; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 1rem; font-size: .62rem; font-weight: 700; line-height: 1; letter-spacing: .06em;
  color: inherit; cursor: pointer; background: rgba(255, 255, 255, .04); transition: border-color .2s, color .2s; }
.qaechi-lang__button:hover, .qaechi-lang__button:focus { border-color: var(--qaechi-highlight); color: var(--qaechi-highlight); }
.qaechi-lang__button span { display: block; line-height: 1; }
.qaechi-lang__button svg { display: block; width: .9rem; height: .9rem; fill: currentColor; }
.qaechi-lang .md-select__inner { min-width: 8.5rem; }
.qaechi-lang .md-select__link { white-space: nowrap; }
.qaechi-lang__code { display: inline-block; width: 1.9em; font-size: .85em; opacity: .55; }
.qaechi-lang__current { font-weight: 700; color: var(--md-accent-fg-color); }

/* ---------- Home hero ----------
   A full-width dark stage under the header. The mark is drawn in pieces (docs/javascripts/
   qaechi-hero.js): the slate lines slide in, the highlighter stroke is pulled across, a band of
   light runs out from it, then the name rises. Behind it a field of document lines drifts by and
   the highlighter "catches" one line after another. No pointer effects.
   Without JavaScript the same stage shows the plain mark; reduced motion gets a still frame. */
.md-main__inner:has(.qaechi-hero) { margin-top: 0; }
.md-content__inner:has(> .qaechi-hero) { padding-top: 0; }
.md-content__inner:has(> .qaechi-hero)::before { display: none; }
.md-container:has(.qaechi-hero) { overflow-x: clip; }

.qaechi-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  min-height: clamp(30rem, calc(100svh - 2.4rem), 48rem);
  /* bleed to the window edges (--qaechi-vw = width without the scrollbar, set by the script) */
  margin: 0 calc(50% - var(--qaechi-vw, 100vw) / 2) 2.6rem; padding: 3rem 1.2rem 3.4rem;
  background: radial-gradient(ellipse 65% 60% at 50% var(--qaechi-mark-y, 40%), #1b232c 0%, #10151a 52%, #07090c 100%);
  color: #e8ebef; }
/* slow light rays turning behind the mark */
.qaechi-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: var(--qaechi-mark-y, 38%);
  width: 240vmax; height: 240vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 216, 77, .07) 0deg 3deg, transparent 3deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 9%, transparent 26%);
          mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 9%, transparent 26%);
  transform: translate(-50%, -50%); animation: qh-rays 120s linear infinite; }
/* vignette, and a soft hairline where the stage meets the page */
.qaechi-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%),
              linear-gradient(90deg, transparent, rgba(255, 216, 77, .35), transparent) bottom / 100% 1px no-repeat; }
.qaechi-hero__field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.qaechi-hero > :not(.qaechi-hero__field) { position: relative; z-index: 2; }

/* the mark: plain image without JS, the drawn one with it */
.qaechi-hero img.qaechi-mark { width: clamp(7.5rem, 16vw, 10rem); height: auto; border-radius: 1.4rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .5); }
.qaechi-mark-wrap { width: clamp(9.5rem, 22vw, 14rem); margin: 0 auto 1.4rem; }
.qaechi-mark-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.qaechi-mark-wrap .qm-b1, .qaechi-mark-wrap .qm-b2, .qaechi-mark-wrap .qm-b3, .qaechi-mark-wrap .qm-hl {
  transform-box: fill-box; transform-origin: left center; }
.qaechi-mark-wrap .qm-glow { opacity: .45; }
.qaechi-flare { position: absolute; left: 50%; top: 50%; width: 170vw; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 77, .5) 30%, #fff6cf 50%, rgba(255, 216, 77, .5) 70%, transparent);
  box-shadow: 0 0 24px 3px rgba(255, 216, 77, .45); transform: translate(-50%, -50%) scaleX(0); }

.md-typeset .qaechi-hero h1 { margin: 0; font-size: clamp(3rem, 7.5vw, 4.8rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: #fff; text-shadow: 0 6px 50px rgba(255, 216, 77, .2); }
.md-typeset .qaechi-hero h1 .headerlink { display: none; }
.md-typeset .qaechi-hero p { max-width: 38rem; margin: 1.1rem auto 0; font-size: clamp(.9rem, 1.5vw, 1.05rem);
  line-height: 1.65; color: #b9c2cc; }
.md-typeset .qaechi-hero p.qaechi-say { margin-top: .7rem; font-size: .78rem; letter-spacing: .05em; color: #8a949f; }
.md-typeset .qaechi-hero mark { padding: 0 .2em; border-radius: .15em; box-shadow: none; color: var(--qaechi-ink);
  background: linear-gradient(var(--qaechi-highlight), var(--qaechi-highlight)) left center / 100% 80% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.qaechi-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
/* Markdown wraps the links in a <p>; without this the gap and the phone layout below act on the
   <p>, not on the buttons. */
.md-typeset .qaechi-actions > p { display: contents; }
.md-typeset .qaechi-hero .qaechi-actions .md-button { margin: 0; padding: .6em 1.5em; border-radius: 2rem; font-size: .74rem;
  color: #e8ebef; border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: all .2s; }
.md-typeset .qaechi-hero .qaechi-actions .md-button:hover, .md-typeset .qaechi-hero .qaechi-actions .md-button:focus {
  color: var(--qaechi-highlight); border-color: var(--qaechi-highlight); background: rgba(255, 216, 77, .08); }
.md-typeset .qaechi-hero .qaechi-actions .md-button--primary { color: var(--qaechi-ink); background: var(--qaechi-highlight);
  border-color: var(--qaechi-highlight); box-shadow: 0 10px 34px rgba(255, 216, 77, .28); }
.md-typeset .qaechi-hero .qaechi-actions .md-button--primary:hover, .md-typeset .qaechi-hero .qaechi-actions .md-button--primary:focus {
  color: var(--qaechi-ink); background: #ffe37a; border-color: #ffe37a; }

/* intro, once per page load (the script adds .is-live) */
.qaechi-hero.is-live .qm-b1 { animation: qh-in-left .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
.qaechi-hero.is-live .qm-b3 { animation: qh-in-right .9s cubic-bezier(.16, 1, .3, 1) .3s both; }
.qaechi-hero.is-live .qm-hl { animation: qh-stroke .6s cubic-bezier(.7, 0, .2, 1) .6s both; }
.qaechi-hero.is-live .qm-b2 { animation: qh-in-left .6s cubic-bezier(.16, 1, .3, 1) .8s both; }
.qaechi-hero.is-live .qm-glow { animation: qh-breathe 4.5s ease-in-out 1.6s infinite; }
.qaechi-hero.is-live .qm-shine { animation: qh-shine 7s ease-in-out 1.4s infinite; }
.qaechi-hero.is-live .qaechi-mark-wrap svg { animation: qh-pop .7s cubic-bezier(.3, 0, .2, 1) 1.15s both; }
.qaechi-hero.is-live .qaechi-mark-wrap { animation: qh-float 8s ease-in-out 2s infinite; }
.qaechi-hero.is-live .qaechi-flare { animation: qh-flare 1.3s cubic-bezier(.2, .7, .2, 1) 1.15s both; }
.qaechi-hero.is-live h1 { animation: qh-rise .9s cubic-bezier(.16, 1, .3, 1) 1.3s both; }
.qaechi-hero.is-live .qaechi-say { animation: qh-rise .9s cubic-bezier(.16, 1, .3, 1) 1.45s both; }
.qaechi-hero.is-live .qaechi-say + p { animation: qh-rise .9s cubic-bezier(.16, 1, .3, 1) 1.6s both; }
.qaechi-hero.is-live mark { animation: qh-mark .6s cubic-bezier(.7, 0, .2, 1) 2.1s both; }
.qaechi-hero.is-live .qaechi-actions { animation: qh-rise .9s cubic-bezier(.16, 1, .3, 1) 1.8s both; }
@keyframes qh-in-left { from { transform: translateX(-90px); opacity: 0; } }
@keyframes qh-in-right { from { transform: translateX(90px); opacity: 0; } }
@keyframes qh-stroke { from { transform: scaleX(0); } }
@keyframes qh-pop { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.08); } }
@keyframes qh-flare { 0% { transform: translate(-50%, -50%) scaleX(0); opacity: 0; } 12% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scaleX(1); opacity: 0; } }
@keyframes qh-rise { from { transform: translateY(28px); opacity: 0; filter: blur(8px); } }
@keyframes qh-mark { from { background-size: 0 80%; } }
@keyframes qh-breathe { 50% { opacity: .8; } }
@keyframes qh-shine { 0%, 72% { transform: translateX(0); } 100% { transform: translateX(560px); } }
@keyframes qh-float { 50% { transform: translateY(-6px); } }
@keyframes qh-rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .qaechi-hero::before, .qaechi-hero *, .qaechi-hero.is-live * { animation: none !important; }
}

/* Home: the stack table, the first column a little bolder. */
.md-typeset .qaechi-stack-table table td:first-child { font-weight: 600; white-space: nowrap; }
/* Korean breaks between words, not syllables; long tokens may still wrap. */
.md-typeset .qaechi-keep-words td { word-break: keep-all; overflow-wrap: anywhere; }

/* Comparison matrices (stacks page): header column and header row stay on one line, cells get
   a sensible minimum width and break only where the text has <br> or between words, and the
   whole table scrolls sideways on narrow screens instead of squeezing the cells. */
.md-typeset .qaechi-matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.4em;
  border: 1px solid var(--md-default-fg-color--lightest); border-radius: .6rem; }
.md-typeset .qaechi-matrix table { display: table; width: 100%; margin: 0; border: 0; border-collapse: collapse;
  font-size: .72rem; line-height: 1.5; box-shadow: none; }
.md-typeset .qaechi-matrix th, .md-typeset .qaechi-matrix td { padding: .55em .8em; vertical-align: top;
  text-align: left; border-top: 1px solid var(--md-default-fg-color--lightest); word-break: keep-all; }
.md-typeset .qaechi-matrix td { white-space: nowrap; }
.md-typeset .qaechi-matrix .md-typeset__scrollwrap { margin: 0; padding: 0; overflow: visible; }
.md-typeset .qaechi-matrix .md-typeset__table { display: block; padding: 0; }
.md-typeset .qaechi-matrix thead th { position: sticky; top: 0; border-top: 0; white-space: nowrap;
  background: var(--qaechi-panel); font-weight: 700; }
.md-typeset .qaechi-matrix thead th a { color: var(--md-default-fg-color); border-bottom: 2px solid var(--qaechi-highlight); }
.md-typeset .qaechi-matrix tbody th { font-weight: 600; white-space: nowrap; color: var(--md-default-fg-color--light); }
.md-typeset .qaechi-matrix__group th { padding-top: .9em; background: var(--qaechi-panel); color: var(--md-default-fg-color) !important;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.md-typeset .qaechi-matrix__kind { display: block; font-size: .85em; font-weight: 400; opacity: .75; }
.md-typeset .qaechi-matrix__note { font-weight: 400; color: var(--md-default-fg-color--light); letter-spacing: 0; }
.md-typeset .qaechi-matrix tbody tr:not(.qaechi-matrix__group):hover { background: var(--md-accent-fg-color--transparent); }
/* The row labels stay in view while the table scrolls sideways on a phone. */
.md-typeset .qaechi-matrix tbody tr:not(.qaechi-matrix__group) th, .md-typeset .qaechi-matrix thead th:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--md-default-bg-color); }
.md-typeset .qaechi-matrix thead th:first-child { z-index: 2; background: var(--qaechi-panel); }
/* Plain markdown tables on the same pages: no mid-word Korean breaks either. */
.md-typeset table:not([class]) td { word-break: keep-all; }

/* Enterprise inquiry (overrides/partials/qaechi-inquiry.html): process steps on the left,
   the form in a card on the right; one column on tablets and phones. */
.qaechi-inquiry { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.6rem; margin: 1.2rem 0 1rem; }
.md-typeset .qaechi-inquiry__aside-title { margin: 0 0 .8rem; font-size: .8rem; font-weight: 700; }
.md-typeset .qaechi-inquiry__steps { margin: 0 0 1.2rem; padding: 0; list-style: none; counter-reset: step; }
.md-typeset .qaechi-inquiry__steps li { position: relative; margin: 0 0 .9rem; padding-left: 2rem; counter-increment: step; }
.md-typeset .qaechi-inquiry__steps li::before { content: counter(step); position: absolute; left: 0; top: .05rem;
  display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--qaechi-highlight); color: var(--qaechi-ink); font-size: .62rem; font-weight: 700; }
.md-typeset .qaechi-inquiry__steps strong { display: block; font-size: .74rem; }
.md-typeset .qaechi-inquiry__steps span { display: block; font-size: .68rem; color: var(--md-default-fg-color--light); }
.md-typeset .qaechi-inquiry__direct { margin: 0 0 .6rem; font-size: .7rem; color: var(--md-default-fg-color--light); }

.qaechi-form { padding: 1.2rem 1.4rem 1.1rem; border: 1px solid var(--md-default-fg-color--lightest); border-radius: .8rem;
  background: var(--qaechi-panel); }
.md-typeset .qaechi-form__section { margin: 1.1rem 0 .55rem; padding-top: .9rem; border-top: 1px solid var(--md-default-fg-color--lightest);
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--md-default-fg-color--light); }
.md-typeset .qaechi-form__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.qaechi-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.qaechi-form__field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.qaechi-form__field--wide { grid-column: 1 / -1; }
.md-typeset .qaechi-form__label { padding: 0; font-size: .66rem; font-weight: 600; color: var(--md-default-fg-color); }
.qaechi-form__label em, .qaechi-form__consent em { font-style: normal; color: #d1495b; }
.qaechi-form input[type=text], .qaechi-form input[type=email], .qaechi-form input[type=tel], .qaechi-form select, .qaechi-form textarea {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--md-default-fg-color--lighter); border-radius: .45rem;
  background: var(--md-default-bg-color); color: var(--md-default-fg-color); font: inherit; font-size: .72rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s; }
.qaechi-form textarea { resize: vertical; min-height: 7rem; }
.qaechi-form input:focus, .qaechi-form select:focus, .qaechi-form textarea:focus { outline: none;
  border-color: var(--md-accent-fg-color); box-shadow: 0 0 0 3px var(--md-accent-fg-color--transparent); }
.qaechi-form__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.qaechi-chip { position: relative; cursor: pointer; }
.qaechi-chip input { position: absolute; opacity: 0; pointer-events: none; }
.qaechi-chip span { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 1rem; background: var(--md-default-bg-color); font-size: .66rem; transition: all .15s; }
.qaechi-chip:hover span { border-color: var(--md-accent-fg-color); }
.qaechi-chip input:checked + span { background: var(--qaechi-highlight); border-color: var(--qaechi-highlight); color: var(--qaechi-ink); font-weight: 600; }
.qaechi-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--md-accent-fg-color--transparent); }
.qaechi-form__consent { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 .2rem; font-size: .68rem; cursor: pointer; }
.qaechi-form__consent input { margin-top: .2rem; }
.qaechi-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.md-typeset .qaechi-form__actions .md-button { margin: 0; cursor: pointer; font-family: inherit; font-size: .74rem; line-height: 1.4; }
.md-typeset .qaechi-form__actions .md-button--primary { background: var(--qaechi-highlight); border-color: var(--qaechi-highlight); color: var(--qaechi-ink); }
.md-typeset .qaechi-form__actions .md-button--primary:hover { background: #ffe37a; border-color: #ffe37a; color: var(--qaechi-ink); }
.md-typeset .qaechi-form__actions .md-button:not(.md-button--primary) { background: transparent; color: var(--md-default-fg-color); border-color: var(--md-default-fg-color--light); }
.qaechi-form__status { flex-basis: 100%; font-size: .7rem; color: var(--md-default-fg-color--light); }
.qaechi-form__status:empty { display: none; }
.qaechi-form__status--ok { color: #2e7d4f; font-weight: 600; }
.qaechi-form__status--error { color: #d1495b; font-weight: 600; }
[data-md-color-scheme="slate"] .qaechi-form__status--ok { color: #6fcf97; }
.qaechi-form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.md-typeset .qaechi-form__actions .md-button[disabled] { opacity: .6; cursor: progress; }
.md-typeset .qaechi-form__how { margin: .7rem 0 0; font-size: .64rem; color: var(--md-default-fg-color--light); }
.md-typeset .qaechi-inquiry__note { margin: 1.2rem 0 0; font-size: .56rem; line-height: 1.5;
  color: var(--md-default-fg-color--light); opacity: .85; }
@media screen and (max-width: 60em) {
  .qaechi-inquiry { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media screen and (max-width: 37.5em) {
  .qaechi-form { padding: 1rem .9rem; }
  .qaechi-form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Why page: a row of facts. */
.qaechi-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.qaechi-facts > div { border-top: 2px solid var(--qaechi-highlight); padding: .5rem .2rem 0; }
.md-typeset .qaechi-facts strong { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.md-typeset .qaechi-facts p { margin: .2rem 0 0; color: var(--md-default-fg-color--light); font-size: .72rem; }

.md-typeset .badge {
  display: inline-block; font-size: .62rem; font-weight: 700; padding: .1em .6em; border-radius: 1em;
  background: var(--qaechi-highlight); color: var(--qaechi-ink); vertical-align: middle; letter-spacing: .02em;
}
.md-typeset .badge--plan { background: var(--md-default-fg-color--lightest); color: var(--md-default-fg-color); }

.md-typeset .grid.cards > ul > li:hover { border-color: var(--md-accent-fg-color); }

/* Diagrams: centered; on narrow screens they keep a readable size and scroll sideways
   (the wrapper scrolls; Material draws the diagram inside a shadow root). */
/* Diagrams are drawn at mermaid's natural size, which reads small; each one sits in a soft
   panel and is scaled up (zoom keeps the layout box in step, so it still fits the column). */
.md-typeset .qaechi-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0 1.6em;
  padding: 1rem 1.2rem; border: 1px solid var(--md-default-fg-color--lightest); border-radius: .7rem;
  background: var(--qaechi-panel); }
.md-typeset .mermaid { text-align: center; margin: 0; }
.md-typeset .qaechi-diagram .mermaid { zoom: 1.25; }
.md-typeset .qaechi-figure { border: 1px solid var(--md-default-fg-color--lightest); border-radius: .5rem;
  padding: .4rem 1rem; margin: 1rem 0 1.5rem; }
.md-typeset .qaechi-figure > p:first-child { font-weight: 600; margin-bottom: 0; }

/* Tablets */
@media screen and (max-width: 60em) {
  .qaechi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones */
@media screen and (max-width: 37.5em) {
  .md-typeset { font-size: .8rem; }
  .md-typeset h1 { font-size: 1.6em; }
  .md-typeset h2 { font-size: 1.3em; }
  .qaechi-hero { padding: 2.2rem .9rem 2.6rem; }
  /* Buttons stack, full width, with space between them. */
  .qaechi-actions { flex-direction: column; align-items: stretch; gap: .6rem; width: 100%; padding: 0 .2rem;
    box-sizing: border-box; }
  .md-typeset .qaechi-actions .md-button { display: block; width: 100%; margin: 0; text-align: center;
    box-sizing: border-box; }
  /* Home hero: the two main links full width, the two small ones (PyPI, GitHub) side by side. */
  .md-typeset .qaechi-hero .qaechi-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 21rem; margin-left: auto; margin-right: auto; margin-top: 1.6rem; }
  .md-typeset .qaechi-hero .qaechi-actions .md-button { padding: .75em 1em; }
  .md-typeset .qaechi-hero .qaechi-actions .md-button:nth-child(-n+2) { grid-column: 1 / -1; }
  .qaechi-facts { grid-template-columns: minmax(0, 1fr); }
  .md-header__button.qaechi-lang__button { margin: 0 .1rem; }
  .md-typeset .qaechi-diagram { padding: .6rem; }
  .md-typeset .qaechi-diagram .mermaid { zoom: 1; min-width: 36rem; }
  .md-typeset .qaechi-diagram::after { content: attr(data-hint); position: sticky; left: 0;
    display: block; text-align: center; font-size: .65rem; color: var(--md-default-fg-color--light); }
  .md-typeset .grid.cards > ul > li { padding: .6rem .8rem; }
  .md-typeset .grid.cards a { display: inline-block; margin: .15rem .4rem .15rem 0; }
  /* A card's closing row of links (Docs, PyPI, GitHub): chips big enough to tap, evenly spaced. */
  .md-typeset .grid.cards > ul > li > p:last-child:has(> a) { display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: .8rem; }
  .md-typeset .grid.cards > ul > li > p:last-child:has(> a) > a { display: inline-flex; align-items: center;
    min-height: 2rem; margin: 0; padding: 0 .8rem; border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 2rem; font-size: .72rem; font-weight: 600; text-decoration: none; }
  .md-typeset .grid.cards > ul > li > p:last-child:has(> a) > a:hover,
  .md-typeset .grid.cards > ul > li > p:last-child:has(> a) > a:focus { border-color: var(--md-accent-fg-color); }
  /* Inquiry form: the send button spans the form; the status line goes under it. */
  .md-typeset .qaechi-form__actions .md-button { width: 100%; padding: .75em 1em; text-align: center; }
  .qaechi-form__status { flex-basis: 100%; }
  /* Footer icons: a full-size tap area. */
  .md-social__link { display: inline-flex; align-items: center; justify-content: center;
    width: 2.2rem; height: 2.2rem; }
}

/* ---- Home overview diagram (.qaechi-overview) ----
   assets/concept/qaechi-overview-<lang>.svg, inlined by javascripts/qaechi-overview.js (classes from
   tools/make_overview.py). Soft clouds drift behind a floating card; when it scrolls into view the
   nodes rise in flow order, each line draws in and then keeps streaming in its direction, and the
   evidence record fills in. Without JS it is the still <img>. */
.md-typeset .qaechi-overview { position: relative; isolation: isolate; margin: 2.2em 0 2.6em; padding: 1rem 0; }
.md-typeset .qaechi-overview > img,
.md-typeset .qaechi-overview > svg { display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 22px 60px -24px rgba(16, 20, 24, .6), 0 0 0 1px rgba(255, 255, 255, .05); }
.qaechi-overview::before,
.qaechi-overview::after { content: ""; position: absolute; z-index: -1; inset: -8% -5%; pointer-events: none;
  filter: blur(34px); animation: qov-cloud 16s ease-in-out infinite alternate; }
.qaechi-overview::before { background:
  radial-gradient(38% 46% at 18% 38%, rgba(255, 216, 77, .22), transparent 70%),
  radial-gradient(30% 40% at 62% 82%, rgba(255, 216, 77, .12), transparent 70%); }
.qaechi-overview::after { background:
  radial-gradient(36% 48% at 84% 30%, rgba(74, 85, 98, .34), transparent 70%),
  radial-gradient(28% 36% at 40% 12%, rgba(74, 85, 98, .22), transparent 70%);
  animation-duration: 22s; animation-direction: alternate-reverse; }
.qaechi-overview.is-live > svg { animation: qov-float 7s ease-in-out infinite; }
/* Phones and small tablets: fit-to-width makes the labels too small to read, so the diagram keeps a
   readable width, runs edge to edge, and scrolls sideways. */
@media screen and (max-width: 60em) {
  .md-typeset .qaechi-overview { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    margin-left: -.8rem; margin-right: -.8rem; padding: 1rem .8rem; scrollbar-width: thin; }
  .md-typeset .qaechi-overview > img,
  .md-typeset .qaechi-overview > svg { min-width: 680px; }
}

/* reveal in flow order */
.qaechi-overview svg.qov .ov-n,
.qaechi-overview svg.qov .ov-b,
.qaechi-overview svg.qov .ov-hl { transform-box: fill-box; transform-origin: 0 50%; }
.qaechi-overview.is-live .ov-n,
.qaechi-overview.is-live .ov-fill,
.qaechi-overview.is-live .ov-f { opacity: 0; }
.qaechi-overview.is-live .ov-f { stroke-dasharray: 1; stroke-dashoffset: 1; }
.qaechi-overview.is-in .ov-n { animation: qov-rise .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .26s) both; }
.qaechi-overview.is-in .ov-b { animation: qov-bob 5.5s ease-in-out calc(var(--i) * -.7s) infinite; }
.qaechi-overview.is-in .ov-f { animation: qov-draw .55s ease-out calc(var(--i) * .26s + .25s) forwards; }

/* streams: a soft band moving along every line, in its direction */
.qaechi-overview.is-in svg.qov .ov-s { stroke: rgba(174, 182, 192, .55); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: .06 .19; filter: url(#qov-soft);
  animation: qov-stream 1.5s linear infinite, qov-fade .8s ease calc(var(--i) * .26s + .8s) both; }
.qaechi-overview.is-in svg.qov .ov-s--gold { stroke: rgba(255, 216, 77, .7); }

/* the evidence record fills in, then the check keeps glowing */
.qaechi-overview.is-in .ov-fill { animation: qov-type .45s ease-out calc(1.5s + var(--i) * .32s) both; }
.qaechi-overview.is-in .ov-hl { animation: qov-hl .5s cubic-bezier(.3, .7, .2, 1) calc(1.5s + var(--i) * .32s) both; }
.qaechi-overview.is-in .ov-pulse { animation: qov-pulse 2.8s ease-in-out 1.6s infinite; }

@keyframes qov-cloud { to { transform: translate(3%, -5%) scale(1.08); } }
@keyframes qov-float { 50% { transform: translateY(-8px); } }
@keyframes qov-bob { 50% { transform: translateY(-3px); } }
@keyframes qov-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes qov-draw { from { opacity: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes qov-stream { to { stroke-dashoffset: -.25; } }
@keyframes qov-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qov-type { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes qov-hl { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes qov-pulse { 50% { filter: drop-shadow(0 0 12px rgba(255, 216, 77, .6)); } }

@media (prefers-reduced-motion: reduce) {
  .qaechi-overview::before, .qaechi-overview::after, .qaechi-overview *, .qaechi-overview > svg { animation: none !important; }
  .qaechi-overview.is-live .ov-n, .qaechi-overview.is-live .ov-fill, .qaechi-overview.is-live .ov-f { opacity: 1; stroke-dashoffset: 0; }
}

/* ---- Footer link columns (overrides/partials/footer.html, extra.footer in mkdocs.yml) ---- */
.qaechi-footer { background-color: var(--md-footer-bg-color--dark); border-top: 1px solid rgba(255, 255, 255, .06); }
.qaechi-footer__inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem 1.2rem;
  padding: 2rem .8rem 1.4rem; }
.qaechi-footer__title { margin: 0 0 .6rem; font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  color: var(--qaechi-highlight); }
.qaechi-footer ul { margin: 0; padding: 0; list-style: none; }
.qaechi-footer li { margin: 0; }
.qaechi-footer a { display: inline-block; padding: .22rem 0; font-size: .68rem; line-height: 1.4;
  color: var(--md-footer-fg-color--light); transition: color .15s; }
.qaechi-footer a:hover, .qaechi-footer a:focus { color: var(--md-footer-fg-color); }
/* Footer icons sit a little apart. */
.md-social { gap: .2rem; }
@media screen and (max-width: 60em) {
  .qaechi-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 37.5em) {
  /* Phones: two columns, and each link is a full-height tap target. */
  .qaechi-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; padding: 1.6rem 1rem 1rem; }
  .qaechi-footer a { display: flex; align-items: center; min-height: 1.8rem; padding: 0; font-size: .72rem; }
  .md-social { display: flex; flex-wrap: wrap; }
}
