/* The same fitting rules apply only to the two authorized MBBS pages. */
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) :is(td,th){overflow-wrap:normal;word-break:normal;vertical-align:top}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .nmc-status-table th:first-child{width:34%}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .nmc-year{display:inline-block;white-space:nowrap}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .nmc-year:where(:not(:first-child)){margin-top:2px}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history table th:first-child{width:43%}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history :is(td:nth-child(2),td:nth-child(3)){white-space:nowrap;font-variant-numeric:tabular-nums}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .round-label{display:block;white-space:nowrap}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .round-date{display:block;white-space:nowrap;font-size:inherit;line-height:1.5;color:#52665e;margin-top:3px}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .contact-address{white-space:nowrap;display:inline-block}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .amount-value{white-space:nowrap;font-variant-numeric:tabular-nums}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #budget table th:first-child{width:44%}
@media(max-width:600px){
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table{display:block}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table :is(tbody,tr,td){display:block;width:auto}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table tr{padding:10px 8px;border-bottom:1px solid #d5dece}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table td{padding:0;border:0}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table td+td{padding-top:5px}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .college-contact-table td:first-child{color:#52665e}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history :is(th,td){padding:10px 6px}
}

:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history table th:nth-child(2){width:30%}
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history table th:nth-child(3){width:27%}
@media(max-width:600px){
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history :is(th,td){padding:10px 4px}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan{display:block}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan tbody{display:block}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan tr{display:grid;grid-template-columns:repeat(var(--plan-options),minmax(0,1fr));padding:12px 8px;gap:8px;border-bottom:1px solid #d5dece}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan td{display:block;border:0;padding:0}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan td:first-child{grid-column:1/-1;font-weight:600}
 :is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .course-fee-plan td[data-label]::before{content:attr(data-label);display:block;color:#52665e;white-space:normal;font-size:12px;margin-bottom:3px}
}

:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .copy-number{color:#173f35;background:#eef1e6;border:1px solid #b8c3b8}

:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .year-token{display:inline-block;white-space:nowrap}

:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) .history-cohort-note{display:block;font-size:14px;font-weight:400;line-height:1.6;margin-top:5px}
/* Cutoff cells that carry a status note ("Not clear in source" + "Rank cut off in the source PDF") wrap inside their column; numeric cells stay on one line (24 Oct 2026). */
main[data-nd-layout] #history td:has(>.nd-rnote){white-space:normal}

/* Counselling round selector (24 Oct 2026, all college pages): clear label and help line, at least 44px tall, readable 16px value,
   one native select with its own chevron kept away from the edge; full width on mobile. */
.round-schedule .schedule-top label.nd-round-select{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:min(100%,340px);min-width:0;font-size:15px;font-weight:600;line-height:1.4;color:#183d35}
.round-schedule .schedule-top .nd-round-help{font-size:14px;font-weight:400;color:#53665c}
.round-schedule .schedule-top label.nd-round-select select{-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:48px;margin:2px 0 0;padding:12px 48px 12px 16px;font:inherit;font-size:16px;font-weight:600;line-height:1.4;color:#183d35;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174c3f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/18px 18px;border:1.5px solid #b9c6bd;border-radius:12px;cursor:pointer;text-overflow:ellipsis}
.round-schedule .schedule-top label.nd-round-select select:hover{border-color:#174c3f}
.round-schedule .schedule-top label.nd-round-select select:focus-visible{outline:3px solid #a86a12;outline-offset:2px;border-color:#174c3f}
@media(max-width:650px){.round-schedule .schedule-top label.nd-round-select{width:100%}}
.nd-hostel-single{font-weight:600}

/* Course Fees (24 Oct 2026): yearly tuition figure, first-year table with a clear total row, then the Complete Course Fees box. */
.nd-cf-tuition strong{font-size:26px;font-weight:700;color:#183d35;font-variant-numeric:tabular-nums;margin-right:4px}
.nd-cf-first .nd-cf-total-row td{font-weight:700;border-top:2px solid #b9c6bd}
.nd-cf-total .nd-cf-note{font-size:15px}
/* Closing Ranks: the same 18px gap before "Read full section" as SRMS, whatever the last block is (no extra note added). */
:is(main[data-heritage-final],main[data-srms-final],main[data-nd-layout]) #history .srms-historical+.ch-more{margin-top:18px}

/* Dropdowns (24 Oct 2026): one standard for every select on college pages and related views — clear label, 48px control,
   16px readable value, chevron kept 16px from the edge with room reserved for it, visible border and focus ring. */
main :is(.controls,.nd-fee-select,.nd-fee-code,.college-hero,.schedule-top,.comparison) select:not(.ch-h-select){-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-height:48px;margin-top:6px;padding:12px 48px 12px 16px;font:inherit;font-size:16px;font-weight:600;line-height:1.4;color:#183d35;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174c3f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/18px 18px;border:1.5px solid #b9c6bd;border-radius:12px;cursor:pointer;text-overflow:ellipsis}
main :is(.controls,.nd-fee-select,.nd-fee-code,.college-hero,.schedule-top,.comparison) select:not(.ch-h-select):hover{border-color:#174c3f}
main :is(.controls,.nd-fee-select,.nd-fee-code,.college-hero,.schedule-top,.comparison) select:not(.ch-h-select):focus-visible{outline:3px solid #a86a12;outline-offset:2px;border-color:#174c3f}
main :is(.controls,.nd-fee-select,.nd-fee-code) label{font-size:15px;font-weight:600;line-height:1.4;color:#183d35}
.overall-budget.nd-cf-total{margin-top:24px}
/* Closing-rank controls with a pool selector: pool on its own row; on phones every control takes the full width so the
   selected value is never cut (24 Oct 2026). */
.pilot-historical .controls label:has(#nd-layout-cutoff-pool){grid-column:1/-1}
@media(max-width:650px){main[data-design] .pilot-historical .controls,main .pilot-historical .controls{grid-template-columns:1fr}}
/* Course Fees first-year table on the editorial detailed pages (Hind Sitapur, Rama Kanpur, TMU): same table rules as SRMS (srms-final.css) */
main[data-editorial-campus] .editorial-section table.nd-cf-first{min-width:0;width:100%;table-layout:auto}
main[data-editorial-campus] table.nd-cf-first :is(th,td){white-space:normal;overflow-wrap:anywhere;min-width:0}
@media(max-width:600px){main[data-editorial-campus] table.nd-cf-first :is(th,td){padding:10px 8px;font-size:13px;line-height:1.5}}
main[data-editorial-campus] table.nd-cf-first .amount-value{white-space:nowrap;font-variant-numeric:tabular-nums}
main[data-editorial-campus] table.nd-cf-first th:first-child{width:44%}
