/* ideaBOX — shared mobile/responsive layer (loaded on every page) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3 { overflow-wrap: break-word; }

/* ── Mobile navigation (burger + slide-down panel) ── */
.ibx-burger { display: none; }
.ibx-mnav { display: none; }
@media (max-width: 768px) {
  .ibx-burger {
    display: inline-flex !important; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-left: 6px; flex: none;
    background: transparent; border: 0; border-radius: 10px; cursor: pointer;
  }
  .ibx-burger:hover { background: #f1f5f2; }
  .ibx-burger span {
    display: block !important; width: 24px !important; height: 2px !important; margin: 0 !important;
    background: #0d2818 !important; border-radius: 2px; transition: transform .2s, opacity .2s;
  }
  .ibx-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ibx-burger.open span:nth-child(2) { opacity: 0; }
  .ibx-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .ibx-mnav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 300;
    background: #fff; border-top: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(13,40,24,.16);
    padding: 6px 20px 20px; max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .ibx-mnav[hidden] { display: none; }
  .ibx-mnav a {
    display: block; padding: 14px 4px; font-size: 16px; font-weight: 500; line-height: 1.3;
    color: #0d2818; text-decoration: none; border-bottom: 1px solid #eef2ef;
  }
  .ibx-mnav a:hover { color: #16a34a; }
  .ibx-mnav a.ibx-mnav-cta {
    margin-top: 16px; border: 0; border-radius: 10px; text-align: center;
    background: #0d2818; color: #fff; font-weight: 700; padding: 15px;
  }
}
@media (max-width: 480px) {
  nav .nav-inner > .nav-cta, .nav .nav-inner > .nav-cta { display: none !important; }
}

/* ── Inline-style grids: collapse on small screens ── */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3"], [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"], [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  [style*="grid-template-columns:1fr 1fr;gap:60px"], [style*="grid-template-columns:2fr 1fr;"],
  [style*="grid-template-columns:1fr 320px"], [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [style*="gap:60px"], [style*="gap: 60px"], [style*="gap:64px"], [style*="gap:80px"] { gap: 32px !important; }
}
@media (max-width: 640px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="padding:72px 24px"], [style*="padding:80px 24px"], [style*="padding:96px 24px"], [style*="padding:100px 24px"] {
    padding-top: 52px !important; padding-bottom: 52px !important;
  }
  [style*="padding:40px;"] { padding: 26px 20px !important; }
  [style*="display:flex"][style*="gap:16px"] { flex-wrap: wrap; }
  [style*="margin-right:12px"][style*="display:inline-block"] { margin: 0 0 10px !important; }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* ── Article extras (key takeaways + author box) ── */
.ibx-takeaways {
  margin: 0 0 36px; padding: 24px 26px; border-radius: 14px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #16a34a;
}
.ibx-takeaways h2 {
  font-size: 13px !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase;
  color: #15803d !important; margin: 0 0 12px !important;
}
.ibx-takeaways ul { margin: 0; padding-left: 20px; }
.ibx-takeaways li { font-size: 16px; line-height: 1.65; color: #1f2937; margin: 0 0 8px; }
.ibx-author {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px;
  border: 1px solid #e5e7eb; border-radius: 14px; background: #fafafa;
}
.ibx-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.ibx-author .ibx-author-name { font-size: 17px; font-weight: 800; color: #0d2818; margin: 0 0 2px; }
.ibx-author .ibx-author-role { font-size: 13px; font-weight: 700; color: #16a34a; margin: 0 0 8px; }
.ibx-author p { font-size: 14.5px; line-height: 1.65; color: #4b5563; margin: 0; }
.ibx-author a { color: #15803d; font-weight: 600; }
@media (max-width: 520px) { .ibx-author { flex-direction: column; } }
.ibx-article-body p { margin: 0 0 1.15em; }
.ibx-article-body ul, .ibx-article-body ol { margin: 0 0 1.15em; }

/* ── Mobile polish: menu, sticky action bar, forms, spacing ── */
@media (max-width: 768px) {
  html.ibx-menu-open { overflow: hidden; }
  .ibx-mnav-backdrop { position: fixed; inset: 0; background: rgba(8,24,15,.45); z-index: 99; }
  .ibx-mnav-backdrop[hidden] { display: none; }
  .ibx-mnav a[aria-current="page"] { color: #15803d; font-weight: 700; }
  .ibx-mnav a[aria-current="page"]::after { content: " •"; color: #22c55e; }
  input, select, textarea { font-size: 16px !important; }
  a, button { -webkit-tap-highlight-color: rgba(34,197,94,.15); }
  section[id] { scroll-margin-top: 84px; }
  body.ibx-has-bar { padding-bottom: 76px; }
  .ibx-mbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 250;
    display: flex; gap: 10px; align-items: center;
    padding: 8px; border-radius: 16px; background: rgba(13,40,24,.96);
    box-shadow: 0 12px 32px rgba(0,0,0,.28); backdrop-filter: blur(8px);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .ibx-mbar.show { transform: none; }
  .ibx-mbar a.ibx-mbar-cta {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: 11px; background: #22c55e; color: #06200f; font-weight: 800; font-size: 15.5px; text-decoration: none;
  }
  .ibx-mbar button {
    width: 48px; height: 48px; flex: none; border: 1px solid rgba(255,255,255,.2); border-radius: 11px;
    background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  }
}
@media (min-width: 769px) { .ibx-mbar, .ibx-mnav-backdrop { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ibx-mbar { transition: none; } html { scroll-behavior: auto !important; } }
