/* ======================================================================
   IPO Allotment styling (loaded via ipo-allotment-overrides.css)
   Applies only on single ipo-allotment posts
   ====================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600&display=swap');

/* Base Typography */
body.single-ipo-allotment .entry-content,
body.single-ipo-allotment .ipo-wrapper {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
body.single-ipo-allotment h1,
body.single-ipo-allotment h2,
body.single-ipo-allotment h3,
body.single-ipo-allotment h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

/* Paragraphs */
body.single-ipo-allotment p {
  margin-bottom: 1.25rem;
  color: #333;
}

/* Links */
body.single-ipo-allotment a {
  color: #007055;
  text-decoration: none;
}
body.single-ipo-allotment a:hover {
  text-decoration: underline;
}

/* IPO Wrapper */
body.single-ipo-allotment .ipo-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem;
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
}

/* Reset margins for direct children */
body.single-ipo-allotment .ipo-wrapper > h1,
body.single-ipo-allotment .ipo-wrapper > h2,
body.single-ipo-allotment .ipo-wrapper > h3,
body.single-ipo-allotment .ipo-wrapper > h4,
body.single-ipo-allotment .ipo-wrapper > p,
body.single-ipo-allotment .ipo-wrapper > table,
body.single-ipo-allotment .ipo-wrapper > .responsive-table,
body.single-ipo-allotment .ipo-wrapper > figure {
  margin-left: 0;
  margin-right: 0;
}

/* Tables */
body.single-ipo-allotment .responsive-table {
  overflow-x: auto;
  width: 100%;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

body.single-ipo-allotment .responsive-table table,
body.single-ipo-allotment .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  box-sizing: border-box;
}

body.single-ipo-allotment .responsive-table th,
body.single-ipo-allotment .responsive-table td,
body.single-ipo-allotment .entry-content th,
body.single-ipo-allotment .entry-content td {
  border: 0.5px solid #ccc;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  box-sizing: border-box;
}

body.single-ipo-allotment .responsive-table th,
body.single-ipo-allotment .entry-content th {
  background-color: #f8f8f8;
  font-weight: 600;
  color: #111;
}

body.single-ipo-allotment .responsive-table tr:nth-child(even),
body.single-ipo-allotment .entry-content tr:nth-child(even) {
  background-color: #fafafa;
}

/* Feature Image */
body.single-ipo-allotment .ipo-feature-image {
  text-align: center;
  margin: 2rem auto;
}
body.single-ipo-allotment .ipo-feature-image img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  margin: 0 auto;
}
body.single-ipo-allotment .ipo-feature-image figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 0.5rem;
}

/* Headings (underlined h1–h3, green h4) */
body.single-ipo-allotment .ipo-wrapper h1,
body.single-ipo-allotment .ipo-wrapper h2,
body.single-ipo-allotment .ipo-wrapper h3 {
  text-decoration: underline;
  text-decoration-color: #03820b;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
body.single-ipo-allotment .ipo-wrapper h4 {
  color: #03820b;
  text-decoration: none;
}

/* ENTRY HEADER RESET: remove all bottom‐margin, padding, and border */
body.single-ipo-allotment .entry-header {
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
}

body.single-ipo-allotment .entry-header .entry-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

/* If you still want to show post meta (date/author), leave or comment out below */
body.single-ipo-allotment .entry-header .entry-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--kadence-color-text-muted, #6b6b6b);
  gap: .5em;
  margin-top: .5rem;
  justify-content: flex-start;
}
body.single-ipo-allotment .entry-header .posted-on::after {
  content: "•";
  margin: 0 .5em;
  display: inline-block;
}
