/* Tamiyouz unified AR/EN and light/dark — scoped overrides for legacy templates.
   Preserve navy/gold identity, desktop/mobile layout, form values and all source imagery. */
:root{color-scheme:light}
html[data-tyz-theme="dark"]{color-scheme:dark}
#tyz-global-header .tyz-header__language{
  width:39px;height:39px;display:inline-flex;align-items:center;justify-content:center;flex:none;
  color:#f6dbad;border:1px solid rgba(201,169,110,.42);background:rgba(201,169,110,.12);
  border-radius:50%;font:800 12px/1 "Inter",Arial,sans-serif;text-decoration:none;letter-spacing:.04em;
}
#tyz-global-header .tyz-header__language:hover,#tyz-global-header .tyz-header__language:focus-visible{
  background:#d7b477;color:#0a1628;outline-offset:3px
}
html[data-tyz-theme="light"] #tyz-global-header{background:rgba(12,27,47,.94)}
html[data-tyz-theme="dark"] #tyz-global-header{background:rgba(5,11,21,.97)}
html[data-tyz-theme="light"] #tyz-global-header .tyz-header__theme-toggle{background:#f5e5c7;color:#182740}
html[data-tyz-theme="dark"] #tyz-global-header .tyz-header__theme-toggle{background:#17263d;color:#e3c48b}
#tyz-global-header .tyz-header__theme-toggle:focus-visible{outline:2px solid #d6b176;outline-offset:3px}
@media(max-width:1050px){
 #tyz-global-header .tyz-header__language{width:36px;height:36px;font-size:11px}
 #tyz-global-header .tyz-header__actions{gap:6px}
}
/* English keeps its reading direction and legible left alignment; do not mirror photos/icons. */
html[lang^="en"] #tyz-global-header{direction:ltr}
html[lang^="en"] #tyz-site-v1,html[lang^="en"] #tyz-home-v21,html[lang^="en"] #tyz-join{
 direction:ltr;text-align:left
}
html[lang^="en"] #tyz-portfolio{direction:ltr;text-align:left}
html[lang^="en"] #tyz-portfolio .tyz-pb-project button,
html[lang^="en"] #tyz-portfolio .tyz-pb-card-meta{text-align:left}
html[lang^="en"] #tyz-portfolio .tyz-pb-project .tyz-pb-card-meta,
html[lang^="en"] #tyz-portfolio .tyz-pb-case-link{direction:ltr}
html[lang^="en"] #tyz-join .tj-field,
html[lang^="en"] #tyz-join .tj-form-panel,
html[lang^="en"] .tyz-contact-fields label{text-align:left;direction:ltr}
html[lang^="en"] #tyz-home-v21 .tyz-hero__copy,
html[lang^="en"] #tyz-home-v21 .tyz-about,
html[lang^="en"] #tyz-home-v21 .tyz-services,
html[lang^="en"] #tyz-home-v21 .tyz-work,
html[lang^="en"] #tyz-home-v21 .tyz-process{direction:ltr}
html[lang^="en"] #tyz-join .tj-path-list,
html[lang^="en"] #tyz-join .tj-hero-content{direction:ltr}
html[lang^="en"] #tyz-portfolio .tyz-pb-page-control{direction:ltr}
html[lang^="en"] .tyz-site-article__body{direction:ltr;text-align:left}

/* Portfolio: original CSS was permanently light outside the book popup. */
html[data-tyz-theme="dark"] #tyz-portfolio{--pb-text:#e8e2d6;background:#0b1425;color:#e8e2d6}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-intro-copy h2,
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-section-head h2,
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-stats b{color:#f4ecdd}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-intro-copy>p,
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-section-head p,
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-stats span,
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-footer-note{color:#aebbd0}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-divider{border-color:#344156;color:#b4a78f}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-filters button{background:#1a2940;border-color:#334358;color:#e0d9cb}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-filters button[aria-pressed="true"]{background:#d4af73;border-color:#d4af73;color:#0d192a}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-project button{background:#152238;border-color:#354258;box-shadow:0 18px 40px rgba(0,0,0,.25)}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-card-meta h3{color:#f5ebd9}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-card-meta small{color:#e1b97a}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-case-link{background:#1a2940;color:#e5c18b;border-color:#4b5361}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-case-link:hover{background:#253b56}
html[data-tyz-theme="dark"] #tyz-portfolio .tyz-pb-footer-note{border-top-color:#2d3b4f}

/* Contact: pale form fields were hard-coded and did not respond to Dark mode. */
html[data-tyz-theme="dark"] body.tyz-site-v1{background:#091321}
html[data-tyz-theme="dark"] .tyz-contact-section{background:linear-gradient(155deg,#0b1424,#111e34);color:#e8e6df}
html[data-tyz-theme="dark"] .tyz-contact-panel{background:#152238;border-color:#3b4656;color:#f1ebdd;box-shadow:0 22px 60px rgba(0,0,0,.17)}
html[data-tyz-theme="dark"] .tyz-contact-panel-head h2{color:#f3edde}
html[data-tyz-theme="dark"] .tyz-contact-panel-head p,
html[data-tyz-theme="dark"] .tyz-contact-actions small{color:#b5bfd0}
html[data-tyz-theme="dark"] .tyz-contact-fields label{color:#e9e3da}
html[data-tyz-theme="dark"] .tyz-contact-fields label span small{color:#aebbd0}
html[data-tyz-theme="dark"] .tyz-contact-fields input,
html[data-tyz-theme="dark"] .tyz-contact-fields select,
html[data-tyz-theme="dark"] .tyz-contact-fields textarea{background:#0d192b;border-color:#3c4a60;color:#f6f2eb}
html[data-tyz-theme="dark"] .tyz-contact-fields input:focus,
html[data-tyz-theme="dark"] .tyz-contact-fields select:focus,
html[data-tyz-theme="dark"] .tyz-contact-fields textarea:focus{background:#12233a;border-color:#d6aa6b}
html[data-tyz-theme="dark"] .tyz-contact-consent{background:#1b2c44;color:#d3d9e2}
html[data-tyz-theme="dark"] .tyz-contact-fields input::placeholder,
html[data-tyz-theme="dark"] .tyz-contact-fields textarea::placeholder{color:#aab5c2}
html[data-tyz-theme="dark"] .tyz-site-article__body h2{color:#eee6d7}
html[data-tyz-theme="dark"] .tyz-site-article__body p{color:#c2cad6}

/* Careers: was always dark at the top and always light below, independent of theme.
   Form internals retain their names/values and client/server validation. */
html[data-tyz-theme="light"] #tyz-join{background:#f9f6f0;color:#15243b}
html[data-tyz-theme="light"] #tyz-join .tj-hero{background:radial-gradient(ellipse at 18% 75%,#f5e7d0,transparent 50%),linear-gradient(122deg,#fffdf8,#f2ede4 70%,#eae3d5)}
html[data-tyz-theme="light"] #tyz-join .tj-hero h1{color:#112239}
html[data-tyz-theme="light"] #tyz-join .tj-hero-content>p{color:#536478}
html[data-tyz-theme="light"] #tyz-join .tj-hero-meta{border-top-color:#ded4c3}
html[data-tyz-theme="light"] #tyz-join .tj-hero-meta strong{color:#506077}
html[data-tyz-theme="light"] #tyz-join .tj-btn-outline{color:#233b58;border-color:#c9b89e}
html[data-tyz-theme="light"] #tyz-join .tj-paths{background:#eaece9;color:#16283e}
html[data-tyz-theme="light"] #tyz-join .tj-paths-grid>div>p{color:#506175}
html[data-tyz-theme="light"] #tyz-join .tj-path-list>div{border-color:#c9d2db}
html[data-tyz-theme="light"] #tyz-join .tj-path-list small{color:#617083}
html[data-tyz-theme="light"] #tyz-join .tj-path-list span{color:#986f35}
html[data-tyz-theme="dark"] #tyz-join{background:#091321;color:#eee9df}
html[data-tyz-theme="dark"] #tyz-join .tj-why{background:#111e32;color:#f4eadb}
html[data-tyz-theme="dark"] #tyz-join .tj-application{background:linear-gradient(180deg,#101c2f,#0b1525);color:#e9e5de}
html[data-tyz-theme="dark"] #tyz-join .tj-section-header>p,
html[data-tyz-theme="dark"] #tyz-join .tj-form-intro p{color:#b7c2d0}
html[data-tyz-theme="dark"] #tyz-join .tj-value-card{background:#1b2b43;border-color:#3a4960;box-shadow:0 18px 35px rgba(0,0,0,.19)}
html[data-tyz-theme="dark"] #tyz-join .tj-value-card h3{color:#f2e7d7}
html[data-tyz-theme="dark"] #tyz-join .tj-value-card p{color:#c5cfdb}
html[data-tyz-theme="dark"] #tyz-join .tj-form-layout{background:#162439;border-color:#3c4b60;box-shadow:0 22px 70px rgba(0,0,0,.2)}
html[data-tyz-theme="dark"] #tyz-join .tj-form-panel{color:#f0e9db}
html[data-tyz-theme="dark"] #tyz-join .tj-form-topline h3{color:#f6e8d4}
html[data-tyz-theme="dark"] #tyz-join .tj-form-topline p{color:#b6c2d0}
html[data-tyz-theme="dark"] #tyz-join .tj-field{color:#e5e1d7}
html[data-tyz-theme="dark"] #tyz-join .tj-field input:not([type=radio]):not([type=file]),
html[data-tyz-theme="dark"] #tyz-join .tj-field select,
html[data-tyz-theme="dark"] #tyz-join .tj-field textarea{background:#0c192b;border-color:#40516a;color:#f4eddf}
html[data-tyz-theme="dark"] #tyz-join .tj-field input:focus,
html[data-tyz-theme="dark"] #tyz-join .tj-field select:focus,
html[data-tyz-theme="dark"] #tyz-join .tj-field textarea:focus{background:#17263c;border-color:#e0b97b}
html[data-tyz-theme="dark"] #tyz-join .tj-radio span{background:#1b2a41;color:#e8e1d4;border-color:#3d4a61}
html[data-tyz-theme="dark"] #tyz-join .tj-radio input:checked+span{background:#53402a;color:#f4d5a4;border-color:#ad8854}
html[data-tyz-theme="dark"] #tyz-join .tj-consent{background:#1c2c45;color:#cfd7e3}
html[data-tyz-theme="dark"] #tyz-join .tj-upload{background:#18283f;border-color:#897451}
html[data-tyz-theme="dark"] #tyz-join .tj-upload strong{color:#f1e4d1}
html[data-tyz-theme="dark"] #tyz-join .tj-form-actions{border-top-color:#46536a}
html[data-tyz-theme="dark"] #tyz-join .tj-form-actions .tj-btn-outline{color:#e6dfd5;border-color:#59677a}
html[data-tyz-theme="dark"] #tyz-join .tj-form-progress-round{border-color:#47546b;box-shadow:none}
html[data-tyz-theme="dark"] #tyz-join .tj-progress-track{background:#253953}

/* English inline content and form layout — no global mirroring of numerals/graphics. */
html[lang^="en"] #tyz-join .tj-form-grid,
html[lang^="en"] .tyz-contact-fields{direction:ltr}
html[lang^="en"] #tyz-join .tj-form-actions,
html[lang^="en"] #tyz-join .tj-hero-buttons{direction:ltr}
html[lang^="en"] .tyz-site-hero{text-align:left}
html[lang^="en"] #tyz-portfolio .tyz-pb-leaf-page[data-lang="en"]{direction:ltr;text-align:left}
@media(prefers-reduced-motion:reduce){#tyz-global-header .tyz-header__language,#tyz-global-header .tyz-header__theme-toggle{transition:none!important}}

/* Page background is synchronized, not just the homepage content wrapper. */
html[data-tyz-theme="dark"] body.home{background:#0d0e10!important}
html[data-tyz-theme="light"] body.home{background:#fbfaf6!important}
