/* RA DESIGN site-wide theme. Light is the default (nothing below the toggle block applies). Dark = html[data-ra-theme="dark"].

   Palette: .scratch\phase3\phase4-theme-spec.md. PROCESS LOCK: the five-stage block (section.product-key) keeps its light surface and light values in dark mode. */



/* ---------- toggle control (header) ---------- */

.ra-theme-toggle { --ra-accent:#c7713d; display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px; background: transparent; color: var(--ra-v31-ink, #23231f); border: 1px solid rgba(35,35,31,.4); border-radius: 0; font: 500 9px/1 var(--ra-font-mono, ui-monospace, Consolas, monospace); letter-spacing: .06em; cursor: pointer; white-space: nowrap; pointer-events: auto; }

.ra-theme-toggle:hover { border-color: #c7713d; }

.ra-theme-toggle:focus-visible { outline: 2px solid var(--ra-accent); outline-offset: 2px; }

.ra-theme-icon { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); flex: none; }

.ra-v31-header .ra-v31-language { position: relative; }

.ra-v31-header .ra-v31-language .ra-theme-toggle { position: absolute; right: 0; top: calc(50% + 13px); }

.ra-theme-toggle--bar { display: none; }

@media (max-width: 767px) {

  .ra-v31-header .ra-v31-language .ra-theme-toggle { display: none; }

  .ra-v31-header .ra-theme-toggle--bar { display: inline-flex; position: absolute; right: 104px; top: 29px; padding: 5px 7px; font-size: 12px; }

}

/* ===== LIVE FIXES (PATCH-B): layout, light + dark ===== */

html { scroll-padding-top: 100px; }

[id] { scroll-margin-top: 100px; }

main.pd-site { padding-top: 60px; }                      /* "Make it yours" sits below the sticky header */

.cm-legal-body .cm-l { display: block; }                  /* legal details: two clean lines */

.cm-legal-body { line-height: 1.55; }

.ra-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 1.4rem; }

.ra-form-actions .ra-ts { margin: 0 !important; min-height: 65px; }

.ra-form-actions .ra-form-submit-row { margin: 0 !important; display: flex; justify-content: flex-end; }

.studio-sketch { width: 100%; height: auto; display: block; color: #1a1a18; max-width: 760px; justify-self: center; }

main.ra-studio-page .studio-range .studio-sketch { border: 0; background: transparent; object-fit: initial; aspect-ratio: auto; }

@media (min-width: 900px) {

  .pd-faq { max-width: 1160px; columns: 2; column-gap: 48px; }

  .pd-faq h2 { column-span: all; }

  .pd-faq details { break-inside: avoid; }

}

@media (max-width: 767px) {

  /* Process: the label card sits under the drawing instead of covering it (layout only, no colour/copy change) */

  .ra-workflow-art { display: flex !important; flex-direction: column; height: auto !important; }

  .ra-workflow-art .ra-art-label, .ra-workflow-art .ra-art-label-bottom { position: static !important; inset: auto !important; transform: none !important; width: auto !important; max-width: 100%; margin: 10px 0 0 !important; height: auto !important; }

  /* Q-FIX (adapt 30 Oct): below 768px the label is a reading card, not a %-sized overlay, so the clamp 10px floor no longer protects the composition. */

  .ra-workflow-art .ra-art-label strong, .ra-workflow-art .ra-art-label p, .ra-workflow-art .ra-art-label-bottom { font-size: 12px; }

  /* Home service rows: height follows the text (no overlapping lines) */

  .home-map-content-list, .home-map-content-item { height: auto !important; }

  .home-map-content-item { min-height: 56px; align-items: flex-start; padding-block: 10px; }

  .home-map-content { grid-template-rows: none !important; }

  /* Home "To think, test and refine": one card per view (JS moves the list: swipe or auto-advance) */

  .home-problem-cms { overflow: hidden !important; }

  .home-problem-list { width: 100% !important; transition: transform .6s cubic-bezier(.22,.8,.3,1); }

  .home-problem-item { flex: 0 0 100% !important; width: 100% !important; }

  /* Studio portrait caption no longer collides with the next heading */

  main.ra-studio-page .studio-portrait { margin-bottom: 44px; }

  /* Contact brief label on one line */

  .ra-contact-top-bar { font-size: 9.5px; letter-spacing: .03em; gap: 6px; }

  .ra-contact-top-bar span { white-space: nowrap; }

  /* Footer: stacked rows (copyright, links, language), nothing cut or overlapping */

  .footer-copyright-wrap.grid { grid-template-columns: 1fr !important; grid-template-rows: none !important; grid-auto-flow: row !important; row-gap: 14px !important; height: auto !important; min-height: 0 !important; align-items: start !important; padding-block: 14px !important; }

  .footer-copyright-wrap.grid > * { grid-row: auto !important; grid-column: 1 !important; }

  .footer-copyright, .footer-copyright-txt, .footer-copyright-txt-block { text-align: left; justify-content: flex-start; width: 100%; height: auto !important; }

  .footer-copyright-txt-block p, .footer-copyright-txt p { font-size: 11px; letter-spacing: .02em; line-height: 1.55; text-align: left; }

  .footer-policy { flex-wrap: wrap; gap: 10px 20px; justify-content: flex-start; width: 100%; }

  .footer-policy-item { flex: 0 0 auto !important; width: auto !important; max-width: 100%; }

  /* body copy a little less tight */

  p, .txt { letter-spacing: -0.008em; }

}

main.ra-studio-page .studio-range:after, html[lang="cs"] main.ra-studio-page .studio-range:after { display: none; }      /* the old photo caption belonged to the removed photo */



/* ---------- light: native surfaces ----------

   Scoped to the themed shell (.ra-route-view) so the four self-contained pages that manage their own <meta name="color-scheme"> - 404, cs/404, the api stub and the order desk - keep that value. */

html[data-ra-theme="light"]:has(.ra-route-view) { color-scheme: light; }



/* ---------- dark: variables ----------

   The old-token remaps are scoped to the page wrappers that do NOT contain the Process block (see PROCESS LOCK): custom properties and inherited colours

   flow down the tree, so nothing above section.product-key may change. Body/html get only a background (not inherited). */

html[data-ra-theme="dark"] {

  color-scheme: dark;

  background: #1a1a18;

  --ra-color-page: #1a1a18; --ra-color-surface: #23231f; --ra-color-text: #f6f6f1; --ra-color-secondary: #c2b8a8; --ra-color-link: #e39a63; --ra-color-warm-surface: #2a2a26;

}

html[data-ra-theme="dark"] :is(body > *, .ra-route-view > *):not(:has(.product-key)) {

  --ra-v31-paper: #1a1a18; --ra-v31-paper-rgb: 26, 26, 24; --ra-v31-ink: #f6f6f1; --ra-v31-muted: rgba(246,246,241,.7); --ra-v31-hair: rgba(246,246,241,.25);

  --bg-global: #1a1a18;

  --content--primary: #f6f6f1; --content--terriary: rgba(246,246,241,.74); --content--secondary: #c2b8a8; --content--border: rgba(246,246,241,.25);

  --content--surface: #9a968e; --content--granite-gray: #b0aca3; --content--disable: #77746d; --content--bg: #1a1a18;

  --ra-accent-text: #e39a63; --ra-text-accent: #e39a63; --ra-accent-dark: #e39a63;

  --studio-ink: #f6f6f1; --studio-paper: #1a1a18; --studio-accent: #e39a63; --studio-rule: rgba(246,246,241,.25);

}

html[data-ra-theme="dark"] body, html[data-ra-theme="dark"] body.ra-native-scroll { background-color: #1a1a18 !important; background-image: none !important; }

html[data-ra-theme="dark"] .ra-theme-toggle { border-color: rgba(246,246,241,.45); }

/* ---------- dark: shared shell ---------- */

html[data-ra-theme="dark"] .ra-v31-brand-logo { filter: invert(1); }

html[data-ra-theme="dark"] .ra-v31-header .ra-v31-language-divider { color: rgba(246,246,241,.4) !important; }

html[data-ra-theme="dark"] .ra-cookie-banner { background: #23231f; color: #f6f6f1; border-color: rgba(246,246,241,.25); }



/* ---------- dark: page surfaces ---------- */

html[data-ra-theme="dark"] .work-portfolio,

html[data-ra-theme="dark"] main.ra-studio-page,

html[data-ra-theme="dark"] main.ra-services-page,

html[data-ra-theme="dark"] main.privacy-page,

html[data-ra-theme="dark"] .ra-learn-page { background: #1a1a18; color: #f6f6f1; }

html[data-ra-theme="dark"] .work-featured-media,

html[data-ra-theme="dark"] .work-record-image,

html[data-ra-theme="dark"] .studio-portrait,

html[data-ra-theme="dark"] .svc-image { background: #2a2a26; }

html[data-ra-theme="dark"] .studio-enquiry,

html[data-ra-theme="dark"] .svc-enquiry,

html[data-ra-theme="dark"] .next-project-cta { background: #23231f; color: #f6f6f1; }

html[data-ra-theme="dark"] .project-info-item,

html[data-ra-theme="dark"] .project-info-description { background: rgba(26,26,24,.92); }



/* ---------- DRAWING SHEET (one dark-mode rule for every architectural drawing) ----------

   Page chrome is dark; every drawing/diagram sits on a cream sheet with the same frame: border, padding, soft edge. Define once, apply by selector.

   Light mode is not touched. Delete this block + the selector list below to remove the treatment. */

html[data-ra-theme="dark"] {

  --ra-sheet-bg: #f3f2ec; --ra-sheet-ink: #1a1a18; --ra-sheet-edge: #c9a96e;

  --ra-sheet-shadow: 0 0 0 1px rgba(201,169,110,.55), 0 10px 30px rgba(0,0,0,.45);

}

html[data-ra-theme="dark"] section.product-key,

html[data-ra-theme="dark"] .home-problem-item-img,

html[data-ra-theme="dark"] .home-map-main-stick-inner,

html[data-ra-theme="dark"] .studio-range .studio-sketch,

html[data-ra-theme="dark"] .pd-route-art {

  background-color: var(--ra-sheet-bg) !important; color: var(--ra-sheet-ink) !important;

  border: 1px solid var(--ra-sheet-edge); box-shadow: var(--ra-sheet-shadow); border-radius: 2px;

}

html[data-ra-theme="dark"] section.product-key { margin: 24px clamp(12px, 3vw, 40px); }

html[data-ra-theme="dark"] .home-problem-item-img *, html[data-ra-theme="dark"] .studio-range .studio-sketch, html[data-ra-theme="dark"] .pd-route-art { color: var(--ra-sheet-ink); }

html[data-ra-theme="dark"] .studio-range .studio-sketch, html[data-ra-theme="dark"] .pd-route-art { padding: 12px; box-sizing: border-box; }/* ---------- dark: states the generator cannot see (cookie notice buttons, hovers) ---------- */

html[data-ra-theme="dark"] .ra-cookie-actions button { color: #f6f6f1 !important; background: transparent !important; border-color: #c9a96e !important; }

html[data-ra-theme="dark"] .ra-cookie-actions button:first-child { background: #c9a96e !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] .ra-v31-nav a:hover, html[data-ra-theme="dark"] .ra-v31-nav a.w--current { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] .ra-v31-mobile-panel { background: #1a1a18 !important; }

html[data-ra-theme="dark"] .ra-v31-mobile-panel a { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] ::selection { background: #c7713d; color: #1a1a18; }

html[data-ra-theme="dark"] section.next-project-cta { background: #23231f !important; color: #f6f6f1 !important; }

html[data-ra-theme="dark"] .footer-img-inner { background-image: none !important; background-color: #1a1a18 !important; }

html[data-ra-theme="dark"] .footer-img-inner img { filter: invert(1); }

html[data-ra-theme="dark"] .work-featured-media { background: #2a2a26 !important; }

html[data-ra-theme="dark"] .ra-learn-page .txt-font-mono, html[data-ra-theme="dark"] .home-why-label .txt-font-mono { color: #e39a63 !important; }

/* page-load overlay (Home) follows the theme too, so a dark visitor never gets a white flash */

html[data-ra-theme="dark"] .loading, html[data-ra-theme="dark"] .loading-main, html[data-ra-theme="dark"] .ra-home-loader { background: #1a1a18 !important; }

html[data-ra-theme="dark"] .loading .heading, html[data-ra-theme="dark"] .loading .txt, html[data-ra-theme="dark"] .loading-content-title { color: #f6f6f1 !important; }

/* ---------- dark: polish from the states check (Phase 4 follow-up) ---------- */

html[data-ra-theme="dark"] .work-filter[aria-pressed="true"] { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] .work-filter[aria-pressed="true"]::before, html[data-ra-theme="dark"] .work-filter-count { color: #e39a63 !important; }

html[data-ra-theme="dark"] :focus-visible:not(.product-key *) { outline-color: var(--ra-accent, #d48344) !important; }

html[data-ra-theme="dark"] .ra-theme-toggle:focus-visible { --ra-accent:#d48344; outline:2px solid var(--ra-accent)!important; outline-offset:2px!important; }

/* studio-sketch-dark: the drawn sketch follows the text colour */





/* ---------- PATCH-C: dark polish ---------- */

html[data-ra-theme="dark"] body:has(.loading.ra-home-loader:not([hidden])) { background-color: #1a1a18 !important; }      /* no cream flash behind the dark loader */

/* architects' line drawings (dark-grey strokes) are shown on a light drafting panel so they stay readable */

/* network-lines effect follows the theme */

html[data-ra-theme="dark"] [data-datum-point-cloud] { --ra-datum-rgb: 232,230,222; }

/* ===== GENERATED (theme_gen.py) - do not edit by hand ===== */

html[data-ra-theme="dark"] a:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] a.footer-lang-option:not(.product-key *) { color: rgba(246,246,241,0.7) !important; }

html[data-ra-theme="dark"] a.footer-policy-item > span:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] a.ra-brandfilm-link:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] a.ra-cta-button.btn-fill:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.ra-cta-button.btn-fill *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.ra-personal-showcase-cta:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] a.ra-personal-showcase-frame:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.ra-personal-showcase-frame *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.ra-personal-showcase-frame > video:not(.product-key *) { background-color: #2a2a26 !important; }

html[data-ra-theme="dark"] a.ra-process-teaser-card:not(.product-key *) { background-color: #242421 !important; color: #f4f1e9 !important; }

html[data-ra-theme="dark"] a.ra-process-teaser-card *:not(.product-key *) { color: inherit !important; }

html[data-ra-theme="dark"] a.studio-button:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.studio-button *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.studio-text-link:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] a.svc-button:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.svc-button *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.svc-button.svc-button-secondary:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.svc-button.svc-button-secondary *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.svc-link:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] a.svc-process-link:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] a.txt.txt-font-mono.txt-14:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] a.work-featured-media:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] a.work-featured-media *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] article.svc-support-item > h3:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] article.svc-support-item > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] aside.ra-cookie-banner:not(.product-key *) { background-color: #1a1a18 !important; }

html[data-ra-theme="dark"] aside.ra-cookie-banner > p:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] button:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] button.ra-v31-language:not(.product-key *) { background-color: #2a2a26 !important; }

html[data-ra-theme="dark"] button.ra-v31-mobile-toggle:not(.product-key *) { background-color: #2a2a26 !important; }

html[data-ra-theme="dark"] button.work-filter > span:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.bp-line > div:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.btn-fill:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.btn-fill *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.btn-fill-bg:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.btn-fill-bg *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.cm-b-left > h1:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.cm-b-left > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.cta > a:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.cta > a *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.full:not(.product-key *) { background-color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.home-hero-work-item-title:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.home-map-intro-head:not(.product-key *) { background-color: #23231f !important; }

html[data-ra-theme="dark"] div.home-problem-label:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.home-problem-sub:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.home-usecase-faq-item-title-inner:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.home-usecase-label:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.home-why-item-img.item-left.bg-global:not(.product-key *) { background-color: #23231f !important; }

html[data-ra-theme="dark"] div.home-why-item-img.item-right.bg-global:not(.product-key *) { background-color: #23231f !important; }

html[data-ra-theme="dark"] div.line.line-horizital.left:not(.product-key *) { background-color: #23231f !important; }

html[data-ra-theme="dark"] div.links > a:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.process-intro-meta > span:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.project-info-description > div:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.project-info-description > strong:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.project-info-item > div:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.project-info-item > h1:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.project-info-item > strong:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.ra-contact-head > h2:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.ra-cookie-actions > button:not(.product-key *) { color: #1a1a18 !important; background-color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.ra-cookie-actions > button *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] div.ra-form-label:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.ra-form-label > span:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.ra-learn-card-brand:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.ra-learn-card-copy:not(.product-key *) { background-color: #23231f !important; }

html[data-ra-theme="dark"] div.ra-learn-card-fix:not(.product-key *) { background-color: #2a2a26 !important; color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.ra-learn-card-fix > b:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.ra-learn-card-kicker:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.ra-v31-shell:not(.product-key *) { background-color: rgba(26,26,24,0.92) !important; }

html[data-ra-theme="dark"] div.studio-founder-copy > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.studio-hero-copy > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.studio-hero-foot > span:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.studio-section-head > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.svc-card-copy > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.svc-hero-foot > span:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.svc-section-head > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.svc-support-head > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.t > b:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.t > span:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.txt > h1:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.txt.txt-14:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.txt.txt-14.txt-font-mono:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] div.txt.txt-16:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.txt.txt-16.fw-nomal:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.txt.txt-16.txt-mb-14:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] div.txt.txt-font-mono.txt-12:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] div.txt.txt-font-mono.txt-14:not(.product-key *) { color: #7a3f17 !important; }

html[data-ra-theme="dark"] div.work-featured-meta > span:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] figure.ra-brandfilm-frame.ra-vframe:not(.product-key *) { background-color: #2a2a26 !important; }

html[data-ra-theme="dark"] figure.ra-brandfilm-frame.ra-vframe > video:not(.product-key *) { background-color: #2a2a26 !important; }

html[data-ra-theme="dark"] footer.ft > span:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] h1.process-intro-heading.heading.h1:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] h2:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] h2.heading.h2.tb-h3:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] h2.heading.h2.tb-h4:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] h2.heading.h3.tb-h6:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] h2.work-filter-title:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] nav.project-nav > a:not(.product-key *),

html[data-ra-theme="dark"] nav.project-nav > a:not(.product-key *):hover,

html[data-ra-theme="dark"] nav.project-nav > a:not(.product-key *):focus-visible { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] nav.ra-v31-nav > a:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.k:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.privacy-kicker:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] p.privacy-lead:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.privacy-updated:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.ra-brandfilm-copy:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] p.ra-brandfilm-kicker:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] p.ra-personal-showcase-copy:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] p.ra-personal-showcase-kicker:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] p.s:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.svc-hero-description:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.svc-scope-note:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.txt.txt-20:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.txt.txt-font-mono.txt-12:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] p.work-filter-note:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] p.work-results-count:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] section.next-project-cta:not(.product-key *) { background-color: #23231f !important; color: #f6f6f1 !important; }

html[data-ra-theme="dark"] section.next-project-cta *:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] section.pd-hero > h1:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] section.project-gallery > div:not(.product-key *) { background-color: #23231f !important; }

html[data-ra-theme="dark"] section.ra-brandfilm:not(.product-key *) { background-color: #1a1a18 !important; }

html[data-ra-theme="dark"] section.ra-personal-showcase:not(.product-key *) { background-color: #1a1a18 !important; }

html[data-ra-theme="dark"] section.studio-enquiry > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] section.svc-enquiry > p:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] section.work-intro > h1:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] section.work-intro > h2:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.btn-fill-bg:not(.product-key *) { background-color: #f6f6f1 !important; color: #1a1a18 !important; }

html[data-ra-theme="dark"] span.btn-fill-bg *:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] span.cm-b-title:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.cm-b-title > small:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] span.cm-legal-body:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] span.cm-legal-label:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.cm-mono:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.cm-mono.cm-gold:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.footer-lang-selected:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.label:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-cta-label:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-personal-showcase-caption:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] span.ra-personal-showcase-index:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-personal-showcase-state:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-theme-label:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-v31-brand-name:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-v31-cta-label:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.ra-v31-language-active:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] span.studio-eyebrow:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.svc-card-label:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.svc-eyebrow:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.svc-image-index:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] span.svc-output-label:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] span.svc-support-label:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.work-featured-index:not(.product-key *) { color: #f6f6f1 !important; background-color: #23231f !important; }

html[data-ra-theme="dark"] span.work-featured-kicker:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.work-filter-count:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] span.work-record-index:not(.product-key *) { color: #1a1a18 !important; }

html[data-ra-theme="dark"] span.work-record-location:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] span.work-record-type:not(.product-key *) { color: #e39a63 !important; }

html[data-ra-theme="dark"] strong:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] summary:not(.product-key *) { color: #c2b8a8 !important; }

html[data-ra-theme="dark"] text:not(.product-key *) { color: #f6f6f1 !important; }

html[data-ra-theme="dark"] ul.svc-outputs > li:not(.product-key *) { color: #c2b8a8 !important; }

/* ===== END GENERATED ===== */



/* a11y (4 Oct): the bar toggle meets the 24 x 24 px minimum target */

.ra-theme-toggle.ra-theme-toggle--bar { min-height: 24px; }

/* TAP: larger invisible hit areas (WCAG 2.5.8). Pseudo-elements are transparent: no pixel changes. */

.ra-v31-header .ra-v31-language a { position: relative; }

.ra-v31-header .ra-v31-language a::after { content: ""; position: absolute; left: 50%; width: 24px; margin-left: -12px; top: -16px; bottom: -3px; }

.ra-theme-toggle::after { content: ""; position: absolute; left: -4px; right: -4px; top: -3px; bottom: -12px; }

.footer-policy a.footer-policy-item:not(.build-cta)::before { content: ""; position: absolute; left: -6px; right: -6px; top: -14px; bottom: -14px; }


/* DE48 tap targets (28 Oct, MAX): phone tap areas 44 px, look unchanged. Shared sheet so every public page gets them: header theme toggle, footer CS/EN and PRIVACY, project pagination, map retry. */
@media (max-width: 760px) {
  html body .ra-theme-toggle::after { left: 50%; right: auto; top: 50%; bottom: auto; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  html body .ra-theme-toggle--bar { z-index: 2; }
  html body .footer-policy .footer-policy-item:not(.build-cta)::before { top: -15px; bottom: -15px; }
  html body .footer-lang-option { padding-block: 16px; padding-inline: 14px; margin-block: -16px; margin-inline: -14px; }
  html body .footer-policy .footer-language { position: relative; }
  html body .footer-policy .footer-language::before { content: ''; position: absolute; left: -6px; right: -6px; top: -15px; bottom: -15px; pointer-events: none; } /* DE59: let taps reach the CS/EN link (link has its own 44px area) */
  html body .pd-ml-retry { position: relative; }
  html body .pd-ml-retry::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; }
  html body .project-nav a { position: relative; }
  html body .project-nav a::after { content: ''; position: absolute; left: 0; right: 0; top: -13px; bottom: -13px; }
  html body .footer-policy a.footer-legal { position: relative; }
  html body .footer-policy a.footer-legal::after { content: ''; position: absolute; left: -6px; right: -6px; top: -15px; bottom: -15px; }
}
/* DE49 a11y shared (28 Oct, MAX): nothing changes until a user interacts. Keyboard focus ring (:focus-visible), skip-link styling, contact form focus and disabled states. Moved from de-upgrades.css; same values. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #9a5326; outline-offset: 3px; }
html[data-ra-theme="dark"] a:focus-visible, html[data-ra-theme="dark"] button:focus-visible, html[data-ra-theme="dark"] input:focus-visible, html[data-ra-theme="dark"] select:focus-visible, html[data-ra-theme="dark"] textarea:focus-visible, html[data-ra-theme="dark"] summary:focus-visible { outline-color: #c9a96e; }
.ra-skip { position: absolute; left: 12px; top: -200px; z-index: 2147483647; padding: 10px 16px; background: #f3f1ea; color: #1a1a18; border: 2px solid #9a5326; font: 600 14px/1.2 "BT Grotesk", Arial, sans-serif; text-decoration: none; }
.ra-skip:focus { top: 12px; outline: none; }
.ra-skip:focus-visible { outline: 2px solid #9a5326; outline-offset: 2px; }
html[data-ra-theme="dark"] .ra-skip { background: #1a1a18; color: #f3f1ea; border-color: #c9a96e; }
.ra-input:focus-visible, .ra-sel:focus-visible { outline: 2px solid #9a5326; outline-offset: 2px; }
.ra-input:disabled, .ra-sel:disabled, .ra-form-status:disabled { opacity: .55; cursor: not-allowed; }
html[data-ra-theme="dark"] .ra-input:focus-visible, html[data-ra-theme="dark"] .ra-sel:focus-visible { outline-color: #d48344; }


/* Q-FIX (impeccable polish 30 Oct): DE23 "button states + browser-detail polish" lives in de-upgrades.css, which only 14 of

   the 76 html files load. The same seven declarations, same values, in the file every themed page loads, so the other 62

   stop shipping OS defaults for selection, caret, scrollbar, disabled and press states. de-upgrades.css still loads later,

   so its 14 pages compute identical values to before. Dark ::selection is deliberately NOT restated: ra-theme.css:129 owns it. */

::selection { background: #e7c9a0; color: #1a1a18; }

html { caret-color: #9a5326; scrollbar-color: #8a8a85 #f6f6f1; }

html[data-ra-theme="dark"] { caret-color: #e39a63; scrollbar-color: #5c5a54 #1a1a18; }

button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }

.ra-cta-button:active, .btn-fill:active { transform: translateY(1px); }

main a { text-underline-offset: .18em; text-decoration-thickness: 1px; }

[class*="price"], [class*="amount"], [class*="total"] { font-variant-numeric: tabular-nums; }



/* ===== DE61 theme polish (28 Oct): fixes only, existing palette (#1a1a18 page, #23231f surface, #2a2a26 media, #f6f6f1 ink, #c2b8a8 secondary, #e39a63 accent text, #9a5326 accent text on paper) ===== */

/* Mono labels: the generated #7a3f17 is the paper-panel value; on the dark page it was 2.1:1. Paper panels and light buttons keep their ink/rust.

   Q-FIX (impeccable audit 29 Oct): the map plate is a paper frame too (de-upgrades.css:158 keeps its text ink in dark),

   but .home-map-main-stick-inner was missing from this carve-out list, so the four "[SCROLL TO CONTINUE]" study hints

   rendered #e39a63 on the cream plate = 2.06:1. Same omission class as the ones already listed here. */

html[data-ra-theme="dark"] body div.txt.txt-font-mono.txt-14:not(.product-key *):not(.home-map-main-img *):not(.home-map-main-stick-inner *):not(.btn-fill *):not(.ra-home-case-study *):not(.ra-process-teaser-card *) { color: #e39a63 !important; }

/* Brand (gold) buttons: ink label in both themes (rust on gold was 2.6:1). */

html body a.cta-main-item-btn-inner.btn-fill-brand div.txt.txt-font-mono.txt-14:not(.product-key *) { color: #1a1a18 !important; }

/* Process / learn: the architects' line drawings and the RA DESIGN construction wordmark are dark ink; in dark they are drawn in light ink. */

html[data-ra-theme="dark"] .ra-process-wordmark img { filter: invert(1) hue-rotate(180deg); }

/* the stage drawings multiply onto paper: like the home plan (PATCH-C) they keep the light drafting panel in dark; the generated #23231f made them near-invisible. */

html[data-ra-theme="dark"] .ra-learn-page div.home-why-item-img.bg-global:is(.item-left, .item-right):not(.product-key *) { background-color: #f3f2ec !important; background-image: none !important; mix-blend-mode: normal; }

/* Process / learn cards on paper: kicker and corner mark readable (3.96:1 and white-on-paper before). */

html:not([data-ra-theme="dark"]) .ra-learn-card-kicker { color: #9a5326; }

html:not([data-ra-theme="dark"]) .ra-learn-card-brand { color: #6c6a66; }

/* Work: cards and image frames follow the dark surfaces (translucent white read as a muddy grey; the featured frame stayed paper). */

html[data-ra-theme="dark"] body a.work-record:not(.product-key *) { background-color: #23231f !important; border-color: rgba(246,246,241,.16) !important; }

html[data-ra-theme="dark"] body a.work-featured-media:not(.product-key *), html[data-ra-theme="dark"] body .work-record-image:not(.product-key *), html[data-ra-theme="dark"] body :is(a.work-featured-media, .work-record-image) > img { background-color: #2a2a26 !important; }

/* 404 sheet: the page has its own tokens that only followed the system setting; follow the site toggle instead. */

html[data-ra-theme="dark"]:has(body .sheet) { --paper: #1a1a18; --ink: #ece8df; --mut: #a29d92; --line: rgba(236,232,223,.28); --cu: #e08a52; }

html[data-ra-theme="light"]:has(body .sheet) { --paper: #f6f6f1; --ink: #262622; --mut: #625f56; --line: rgba(38,38,34,.28); --cu: #c7713d; }

/* Services enquiry band (paper): body copy to AA (4.4:1 before). */

html:not([data-ra-theme="dark"]) section.svc-enquiry > p { color: #5f5d58; }

/* Page-frame corner marks (+): ink on the dark page on /process/; follow the dark hairline colour. */

html[data-ra-theme="dark"] .bg-border-plus .embed-ic svg :is(path, line):not(.product-key *) { stroke: rgba(246,246,241,.6); }

/* Q-FIX (impeccable audit 29 Oct): light-theme footer meta rendered #c2b8a8 on the #f6f6f1 paper

   = 1.81:1 measured on the label <span> inside each .footer-policy-item (a wrapper-only reading

   said 3.2:1, the rendered text was worse). Set to the light sheet's --mut #625f56 = 5.89:1.

   Dark keeps its own #f6f6f1 / #c2b8a8 footer overrides above; unchanged.

   The footer language "/" separator is deliberately faint in both themes (rgba(108,106,102,.45) light,

   and the same token under dark); it is a separator, not a label, so it stays as designed. */

html:not([data-ra-theme="dark"]) .footer-copyright-txt,

html:not([data-ra-theme="dark"]) .footer-copyright-txt-block,

html:not([data-ra-theme="dark"]) a.footer-policy-item:not(.product-key *),

html:not([data-ra-theme="dark"]) a.footer-policy-item > span:not(.product-key *) { color: #625f56 !important; }

/* Q-FIX (impeccable audit 29 Oct): the colour above is only half the fix — .footer-policy-item.footer-legal also

   carries opacity:.72 in an inline <style> that is duplicated across 70 pages, which dragged the rendered legal

   links (PODMÍNKY / OCHRANA ÚDAJŮ, 13px) down to 3.22:1. The muted colour is the de-emphasis, so the fade is

   dropped in light (5.89:1). Dark keeps .72: #f6f6f1 at .72 on the #1a1a18 page measures 9.6:1, so it is untouched. */

html:not([data-ra-theme="dark"]) .footer-policy-item.footer-legal { opacity: 1; }

/* Q (block 10, 30 Oct): this sheet carried transitions with no prefers-reduced-motion

   fallback, which DESIGN.md requires for every motion. Scoped selector by selector on

   purpose: a universal rule here would land on every page that loads this sheet and

   freeze the Heron header hide/show and the mobile menu reveal, not just their motion.

   No @keyframes live in this sheet, so every end state below comes from its own state

   class and now lands instantly instead of animating. */

@media (prefers-reduced-motion: reduce) {

  .home-problem-list { transition: none; }

}

/* Q (block 12, 30 Oct): the mobile menu row numbers render 11px (ra-v31-shell.css:1256), under

   PRODUCT.md's 12px floor for interactive text. Raised here instead of in that sheet on purpose:

   ra-theme.css loads after ra-v31-shell.css (index.html head order), so this wins at equal

   specificity, and the patch set stays 23 files rather than gaining a sheet referenced by 74

   pages. Same @media scope as the rule it overrides, so nothing outside the phone menu changes. */

@media (max-width: 1060px) {

  .ra-v31-header .ra-v31-mobile-panel > a .ra-v31-n { font-size: 12px; }

}


/* Q-B19V-START */
/* Block 19 / step V (30 Oct): the language row becomes a button, the twin of the theme button.

   The owner's notes on the same corner of the bar: "Orgnize this part somhow to be in a bstter
   shape and orginze together", then "orgnize of even to be just a buttn to swtitch like the
   button tosweitch brywen dark and light", pointing at the LIGHT button: "like this one".
   What the measurement said about that corner at 1199px:

     "CS / EN"  x 1092.09  w 58   (13px mono, no border, vertically centred in a 72px track)
     "LIGHT"    x 1083.79  w 66.3 h 20.6, border 0.8px rgba(35,35,31,.4)

   Same column, two different objects: the upper one 8.30px wider on the left than the lower,
   one with a frame and one without, 13px text over 9px text, and the CTA arrow crossing 2.95px
   into its first letter. They were never a pair.

   After this step both are 66 x 22 chips with the same border, right-aligned on the same edge,
   6px apart, and the pair bottom-aligns with the START A PROJECT box (chip bottom 69.91 against
   the box bottom 69.81). The divider and the current-language label are clipped the way a
   screen-reader-only element is clipped, not display:none, so "CS / EN" and aria-current stay
   in the accessibility tree while the eye sees one switch: the language you are not on.
   The link fills the chip, so the whole 66 x 22 is the target.
   Why the button is offset -1px and not 0: an absolutely positioned child sizes from its
   containing block's PADDING box, so left/right:0 leaves the lower chip 1.6px narrower than the
   upper one with both its edges 0.8px inward. The -1px hands those pixels back. The declared
   border is 1px and this panel (device-pixel ratio 1.25) renders it 0.8px, which is why the
   after table reads 0.2px between the two chip edges instead of 0.00px.

   The border colour is a custom property, not a literal: rgba(35,35,31,.4) is invisible on the
   dark page, which is why the theme button already switches to rgba(246,246,241,.45) at
   ra-theme.css:84. The chip reads the same two values through the same property.

   Why the selectors are written as .ra-v31-shell > .ra-v31-language and not .ra-v31-language.
   The page has ONE language element and the header script moves it: on the desktop it is a
   direct child of the rail (.ra-v31-shell), below 721px the phone menu adopts it and the sheet
   re-shows it there - ra-v31-shell.css:829 hides that copy by default, :963 (the <=720 band)
   turns it back on as a full-width row with a hairline above it, 12px of top padding and 13px
   type, and the <=1060 band gives it 12px of gap. An unscoped chip rule restyles the menu row
   with it: measured with the first version of this step, the row inside the opened panel came
   out 37.7 x 22 with a box border and the CS/EN pair clipped to a single label. The rail and
   the menu row are not the same object, so this step addresses only the rail's copy.
   Verified after the re-scope, same page, panel open at 390x844, before and after block 19:
   language row 24,494 342 x 43, one hairline above, 12px top padding, 13px type, text
   "CS / EN" plus the theme button, and the first three menu rows at 24,72 / 24,130 / 24,187 of
   342 x 58 - the same numbers in both builds. */
.ra-v31-header .ra-v31-shell > .ra-v31-language {
  --ra-chip-edge: rgba(35, 35, 31, .4);
  align-self: start !important;
  height: 22px !important;
  margin-top: 13px !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--ra-chip-edge) !important;
  justify-content: center !important;
  gap: 0 !important;
}
html[data-ra-theme="dark"] .ra-v31-header .ra-v31-shell > .ra-v31-language {
  --ra-chip-edge: rgba(246, 246, 241, .45);
}
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-v31-language-inactive {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  color: var(--ra-v31-ink, #23231f) !important;
}
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-v31-language-divider,
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-v31-language-active {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-theme-toggle {
  left: -1px !important;
  right: -1px !important;
  width: auto !important;
  height: 22px !important;
  top: calc(100% + 7px) !important;
  justify-content: center !important;
  border-color: var(--ra-chip-edge) !important;
}
/* Q-B19V-END */
/* Q-B20X-START */
/* Block 20 / step X (31 Oct): the two switches now span the START A PROJECT box.

   The owner's two notes on this corner, 30 Oct: "they needed to be centerd or one have the upper
   border corner as the boxx next and the second have the down border", and on the box itself
   "The sitches next should be aligen to this box". Read as one construction: the language chip's
   top edge is the box's top edge, the theme button's bottom edge is the box's bottom edge.

   What block 19 step V left, measured 30 Oct at dpr 1 (evidence/q-b20-before.md):

     viewport   CTA box y -> bottom   chip y   toggle bottom   top deficit   bottom   pair height
       1440        16.66 -> 70.66       20.66       70.66           4.00       0.00        50.00
       1199        15.91 -> 69.91       19.91       69.91           4.00       0.00        50.00
       1060        15.91 -> 69.91       19.91       69.91           4.00       0.00        50.00
        768        17.36 -> 71.36       21.36       71.36           4.00       0.00        50.00

   The bottom was already exact; the pair was 50px tall against a 54px box and started 4px late.
   Two numbers, then: 22 + 10 + 22 = 54 (the gap that makes the pair the box's height), and
   margin-top 13 -> 9, because the rail content box begins 6.91px above the old chip edge at 1199
   (19.91 - 13), 7.66px at 1440 and 8.36px at 768 - and 9px from each of those lands on 15.91,
   16.66 and 17.36, which are the box's own top edges at those widths. The 4px is the CTA box's
   own offset inside the rail, constant across every band, which is why one margin value fixes all
   four and the bottom then follows by itself: both are 54px tall and their tops now agree.

   Step V had made .ra-v31-language the chip: a 22px bordered box with the theme button absolutely
   positioned under it. That cannot span 54px, because the frame IS the upper chip. This step turns
   the container into the pair's frame and moves the visible border down onto the link inside it:
     - the container: 54px tall, no border, no padding, a column with the two chips pushed apart by
       justify-content: space-between - which also means the gap is not a magic number, it is
       whatever 54 - 22 - 22 leaves;
     - .ra-v31-language-inactive (the link): the upper chip, stretched to the column's 66px,
       22px tall, box-border, reading --ra-chip-edge from the container exactly as step V set it up
       (that property is the one step V introduced because the border has two values, light's
       rgba(35,35,31,.4) and dark's rgba(246,246,241,.45), and the chip must follow the theme);
     - .ra-theme-toggle: out of absolute positioning and into the flow, so it is the second chip of
       the column instead of something pinned under it. Its own 1px border and its border-color are
       already step V's, and the -1px left/right padding-box trick is retired with the
       position:absolute it was there to correct - the toggle is now a flex item stretched to the
       same 66px as the link, so the two edges are the same two numbers.
   The clipped .ra-v31-language-divider / -active spans are position:absolute, so they take no part
   in the column and stay in the accessibility tree unchanged.

   The phone panel is not touched: step V's selectors are .ra-v31-shell > .ra-v31-language, and
   below 721px the header script moves the one language element into the mobile panel, where it is no
   longer a child of the rail. That copy keeps the full-width row row block 19 gave it. */
.ra-v31-header .ra-v31-shell > .ra-v31-language {
  height: 54px !important;
  margin-top: 9px !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 0 !important;
}
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-v31-language-inactive {
  box-sizing: border-box !important;
  height: 22px !important;
  border: 1px solid var(--ra-chip-edge) !important;
}
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-theme-toggle {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: 22px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
/* Q-B20X-END */
/* Q-B21Y-START */
/* Block 21 / step Y (31 Oct): the theme chip's label reaches the 12px floor block 12 set.

   ra-theme.css:5 still paints this chip with font: 500 9px/1 and step X never restated it, so the
   rail toggle has rendered 9px the whole time. Measured: the site's mono at 12px, with the chip's
   own .06em letter-spacing, gives

     label     width at 12px    budget in a 66px chip    budget in a 74px chip
     LIGHT         39.61            41px  fits               51px  fits (+11.39)
     DARK          31.69            41px  fits               51px  fits (+19.31)
     TMAVY         39.61            41px  fits               51px  fits (+11.39)
     SVETLY        47.53            41px  6.53 OVER          51px  fits (+3.47)

   (the Czech pair carries a caron and an acute; widths measured on the real glyphs). The budget is
   clientWidth minus its own box: 66 - 2 border = 64, - 10 padding = 54, - 8 for the state glyph,
   - 5 gap = 41px. Czech decides it, and no gap or padding tweak alone leaves real clearance, so the
   column grows to 74px - see Q-B21Y-COLS in ra-v31-shell.css for who pays for that. Padding goes
   5 -> 4px to buy margin without touching the letter-spacing the rest of the header shares.

   Scoped to .ra-v31-shell > .ra-v31-language .ra-theme-toggle, so the phone-panel copy (line 14,
   already 12px), the --bar variant and the language switch keep their type. The chip box does not
   change: still 22px tall, and a 12px/1 line sits inside it with 4px of room. */
.ra-v31-header .ra-v31-shell > .ra-v31-language .ra-theme-toggle {
  font-size: 12px !important;
  line-height: 1 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
/* Q-B21Y-END */

/* ZCODE 6 Nov (owner-reported bug): the theme toggle's 44px invisible hit area swallowed
   clicks on the CS/EN chips stacked in the same box (Q block 20). Raise the language links
   above the pseudo-element so the language switch wins its own clicks; the toggle keeps its
   44px touch target everywhere else. */
html .ra-v31-header .ra-v31-shell > .ra-v31-language > a { position: relative !important; z-index: 3 !important; }

html .ra-v31-header .ra-v31-shell > .ra-v31-language .ra-theme-toggle { z-index: 1 !important; position: relative !important; }
/* 7 Nov: the toggle now mounts as a shell child (outside the language box) — position it
   in the same corner, below the CS/EN chips, with its plate anchored to itself. */
html .ra-v31-header .ra-v31-shell > .ra-theme-toggle:not(.ra-theme-toggle--bar) {
  position: absolute !important; z-index: 1 !important;
  /* top/right are set by ra-theme.js from the live CS/EN box position */
}
/* The toggle's 44px touch plate must anchor to the toggle button itself, not to the whole
   language box it was overflowing (position:static made the plate cover the CS/EN chips). */

/* ZCODE 6 Nov (typeset floor): the theme label rendered at 9px — raise to 12px on both variants. */
.ra-theme-toggle { font-size: 12px !important; }

/* ===== ZCODE 7 Nov (owner: toggle INSIDE the box, aligned top+bottom; language clicks fixed) =====
   Highest-specificity form so it wins over Block-20 regardless of file order: the toggle stays
   stacked under CS/EN inside the box, its 44px touch plate anchors to the 22px toggle itself
   (not the whole box), and the language links sit above any overlapping plate. */
html body .ra-v31-header .ra-v31-shell > .ra-v31-language .ra-theme-toggle {
  position: relative !important; z-index: 1 !important;
}
html body .ra-v31-header .ra-v31-shell > .ra-v31-language .ra-theme-toggle::after {
  top: 50% !important; width: 44px !important; height: 44px !important;
  left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}
html body .ra-v31-header .ra-v31-shell > .ra-v31-language > a {
  position: relative !important; z-index: 3 !important;
}
