/* Slim Persian stack — Amiri (display) + Vazirmatn (UI/envelope).
   Noto/IranNastaliq removed: Safari iOS breaks Nastaliq shaping. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts.gstatic.com/persian/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts.gstatic.com/persian/J7aRnpd8CGxBHpUrtLMS7JNKIjk.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts.gstatic.com/persian/J7aRnpd8CGxBHpUutLMS7JNK.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fa-display: 'Amiri', 'Geeza Pro', 'Arial Unicode MS', Tahoma, serif;
  --fa-ui: 'Vazirmatn', Tahoma, sans-serif;
}

html {
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

html, body, .t-body {
  font-family: var(--fa-display);
  font-weight: 400;
  font-synthesis: none;
}

.tn-atom,
.t-title,
.t-descr,
.t-text,
.t-input-title,
.t-input-subtitle,
.t702__title,
.t702__descr,
.t-btnflex,
.t-btnflex__text,
.t-radio__item,
label,
button,
.label,
.js-successbox {
  font-family: var(--fa-display) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.75 !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Envelope tap label — Vazirmatn for reliable joining on iOS */
#weiTapLabel,
#weiTapLabel * {
  font-family: var(--fa-ui) !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  animation: weiPulseOpacity 2.4s 1.6s ease-in-out infinite !important;
}

@keyframes weiPulseOpacity {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.tn-elem[data-elem-type="text"] {
  height: auto !important;
}

.tn-elem[data-elem-type="text"] .tn-atom {
  overflow: visible !important;
}

/* Hero names — closer, slightly stretched */
#rec2487446043 .tn-elem[data-elem-id="1763402147625"] {
  top: 200px !important;
  height: auto !important;
  z-index: 4 !important;
}
#rec2487446043 .tn-elem[data-elem-id="1763402147625"] .tn-atom {
  font-size: 56px !important;
  line-height: 1.25 !important;
  transform: scaleX(1.08);
  transform-origin: center center;
}

#rec2487446043 .tn-elem[data-elem-id="1763402147625"] .wei-and {
  display: inline-block !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  opacity: 0.9;
  transform: none !important;
}

#rec2487446043 .tn-elem[data-elem-id="1763402147625"] .wei-surnames {
  display: block !important;
  margin-top: 8px !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  opacity: 0.85;
  transform: none !important;
}

/* Old floating «و» — now inlined in names */
#rec2487446043 .tn-elem[data-elem-id="176340390975774690"] {
  display: none !important;
}

/* Countdown section */
#rec2487446093 .t396__artboard,
#rec2487446093 .t396__filter,
#rec2487446093 .t396__carrier {
  height: 340px !important;
}
@media screen and (max-width: 1199px) {
  #rec2487446093 .t396__artboard,
  #rec2487446093 .t396__filter,
  #rec2487446093 .t396__carrier { height: 330px !important; }
}
@media screen and (max-width: 479px) {
  #rec2487446093 .t396__artboard,
  #rec2487446093 .t396__filter,
  #rec2487446093 .t396__carrier { height: 330px !important; }
}

#rec2487446093 .tn-elem[data-elem-id="1771277026942000001"] {
  top: 8px !important;
  height: auto !important;
  z-index: 3 !important;
}
#rec2487446093 .tn-elem[data-elem-id="1771277026942000001"] .tn-atom {
  line-height: 1.65 !important;
  font-size: 28px !important;
}

#rec2487446093 .tn-elem[data-elem-id="1771277551711000001"] {
  top: 115px !important;
  height: 200px !important;
  z-index: 2 !important;
}

.tn-elem[data-elem-id="176340390975774690"] .tn-atom,
.tn-elem[data-elem-id="1780748008617000003"] .tn-atom,
.tn-elem[data-elem-id="1763405219328"] .tn-atom,
.tn-elem[data-elem-id="1772813849329000001"] .tn-atom {
  line-height: 1.85 !important;
}

input.t-input,
textarea,
.t-input,
.number,
.separator {
  font-family: var(--fa-ui) !important;
  line-height: 1.4 !important;
  direction: rtl !important;
}

.tn-elem[data-elem-id="1782312134224"] {
  color: #a67d2b !important;
  text-align: center !important;
  width: 560px !important;
  height: auto !important;
  left: calc(50% - 600px + 320px) !important;
}
.tn-elem[data-elem-id="1782312134224"] .tn-atom {
  color: #a67d2b !important;
  text-align: center !important;
  font-size: 28px !important;
  line-height: 2 !important;
  overflow: visible !important;
}
.tn-elem[data-elem-id="1782312134224"] img {
  display: none !important;
}
@media screen and (max-width: 1199px) {
  .tn-elem[data-elem-id="1782312134224"] { left: calc(50% - 480px + 200px) !important; }
}
@media screen and (max-width: 959px) {
  .tn-elem[data-elem-id="1782312134224"] { left: calc(50% - 320px + 40px) !important; }
}
@media screen and (max-width: 639px) {
  .tn-elem[data-elem-id="1782312134224"] { left: calc(50% - 240px + -40px) !important; }
}
@media screen and (max-width: 479px) {
  .tn-elem[data-elem-id="1782312134224"] { left: calc(50% - 160px + -120px) !important; width: 560px !important; }
}

#countdownContainer {
  direction: ltr;
  unicode-bidi: isolate;
  margin: 12px 20px !important;
}
#countdownContainer .label {
  font-family: var(--fa-display) !important;
  font-size: 20px;
  line-height: 1.8 !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
}

/* Schedule section → photography notice */
#rec2487446103 .t396__artboard,
#rec2487446103 .t396__filter,
#rec2487446103 .t396__carrier {
  height: 220px !important;
}
#rec2487446103 .tn-elem:not([data-elem-id="weiPhotoNote"]) {
  display: none !important;
}
#rec2487446103 .tn-elem[data-elem-id="weiPhotoNote"] {
  display: table !important;
  position: absolute !important;
  top: 48px !important;
  left: calc(50% - 280px) !important;
  width: 560px !important;
  z-index: 10 !important;
  color: #6c513f !important;
  text-align: center !important;
}
#rec2487446103 .tn-elem[data-elem-id="weiPhotoNote"] .tn-atom {
  font-size: 22px !important;
  line-height: 1.9 !important;
  color: #6c513f !important;
  text-align: center !important;
  white-space: normal !important;
}
@media screen and (max-width: 479px) {
  #rec2487446103 .tn-elem[data-elem-id="weiPhotoNote"] {
    left: calc(50% - 150px) !important;
    width: 300px !important;
  }
  #rec2487446103 .tn-elem[data-elem-id="weiPhotoNote"] .tn-atom {
    font-size: 18px !important;
  }
}

/* Closing block — cropped floral full-bleed; text in cradle */
#rec2487446253,
#rec2487446253 .t396,
#rec2487446253 .t396__artboard,
#rec2487446253 .r {
  overflow: hidden !important;
}
#allrecords #rec2487446253 {
  margin-top: -72px !important;
  padding-top: 0 !important;
}
#rec2487446253 .t396__artboard,
#rec2487446253 .t396__filter,
#rec2487446253 .t396__carrier {
  height: min(78vw, 560px) !important;
  overflow: hidden !important;
}
#rec2487446253 .tn-elem[data-elem-id="1778673930481"] {
  display: none !important;
}
#rec2487446253 .tn-elem[data-elem-id="1763405219328"] {
  top: 22% !important;
  left: 10% !important;
  width: 80% !important;
  z-index: 5 !important;
}
#rec2487446253 .tn-elem[data-elem-id="1763405219328"] .tn-atom {
  font-size: 26px !important;
  line-height: 1.7 !important;
}
#rec2487446253 .tn-elem[data-elem-id="1772813849329000001"] {
  top: 46% !important;
  left: 12% !important;
  width: 76% !important;
  z-index: 5 !important;
}
#rec2487446253 .tn-elem[data-elem-id="1780167388618000002"] {
  top: calc(-4% + 70px) !important;
  left: 50% !important;
  width: 128vw !important;
  max-width: none !important;
  min-width: 128vw !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  z-index: 1 !important;
}
#rec2487446253 .tn-elem[data-elem-id="1780167388618000002"] .tn-atom {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
#rec2487446253 .tn-elem[data-elem-id="1780167388618000002"] .tn-atom__img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}
@media screen and (max-width: 639px) {
  #allrecords #rec2487446253 {
    margin-top: -56px !important;
  }
  #rec2487446253 .t396__artboard,
  #rec2487446253 .t396__filter,
  #rec2487446253 .t396__carrier {
    height: 82vw !important;
  }
  #rec2487446253 .tn-elem[data-elem-id="1780167388618000002"] {
    top: calc(-6% + 70px) !important;
    width: 135vw !important;
    min-width: 135vw !important;
  }
  #rec2487446253 .tn-elem[data-elem-id="1763405219328"] {
    top: 20% !important;
    left: 8% !important;
    width: 84% !important;
  }
  #rec2487446253 .tn-elem[data-elem-id="1772813849329000001"] {
    top: 44% !important;
    left: 10% !important;
    width: 80% !important;
  }
}

/* Override Tilda NewFonts/Arial stacks */
#allrecords .tn-atom,
#allrecords .t-text,
#allrecords .t-title,
#allrecords .t-descr {
  font-family: var(--fa-display) !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  font-synthesis: none !important;
}

#allrecords #weiTapLabel {
  font-family: var(--fa-ui) !important;
}

/* iOS Safari: zoom breaks Arabic shaping — neutralize on text atoms */
@supports (-webkit-touch-callout: none) {
  .tn-elem[data-elem-type="text"],
  .tn-elem[data-elem-type="text"] .tn-atom {
    zoom: 1 !important;
    -webkit-text-size-adjust: 100%;
  }
}

/* removed venue ChatGPT image */
.tn-elem[data-elem-id="1782312310182000001"]{display:none!important;}

.tn-elem[data-elem-id="1772823499423"]{display:none!important;}

/* ========== Responsive hardening ========== */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

iframe {
  max-width: 100% !important;
}

#weiImg, #weiVideo {
  max-width: min(440px, 92vw);
  height: auto;
}

#weiSwanVideo {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #f9f0e0;
}

#countdownContainer {
  max-width: 100%;
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}
#countdownContainer .time-block {
  min-width: 3.2em;
}
#countdownContainer .number {
  font-variant-numeric: tabular-nums;
}

/* Mobile */
@media screen and (max-width: 639px) {
  #rec2487446043 .tn-elem[data-elem-id="1763402147625"] {
    top: 160px !important;
    left: 4% !important;
    width: 92% !important;
  }
  #rec2487446043 .tn-elem[data-elem-id="1763402147625"] .tn-atom {
    font-size: 44px !important;
    transform: scaleX(1.04);
  }
  #rec2487446043 .tn-elem[data-elem-id="1763402147625"] .wei-and {
    font-size: 24px !important;
  }
  #rec2487446043 .tn-elem[data-elem-id="1763402147625"] .wei-surnames {
    font-size: 16px !important;
  }

  .tn-elem[data-elem-id="1782312134224"],
  #rec2487446093 .tn-elem[data-elem-id="1771277026942000001"],
  #rec2487446253 .tn-elem[data-elem-id="1763405219328"],
  .tn-elem[data-elem-id="1780748008617000003"],
  .tn-elem[data-elem-id="1780748008617000005"] {
    left: 4% !important;
    width: 92% !important;
    max-width: 92vw !important;
  }

  .tn-elem[data-elem-id="1782312134224"] .tn-atom {
    font-size: 22px !important;
    line-height: 1.8 !important;
  }

  #rec2487446093 .tn-elem[data-elem-id="1771277026942000001"] .tn-atom {
    font-size: 22px !important;
    line-height: 1.55 !important;
  }

  #rec2487446093 .t396__artboard,
  #rec2487446093 .t396__filter,
  #rec2487446093 .t396__carrier {
    height: 360px !important;
  }

  #countdownContainer {
    margin: 8px 8px !important;
    transform: scale(0.92);
    transform-origin: top center;
  }
  #countdownContainer .label {
    font-size: 16px !important;
  }
  #countdownContainer .number {
    font-size: 22px !important;
  }

  #rec2487446103 .t396__artboard,
  #rec2487446103 .t396__filter,
  #rec2487446103 .t396__carrier {
    height: 260px !important;
  }
  #rec2487446103 .tn-elem[data-elem-id="weiPhotoNote"] {
    left: 5% !important;
    width: 90% !important;
    top: 36px !important;
  }

  #rec2487446253 .tn-elem[data-elem-id="1763405219328"] .tn-atom {
    font-size: 20px !important;
    line-height: 1.65 !important;
  }
  #rec2487446253 .tn-elem[data-elem-id="1763405219328"] {
    top: 20% !important;
    left: 8% !important;
    width: 84% !important;
  }
  #rec2487446253 .tn-elem[data-elem-id="1772813849329000001"] {
    left: 10% !important;
    width: 80% !important;
    top: 44% !important;
  }
  #rec2487446253 .tn-elem[data-elem-id="1780167388618000002"] {
    top: calc(-6% + 70px) !important;
    left: 50% !important;
    width: 135vw !important;
    min-width: 135vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
  }

  .tn-elem[data-elem-id="1772813480591000001"] .tn-atom,
  .tn-elem[data-elem-id="1772804808869"] .tn-atom {
    font-size: 15px !important;
    line-height: 1.7 !important;
    padding: 0 8px;
  }
}

@media screen and (max-width: 379px) {
  #rec2487446043 .tn-elem[data-elem-id="1763402147625"] .tn-atom {
    font-size: 38px !important;
  }
  #countdownContainer {
    transform: scale(0.84);
  }
}

/* Tablet */
@media screen and (min-width: 640px) and (max-width: 959px) {
  #rec2487446043 .tn-elem[data-elem-id="1763402147625"] .tn-atom {
    font-size: 50px !important;
  }
  #rec2487446103 .tn-elem[data-elem-id="weiPhotoNote"] {
    left: calc(50% - 240px) !important;
    width: 480px !important;
  }
}


/* Navigation app chooser */
.wei-map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.wei-map-hit {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 335px;
  height: 335px;
  max-width: 100%;
  border: 0;
  border-radius: 15px;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.wei-map-hit::after {
  content: "مسیریابی";
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(52, 40, 28, 0.82);
  color: #f7f1e6;
  font-family: var(--fa-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 14px;
  letter-spacing: 0;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(40, 28, 18, 0.18);
}
html.wei-nav-open,
html.wei-nav-open body {
  overflow: hidden;
}
.wei-nav {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  direction: rtl;
}
.wei-nav[hidden] {
  display: none !important;
}
.wei-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 14, 0.42);
}
.wei-nav__panel {
  position: relative;
  width: min(420px, 100%);
  background: #f6f0e6;
  border-radius: 22px 22px 0 0;
  padding: 14px 20px 28px;
  box-shadow: 0 -12px 40px rgba(40, 28, 18, 0.18);
  animation: weiNavUp 0.28s ease-out;
}
@keyframes weiNavUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.wei-nav__handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(90, 70, 50, 0.28);
  margin: 2px auto 14px;
}
.wei-nav__title {
  margin: 0;
  text-align: center;
  font-family: var(--fa-display, Amiri, serif);
  font-size: 26px;
  font-weight: 400;
  color: #5a4632;
}
.wei-nav__place {
  margin: 4px 0 18px;
  text-align: center;
  font-family: var(--fa-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 14px;
  color: rgba(90, 70, 50, 0.72);
}
.wei-nav__apps {
  display: grid;
  gap: 10px;
}
.wei-nav__app {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fffaf3;
  border: 1px solid rgba(120, 90, 55, 0.16);
  color: #3f2f22;
  text-decoration: none;
  font-family: var(--fa-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 17px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wei-nav__app:active {
  transform: scale(0.98);
  background: #f3e8d8;
}
.wei-nav__close {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(90, 70, 50, 0.75);
  font-family: var(--fa-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 15px;
  cursor: pointer;
}
@media screen and (max-width: 379px) {
  .wei-map-hit {
    width: min(335px, 92vw);
    height: min(335px, 92vw);
  }
}
