/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── WRAPPER — body isolation, no global body rules ── */
#inh-art-wrapper {
  --g:    #1a6b4a;
  --gd:   #0f4530;
  --gp:   #edf5f0;
  --go:   #b8d8c6;
  --gold: #b8860b;
  --glp:  #fdf6e3;
  --gap:  #f5e9c0;
  --cr:   #faf8f4;
  --bd:   #ddd8ce;
  --tx:   #2a2a2a;
  --mu:   #6b6560;
  --sf:   'Playfair Display', Georgia, serif;
  --ar:   'Amiri', serif;
  --r:    10px;
  --sh:   0 2px 14px rgba(0,0,0,.07);

  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tx);
  background: #f9f7f3;
  min-height: 100vh;
  overflow-x: hidden; /* hard stop on any horizontal overflow */
  width: 100%;
}

/* ── CALCULATOR PLACEHOLDER ── */
.inh-art-calc-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  background: linear-gradient(135deg, var(--gd) 0%, var(--g) 60%, #2e8b68 100%);
  position: relative;
  overflow: hidden;
}
.inh-art-calc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.inh-art-calc-ph {
  text-align: center;
  color: rgba(255,255,255,.85);
  position: relative;
  z-index: 1;
  padding: 36px 16px;
  width: 100%;
}
.inh-art-calc-ph .inh-art-bis {
  font-family: var(--ar);
  font-size: clamp(1.3rem, 5vw, 2rem);
  color: #e8c96a;
  display: block;
  margin-bottom: 8px;
}
.inh-art-calc-ph h2 {
  font-family: var(--sf);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.inh-art-calc-ph p {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  font-style: italic;
}

/* ── ARTICLE PAGE — single centred column ── */
.inh-art-page {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ── BREADCRUMB ── */
.inh-art-bc {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  padding: 14px 0 8px;
  font-size: 0.72rem;
  color: var(--mu);
}
.inh-art-bc a { color: var(--g); text-decoration: none; }
.inh-art-bc a:hover { text-decoration: underline; }
.inh-art-bc-sep { color: #ccc; }

/* ── ARTICLE HEADER ── */
.inh-art-hdr {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 28px;
  background: none;
}
.inh-art-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gp);
  color: var(--gd);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--go);
  margin-bottom: 12px;
}
.inh-art-hdr h1 {
  font-family: var(--sf);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gd);
  margin-bottom: 12px;
}
.inh-art-sub {
  font-size: 0.97rem;
  color: var(--mu);
  line-height: 1.65;
  margin-bottom: 16px;
}
.inh-art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.72rem;
  color: var(--mu);
}

/* ── CONTENT TYPOGRAPHY ── */
.inh-art-content h2 {
  font-family: var(--sf);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 700;
  color: var(--gd);
  margin: 32px 0 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gp);
  line-height: 1.25;
}
.inh-art-content h2:first-child { margin-top: 0; }

.inh-art-content h3 {
  font-family: var(--sf);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--g);
  margin: 22px 0 7px;
}

.inh-art-content p {
  font-size: 0.96rem;
  color: var(--tx);
  margin-bottom: 13px;
  line-height: 1.75;
}
.inh-art-content p:last-child { margin-bottom: 0; }
.inh-art-content strong { color: var(--gd); font-weight: 600; }
.inh-art-content em { font-style: italic; }
.inh-art-content a { color: var(--g); font-weight: 600; }

/* ── CALLOUT BOXES ── */
.inh-art-callout {
  display: flex;
  gap: 10px;
  border-radius: var(--r);
  padding: 13px 14px;
  margin: 18px 0;
  line-height: 1.65;
}
.inh-art-callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.inh-art-callout-body p { margin-bottom: 5px; font-size: 0.86rem; }
.inh-art-callout-body p:last-child { margin-bottom: 0; }
.inh-art-callout.green { background: var(--gp); border-left: 4px solid var(--g); color: #0d3d2a; }
.inh-art-callout.gold  { background: var(--glp); border-left: 4px solid var(--gold); color: #5a3d00; }

/* ── SUMMARY TABLE ── */
.inh-art-tbl-wrap { margin: 28px 0; }
.inh-art-tbl-title {
  font-family: var(--sf);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gd);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inh-art-tbl-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
/* Scroll wrapper — the key to mobile table behaviour */
.inh-art-tbl-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.inh-art-tbl {
  border-collapse: collapse;
  font-size: 0.83rem;
  background: #fff;
  /* min-width forces scroll on tiny screens instead of squashing */
  min-width: 480px;
  width: 100%;
}
.inh-art-tbl thead th {
  background: var(--gd);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.inh-art-tbl tbody tr:nth-child(even) { background: var(--cr); }
.inh-art-tbl tbody tr:nth-child(odd)  { background: #fff; }
.inh-art-tbl tbody tr:hover { background: var(--gp); }
.inh-art-tbl td {
  padding: 9px 12px;
  border-bottom: 1px solid #ede9e0;
  vertical-align: middle;
  color: var(--tx);
}
.inh-art-tbl td:first-child { font-weight: 600; color: var(--gd); }
.inh-art-badge {
  display: inline-block;
  background: var(--gap);
  color: #6b4d00;
  border: 1px solid #d4b87a;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: monospace;
  white-space: nowrap;
}

/* ── PIE CHART (CSS-only) ── */
.inh-art-chart {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 18px 16px;
  margin: 28px 0;
}
.inh-art-chart-h {
  font-family: var(--sf);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gd);
  margin-bottom: 4px;
}
.inh-art-chart-sub {
  font-size: 0.74rem;
  color: var(--mu);
  font-style: italic;
  margin-bottom: 18px;
}
.inh-art-chart-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.inh-art-pie {
  width: 140px; height: 140px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: conic-gradient(
    #b8860b 0% 12.5%,
    #1a6b4a 12.5% 70.8%,
    #2e8b68 70.8% 100%
  );
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.inh-art-pie::after {
  content: 'Example\AEstate';
  position: absolute; inset: 25%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--mu);
  text-align: center;
  white-space: pre;
  line-height: 1.4;
}
.inh-art-legend { display: flex; flex-direction: column; gap: 9px; }
.inh-art-legend-row { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; }
.inh-art-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.inh-art-legend-lbl { flex: 1; color: var(--tx); }
.inh-art-legend-pct { font-weight: 700; color: var(--gd); font-family: monospace; font-size: 0.88rem; }
.inh-art-chart-note { font-size: 0.7rem; color: var(--mu); text-align: center; margin-top: 14px; font-style: italic; }

/* ── RELATED TOOLS STRIP (inline, no sidebar) ── */
.inh-art-tools {
  background: var(--glp);
  border: 1px solid #e0cc8a;
  border-radius: var(--r);
  padding: 16px;
  margin: 28px 0;
}
.inh-art-tools-h {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b4d00;
  margin-bottom: 10px;
}
.inh-art-tools-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.inh-art-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #e0cc8a;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.79rem;
  color: #5a3d00;
  text-decoration: none;
  transition: background .12s;
}
.inh-art-tool-link:hover { background: var(--gap); }

/* ── FAQ ── */
.inh-art-faq-section { margin: 32px 0 0; }
.inh-art-faq-title {
  font-family: var(--sf);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  color: var(--gd);
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gp);
}
.inh-art-faq-item {
  border: 1px solid var(--bd);
  border-radius: var(--r);
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.inh-art-faq-q {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: none;
  border: none;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gd);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  transition: background .12s;
}
.inh-art-faq-q:hover { background: var(--gp); }
.inh-art-faq-icon {
  font-size: 1.1rem;
  color: var(--g);
  flex-shrink: 0;
  transition: transform .22s;
  line-height: 1;
}
.inh-art-faq-item.inh-art-open .inh-art-faq-icon { transform: rotate(45deg); }
.inh-art-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, padding .2s;
  padding: 0 14px;
}
.inh-art-faq-item.inh-art-open .inh-art-faq-a { max-height: 400px; padding: 4px 14px 14px; }
.inh-art-faq-a p { font-size: 0.87rem; color: var(--tx); line-height: 1.72; margin: 0; }

/* ── DISCLAIMER ── */
.inh-art-disc {
  margin-top: 32px;
  background: #fff4f4;
  border-left: 4px solid #c0392b;
  border-radius: 0 var(--r) var(--r) 0;
  padding: 12px 14px;
  font-size: 0.79rem;
  color: #6b2020;
  line-height: 1.65;
}
.inh-art-disc strong { display: block; margin-bottom: 3px; }

/* ── FOOTER ── */
.inh-art-footer {
  background: var(--gd);
  color: rgba(255,255,255,.72);
  text-align: center;
  padding: 22px 16px;
  font-size: 0.74rem;
}
.inh-art-footer .inh-art-bis {
  font-family: var(--ar);
  font-size: 1.1rem;
  color: #e8c96a;
  display: block;
  margin-bottom: 6px;
}
.inh-art-footer p + p { margin-top: 4px; opacity: .5; font-size: 0.68rem; }