/* re-chrome.css — 5a header + footer chrome injected on every non-5a public
 * page. Scoped under .re-chrome so it does NOT leak into page content styles.
 * Fonts are enqueued separately via re-chrome.php. */

.re-chrome {
  --re-gutter: max(48px, calc((100vw - 1184px) / 2));
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #101828;
  -webkit-font-smoothing: antialiased;
}
.re-chrome a { color: inherit; text-decoration: none; }
.re-chrome img { max-width: 100%; height: auto; display: block; }
.re-chrome * { box-sizing: border-box; }

/* ---------- Govt strip ---------- */
.re-chrome .re-govt {
  background: #0B4EA2;
  color: rgba(255,255,255,.85);
  font-size: 11.5px;
  letter-spacing: .4px;
  padding: 8px var(--re-gutter);
}
.re-chrome .re-govt__inner {
  display: flex; flex-direction: row;
  justify-content: space-between;
  align-items: center; gap: 18px;
}
.re-chrome .re-govt__left,
.re-chrome .re-govt__right {
  display: inline-flex; flex-direction: row; align-items: center; gap: 18px;
}
.re-chrome .re-govt__right a { color: rgba(255,255,255,.85); }
.re-chrome .re-govt__right a:hover { color: #fff; }

/* ---------- Header ---------- */
.re-chrome .re-header {
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  padding: 14px var(--re-gutter);
  display: flex; flex-direction: row;
  align-items: center; justify-content: space-between;
}
.re-chrome .re-header__inner {
  flex: 1;
  display: flex; flex-direction: row;
  align-items: center; justify-content: space-between; gap: 24px;
}
.re-chrome .re-header__logos {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
}
.re-chrome .re-header__logo--it,
.re-chrome .re-header__logo--tr,
.re-chrome .re-header__logo--emb {
  display: inline-flex; align-items: center;
}
.re-chrome .re-header__logos img { width: auto; display: block; }
.re-chrome .re-header__logo--it img { height: 56px; }
.re-chrome .re-header__logo--tr img { height: 50px; }
.re-chrome .re-header__logo--emb img { height: 44px; }
.re-chrome .re-header__logo--tr::before,
.re-chrome .re-header__logo--emb::before {
  content: ''; display: block; width: 1px; height: 40px;
  background: #e4e7ec; margin-right: 16px; flex: none;
}
.re-chrome .re-header__nav-wrap {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
}

/* Invest Telangana logo placeholder (matches home page's temp rule) */
.re-chrome .re-header__logo--it img,
.re-chrome .re-footer__logo--it img {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><rect width='120' height='120' fill='%23d0d5dd'/></svg>") !important;
  background: #d0d5dd !important;
  object-fit: cover !important;
}

/* ---------- Nav (desktop) ---------- */
.re-chrome .re-nav {
  display: flex; flex-direction: row; align-items: center;
  gap: 2px; font-size: 13.5px; font-weight: 600; color: #344054;
}
.re-chrome .re-nav__item { position: relative; }
.re-chrome .re-nav__label {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; cursor: pointer;
  border: 0; background: transparent;
  font: inherit; color: inherit;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.re-chrome .re-nav__label:hover,
.re-chrome .re-nav__item.is-open .re-nav__label {
  color: #0B4EA2; border-bottom-color: #F26522;
}
.re-chrome .re-nav__caret {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-size: 16px; color: #98a2b3; line-height: 1;
}
.re-chrome .re-nav__label::after { display: none; } /* fallback caret hidden if MS font missing */
.re-chrome .re-nav__dropdown {
  position: absolute; top: 100%; right: 0;
  display: none;
  background: #fff; border: 1px solid #e4e7ec;
  box-shadow: 0 20px 48px rgba(16,24,40,.12);
  padding: 8px; z-index: 60;
  min-width: 250px;
  grid-template-columns: var(--cols, 1fr);
  gap: 2px;
}
.re-chrome .re-nav__item.is-open .re-nav__dropdown {
  display: grid;
}
.re-chrome .re-nav__dropdown a {
  display: block; padding: 10px 12px;
  font-size: 13px; font-weight: 600; color: #344054;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.re-chrome .re-nav__dropdown a:hover {
  background: #f5f8fd; color: #0B4EA2; border-left-color: #F26522;
}

/* Burger (mobile) */
.re-chrome .re-nav__burger {
  display: none;
  background: none; border: 0; padding: 8px 12px;
  font-size: 20px; color: #101828;
  cursor: pointer;
}

/* Start Investing CTA */
.re-chrome .re-header__cta a,
.re-chrome .re-header__cta button {
  display: inline-block; background: #F26522; color: #fff;
  padding: 12px 22px; font-weight: 700; font-size: 13.5px;
  letter-spacing: .3px; border: 0; text-decoration: none;
  transition: background .15s ease;
}
.re-chrome .re-header__cta a:hover,
.re-chrome .re-header__cta button:hover { background: #d9571a; }

/* ---------- Footer (mirrors home page re-home.css rules) ---------- */
.re-chrome .re-footer {
  background: #0B4EA2; color: rgba(255,255,255,.8);
  padding: 28px var(--re-gutter);
  font-size: 12px;
}
.re-chrome .re-footer__inner {
  display: flex; flex-direction: row; justify-content: space-between;
  align-items: center; gap: 12px; flex-wrap: wrap;
}
.re-chrome .re-footer__left {
  display: flex; flex-direction: row; gap: 14px;
  align-items: center; flex-wrap: wrap;
}
/* White pill around the 3-logo strip on the left */
.re-chrome .re-footer__logos {
  display: inline-flex; flex-direction: row; align-items: center; gap: 14px;
  background: #fff; padding: 14px 20px;
  border-radius: 10px;
  width: fit-content;
}
.re-chrome .re-footer__logo--it,
.re-chrome .re-footer__logo--tr,
.re-chrome .re-footer__logo--emb {
  flex: none; display: flex; align-items: center;
  padding: 0; margin: 0;
}
.re-chrome .re-footer__logos img { width: auto; display: block; }
.re-chrome .re-footer__logo--it img { height: 40px; }
.re-chrome .re-footer__logo--tr img { height: 36px; }
.re-chrome .re-footer__logo--emb img { height: 32px; }
.re-chrome .re-footer__logo--tr::before,
.re-chrome .re-footer__logo--emb::before {
  content: ''; display: block; width: 1px; height: 30px;
  background: #e4e7ec; margin-right: 12px; flex: none;
}
.re-chrome .re-footer__copy { color: rgba(255,255,255,.8); }
.re-chrome .re-footer__copy-block {
  display: flex; flex-direction: column; gap: 4px; line-height: 1.4;
}
.re-chrome .re-footer__developed {
  font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .2px;
}
.re-chrome .re-footer__developed a {
  color: rgba(255,255,255,.9); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  transition: color .15s ease, border-color .15s ease;
}
.re-chrome .re-footer__developed a:hover { color: #fff; border-bottom-color: #fff; }
.re-chrome .re-footer__links {
  display: flex; flex-direction: row; gap: 20px; flex-wrap: wrap;
}
.re-chrome .re-footer__links span,
.re-chrome .re-footer__links a { color: rgba(255,255,255,.8); }
.re-chrome .re-footer__links a:hover { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .re-chrome .re-govt__inner { flex-direction: column; gap: 6px; text-align: center; }
  .re-chrome .re-header__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .re-chrome .re-header__logos { justify-content: center; }
  .re-chrome .re-nav__burger { display: inline-flex; align-items: center; }
  .re-chrome .re-nav { display: none; flex-direction: column; gap: 0; }
  .re-chrome .re-nav.is-mobile-open { display: flex; }
  .re-chrome .re-nav__dropdown { position: static; box-shadow: none; border: 0; }

  .re-chrome .re-header__logo--it img { height: 40px; }
  .re-chrome .re-header__logo--tr img { height: 34px; }
  .re-chrome .re-header__logo--emb img { height: 28px; }

  .re-chrome .re-footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* --- Preloader Plus override --- 
   Preloader Plus ships CSS that zeros out every body child until it adds
   .complete to <body> on window.load. On slow / lazy-load pages that trigger
   sometimes never fires. Force every body child (except the preloader spinner
   itself) fully visible immediately. */
body > *:not(.preloader-plus) {
  opacity: 1 !important;
  transition: none !important;
}
.preloader-plus,
.preloader-plus-container,
.preloader-plus-overlay,
.pp-loader,
#preloader-plus {
  display: none !important;
}
html, body { overflow: auto !important; height: auto !important; }

/* Legacy header/footer section removal happens surgically per-page in the DB
   (see it_strip_legacy_chrome.py) — sections are matched by the "Developed by
   Outshade Digital Media" copyright text and the shared 'textiles-spoc' class,
   not by position, so real sector content is never touched. */
