/* Novin: same-origin fonts for Persian and English; no external font service. */
@font-face{font-family:Vazirmatn;src:url('/assets/fonts/vazirmatn-v33.003-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/inter-v4.1-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html[lang="fa"] body{font-family:Vazirmatn,Tahoma,"Geeza Pro",Arial,sans-serif}
html[lang="en"] body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3,html[lang="en"] h4{font-family:inherit}
button,input,select,textarea{font-family:inherit}
@media(max-width:767px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:1rem}}


/* Mobile readability fixes; desktop layouts and all content remain unchanged. */
@media screen and (max-width: 700px) {
  body .cta .btn,
  body .support-note .btn,
  body .choice-box .btn,
  body .page-nav .page-link,
  body .page-nav .page-link strong {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    height: auto;
  }
  body .cta .btn,
  body .support-note .btn,
  body .choice-box .btn { text-align: center; min-height: 44px; }
  /* Keep the diamond marks, with readable complete names below each mark. */
  body.partners-diamond-page .partner-grid {
    display: grid;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 30px 16px;
    padding: 18px 4px 30px;
  }
  body.partners-diamond-page .partner-grid > .partner-card:nth-child(n) {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    height: auto;
    padding-top: 18px;
    translate: none;
  }
  body.partners-diamond-page .partner-grid::before,
  body.partners-diamond-page .partner-grid::after { display: none; }
  body.partners-diamond-page .partner-grid > .partner-card > .partner-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    min-height: 72px;
    margin: 0;
    transform: rotate(45deg);
  }
  body.partners-diamond-page .partner-grid .partner-logo .diamond-logo-content {
    width: 100%;
    height: 100%;
    transform: rotate(-45deg);
  }
  body.partners-diamond-page .partner-grid > .partner-card > h2 {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    margin: 0;
    translate: none;
    -webkit-line-clamp: unset;
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.65;
    color: #e0dbd3;
  }
}
@media screen and (max-width: 380px) {
  .top.unified-site-header .nav { gap: 6px; }
  .top.unified-site-header .nav-actions { flex: 1 1 0; min-width: 0; gap: 6px; }
  .top.unified-site-header .nav-actions .portal,
  .top.unified-site-header .nav-actions .portal-link:not(.lang-switch) {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 6px !important;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.5;
  }
  .top.unified-site-header .portal span { min-width: 0; white-space: normal; }
  .top.unified-site-header .portal svg { flex: 0 0 16px; width: 16px; }
  .top.unified-site-header .nav-actions .lang-switch { flex-shrink: 0; }
}
