/* Shared ITR-1 typography reference for GST dropdown pages. */
body.gst-typography-page .section-head,
body.gst-typography-page .gst-section-head,
body.gst-typography-page .itr-section-head {
    margin-bottom: 28px !important;
}

body.gst-typography-page .section-head h2,
body.gst-typography-page .gst-section-head h2,
body.gst-typography-page .itr-section-head h2 {
    font-family: "Poppins", sans-serif !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
    color: #27483b !important;
}

body.gst-typography-page .section-head h2 span,
body.gst-typography-page .gst-section-head h2 span,
body.gst-typography-page .itr-section-head h2 span {
    color: #2f8d57 !important;
}

/* GST Registration page: exact 28px content section headings. */
body.gst-page .gst-section-head h2 {
    font-family: "Poppins", sans-serif !important;
    font-size: 28px !important;
}

body.gst-page .gst-section-head .gst-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.gst-page .gst-section-head .gst-badge strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    margin: 0 !important;
}

body.gst-typography-page .badge,
body.gst-typography-page .section-number,
body.gst-typography-page .gst-badge,
body.gst-typography-page .itr-section-badge {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    background: #e8f0ea !important;
    color: #2f8d57 !important;
    font-family: "Poppins", sans-serif !important;
}

body.gst-typography-page .badge strong,
body.gst-typography-page .section-number strong,
body.gst-typography-page .gst-badge strong,
body.gst-typography-page .itr-section-badge strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2a7f4e !important;
    line-height: 1 !important;
}

body.gst-typography-page .itr-lead,
body.gst-typography-page .gst-lead,
body.gst-typography-page .intro,
body.gst-typography-page .intro-text,
body.gst-typography-page .definition-intro {
    font-size: 17px !important;
    line-height: 1.7 !important;
}

body.gst-typography-page .itr-bullet,
body.gst-typography-page .itr-bullet-list,
body.gst-typography-page .definition-text,
body.gst-typography-page .definition-list,
body.gst-typography-page .bullet-list,
body.gst-typography-page .check-list,
body.gst-typography-page .check-item {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

body.gst-typography-page .itr-bullet-list,
body.gst-typography-page .definition-list,
body.gst-typography-page .bullet-list,
body.gst-typography-page .check-list {
    gap: 14px !important;
}

/* Final specificity layer for the actual GST page section structures. */
html body.gst-typography-page main > .gst-section .gst-section-head,
html body.gst-typography-page main > .section .section-head,
html body.gst-typography-page main > .itr-section .itr-section-head {
    margin-bottom: 28px !important;
}

html body.gst-typography-page main > .gst-section .gst-section-head h2,
html body.gst-typography-page main > .section .section-head h2,
html body.gst-typography-page main > .itr-section .itr-section-head h2 {
    font-family: "Poppins", sans-serif !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
}

html body.gst-typography-page main > .gst-section .gst-badge,
html body.gst-typography-page main > .section .badge,
html body.gst-typography-page main > .section .section-number,
html body.gst-typography-page main > .itr-section .itr-section-badge {
    font-family: "Poppins", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

html body.gst-typography-page main > .gst-section .gst-badge strong,
html body.gst-typography-page main > .section .badge strong,
html body.gst-typography-page main > .section .section-number strong,
html body.gst-typography-page main > .itr-section .itr-section-badge strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Exact 28px separation between consecutive GST content sections. */
html body.gst-typography-page main > .gst-section + .gst-section,
html body.gst-typography-page main > .section + .section,
html body.gst-typography-page main > .itr-section + .itr-section {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

/* Remove the preceding section's bottom padding so the rendered gap is 28px, not 28px plus padding. */
html body.gst-typography-page main > .gst-section:has(+ .gst-section),
html body.gst-typography-page main > .section:has(+ .section),
html body.gst-typography-page main > .itr-section:has(+ .itr-section) {
    padding-bottom: 0 !important;
}

/* Keep the hero-to-first-content transition at the same visible 28px gap. */
html body.gst-typography-page main > .gst-hero + .gst-section,
html body.gst-typography-page main > .hero + .section,
html body.gst-typography-page main > .itr-hero + .itr-section,
html body.gst-typography-page main > .gst-hero + .itr-section {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

/* Final rendered-gap normalization across nested and direct GST section markup. */
html body.gst-typography-page main section:not(.gst-hero):not(.hero):not(.itr-hero) {
    padding-bottom: 0 !important;
}

html body.gst-typography-page main section:not(.gst-hero):not(.hero):not(.itr-hero) + section:not(.gst-hero):not(.hero):not(.itr-hero) {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

/* Deterministic panel spacing: one 28px gap, with no hidden wrapper padding. */
html body.gst-typography-page main > #gst-content > .gst-section,
html body.gst-typography-page main > .section,
html body.gst-typography-page main > .itr-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

html body.gst-typography-page main > #gst-content > .gst-section + .gst-section,
html body.gst-typography-page main > .section + .section,
html body.gst-typography-page main > .itr-section + .itr-section {
    margin-top: 28px !important;
}

html body.gst-typography-page main > .gst-hero + #gst-content > .gst-section:first-child,
html body.gst-typography-page main > .hero + .section,
html body.gst-typography-page main > .itr-hero + .itr-section {
    padding-top: 28px !important;
}

/* Match the current ITR-5 hero geometry and typography across GST pages. */
html body.gst-typography-page main > .gst-hero,
html body.gst-typography-page main > .hero,
html body.gst-typography-page main > .itr-hero {
  width: min(1620px, calc(100% - 48px)) !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 8px auto 0 !important;
    padding: 40px 0 !important;
    border-radius: 36px !important;
    min-height: 371px !important;
}

html body.gst-typography-page main > .gst-hero .gst-hero-inner,
html body.gst-typography-page main > .hero .hero-inner,
html body.gst-typography-page main > .itr-hero .itr-hero-inner {
    width: min(980px, calc(100% - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body.gst-typography-page main > .gst-hero h1,
html body.gst-typography-page main > .hero h1,
html body.gst-typography-page main > .itr-hero h1 {
    margin-top: 24px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(3.2rem, 4.7vw, 5.8rem) !important;
    line-height: 0.96 !important;
    font-weight: 500 !important;
    letter-spacing: -0.03em !important;
}

html body.gst-typography-page main > .gst-hero .gst-hero-subtitle,
html body.gst-typography-page main > .hero .hero-subtitle,
html body.gst-typography-page main > .itr-hero .itr-hero-subtitle {
    margin-top: 16px !important;
    font-size: clamp(1.35rem, 2vw, 2.1rem) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

html body.gst-typography-page main > .gst-hero p,
html body.gst-typography-page main > .hero p,
html body.gst-typography-page main > .itr-hero p {
    max-width: 920px !important;
    margin-top: 18px !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

html body.gst-typography-page main > .gst-hero .gst-hero-chip,
html body.gst-typography-page main > .hero .hero-chip,
html body.gst-typography-page main > .itr-hero .itr-hero-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 18px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

@media (max-width: 720px) {
    html body.gst-typography-page main > .gst-hero,
    html body.gst-typography-page main > .hero,
    html body.gst-typography-page main > .itr-hero {
        width: calc(100% - 20px) !important;
        padding: 28px 16px !important;
        border-radius: 24px !important;
        min-height: 0 !important;
    }
}

html body.gst-page main > .gst-hero.itr5-reference-hero {
    width: min(1620px, calc(100% - 48px)) !important;
    margin: 8px auto 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 40px 0 !important;
    border-radius: 36px !important;
    min-height: 371px !important;
}

@media (max-width: 720px) {
    html body.gst-page main > .gst-hero.itr5-reference-hero {
        min-height: 0 !important;
    }
}

/* GST Registrations uses #gst-content; normalize its nested section gaps too. */
html body.gst-typography-page main .gst-section {
    padding-bottom: 0 !important;
}

html body.gst-typography-page main .gst-section + .gst-section {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

/* Match ITR-1: exactly 28px from the hero bottom to the first content panel. */
html body.gst-typography-page main > .gst-hero + #gst-content > .gst-section,
html body.gst-typography-page main > .gst-hero + .gst-section,
html body.gst-typography-page main > .hero + .section,
html body.gst-typography-page main > .hero + .itr-section,
html body.gst-typography-page main > .itr-hero + .itr-section,
html body.gst-typography-page main > .gst-hero + .itr-section {
    margin-top: 0 !important;
    padding-top: 28px !important;
}
/* GST Return: cream page canvas with white section panels only. */
html body.gst-return-page {
    background: #f6f4ea !important;
}

html body.gst-return-page main > .section {
    background: transparent !important;
}

html body.gst-return-page main > .section > .wrap > .panel {
    background: #fff !important;
}

html body.gst-return-page main .section-head > .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 34px !important;
    min-width: 52px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e8f0ea !important;
    color: #2f8d57 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

html body.gst-return-page main .section-head > .badge strong {
    display: block !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
