/*
 * Author: Hariram S <ramhari4090@gmail.com>
 *
 * The use-cases hub and the twelve industry pages: industry and role cards,
 * the "why Dotwave if you already have ..." section (a drawn diagram, the
 * built-in reports comparison, numbered reasons, an honest "when it's
 * enough" note), the "ways to use Dotwave" sections (a drawn messy file, the
 * workflow as a numbered list of steps, the chart it ends with), the before-and-after
 * table, the questions-for-the-AI table, and the colours of the seven
 * dashboards that dash.css doesn't already define.
 *
 * Everything here is text and CSS: the messy file is a real <table>, the
 * workflow a real <ol>, so screen readers and search engines read them as
 * written. Issue cells are marked three ways (number, dashed underline,
 * tint) so colour is never the only signal. Wide tables scroll inside their
 * own frame on a phone; the page itself never scrolls sideways.
 *
 * Text drawn inside dashboards is at least 11px here, a little above the
 * 10.5px dash.css uses on the older pages.
 *
 * Used by:
 *     landing/use-cases.html, landing/use-cases/*.html
 *     (both generated by scripts/landing_industries/build.py)
 *
 * Depends on:
 *     landing/assets/site.css  (--line, --muted, --accent, .sec, .eyebrow)
 *     landing/assets/dash.css  (.db and its pieces)
 *     landing/assets/scenes.js (.in on [data-rv])
 */

/* Minimum text size inside drawn dashboards. */
.ix .db-y, .ix .db-thr span, .ix .db-pt span, .ix .db-axis, .ix .db-scale, .ix .db-rng span { font-size: 11px; }
@media (max-width: 480px) { .ix .db-b > em { font-size: 11px; } }
.ix .db-v small { font-size: max(11px, .5em); }
.ix .db-axis.ylab { margin-left: 34px; }
/* A donut in a narrow card stacks its legend under the ring, so the labels
   keep their room. */
.ix .db-c.db-fill { container-type: inline-size; }
.ix .db-leg b { white-space: nowrap; }
@container (max-width: 340px) {
  .ix .db-ring { flex-direction: column; align-items: stretch; }
  .ix .db-ring .db-svgw { align-self: center; }
}

.ix-fine { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Hero */
.ix-h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; max-width: 20ch; margin-inline: auto; }
.ix-hero .pill-tag a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.ix-hero .pill-tag a:hover { color: #fff; }
.ix-plate { text-align: left; }
.ix-plate .db { margin-top: 0; }
.ix-illus { text-align: center; }

/* Jump list of ways */
.ix-jump .t3 { text-align: center; }
.ix-toc { list-style: none; padding: 0; margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; counter-reset: toc; max-width: 960px; }
.ix-toc li { counter-increment: toc; }
.ix-toc a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: #d4d4d8; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.ix-toc a::before { content: counter(toc); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(124, 92, 255, .18); color: var(--accent-ink); font: 600 12px/1 var(--mono); }
.ix-toc a:hover { color: #fff; border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }

/* Privacy box (banking, healthcare, education) */
.ix-privbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(124, 92, 255, .35); border-radius: 20px; background: radial-gradient(80% 120% at 0% 0%, rgba(124, 92, 255, .14), transparent 60%), var(--surface); }
.ix-privbox .eyebrow svg { width: 14px; height: 14px; fill: var(--accent-ink); }
.ix-privbox .eyebrow::before { display: none; }
.ix-privbox h2 { margin-top: 10px; }
.ix-privbox ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.ix-privbox li b { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ix-privbox li span { display: block; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ix-privbox li span b { display: inline; font-size: inherit; margin: 0; }

/* A way */
.ix-wayhead { max-width: 820px; }
.ix-wayhead h2 { font-size: clamp(30px, 3.6vw, 48px); }
.ix-wayhead .lead { margin-top: 18px; }
.ix-wayhead .lead b { color: #fff; font-weight: 500; }
.ix-lab { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.ix-way, .ix-out { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.ix-way { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.ix-out { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.ix-col { min-width: 0; }
.ix-res .result { margin-top: 0; }
.ix-res .result b { margin-bottom: 8px; }
.ix-res .result { color: #e4e4e7; font-size: 15px; line-height: 1.6; }
.ix-res .result b ~ b, .ix-res .result :not(:first-child) b { display: inline; font: inherit; text-transform: none; letter-spacing: 0; color: #fff; margin: 0; }

/* The messy file */
.ix-file { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.ix-file figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.ix-fname { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--mono); color: #fff; min-width: 0; overflow-wrap: anywhere; }
.ix-fname svg { width: 16px; height: 16px; flex: none; fill: #33c29a; }
.ix-src { font-size: 12px; color: var(--muted); }
.ix-tw { overflow-x: auto; }
.ix-tw:focus-visible { outline-offset: -2px; }
.ix-file table { width: 100%; border-collapse: collapse; font: 400 12.5px/1.4 var(--mono); color: #d4d4d8; }
.ix-file th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .02); }
.ix-file td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ix-file tr:last-child td { border-bottom: 0; }
.ix-file th + th, .ix-file td + td { border-left: 1px solid rgba(255, 255, 255, .05); }
.ix-file td.x { background: rgba(245, 185, 66, .09); }
.ix-file td.x span { text-decoration: underline dashed rgba(245, 185, 66, .85); text-decoration-thickness: 1.5px; text-underline-offset: 4px; white-space: pre; }
.ix-file td.e { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 4px, transparent 4px 8px); }
.ix-file sup, .ix-issues li::before { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f5b942; color: #17120a; font: 700 11px/1 var(--font); }
.ix-file sup { margin-left: 5px; vertical-align: 2px; }
.ix-file sup + sup { margin-left: 2px; }
.ix-issues { list-style: none; counter-reset: iss; margin: 0; padding: 12px 14px 14px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.ix-issues li { counter-increment: iss; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.5; color: #d4d4d8; }
.ix-issues li::before { content: counter(iss); margin-top: 1px; }
.ix-issues b { color: #fff; font-weight: 600; }

/* The workflow */
.ix-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ix-flow li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.ix-flow li:last-child { padding-bottom: 0; }
.ix-flow li::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--ph) 55%, transparent), rgba(255, 255, 255, .08)); }
.ix-flow li:last-child::before { display: none; }
.ix-node { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ph) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ph) 45%, transparent); }
.ix-node svg { width: 20px; height: 20px; fill: var(--ph); }
.ix-n { position: absolute; right: -7px; bottom: -6px; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font: 600 11px/1 var(--mono); color: #fff; }
.ix-ph { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ph); margin-top: 3px; }
.ix-st { margin-top: 4px; font-size: 15px; line-height: 1.55; color: #d4d4d8; overflow-wrap: anywhere; }
.ix-st b { color: #fff; font-weight: 600; }
.ix-flow, .ix-four { --ph: #b4a3ff; }
[data-ph="in"], [data-ph="join"] { --ph: #56b4e9; }
[data-ph="clean"], [data-ph="privacy"] { --ph: #f5b942; }
[data-ph="calc"], [data-ph="model"] { --ph: #b4a3ff; }
[data-ph="ask"] { --ph: #e39bc4; }
[data-ph="build"], [data-ph="filter"], [data-ph="note"] { --ph: #4cd6a5; }
[data-ph="share"], [data-ph="mail"], [data-ph="pdf"], [data-ph="audit"], [data-ph="recipe"] { --ph: #ff9a8a; }

/* The chart a way ends with */
.db.ix-mini { margin-top: 0; padding: clamp(10px, 1.4vw, 16px); border-radius: 18px; }
.db.ix-mini .db-c { padding: 12px 14px 14px; }
.db.ix-mini + .db-cap { margin-top: 10px; }
.ix-big { font-size: clamp(34px, 3.6vw, 46px); margin-top: 6px; }

/* Before and after */
.ix-ba, .ix-qt { margin-top: clamp(32px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.ix-ba table, .ix-qt table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; color: #d4d4d8; }
.ix-ba th, .ix-ba td, .ix-qt th, .ix-qt td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ix-ba tbody tr:last-child > *, .ix-qt tbody tr:last-child > * { border-bottom: 0; }
.ix-ba thead th, .ix-qt thead th { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .02); }
.ix-ba tbody th { width: 22%; color: #fff; font-weight: 600; }
.ix-ba td.ix-b { color: var(--muted); }
.ix-ba td.ix-a { color: #fff; background: linear-gradient(90deg, rgba(76, 214, 165, .07), transparent 80%); }
.ix-x, .ix-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 11px/1 var(--font); margin-right: 6px; vertical-align: 1px; }
.ix-x { background: rgba(255, 154, 138, .18); color: #ff9a8a; }
.ix-ok { background: rgba(76, 214, 165, .18); color: #4cd6a5; }
.ix-tagb, .ix-taga { display: none; }

/* Questions for the AI */
.ix-qt td.ix-q { font: 400 14px/1.5 var(--mono); color: #fff; width: 36%; }
.ix-qt td.ix-ct { width: 20%; white-space: nowrap; color: #fff; }
.ix-qt td.ix-ct span { vertical-align: middle; }
.ix-gl { display: inline-block; vertical-align: middle; width: 22px; height: 22px; margin-right: 8px; fill: #b4a3ff; stroke: #b4a3ff; }

/* Other industries */
.ix-others { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ix-others a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: #d4d4d8; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.ix-others a:hover { color: #fff; border-color: rgba(124, 92, 255, .6); }
.ix-others .ic { width: 16px; height: 16px; color: var(--accent-ink); }

/* Hub: industry cards */
.ix-cards { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.ix-card { --ind: #b4a3ff; position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--ind) 14%, transparent), transparent 65%), var(--surface); transition: transform .3s var(--ease), border-color .2s ease; }
.ix-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ind) 55%, transparent); }
.ix-cardic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px; background: color-mix(in srgb, var(--ind, #b4a3ff) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ind, #b4a3ff) 40%, transparent); }
.ix-cardic svg { width: 22px; height: 22px; fill: var(--ind, #b4a3ff); }
.ix-card > b, .ix-role > b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; line-height: 1.25; }
.ix-cardline { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ix-cardq { margin-top: 10px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ix-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ix-card li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: #e4e4e7; }
.ix-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ind); }
.ix-more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 500; color: #fff; }
.ix-more span { color: var(--ind); }
[data-ind="ret"] { --ind: #f5b942; } [data-ind="ecom"] { --ind: #f0e442; } [data-ind="mkt"] { --ind: #e39bc4; }
[data-ind="mfg"] { --ind: #56b4e9; } [data-ind="bank"] { --ind: #6cb2ff; } [data-ind="acc"] { --ind: #33c29a; }
[data-ind="aud"] { --ind: #f27c3a; } [data-ind="log"] { --ind: #33c2b8; } [data-ind="hlth"] { --ind: #c39bff; }
[data-ind="edu"] { --ind: #a6d854; } [data-ind="food"] { --ind: #ff8a65; } [data-ind="prop"] { --ind: #d9b26f; }

/* Hub: roles */
.ix-roles { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ix-role { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ix-role ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.ix-role a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: #e4e4e7; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.ix-role a::after { content: "→"; color: var(--accent-ink); }
.ix-role a:hover { border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .07); color: #fff; }

/* Hub: the four steps */
.ix-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.ix-four > div { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.ix-four > div:nth-child(1) { --ph: #56b4e9; } .ix-four > div:nth-child(2) { --ph: #f5b942; }
.ix-four > div:nth-child(3) { --ph: #e39bc4; } .ix-four > div:nth-child(4) { --ph: #ff9a8a; }
.ix-four b { font-size: 18px; color: #fff; font-weight: 600; letter-spacing: -0.015em; }
.ix-four p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* Bars that need attention (below target, over a limit) take --hl, a hue
   kept apart from each dashboard's first series colour. */
.db { --hl: var(--bad); }
.db[data-t="mkt"] { --hl: #f5b942; } .db[data-t="aud"], .db[data-t="food"] { --hl: #56b4e9; }

/* Dashboard colours for the industries dash.css doesn't cover. Series hues
   are Okabe-Ito based and every mark carries a printed value or a legend. */
.db[data-t="ecom"] { --bg: #0e0d07; --a1: #f0e442; --a2: #56b4e9; --a3: #e39bc4; --a4: #33c29a; --glow: rgba(240, 228, 66, .32); --tint: rgba(240, 228, 66, .1); }
.db[data-t="bank"] { --bg: #070b14; --a1: #6cb2ff; --a2: #33c29a; --a3: #f5b942; --a4: #ff9a8a; --glow: rgba(80, 150, 255, .45); --tint: rgba(80, 150, 255, .13); }
.db[data-t="log"] { --bg: #061011; --a1: #33c2b8; --a2: #f5b942; --a3: #a99bea; --a4: #ff9a8a; --glow: rgba(51, 194, 184, .4); --tint: rgba(51, 194, 184, .11); }
.db[data-t="edu"] { --bg: #0a0e07; --a1: #a6d854; --a2: #56b4e9; --a3: #f5b942; --a4: #e39bc4; --glow: rgba(166, 216, 84, .35); --tint: rgba(166, 216, 84, .1); }
.db[data-t="food"] { --bg: #110b09; --a1: #ff8a65; --a2: #f5b942; --a3: #56b4e9; --a4: #33c29a; --glow: rgba(255, 120, 80, .42); --tint: rgba(255, 120, 80, .12); }
.db[data-t="prop"] { --bg: #0d0c09; --a1: #d9b26f; --a2: #56b4e9; --a3: #a99bea; --a4: #33c29a; --glow: rgba(217, 178, 111, .38); --tint: rgba(217, 178, 111, .11); }
.db[data-t="hlth"] { --bg: #f7f8fc; --a1: #6f5cc2; --a2: #0072b2; --a3: #009e73; --a4: #c28600; --glow: rgba(140, 120, 255, .5); --tint: rgba(111, 92, 194, .08); }
.db[data-t="hlth"] .db-logo, .db[data-t="hlth"] .db-c.accent { color: #fff; }
.db[data-t="hlth"] .db-c.accent { background: linear-gradient(150deg, #5a48ad, #2f5fa8); }
.db[data-t="hlth"] .db-c.accent .db-k { color: rgba(255, 255, 255, .95); }
.db[data-t="hlth"] .db-c.accent .db-d { color: #fff; background: rgba(255, 255, 255, .2); }
/* The bar fill in light frames needs a darker tint for the text above it. */
.db.light .db-b > em { color: var(--ink); }

/* Why Dotwave alongside the system they already have. The diagram is drawn
   twice, wide (three columns) and tall (one column), so its text stays at
   13px or more instead of shrinking with the viewBox on a phone; only one
   is displayed at a time. */
.ix-dg { margin: clamp(32px, 4vw, 48px) 0 0; padding: clamp(18px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(60% 90% at 50% 50%, rgba(124, 92, 255, .1), transparent 70%), var(--surface); }
.ix-dg svg { display: block; width: 100%; height: auto; }
.ix-dg .dg-wide { display: none; }
.ix-dg .dg-tall { max-width: 380px; margin-inline: auto; }
@media (min-width: 1000px) {
  .ix-dg .dg-wide { display: block; }
  .ix-dg .dg-tall { display: none; }
}
.dg-box { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; }
.dg-box.own { stroke: rgba(86, 180, 233, .7); fill: rgba(86, 180, 233, .08); }
.dg-core { fill: rgba(124, 92, 255, .16); stroke: rgba(124, 92, 255, .7); stroke-width: 1.5; }
.dg-t { fill: #fff; font-family: var(--font); font-weight: 500; }
.dg-strong { font-weight: 700; }
.dg-s { fill: var(--muted); font: 400 12.5px var(--font); }
.dg-h { fill: var(--muted); font: 500 12px var(--mono); letter-spacing: .08em; }
.dg-name { fill: #fff; font: 700 22px var(--font); letter-spacing: -0.02em; }
.dg-ln { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.dg-ar { fill: rgba(255, 255, 255, .55); }
.dg-d0 { fill: #f5b942; } .dg-d1 { fill: #56b4e9; } .dg-d2 { fill: #e39bc4; }
.ix-why-h { margin-top: clamp(40px, 5vw, 56px); }
.ix-cmp { margin-top: 20px; }
.ix-cmp td.ix-a { background: linear-gradient(90deg, rgba(124, 92, 255, .08), transparent 80%); }
.ix-why { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: why; }
.ix-why.ix-why-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 48px); }
.ix-why li { counter-increment: why; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ix-why li::before { content: counter(why, decimal-leading-zero); display: block; margin-bottom: 12px; font: 600 12px/1 var(--mono); color: var(--accent-ink); }
.ix-why b { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: #fff; }
.ix-why p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ix-why p b { display: inline; font-size: inherit; font-weight: 600; letter-spacing: 0; color: #e4e4e7; }
.ix-enough { margin-top: clamp(28px, 3.5vw, 40px); padding: clamp(20px, 2.6vw, 28px); border: 1px dashed var(--line-2); border-radius: 18px; max-width: 820px; }
.ix-enough .eyebrow::before { display: none; }
.ix-enough h3 { margin-top: 8px; }
.ix-enough p:last-child { margin-top: 10px; font-size: 15px; line-height: 1.6; color: #d4d4d8; }

/* Responsive */
@media (max-width: 1000px) {
  .ix-why, .ix-why.ix-why-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-way, .ix-out { grid-template-columns: minmax(0, 1fr); }
  .ix-roles, .ix-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-privbox { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ix-roles, .ix-four, .ix-privbox ul, .ix-why, .ix-why.ix-why-4 { grid-template-columns: 1fr; }
  .ix-cmp .ix-tagb { color: var(--muted); }
  .ix-ba table, .ix-ba tbody, .ix-ba tr, .ix-ba th, .ix-ba td { display: block; width: auto; }
  .ix-ba thead { display: none; }
  .ix-ba tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .ix-ba tbody tr:last-child { border-bottom: 0; }
  .ix-ba tbody th, .ix-ba td { padding: 0; border: 0; width: auto; }
  .ix-ba td { margin-top: 10px; padding: 10px 12px; border-radius: 10px; }
  .ix-ba td.ix-b { background: rgba(255, 255, 255, .03); }
  .ix-tagb, .ix-taga { display: block; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
  .ix-tagb { color: #ff9a8a; } .ix-taga { color: #4cd6a5; }
  .ix-qt table, .ix-qt tbody, .ix-qt tr, .ix-qt td { display: block; width: auto; }
  .ix-qt thead { display: none; }
  .ix-qt tbody tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .ix-qt tbody tr:last-child { border-bottom: 0; }
  .ix-qt td, .ix-qt td.ix-q, .ix-qt td.ix-ct { padding: 0; border: 0; width: auto; }
  .ix-qt td + td { margin-top: 8px; }
  .ix-qt td:last-child { font-size: 14px; color: var(--muted); }
  .ix-card, .ix-role, .ix-four > div { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ix-card, .ix-toc a, .ix-others a, .ix-role a { transition: none; }
  .ix-card:hover { transform: none; }
}
