/* Compact, responsive, independently branded academic sheet. */
.rpi-shell.rpi-showing-result{background:#f1f1f1}
.rpi-showing-result .rpi-main{background:#f1f1f1;padding:24px 14px 48px}
.rpi-showing-result .rpi-site-footer{display:none}
.rpi-shell .rpi-identity:empty{display:none}
.rpi-result-actions{max-width:890px;margin:0 auto 14px}
.rpi-result{max-width:890px;border:1px solid #dedede;border-radius:9px;box-shadow:0 3px 22px rgba(0,0,0,.07);background:#fff;padding:19px 20px 26px;color:#161616;font-size:13px}
.rpi-result-brand{display:grid;grid-template-columns:116px minmax(0,1fr);gap:5px;align-items:stretch;margin:0 0 15px}
.rpi-result-brand .rpi-result-emblem{display:flex;align-items:center;justify-content:center;min-height:104px;border:1px solid #e3e6e3;background:#f8f8f8;border-radius:5px 0 0 5px;padding:8px}
.rpi-result-brand .rpi-result-emblem img{display:block;width:76px;height:76px;flex:none;object-fit:contain}
.rpi-result-brand-copy{display:flex;flex-direction:column;justify-content:center;background:var(--rpi-green,#008316);color:#fff;padding:14px 19px;min-height:104px;border-radius:0 5px 5px 0;min-width:0}
.rpi-result-brand .rpi-result-brand-copy h2{margin:0 0 6px;padding:0;color:#fff;font-size:clamp(15px,1.75vw,20px);line-height:1.26;font-weight:700;text-align:left;overflow-wrap:anywhere}
.rpi-result-brand .rpi-result-brand-copy p{margin:0 0 8px;color:#fff;font-weight:600;font-size:clamp(11px,1.2vw,14px);line-height:1.3;text-align:left}
.rpi-result-brand .rpi-result-brand-copy small{font-size:10px;line-height:1.3;color:#f0fff1;font-weight:400;text-align:right;opacity:.95}
.rpi-result-title{border:0;margin:6px 0 16px;padding:0;text-align:center;font-size:17px;font-weight:700;line-height:1.45;color:#151515}
.rpi-result table{border-collapse:collapse;width:100%;font-size:12px;color:#111;table-layout:fixed}
.rpi-result .rpi-summary-table th,.rpi-result .rpi-summary-table td{background:#eff0f2;border:0;border-bottom:2px solid #fff;text-align:left;font-weight:400;padding:5px 8px;vertical-align:middle;line-height:1.35;overflow-wrap:anywhere}
.rpi-result .rpi-summary-table th{color:#222}
.rpi-subject-title{margin:17px 0 8px;font-weight:700;font-size:16px;line-height:1.4;text-align:center;color:#111}
.rpi-result .rpi-marks-table{border-collapse:collapse;font-size:12px}
.rpi-result .rpi-marks-table thead th{background:#bfc3c8;color:#111;padding:6px 8px;border:0;border-right:1px solid #e5e5e5;text-align:left;font-weight:700}
.rpi-result .rpi-marks-table thead th:last-child{border-right:0}
.rpi-result .rpi-marks-table tbody td{background:#f1f2f3;border:0;border-bottom:2px solid #fff;text-align:left;padding:5px 8px;line-height:1.32;vertical-align:top}
.rpi-result .rpi-marks-table tbody tr:nth-child(even) td{background:#e9eaec}
.rpi-result .rpi-marks-table .rpi-no-subjects{text-align:center;padding:14px 8px;color:#555}
.rpi-sheet-search{text-align:center;padding:15px 0 7px}
.rpi-sheet-search .rpi-back{border:0;background:none;color:#2047b2;padding:4px 12px;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none}
.rpi-sheet-search .rpi-back:hover{text-decoration:underline}
.rpi-result-footer{margin:0;text-align:left;color:#5e5e5e;font-size:11px;line-height:1.5}
.rpi-sheet-rule{height:3px;background:#78b96a;margin:0 0 12px}
.rpi-result-footer p{margin:5px 0;overflow-wrap:anywhere}
.rpi-result-footer .rpi-credit{font-size:11px}
.rpi-result-footer .rpi-disclaimer{font-size:10px;color:#656565}
.rpi-demo-label{font-size:12px;margin:7px 0 13px}
.rpi-institution-info{line-height:1.6}
.rpi-result .rpi-institution-table thead th{background:#bfc3c8;color:#111;font-size:12px;border:0;text-align:left;padding:8px}
.rpi-result .rpi-institution-table tbody td{background:#eff0f2;border:0;border-bottom:2px solid #fff;text-align:left;padding:7px 8px}
.rpi-institution-table th:first-child{width:17%}
.rpi-institution-table th:nth-child(2){width:47%}
@media(max-width:720px){
  .rpi-showing-result .rpi-main{padding:14px 7px 26px}
  .rpi-result{padding:10px 9px 17px;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.045)}
  .rpi-result-brand{grid-template-columns:76px minmax(0,1fr);gap:3px;margin-bottom:12px}
  .rpi-result-brand .rpi-result-emblem{min-height:81px;padding:4px}
  .rpi-result-brand .rpi-result-emblem img{width:58px;height:58px}
  .rpi-result-brand-copy{min-height:81px;padding:10px 9px}
  .rpi-result-brand .rpi-result-brand-copy h2{font-size:clamp(11px,2.8vw,16px);margin-bottom:4px}
  .rpi-result-brand .rpi-result-brand-copy p{font-size:clamp(9px,2.2vw,12px);margin-bottom:5px}
  .rpi-result-brand .rpi-result-brand-copy small{font-size:9px}
  .rpi-result-title{font-size:clamp(13px,3.4vw,17px);margin:4px 0 13px}
  .rpi-result table{font-size:11px}
  .rpi-result .rpi-summary-table th,.rpi-result .rpi-summary-table td{padding:5px 5px}
  .rpi-result .rpi-marks-table thead th,.rpi-result .rpi-marks-table tbody td{padding:5px 6px}
  .rpi-subject-title{font-size:15px;margin-top:15px}
  .rpi-result-footer{font-size:10px}
  .rpi-result-actions{margin-bottom:10px}
}
@media(max-width:390px){
  .rpi-result-brand{grid-template-columns:61px minmax(0,1fr)}
  .rpi-result-brand .rpi-result-emblem img{width:49px;height:49px}
  .rpi-result-brand .rpi-result-emblem{min-height:80px}
  .rpi-result-brand-copy{padding:8px}
  .rpi-result-brand .rpi-result-brand-copy h2{font-size:11px}
  .rpi-result-brand .rpi-result-brand-copy p{font-size:9px}
  .rpi-result-brand .rpi-result-brand-copy small{font-size:8px}
  .rpi-result table{font-size:10px}
  .rpi-result .rpi-summary-table th,.rpi-result .rpi-summary-table td{padding:4px 3px}
  .rpi-result .rpi-marks-table thead th,.rpi-result .rpi-marks-table tbody td{padding:4px 5px}
}
@media(max-width:720px){
  .rpi-mark-sheet .rpi-marks-table:not(.rpi-with-marks) col:nth-child(2){width:74%!important}
  .rpi-mark-sheet .rpi-marks-table:not(.rpi-with-marks) col:nth-child(3){width:13%!important}
  .rpi-mark-sheet .rpi-marks-table.rpi-with-marks col:nth-child(2){width:60%!important}
  .rpi-mark-sheet .rpi-marks-table.rpi-with-marks col:nth-child(3){width:13%!important}
  .rpi-mark-sheet .rpi-marks-table.rpi-with-marks col:nth-child(4){width:14%!important}
}
@media print{
  @page{size:A4 portrait;margin:13mm}
  body.rpi-printing .rpi-result{border:1px solid #dedede!important;border-radius:4px!important;box-shadow:none!important;padding:12px!important;max-width:none!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.rpi-printing .rpi-result-brand{display:grid!important;grid-template-columns:106px 1fr!important;margin:0 0 14px!important;gap:4px!important}
  body.rpi-printing .rpi-result-brand .rpi-result-emblem{min-height:96px!important}
  body.rpi-printing .rpi-result-brand .rpi-result-emblem img{width:71px!important;height:71px!important}
  body.rpi-printing .rpi-result-brand-copy{min-height:96px!important;padding:12px 16px!important;background:var(--rpi-green,#008316)!important}
  body.rpi-printing .rpi-result-brand-copy h2{font-size:16px!important;color:#fff!important}
  body.rpi-printing .rpi-result-brand-copy p{font-size:11px!important;color:#fff!important}
  body.rpi-printing .rpi-result-brand-copy small{color:#fff!important}
  body.rpi-printing .rpi-result-title{font-size:16px!important;margin:12px 0!important;border:0!important;padding:0!important}
  body.rpi-printing .rpi-summary-table th,body.rpi-printing .rpi-summary-table td{background:#eff0f2!important}
  body.rpi-printing .rpi-marks-table thead th{background:#bfc3c8!important}
  body.rpi-printing .rpi-marks-table tbody td{background:#f1f2f3!important}
  body.rpi-printing .rpi-marks-table tbody tr:nth-child(even) td{background:#e9eaec!important}
  body.rpi-printing .rpi-sheet-search,body.rpi-printing .rpi-pagination{display:none!important}
  body.rpi-printing .rpi-result-footer{margin-top:13px!important;font-size:10px!important}
}
