/* WordPress integration + responsive IPO detail styles */
/* Mobile primary navigation */
@media(max-width:560px){.site-header .nav .site-nav{display:flex!important}.site-header .nav{width:min(100% - 24px,1160px)}}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.light body{background:#f5f7fb;color:#101828}
.admin-bar .site-header{top:32px}

/* Dedicated IPO page */
.single-ipo-page{padding:52px 0 96px;min-height:60vh}
.single-layout{display:grid;grid-template-columns:minmax(0,900px);gap:0;align-items:start;justify-content:center}
.single-ipo-main{min-width:0}
.single-ipo-main h1{font:800 clamp(38px,5vw,62px)/1.05 Manrope;letter-spacing:-2.5px;margin:0 0 8px;color:#eef3fb}
html.light body .single-ipo-main h1{color:#101828}
.single-ipo-main .ipo-meta{font-size:14px;margin:0 0 25px;color:#8995a9}
.back-link{display:inline-block;margin-bottom:24px;color:#8f79ff;text-decoration:none;font-weight:700}
.back-link:hover{text-decoration:underline}
.single-gmp{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:1px;background:#29364b;border:1px solid #29364b;border-radius:16px;overflow:hidden;margin:24px 0}
.single-gmp>div{background:#0e1826;padding:20px}
html.light body .single-gmp{background:#d9e1ec;border-color:#d9e1ec}
html.light body .single-gmp>div{background:#fff}
.single-gmp span{display:block;color:#77859a;font-size:9px;letter-spacing:1px;text-transform:uppercase}
.single-gmp strong{display:block;color:#5fe2be;font:800 30px Manrope;margin-top:6px}
.single-gmp b{display:block;font:800 18px Manrope;margin-top:9px}
.content-section{margin-top:30px;border:1px solid #233149;background:#0e1725;border-radius:16px;padding:26px 28px}
html.light body .content-section{background:#fff;border-color:#e0e6ef;box-shadow:0 8px 30px rgba(16,24,40,.035)}
.content-section h2{font:800 21px Manrope;margin:0 0 15px;color:#eef3fb}
html.light body .content-section h2{color:#101828}
.content-section p,.rich-content{color:#9aa7b9;font-size:14px;line-height:1.85}
html.light body .content-section p,html.light body .rich-content{color:#667085}
.detail-table{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:#28364b;border:1px solid #28364b;border-radius:10px;overflow:hidden}
.detail-table div{background:#101a29;padding:15px}
html.light body .detail-table{background:#e0e6ef;border-color:#e0e6ef}
html.light body .detail-table div{background:#fff}
.detail-table span{display:block;color:#77859a;font-size:9px;text-transform:uppercase;letter-spacing:.7px;margin-bottom:5px}
.detail-table b{font-size:13px;color:#eef3fb}
html.light body .detail-table b{color:#101828}
.gmp-callout{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #2d4550;background:#0b1820;border-radius:12px;padding:16px}
html.light body .gmp-callout{background:#f4fbf8;border-color:#cfe9df}
.gmp-callout strong{color:#4ed5b0;font-size:20px}
.gmp-callout span{color:#8995a9;font-size:12px}
.large-highlights{font-size:14px;line-height:1.8;color:#9aa7b9}
html.light body .large-highlights{color:#667085}
.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.timeline div{border:1px solid #27364b;border-radius:11px;padding:15px;background:#101a29}
html.light body .timeline div{border-color:#e0e6ef;background:#fff}
.timeline b{display:block;font-size:11px;color:#eef3fb}
html.light body .timeline b{color:#101828}
.timeline span{display:block;color:#8995a9;font-size:11px;margin-top:7px}

/* Archive directory matches the main IPO directory */
.ipo-archive-page{padding:62px 0 90px}
.ipo-archive-page .archive-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}
.ipo-archive-page h1{font:800 clamp(40px,6vw,62px)/1.05 Manrope;letter-spacing:-2px;margin:0;color:#eef3fb}
html.light body .ipo-archive-page h1{color:#101828}
.archive-subtitle{color:#8995a9;max-width:680px;margin:10px 0 0;font-size:14px}
.ipo-archive-page .ipo-card{height:100%;display:flex;flex-direction:column}
.ipo-archive-page .view-btn{margin-top:auto}

@media(max-width:1120px){
  .single-layout{grid-template-columns:minmax(0,820px)}
}
@media(max-width:850px){
  .admin-bar .site-header{top:46px}
  .ipo-archive-page .archive-heading{align-items:start;flex-direction:column}
}
@media(max-width:600px){
  .single-ipo-page{padding:30px 0 60px}
  .single-ipo-main h1{font-size:38px;letter-spacing:-1.7px}
  .single-gmp{grid-template-columns:1fr}
  .single-gmp>div{padding:15px}
  .detail-table{grid-template-columns:1fr}
  .content-section{padding:20px}
  .timeline{grid-template-columns:1fr 1fr}
  .gmp-callout{align-items:flex-start;flex-direction:column}
}

/* v8 clean SEO-friendly directory pages */
.directory-intro{margin:0 0 24px;border:1px solid #233149;background:#0e1725;color:#9aa7b9;border-radius:12px;padding:14px 17px;font-size:12px}
.directory-intro strong{color:#eef3fb}
html.light body .directory-intro{background:#fff;border-color:#e0e6ef;color:#667085}
html.light body .directory-intro strong{color:#101828}
.ipo-pagination{display:flex;justify-content:center;margin-top:35px}
.ipo-pagination .page-numbers{display:flex;gap:7px;list-style:none;margin:0;padding:0;align-items:center}
.ipo-pagination a,.ipo-pagination span{display:inline-flex;min-width:38px;height:38px;padding:0 12px;align-items:center;justify-content:center;border:1px solid #29384f;border-radius:9px;color:#aeb9ca;text-decoration:none;font-size:12px;font-weight:700;background:#0e1725}
.ipo-pagination .current{background:#8a72ff;color:#fff;border-color:#8a72ff}
html.light body .ipo-pagination a,html.light body .ipo-pagination span{background:#fff;border-color:#dfe5ee;color:#667085}
html.light body .ipo-pagination .current{background:#8a72ff;color:#fff;border-color:#8a72ff}
.guide-cards-page{grid-template-columns:repeat(3,1fr)}
.guide-cards-page article h2{font:800 20px Manrope;margin:14px 0 7px}
@media(max-width:850px){.guide-cards-page{grid-template-columns:1fr}}

/* Inline IPO Directory links on Subscription and Allotment pages.
 * Keep the treatment consistent and clearly readable in both themes.
 */
.directory-inline-link{
  color:#9a86ff;
  font-weight:800;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  transition:color .18s ease;
}
.directory-inline-link:hover{color:#b0a0ff}
.directory-inline-link:focus-visible{outline:3px solid rgba(143,121,255,.28);outline-offset:3px;border-radius:3px}
html.light body .directory-inline-link{color:#5b45c7}
html.light body .directory-inline-link:hover{color:#4733a8}

/* Subscription dashboard */
.subscription-table-wrap{width:100%}
.subscription-table{min-width:980px}
.subscription-table th,.subscription-table td{vertical-align:middle}
.subscription-table td{white-space:nowrap}
.subscription-table td:first-child{white-space:normal;min-width:180px}
.subscription-table td:first-child strong{font-size:12px}
.subscription-table td:first-child small{display:block;margin-top:3px}
.subscription-ipo-link{color:inherit;text-decoration:none}
.subscription-ipo-link:hover{color:#8f79ff}
.subscription-total{color:#55d7b4;font-weight:800}
.subscription-updated{font-size:11px;color:#8995a9}
.subscription-empty{text-align:center!important;padding:30px!important;color:#8995a9}
.subscription-note{font-size:11px!important;color:#8995a9!important}
.subscription-detail-table{grid-template-columns:repeat(3,1fr)}
@media(max-width:700px){.subscription-detail-table{grid-template-columns:1fr 1fr}}

/* IPO directory search */
.directory-search{display:flex;align-items:center;gap:10px;margin:0 0 22px;max-width:720px}
.directory-search .search-box{flex:1;width:auto;min-height:46px}
.directory-search .search-box>span{font-size:16px;line-height:1;opacity:.8}
.directory-search-submit{border:0;border-radius:9px;background:#8a72ff;color:#fff;padding:10px 15px;font:700 12px "DM Sans";cursor:pointer;white-space:nowrap}
.directory-search-submit:hover{background:#7b63f0}
.directory-search-clear{color:#8f79ff;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}
.directory-search-clear:hover{text-decoration:underline}
@media(max-width:600px){.directory-search{align-items:stretch;flex-wrap:wrap}.directory-search .search-box{width:100%;flex-basis:100%}.directory-search-submit{flex:1}.directory-search-clear{display:inline-flex;align-items:center;padding:0 8px}}

/* Search box focus polish: keep the focus state on the complete control instead of drawing a second box around the input. */
.search-box:focus-within{border-color:#8a72ff;box-shadow:0 0 0 3px rgba(138,114,255,.16)}
.search-box input:focus,.search-box input:focus-visible{outline:0!important;box-shadow:none!important}
.search-box input{-webkit-appearance:none;appearance:none}

/* Pagination navigation polish: clearer Previous/Next controls across all paginated pages. */
.ipo-pagination .page-numbers .prev,
.ipo-pagination .page-numbers .next{
  min-width:104px;
  height:40px;
  padding:0 15px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:0;
  color:#667085;
  background:#fff;
  border:1px solid #d5ddea;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  white-space:nowrap;
}
.ipo-pagination .page-numbers .prev:hover,
.ipo-pagination .page-numbers .next:hover{
  color:#5743c8;
  border-color:#b9aefe;
  background:#faf9ff;
  box-shadow:0 3px 10px rgba(87,67,200,.08);
  transform:translateY(-1px);
}
.ipo-pagination .page-numbers .prev:focus-visible,
.ipo-pagination .page-numbers .next:focus-visible{
  outline:3px solid rgba(143,121,255,.28);
  outline-offset:2px;
}
.ipo-pagination .page-numbers .current{
  min-width:40px;
  height:40px;
  border-radius:10px;
}
.ipo-pagination .page-numbers .dots{
  min-width:32px;
  padding:0 6px;
  border-color:transparent;
  background:transparent;
  color:#98a2b3;
}
html:not(.light) .ipo-pagination .page-numbers .prev,
html:not(.light) .ipo-pagination .page-numbers .next{
  color:#c5cfdd;
  background:#101a29;
  border-color:#34445d;
  box-shadow:none;
}
html:not(.light) .ipo-pagination .page-numbers .prev:hover,
html:not(.light) .ipo-pagination .page-numbers .next:hover{
  color:#b9adff;
  border-color:#7161c9;
  background:#171f31;
}
html:not(.light) .ipo-pagination .page-numbers .dots{
  background:transparent;
  border-color:transparent;
  color:#7f8ba0;
}
@media(max-width:560px){
  .ipo-pagination{margin-top:28px;overflow-x:auto;justify-content:flex-start;padding:2px 2px 5px;scrollbar-width:thin}
  .ipo-pagination .page-numbers{gap:6px;flex-wrap:nowrap;min-width:max-content}
  .ipo-pagination .page-numbers .prev,
  .ipo-pagination .page-numbers .next{min-width:94px;height:38px;padding:0 12px;font-size:12px}
  .ipo-pagination .page-numbers .current,
  .ipo-pagination a.page-numbers:not(.prev):not(.next){height:38px;min-width:38px}
}

/* IPO allotment CTA: compact, premium card that matches the site's purple/teal palette in both themes. */
.allotment-action{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:18px;padding:14px 15px;border:1px solid #2a3950;background:linear-gradient(135deg,#111d2c,#101a29);border-radius:13px}
.allotment-action-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:rgba(95,226,190,.10);border:1px solid rgba(95,226,190,.22);color:#5fe2be;font-size:16px;font-weight:800}
.allotment-action-copy{min-width:0}
.allotment-action-copy strong{display:block;color:#eef3fb;font:800 14px/1.35 Manrope}
.allotment-action-copy span{display:block;margin-top:3px;color:#8995a9;font-size:11px;line-height:1.5}
.allotment-action-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid #8a72ff;border-radius:9px;background:#8a72ff;color:#fff;text-decoration:none;font:800 12px "DM Sans";white-space:nowrap;box-shadow:0 7px 18px rgba(119,91,255,.16);transition:transform .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.allotment-action-button:hover{background:#7b63f0;border-color:#7b63f0;transform:translateY(-1px);box-shadow:0 9px 22px rgba(119,91,255,.22)}
.allotment-action-button:focus-visible{outline:3px solid rgba(143,121,255,.35);outline-offset:2px}
.registrar-detail{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.registrar-status-link{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border:1px solid #34445d;border-radius:7px;background:#111d2c;color:#b9adff!important;text-decoration:none!important;font-size:11px;font-weight:700}
.registrar-status-link:hover{border-color:#7161c9;background:#171f31;color:#d4ccff!important}
html.light body .allotment-action{border-color:#dbe2ec;background:linear-gradient(135deg,#f8fafc,#f3f6fa);box-shadow:0 6px 22px rgba(16,24,40,.04)}
html.light body .allotment-action-icon{background:#ecfbf6;border-color:#c8eee2;color:#0e9a7c}
html.light body .allotment-action-copy strong{color:#101828}
html.light body .allotment-action-copy span{color:#667085}
html.light body .allotment-action-button{background:#8a72ff;border-color:#8a72ff;color:#fff}
html.light body .registrar-status-link{border-color:#d8d0ff;background:#faf9ff;color:#5743c8!important}
html.light body .registrar-status-link:hover{border-color:#b9aefe;background:#f5f2ff;color:#4936b2!important}
@media(max-width:600px){.allotment-action{grid-template-columns:38px minmax(0,1fr);gap:12px}.allotment-action-button{grid-column:1/-1;width:100%;min-height:40px}}


/* IPO allotment directory */
.allotment-page .archive-subtitle{max-width:760px}.allotment-table-wrap{width:100%;border:1px solid #233149;border-radius:16px;overflow:auto;background:#0e1725}html.light body .allotment-table-wrap{border-color:#e0e6ef;background:#fff}.allotment-table{width:100%;min-width:1120px;border-collapse:collapse}.allotment-table th,.allotment-table td{padding:14px 15px;text-align:left;border-bottom:1px solid #202c40;font-size:12px;vertical-align:middle}html.light body .allotment-table th,html.light body .allotment-table td{border-color:#e8ecf2}.allotment-table th{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#7e8aa0;background:#0d1522;white-space:nowrap}html.light body .allotment-table th{background:#f7f8fa}.allotment-table tbody tr:last-child td{border-bottom:0}.allotment-table td:first-child{min-width:205px}.allotment-table td:first-child strong{display:block;font-size:12px}.allotment-table td:first-child small{display:block;margin-top:3px;color:#7e8aa0;font-size:10px}.allotment-date{display:flex;flex-direction:column;gap:5px;min-width:112px}.allotment-date strong{font-size:12px;color:#eef3fb}html.light body .allotment-date strong{color:#101828}.allotment-badge{display:inline-flex;width:max-content;padding:4px 7px;border-radius:6px;font-size:8px;font-weight:800;letter-spacing:.65px}.allotment-badge.today{background:#123b35;color:#66e0c2;border:1px solid #1e5b4e}.allotment-badge.completed{background:#26303e;color:#aeb9c8;border:1px solid #34445d}html.light body .allotment-badge.today{background:#ecfbf6;color:#087f68;border-color:#c8eee2}html.light body .allotment-badge.completed{background:#f1f4f7;color:#667085;border-color:#dfe5ec}.allotment-table-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;border-radius:8px;background:#8a72ff;border:1px solid #8a72ff;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 5px 14px rgba(119,91,255,.12);transition:.18s ease}.allotment-table-action:hover{background:#7b63f0;border-color:#7b63f0;transform:translateY(-1px);box-shadow:0 7px 17px rgba(119,91,255,.18)}.allotment-table-action:focus-visible{outline:3px solid rgba(143,121,255,.3);outline-offset:2px}.allotment-unavailable{font-size:10px;color:#8995a9;white-space:nowrap}.allotment-empty{text-align:center!important;padding:38px!important;color:#8995a9!important}.allotment-info{margin-top:32px}.allotment-info strong{color:#eef3fb}html.light body .allotment-info strong{color:#101828}@media(max-width:600px){.allotment-table-wrap{border-radius:12px}.allotment-table th,.allotment-table td{padding:12px 13px}.allotment-page .archive-subtitle{font-size:13px}}

/* Readability: important notice banners */
.risk-banner{
  display:block;
  margin-top:68px;
  margin-bottom:76px;
  padding:16px 20px;
  border:1px solid #e7cf91;
  background:#fffdf7;
  color:#5f553f;
  border-radius:13px;
  font-size:13px;
  font-weight:500;
  line-height:1.65;
  letter-spacing:0;
}
.risk-banner strong{
  color:#875b00;
  font-weight:800;
}
html:not(.light) .risk-banner{
  border-color:#4b4027;
  background:#1d1910;
  color:#d8cdb3;
}
html:not(.light) .risk-banner strong{
  color:#f0d27b;
}
@media(max-width:600px){
  .risk-banner{
    margin-top:48px;
    margin-bottom:52px;
    padding:14px 15px;
    font-size:13px;
    line-height:1.6;
  }
}

/* Production contact form */
.contact-page .legal-card{max-width:920px}
.contact-page .legal-card h1{font:800 clamp(34px,5vw,48px)/1.08 Manrope;letter-spacing:-1.8px;margin:0 0 24px}
.official-links{font-size:13px!important;margin-top:24px!important;padding:13px 15px;border:1px solid #29374d;border-radius:10px;background:#101927}
html.light .official-links{background:#f8fafc;border-color:#d9e1eb}
.official-links a{color:#8f79ff;font-weight:700;text-decoration:none}
html.light .official-links a{color:#5b45c7}
.contact-form{margin-top:28px;padding-top:28px;border-top:1px solid #233149}
html.light .contact-form{border-color:#e0e6ef}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-field{margin-bottom:18px}
.form-field label{display:block;margin-bottom:7px;color:#e3e9f2;font-size:13px;font-weight:700}
html.light .form-field label{color:#344054}
.form-field label span{color:#d46b7a}
.form-field label small{font-weight:500;color:#8995a9;margin-left:4px}
.form-field input,.form-field select,.form-field textarea{width:100%;box-sizing:border-box;border:1px solid #2b3950;background:#101927;color:#eef3fb;border-radius:10px;padding:12px 13px;font:500 14px "DM Sans";line-height:1.45;outline:0;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.form-field textarea{min-height:150px;resize:vertical}
html.light .form-field input,html.light .form-field select,html.light .form-field textarea{background:#fff;border-color:#d5dde8;color:#101828}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#8a72ff;box-shadow:0 0 0 3px rgba(138,114,255,.13)}
.form-field>small{display:block;color:#8995a9;font-size:11px;margin-top:6px;line-height:1.5}
.contact-submit{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid #8a72ff;border-radius:10px;background:#8a72ff;color:#fff;font:800 14px "DM Sans";cursor:pointer;box-shadow:0 8px 20px rgba(119,91,255,.18);transition:.18s ease}
.contact-submit:hover{background:#7b63f0;border-color:#7b63f0;transform:translateY(-1px)}
.contact-submit:focus-visible{outline:3px solid rgba(143,121,255,.35);outline-offset:2px}
.contact-consent{display:flex;gap:10px;align-items:flex-start;margin:4px 0 18px;color:#8995a9;font-size:12px;line-height:1.6}
.contact-consent input{margin-top:3px;accent-color:#8a72ff}
.contact-consent a{color:#8f79ff;font-weight:700;text-decoration:none}
html.light .contact-consent{color:#667085}
html.light .contact-consent a{color:#5b45c7}
.contact-footnote{font-size:11px!important;color:#8995a9!important;margin:13px 0 0!important}
.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.contact-notice{margin:18px 0 0;padding:13px 15px;border-radius:10px;font-size:13px;line-height:1.6}
.contact-notice.success{border:1px solid #1e5b4e;background:#102c28;color:#bdeee1}
.contact-notice.error{border:1px solid #6b3b45;background:#2b171d;color:#f3c7ce}
html.light .contact-notice.success{border-color:#bfe9dd;background:#effbf7;color:#087f68}
html.light .contact-notice.error{border-color:#f0c8cf;background:#fff3f5;color:#9b3043}
@media(max-width:650px){.contact-grid{grid-template-columns:1fr}.contact-page .legal-card h1{font-size:36px}.contact-form{margin-top:24px;padding-top:24px}}

/* FINAL CANONICAL TABLE TYPOGRAPHY — GMP, Dashboard Subscription, Subscription Page, Allotment */
.gmp-table,
.subscription-table,
.allotment-table{
  font-family:"DM Sans",sans-serif !important;
  font-size:14px !important;
  line-height:1.45 !important;
}
.gmp-table th,.gmp-table td,
.subscription-table th,.subscription-table td,
.allotment-table th,.allotment-table td{
  font-family:"DM Sans",sans-serif !important;
  font-size:14px !important;
  line-height:1.45 !important;
  padding:16px 18px !important;
}
.gmp-table th,.subscription-table th,.allotment-table th{
  font-size:11px !important;
  line-height:1.45 !important;
  letter-spacing:.85px !important;
  font-weight:800 !important;
}
.gmp-table td:first-child strong,
.subscription-table td:first-child strong,
.allotment-table td:first-child strong{
  font-size:14px !important;
  line-height:1.45 !important;
}
.gmp-table td small,
.subscription-table td small,
.allotment-table td:first-child small{
  font-size:11px !important;
  line-height:1.45 !important;
}
.subscription-updated{
  font-size:14px !important;
  line-height:1.45 !important;
}
.allotment-date strong{
  font-size:14px !important;
  line-height:1.45 !important;
}
@media(max-width:850px){
  .gmp-table th,.gmp-table td,
  .subscription-table th,.subscription-table td,
  .allotment-table th,.allotment-table td{
    padding:14px 15px !important;
  }
}
@media(max-width:560px){
  .gmp-table th,.gmp-table td,
  .subscription-table th,.subscription-table td,
  .allotment-table th,.allotment-table td{
    font-size:13px !important;
    line-height:1.45 !important;
    padding:13px 12px !important;
  }
  .gmp-table th,.subscription-table th,.allotment-table th{
    font-size:11px !important;
  }
  .gmp-table td:first-child strong,
  .subscription-table td:first-child strong,
  .allotment-table td:first-child strong,
  .subscription-updated,
  .allotment-date strong{
    font-size:13px !important;
  }
}


/* Hero highlights — one shared font family for title, subtitle and icon */
.hero-highlight,
.hero-highlight strong,
.hero-highlight small,
.hero-highlight-icon{
  font-family:"Manrope",sans-serif !important;
}


/* Hero description — use available horizontal space so the dashboard description stays on two lines at desktop widths */
@media(min-width:851px){
  .hero-grid>div:first-child{max-width:980px !important;}
  .hero-copy{max-width:730px !important;font-size:17px !important;}
}


/* Desktop IPO card metric-column alignment — keep GMP, Est. Listing, Gain aligned with Open, Close, Price Band below. */
@media (min-width:851px){
  .ipo-card .gmp-row{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}


/* v1.1.26 — Desktop IPO card horizontal column alignment.
   Match GMP / Est. Listing / Gain with Open / Close / Price Band
   by removing the inner horizontal inset from the GMP metric row.
   Mobile layout remains unchanged. */
@media (min-width:851px){
  .ipo-card .gmp-row{
    padding-left:0 !important;
    padding-right:0 !important;
  }
}


/* v1.1.27 — Fine-tune desktop IPO card left metric alignment.
   Keep the center and right columns unchanged while giving the first GMP metric
   the same visual inset as the lower detail columns. Mobile remains unchanged. */
@media (min-width:851px){
  .ipo-card .gmp-row > div:first-child{
    padding-left:8px !important;
  }
}


/* v1.1.29 — Align Open and Lot Size with the GMP metric above.
   Desktop only: move the first-column detail items slightly right to match GMP.
   Price Band remains in its original position; mobile layout remains unchanged. */
@media (min-width:851px){
  .ipo-card .detail-grid > div:nth-child(1),
  .ipo-card .detail-grid > div:nth-child(4){
    position:relative;
    left:8px;
  }
}


/* Final responsive fixes — mobile navigation, table visibility and status badges */
@media(max-width:560px){
  /* Mobile navigation: keep each item at its natural width so labels never
   * overlap. The row may scroll horizontally on very narrow screens. */
  .site-header .nav .site-nav{
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    justify-content:flex-start;
    gap:4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .site-header .nav .site-nav::-webkit-scrollbar{display:none}
  .site-header .nav .site-nav a{
    flex:0 0 auto;
    min-width:max-content;
    white-space:nowrap;
    padding:8px 7px;
    font-size:12px;
  }

  .gmp-table td .status{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
  }

  /* Dashboard subscription table: keep IPO → Type → Total visible first,
   * while giving Status and Closing Date enough room to stay readable. */
  .subscription-table{
    table-layout:fixed;
    min-width:700px;
  }
  .subscription-table th{
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
  }
  .subscription-table th:first-child,
  .subscription-table td:first-child{width:140px;min-width:140px}
  .subscription-table th:nth-child(2),
  .subscription-table td:nth-child(2){width:78px}
  .subscription-table th:nth-child(3),
  .subscription-table td:nth-child(3){width:66px}
  .subscription-table th:nth-child(4),
  .subscription-table td:nth-child(4){width:92px}
  .subscription-table th:nth-child(5),
  .subscription-table td:nth-child(5){width:94px}
  .subscription-table th:nth-child(n+6),
  .subscription-table td:nth-child(n+6){width:68px}
  .subscription-table td:first-child strong{
    display:block;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .subscription-table td:nth-child(4),
  .subscription-table td:nth-child(5){white-space:nowrap}

  /* Full Subscription page: preserve the same first-three-column priority and
   * prevent Applications/Updated headers from colliding. */
  .subscription-full-table{
    min-width:1120px;
  }
  .subscription-full-table th{
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
  }
  .subscription-full-table th:first-child,
  .subscription-full-table td:first-child{width:140px;min-width:140px}
  .subscription-full-table th:nth-child(2),
  .subscription-full-table td:nth-child(2){width:78px}
  .subscription-full-table th:nth-child(3),
  .subscription-full-table td:nth-child(3){width:72px}
  .subscription-full-table th:nth-child(4),
  .subscription-full-table td:nth-child(4){width:92px}
  .subscription-full-table th:nth-child(5),
  .subscription-full-table td:nth-child(5){width:94px}
  .subscription-full-table th:nth-child(6),
  .subscription-full-table td:nth-child(6),
  .subscription-full-table th:nth-child(7),
  .subscription-full-table td:nth-child(7),
  .subscription-full-table th:nth-child(8),
  .subscription-full-table td:nth-child(8),
  .subscription-full-table th:nth-child(9),
  .subscription-full-table td:nth-child(9),
  .subscription-full-table th:nth-child(10),
  .subscription-full-table td:nth-child(10),
  .subscription-full-table th:nth-child(11),
  .subscription-full-table td:nth-child(11),
  .subscription-full-table th:nth-child(12),
  .subscription-full-table td:nth-child(12),
  .subscription-full-table th:nth-child(13),
  .subscription-full-table td:nth-child(13){width:72px}
  .subscription-full-table th:nth-child(14),
  .subscription-full-table td:nth-child(14){width:100px}
  .subscription-full-table th:nth-child(15),
  .subscription-full-table td:nth-child(15){width:90px}
  .subscription-full-table td:first-child strong{
    display:block;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .subscription-full-table td:nth-child(4),
  .subscription-full-table td:nth-child(5),
  .subscription-full-table td:nth-child(14),
  .subscription-full-table td:nth-child(15){white-space:nowrap}
}

.gmp-page-link,
.guide-content-link{color:#aa9dff;text-decoration:underline;text-decoration-color:rgba(170,157,255,.55);text-underline-offset:2px;font-weight:700}
.gmp-page-link:hover,.guide-content-link:hover{color:#c0b7ff;text-decoration-color:currentColor}
html.light .gmp-page-link,html.light .guide-content-link{color:#5d47c7;text-decoration-color:rgba(93,71,199,.35)}
html.light .gmp-page-link:hover,html.light .guide-content-link:hover{color:#4b38b2}

/* v3.2.0 — Mobile table collision guardrails and navigation spacing.
   Tables may scroll horizontally, but cells themselves must never overlap. */
@media (max-width:560px){
  /* Primary navigation: each item keeps its own box; never allow flex shrinking. */
  .site-header .nav .site-nav{
    display:flex !important;
    flex:0 0 100% !important;
    width:100% !important;
    min-width:0 !important;
    justify-content:flex-start !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding-left:2px !important;
    padding-right:2px !important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .site-header .nav .site-nav::-webkit-scrollbar{display:none}
  .site-header .nav .site-nav a{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:max-content !important;
    white-space:nowrap !important;
    padding:8px 9px !important;
    margin:0 !important;
  }

  /* Universal front-end table protection. A table can be wider than the
     viewport, but its columns must have independent boxes. */
  .gmp-table,
  .subscription-table,
  .allotment-table{
    table-layout:auto !important;
  }
  .gmp-table th,.gmp-table td,
  .subscription-table th,.subscription-table td,
  .allotment-table th,.allotment-table td{
    box-sizing:border-box !important;
  }
  .gmp-table th,.subscription-table th,.allotment-table th{
    white-space:normal !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
  }
  .gmp-table td,.subscription-table td,.allotment-table td{
    white-space:nowrap;
  }
  .gmp-table td:first-child,
  .subscription-table td:first-child,
  .allotment-table td:first-child{
    white-space:normal;
  }
  .gmp-table td:first-child strong,
  .subscription-table td:first-child strong,
  .allotment-table td:first-child strong{
    display:block;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .gmp-table td .status,
  .subscription-table td .status{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    white-space:nowrap !important;
    min-width:max-content !important;
  }

  /* GMP: keep the key columns independent so Status never touches Issue Dates. */
  .gmp-table{min-width:760px !important;}
  .gmp-table th:first-child,.gmp-table td:first-child{min-width:145px;width:145px}
  .gmp-table th:nth-child(2),.gmp-table td:nth-child(2){min-width:82px;width:82px}
  .gmp-table th:nth-child(3),.gmp-table td:nth-child(3){min-width:82px;width:82px}
  .gmp-table th:nth-child(4),.gmp-table td:nth-child(4){min-width:105px;width:105px}
  .gmp-table th:nth-child(5),.gmp-table td:nth-child(5){min-width:110px;width:110px}
  .gmp-table th:nth-child(6),.gmp-table td:nth-child(6){min-width:90px;width:90px}
  .gmp-table th:nth-child(7),.gmp-table td:nth-child(7){min-width:105px;width:105px}

  /* Dashboard Subscription: Name → Type → Total remain the first compact
     columns, while Status and Close get enough room for their own content. */
  .subscription-table:not(.subscription-full-table){min-width:760px !important;}
  .subscription-table:not(.subscription-full-table) th:first-child,
  .subscription-table:not(.subscription-full-table) td:first-child{min-width:140px;width:140px}
  .subscription-table:not(.subscription-full-table) th:nth-child(2),
  .subscription-table:not(.subscription-full-table) td:nth-child(2){min-width:78px;width:78px}
  .subscription-table:not(.subscription-full-table) th:nth-child(3),
  .subscription-table:not(.subscription-full-table) td:nth-child(3){min-width:72px;width:72px}
  .subscription-table:not(.subscription-full-table) th:nth-child(4),
  .subscription-table:not(.subscription-full-table) td:nth-child(4){min-width:108px;width:108px}
  .subscription-table:not(.subscription-full-table) th:nth-child(5),
  .subscription-table:not(.subscription-full-table) td:nth-child(5){min-width:105px;width:105px}
  .subscription-table:not(.subscription-full-table) th:nth-child(n+6),
  .subscription-table:not(.subscription-full-table) td:nth-child(n+6){min-width:72px;width:72px}

  /* Full Subscription page: every header/value receives its own column box. */
  .subscription-full-table{min-width:1250px !important;}
  .subscription-full-table th:first-child,
  .subscription-full-table td:first-child{min-width:140px;width:140px}
  .subscription-full-table th:nth-child(2),
  .subscription-full-table td:nth-child(2){min-width:78px;width:78px}
  .subscription-full-table th:nth-child(3),
  .subscription-full-table td:nth-child(3){min-width:72px;width:72px}
  .subscription-full-table th:nth-child(4),
  .subscription-full-table td:nth-child(4){min-width:108px;width:108px}
  .subscription-full-table th:nth-child(5),
  .subscription-full-table td:nth-child(5){min-width:105px;width:105px}
  .subscription-full-table th:nth-child(n+6):nth-child(-n+13),
  .subscription-full-table td:nth-child(n+6):nth-child(-n+13){min-width:76px;width:76px}
  .subscription-full-table th:nth-child(14),
  .subscription-full-table td:nth-child(14){min-width:110px;width:110px}
  .subscription-full-table th:nth-child(15),
  .subscription-full-table td:nth-child(15){min-width:100px;width:100px}

  /* Allotment / Upcoming IPO tables: wrap ONLY the IPO name column.
   * Other fields stay on one line so important values are never wrapped/cut. */
  .allotment-table{
    min-width:760px !important;
    width:max-content !important;
    table-layout:auto !important;
  }
  .allotment-table th,.allotment-table td{
    overflow:visible !important;
    white-space:nowrap !important;
  }
  .allotment-table th:first-child,.allotment-table td:first-child{
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
    white-space:normal !important;
    overflow:hidden !important;
  }
  .allotment-table td:first-child strong{
    display:block !important;
    width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    line-height:1.3 !important;
  }
  .allotment-table td:first-child small{
    display:block !important;
    width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  .allotment-table .mini-tag{
    white-space:nowrap !important;
  }
  .allotment-table .allotment-date strong,
  .allotment-table .allotment-badge,
  .allotment-table .allotment-table-action,
  .allotment-table .allotment-unavailable{
    white-space:nowrap !important;
  }
