/* ===========================================================================
   site-nav.css - the navigation and data-table styling that 152 pages lacked.

   The site had drifted into two designs. Seventeen pages - the homepage,
   dubai-vs-india and the other recently rebuilt ones - carry a sticky nav with
   the full link set and a hamburger on mobile. The other 152 carry a bare logo
   and nothing else, so a visitor who lands on a comparison page from search has
   no way to reach anything.

   The nav CSS lived inline on each of those seventeen pages. Copying it onto
   152 more would be 1.5 KB duplicated 152 times and impossible to change
   afterwards, so it lives here instead, cached once.

   Self-contained on purpose: it declares the handful of custom properties it
   needs under its own names, so it renders identically whether the page it is
   dropped into uses theme.css, an inline block, or neither.
   =========================================================================== */

:root {
  --mpc-indigo: #4f46e5;
  --mpc-indigo-l: #eef2ff;
  --mpc-slate-200: #e2e8f0;
  --mpc-slate-300: #cbd5e1;
  --mpc-slate-500: #64748b;
  --mpc-slate-600: #475569;
  --mpc-slate-700: #334155;
  --mpc-slate-900: #0f172a;
  --mpc-surface: #ffffff;
  --mpc-stripe: #f8fafc;
  --mpc-shadow: 0 4px 24px rgba(0, 0, 0, .07);
}

/* ---------- navigation ---------- */
.mpc-nav {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mpc-slate-200);
}
.mpc-nav .nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.mpc-nav .nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
  text-decoration: none; color: var(--mpc-slate-900);
}
.mpc-nav .logo-icon {
  background: var(--mpc-indigo); color: #fff; width: 32px; height: 32px;
  border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.mpc-nav .nav-logo strong { color: var(--mpc-indigo); }
.mpc-nav .nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mpc-nav .nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--mpc-slate-700); border-radius: 2px;
}
.mpc-nav .nav-links {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.mpc-nav .nav-links::-webkit-scrollbar { display: none; }
.mpc-nav .nav-links a {
  white-space: nowrap; font-size: 12.5px; font-weight: 700;
  padding: 7px 11px; border-radius: 9px;
  color: var(--mpc-slate-600); text-decoration: none;
}
.mpc-nav .nav-links a:hover,
.mpc-nav .nav-links a.active {
  background: var(--mpc-indigo-l); color: var(--mpc-indigo);
}

@media (max-width: 820px) {
  .mpc-nav .nav-hamburger { display: flex; }
  .mpc-nav .nav-links {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--mpc-slate-200);
    flex-direction: column; align-items: stretch;
    padding: 8px 16px 16px; box-shadow: var(--mpc-shadow);
    max-height: 70vh; overflow-y: auto;
  }
  .mpc-nav .nav-links.open { display: flex; }
  .mpc-nav .nav-links a { padding: 12px 16px; font-size: 15px; border-radius: 12px; }
}

/* ---------- data tables ----------
   The comparison tables were rendering with browser defaults: no rules, no
   alignment, numbers in a proportional font so columns of prices did not line
   up. A price table is the product on these pages, so it gets treated as one.  */
.prose .table-scroll,
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 22px; }

table.cmp {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 14.5px; background: var(--mpc-surface);
  border: 1px solid var(--mpc-slate-200); border-radius: 12px;
  overflow: hidden; min-width: 560px;
}
table.cmp caption {
  caption-side: top; text-align: left; padding: 0 2px 10px;
  font-size: 13px; color: var(--mpc-slate-500); line-height: 1.5;
}
table.cmp thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--mpc-stripe); color: var(--mpc-slate-700);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; text-align: left;
  padding: 11px 14px; border-bottom: 1px solid var(--mpc-slate-200);
  white-space: nowrap;
}
table.cmp tbody td {
  padding: 11px 14px; border-bottom: 1px solid var(--mpc-slate-200);
  color: var(--mpc-slate-700); vertical-align: middle;
}
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:nth-child(even) { background: var(--mpc-stripe); }
table.cmp tbody tr:hover { background: var(--mpc-indigo-l); }
table.cmp td:first-child,
table.cmp th:first-child { width: 36px; color: var(--mpc-slate-500); text-align: right; }
table.cmp td b { color: var(--mpc-slate-900); font-weight: 650; }

/* Prices and percentages: tabular figures so digits line up down the column. */
table.cmp td:nth-child(n+3) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
table.cmp .up { color: #b91c1c; font-weight: 650; }
table.cmp .down { color: #15803d; font-weight: 650; }

/* ---------- callout ---------- */
.prose .notice, .notice {
  border: 1px solid var(--mpc-slate-200); border-left: 3px solid var(--mpc-indigo);
  background: var(--mpc-stripe); border-radius: 10px;
  padding: 13px 16px; margin: 18px 0;
}
.prose .notice p, .notice p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* On a phone a six-column price table cannot fit, so each row becomes a card
   with the column name as a label. Tested at 375px. */
@media (max-width: 640px) {
  table.cmp { min-width: 0; border: 0; }
  /* The table becomes display:block for the card layout, which leaves a
     table-caption shrink-wrapping to about 86px and wrapping every two words. */
  table.cmp caption { display: block; width: auto; padding-bottom: 12px; }
  table.cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; width: auto; }
  table.cmp tr {
    border: 1px solid var(--mpc-slate-200); border-radius: 12px;
    background: var(--mpc-surface); margin-bottom: 10px; padding: 6px 4px;
  }
  table.cmp tbody tr:nth-child(even) { background: var(--mpc-surface); }
  table.cmp td { border-bottom: 0; padding: 5px 13px; white-space: normal; }
  table.cmp td:first-child { display: none; }
  table.cmp td[data-label]::before {
    content: attr(data-label) " ";
    display: inline-block; min-width: 108px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--mpc-slate-500);
  }
  table.cmp td:nth-child(2) { font-size: 16px; padding-top: 9px; }
  table.cmp td:nth-child(2)::before { content: ""; min-width: 0; }
  .table-scroll { overflow-x: visible; }
}


/* --- mobile touch targets and table scroll affordance (added 2026-11-16) --- */
@media (pointer:coarse){
  nav a,.dc-nav-links a,.nav-links a,.site-nav a,footer a,.footer-col a{
    padding-top:10px;padding-bottom:10px;
  }
  button,.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]){
    min-height:44px;
  }
}
.table-scroll{
  background:
    linear-gradient(to right,#fff 30%,rgba(255,255,255,0)) left center,
    linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right center,
    radial-gradient(farthest-side at 0 50%,rgba(15,23,42,.14),rgba(15,23,42,0)) left center,
    radial-gradient(farthest-side at 100% 50%,rgba(15,23,42,.14),rgba(15,23,42,0)) right center;
  background-repeat:no-repeat;
  background-size:30px 100%,30px 100%,15px 100%,15px 100%;
  background-attachment:local,local,scroll,scroll;
  -webkit-overflow-scrolling:touch;
}
