/* N-NAnews Market Analytics | Shared styles. Derived from A v0.3.69. CSS targets only .nanews-market. */
/* NAnews Market Analytics shared design system for N-series v1.0.0, sourced from A-series v0.3.69.
 * This file deliberately contains NO font-family or @font-face declarations.
 * All text inherits its font from WordPress / the NAnews theme.
 * Logical CSS properties support RU (LTR) and HE (RTL) with identical markup.
 */
.nanews-market {
  --nanews-market-blue: #1b70b8;
  --nanews-market-yellow: #ffd400;
  --nanews-market-accent: #de364b;
  --nanews-market-line: #dbe5ef;
  --nanews-market-pale: #f3f7fa;
  --nanews-market-ink: #223047;
  box-sizing: border-box;
  width: calc(100% - clamp(22px, 3vw, 50px)); max-width: none;
  margin: 20px auto 28px;
  padding: clamp(14px, 2.6vw, 32px);
  background: #fff;
  color: var(--nanews-market-ink);
  border: 1px solid var(--nanews-market-line);
  border-radius: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.nanews-market *, .nanews-market *::before, .nanews-market *::after { box-sizing: border-box; }
.nanews-market .nanews-market-block {
  margin: 0 0 19px;
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--nanews-market-line);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.nanews-market .nanews-market-block:nth-of-type(even) { background: var(--nanews-market-pale); }
.nanews-market .nanews-market-block--intro {
  border-inline-start: 5px solid var(--nanews-market-blue);
  background: #f8fbff;
}
.nanews-market .nanews-market-block > h1 {
  margin: 8px 0 16px;
  line-height: 1.24;
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 750;
  color: #172b46;
}
.nanews-market .nanews-market-block > h2 {
  display: block;
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--nanews-market-line);
  line-height: 1.35;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 750;
  color: #194b77;
}
.nanews-market .nanews-market-block > h2::before {
  content: '';
  display: inline-block;
  height: .92em;
  width: 5px;
  vertical-align: -.12em;
  margin-inline-end: 11px;
  border-radius: 3px;
  background: var(--nanews-market-accent);
}
.nanews-market .nanews-market-block h3 { font-weight: 700; line-height: 1.35; color: #263d59; }
.nanews-market .nanews-market-block > p { margin: 0 0 13px; line-height: 1.7; }
.nanews-market .nanews-market-block > p:last-child { margin-bottom: 0; }
.nanews-market .nanews-market-block > .nanews-market-city-description p { line-height: 1.75; }
.nanews-market .nanews-market-block--ads { border-top: 4px solid var(--nanews-market-yellow); }
.nanews-market .nanews-market-block--listings { background: #fff; }
.nanews-market .nanews-market-block--about { background: #f7fafc; }
.nanews-market .nanews-market-brand { color: #a52c3a; font-weight: 750; margin: 0 0 8px; }
.nanews-market a { text-underline-offset: 2px; }
.nanews-market a:focus-visible { outline: 3px solid var(--nanews-market-blue); outline-offset: 3px; }
.nanews-market .nanews-market-block--coop a { color: #145e9e; font-weight: 700; }
@media (max-width: 680px) {
  .nanews-market { padding: 10px; margin: 10px auto 18px; border-radius: 10px; }
  .nanews-market .nanews-market-block { padding: 15px 13px; margin-bottom: 12px; border-radius: 9px; }
  .nanews-market .nanews-market-block > h2 { margin-bottom: 14px; padding-bottom: 9px; }
}
/* Compact phone preview from the admin, which is intentionally narrow at any desktop width. */
.nanews-market.nanews-market-preview-phone { width: min(390px, 100%); max-width: 390px; padding: 9px; }
.nanews-market.nanews-market-preview-phone .nanews-market-block { padding: 13px 10px; margin-bottom: 10px; }
.nanews-market.nanews-market-preview-phone .nanews-market-block > h2 { font-size: 19px; }
.nanews-market.nanews-market-preview-phone .nanews-market-block > h1 { font-size: 22px; }

/* v0.3.68 — shared, typography-preserving statistic and comparison patterns. */
.nanews-market .nanews-market-summary { margin-top: 17px; padding: 16px 18px; border: 1px solid var(--nanews-market-line); border-radius: 10px; background: #fff; }
.nanews-market .nanews-market-summary-title { margin: 0 0 10px; font-size: clamp(17px, 1.5vw, 21px); color: #194b77; line-height: 1.4; }
.nanews-market .nanews-market-summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.nanews-market .nanews-market-summary-list > li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0; margin: 0; border-bottom: 1px solid #e1e9f1; }
.nanews-market .nanews-market-summary-list > li:last-child { border-bottom: 0; }
.nanews-market .nanews-market-summary-list > li > strong { font-size: 1.12em; color: #194b77; white-space: nowrap; }
.nanews-market :is(.nanews-market-summary-extra,.nikk-market-metrics-extra) { background: #f8fbfe; padding-inline: 10px !important; }
.nanews-market .nanews-market-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid #d5e5f1; border-radius: 10px; background: #fff; padding: clamp(14px, 2vw, 24px); }
.nanews-market .nanews-market-stat-label { color: #334b63; }
.nanews-market .nanews-market-stat-value { font-size: clamp(25px, 3.2vw, 38px); line-height: 1.2; color: #194b77; }
.nanews-market .nanews-market-stat-note { color: #5d6c7c; }
.nanews-market .nanews-market-neighbor-summary { padding: 12px 15px; border-inline-start: 4px solid var(--nanews-market-blue); background: #fff; border-radius: 6px; line-height: 1.7; }
.nanews-market .nanews-market-neighbor-summary strong { margin-inline-end: 6px; }
.nanews-market[dir="rtl"] .nanews-market-stat { align-items: flex-start; }
@media (max-width: 680px) {
  .nanews-market { width: calc(100% - 16px); }
  .nanews-market .nanews-market-summary { padding: 11px; }
  .nanews-market .nanews-market-summary-list > li { display: block; }
  .nanews-market .nanews-market-summary-list > li > span { display: block; }
  .nanews-market .nanews-market-summary-list > li > strong { display: block; margin-top: 3px; }
}

/* v0.3.68: unmistakable label/value separation even with aggressive theme CSS. */
.nanews-market .nanews-market-summary-list > li {
 display: grid; grid-template-columns: minmax(0, 1fr) max-content;
 gap: 10px 22px; align-items: baseline; justify-content: stretch; width: 100%;
}
.nanews-market .nanews-market-metric-label { display: block; min-width: 0; overflow-wrap: anywhere; }
.nanews-market .nanews-market-metric-value { display: block; margin: 0; padding: 0; white-space: nowrap; text-align: end; }
.nanews-market .nanews-market-metric-value bdi { display: inline-block; white-space: nowrap; }
@media (max-width:680px) {
 .nanews-market .nanews-market-summary-list > li { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
 .nanews-market .nanews-market-metric-value { text-align: start; }
}
.nanews-market.nanews-market-preview-phone .nanews-market-summary-list > li { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.nanews-market.nanews-market-preview-phone .nanews-market-metric-value { text-align: start; }

/* v0.3.69 — values stay next to their labels; never push prices to the page edge. */
.nanews-market .nanews-market-summary-list > li {
 display: flex !important;
 flex-flow: row wrap !important;
 align-items: baseline !important;
 justify-content: flex-start !important;
 column-gap: 10px !important;
 row-gap: 2px !important;
 width: 100%;
}
.nanews-market .nanews-market-summary-list > li > .nanews-market-metric-label {
 display: inline !important;
 flex: 0 1 auto;
 min-width: 0;
}
.nanews-market .nanews-market-summary-list > li > :is(.nanews-market-metric-separator,.nikk-market-metric-separator) {
 display: inline !important;
 flex: 0 0 auto;
 color: #65788d;
}
.nanews-market .nanews-market-summary-list > li > .nanews-market-metric-value {
 display: inline-block !important;
 flex: 0 0 auto;
 width: auto !important;
 margin: 0 !important;
 padding: 0 !important;
 text-align: start !important;
 white-space: nowrap;
}
.nanews-market .nanews-market-stat {
 display: grid !important;
 grid-template-columns: minmax(0,1fr);
 gap: 10px;
 align-items: start;
 justify-items: start;
}
.nanews-market .nanews-market-stat > .nanews-market-stat-label,
.nanews-market .nanews-market-stat > .nanews-market-stat-value-row,
.nanews-market .nanews-market-stat > .nanews-market-stat-note {
 display: block !important;
 width: 100%;
 min-width: 0;
}
.nanews-market .nanews-market-stat-value-row > .nanews-market-stat-value {
 display: block;
}
.nanews-market[dir="rtl"] .nanews-market-stat { justify-items: start; }

/* v1.3.4 — Imported rental article design. Public post title is the only H1;
   generated document H2 preserves wording, styling and search hierarchy. */
.nanews-market--rentals .nanews-market-block--intro > h2.nanews-market-document-heading,
.nanews-market .nanews-market-document-heading {
  display:block; margin:8px 0 16px; padding:0; border:0;
  font-size:clamp(24px,2.9vw,36px); font-weight:750; line-height:1.24;
  color:#172b46; overflow-wrap:break-word;
}
.nanews-market .nanews-market-document-heading::before {content:none!important;display:none!important}
/* Theme post columns vary by desktop template. Center only the imported
   analytic document on the viewport, without changing header/footer/other posts. */
body.nanews-market-article .nanews-market {
  box-sizing:border-box;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:calc(100vw - 36px);
  max-width:calc(100vw - 36px);
  margin:18px 0 26px;
  padding:clamp(10px,1.2vw,20px);
  overflow-wrap:break-word;
}
body.nanews-market-article .nanews-market .nanews-market-block {
  min-width:0; width:100%; max-width:100%;
}
@media (max-width:680px) {
 body.nanews-market-article .nanews-market {width:calc(100vw - 22px);max-width:calc(100vw - 22px);padding:10px;margin:12px 0 18px}
}

/* v1.3.5 — RTL publications must be centered from their RIGHT edge, not the
   LTR left edge. The former left:50%/translateX(-50%) pushed Hebrew pages
   beyond the viewport when the WordPress content column itself was RTL. */
body.nanews-market-article .nanews-market[dir="rtl"] {
  left:auto;
  right:50%;
  transform:translateX(50%);
}
body.nanews-market-article .nanews-market[dir="rtl"],
body.nanews-market-article .nanews-market[dir="rtl"] .nanews-market-block {
  direction:rtl;
  text-align:start;
}
