/* Premium presentation for HTML migrated from the legacy static archive. */

/* Keep detail headers compact and editorial rather than oversized. */
.post-shell .post-hero {
    min-height: 0 !important;
    margin: 12px 0 18px;
    padding: clamp(22px, 3vw, 36px) !important;
    border-radius: 22px;
}
.post-shell .post-hero h1 {
    max-width: 28ch;
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 3.2vw, 3.1rem) !important;
    line-height: 1.08;
}
.post-shell .post-hero__description { max-width: 68ch; font-size: .96rem; line-height: 1.65; }
.post-shell .post-hero__visual { min-height: 190px; border-radius: 20px; }
.post-shell .post-hero__visual img { max-height: 160px; }
.post-shell .post-utility-bar { margin-bottom: 16px; border-radius: 14px; }
.post-shell .post-utility-bar__label { font-size: .78rem; }
.post-shell .post-utility-bar__actions a,
.post-shell .post-utility-bar__actions button { min-height: 32px; padding: 6px 9px; border-radius: 9px; font-size: .75rem; }

/* Small, recognizable social controls for imported/detail pages. */
.post-share-row { display: flex; flex-wrap: wrap; gap: 9px; }
.post-share-row a {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #e2e8f0;
    color: #475569 !important;
    background: #f8fafc !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
    transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.post-share-row a:hover { transform: translateY(-2px); color: #fff !important; border-color: transparent; }
.post-share-row a:nth-child(1):hover { background: #1877f2 !important; }
.post-share-row a:nth-child(2):hover { background: #111827 !important; }
.post-share-row a:nth-child(3):hover { background: #16a34a !important; }
.post-share-row a:nth-child(4):hover { background: #0284c7 !important; }
.job-share-grid { gap: 8px !important; }
.job-share-btn { min-height: 38px !important; padding: 7px 10px !important; border-radius: 10px !important; font-size: .78rem !important; }

/* Shared premium rhythm for every frontend detail page. */
.post-shell__inner { padding-top: 14px; padding-bottom: 44px; }
.post-shell__grid { gap: 18px; }
.post-section-card,
.post-action-panel,
.post-sidebar__card,
.post-facts-grid,
.post-timeline {
    border: 1px solid #e5ebf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}
.post-section-card { margin: 14px 0; overflow: hidden; }
.post-section-card__header { padding: 15px 18px 11px; border-bottom: 1px solid #edf2f7; }
.post-section-card__header h2 { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); letter-spacing: -.02em; }
.post-section-card__header h2 i { color: #2563eb; margin-right: .4rem; }
.post-section-card .post-rich-content { padding: 14px 18px 17px; }
.post-action-panel { margin: 14px 0; padding: 17px 18px; }
.post-action-panel h2 { margin: 0 0 5px; font-size: 1.15rem; }
.post-action-panel p { margin: 0; color: #64748b; line-height: 1.6; }
.post-action-panel__actions { gap: 8px; margin-top: 13px; }
.post-facts-grid { gap: 0; margin: 14px 0; padding: 7px; background: #f8fafc; }
.post-fact-card { min-height: 86px; padding: 12px; border: 1px solid #e8eef5; border-radius: 13px; background: #fff; }
.post-fact-card i { color: #2563eb; }
.post-fact-card span { margin-top: 5px; font-size: .68rem; }
.post-fact-card strong { font-size: .86rem; line-height: 1.3; }
.post-sidebar__card { margin-bottom: 14px; padding: 15px; }
.post-sidebar__card h2 { margin: 0 0 11px; font-size: 1rem; }
.post-rich-content { color: #59687d; line-height: 1.72; }
.post-rich-content p { margin: 0 0 .65rem; }
.post-rich-content :is(h2,h3,h4) { margin: 1.1rem 0 .5rem; color: #172033; line-height: 1.25; }
.post-rich-content :is(ul,ol) { margin: .65rem 0 .9rem; padding: .7rem 1rem .7rem 2.1rem; border-radius: 13px; background: #f7f9fc; }
.post-rich-content li { margin: .2rem 0; }
.post-rich-content table { margin: .75rem 0; border-radius: 12px; overflow: hidden; }

/* The frontend no longer renders a sticky table of contents. */
.post-sticky-nav,
.job-section-nav { display: none !important; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) {
    --import-ink: #172033;
    --import-muted: #59687d;
    --import-line: #e5ebf3;
    --import-soft: #f7f9fc;
    --import-primary: #2563eb;
    --import-teal: #0f766e;
    color: var(--import-muted);
    font-size: clamp(.98rem, 1.1vw, 1.04rem);
    line-height: 1.72;
    overflow-wrap: anywhere;
}

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) > :first-child { margin-top: 0; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) > :last-child { margin-bottom: 0; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(h1,h2,h3,h4,h5,h6) {
    position: relative;
    margin: 1.25rem 0 .55rem;
    color: var(--import-ink);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.025em;
    scroll-margin-top: 100px;
}

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(h2,h3) {
    padding: .62rem .85rem .62rem 1rem;
    border: 1px solid var(--import-line);
    border-left: 4px solid var(--import-primary);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(100deg, #f8fbff, #fff);
}

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) h2 { font-size: clamp(1.2rem, 1.25vw, 1.4rem); }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) h3 { font-size: clamp(1.08rem, 1vw, 1.22rem); border-left-color: var(--import-teal); }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) h4 { font-size: 1rem; color: #1e3a8a; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) p { margin: 0 0 .65rem; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) strong { color: var(--import-ink); font-weight: 800; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) a { color: #1d4ed8; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) a:hover { color: #0f766e; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(ul,ol) {
    margin: .75rem 0 1rem;
    padding: .8rem 1rem .8rem 2.35rem;
    border: 1px solid var(--import-line);
    border-radius: 16px;
    background: var(--import-soft);
}
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) li { margin: .25rem 0; padding-left: .2rem; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) li::marker { color: var(--import-primary); font-weight: 900; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(blockquote,.important-note,.alert,.notice,.important-box) {
    margin: .9rem 0;
    padding: .85rem 1rem;
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--import-primary);
    border-radius: 0 16px 16px 0;
    color: #1e3a8a;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    box-shadow: 0 10px 26px rgba(37, 99, 235, .07);
}

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(img,video,iframe) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border: 1px solid var(--import-line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
}
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) iframe { width: 100%; min-height: 360px; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) table {
    width: 100%;
    min-width: 620px;
    margin: .85rem 0;
    border: 1px solid var(--import-line);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(table thead,table tr:first-child) { background: linear-gradient(135deg, #eff6ff, #ecfeff); }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(th,td) { padding: .85rem .95rem; border-right: 1px solid var(--import-line); border-bottom: 1px solid var(--import-line); vertical-align: top; text-align: left; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) th { color: var(--import-ink); font-size: .86rem; font-weight: 900; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) tr:last-child td { border-bottom: 0; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) tr > :last-child { border-right: 0; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) table a { overflow-wrap: anywhere; }

:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(.table-responsive,.table-wrapper,.modern-table-wrapper) { max-width: 100%; overflow-x: auto; margin: .85rem 0; border-radius: 16px; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(.btn,.button,.apply-btn,.download-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
    text-decoration: none;
}

/* The archive contains a few reusable premium section classes. Keep them
   attractive even when their original stylesheet is not present. */
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(.premium-section-block,.rrb-box,.modern-table,.important-dates-premium,.faq-section,.faq-container,.related-posts-section) {
    margin: .85rem 0;
    padding: clamp(.8rem, 1.6vw, 1.2rem);
    border: 1px solid var(--import-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .065);
}
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(.section-title,.section-title-premium,.section-header h2,.section-header-premium h2) { color: var(--import-ink); font-weight: 900; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(.faq-item,.faq-card,details) { margin: .7rem 0; border: 1px solid var(--import-line); border-radius: 14px; background: #fff; overflow: hidden; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(.faq-item,.faq-card,details) :is(summary,.faq-question) { cursor: pointer; padding: 1rem 1.1rem; color: var(--import-ink); font-weight: 850; }

/* Remove blank legacy wrappers and repeated line breaks that create large gaps. */
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(div,p,section):empty { display: none; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) br + br { display: none; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) > :is(section,article,.premium-section-block,.rrb-box) + :is(section,article,.premium-section-block,.rrb-box) { margin-top: .85rem; }
:is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) > .container { width: 100%; max-width: none; padding-right: 0; padding-left: 0; }

@media (max-width: 767.98px) {
    :is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) { font-size: 1rem; line-height: 1.75; }
    :is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(h2,h3) { margin-top: 1.5rem; }
    :is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(ul,ol) { padding-left: 2rem; }
    :is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) table { min-width: 540px; font-size: .9rem; }
}

@media print {
    :is(.job-rich-copy,.admission-rich-copy,.rich-text-content,.module-reading-content) :is(table,.premium-section-block,.rrb-box) { box-shadow: none; }
}

/* Imported JSON/Rich HTML sections use a separate renderer wrapper. Give that
   raw legacy markup the exact same visual language as module post content. */
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) {
    --legacy-ink: #172b4d;
    --legacy-copy: #4c6078;
    --legacy-line: #dce7f3;
    --legacy-soft: #f5f8fd;
    color: var(--legacy-copy);
    font-size: clamp(.98rem, 1vw, 1.05rem);
    line-height: 1.78;
    overflow-wrap: anywhere;
}

/* Do not allow copied Bootstrap/site layouts to introduce a narrow column,
   unexpected float, or desktop-only fixed width inside a public post. */
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(.container,.container-fluid,.content-wrapper,.main-content,.post-content) {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(.row) {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-inline: 0;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where([class*="col-"]) {
    min-width: 0;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h1,h2,h3,h4,h5,h6) {
    margin: 1.45rem 0 .65rem;
    color: var(--legacy-ink);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.018em;
    overflow-wrap: anywhere;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h2,h3) {
    padding: .65rem .9rem;
    border: 1px solid var(--legacy-line);
    border-left: 4px solid #2563eb;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(100deg, #f6faff, #fff);
}

/* Match the established public post-card heading scale. Imported source HTML
   should not visually overpower the page title or the native section header. */
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h2) { font-size: clamp(1.2rem, 1.25vw, 1.4rem); }
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h3) { font-size: clamp(1.08rem, 1vw, 1.22rem); }
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h4) { font-size: 1rem; }

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h3) { border-left-color: #0f766e; }
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(p) { margin-bottom: .8rem; }

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(ul,ol) {
    margin: .85rem 0 1rem;
    padding: .8rem 1rem .8rem 2.3rem;
    border: 1px solid var(--legacy-line);
    border-radius: 15px;
    background: var(--legacy-soft);
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(li + li) { margin-top: .35rem; }
:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(li)::marker { color: #2563eb; font-weight: 900; }

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(blockquote,.notice,.alert,.important-note,.important-box) {
    margin: 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    border-radius: 0 15px 15px 0;
    background: #eff6ff;
    color: #264667;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(img,video,iframe,embed,object) {
    display: block;
    float: none !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem auto;
    border-radius: 15px;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(iframe,embed,object) {
    width: 100% !important;
    min-height: 220px;
    border: 0;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(.table-responsive,.table-wrapper,.modern-table-wrapper) {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--legacy-line);
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(table) {
    width: 100% !important;
    min-width: 560px;
    margin: 0;
    border-collapse: collapse;
    color: #415772;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(th,td) {
    padding: .82rem .9rem;
    border: 1px solid #e4ebf4;
    vertical-align: top;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(th) {
    color: var(--legacy-ink);
    background: #edf4ff;
    font-size: .8rem;
    font-weight: 850;
}

:is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(.btn,.button,.apply-btn,.download-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .65rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) {
        font-size: .98rem;
        line-height: 1.72;
    }

    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(.row) {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }

    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h2,h3) {
        margin-top: 1.2rem;
        padding: .58rem .72rem;
    }

    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h2) { font-size: 1.16rem; }
    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(h3) { font-size: 1.05rem; }

    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(ul,ol) {
        padding: .72rem .8rem .72rem 1.9rem;
    }

    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(table) { min-width: 500px; font-size: .9rem; }
    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(th,td) { padding: .7rem; }
    :is(.section-rich-html,.section-rich-html-scope,.dynamic-section__content,.section-rich-text) :where(.btn,.button,.apply-btn,.download-btn) { width: 100%; }
}

/* Results imported from older sources often carry their own dark utility
   classes and fixed overlays. Public result content should remain a readable
   document, not inherit a source site's dark page chrome or floating panel. */
.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) {
    max-width: 100%;
    color: #405873;
    background: #ffffff;
    isolation: isolate;
}

.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) :where(.bg-dark,.bg-black,.dark,.dark-bg,.dark-section,.text-bg-dark) {
    color: #405873 !important;
    background: #ffffff !important;
    background-image: none !important;
}

.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) :where([style*="background:#"],[style*="background-color:"],[style*="background: rgb"],[style*="background:rgb"]) {
    color: #405873 !important;
    background: #ffffff !important;
    background-image: none !important;
}

.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) :where(.bg-dark,.bg-black,.dark,.dark-bg,.dark-section,.text-bg-dark,[style*="background:#"],[style*="background-color:"],[style*="background: rgb"],[style*="background:rgb"]) :where(h1,h2,h3,h4,h5,h6,strong,p,li,span,div) {
    color: #405873 !important;
}

.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) :where(h1,h2,h3,h4,h5,h6,strong) {
    color: #172b4d;
}

.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) :where(.fixed,.sticky,.position-fixed,.position-sticky,[style*="position:fixed"],[style*="position: fixed"],[style*="position:sticky"],[style*="position: sticky"]) {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
}

.module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) :where(.modal,.popup,.overlay,.modal-backdrop,.offcanvas) {
    display: none !important;
}

@media (max-width: 767.98px) {
    .module-detail--result :is(.section-rich-html-scope,.section-rich-html,.dynamic-section__content) {
        overflow: visible !important;
    }
}
