/* Registration-page hero treatment matching the ITR-5 reference card. */
html body.registration-reference-page main > section:first-child [class$="-hero"] {
    width: min(1620px, calc(100% - 48px)) !important;
    max-width: none !important;
    min-height: 371px !important;
    height: auto !important;
    margin-top: 8px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 0 !important;
    border-radius: 36px !important;
    font-family: Poppins, Arial, sans-serif !important;
    box-sizing: border-box !important;
}

/* Some registration pages use the hero class directly on the first section. */
html body.registration-reference-page main > section:first-child[class$="-hero"] {
    width: min(1620px, calc(100% - 48px)) !important;
    max-width: none !important;
    min-height: 371px !important;
    height: auto !important;
    margin-top: 8px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 0 !important;
    border-radius: 36px !important;
    font-family: Poppins, Arial, sans-serif !important;
    box-sizing: border-box !important;
}

/* Registration heroes inside a page shell must fill that shell exactly,
   matching the desktop width of the sections below them. */
html body:is(.pf-page, .esi-page, .lei-page, .trade-page, .labour-page, .fssai-page, .iec-page, .iso-page, .fcra-page, .tm-page, .copy-page, .pat-page, .rera-page).registration-reference-page main > section:first-child [class$="-hero"] {
    width: 100% !important;
}

/* Keep direct hero cards aligned with the registration page's desktop shell. */
html body.registration-reference-page main > [class$="-hero"] {
    width: min(1620px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Keep one page-related pill; remove the duplicate original chip only. */
html body.registration-reference-page main > section:not(:first-child):not(.partnership-section):not(.llp-section):not(.plc-section) {
    background: transparent !important;
}

html body.partnership-body.registration-reference-page main > section.partnership-section {
    background: #ffffff !important;
    min-height: 300px !important;
    padding-top: 32px !important;
    padding-bottom: 38px !important;
    box-sizing: border-box !important;
}

html body.llp-body.registration-reference-page main > section.llp-section {
    background: #ffffff !important;
    min-height: 300px !important;
    padding-top: 32px !important;
    padding-bottom: 38px !important;
    box-sizing: border-box !important;
}

html body.plc-body.registration-reference-page main > section.plc-section {
    background: #ffffff !important;
    min-height: 300px !important;
    padding-top: 32px !important;
    padding-bottom: 38px !important;
    box-sizing: border-box !important;
}

html body.plc-body.registration-reference-page main > section.plc-section > .plc-heading {
    margin-bottom: 24px !important;
}

html body.llp-body.registration-reference-page main > section.llp-section > .llp-heading {
    margin-bottom: 24px !important;
}

html body.partnership-body.registration-reference-page main > section.partnership-section > .partnership-heading {
    margin-bottom: 24px !important;
}

@media (max-width: 760px) {
    html body.partnership-body.registration-reference-page main > section.partnership-section {
        min-height: 0 !important;
        padding: 26px 18px 32px !important;
    }

    html body.partnership-body.registration-reference-page main > section.partnership-section > .partnership-heading {
        margin-bottom: 24px !important;
    }

    html body.llp-body.registration-reference-page main > section.llp-section {
        min-height: 0 !important;
        padding: 32px 18px 36px !important;
    }

    html body.llp-body.registration-reference-page main > section.llp-section > .llp-heading {
        margin-bottom: 24px !important;
    }

    html body.plc-body.registration-reference-page main > section.plc-section {
        min-height: 0 !important;
        padding: 32px 18px 36px !important;
    }

    html body.plc-body.registration-reference-page main > section.plc-section > .plc-heading {
        margin-bottom: 28px !important;
    }
}

html body.registration-reference-page main > section:first-child[class$="-hero"] [class$="-chip"],
html body.registration-reference-page main > section:first-child [class$="-hero"] [class$="-chip"] {
    display: none !important;
}

html body.registration-reference-page main > section:first-child [class$="-hero-inner"] {
    width: min(980px, calc(100% - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-family: Poppins, Arial, sans-serif !important;
}

html body.registration-reference-page main > section:first-child [class$="-hero"] * {
    font-family: Poppins, Arial, sans-serif !important;
}

html body.registration-reference-page main > section:first-child [class$="-hero"] h1 {
    margin-top: 24px !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-size: clamp(3.2rem, 4.7vw, 5.8rem) !important;
    font-weight: 500 !important;
    line-height: 0.96 !important;
    letter-spacing: -0.03em !important;
}

html body.registration-reference-page main > section:first-child [class$="-hero-subtitle"] {
    margin-top: 16px !important;
    font-size: clamp(1.35rem, 2vw, 2.1rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

html body.registration-reference-page main > section:first-child [class$="-hero-inner"]::before {
    font-family: Poppins, Arial, sans-serif !important;
}

/* These three pages already constrain their main shell; prevent double width reduction. */
html main.proprietorship-page > .prop-hero,
html main.partnership-page > .partnership-hero,
html main.llp-page > .llp-hero {
    width: 100% !important;
    max-width: none !important;
}

html body.registration-reference-page main.proprietorship-page > section.prop-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body.registration-reference-page main.proprietorship-page > section:first-child.prop-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Match the hero width to the surrounding shell on all requested business-structure pages. */
html body.proprietor-page main > section:first-child .proprietor-hero,
html body.partnership-body main.partnership-page > section:first-child .partnership-hero,
html body.llp-body main.llp-page > section:first-child .llp-hero,
html body.opc-page main > section:first-child .opc-hero,
html body.plc-body main.plc-page > section:first-child .plc-hero {
    box-sizing: border-box !important;
}

html body.proprietor-page main > section:first-child .proprietor-hero,
html body.partnership-body main.partnership-page > section:first-child .partnership-hero,
html body.llp-body main.llp-page > section:first-child .llp-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body.plc-body main.plc-page > section:first-child .plc-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body.partnership-body main.partnership-page > section:first-child.partnership-hero,
html body.llp-body main.llp-page > section:first-child.llp-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body.registration-reference-page main > section:first-child [class$="-hero"] p {
    max-width: 920px !important;
    margin-top: 18px !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

@media (min-width: 761px) {
    html body.plc-body.registration-reference-page main.plc-page > section:first-child.plc-hero {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

html body.registration-reference-page main > section:first-child [class$="-hero-inner"]::before {
    box-sizing: border-box;
    display: table;
    width: max-content;
    max-width: calc(100% - 4px);
    margin: 0 auto 24px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d8ac37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

html body.sole-page main > section:first-child [class$="-hero-inner"]::before { content: "SOLE PROPRIETORSHIP STANDARDS"; }
html body.partnership-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PARTNERSHIP STANDARDS"; }
html body.llp-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year LLP STANDARDS"; }
html body.opc-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year OPC STANDARDS"; }
html body.pvt-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PRIVATE LIMITED COMPANY STANDARDS"; }
html body.company-uk-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year UK COMPANY REGISTRATION STANDARDS"; }
html body.company-usa-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year USA COMPANY REGISTRATION STANDARDS"; }
html body.msme-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year MSME REGISTRATION STANDARDS"; }
html body.startup-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year STARTUP INDIA STANDARDS"; }
html body.trust-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year TRUST REGISTRATION STANDARDS"; }
html body.society-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year SOCIETY REGISTRATION STANDARDS"; }
html body.ngo-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year NGO REGISTRATION STANDARDS"; }
html body.pan-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PAN REGISTRATION STANDARDS"; }
html body.tan-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year TAN REGISTRATION STANDARDS"; }
html body.pf-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PF REGISTRATION STANDARDS"; }
html body.esi-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year ESI REGISTRATION STANDARDS"; }
html body.lei-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year LEI REGISTRATION STANDARDS"; }
html body.trade-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year TRADE LICENSE STANDARDS"; }
html body.labour-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year LABOUR LICENSE STANDARDS"; }
html body.fssai-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year FSSAI REGISTRATION STANDARDS"; }
html body.iec-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year IEC REGISTRATION STANDARDS"; }
html body.iso-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year ISO REGISTRATION STANDARDS"; }
html body.fcra-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year FCRA REGISTRATION STANDARDS"; }
html body.tm-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year TRADEMARK REGISTRATION STANDARDS"; }
html body.copy-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year COPYRIGHT REGISTRATION STANDARDS"; }
html body.pat-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PATENT REGISTRATION STANDARDS"; }
html body.rera-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year RERA REGISTRATION STANDARDS"; }

/* Actual class names used by the destination pages with legacy filenames. */
html body.proprietor-page main > section:first-child [class$="-hero-inner"]::before { content: "SOLE PROPRIETORSHIP STANDARDS"; }
html body.partnership-body main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PARTNERSHIP STANDARDS"; }
html body.llp-body main > section:first-child [class$="-hero-inner"]::before { content: "current financial year LLP STANDARDS"; }
html body.plc-body main > section:first-child [class$="-hero-inner"]::before { content: "current financial year PRIVATE LIMITED COMPANY STANDARDS"; }
html body.uk-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year UK COMPANY REGISTRATION STANDARDS"; }
html body.usa-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year USA COMPANY REGISTRATION STANDARDS"; }
html body.a12-page main > section:first-child [class$="-hero-inner"]::before { content: "current financial year 12A AND 80G REGISTRATION STANDARDS"; }
html body.registration-reference-page main .pt-hero-inner::before { content: "current financial year PROFESSIONAL TAX STANDARDS"; }

@media (max-width: 720px) {
    html body.registration-reference-page main > section:first-child [class$="-hero"] {
        min-height: 0 !important;
        width: 100% !important;
        padding: 28px 16px !important;
        border-radius: 24px !important;
    }
}
/* Shared section-heading and numbering treatment for registration pages. */
html body.registration-reference-page main [class$="-heading"] h2,
html body.registration-reference-page main [class$="-head"] h2 {
    font-size: 28px !important;
}

html body.registration-reference-page main [class$="-badge"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e8f0ea !important;
    color: #2f8d57 !important;
    font-size: 0 !important;
}

html body.registration-reference-page main [class$="-badge"] strong {
    color: #2a7f4e !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

html body.registration-reference-page main [class$="-badge"]::before,
html body.registration-reference-page main [class$="-badge"]::after {
    content: none !important;
    display: none !important;
}

html body.registration-reference-page main [class$="-number"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e8f0ea !important;
    color: #2a7f4e !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

html body.gst-page main [class$="-heading"] h2,
html body.gst-page main [class$="-head"] h2 {
    font-size: 28px !important;
}

html body.gst-page main [class$="-badge"] {
    width: 52px !important;
    min-width: 52px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e8f0ea !important;
    color: #2f8d57 !important;
    font-size: 0 !important;
}

html body.gst-page main [class$="-badge"] strong {
    color: #2a7f4e !important;
    font-size: 14px !important;
}

/* Keep the Sole Proprietorship title on one line without leaving its hero. */
html body.proprietor-page.registration-reference-page main
    .proprietor-hero .proprietor-hero-inner > h1 {
    max-width: 100% !important;
    font-size: clamp(1rem, 6.25vw, 3.5rem) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

/* Keep the requested registration and certification titles on one line below laptop width. */
@media (max-width: 1100px) {
    html body.pf-page.registration-reference-page main
        .pf-hero .pf-hero-inner > h1 {
        max-width: 100% !important;
        font-size: clamp(1rem, 5.75vw, 3.5rem) !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html body.lei-page.registration-reference-page main
        .lei-hero .lei-hero-inner > h1 {
        max-width: 100% !important;
        font-size: clamp(1rem, 6.5vw, 3.5rem) !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html body:is(
        .fssai-page,
        .iso-page,
        .fcra-page,
        .tm-page,
        .copy-page,
        .pat-page,
        .rera-page
    ).registration-reference-page main
        [class$="-hero"] [class$="-hero-inner"] > h1 {
        max-width: 100% !important;
        font-size: clamp(1rem, 5.1vw, 3.5rem) !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html body:is(
        .fssai-page,
        .iso-page,
        .fcra-page,
        .rera-page
    ).registration-reference-page main
        [class$="-hero"] [class$="-hero-inner"] > h1 {
        font-size: clamp(1rem, 6vw, 3.5rem) !important;
    }

    html body.pat-page.registration-reference-page main
        .pat-hero .pat-hero-inner > h1 {
        font-size: clamp(1rem, 5.6vw, 3.5rem) !important;
    }
}

/* Keep the complete LLP Compliance hero copy centered inside the card. */
html body.llp-body.registration-reference-page main.llp-page
    > section:first-child.llp-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

html body.llp-body.registration-reference-page main.llp-page
    > section:first-child.llp-hero > :is(.llp-hero-kicker, h1, h2, p) {
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
}

/* Give LLP hero copy comfortable side space on phones and tablets only. */
@media (max-width: 1100px) {
    html body.llp-body.registration-reference-page main.llp-page
        > section:first-child.llp-hero > h2 {
        width: min(86%, 620px) !important;
    }

    html body.llp-body.registration-reference-page main.llp-page
        > section:first-child.llp-hero > p {
        width: min(82%, 760px) !important;
    }
}

@media (min-width: 1101px) {
    html body.llp-body.registration-reference-page main.llp-page
        > section:first-child.llp-hero > p {
        max-width: 900px !important;
    }
}
