/* Personality layers v2 — common foundations for all existing product engines.
   Semantic selectors only: never change hidden, disabled, validation or feature-gate states. */
:root,
[data-theme="light"] {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface2: #f3efe7;
  --border: #d5cec1;
  --border-soft: #e6e0d6;
  --text: #1c2228;
  --text2: #50575f;
  --text3: #60676f;
  --gold: #806035;
  --gold-text: #684923;
  --gold-l: #c9a15a;
  --gold-d: #684923;
  --gold-btn: #c9a15a;
  --gold-btn-ink: #171b20;
  --gold-bg: rgba(128, 96, 53, 0.09);
  --ink: #0b0e11;
  --header-bg: rgba(250, 248, 244, 0.98);
  --header-border: #d5cec1;
  --footer-bg: #0b0e11;
  --on-dark: #f3efe7;
  --on-dark-2: #c8cbd0;
  --on-dark-dim: #aeb4bd;
  --r-card: 8px;
  --r-card-lg: 12px;
  --r-btn: 5px;
  --shadow-1: 0 2px 12px #0b0e1109;
  --shadow-2: 0 20px 48px #0b0e111c;
  --font-body: "IBM Plex Sans Arabic", Tahoma, "Geeza Pro", Arial, sans-serif;
  --font-display:
    "El Messiri", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #0b0e11;
  --surface: #151a20;
  --surface2: #1b222a;
  --border: #49535e;
  --border-soft: #303840;
  --text: #f3efe7;
  --text2: #c3c8cf;
  --text3: #afb6c0;
  --gold: #c9a15a;
  --gold-text: #d2ae70;
  --gold-l: #dfbd83;
  --gold-d: #c9a15a;
  --gold-bg: rgba(201, 161, 90, 0.12);
  --header-bg: rgba(11, 14, 17, 0.98);
  --header-border: #303840;
  --shadow-1: 0 2px 12px #0002;
  --shadow-2: 0 20px 48px #0005;
}
html {
  scroll-padding-block-start: 100px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings:
    "liga" 1,
    "calt" 1;
}
html[lang="ar"] body {
  font-size: 17px;
  letter-spacing: 0;
}
html[lang="en"] body {
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.4;
  text-wrap: balance;
}
p,
li,
dd,
label {
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
.zp-btn {
  touch-action: manipulation;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(
    [type="range"]
  ),
textarea,
select {
  font-size: 16px;
  max-width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--gold);
}
input[type="range"] {
  touch-action: pan-y;
}
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}
main {
  min-width: 0;
}
img,
video,
canvas {
  max-width: 100%;
}
dialog {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.zp-btn {
  min-height: 44px;
  border-radius: var(--r-btn);
  white-space: normal;
}
.zp-btn-primary {
  font-weight: 600;
}
.zp-card {
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.zp-header {
  border-block-end: 1px solid var(--header-border);
  backdrop-filter: blur(16px);
}
.zp-footer {
  background: var(--footer-bg);
}
.zp-footer-inner {
  max-width: 1280px;
  padding-inline: clamp(20px, 4vw, 48px);
}
.zp-footer a {
  line-height: 1.65;
}
.zp-footer-gift {
  padding: 20px;
  gap: 16px;
}
.zp-footer-gift span,
.zp-footer-gift a {
  font-size: 15px;
}
.zp-footer-gift a {
  min-height: 44px;
}
.zp-footer-dedication {
  font-size: 14px;
  padding: 20px 0;
  margin: 0;
}
.zp-footer-main {
  padding: 32px 0 0;
}
.zp-footer-brand {
  text-align: start;
  margin-bottom: 28px;
  gap: 8px;
}
.zp-footer-brand-name {
  justify-content: flex-start;
  font-size: 24px;
}
.zp-footer-brand-desc {
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.8;
}
.zp-footer-cols {
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.zp-footer-col {
  display: block;
  min-width: 0;
  font-size: 15px;
}
.zp-footer-col summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  list-style: none;
  margin-bottom: 12px;
}
.zp-footer-col summary::-webkit-details-marker {
  display: none;
}
.zp-footer-col summary h2 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-dark);
  margin: 0;
  text-wrap: wrap;
}
.zp-footer-col summary svg {
  display: none;
}
.zp-footer-links {
  display: grid;
  align-content: start;
  gap: 2px;
}
.zp-footer-col a {
  min-height: 36px;
  padding-block: 5px;
  gap: 6px;
  overflow-wrap: anywhere;
}
.zp-footer-col a svg {
  flex: 0 0 12px;
}
.zp-footer-newsletter {
  padding: 28px 24px;
  margin: 0 0 28px;
  background: #151a20;
  border-color: #303840;
}
.zp-footer-newsletter h2 {
  font-size: 22px;
  color: var(--on-dark);
  margin: 0 0 8px;
}
.zp-footer-newsletter p {
  font-size: 14px;
  max-width: 64ch;
  margin-bottom: 16px;
}
.zp-nl-form {
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.zp-nl-form .zp-visually-hidden {
  position: absolute;
}
.zp-nl-form input,
.zp-nl-form select {
  min-height: 48px;
  font-size: 16px;
}
.zp-nl-phone-group {
  width: 100%;
  gap: 8px;
}
.zp-nl-code {
  flex: 0 0 45%;
  width: 45%;
  padding-inline: 8px !important;
}
.zp-nl-phone {
  width: 0;
  flex: 1 1 0;
}
.zp-nl-turnstile {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  overflow: visible;
  width: auto;
  min-height: 144px;
}
#zp-nl-submit {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  min-width: 120px;
}
.zp-footer-newsletter .zp-nl-consent {
  font-size: 13px;
  margin: 16px auto 0;
}
.zp-footer-actions {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 24px;
}
.zp-footer-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.zp-footer-install-note {
  font-size: 13px;
  color: var(--on-dark-dim);
  margin: 0;
  text-align: center;
}
.zp-footer .currency-switcher-menu {
  top: auto;
  bottom: calc(100% + 8px);
  background: #151a20;
  color: var(--on-dark);
  border-color: #49535e;
  max-height: min(400px, 60dvh);
  overflow-y: auto;
}
.zp-footer .currency-switcher-btn {
  min-height: 44px;
  font-size: 14px;
}
.zp-footer .currency-switcher-menu button {
  color: var(--on-dark);
  min-height: 44px;
}
.zp-footer .currency-switcher-menu button:hover {
  background: #303840;
}
.zp-social-row {
  gap: 12px;
  margin-bottom: 24px;
}
.zp-footer-legal {
  font-size: 13px;
  padding: 20px 0 28px;
}
.zp-card.zp-product-card {
  padding: 0;
}
.zp-search-modal-panel {
  max-height: calc(100dvh - 48px);
}
#zp-search-modal-input {
  min-width: 0;
  width: 100%;
}
.zp-search-modal-close {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.zp-search-modal-footer,
.zp-search-modal-result-title {
  flex-wrap: wrap;
}
.zp-search-modal-result-snippet {
  overflow-wrap: anywhere;
}
#zp-sw-update-banner {
  flex-wrap: wrap;
}
#zp-sw-update-banner button {
  min-height: 44px;
}
body:has(.zh-cc-banner:not([hidden])) #zp-float-install,
body:has(#zp-sw-update-banner) #zp-float-install,
body:has(.zp-nav.is-open) #zp-float-install {
  display: none;
}
@media (min-width: 1100px) {
  .zp-footer-main {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 3fr);
    column-gap: 40px;
  }
  .zp-footer-brand {
    grid-column: 1;
  }
  .zp-footer-cols {
    grid-column: 2;
  }
  .zp-footer-newsletter {
    grid-column: 1 / -1;
  }
  .zp-footer-actions {
    grid-column: 1 / -1;
  }
  .zp-social-row {
    grid-column: 1 / -1;
  }
  .zp-footer-col:first-child .zp-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}
@media (max-width: 1180px) {
  .zp-header:has(.zp-nav.is-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body:has(.zp-nav.is-open) .bottom-nav,
  body:has(.zp-nav.is-open) .zh-cc-banner {
    visibility: hidden;
  }
  .zp-nav-drawer-close {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 768px) {
  body:has(.bottom-nav) {
    --zp-bottom-clearance: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--zp-bottom-clearance);
  }
  body:has(.bottom-nav) #zp-float-install,
  body:has(.bottom-nav) .zp-toast,
  body:has(.bottom-nav) .zh-cc-banner {
    bottom: calc(var(--zp-bottom-clearance) + 12px);
  }
  body:has(.bottom-nav) #zp-sw-update-banner {
    bottom: var(--zp-bottom-clearance) !important;
  }
  .bottom-nav a {
    min-height: 64px;
    justify-content: center;
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .zp-footer .currency-switcher-menu {
    position: fixed;
    inset-inline: 20px;
    bottom: calc(var(--zp-bottom-clearance, 0px) + 12px);
    max-height: 50dvh;
  }
  .zp-footer-inner {
    padding-inline: 20px;
  }
  .zp-footer-brand {
    margin-bottom: 24px;
  }
  .zp-footer-brand-name {
    font-size: 22px;
  }
  .zp-footer-cols {
    display: block;
    margin-bottom: 24px;
  }
  .zp-footer-col {
    border-top: 1px solid #303840;
  }
  .zp-footer-col:last-child {
    border-bottom: 1px solid #303840;
  }
  .zp-footer-col summary {
    cursor: pointer;
    min-height: 60px;
    padding-block: 12px;
    margin: 0;
    gap: 16px;
  }
  .zp-footer-col summary svg {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--on-dark-dim);
    flex-shrink: 0;
  }
  .zp-footer-col[open] summary svg {
    transform: rotate(180deg);
  }
  .zp-footer-links {
    padding-bottom: 16px;
  }
  .zp-footer-col a {
    min-height: 44px;
  }
  .zp-footer-newsletter {
    padding: 24px 16px;
  }
  .zp-nl-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .zp-nl-turnstile,
  #zp-nl-submit {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
  #zp-nl-submit {
    width: 100%;
  }
  .zp-footer-newsletter h2 {
    font-size: 21px;
  }
  .zp-footer-tools {
    gap: 8px;
  }
  .zp-footer-tools .zp-btn {
    font-size: 14px;
    padding-inline: 12px;
  }
  .zp-footer-legal {
    text-align: start;
    font-size: 13px;
    line-height: 1.9;
  }
  .zp-footer-legal div + div {
    margin-top: 8px;
  }
}
.zp-logo {
  font-weight: 600;
}
.zp-skip-link {
  top: 0;
  transform: translateY(calc(-100% - 12px));
}
.zp-skip-link:focus {
  top: 12px;
  transform: translateY(0);
}
.zp-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
table {
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: start;
}
pre {
  max-width: 100%;
  overflow: auto;
}
fieldset {
  min-width: 0;
}
legend {
  max-width: 100%;
  white-space: normal;
}
.zp-main,
.zp-main-wide,
.zp-container {
  min-width: 0;
}
@media (max-width: 700px) {
  .zp-btn {
    min-height: 48px;
  }
  .zp-section {
    padding-inline: 20px;
  }
  .zp-modal,
  .zp-modal-box,
  .zp-search-modal-panel {
    max-width: calc(100vw - 24px);
  }
  .zp-nav a,
  .zp-header-controls button,
  .zp-lang-toggle {
    min-height: 44px;
  }
  .zp-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .zp-footer-cols {
    gap: 24px;
  }
  .zp-card {
    padding: 20px;
  }
  .zp-toast {
    max-width: calc(100vw - 24px);
    overflow-wrap: anywhere;
  }
  h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  h2 {
    font-size: clamp(24px, 6.8vw, 34px);
  }
  .zp-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    overscroll-behavior-inline: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  :root,
  [data-theme="dark"],
  [data-theme="light"] {
    --bg: #fff;
    --surface: #fff;
    --surface2: #fff;
    --text: #111;
    --text2: #333;
    --text3: #444;
    --border: #bbb;
    --border-soft: #ddd;
    --gold: #684923;
    --gold-text: #684923;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
  }
  a {
    color: inherit;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  img,
  table,
  figure {
    break-inside: avoid;
  }
  button,
  input,
  select {
    box-shadow: none;
  }
}
/* Independent certificate surface: screen readability; printed document remains coherent. */
@media (max-width: 400px) {
  .zp-header-inner {
    padding-inline: 12px;
    gap: 8px;
  }
  .zp-logo {
    font-size: 16px;
    gap: 6px;
  }
  .zp-header-controls {
    gap: 4px;
  }
  .zp-lang-toggle {
    padding-inline: 8px;
    min-width: 44px;
  }
  .zp-logo svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
}
@media (max-width: 340px) {
  html[lang="en"] .zp-logo {
    font-size: 14px;
  }
  .zp-header-inner {
    padding-inline: 8px;
    gap: 6px;
  }
}
.zp-header-inner {
  max-width: 1425px;
}
.zp-header-end {
  min-width: 0;
}
@media (max-width: 1180px) {
  .zp-header-end {
    flex-shrink: 0;
    gap: 0;
  }
  .zp-nav-drawer-close {
    width: 44px;
    height: 44px;
  }
  .zp-mega-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}
.cert-scope {
  --ink: #0b0e11;
  --ink2: #151a20;
  --ink3: #1b222a;
  --accent: #c9a15a;
  --accent2: #dfbd83;
  --accent3: #e6c995;
  --platinum: #f3efe7;
  --platinum2: #c8cbd0;
  --platinum3: #afb6c0;
  --success: #81c9a0;
  --error: #ffabb6;
}
.pn-hero,
.pn-catalog,
.pn-profile-identity,
.pn-closing,
.cert-scope {
  --focus: #dfbd83;
}
@media screen {
  .cert-scope #cert-a4 .cert-date-val,
  .cert-scope #cert-a4 .cert-verify-num,
  .cert-scope #cert-a4 .cert-name-en {
    font-size: 14px;
  }
  .cert-scope #cert-a4 .cert-body-text {
    font-size: 16px;
    line-height: 1.9;
  }
  .cert-scope #cert-a4 .cert-platform-label,
  .cert-scope #cert-a4 .cert-domain {
    font-size: 12px;
    opacity: 1;
    letter-spacing: 0;
  }
}
.cert-scope .btn-primary,
.cert-scope .btn-ghost {
  white-space: normal;
  min-height: 48px;
  justify-content: center;
  border-radius: 5px;
}
.cert-scope .form-group {
  min-width: 0;
}
.cert-scope .form-label,
.cert-scope .form-input::placeholder {
  opacity: 1;
}
.cert-scope .cert-date-label,
.cert-scope .cert-verify-label {
  direction: inherit;
  unicode-bidi: plaintext;
  opacity: 1;
}
.cert-scope .cert-bottom-left {
  text-align: start;
}
@media screen {
  .cert-disclaimer-small {
    font-size: 13px;
    line-height: 1.8;
    opacity: 1;
  }
  .cert-date-label,
  .cert-verify-label {
    font-size: 12px;
  }
  .cert-verify-num,
  .cert-date-val {
    font-size: 14px;
  }
  .cert-scope .cert-brand-mark-text {
    font-size: 13px;
    line-height: 1.7;
  }
  .cert-scope #cert-a4 {
    direction: inherit;
  }
  .cert-scope #cert-a4 [dir="ltr"] {
    direction: ltr;
  }
}
@media screen and (max-width: 700px) {
  .cert-shell {
    padding: 20px 12px;
  }
  .cert-frame {
    padding: 12px;
  }
  .cert-scope #cert-a4 {
    padding: 28px 20px;
    aspect-ratio: auto;
    min-height: 0;
  }
  .cert-bottom-row,
  .cert-top-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .cert-scope .cert-verify-box {
    padding: 20px 16px;
  }
  .cert-actions-top > * {
    flex: 1 1 150px;
  }
}
@media print {
  .cert-scope,
  .cert-scope #cert-a4 {
    --ink: #fff;
    --ink2: #fff;
    --ink3: #fff;
    --accent: #684923;
    --accent2: #684923;
    --accent3: #684923;
    --platinum: #111;
    --platinum2: #333;
    --platinum3: #444;
    background: #fff !important;
    color: #111 !important;
  }
  .cert-scope #cert-a4 {
    background: #fff !important;
  }
  .cert-scope .cert-shell,
  .cert-scope .cert-frame {
    padding: 0;
  }
  .cert-scope .cert-disclaimer-small {
    opacity: 1;
  }
  .cert-verify-box,
  .cert-verify-result {
    display: none !important;
  }
}

/* Catalog copy and family labels remain legible on narrow screens. */
.zp-pc-fam,
.zp-pc-meta,
.zp-fs12 {
  font-size: 14px;
  letter-spacing: 0;
}
.zp-pc-sum {
  font-size: 16px;
  line-height: 1.8;
}
.zp-chips a {
  font-size: 14px;
  min-height: 44px;
}
.cert-scope .form-label {
  font-size: 14px;
}
.cert-scope #cert-a4 .cert-pattern-badge {
  font-size: 14px;
  line-height: 1.8;
  white-space: normal;
  overflow-wrap: anywhere;
}
