/* ==========================================================================
   MoneyCalc4All – shared IPO theme (loaded LAST on every IPO page)
   One place to change colours, radius and the mobile font scale for:
   /ipo/  ·  /ipo/{slug}/…  ·  /ipo/allotment/  ·  /ipo/ipo-grey-market-premium-latest-ipo-gmp/
   Load order matters: this file must come after every other stylesheet,
   including https://moneycalc4all.com/global-typography-mobile.css
   ========================================================================== */

:root{
  --brand-ink:#10213a;
  --brand-green:#0a8a63;
  --brand-green-dark:#05664a;
  --brand-amber:#f5b83d;
  --brand-line:#dde4ec;
  --brand-muted:#5b6b82;
  --brand-page:#eef2f6;
}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
img{max-width:100%}

/* ---- Desktop / tablet: slightly calmer headings than before ---- */
.hero h1{font-size:clamp(24px,3.2vw,36px)!important}
.hero p{font-size:15.5px}

/* ---- Tablet ---- */
@media(max-width:1020px){
  .hero h1{font-size:clamp(24px,4vw,32px)!important}
}

/* ---- Mobile type scale (phones, ≤700px) ---- */
@media(max-width:700px){
  body{font-size:15px;line-height:1.55}

  /* page titles + intro */
  .hero h1,.ssr-intro h1,.wrap>h1,h1{font-size:23px!important;line-height:1.2!important;letter-spacing:-.01em!important}
  .hero p,.lead{font-size:14px!important;line-height:1.55!important}

  /* section headings */
  main h2,main #details h2,main #company-financials h2,main #history h2,
  .wrap h2,.panel h2,.box h2,.card h2{font-size:18px!important;line-height:1.25!important}
  main h3,.wrap h3{font-size:15.5px!important}

  /* IPO listing cards */
  .stat strong{font-size:20px!important}
  .stat small{font-size:11.5px!important}
  .card h3{font-size:16px!important;line-height:1.25!important}
  .card .company-name small{font-size:12px!important}
  .company-logo,.company-logo-fallback{width:46px!important;height:46px!important;flex-basis:46px!important;font-size:13px!important;border-radius:10px!important}
  .badge{font-size:11px!important;padding:4px 9px!important}
  .when{font-size:13px!important}
  .facts small{font-size:11.5px!important}
  .facts strong,.card:not(.compact) .facts div:last-child strong{font-size:13.5px!important}
  .facts div:first-child strong{font-size:15px!important}
  .gmpbar strong{font-size:17px!important}
  .gmpbar small,.gmpbar a{font-size:12px!important}
  .btn{font-size:14px!important;padding:11px 14px!important}
  .filter{font-size:13px!important;padding:7px 13px!important}
  .toolbar input,.toolbar select{font-size:15px!important}  /* keep ≥15px so iOS does not zoom on focus */

  /* IPO details page */
  .hero .company-logo,.hero .company-logo-fallback{width:56px!important;height:56px!important;flex-basis:56px!important}
  .hero .key-metrics strong,main #details .hero .key-metrics strong{font-size:16.5px!important}
  .hero .key-metrics small,main #details .hero .key-metrics small{font-size:11.5px!important}
  .gmp-value{font-size:23px!important}
  .gmp-breakdown{font-size:13.5px!important;gap:6px 16px!important}
  .sub-glimpse-total,.sub-dashboard-head h3{font-size:23px!important}
  .sub-glimpse-card strong{font-size:16.5px!important}
  .sub-glimpse-head h2{font-size:18px!important}
  #ipo-overview-layout .overview-company-title{font-size:17px!important}
  #ipo-overview-layout #ipo-timeline h2{font-size:18px!important}
  .about-lead{font-size:15px!important}
  .side-facts h3,.fin-card h4,.fin-chart-box h3,.gmp-chart-box h3{font-size:15.5px!important}
  .research-section>h3{font-size:15px!important}
  .ipo-timeline-title{font-size:14px!important}
  main .grid .item small,.item small{font-size:12px!important}
  .item strong,main .grid .item strong{font-size:14px!important}
  td{font-size:13px!important}
  th{font-size:10.5px!important}
  main .ipo-tabs a,main>.ipo-tabs a{font-size:13px!important;padding:7px 13px!important}
  .allotment-cta p{font-size:13px!important}
  .allotment-button{font-size:14px!important}

  /* FAQ accordions */
  .faq-section h2{font-size:18px!important}
  .faq-item summary{font-size:14.5px!important;line-height:1.4!important}
  .faq-answer{font-size:14px!important;line-height:1.65!important}

  /* GMP tracker page + allotment page */
  .wrap table,table{font-size:13px}
  .link-card h3{font-size:15.5px!important}
  .link-card p,.notice,.fine,.muted{font-size:12.5px!important}
  .crumb{font-size:12.5px!important}
  .meta{font-size:12.5px!important}
  .button{font-size:14px!important;padding:11px 12px!important}
  .detail strong{font-size:14px!important}

  /* shared header (header.html is inline-styled, keep the bar compact) */
  #site-header .site-brand{font-size:1rem!important}
}

/* Very small phones */
@media(max-width:380px){
  .hero h1,.ssr-intro h1,.wrap>h1,h1{font-size:21px!important}
  .hero .key-metrics strong,main #details .hero .key-metrics strong{font-size:15px!important}
  .facts div:first-child strong{font-size:14px!important}
}

/* Respect users who prefer reduced motion */
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Unified navigation & mobile layout */
.fallback-nav{display:flex;flex-wrap:wrap;gap:8px;background:#082f27;padding:12px;color:white}.fallback-nav a{color:white;font-size:14px;padding:7px;text-decoration:none}.hero-predictor{display:inline-flex;align-items:center;justify-content:center;margin-top:15px;min-height:44px;padding:10px 16px;border-radius:10px;background:#ffda75;color:#082f27!important;text-decoration:none;font-weight:800}.hero-predictor:hover{background:#ffe6a0}button,input,select{max-width:100%}main,section,article{min-width:0}svg{max-width:100%}@media(max-width:700px){.hero-predictor{display:flex;width:100%;text-align:center}.field{min-width:0!important}.toolbar input,.toolbar select{font-size:16px!important}.predictor-promo h2{font-size:23px!important}.predictor-cta{display:flex!important;justify-content:center;text-align:center;min-height:44px}.ad-slot:has(>.ad-ph),.ad-anchor:has(.ad-ph){display:none!important}body.has-anchor{padding-bottom:0!important}}
