/* marketnavigator.ir: the new look, laid over the app's own pages (magazine, directories, profiles,
   report pages, sign-in, the dashboard) without rebuilding the app. The web server adds this file
   to the app's pages; taking the link out restores them exactly. Everything is scoped to the public
   shell (.site-type), so the report, the rooms and the admin are untouched.
   Language of the look: the warm-white page, navy type in confident weights, centred heads,
   solid rounded tiles (24) in place of outlined cards, pill controls, a slim translucent bar. */

@font-face {
  font-family: "Anjoman Max";
  src: url("/testing/fonts/anjoman-max-wght.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "MN Changa";
  src: url("/testing/fonts/changa-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF;
}

.site-type {
  --sk-bg: #fffaf8;
  --sk-tile: #ffffff;
  --sk-tile-2: #fff3ed;
  --sk-fg: #0f182b;
  --sk-fg2: #4a5468;
  --sk-fg3: #646e82;
  --sk-line: #ecdfd7;
  --sk-link: #354f76;
  --sk-bar: rgb(255 250 248 / 0.9);
  --sk-ink: #b5382c;
  --sk-read: #1c2740;
  --sk-on: #fff3ed;
  --sk-dark: #0f182b;
  --sk-r: 24px;
  --sk-font: "Anjoman Max", "Vazirmatn MN", "Vazirmatn", system-ui, sans-serif;
  --sk-title-w: 600;
  background: var(--sk-bg) !important;
}
/* the app's night theme (its own switch, or the visitor's system): the same look on navy */
html.dark .site-type {
  --sk-bg: #0a1120;
  --sk-tile: #121c33;
  --sk-tile-2: #18243f;
  --sk-fg: #fff3ed;
  --sk-fg2: #b3bfd3;
  --sk-fg3: #8fa1ba;
  --sk-line: #24324f;
  --sk-link: #82adbe;
  --sk-bar: rgb(10 17 32 / 0.9);
  --sk-ink: #f58278;
  --sk-read: #dfe6f1;
  --sk-on: #0f182b;
  --sk-dark: #18243f;
}
html[lang="en"] .site-type {
  --sk-title-w: 700;
}
.site-type,
.site-type :is(h1, h2, h3, h4, h5, p, a, li, span, div, button, input, textarea, select, label, dt, dd, th, td, figcaption) {
  font-family: var(--sk-font) !important;
}
.site-type :is(code, pre, kbd) {
  font-family: ui-monospace, monospace !important;
}
.site-type :is(h1, h2) {
  font-weight: var(--sk-title-w) !important;
  letter-spacing: 0 !important;
}
html[lang="en"] .site-type :is(h1, h2) {
  letter-spacing: -0.02em !important;
}
.site-type :is(h3, h4) {
  font-weight: 600 !important;
}

/* ── the bar: slim and translucent ────────────────────────────────────────────────────────── */
.site-type > header {
  background: var(--sk-bar) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: transparent !important;
  box-shadow: 0 1px 0 rgb(15 24 43 / 0.06);
}
.site-type > header > div:first-child {
  max-width: 1280px;
  min-height: 56px;
  padding-block: 6px !important;
}
.site-type > header nav a {
  font-size: 14px !important;
}

/* ── page heads: centred, confident ───────────────────────────────────────────────────────── */
.site-type .dx {
  max-width: 1280px;
  padding-block-start: clamp(48px, 8vh, 96px);
}
.site-type .dx-head {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.site-type .dx-title,
.site-type .pr-title {
  font-size: clamp(2.6rem, 6.2vw, 5.5rem) !important;
  line-height: 1.25 !important;
}
html[lang="en"] .site-type :is(.dx-title, .pr-title) {
  line-height: 1.05 !important;
}
.site-type .dx-lede,
.site-type .pr-lede {
  margin-inline: auto;
  max-width: 36em;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem) !important;
  color: var(--sk-fg2) !important;
}
.site-type .pr-head {
  margin-inline: auto;
  text-align: center;
}
.site-type .dx-tabs {
  justify-content: center;
  margin-inline: auto;
}
.site-type .dx-controls {
  max-width: 860px;
  margin-inline: auto;
}
.site-type .dx-filters {
  justify-content: center;
}
.site-type .dx-search {
  border-color: transparent !important;
  background: var(--sk-tile) !important;
}
.site-type .dx-search:focus-within {
  box-shadow: 0 0 0 2px #82adbe;
}
.site-type .dx-pill {
  border-color: transparent !important;
  background: var(--sk-tile) !important;
}
.site-type .dx-pill[data-set="true"] {
  background: var(--sk-fg) !important;
  color: var(--sk-on) !important;
}
.site-type .dx-count {
  text-align: center;
}

/* ── lists: each row a tile ───────────────────────────────────────────────────────────────── */
.site-type .dx-list {
  display: grid;
  gap: 8px;
  max-width: 980px;
  margin-inline: auto;
}
.site-type .dx-row {
  border: 0 !important;
  border-radius: 16px;
  background: var(--sk-tile);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-type .dx-row:hover {
  transform: scale(1.008);
}
.site-type .dx-row-link {
  margin-inline: 0 !important;
  padding: 16px 20px !important;
  border-radius: 16px !important;
}
.site-type .dx-row-link:hover {
  background: transparent !important;
}

/* ── the magazine: tiles, the first one large ─────────────────────────────────────────────── */
.site-type .mg-featured,
.site-type .mg-card {
  border: 0 !important;
  border-radius: var(--sk-r) !important;
  background: var(--sk-tile) !important;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-type .mg-featured:hover,
.site-type .mg-card:hover {
  transform: scale(1.01);
}
.site-type .mg-featured {
  margin-block-end: 16px !important;
}
.site-type .mg-featured-copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem) !important;
  font-weight: var(--sk-title-w) !important;
  line-height: 1.5 !important;
}
.site-type .mg-featured-copy p {
  font-size: 1.125rem !important;
  color: var(--sk-fg2) !important;
}
.site-type .mg-grid {
  gap: 16px !important;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)) !important;
}
.site-type .mg-card-copy {
  padding: 22px 24px 24px !important;
}
.site-type .mg-card-title {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
}
.site-type .mg-card:hover .mg-card-title {
  text-decoration: none !important;
}
.site-type .mg-card-meta {
  border-top: 0 !important;
  padding-top: 6px !important;
  color: var(--sk-fg3) !important;
}
.site-type .mg-kicker {
  color: var(--sk-ink) !important;
  font-weight: 500;
}
.site-type .mg-langs {
  margin-inline: auto;
}

/* ── an article: a centred opening, a wide rounded cover, one quiet column ────────────────── */
.site-type #content article {
  max-width: 1040px !important;
  padding-block-start: clamp(40px, 7vh, 80px) !important;
}
.site-type #content article > nav,
.site-type #content article > div.mb-3,
.site-type #content article > div.mb-6 {
  justify-content: center;
}
.site-type #content article > h1 {
  max-width: 18em;
  margin: 10px auto 18px !important;
  font-size: clamp(2.1rem, 4.6vw, 4rem) !important;
  line-height: 1.4 !important;
  text-align: center;
  text-wrap: balance;
}
html[lang="en"] .site-type #content article > h1 {
  line-height: 1.1 !important;
}
.site-type #content article > p.mb-6 {
  text-align: center;
}
.site-type #content article > figure {
  margin-block: clamp(24px, 4vw, 44px) !important;
}
.site-type #content article > figure img {
  border: 0 !important;
  border-radius: var(--sk-r) !important;
}
.site-type #content article > :not(nav, h1, figure, div.mb-3, div.mb-6, p.mb-6) {
  max-width: 720px;
  margin-inline: auto;
}
.site-type #content article .magazine-content,
.site-type #content article .prose {
  font-size: 1.125rem;
  line-height: 2;
  color: var(--sk-read);
}
.site-type #content article :is(.magazine-content, .prose) :is(h2, h3) {
  margin-block-start: 2em;
}
.site-type #content article :is(.magazine-content, .prose) img {
  border-radius: 16px;
}

/* ── profiles ─────────────────────────────────────────────────────────────────────────────── */
.site-type .pf-figs {
  gap: 12px !important;
  border: 0 !important;
  background: transparent !important;
}
.site-type .pf-fig {
  border: 0 !important;
  border-radius: var(--sk-r) !important;
  background: var(--sk-tile) !important;
}
.site-type .pf-aside > *,
.site-type .pf-sec {
  border-color: var(--sk-line) !important;
}

/* ── cards and controls everywhere: tiles and pills ───────────────────────────────────────── */
.site-type :is(.ac-card, .pr-tier, .pi-card, .pc-card, .svx, .lx-svc, .fl-card) {
  border-color: transparent !important;
  border-radius: var(--sk-r) !important;
  background-color: var(--sk-tile);
  box-shadow: none !important;
}
.site-type .pi-card-accent {
  background-color: var(--sk-dark) !important;
}
.site-type :is(.hx-btn, .pr-btn, .lx-btn, .ac-btn, .fl-btn) {
  border-radius: 999px !important;
}
.site-type :is(.lx-display, .lx-title, .svd-hero h1, .hx-h1, .hx-h2) {
  font-weight: var(--sk-title-w) !important;
}

@media (max-width: 640px) {
  .site-type .dx-row-link {
    padding: 14px 14px !important;
  }
}

/* profile figures on a phone: long money figures keep to one line */
@media (max-width: 640px) {
  .site-type .pf-fig {
    padding-inline: 14px !important;
  }
  .site-type .pf-fig-value,
  .site-type .pf-fig-value * {
    font-size: 18px !important;
    white-space: nowrap;
  }
}

/* profiles: no section numbers beside the headings */
.site-type h2.pf-h::before {
  content: none !important;
}

/* the bar of the app pages: the name on one line, as on the new pages */
.site-type header a[aria-label] > span > span.flex-col {
  flex-direction: row !important;
  gap: 0.32em;
  font-size: 16px !important;
  line-height: 1.2 !important;
}
