/* ============================================================
   News Harita Calculator — CSS v2
   הדבק את התוכן הזה בלשונית CSS של WPCoder
   ============================================================ */

/* === הסתרת Header / Footer / כותרת של ערכת הנושא === */
body.ghc-nh-fullscreen header,
body.ghc-nh-fullscreen footer,
body.ghc-nh-fullscreen .site-header,
body.ghc-nh-fullscreen .site-footer,
body.ghc-nh-fullscreen .wp-block-template-part,
body.ghc-nh-fullscreen .wp-block-post-title,
body.ghc-nh-fullscreen .entry-header,
body.ghc-nh-fullscreen .entry-meta,
body.ghc-nh-fullscreen .entry-footer,
body.ghc-nh-fullscreen .post-navigation,
body.ghc-nh-fullscreen .nav-links,
body.ghc-nh-fullscreen .post-thumbnail,
body.ghc-nh-fullscreen #masthead,
body.ghc-nh-fullscreen #colophon,
body.ghc-nh-fullscreen #site-navigation,
body.ghc-nh-fullscreen .main-navigation,
body.ghc-nh-fullscreen #secondary,
body.ghc-nh-fullscreen .widget-area,
body.ghc-nh-fullscreen aside,
body.ghc-nh-fullscreen h1.entry-title,
body.ghc-nh-fullscreen h1.post-title,
body.ghc-nh-fullscreen h1.page-title,
body.ghc-nh-fullscreen .breadcrumb,
body.ghc-nh-fullscreen .breadcrumbs,
body.ghc-nh-fullscreen .comments-area,
body.ghc-nh-fullscreen #comments {
  display: none !important;
}
body.ghc-nh-fullscreen {
  margin: 0 !important;
  padding: 0 !important;
  background: #FBFAF7 !important;
}
body.ghc-nh-fullscreen .wp-site-blocks,
body.ghc-nh-fullscreen .site,
body.ghc-nh-fullscreen .site-content,
body.ghc-nh-fullscreen #page,
body.ghc-nh-fullscreen #content,
body.ghc-nh-fullscreen #main,
body.ghc-nh-fullscreen main,
body.ghc-nh-fullscreen article,
body.ghc-nh-fullscreen .entry-content,
body.ghc-nh-fullscreen .post-content,
body.ghc-nh-fullscreen .container,
body.ghc-nh-fullscreen .content-area {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
}

/* === Container בסיסי === */
.ghc-nh-calc {
  display: block;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: #2C2A26;
  direction: rtl;
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-height: 100vh;
  background: #FBFAF7;
}
.ghc-nh-calc * { box-sizing: border-box; }

/* === Layout: full-width עם מרווחי צד מתאימים === */
.ghc-nh-calc .wrap {
  max-width: 1700px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background: #FBFAF7;
  min-height: 100vh;
}

/* === Header === */
.ghc-nh-calc .hdr {
  border-bottom: 1px solid #E8E2D5;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.ghc-nh-calc .hdr h2 {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #2C2A26;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ghc-nh-calc .hdr-sub { font-size: 14px; color: #6E6862; margin: 0; }
.ghc-nh-calc .hdr-base { margin-top: 12px; font-size: 12px; color: #98918A; direction: ltr; text-align: right; }
.ghc-nh-calc .hdr-base strong { color: #6E6862; font-weight: 500; }

/* === KPI Cards — auto-fit responsive === */
.ghc-nh-calc .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.ghc-nh-calc .kpi {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  padding: 1.125rem 1.25rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ghc-nh-calc .kpi-label {
  font-size: 12px;
  color: #6E6862;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.ghc-nh-calc .kpi-val {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  direction: ltr;
  text-align: right;
  font-feature-settings: "tnum";
  line-height: 1.1;
  color: #2C2A26;
  white-space: nowrap;           /* ← קריטי: מונע שבירה של ה-₪ לשורה חדשה */
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghc-nh-calc .kpi-sub {
  font-size: 11px;
  color: #98918A;
  margin: 8px 0 0;
  direction: ltr;
  text-align: right;
  font-feature-settings: "tnum";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Sections === */
.ghc-nh-calc .section {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  margin-bottom: 12px;
}
.ghc-nh-calc .section > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
  color: #2C2A26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-radius: 10px;
}
.ghc-nh-calc .section > summary::-webkit-details-marker { display: none; }
.ghc-nh-calc .section > summary::marker { content: ''; }
.ghc-nh-calc .section > summary:hover { background: #FCFAF5; }
.ghc-nh-calc .section[open] > summary { border-bottom: 1px solid #E8E2D5; border-radius: 10px 10px 0 0; }
.ghc-nh-calc .chevron { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform 0.2s ease; color: #98918A; flex-shrink: 0; }
.ghc-nh-calc .section[open] .chevron { transform: rotate(0deg); }
.ghc-nh-calc .section-body { padding: 1.25rem 1.5rem 1.5rem; }
.ghc-nh-calc .section-desc {
  font-size: 13px;
  color: #6E6862;
  margin: 0 0 1.25rem;
  line-height: 1.65;
  padding: 0.75rem 1rem;
  background: #FCFAF5;
  border-radius: 6px;
  border-right: 3px solid #D5CFC0;
}
.ghc-nh-calc .section-desc strong { color: #2C2A26; font-weight: 500; }

/* === Input Grid — auto-fit, מתאים את עצמו אוטומטית === */
.ghc-nh-calc .input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem 1.75rem;
}
.ghc-nh-calc .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ghc-nh-calc .input-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}
.ghc-nh-calc .input-label {
  font-size: 13px;
  color: #2C2A26;
  font-weight: 500;
  line-height: 1.3;
}
.ghc-nh-calc .input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ghc-nh-calc input.input-num {
  flex: 0 0 auto;
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #D5CFC0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #FBFAF7;
  text-align: right;
  direction: ltr;
  color: #2C2A26;
  font-feature-settings: "tnum";
  transition: border-color 0.15s, background 0.15s;
  -moz-appearance: textfield;
}
.ghc-nh-calc input.input-num::-webkit-outer-spin-button,
.ghc-nh-calc input.input-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ghc-nh-calc input.input-num:hover { border-color: #B8AE9B; }
.ghc-nh-calc input.input-num:focus {
  outline: none;
  border-color: #3D6A8C;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(61, 106, 140, 0.1);
}
.ghc-nh-calc .input-suffix {
  font-size: 12px;
  color: #6E6862;
  flex-shrink: 0;
  font-weight: 500;
  min-width: 14px;
  white-space: nowrap;
}
.ghc-nh-calc input.input-slider {
  flex: 1;
  min-width: 60px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #E8E2D5;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.ghc-nh-calc input.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #3D6A8C;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #3D6A8C;
  transition: transform 0.1s;
}
.ghc-nh-calc input.input-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.ghc-nh-calc input.input-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #3D6A8C;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #3D6A8C;
}

/* === Help tooltips === */
.ghc-nh-calc .help { position: relative; display: inline-flex; align-items: center; }
.ghc-nh-calc .help-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #E8E2D5;
  color: #6E6862;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  user-select: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.ghc-nh-calc .help-icon:hover { background: #B8AE9B; color: #FFFFFF; }
.ghc-nh-calc .help-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: 280px;
  background: #2C2A26;
  color: #FBFAF7;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  z-index: 1000;
  display: none;
  font-weight: 400;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  pointer-events: none;
  text-align: right;
}
.ghc-nh-calc .help-tip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 11px;
  border: 6px solid transparent;
  border-bottom-color: #2C2A26;
}
.ghc-nh-calc .help.active .help-tip,
.ghc-nh-calc .help:hover .help-tip,
.ghc-nh-calc .help:focus-within .help-tip {
  display: block;
}

/* === Charts === */
.ghc-nh-calc .charts {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  margin-bottom: 1.5rem;
}
.ghc-nh-calc .chart-card {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.ghc-nh-calc .chart-title { font-size: 14px; color: #2C2A26; margin: 0 0 1rem; font-weight: 500; }
.ghc-nh-calc .chart-wrap { position: relative; height: 290px; width: 100%; }
.ghc-nh-calc .chart-wrap.small { height: 250px; }
.ghc-nh-calc .chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 11px; color: #6E6862; }
.ghc-nh-calc .chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ghc-nh-calc .chart-legend .dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* === P&L Table === */
.ghc-nh-calc .pl {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.ghc-nh-calc .pl-title { padding: 1rem 1.5rem; font-size: 15px; font-weight: 500; border-bottom: 1px solid #E8E2D5; color: #2C2A26; }
.ghc-nh-calc .pl-wrap { overflow-x: auto; }
.ghc-nh-calc .pl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ghc-nh-calc .pl-table thead th {
  background: #F5F1E8;
  text-align: right;
  padding: 10px 16px;
  font-weight: 500;
  color: #6E6862;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.ghc-nh-calc .pl-table th.num { direction: ltr; text-align: left; padding-left: 16px; }
.ghc-nh-calc .pl-table td { padding: 9px 16px; border-top: 1px solid #F0EBE0; }
.ghc-nh-calc .pl-table td.num {
  direction: ltr;
  text-align: left;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.ghc-nh-calc .pl-table .row-sub { background: #FCFAF5; font-weight: 500; font-size: 12px; color: #6E6862; }
.ghc-nh-calc .pl-table .row-total { background: #F5F1E8; font-weight: 600; font-size: 14px; }
.ghc-nh-calc .pl-table .pos { color: #2D7A4A; }
.ghc-nh-calc .pl-table .neg { color: #A33D2D; }
.ghc-nh-calc .pl-table .sec { color: #98918A; }

/* === Partners === */
.ghc-nh-calc .partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 1.5rem;
}
.ghc-nh-calc .partner {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.ghc-nh-calc .partner-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0EBE0;
}
.ghc-nh-calc .partner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  flex-shrink: 0;
}
.ghc-nh-calc .partner-info { flex: 1; min-width: 0; }
.ghc-nh-calc .partner-name { font-size: 15px; font-weight: 500; margin: 0; color: #2C2A26; }
.ghc-nh-calc .partner-role { font-size: 12px; color: #6E6862; margin: 2px 0 0; }
.ghc-nh-calc .partner-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; gap: 12px; }
.ghc-nh-calc .partner-row + .partner-row { border-top: 1px solid #F0EBE0; }
.ghc-nh-calc .partner-row .label { color: #6E6862; min-width: 0; }
.ghc-nh-calc .partner-row .val {
  font-weight: 500;
  direction: ltr;
  font-feature-settings: "tnum";
  font-size: 13px;
  color: #2C2A26;
  white-space: nowrap;
}

/* === Feasibility metrics — auto-fit === */
.ghc-nh-calc .feas-section {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ghc-nh-calc .feas-section-title { font-size: 14px; font-weight: 500; margin: 0 0 1rem; color: #2C2A26; }
.ghc-nh-calc .feas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.ghc-nh-calc .feas-item {
  background: #FBFAF7;
  border: 1px solid #F0EBE0;
  border-radius: 8px;
  padding: 0.875rem 1rem;
}
.ghc-nh-calc .feas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.ghc-nh-calc .feas-label { font-size: 12px; color: #6E6862; margin: 0; line-height: 1.3; }
.ghc-nh-calc .feas-val {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  direction: ltr;
  text-align: right;
  font-feature-settings: "tnum";
  color: #2C2A26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghc-nh-calc .feas-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* === Action Buttons === */
.ghc-nh-calc .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid #E8E2D5;
  margin-top: 0.5rem;
}
.ghc-nh-calc .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid #D5CFC0;
  background: #FFFFFF;
  color: #2C2A26;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
}
.ghc-nh-calc .btn:hover { background: #FBFAF7; border-color: #B8AE9B; }
.ghc-nh-calc .btn-primary { background: #3D6A8C; color: #FFFFFF; border-color: #3D6A8C; }
.ghc-nh-calc .btn-primary:hover { background: #2F5470; border-color: #2F5470; }
.ghc-nh-calc .btn-danger { color: #A33D2D; border-color: #DCC1B8; }
.ghc-nh-calc .btn-danger:hover { background: #FAF1ED; border-color: #C99B8C; }
.ghc-nh-calc .btn-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* === Disclaimer === */
.ghc-nh-calc .disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #FCFAF5;
  border-radius: 8px;
  font-size: 12px;
  color: #6E6862;
  line-height: 1.75;
  border-right: 3px solid #D5CFC0;
}
.ghc-nh-calc .disclaimer strong { color: #2C2A26; font-weight: 500; }

/* === Color utilities === */
.ghc-nh-calc .pos { color: #2D7A4A; }
.ghc-nh-calc .neg { color: #A33D2D; }
.ghc-nh-calc .muted { color: #6E6862; }

/* === Toast === */
.ghc-nh-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2C2A26;
  color: #FBFAF7;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 10000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  font-family: 'Heebo', system-ui, sans-serif;
  direction: rtl;
}
.ghc-nh-toast.show { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 1100px) {
  .ghc-nh-calc .charts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ghc-nh-calc .wrap { padding: 1.5rem 1.25rem; }
  .ghc-nh-calc .hdr h2 { font-size: 24px; }
  .ghc-nh-calc .partners { grid-template-columns: 1fr; }
  .ghc-nh-calc input.input-num { width: 110px; }
  .ghc-nh-calc .section-body { padding: 1rem 1.125rem 1.25rem; }
}
@media (max-width: 480px) {
  .ghc-nh-calc .wrap { padding: 1.25rem 1rem; }
  .ghc-nh-calc .hdr h2 { font-size: 22px; }
  .ghc-nh-calc .kpi { padding: 1rem; }
  .ghc-nh-calc .kpi-val { font-size: 19px; }
  .ghc-nh-calc .pl-table { font-size: 12px; }
  .ghc-nh-calc .pl-table th, .ghc-nh-calc .pl-table td { padding: 8px 10px; }
  .ghc-nh-calc .help-tip {
    right: auto;
    left: 50%;
    transform: translateX(50%);
    width: 240px;
  }
  .ghc-nh-calc .help-tip::after {
    right: auto;
    left: 50%;
    transform: translateX(50%);
  }
  .ghc-nh-calc .btn { font-size: 12px; padding: 8px 13px; }
}

@media print {
  .ghc-nh-calc .wrap { padding: 0; max-width: 100%; }
  .ghc-nh-calc .section summary { background: #f5f1e8 !important; }
  .ghc-nh-calc .actions, .ghc-nh-toast { display: none !important; }
  .ghc-nh-calc .section,
  .ghc-nh-calc .chart-card,
  .ghc-nh-calc .pl,
  .ghc-nh-calc .partner,
  .ghc-nh-calc .feas-section,
  .ghc-nh-calc .kpi {
    border: 1px solid #d5cfc0 !important;
    page-break-inside: avoid;
  }
  .ghc-nh-calc details[open] .chevron { transform: rotate(0deg); }
  .ghc-nh-calc .help-icon { display: none; }
}