/* mojan colors — decided 22 Aban 1405 (2026-11-13).
   Text: q4 (team). Accents: q1, q2 (UI/UX lead, delegated by Azadeh, t334).
   Site identity: white page, charcoal text #292B28, forest #293B33, mocha only as a hint; never light green, gold, purple, blue or neon.
   Load LAST on the 39 inner pages (not index.html). */
:root{--mojan-charcoal:#292B28}
.m13-home,.m13-directory{color:#292B28}

/* q1 — burgundy #7A3045 -> forest #293B33 */
.m13-kicker,
.m13-lens-grid>a>span,
.m13-more,
.m13-question-list b,
.m13-approach blockquote p{color:#293B33}
.m13-service:focus-visible,
.m13-contact-route:focus-visible,
.m13-lens-grid a:focus-visible{outline-color:#293B33}

/* q2 — bronze #AE7847 -> forest #293B33 */
:root{--mojan-bronze:#293B33}
.mojan-palette-v12{--mojan-bronze:#293B33}

.has-mobile-bar main > .mobile-actions {
  display: none;
}

.mj-header .mj-topic-group > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--mj-line, #dce2dc);
}
.mj-header .mj-topic-group > details > summary > h3 {
  margin: 0;
  padding: 0;
  border: 0;
}
.mj-header .mj-topic-group > details > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 10px 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.mj-header .mj-topic-group > details[open] > summary::after {
  transform: rotate(225deg);
}
.mj-header .mj-menu .mj-topic-group a > span {
  transform: none;
}

@media screen and (max-width: 767px) {
  .has-mobile-bar .mj-header .mj-book {
    display: none !important;
  }
  .has-mobile-bar main > .mobile-actions {
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: #fff;
    border: 0;
    border-top: 1px solid #dce2dc;
    border-radius: 0;
  }
  .has-mobile-bar main > .mobile-actions > a.button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 8px;
    min-height: 48px;
    border: 1px solid #293b33 !important;
    border-radius: 5px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
  }
  .has-mobile-bar main > .mobile-actions > a.primary {
    color: #fff !important;
    background: #293b33 !important;
  }
  .has-mobile-bar main > .mobile-actions > a.outline {
    color: #293b33 !important;
    background: #fff !important;
  }
  .has-mobile-bar .mj-footer {
    padding-bottom: calc(61px + max(6px, env(safe-area-inset-bottom))) !important;
  }
  .has-mobile-bar .mj-menu-panel {
    max-height: min(700px, calc(100dvh - 142px - env(safe-area-inset-bottom)));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .has-mobile-bar .mj-menu-panel .mj-topic-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media print {
  .has-mobile-bar main > .mobile-actions { display: none !important; }
}

/* Shared reading and touch targets for the approved Mojan page templates. */
:root {
  --ux-forest: #293b33;
  --ux-ink: #292b28;
  --ux-reading-size: 18px;
}

/* Specificity protects the final reading layer from the legacy article themes. */
html body.mj-site p.ux-prose {
  box-sizing: border-box;
  font-size: var(--ux-reading-size) !important;
  color: var(--ux-ink) !important;
  max-inline-size: min(100%, 720px) !important;
}
/* The older forest callout expected white body copy. Once its longer
   paragraphs are charcoal, a light surface is required for legibility. */
body.mj-site .ref-cta:has(p.ux-prose) {
  background: #fff !important;
  color: var(--ux-ink) !important;
  box-shadow: inset 0 0 0 1px #d8dfda;
}
body.mj-site .ref-cta:has(p.ux-prose) :is(h2,h3,p,.ref-inline) {
  color: var(--ux-ink) !important;
}
html body.mj-site main#main h1 {
  font-size: clamp(30px, 3.35vw, 43px) !important;
  font-weight: 700 !important;
}
body.mj-site main .mj-instagram-inline,
body.mj-site main .mj-instagram-inline *,
body.mj-site main .mj-instagram-kicker,
body.mj-site main .mj-instagram-button bdi,
body.mj-site main #content-home-01 > p:first-of-type,
body.mj-site main #content-home-01 .faq-jump {
  font-size: 14px !important;
}

/* Labels that fell below the reading minimum in one or both legacy layouts. */
body.mj-site main :is(.mj-article-signature, .mj-article-signature *,
  .ref-breadcrumb, .ref-breadcrumb a, .ref-breadcrumb span, a.mj-breadcrumb,
  .ref-more, small, .v8-toc a, .visit-toc a, .ref-toc a, .eyebrow,
  .m13-kicker, .mj-eyebrow, .mj-search > span, .step-index,
  .travel-sidebar a, .travel-hero-bottom > span, .related-pages a,
  .contact-row > span, figcaption .mj-textlink) {
  font-size: 14px !important;
}

html body.mj-site :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid var(--ux-forest) !important;
  outline-offset: 3px;
}

body.mj-site :is(.mj-header .mj-book, a.button[href*="nobat.ir/"], a.button[href*="wa.me/"]) {
  background: var(--ux-forest) !important;
  color: #fff !important;
  border: 1px solid var(--ux-forest) !important;
}
body.mj-site :is(a.button.outline, .ref-cta a.button):is([href*="nobat.ir/"],[href*="wa.me/"]) {
  background: #fff !important;
  color: var(--ux-forest) !important;
  border: 1px solid var(--ux-forest) !important;
}

body.mj-site :is(.final-toc, .ref-toc, .v8-toc, .visit-toc, .section-nav,
    .ref-breadcrumb, .mj-navigation, .mj-footer) a,
body.mj-site a.mj-breadcrumb,
body.mj-site :is(.final-toc, .ref-toc, .mj-menu) summary {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  align-items: center;
}
/* Preserve the existing responsive visibility rules of secondary header links. */
body.mj-site :is(.final-toc, .ref-toc, .v8-toc, .visit-toc, .section-nav, .ref-breadcrumb) a,
body.mj-site a.mj-breadcrumb,
body.mj-site .mj-footer a,
body.mj-site .mj-navigation .mj-menu-all {
  display: inline-flex;
}
body.mj-site .mj-footer-grid > div > a { display: flex; }
.ux-toc-disclosure > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}
.ux-toc-disclosure > summary::before { content: "▸"; margin-inline-end: .5em; }
.ux-toc-disclosure[open] > summary::before { content: "▾"; }
@media (min-width: 901px) {
  body.mj-site .mj-navigation > a { display: inline-flex; }
}
/* Reference pages with text only should not reserve an empty photo column. */
body.mj-site .ref-intro:has(> .ref-intro-copy:only-child) {
  display: block;
  grid-template-columns: none;
}

@media (max-width: 767px) {
  :root { --ux-reading-size: 17px; }
  body.mj-site .mj-header-inner {
    height: 56px !important;
    min-height: 56px !important;
    gap: 12px;
  }
  body.mj-site .mj-header .mj-logo img { max-height: 36px; }
  body.mj-site .mj-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 16px;
  }
  body.mj-site .mj-footer-grid > div:first-child { grid-column: 1 / -1; }
  body.mj-site .mj-footer-grid > div { min-width: 0; }
  body.mj-site .mj-footer-bottom { flex-wrap: wrap; }
  body.mj-site .mj-footer-bottom > div { flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .ux-toc-disclosure > summary { display: none; }
}

/* Non-home pages: keep standalone controls and links usable by touch. */
body.mj-site :is(.mj-header .mj-logo, .faq-jump, .m13-textlink, .ref-inline,
    .mj-article-signature a, .content-connections a, .faq-links a,
    .appointment-contact a, .skip-link) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
body.mj-site main :is(p, li) a:not(.button) {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  align-content: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
body.mj-site :is(.v8-related, .m13-topic-index, .related-pages, .travel-sidebar) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}
body.mj-site .visit-section details > summary {
  min-height: 44px;
  min-width: 44px;
  align-content: center;
  box-sizing: border-box;
}
@media (max-width: 320px) {
  body.mj-site .mj-footer-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Applied only to the mapped interior pages. Existing brand swatches. */
body.mj-site {
  --mj-gold: #293b33;
}
body.mj-site .ux06-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
body.mj-site :is(.ux06-action-group a, .ux06-copy, .ux06-inpage, .ux06-price) {
  display: inline-flex;
  align-items: center;
  min-block-size: 48px;
  min-inline-size: 44px;
  max-inline-size: 100%;
}
body.mj-site .ux06-price { margin-inline-end: 1em; }
body.mj-site :is(.ux06-inpage, .ux06-price, .ux06-copy, .ux06-phone) {
  color: #293b33;
  text-decoration: underline;
  text-underline-offset: .18em;
}
body.mj-site .ux06-inpage { background: transparent; gap: .45em; }
body.mj-site .ux06-inpage svg { width: 18px; height: 18px; }
html body.mj-site main .button.ux06-primary:is([href*="wa.me"],[href*="nobat.ir"]) {
  color: #fff !important;
  background: #293b33 !important;
  border-color: #293b33 !important;
}
body.mj-site .mj-header .mj-menu-panel .mj-topic-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
}
body.mj-site .mj-header .mj-menu-panel :is(a,.mj-topic-group summary) {
  min-height: 48px;
  display: flex;
  align-items: center;
}
body.mj-site .mj-header .mj-menu-panel a,
body.mj-site .mj-header .mj-menu-panel a > span { font-size: 16px !important; }
body.mj-site .mj-header .mj-menu-panel .mj-topic-group h3 { font-size: 17px !important; }
body.mj-site .mj-header .mj-menu-panel {
  max-height: min(700px, calc(100dvh - 150px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.mj-site :is(.mj-menu > summary::after, .step-index) {color: #596b63;}
body.mj-site .mj-menu > summary::after {color: #293b33;}
body.mj-site :is(.light-check,.light-final) {border-inline-start-color:#293b33;}
body.mj-site main :is(p, li) a:not(.button):not(nav a) {
  text-decoration-line: underline !important;
  text-underline-offset: .18em;
}
html body.mj-site main .content-connections #connected-topics {
  border-block-start: 1px solid #e4e1da;
  padding-block-start: 1.2em;
  font-size: 24px !important;
  font-weight: 700;
}
html body.mj-site main.mj-directory .content-connections #connected-topics { font-size: 20px !important; }
html body.mj-site :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid #293b33 !important;
  outline-offset: 2px;
}
body.mj-site a:has(> .ux06-book-note) {
  flex-direction: column;
  justify-content: center;
  row-gap: .08em;
}
body.mj-site .ux06-book-label { display:inline-flex; align-items:center; gap:.4em; }
body.mj-site .ux06-book-note {
  display:block;
  font:inherit;
  font-size:14px !important;
  font-weight:400;
  line-height:1.2;
  color:inherit !important;
}
body.mj-site .ux06-copy {
  background:transparent;
  border:0;
  padding:.2em .5em;
  font:inherit;
  cursor:pointer;
}
body.mj-site .ux06-copy-status:empty {display:none;}
@media (max-width:767px) {
  html body.mj-site main .content-connections #connected-topics {font-size:20px !important;}
  body.mj-site .mobile-actions .ux06-book-label {white-space:nowrap;}
  body.mj-site .mobile-actions .ux06-book-note {white-space:normal; text-wrap:balance;}
  body.has-mobile-bar .mj-footer {padding-bottom:calc(84px + env(safe-area-inset-bottom)) !important;}
}
@media (max-width:350px) {
  body.mj-site .mj-header-inner {min-width:0;flex-wrap:wrap;height:auto!important;gap:4px!important;}
  body.mj-site .mj-header .mj-menu {min-width:0;}
  body.mj-site .mj-header-inner .mj-logo img {max-width:64px;}
}
@media (max-width:279px) {
  body.has-mobile-bar main > .mobile-actions {grid-template-columns:1fr;gap:2px;}
  body.has-mobile-bar .mj-footer {padding-bottom:calc(140px + env(safe-area-inset-bottom)) !important;}
  body.has-mobile-bar .mj-header .mj-menu-panel {max-height:calc(100dvh - 210px);}
}

/* Menu text keeps the original presentation after removing document heading semantics. */
.mj-header .mj-menu-top .mj-menu-title,
.mj-header .mj-topic-group .mj-topic-label {
  display: block;
  color: #292b28;
  letter-spacing: normal;
  margin: 0;
  max-width: none;
}
.mj-header .mj-menu-top .mj-menu-title {
  font-size: 23px;
  line-height: 1.6;
  font-weight: 600;
}
.mj-header .mj-topic-group .mj-topic-label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.mj-site:not(.v8-site) .mj-header .mj-menu-title { font-weight: 700; }
.mj-site:not(.v8-site) .mj-header .mj-topic-group .mj-topic-label { line-height: inherit; }
.mj-header .mj-topic-group > details > summary > .mj-topic-label {
  transform: none;
  transition: none;
  unicode-bidi: isolate;
}
.mj-header .mj-topic-group > .mj-topic-label {
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--mj-line);
}
.mj-site.page-about .mj-header :is(.mj-menu-title,.mj-topic-label) { text-wrap: pretty; }
@media (max-width: 760px) {
  .mj-header .mj-menu-top .mj-menu-title { font-size: 21px; }
  .mj-header .mj-topic-group > .mj-topic-label { font-size: 15px; }
}

/* Make the focused skip link readable on the dark background used by these guides. */
html body.mj-site > a.skip-link:focus-visible {
  color: #fff !important;
  background-color: #292b28 !important;
}

/* Keep the travel diary's columns reachable in the equivalent 200% mobile view. */
@media (max-width: 279px) {
  html body.mj-site #guide05-3.package05-content > div:has(> table) {
    max-width: 100%;
    overflow-x: auto !important;
  }
}
