/* =====================================================================
   Yakclick — site chrome & shared components (built on brand.css tokens)
   Logical properties throughout: the same CSS serves LTR (en) and RTL (fa, ps).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
/* Bootstrap's reboot used to supply this; without it a component's own display rule beats the attribute. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
html[data-motion="off"] { scroll-behavior: auto; }

/* ---- Scrollbars: one thin rail, tokens in brand.css ----
   Firefox gets scrollbar-width/scrollbar-color; Chromium and Safari get the ::-webkit-*
   pseudo-elements. Both are declared: neither browser family understands the other's, and
   a UA default rail beside a designed page is the loudest thing on screen.
   The same treatment covers the horizontal rails (sliders, tab strips, code blocks) so a
   rail that can scroll says so with the same 8px thumb rather than a 17px system bar. */
html { scrollbar-width: thin; scrollbar-color: var(--yc-scroll-thumb) var(--yc-scroll-track); }
::-webkit-scrollbar { width: var(--yc-scroll-size); height: var(--yc-scroll-size); }
::-webkit-scrollbar-track { background: var(--yc-scroll-track); }
::-webkit-scrollbar-thumb { background: var(--yc-scroll-thumb); border-radius: var(--yc-scroll-radius); }
::-webkit-scrollbar-thumb:hover { background: var(--yc-scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
/* Rails: the horizontal ones are quiet until the pointer is on them. */
.yc-slider__track, .yc-stack, .yc-segnav__seg, [data-rail], .yc-doc__pre, pre { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.yc-slider__track:hover, .yc-stack:hover, .yc-segnav__seg:hover, [data-rail]:hover, .yc-doc__pre:hover, pre:hover,
.yc-slider__track:focus-within, .yc-segnav__seg:focus-within, [data-rail]:focus-within { scrollbar-color: var(--yc-scroll-thumb) var(--yc-scroll-track); }
.yc-slider__track::-webkit-scrollbar-thumb, .yc-stack::-webkit-scrollbar-thumb, .yc-segnav__seg::-webkit-scrollbar-thumb,
[data-rail]::-webkit-scrollbar-thumb, .yc-doc__pre::-webkit-scrollbar-thumb, pre::-webkit-scrollbar-thumb { background: transparent; transition: background var(--yc-dur) var(--yc-ease); }
.yc-slider__track:hover::-webkit-scrollbar-thumb, .yc-stack:hover::-webkit-scrollbar-thumb, .yc-segnav__seg:hover::-webkit-scrollbar-thumb,
[data-rail]:hover::-webkit-scrollbar-thumb, .yc-doc__pre:hover::-webkit-scrollbar-thumb, pre:hover::-webkit-scrollbar-thumb,
.yc-slider__track:focus-within::-webkit-scrollbar-thumb, .yc-segnav__seg:focus-within::-webkit-scrollbar-thumb,
[data-rail]:focus-within::-webkit-scrollbar-thumb { background: var(--yc-scroll-thumb); }
[data-rail].is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--yc-font-sans);
  font-size: var(--yc-fs-base);
  line-height: var(--yc-lh-body);
  color: var(--yc-text);
  background: var(--yc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  transition: background-color var(--yc-dur-slow) var(--yc-ease), color var(--yc-dur-slow) var(--yc-ease);
}
/* Dari / Pashto: Vazirmatn for everything, including display sizes. Latin tracking
   rules are neutralised because negative tracking breaks Arabic-script joins. */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .yc-display, [dir="rtl"] .yc-label, [dir="rtl"] .btn-yc {
  font-family: var(--yc-font-rtl); letter-spacing: 0;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .yc-display { line-height: 1.25; }
[dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.4; }

/* ---- Type ---- */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--yc-text); }
h1, h2, h3 { text-wrap: balance; }
h1, h2, .yc-display { font-family: var(--yc-font-head); font-weight: 800; letter-spacing: var(--yc-track-head); line-height: var(--yc-lh-snug); }
h1 { font-size: var(--yc-fs-4xl); letter-spacing: var(--yc-track-display); line-height: var(--yc-lh-tight); }
h2 { font-size: var(--yc-fs-3xl); }
h3 { font-family: var(--yc-font-head); font-weight: 700; font-size: var(--yc-fs-xl); letter-spacing: -.012em; line-height: 1.25; }
h4 { font-family: var(--yc-font-sans); font-weight: 600; font-size: var(--yc-fs-lg); letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--yc-blue-600); text-decoration: none; transition: color var(--yc-dur-fast) var(--yc-ease); }
a:hover { color: var(--yc-blue-700); }
img, svg, video { max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--yc-blue) 24%, transparent); color: inherit; }
.yc-band--ink ::selection, .yc-footer ::selection { background: color-mix(in srgb, var(--yc-blue-300) 45%, transparent); color: #fff; }
/* Scrollbars: thin and tinted from the tokens, so dark mode does not get a white gutter. */
html { scrollbar-color: var(--yc-line-strong) transparent; scrollbar-width: thin; scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--yc-line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* Small caps label ("eyebrow"). The running index number is the signature of the design. */
.yc-label, .yc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--yc-font-sans); font-size: var(--yc-fs-2xs); font-weight: 600;
  letter-spacing: var(--yc-track-label); text-transform: uppercase; color: var(--yc-text-faint);
  margin: 0 0 14px; font-variant-numeric: tabular-nums;
}
.yc-band--ink .yc-eyebrow .n, .yc-hero .yc-eyebrow .n { color: var(--yc-blue-300); }
.yc-eyebrow .n { color: var(--yc-blue-text); font-family: var(--yc-font-mono); font-weight: 600; letter-spacing: .04em; }
.yc-eyebrow .n::after { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--yc-line-strong); margin-inline-start: 10px; vertical-align: middle; }
[dir="rtl"] .yc-eyebrow, [dir="rtl"] .yc-label { text-transform: none; font-size: var(--yc-fs-xs); }

.yc-num { font-variant-numeric: tabular-nums; }
.yc-muted { color: var(--yc-text-soft); }
.yc-faint { color: var(--yc-text-faint); }
.yc-lead { font-size: var(--yc-fs-lg); color: var(--yc-text-soft); max-width: var(--yc-measure); }
.yc-visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Layout ---- */
.yc-container { max-width: var(--yc-container); margin-inline: auto; padding-inline: var(--yc-gutter); }
.yc-container--narrow { max-width: var(--yc-container-narrow); }
.yc-band { padding-block: var(--yc-section); }
.yc-band--sm { padding-block: var(--yc-section-sm); }
.yc-band--tint { background: var(--yc-surface-2); }
.yc-band--ink { background: var(--yc-ink); color: var(--yc-ink-fg); }
.yc-band--ink h2, .yc-band--ink h3 { color: #fff; }
.yc-band--ink .yc-eyebrow { color: var(--yc-ink-soft); }

/* Section head: index + eyebrow on top, headline and supporting line side by side. */
.yc-head2 {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(12px, 3vw, 64px); row-gap: 0; align-items: end;
  margin: 0 0 clamp(32px, 4.5vw, 64px); padding-top: 22px; border-top: 1px solid var(--yc-line);
}
/* Eyebrow and title stack in the first column and stay 20px apart whatever the lead does; the
   lead spans both rows and bottom-aligns with the title. (The old full-row eyebrow inherited the
   43px column gap as a row gap and drifted 50-95px from the title depending on the lead.) */
.yc-head2 .yc-eyebrow { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 20px; }
.yc-head2 h2, .yc-head2 h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: var(--yc-fs-3xl); }
.yc-head2 p { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; font-size: var(--yc-fs-lg); color: var(--yc-text-soft); max-width: 48ch; padding-bottom: 4px; }
.yc-head2--center { grid-template-columns: 1fr; grid-template-rows: none; text-align: center; justify-items: center; border-top: 0; padding-top: 0; }
.yc-head2--center .yc-eyebrow, .yc-head2--center h2, .yc-head2--center h3, .yc-head2--center p { grid-column: 1; grid-row: auto; }
.yc-head2--center p { max-width: 56ch; margin-top: 16px; }
.yc-head2--bare { grid-template-rows: none; }
.yc-head2--bare .yc-eyebrow { margin-bottom: 0; }
@media (max-width: 900px) { .yc-head2 { grid-template-columns: 1fr; grid-template-rows: none; align-items: start; } .yc-head2 .yc-eyebrow, .yc-head2 h2, .yc-head2 h3, .yc-head2 p { grid-column: 1; grid-row: auto; } .yc-head2 p { margin-top: 14px; } }

/* ---- Buttons: two weights, squared-off (8px, huly/notion), no shadows except the primary's hover lift ---- */
.btn-yc {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--yc-font-sans); font-weight: 600; font-size: var(--yc-fs-sm); line-height: 1;
  padding: 15px 24px; border-radius: var(--yc-radius-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--yc-dur) var(--yc-ease), border-color var(--yc-dur) var(--yc-ease), color var(--yc-dur) var(--yc-ease), transform var(--yc-dur) var(--yc-ease), box-shadow var(--yc-dur) var(--yc-ease);
}
.btn-yc svg { width: 16px; height: 16px; flex: none; }
.btn-yc-primary { background: var(--yc-text); color: var(--yc-bg); }
.btn-yc-primary:hover { background: var(--yc-blue); color: #fff; transform: translateY(-1px); box-shadow: var(--yc-shadow-blue); }
.btn-yc-accent { background: var(--yc-blue); color: #fff; }
.btn-yc-accent:hover { background: var(--yc-blue-600); color: #fff; transform: translateY(-1px); box-shadow: var(--yc-shadow-blue); }
.btn-yc-ghost { background: transparent; color: var(--yc-text); border-color: var(--yc-line-strong); }
.btn-yc-ghost:hover { border-color: var(--yc-text); background: var(--yc-surface); color: var(--yc-text); }
.btn-yc-wa { background: transparent; color: var(--yc-text); border-color: var(--yc-line-strong); }
.btn-yc-wa svg { color: #25D366; }
.btn-yc-wa:hover { border-color: #25D366; color: var(--yc-text); background: color-mix(in srgb, #25D366 8%, transparent); }
.btn-yc-sm { padding: 11px 18px; font-size: var(--yc-fs-xs); }
.btn-yc-lg { padding: 18px 30px; font-size: var(--yc-fs-base); }
.btn-yc:focus-visible { outline: none; box-shadow: var(--yc-focus); }
.btn-yc .arr { transition: transform var(--yc-dur) var(--yc-ease); }
.btn-yc:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn-yc .arr { transform: scaleX(-1); }
[dir="rtl"] .btn-yc:hover .arr { transform: scaleX(-1) translateX(3px); }
.yc-band--ink .btn-yc-primary { background: #fff; color: var(--yc-ink); }
.yc-band--ink .btn-yc-primary:hover { background: var(--yc-blue); color: #fff; }
.yc-band--ink .btn-yc-ghost, .yc-band--ink .btn-yc-wa { color: #fff; border-color: rgba(255,255,255,.28); }
.yc-band--ink .btn-yc-ghost:hover, .yc-band--ink .btn-yc-wa:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }

/* Text link with arrow */
.yc-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: var(--yc-fs-sm); color: var(--yc-text); }
.yc-link svg { width: 15px; height: 15px; transition: transform var(--yc-dur) var(--yc-ease); }
.yc-link:hover { color: var(--yc-blue); }
.yc-link:hover svg { transform: translateX(3px); }
[dir="rtl"] .yc-link svg { transform: scaleX(-1); }
[dir="rtl"] .yc-link:hover svg { transform: scaleX(-1) translateX(3px); }

/* Focus: one ring, everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--yc-focus); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { border-radius: var(--yc-radius-xs); }
.yc-band--ink :is(a, button, summary, [tabindex]):focus-visible, .yc-footer :is(a, button):focus-visible, .yc-nav.is-ink :is(a, button):focus-visible { --yc-focus: 0 0 0 3px var(--yc-ink), 0 0 0 5px var(--yc-blue-300); }

/* =====================================================================
   HEADER
   ===================================================================== */
.yc-skip { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 3000; background: var(--yc-text); color: var(--yc-bg);
  padding: 12px 18px; border-radius: 0 0 10px 10px; font-weight: 600; font-size: var(--yc-fs-sm); }
.yc-skip:focus { top: 0; color: var(--yc-bg); }

.yc-nav {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--yc-bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--yc-dur) var(--yc-ease), background-color var(--yc-dur-slow) var(--yc-ease);
}
.yc-nav.is-scrolled { border-bottom-color: var(--yc-line); background: color-mix(in srgb, var(--yc-bg) 88%, transparent); }
.yc-nav__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 80px; transition: height var(--yc-dur) var(--yc-ease); }
.yc-nav.is-scrolled .yc-nav__inner { height: 62px; }
.yc-brand { display: inline-flex; align-items: center; margin-inline-end: auto; border-radius: 6px; }
.yc-brand img { height: 30px; width: auto; display: block; transition: height var(--yc-dur) var(--yc-ease); }
.yc-nav.is-scrolled .yc-brand img { height: 26px; }
.yc-brand .logo-dark { display: none; }
:root[data-theme="dark"] .yc-brand .logo-light { display: none; }
:root[data-theme="dark"] .yc-brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .yc-brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .yc-brand .logo-dark { display: block; }
}

/* primary list */
.yc-navlinks { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; position: static; }
.yc-navlinks > li { position: static; }
.yc-navbtn, .yc-navlinks > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: var(--yc-radius-sm);
  background: transparent; border: 0; color: var(--yc-text); font-weight: 500; font-size: var(--yc-fs-sm); cursor: pointer;
  transition: background-color var(--yc-dur-fast) var(--yc-ease), color var(--yc-dur-fast) var(--yc-ease);
}
.yc-navbtn:hover, .yc-navlinks > li > a:hover, .yc-navbtn[aria-expanded="true"] { background: var(--yc-surface-2); color: var(--yc-text); }
.yc-navbtn .caret { width: 11px; height: 11px; opacity: .5; transition: transform var(--yc-dur) var(--yc-ease); }
.yc-navbtn[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* mega panel: anchored to the list, centred; opacity/transform driven by .is-open */
.yc-mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; z-index: 1200;
  width: min(960px, calc(100vw - 40px)); translate: -50% 0;
  background: var(--yc-surface); border: 1px solid var(--yc-line); border-radius: var(--yc-radius-lg);
  box-shadow: var(--yc-shadow-lg); padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--yc-dur) var(--yc-ease), transform var(--yc-dur) var(--yc-ease), visibility var(--yc-dur);
}
[dir="rtl"] .yc-mega { translate: 50% 0; }
.yc-mega::before { content: ""; position: absolute; top: -12px; inset-inline: 0; height: 12px; } /* hover bridge */
.yc-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.yc-mega--feat { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.yc-mega__col { min-width: 0; display: flex; flex-direction: column; }
.yc-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.yc-mega__item { display: flex; align-items: flex-start; gap: 13px; padding: 12px 13px; border-radius: var(--yc-radius); color: var(--yc-text); text-align: start; transition: background-color var(--yc-dur-fast) var(--yc-ease); }
.yc-mega__item:hover, .yc-mega__item:focus-visible { background: var(--yc-surface-2); color: var(--yc-text); }
.yc-mega__item .mi { width: 38px; height: 38px; border-radius: var(--yc-radius-sm); flex: none; display: grid; place-items: center; background: var(--yc-surface-2); color: var(--yc-text); transition: background-color var(--yc-dur-fast), color var(--yc-dur-fast), border-color var(--yc-dur-fast); }
.yc-mega__item:hover .mi { background: var(--yc-text); color: var(--yc-bg); }
.yc-mega__item .mi svg { width: 18px; height: 18px; stroke-width: 1.75; }
.yc-mega__item .mt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yc-mega__item .mt b { font-size: var(--yc-fs-sm); font-weight: 600; line-height: 1.3; }
.yc-mega__item .mt small { font-size: var(--yc-fs-xs); color: var(--yc-text-faint); line-height: 1.45; }
.yc-mega__all { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 13px 6px; border-top: 1px solid var(--yc-line-soft); color: var(--yc-text); font-weight: 600; font-size: var(--yc-fs-sm); }
.yc-mega__all svg { width: 14px; height: 14px; transition: transform var(--yc-dur) var(--yc-ease); }
.yc-mega__all:hover { color: var(--yc-blue); }
.yc-mega__all:hover svg { transform: translateX(3px); }
[dir="rtl"] .yc-mega__all svg { transform: scaleX(-1); }
.yc-mega__feat { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--yc-surface-2); border-radius: var(--yc-radius); }
.yc-mega__feat img { width: 100%; height: 148px; object-fit: cover; object-position: top left; border-radius: var(--yc-radius-sm); background: var(--yc-surface); }
[dir="rtl"] .yc-mega__feat img { object-position: top right; }
.yc-mega__feat b { font-size: var(--yc-fs-sm); line-height: 1.3; margin-top: 4px; color: var(--yc-text); }
.yc-mega__feat p { font-size: var(--yc-fs-xs); color: var(--yc-text-faint); line-height: 1.5; margin: 0; }
.yc-mega__feat > a { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; color: var(--yc-blue); font-weight: 600; font-size: var(--yc-fs-xs); }
[dir="rtl"] .yc-mega__feat > a svg { transform: scaleX(-1); }

/* Solutions panel · per-product featured tile. wwwroot/img/menu/{hospital,education,karyaal,
   managepaisa}.svg are stacked behind the generic solutions tile; hovering or focusing the matching
   product card swaps which one is opaque. Pure CSS (:has() on the panel, no JS, no layout change),
   and a product without a tile of its own simply leaves the default showing. */
.yc-mega__tiles { position: relative; display: block; width: 100%; height: 148px; border-radius: var(--yc-radius-sm); overflow: hidden; background: var(--yc-surface); }
.yc-mega__tiles img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transition: opacity var(--yc-dur-fast) var(--yc-ease); }
.yc-mega__tiles img.is-def { opacity: 1; }
.yc-mega--products:has(.yc-mega__card[data-tile]:hover) .yc-mega__tiles img.is-def,
.yc-mega--products:has(.yc-mega__card[data-tile]:focus-visible) .yc-mega__tiles img.is-def { opacity: 0; }
.yc-mega--products:has(.yc-mega__card[data-tile="hospital"]:hover) .yc-mega__tiles img[data-tile="hospital"],
.yc-mega--products:has(.yc-mega__card[data-tile="hospital"]:focus-visible) .yc-mega__tiles img[data-tile="hospital"],
.yc-mega--products:has(.yc-mega__card[data-tile="education"]:hover) .yc-mega__tiles img[data-tile="education"],
.yc-mega--products:has(.yc-mega__card[data-tile="education"]:focus-visible) .yc-mega__tiles img[data-tile="education"],
.yc-mega--products:has(.yc-mega__card[data-tile="karyaal"]:hover) .yc-mega__tiles img[data-tile="karyaal"],
.yc-mega--products:has(.yc-mega__card[data-tile="karyaal"]:focus-visible) .yc-mega__tiles img[data-tile="karyaal"],
.yc-mega--products:has(.yc-mega__card[data-tile="managepaisa"]:hover) .yc-mega__tiles img[data-tile="managepaisa"],
.yc-mega--products:has(.yc-mega__card[data-tile="managepaisa"]:focus-visible) .yc-mega__tiles img[data-tile="managepaisa"] { opacity: 1; }
html[data-motion="off"] .yc-mega__tiles img { transition: none; }
@media (max-width: 1180px) { .yc-mega--feat { grid-template-columns: minmax(0, 1fr); width: min(680px, calc(100vw - 40px)); } .yc-mega__feat { display: none; } }

/* right-hand actions */
.yc-nav__actions { display: flex; align-items: center; gap: 8px; }
.yc-iconbtn {
  width: 40px; height: 40px; border-radius: var(--yc-radius-pill); border: 1px solid transparent;
  background: transparent; color: var(--yc-text-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--yc-dur-fast), border-color var(--yc-dur-fast), background-color var(--yc-dur-fast);
}
.yc-iconbtn:hover { color: var(--yc-text); background: var(--yc-surface-2); }
.yc-iconbtn svg { width: 19px; height: 19px; }
#themeToggle .i-moon { display: none; }
:root[data-theme="dark"] #themeToggle .i-sun { display: none; }
:root[data-theme="dark"] #themeToggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .i-sun { display: none; }
  :root:not([data-theme="light"]) #themeToggle .i-moon { display: block; }
}
.yc-lang { position: relative; }
.yc-lang > button { gap: 6px; width: auto; padding-inline: 12px 10px; font-size: var(--yc-fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.yc-lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px; z-index: 1300;
  background: var(--yc-surface); border: 1px solid var(--yc-line); border-radius: var(--yc-radius); box-shadow: var(--yc-shadow-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--yc-dur-fast) var(--yc-ease), transform var(--yc-dur-fast) var(--yc-ease), visibility var(--yc-dur-fast);
}
.yc-lang.open .yc-lang__menu { opacity: 1; visibility: visible; transform: none; }
.yc-lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--yc-text-soft); font-size: var(--yc-fs-sm); }
.yc-lang__menu a:hover { background: var(--yc-surface-2); color: var(--yc-text); }
.yc-lang__menu a.active { color: var(--yc-text); font-weight: 600; }
.yc-lang__menu a.active::after { content: "✓"; color: var(--yc-blue); font-size: 12px; }
.yc-lang__menu a[lang="fa"], .yc-lang__menu a[lang="ps"] { font-family: var(--yc-font-rtl); }
.yc-burger { display: none; }
.yc-burger .i-x { display: none; }
.yc-burger[aria-expanded="true"] .i-x { display: block; }
.yc-burger[aria-expanded="true"] .i-bars { display: none; }
.yc-navlinks > li.yc-mcta { display: none; }

/* ---- Mobile: the same list becomes a drawer with accordion groups ---- */
@media (max-width: 960px) {
  /* backdrop-filter makes the header the containing block of the off-canvas drawer, whose box
     widened the document by 1-12px (a sideways wiggle on touch). Clip the x axis only. */
  .yc-nav { overflow-x: clip; overflow-y: visible; }
  .yc-nav__inner { height: 66px; gap: 12px; }
  .yc-nav.is-scrolled .yc-nav__inner { height: 60px; }
  .yc-burger { display: inline-flex; }
  .yc-nav__actions .desktop-only { display: none; }
  .yc-navlinks {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(420px, 100vw); z-index: 1500;
    flex-direction: column; align-items: stretch; gap: 0; padding: 82px 20px 32px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--yc-bg); border-inline-start: 1px solid var(--yc-line); box-shadow: var(--yc-shadow-lg);
    transform: translateX(100%); visibility: hidden;
    /* height collapses to 0 while closed: an off-screen fixed element otherwise widens the
       document's scrollable area in Chrome, giving the whole page a horizontal scrollbar */
    height: 0; overflow: hidden; padding-block: 0;
    transition: transform var(--yc-dur-slow) var(--yc-ease-out), visibility var(--yc-dur-slow), height 0s var(--yc-dur-slow), padding 0s var(--yc-dur-slow);
  }
  [dir="rtl"] .yc-navlinks { transform: translateX(-100%); }
  .yc-navlinks.is-open { transform: none; visibility: visible; height: 100dvh; overflow-y: auto; padding: 82px 20px 32px; transition-delay: 0s; }
  .yc-nav.menu-open { z-index: 1600; }
  .yc-nav.menu-open .yc-nav__actions > :not(.yc-burger) { visibility: hidden; }
  .yc-navlinks > li { border-bottom: 1px solid var(--yc-line-soft); }
  .yc-navlinks > li:last-child { border-bottom: 0; }
  .yc-navbtn, .yc-navlinks > li > a { width: 100%; justify-content: space-between; padding: 18px 4px; border-radius: 0; font-size: var(--yc-fs-lg); font-weight: 600; font-family: var(--yc-font-head); }
  [dir="rtl"] .yc-navbtn, [dir="rtl"] .yc-navlinks > li > a { font-family: var(--yc-font-rtl); }
  .yc-navbtn:hover, .yc-navlinks > li > a:hover, .yc-navbtn[aria-expanded="true"] { background: transparent; }
  .yc-navbtn .caret { width: 16px; height: 16px; }
  .yc-mega { position: static; translate: 0; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 14px; background: transparent;
    display: none; opacity: 1; visibility: visible; transition: none; }
  /* [dir=rtl] .yc-mega (translate: 50%) and .yc-mega--products (fixed width) both outrank the
     line above by specificity / source order; without these the RTL drawer panel sat half off-screen. */
  [dir="rtl"] .yc-mega, .yc-mega--products { translate: 0; width: auto; }
  .yc-mega.is-open { display: block; }
  .yc-mega--feat { display: none; }
  .yc-mega--feat.is-open { display: block; }
  .yc-mega__feat { display: none; }
  .yc-mega__grid { grid-template-columns: 1fr; gap: 0; }
  .yc-mega__item { padding: 10px 4px; border-radius: 10px; }
  .yc-mega__all { padding: 12px 4px 2px; }
  .yc-navlinks > li.yc-mcta { display: block; border: 0; margin-top: 22px; }
  .yc-navlinks > li.yc-mcta a { justify-content: center; }
  .yc-drawer-meta { display: grid; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--yc-line); font-size: var(--yc-fs-sm); color: var(--yc-text-soft); }
  /* these are li > a too, so the space-between rule above would push the label to the far edge */
  .yc-drawer-meta a, .yc-navlinks > li.yc-drawer-meta > a { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 0; width: auto; font: inherit; color: var(--yc-text-soft); }
  .yc-drawer-meta svg { width: 16px; height: 16px; }
  .yc-scrim { position: fixed; inset: 0; z-index: 1400; background: rgba(10,14,22,.45); opacity: 0; visibility: hidden; transition: opacity var(--yc-dur) var(--yc-ease), visibility var(--yc-dur); }
  .yc-scrim.is-open { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 961px) { .yc-drawer-meta, .yc-scrim { display: none; } }

/* =====================================================================
   PAGE HEADER + BREADCRUMB
   ===================================================================== */
.yc-pagehead { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 52px); }
.yc-pagehead::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--yc-line); }
.yc-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 72px); align-items: end; }
.yc-pagehead h1 { margin: 0 0 14px; max-width: 16ch; }
.yc-pagehead p { margin: 0; font-size: var(--yc-fs-lg); color: var(--yc-text-soft); max-width: 52ch; }
.yc-pagehead__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 6px; }
.yc-pagehead__count { font-family: var(--yc-font-head); font-weight: 800; font-size: var(--yc-fs-3xl); line-height: 1; letter-spacing: -.03em; }
.yc-pagehead__count small { display: block; font-family: var(--yc-font-sans); font-weight: 500; font-size: var(--yc-fs-xs); color: var(--yc-text-faint); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
@media (max-width: 860px) { .yc-pagehead__grid { grid-template-columns: 1fr; } .yc-pagehead__side { padding-top: 6px; } }
.yc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--yc-fs-xs); color: var(--yc-text-faint); margin: 0 0 clamp(20px, 3vw, 36px); padding: 0; list-style: none; }
.yc-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.yc-breadcrumb li + li::before { content: "/"; color: var(--yc-line-strong); }
.yc-breadcrumb a { color: var(--yc-text-faint); }
.yc-breadcrumb a:hover { color: var(--yc-text); }
.yc-breadcrumb [aria-current] { color: var(--yc-text-soft); }

/* =====================================================================
   CARD GRID (the ledger .yc-card component was retired; only the grid remains)
   ===================================================================== */
.yc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.4vw, 20px); counter-reset: yccard; }

/* =====================================================================
   PROSE
   ===================================================================== */
.yc-prose { max-width: var(--yc-measure); font-size: var(--yc-fs-lg); color: var(--yc-text-soft); line-height: 1.75; }
.yc-prose > :first-child { margin-top: 0; }
.yc-prose h2 { font-size: var(--yc-fs-2xl); margin: 1.6em 0 .5em; color: var(--yc-text); }
.yc-prose h3 { font-size: var(--yc-fs-xl); margin: 1.3em 0 .4em; color: var(--yc-text); }
.yc-prose ul, .yc-prose ol { padding-inline-start: 22px; }
.yc-prose li { margin-bottom: 8px; }
.yc-prose img { border-radius: var(--yc-radius); }
.yc-prose blockquote { margin: 1.5em 0; padding-inline-start: 20px; border-inline-start: 2px solid var(--yc-blue); color: var(--yc-text); font-style: italic; }
.yc-prose a { text-decoration: underline; text-underline-offset: 3px; }
.yc-prose--lg p:first-of-type { font-size: var(--yc-fs-xl); color: var(--yc-text); line-height: 1.5; }

/* =====================================================================
   FORMS
   ===================================================================== */
.yc-form { display: grid; gap: 18px; }
.yc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .yc-form__row { grid-template-columns: 1fr; } }
.yc-field { display: grid; gap: 7px; }
.yc-field label { font-size: var(--yc-fs-sm); font-weight: 600; color: var(--yc-text); }
.yc-field label .opt { color: var(--yc-text-faint); font-weight: 400; }
.yc-field input, .yc-field textarea, .yc-field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--yc-text);
  background: var(--yc-surface); border: 1px solid var(--yc-line-strong); border-radius: var(--yc-radius);
  transition: border-color var(--yc-dur-fast) var(--yc-ease), box-shadow var(--yc-dur-fast) var(--yc-ease);
}
.yc-field input::placeholder, .yc-field textarea::placeholder { color: var(--yc-text-faint); }
.yc-field input:focus, .yc-field textarea:focus, .yc-field select:focus { outline: none; border-color: var(--yc-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yc-blue) 18%, transparent); }
.yc-field textarea { min-height: 150px; resize: vertical; }
.yc-field .field-validation-error, .text-danger { color: var(--yc-danger); font-size: var(--yc-fs-xs); }
.yc-field input.input-validation-error, .yc-field textarea.input-validation-error { border-color: var(--yc-danger); }
.yc-alert { padding: 14px 18px; border-radius: var(--yc-radius); font-size: var(--yc-fs-sm); border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.yc-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.yc-alert-success { background: var(--yc-green-tint); color: var(--yc-green); border-color: color-mix(in srgb, var(--yc-green) 35%, transparent); }
.yc-alert-danger { background: color-mix(in srgb, var(--yc-danger) 10%, transparent); color: var(--yc-danger); border-color: color-mix(in srgb, var(--yc-danger) 35%, transparent); }
.yc-form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.yc-form__foot small { color: var(--yc-text-faint); font-size: var(--yc-fs-xs); }
.yc-honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   FOOTER — ink block with ruled columns
   ===================================================================== */
.yc-footer { background: var(--yc-ink); color: var(--yc-ink-soft); padding: clamp(56px, 7vw, 96px) 0 148px; position: relative; } /* bottom: room under the legal row for the fixed chat / WhatsApp / top buttons */
.yc-footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, .75fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--yc-ink-line); }
.yc-footer h4, .yc-footer .yc-footer__h { color: #fff; font-family: var(--yc-font-sans); font-size: var(--yc-fs-2xs); text-transform: uppercase; letter-spacing: var(--yc-track-label); margin: 0 0 18px; font-weight: 600; }
[dir="rtl"] .yc-footer h4, [dir="rtl"] .yc-footer .yc-footer__h { text-transform: none; font-size: var(--yc-fs-xs); }
.yc-footer__col a { color: var(--yc-ink-soft); font-size: var(--yc-fs-sm); display: block; padding: 5px 0; }
.yc-footer__col a:hover { color: #fff; }
.yc-footer__brand img { height: 28px; margin-bottom: 20px; }
.yc-footer__brand p { color: var(--yc-ink-soft); font-size: var(--yc-fs-sm); max-width: 36ch; margin-bottom: 22px; }
.yc-footer__contact { display: grid; gap: 6px; }
.yc-footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: var(--yc-fs-sm); }
.yc-footer__contact a:hover { color: var(--yc-blue-300); }
.yc-footer__contact svg { width: 15px; height: 15px; color: var(--yc-ink-soft); }

/* Social row under the footer contact list. Icon-only, so each link carries an aria-label and a
   44px hit area -- the WCAG target-size minimum, which a bare 18px glyph would fail. */
.yc-footer__social { display: flex; gap: 8px; margin-top: 14px; }
.yc-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); color: var(--yc-ink-soft);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.yc-footer__social a:hover { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.yc-footer__social a:focus-visible { outline: 2px solid var(--yc-blue-300); outline-offset: 2px; }
.yc-footer__social svg { width: 18px; height: 18px; }
.yc-footer__office { margin-bottom: 16px; }
.yc-footer__office b { display: block; color: #fff; font-size: var(--yc-fs-sm); font-weight: 600; margin-bottom: 3px; }
.yc-footer__office span { display: block; color: var(--yc-ink-soft); font-size: var(--yc-fs-xs); line-height: 1.55; }
.yc-footer__big { font-family: var(--yc-font-head); font-weight: 800; font-size: clamp(56px, 12vw, 190px); line-height: .9; letter-spacing: -.05em; color: rgba(255,255,255,.05); user-select: none; pointer-events: none; margin: clamp(24px, 4vw, 48px) 0 0; white-space: nowrap; overflow: hidden; direction: ltr; text-align: start; }
/* `direction: ltr` keeps the latin wordmark reading correctly, but it also pins `start` to the left,
   so on an RTL page the watermark sat opposite every other footer block. */
[dir="rtl"] .yc-footer__big { text-align: end; }
.yc-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: var(--yc-fs-xs); color: var(--yc-ink-soft); }
.yc-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.yc-footer__legal a { color: var(--yc-ink-soft); }
.yc-footer__legal a:hover { color: #fff; }
/* Motion switch: a text button that reads as one of the legal links, not as a control.
   aria-pressed carries the state; the label changes with it (site.js). */
.yc-footer__motion { appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: var(--yc-ink-soft); text-align: start; }
.yc-footer__motion:hover { color: #fff; }
.yc-footer__motion[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.yc-footer__motion:focus-visible { outline: 2px solid var(--yc-blue); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 1080px) { .yc-footer__top { grid-template-columns: 1fr 1fr 1fr; } .yc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .yc-footer__top { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   FLOATING: WhatsApp contact button
   ===================================================================== */
.yc-whatsapp {
  position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform var(--yc-dur) var(--yc-ease);
}
.yc-whatsapp:hover { transform: scale(1.06); color: #fff; }
.yc-whatsapp svg { width: 28px; height: 28px; }

@media (max-width: 480px) { .yc-whatsapp { inset-inline-end: 16px; inset-block-end: 16px; } }

/* =====================================================================
   STICKY CTA (detail pages): appears after the hero scrolls away
   ===================================================================== */
.yc-sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 890; pointer-events: none;
  transform: translateY(110%); transition: transform var(--yc-dur-slow) var(--yc-ease-out);
}
.yc-sticky.is-on { transform: none; }
.yc-sticky__in {
  pointer-events: auto; margin: 0 auto 16px; width: min(760px, calc(100% - 140px));
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px;
  background: color-mix(in srgb, var(--yc-text) 96%, transparent); color: var(--yc-bg); border-radius: var(--yc-radius);
  box-shadow: var(--yc-shadow-lg); backdrop-filter: blur(10px);
}
[dir="rtl"] .yc-sticky__in { padding: 10px 20px 10px 10px; }
.yc-sticky__in b { font-family: var(--yc-font-head); font-weight: 700; font-size: var(--yc-fs-sm); margin-inline-end: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .yc-sticky__in b { font-family: var(--yc-font-rtl); }
/* The bar's ground is var(--yc-text), so it inverts with the theme: near-black on the light theme
   and near-white on the dark one. Its contents must invert with it. Hard-coded #fff used to leave
   the WhatsApp label white-on-white — effectively invisible — on every dark-theme page. */
.yc-sticky__in .btn-yc-primary { background: var(--yc-bg); color: var(--yc-text); }
.yc-sticky__in .btn-yc-primary:hover { background: var(--yc-blue); color: #fff; box-shadow: none; transform: none; }
.yc-sticky__in .btn-yc-wa { color: var(--yc-bg); border-color: color-mix(in srgb, var(--yc-bg) 32%, transparent); }
.yc-sticky__in .btn-yc-wa:hover { border-color: #25D366; color: var(--yc-bg); background: color-mix(in srgb, #25D366 14%, transparent); }
.yc-sticky__in .btn-yc-wa svg { color: #25D366; }
@media (max-width: 700px) { .yc-sticky__in { width: calc(100% - 24px); margin-bottom: 84px; padding: 8px 8px 8px 16px; } .yc-sticky__in b { display: none; } .yc-sticky__in .btn-yc { flex: 1; } }

/* =====================================================================
   REVEAL (fail-safe: visible without JS; hidden only when JS is active)
   ===================================================================== */
.yc-reveal { opacity: 1; transform: none; }
html.has-js .yc-reveal { opacity: 0; transform: translateY(var(--yc-reveal-y)); transition: opacity var(--yc-dur-slow) var(--yc-ease-out), transform var(--yc-dur-slow) var(--yc-ease-out); transition-delay: var(--d, 0ms); }
html.has-js .yc-reveal.is-visible { opacity: 1; transform: none; }
html[data-motion="off"].has-js .yc-reveal { opacity: 1; transform: none; transition: none; }

/* ---- misc shared ---- */
.yc-empty { text-align: center; padding: 72px 20px; color: var(--yc-text-faint); border: 1px dashed var(--yc-line-strong); border-radius: var(--yc-radius-lg); }
.yc-empty svg { width: 44px; height: 44px; margin-bottom: 14px; opacity: .5; }
.yc-empty h3 { color: var(--yc-text); }
.yc-pagehead__note { display: block; font-size: var(--yc-fs-sm); color: var(--yc-text-soft); }
.yc-blogcard { position: relative; display: flex; flex-direction: column; background: var(--yc-surface); border: 1px solid var(--yc-line); border-radius: var(--yc-radius-lg); overflow: hidden; transition: transform var(--yc-dur) var(--yc-ease), box-shadow var(--yc-dur) var(--yc-ease), border-color var(--yc-dur); }
.yc-blogcard:hover { transform: translateY(-3px); box-shadow: var(--yc-shadow); border-color: var(--yc-line-strong); }
.yc-blogcard__cover { aspect-ratio: 16 / 9; background: var(--yc-surface-2); overflow: hidden; }
.yc-blogcard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yc-blogcard__cover--ph { display: grid; place-items: center; color: var(--yc-line-strong); background: repeating-linear-gradient(135deg, var(--yc-surface-2) 0 10px, var(--yc-surface) 10px 20px); }
.yc-blogcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.yc-blogcard__meta { display: flex; align-items: center; gap: 10px; font-size: var(--yc-fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--yc-text-faint); margin-bottom: 12px; font-weight: 600; }
[dir="rtl"] .yc-blogcard__meta { letter-spacing: 0; text-transform: none; font-size: var(--yc-fs-xs); }
.yc-blogcard__meta .cat { color: var(--yc-blue); }
.yc-blogcard h3 { font-size: var(--yc-fs-xl); margin-bottom: 8px; }
.yc-blogcard h3 a { color: var(--yc-text); }
.yc-blogcard h3 a::after { content: ""; position: absolute; inset: 0; }
.yc-blogcard p { color: var(--yc-text-soft); font-size: var(--yc-fs-sm); margin: 0 0 18px; }
.yc-blogcard .yc-link { margin-top: auto; }

/* =====================================================================
   SECTION COMPONENTS (Views/Shared/Sections) — rules that used to be inline
   ===================================================================== */
.yc-steps { list-style: none; margin: 0; padding: 0; }
.yc-steps--inline { margin-top: 20px; }
.yc-quote2 { margin: 0; }
.yc-quote2 blockquote { margin: 0; display: contents; }
.yc-custom { margin-top: clamp(24px, 3vw, 40px); }
.yc-contact__form .yc-alert { margin-bottom: 20px; }
.yc-head2--bare { margin-bottom: clamp(20px, 2.5vw, 36px); }
.yc-error__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* =====================================================================
   RESPONSIVE + TOUCH AUDIT (pass 1)
   Targets: 360 / 390 / 768 / 1024 / 1280 / 1440 / 1920. No horizontal overflow,
   tap targets >= 44px on coarse pointers, fluid containers.
   ===================================================================== */
/* Round controls: 44px minimum everywhere (WCAG 2.5.8) */
.yc-iconbtn { width: 44px; height: 44px; }
.yc-sbtn { width: 44px; height: 44px; }
.yc-burger { min-width: 44px; min-height: 44px; }
.yc-systems__tab { min-height: 44px; }
.yc-faq__item summary { min-height: 44px; }

/* Text links that are the only route somewhere grow a tap-height box on touch screens */
@media (pointer: coarse) {
  .yc-footer__col a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .yc-footer__legal a, .yc-footer__legal span, .yc-footer__motion { display: inline-flex; align-items: center; min-height: 44px; }
  .yc-footer__contact a { min-height: 44px; }
  .yc-link, .yc-brand, .yc-breadcrumbs a, .yc-doc__toc a, .yc-co__aside .s a, .yc-quote2 .who a { display: inline-flex; align-items: center; min-height: 44px; }
  .yc-doc__anchor { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; opacity: 1; }
  .yc-lang__menu a { min-height: 44px; }
  .yc-mega__item, .yc-mega__all { min-height: 44px; }
  .yc-doc__toc a { min-height: 44px; align-items: center; }
  .yc-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
  .yc-related a { min-height: 56px; }
  .yc-hero__cta .btn-yc, .yc-cta2__acts .btn-yc, .yc-prodhead__cta .btn-yc { min-height: 48px; }
}

/* Overflow guards for editor-authored HTML (blog/product bodies) */
.yc-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.yc-prose pre { max-width: 100%; overflow-x: auto; }
.yc-prose iframe, .yc-prose video { max-width: 100%; }
.yc-container, .yc-band, .yc-pagehead { min-width: 0; }
.yc-cta2__acts, .yc-hero__cta, .yc-systems__acts { min-width: 0; }
.yc-cta2__acts .btn-yc { max-width: 100%; }

/* 360–390: tighter hero figures and single-column CTAs so nothing wraps mid-word */
@media (max-width: 420px) {
  .yc-hero__stats { gap: 16px 12px; }
  .yc-hero__stats b { font-size: 24px; }
  .yc-hero__cta .btn-yc, .yc-cta2__acts .btn-yc, .yc-prodhead__cta .btn-yc { width: 100%; justify-content: center; }
  .yc-why__cta { flex-direction: column; align-items: stretch; }
  .yc-why__cta .btn-yc { justify-content: center; }
  .yc-metrics { gap: 20px 12px; }
  .yc-pagehead__count { font-size: var(--yc-fs-2xl); }
  .yc-sticky__in .btn-yc { padding-inline: 12px; }
}

/* 1920+: the container stops at 1440 by token; widen the gutter so bands breathe */
@media (min-width: 1920px) {
  :root { --yc-gutter: 72px; }
}

/* =====================================================================
   PASS 4 · CHROME — ink-aware header, mega cards, language menu, 3-state
   theme toggle, burger morph, drawer language row, quiet footer, view
   transitions, floating form fields, reading progress.
   ===================================================================== */

/* Anchors land under the sticky bar, not behind it */
html { scroll-padding-top: 92px; }
[id] { scroll-margin-top: 92px; }

/* ---- Cross-page cross-fade (progressive: browsers without the API ignore all of it) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--yc-ease-in) both yc-vt-out; }
::view-transition-new(root) { animation: 260ms var(--yc-ease-out) both yc-vt-in; }
@keyframes yc-vt-out { to { opacity: 0; } }
@keyframes yc-vt-in { from { opacity: 0; transform: translateY(6px); } }
.yc-nav { view-transition-name: yc-header; }
::view-transition-old(yc-header), ::view-transition-new(yc-header) { animation: none; mix-blend-mode: normal; }
:root[data-motion="off"]::view-transition-group(*), :root[data-motion="off"]::view-transition-old(*), :root[data-motion="off"]::view-transition-new(*) { animation: none !important; }

/* ---- Header over an ink hero: transparent at the top, ink glass once scrolled ---- */
/* The sticky bar occupies flow space; when the page opens on an ink hero, pull the hero up under
   it so the transparent bar sits on ink, not on paper. (:has is progressive: without it the bar is
   simply solid, which is the old behaviour.) */
:root { --yc-navh: 80px; }
@media (max-width: 960px) { :root { --yc-navh: 66px; } }
body:has(main > .yc-band--ink:first-child) .yc-nav { margin-bottom: calc(-1 * var(--yc-navh)); }
main > .yc-band--ink:first-child { border-top: var(--yc-navh) solid transparent; }
/* every ink hero's backdrop layer (home .yc-hero__bg, products/services/about *__bg) reaches up under the bar */
main > .yc-band--ink:first-child > [class*="__bg"] { inset-block-start: calc(-1 * var(--yc-navh)); }
.yc-nav.is-ink { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.yc-nav.is-ink.is-scrolled { background: color-mix(in srgb, var(--yc-ink) 72%, transparent); border-bottom-color: var(--yc-ink-line); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.yc-nav.is-ink .yc-brand .logo-light { display: none; }
.yc-nav.is-ink .yc-brand .logo-dark { display: block; }
.yc-nav.is-ink .yc-navbtn, .yc-nav.is-ink .yc-navlinks > li > a, .yc-nav.is-ink .yc-iconbtn { color: var(--yc-ink-fg); }
.yc-nav.is-ink .yc-navbtn:hover, .yc-nav.is-ink .yc-navbtn[aria-expanded="true"], .yc-nav.is-ink .yc-iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.yc-nav.is-ink .yc-nav__actions .btn-yc-primary { background: #fff; color: var(--yc-ink); }
.yc-nav.is-ink .yc-nav__actions .btn-yc-primary:hover { background: var(--yc-blue); color: #fff; }
.yc-nav.is-ink .yc-lang > button { color: var(--yc-ink-fg); }
@media (max-width: 960px) {
  .yc-nav.is-ink .yc-navlinks .yc-navbtn, .yc-nav.is-ink .yc-navlinks > li > a { color: var(--yc-text); }
  /* the drawer's quote pill is ink-on-paper; the rule above made it ink-on-ink over an ink hero (an empty black pill) */
  .yc-nav.is-ink .yc-navlinks > li.yc-mcta > a { color: var(--yc-bg); }
  .yc-nav.is-ink .yc-navlinks > li.yc-mcta > a:hover { color: #fff; }
}

/* ---- Mega panel polish: glow edge, product cards with mini screenshots ---- */
.yc-mega::after { content: ""; position: absolute; inset-inline: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--yc-blue) 70%, transparent), transparent); pointer-events: none; }
.yc-mega--products { width: min(1040px, calc(100vw - 40px)); }
.yc-mega__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.yc-mega__card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--yc-radius); color: var(--yc-text); transition: background-color var(--yc-dur-fast) var(--yc-ease); }
.yc-mega__card:hover, .yc-mega__card:focus-visible { background: var(--yc-surface-2); color: var(--yc-text); }
/* 72×48 tile holding a line illustration (Illustrations/_Illo*, 16:10) or, failing that, the product icon */
.yc-mega__art { display: grid; place-items: center; width: 72px; height: 48px; border-radius: var(--yc-radius-sm); background: var(--yc-surface-2); overflow: hidden; color: var(--yc-text-soft); transition: background-color var(--yc-dur-fast) var(--yc-ease); }
.yc-mega__card:hover .yc-mega__art { background: var(--yc-surface); }
.yc-mega__art .yc-illo { width: 64px; }
.yc-mega__art > svg { width: 20px; height: 20px; }
.yc-mega__card .mt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yc-mega__card .mt b { display: block; font-size: var(--yc-fs-sm); font-weight: 600; line-height: 1.3; }
.yc-mega__card .mt small { font-size: var(--yc-fs-xs); color: var(--yc-text-faint); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The company aside is the same quiet surface as the other panels' asides — one language. */
.yc-mega__hours { display: grid; gap: 0; margin-top: 4px; }
.yc-mega__hours > div { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-items: center; font-size: var(--yc-fs-xs); color: var(--yc-text-faint); padding: 10px 0; border-top: 1px solid var(--yc-line); }
.yc-mega__hours > div > b { color: var(--yc-text); font-weight: 600; font-size: var(--yc-fs-sm); }
.yc-mega__hours > div > a { color: var(--yc-text-soft); font-variant-numeric: tabular-nums; justify-self: start; }
.yc-mega__hours > div > a:hover { color: var(--yc-text); }
@media (max-width: 1180px) { .yc-mega--products { width: min(760px, calc(100vw - 40px)); } .yc-mega--company .yc-mega__feat--hours { display: none; } }
@media (max-width: 960px) {
  .yc-mega__cards { grid-template-columns: 1fr; gap: 0; }
  .yc-mega__card { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 8px 4px; border-radius: var(--yc-radius-sm); }
  .yc-mega__art { width: 56px; height: 40px; }
  .yc-mega__art .yc-illo { width: 50px; }
  .yc-mega__card .mt small { -webkit-line-clamp: 1; }
  .yc-mega::after { display: none; }
}

/* ---- Language menu: native names + English subtitle, radio semantics ---- */
.yc-lang__menu { min-width: 200px; }
.yc-lang__menu a { padding: 9px 12px; }
.yc-lang__menu a > span { display: flex; flex-direction: column; gap: 1px; }
.yc-lang__menu a > span b { font-weight: 500; color: var(--yc-text); font-size: var(--yc-fs-sm); }
.yc-lang__menu a.active > span b { font-weight: 600; }
.yc-lang__menu a > span small { font-size: var(--yc-fs-2xs); color: var(--yc-text-faint); letter-spacing: .04em; font-family: var(--yc-font-sans); }
.yc-lang__menu a[lang="fa"] > span b, .yc-lang__menu a[lang="ps"] > span b { font-family: var(--yc-font-rtl); }
.yc-lang > button > span[lang="fa"], .yc-lang > button > span[lang="ps"] { font-family: var(--yc-font-rtl); text-transform: none; letter-spacing: 0; font-size: var(--yc-fs-sm); }

/* ---- Theme toggle: three icons, one visible, morphing by rotate + scale ---- */
.yc-theme { position: relative; }
.yc-theme svg { position: absolute; inset: 0; margin: auto; transition: transform var(--yc-dur-slow) var(--yc-ease-out), opacity var(--yc-dur) var(--yc-ease); opacity: 0; transform: rotate(-90deg) scale(.5); }
.yc-theme .i-sys { opacity: 1; transform: none; }
#themeToggle .i-moon { display: block; }
:root[data-theme="light"] .yc-theme .i-sys, :root[data-theme="dark"] .yc-theme .i-sys { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="light"] .yc-theme .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .yc-theme .i-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] #themeToggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .i-sun { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .yc-theme .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
}

/* ---- Burger: three bars morph into an X ---- */
.yc-burger .i-bars path { transform-origin: 12px 12px; transition: transform var(--yc-dur) var(--yc-ease), opacity var(--yc-dur-fast); }
.yc-burger[aria-expanded="true"] .i-bars { display: block; }
.yc-burger[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.yc-burger[aria-expanded="true"] .b2 { opacity: 0; transform: scaleX(.2); }
.yc-burger[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }

/* ---- Drawer: language row + bigger targets ---- */
@media (max-width: 960px) {
  .yc-drawer-meta__lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: var(--yc-radius); background: var(--yc-surface-2); }
  .yc-drawer-meta__lang a { display: inline-flex !important; align-items: center; justify-content: center; min-height: 42px; border-radius: var(--yc-radius-sm); font-weight: 500; color: var(--yc-text-soft); font-size: var(--yc-fs-sm); }
  .yc-drawer-meta__lang a.is-on { background: var(--yc-surface); color: var(--yc-text); font-weight: 600; box-shadow: var(--yc-shadow-sm); }
  .yc-drawer-meta__lang a[lang="fa"], .yc-drawer-meta__lang a[lang="ps"] { font-family: var(--yc-font-rtl); }
  .yc-drawer-meta > a { min-height: 44px; }
  .yc-navlinks.is-open { padding-top: 90px; }
  .yc-navlinks > li.yc-mcta > a { min-height: 54px; background: var(--yc-text); color: var(--yc-bg); border-radius: var(--yc-radius-sm); justify-content: center; font-family: var(--yc-font-sans); font-size: var(--yc-fs-base); padding: 16px 24px; }
  .yc-navlinks > li.yc-mcta > a:hover { background: var(--yc-blue); color: #fff; }
}
@media (min-width: 961px) { .yc-drawer-meta__lang { display: none; } }

/* ---- Footer: quieter, ruled offices column, legal row with the made-in line ---- */
.yc-footer { padding-top: clamp(48px, 6vw, 80px); }
.yc-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--yc-blue-300) 38%, transparent) 50%, transparent); }
.yc-footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)) minmax(0, 1.1fr); }
.yc-footer__office a { display: inline-block; color: var(--yc-ink-soft); font-size: var(--yc-fs-xs); margin-top: 4px; font-variant-numeric: tabular-nums; }
.yc-footer__office a:hover { color: #fff; }
.yc-footer__hours { display: inline-flex; align-items: center; gap: 8px; color: var(--yc-ink-soft); font-size: var(--yc-fs-xs); margin-top: 4px; }
.yc-footer__hours svg { width: 14px; height: 14px; }
.yc-footer__copy { display: flex; flex-direction: column; gap: 6px; }
.yc-footer__made { display: inline-flex; align-items: center; gap: 8px; color: var(--yc-ink-soft); }
.yc-footer__made svg { width: 14px; height: 14px; }
.yc-footer__langs { display: inline-flex; gap: 12px; }
.yc-footer__langs a.is-on { color: #fff; font-weight: 600; }
.yc-footer__langs a[lang="fa"], .yc-footer__langs a[lang="ps"] { font-family: var(--yc-font-rtl); }
@media (max-width: 1080px) { .yc-footer__top { grid-template-columns: 1fr 1fr 1fr; } .yc-footer__col--offices { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } .yc-footer__col--offices > .yc-footer__h, .yc-footer__col--offices .yc-footer__hours { grid-column: 1 / -1; } }
@media (max-width: 600px) { .yc-footer__top { grid-template-columns: 1fr 1fr; } .yc-footer__col--offices { grid-template-columns: 1fr; } .yc-footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---- Floating-label fields (contact) ---- */
.yc-field--float { position: relative; gap: 0; }
.yc-field--float input, .yc-field--float textarea { padding: 26px 44px 10px 16px; }
[dir="rtl"] .yc-field--float input, [dir="rtl"] .yc-field--float textarea { padding: 26px 16px 10px 44px; }
.yc-field--float label { position: absolute; inset-inline-start: 16px; top: 19px; font-size: var(--yc-fs-sm); font-weight: 500; color: var(--yc-text-faint); pointer-events: none; transform-origin: 0 0; transition: transform var(--yc-dur) var(--yc-ease), color var(--yc-dur) var(--yc-ease); line-height: 1; }
[dir="rtl"] .yc-field--float label { transform-origin: 100% 0; }
.yc-field--float input::placeholder, .yc-field--float textarea::placeholder { color: transparent; transition: color var(--yc-dur-fast); }
.yc-field--float input:focus::placeholder, .yc-field--float textarea:focus::placeholder { color: var(--yc-text-faint); }
.yc-field--float input:focus ~ label, .yc-field--float input:not(:placeholder-shown) ~ label,
.yc-field--float textarea:focus ~ label, .yc-field--float textarea:not(:placeholder-shown) ~ label { transform: translateY(-11px) scale(.78); color: var(--yc-text-soft); font-weight: 600; }
.yc-field--float input:focus ~ label, .yc-field--float textarea:focus ~ label { color: var(--yc-blue); }
.yc-field--float textarea { min-height: 170px; }
.yc-field__ok { position: absolute; inset-inline-end: 14px; top: 20px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--yc-green); color: #fff; opacity: 0; transform: scale(.4); transition: opacity var(--yc-dur) var(--yc-ease), transform var(--yc-dur) var(--yc-ease-out); }
.yc-field__ok svg { width: 12px; height: 12px; }
.yc-field.is-valid .yc-field__ok { opacity: 1; transform: none; }
.yc-field.is-valid input, .yc-field.is-valid textarea { border-color: color-mix(in srgb, var(--yc-green) 55%, var(--yc-line-strong)); }
.yc-field.is-invalid input, .yc-field.is-invalid textarea { border-color: var(--yc-danger); }
.yc-field.is-invalid input:focus, .yc-field.is-invalid textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--yc-danger) 16%, transparent); }
.yc-field.is-invalid label { color: var(--yc-danger) !important; }
.yc-field__msg { display: block; font-size: var(--yc-fs-xs); color: var(--yc-danger); margin-top: 6px; opacity: 0; transform: translateY(-3px); transition: opacity var(--yc-dur-fast), transform var(--yc-dur-fast); }
.yc-field__msg:empty { margin: 0; }
.yc-field.is-invalid .yc-field__msg { opacity: 1; transform: none; }
.yc-form--float .yc-form__foot { margin-top: 4px; }

/* ---- Reading progress bar (article) ---- */
.yc-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 1001; pointer-events: none; }
.yc-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--yc-blue), var(--yc-green)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .08s linear; }
[dir="rtl"] .yc-progress i { transform-origin: 100% 50%; }
.yc-toc__lbl { display: block; font-size: var(--yc-fs-2xs); font-weight: 600; letter-spacing: var(--yc-track-label); text-transform: uppercase; color: var(--yc-text-faint); margin-bottom: 12px; }
[dir="rtl"] .yc-toc__lbl { letter-spacing: 0; text-transform: none; font-size: var(--yc-fs-xs); }

/* =====================================================================
   PRINT — paper, no chrome, links spelled out
   ===================================================================== */
@media print {
  :root { --yc-bg: #fff; --yc-surface: #fff; --yc-text: #000; --yc-text-soft: #222; --yc-line: #bbb; }
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #000; }
  .yc-nav, .yc-scrim, .yc-whatsapp, .yc-totop, .yc-toast, .yc-sticky, .yc-skip, .yc-footer__big, .yk3d canvas, canvas { display: none !important; }
  main, .yc-band, section { content-visibility: visible !important; }
  .yc-band--ink, .yc-footer { background: #fff !important; color: #000 !important; }
  .yc-band--ink h2, .yc-band--ink h3, .yc-footer .yc-footer__h, .yc-footer a, .yc-footer__office b { color: #000 !important; }
  .yc-footer { padding-bottom: 24px; }
  html.has-js .yc-reveal, html.has-js .yc-reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; translate: none !important; }
  a[href^="http"]:not([href*="yakclick.com"])::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  .yc-container { max-width: none; padding-inline: 0; }
}

/* ---- Bidi: do NOT put `unicode-bidi: plaintext` back on catalogue prose -----------------------
   These selectors used to carry `unicode-bidi: plaintext` so that catalogue copy still sitting in
   English on a Dari or Pashto page would lay itself out LTR instead of reading broken. Every one of
   those strings is now translated (DbSeeder + ProductCatalog.Tr), and the rule turned from a
   workaround into a bug: `plaintext` takes a paragraph's direction from its own first strong
   character, and Karyaal's and ManagePaisa's summaries legitimately *begin* with the Latin brand
   name. That one word flipped whole Persian and Pashto paragraphs to LTR — left-aligned, with the
   full stop thrown to the wrong end.

   Removing it was measured, not assumed: with the rule gone, every element these selectors match
   on the fa and ps home, products, product-detail and service pages lays out identically except
   the eight Karyaal-summary paragraphs, which go from wrong to right. `.yc-stackline` (the Latin
   technology list) was checked separately at 390, 768 and 1440 — pixel-identical either way,
   because its Dari/Pashto label is the first strong character and resolves the run RTL regardless.

   If English catalogue copy is ever reintroduced, translate it. Do not reach for `plaintext`:
   any string that starts with a brand name will be laid out backwards. */

/* Product hero: outbound link to a product's own website (e.g. karyaal.com). Sits under the
   hero CTAs as a quiet tertiary link -- it is a wayfinding/entity signal, not a third button
   competing with "Book a demo". */
.yc-pdhero__site { margin: 14px 0 0; }
.yc-pdhero__site a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; color: var(--yc-ink-soft); font-size: var(--yc-fs-sm);
  transition: color .18s ease;
}
.yc-pdhero__site a:hover { color: #fff; }
.yc-pdhero__site a:focus-visible { outline: 2px solid var(--yc-blue-300); outline-offset: 3px; border-radius: 6px; }
.yc-pdhero__site svg { width: 15px; height: 15px; }
.yc-pdhero__site-host { color: var(--yc-blue-300); text-decoration: underline; text-underline-offset: 3px; }
