/*
 * دست گیر — restrained editorial profile and discovery surfaces.
 * New file/URL: no previously immutable asset is rewritten.
 * Real photographs and public data stay authoritative; category artwork is
 * explicitly labelled. No script, tracker, external font or image is added.
 */
html[data-dg-design="editorial"] body:not(.page-admin) {
  --dg-formal-paper: #fffdf8;
  --dg-formal-tint: #f2f2ea;
  --dg-formal-ink: #183529;
  --dg-formal-muted: #51675d;
  --dg-formal-line: #d6dfd5;
  --dg-formal-deep: #23543e;
  --dg-formal-gold: #8c5b20;
  --dg-formal-shadow: 0 10px 30px rgba(25, 47, 35, .075);
}
html:is([data-theme="dark"],[data-theme="night"],[data-theme="luxury"])[data-dg-design="editorial"] body:not(.page-admin) {
  --dg-formal-paper: #172820;
  --dg-formal-tint: #20372b;
  --dg-formal-ink: #f0f4ed;
  --dg-formal-muted: #c2cfc4;
  --dg-formal-line: #496253;
  --dg-formal-deep: #cae2cf;
  --dg-formal-gold: #e2c17f;
  --dg-formal-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

/* Profile — each section is reachable by a native anchor, with room for the
   existing fixed header and bottom navigation at mobile sizes. */
html[data-dg-design="editorial"] body.biz-page :is(#business-about,#business-gallery,#business-hours,#business-location,#business-reviews) {
  scroll-margin-top: 128px;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero:not(.has-cover) {
  background: var(--dg-formal-paper) !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero {
  color: var(--dg-formal-ink);
  border: 1px solid var(--dg-formal-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--dg-formal-shadow) !important;
  overflow: hidden;
}
html[data-dg-design="editorial"] body.biz-page .biz-photo-link {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 11px;
  background: rgba(17,48,34,.93);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}
html[data-dg-design="editorial"] body.biz-page .biz-photo-link svg { width: 16px; height: 16px; }
html[data-dg-design="editorial"] body.biz-page .biz-hero-extras .biz-header-ribbons { margin-top: 0; }
html[data-dg-design="editorial"] body.biz-page .biz-profile-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  color: var(--dg-formal-gold);
  font-size: .73rem;
  line-height: 1.6;
  font-weight: 800;
}
html[data-dg-design="editorial"] body.biz-page .biz-profile-kicker::before {
  content: "";
  width: 27px;
  height: 2px;
  flex: none;
  background: currentColor;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero-top-row {
  gap: 9px 12px;
  margin: 0 0 7px;
  align-items: start;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero-top-row h1 {
  color: var(--dg-formal-ink) !important;
  font-size: clamp(1.42rem, 4.9vw, 2.05rem) !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero-identity > .card-meta {
  color: var(--dg-formal-muted) !important;
  line-height: 1.9;
  row-gap: 2px;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero-identity .sub {
  color: var(--dg-formal-muted) !important;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--dg-formal-line);
  border-radius: 15px;
  overflow: hidden;
  background: var(--dg-formal-line);
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 60px;
  padding: 10px 11px;
  background: var(--dg-formal-tint);
  color: var(--dg-formal-ink);
  text-decoration: none;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-row:first-child,
html[data-dg-design="editorial"] body.biz-page .biz-essential-row:last-child:nth-child(2) {
  grid-column: 1 / -1;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-row:hover {
  text-decoration: none;
  filter: brightness(.98);
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dg-formal-line);
  border-radius: 11px;
  background: var(--dg-formal-paper);
  color: var(--dg-formal-deep);
  flex: none;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-icon svg { width: 16px; height: 16px; }
html[data-dg-design="editorial"] body.biz-page .biz-essential-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
  line-height: 1.7;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-copy > span {
  color: var(--dg-formal-muted);
  font-size: .73rem;
  font-weight: 600;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-copy strong {
  color: var(--dg-formal-ink);
  font-size: .94rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
html[data-dg-design="editorial"] body.biz-page .biz-essential-row:not(:first-child) .biz-essential-arrow { display: none; }
html[data-dg-design="editorial"] body.biz-page .biz-essential-arrow { flex: none; color: var(--dg-formal-deep); }
html[data-dg-design="editorial"] body.biz-page .biz-essential-arrow svg { width: 14px; height: 14px; }
html[data-dg-design="editorial"] body.biz-page .biz-header-ribbon {
  background: var(--dg-formal-paper) !important;
  border-color: var(--dg-formal-line) !important;
  border-radius: 12px !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-action-panel {
  border: 1px solid var(--dg-formal-line) !important;
  border-radius: 15px !important;
  background: var(--dg-formal-paper) !important;
  box-shadow: none !important;
  gap: 8px !important;
  padding: 12px !important;
}
html[data-dg-design="editorial"] body.biz-page :is(.biz-action-title,.biz-action-subtitle) {
  color: var(--dg-formal-muted) !important;
  font-size: .76rem;
  font-weight: 750;
}
html[data-dg-design="editorial"] body.biz-page .biz-action-panel :is(.btn,.qa-btn) {
  min-width: 0;
  min-height: 44px;
  line-height: 1.65;
  border-radius: 11px !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-action-panel .btn:not(.btn-primary):not(.btn-accent),
html[data-dg-design="editorial"] body.biz-page .biz-action-panel .qa-btn {
  background: var(--dg-formal-paper) !important;
  border-color: var(--dg-formal-line) !important;
  color: var(--dg-formal-ink) !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-action-panel :is(.btn,.qa-btn) span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: center;
}
html[data-dg-design="editorial"] body.biz-page .biz-action-panel .btn-primary {
  background: #245b40 !important;
  color: #fff !important;
  border-color: #245b40 !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-action-panel:not(:has(> a[href^="tel:"])) > a.btn.btn-glass[href*="maps.google.com"] {
  background: #245b40 !important;
  color: #fff !important;
  border-color: #245b40 !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid var(--dg-formal-line);
  border-radius: 16px;
  background: var(--dg-formal-paper);
  box-shadow: var(--dg-formal-shadow);
}
html[data-dg-design="editorial"] body.biz-page .biz-section-nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  flex: 1 1 auto;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--dg-formal-deep);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  background: var(--dg-formal-tint);
  border: 1px solid var(--dg-formal-line);
}
html[data-dg-design="editorial"] body.biz-page .biz-section-nav a:hover { filter: brightness(.97); }
html[data-dg-design="editorial"] body.biz-page :is(.biz-main,.biz-aside) > :is(.card,details.card) {
  border: 1px solid var(--dg-formal-line) !important;
  border-radius: 18px !important;
  background: var(--dg-formal-paper) !important;
  box-shadow: var(--dg-formal-shadow) !important;
}
html[data-dg-design="editorial"] body.biz-page .biz-main > [data-gallery] { margin-top: 16px !important; }
html[data-dg-design="editorial"] body.biz-page .biz-main > .mall-shops-section { margin-top: 16px !important; }
html[data-dg-design="editorial"] body.biz-page :is(.biz-about-card,[data-gallery],.reviews-section,.hours-card,.biz-location-card) > :is(h2,h3).card-title {
  color: var(--dg-formal-ink) !important;
  font-size: 1.08rem !important;
  line-height: 1.65;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dg-formal-line);
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
html[data-dg-design="editorial"] body.biz-page .biz-about-card > p:empty { display: none; }
html[data-dg-design="editorial"] body.biz-page .biz-about-card > p { line-height: 2; overflow-wrap: anywhere; }
html[data-dg-design="editorial"] body.biz-page .biz-about-card .info-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0,1fr) !important;
  grid-template-areas: "icon label" "icon value";
  align-items: start;
  column-gap: 9px;
  row-gap: 3px;
  min-width: 0;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--dg-formal-line);
}
html[data-dg-design="editorial"] body.biz-page .biz-about-card .info-row > svg { grid-area: icon; color: var(--dg-formal-deep); margin-top: 3px; }
html[data-dg-design="editorial"] body.biz-page .biz-about-card .info-row .k { grid-area: label; color: var(--dg-formal-muted) !important; font-size: .76rem; }
html[data-dg-design="editorial"] body.biz-page .biz-about-card .info-row .v { grid-area: value; color: var(--dg-formal-ink) !important; font-size: .91rem; line-height: 1.8; text-align: start !important; overflow-wrap: anywhere; }
html[data-dg-design="editorial"] body.biz-page .gallery-main { border-radius: 14px !important; }
html[data-dg-design="editorial"] body.biz-page .gallery-thumbs button { border-radius: 11px !important; min-height: 48px; }
html[data-dg-design="editorial"] body.biz-page .gallery-thumbs button[aria-current="true"] { outline: 2px solid var(--dg-formal-deep); outline-offset: 2px; }
html[data-dg-design="editorial"] body.biz-page .hours-card .hours-table { font-variant-numeric: tabular-nums; }
html[data-dg-design="editorial"] body.biz-page .biz-location-card .map-stage { overflow: hidden; border: 1px solid var(--dg-formal-line); }

/* Category artwork is an illustration, not an actual photograph of the shop. */
html[data-dg-design="editorial"] body .biz-card .biz-thumb:not(.has-photo) {
  position: relative;
  background: var(--dg-formal-tint) !important;
  overflow: hidden;
}
html[data-dg-design="editorial"] body .biz-card .biz-thumb:not(.has-photo) .biz-thumb-art {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  background: repeating-linear-gradient(135deg, transparent 0 17px, rgba(77,113,88,.045) 17px 18px), var(--dg-formal-tint) !important;
}
html[data-dg-design="editorial"] body .biz-card .biz-thumb:not(.has-photo) .biz-thumb-art img {
  display: block !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  border-radius: 19px !important;
  border: 3px solid var(--dg-formal-paper) !important;
  box-shadow: 0 6px 20px rgba(27,49,33,.15);
}
html[data-dg-design="editorial"] body .biz-card-symbol-label {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 9px;
  z-index: 2;
  padding: 3px 8px;
  border: 1px solid var(--dg-formal-line);
  border-radius: 8px;
  background: var(--dg-formal-paper);
  color: var(--dg-formal-muted);
  font-size: .68rem;
  line-height: 1.5;
  font-weight: 700;
  pointer-events: none;
}
html[data-dg-design="editorial"] body.biz-page .biz-hero-media .art:not(.photo) {
  background: repeating-linear-gradient(135deg, transparent 0 17px, rgba(77,113,88,.055) 17px 18px), var(--dg-formal-tint) !important;
  color: var(--dg-formal-ink);
}
html[data-dg-design="editorial"] body.biz-page .biz-placeholder-label {
  display: block;
  color: var(--dg-formal-muted);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

/* Same quiet material, typography and visual rhythm in the discovery journey. */
html[data-dg-design="editorial"] body :is(.biz-card,.dir-toolbar,.cats-search-wrap,.ux-scope-card,.near-bar,.map-search) {
  border: 1px solid var(--dg-formal-line) !important;
  border-radius: 17px !important;
  box-shadow: var(--dg-formal-shadow) !important;
}
html[data-dg-design="editorial"] body :is(.dir-toolbar,.cats-search-wrap,.near-bar,.map-search) {
  background: var(--dg-formal-paper) !important;
}
html[data-dg-design="editorial"] body .biz-card {
  background: var(--dg-formal-paper) !important;
  overflow: hidden;
}
html[data-dg-design="editorial"] body .biz-card .card-title a { color: var(--dg-formal-ink) !important; line-height: 1.7; overflow-wrap: anywhere; }
html[data-dg-design="editorial"] body .biz-card .card-foot { border-color: var(--dg-formal-line) !important; }
html[data-dg-design="editorial"] body.page-route-home :is(.home-utility-card,.home-editorial-card,.scope-cat-card) {
  background: var(--dg-formal-paper) !important;
  border: 1px solid var(--dg-formal-line) !important;
  border-radius: 17px !important;
  box-shadow: var(--dg-formal-shadow) !important;
}
html[data-dg-design="editorial"] body.page-route-home :is(.home-utility-card,.home-editorial-card) h2 {
  color: var(--dg-formal-ink) !important;
  line-height: 1.7;
}
html[data-dg-design="editorial"] body.page-route-home .home-search-compact {
  border: 1px solid rgba(219,186,122,.8) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.16) !important;
}
html[data-dg-design="editorial"] body.page-route-home .home-visual-cat { border-radius: 13px !important; }
html[data-dg-design="editorial"] body.page-route-categories .catgroup {
  background: var(--dg-formal-paper) !important;
  border: 1px solid var(--dg-formal-line) !important;
  border-radius: 17px !important;
  box-shadow: var(--dg-formal-shadow) !important;
  overflow: hidden;
}
html[data-dg-design="editorial"] body.page-route-categories .catgroup-head { background: var(--dg-formal-tint) !important; color: var(--dg-formal-ink) !important; }
html[data-dg-design="editorial"] body.page-route-categories .catcard { border-color: var(--dg-formal-line) !important; border-radius: 12px !important; }
html[data-dg-design="editorial"] body:is(.page-route-home,.page-route-businesses,.page-route-categories,.page-route-c,.page-route-m,.page-route-nearby,.page-route-map,.page-route-blog) :is(.page-hero,.h-hero-copy) {
  border-radius: 20px !important;
  border: 1px solid rgba(178,148,89,.45) !important;
  box-shadow: var(--dg-formal-shadow) !important;
  overflow: hidden;
}
html[data-dg-design="editorial"] body:is(.page-route-home,.page-route-businesses,.page-route-categories,.page-route-c,.page-route-m,.page-route-nearby,.page-route-map,.page-route-blog) :is(.page-hero,.h-hero-copy) h1 {
  line-height: 1.7 !important;
}
html[data-dg-design="editorial"] body :is(.biz-essential-row,.biz-photo-link,.biz-section-nav a,.biz-action-panel .btn,.biz-action-panel .qa-btn,.biz-card a,.biz-card button):focus-visible {
  outline: 3px solid #bd852f !important;
  outline-offset: 2px !important;
}

/* Keep keyboard focus clear of the existing fixed header and bottom bar.
   Scroll padding also applies when native Tab navigation scrolls a control. */
@media (max-width: 900px) {
  html[data-dg-design="editorial"]:has(body.biz-page) {
    scroll-padding-block-start: 116px;
    scroll-padding-block-end: calc(84px + env(safe-area-inset-bottom));
  }
  html[data-dg-design="editorial"] body.biz-page :is(#business-about,#business-gallery,#business-hours,#business-location,#business-reviews) {
    scroll-margin-top: 12px !important;
  }
}

@media (max-width: 760px) {
  html[data-dg-design="editorial"] body.biz-page .breadcrumb { padding-block: 0 !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero { padding: 0 0 14px !important; gap: 0 !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media { border-bottom: 1px solid var(--dg-formal-line) !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-identity { padding: 17px 16px 4px !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-action-panel { margin: 12px 16px 0 !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-action-panel a[href$="/chat"] { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-extras { margin: 14px 16px 0; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media:not(:has(.art.photo)) { height: 126px !important; min-height: 126px !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media .art:not(.photo) {
    height: 126px !important;
    min-height: 126px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
  }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media .art:not(.photo) img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border: 3px solid var(--dg-formal-paper);
    border-radius: 15px;
  }
  html[data-dg-design="editorial"] body.biz-page .biz-section-nav a { flex: 1 1 27%; padding-inline: 8px; }
  html[data-dg-design="editorial"] body.biz-page :is(.biz-main,.biz-aside) > :is(.card,details.card) { padding: 16px !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-about-card .grid-2 { grid-template-columns: minmax(0,1fr) !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-card .biz-thumb:not(.has-photo) .biz-thumb-art img { width: 90px !important; height: 90px !important; }
}
@media (min-width: 761px) {
  html[data-dg-design="editorial"] body.biz-page :is(#business-about,#business-gallery,#business-hours,#business-location,#business-reviews) { scroll-margin-top: 90px; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero {
    display: grid !important;
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr) !important;
    grid-template-areas: "media identity" "actions identity" "extras extras" !important;
    gap: 14px 22px !important;
    align-items: start !important;
    padding: 20px !important;
  }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media { grid-area: media; align-self: start; height: auto !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media .art.photo {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 15px !important;
  }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media .art:not(.photo) {
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    aspect-ratio: 16 / 9;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 15px;
  }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-media .art:not(.photo) img { width: 90px !important; height: 90px !important; object-fit: cover; border-radius: 18px; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-identity { grid-area: identity; min-width: 0 !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-action-panel { grid-area: actions; width: 100% !important; margin: 0 !important; }
  html[data-dg-design="editorial"] body.biz-page .biz-hero-extras { grid-area: extras; min-width: 0; }
}
@media (min-width: 1100px) {
  html[data-dg-design="editorial"] body.biz-page .biz-hero {
    grid-template-columns: minmax(230px, 29%) minmax(0, 1fr) minmax(215px, 23%) !important;
    grid-template-areas: "media identity actions" "media extras actions" !important;
  }
}
@media (max-width: 360px) {
  html[data-dg-design="editorial"] body.biz-page .biz-action-panel .favorite-action { grid-column: 1 / -1; }
}
@media (min-width: 380px) and (max-width: 760px) {
  html[data-dg-design="editorial"] body [data-dir-grid] .biz-card {
    display: grid !important;
    grid-template-columns: 116px minmax(0,1fr) !important;
    grid-template-areas: "media body" !important;
    align-items: stretch !important;
  }
  html[data-dg-design="editorial"] body [data-dir-grid] .biz-card > .card-media {
    grid-area: media !important;
    align-self: start;
    width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 10px !important;
    border-radius: 12px !important;
    aspect-ratio: 1 / 1 !important;
  }
  html[data-dg-design="editorial"] body [data-dir-grid] .biz-card > .card-body { grid-area: body !important; min-width: 0; }
  html[data-dg-design="editorial"] body [data-dir-grid] .biz-card .biz-thumb:not(.has-photo) .biz-thumb-art img { width: 68px !important; height: 68px !important; }
  html[data-dg-design="editorial"] body [data-dir-grid] .biz-card-symbol-label { inset-inline: 4px; text-align: center; font-size: .62rem; padding: 3px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-dg-design="editorial"] body.biz-page :is(.biz-essential-row,.biz-section-nav a) { transition: none !important; }
}
