/* =====================================================================
   Jatiya Kabi Kazi Nazrul Islam University — Certificate Verification & Graduate Portal
   Follows the look of jkkniu.edu.bd: green header band, white menu bar,
   navy footer, Poppins type. Documents (marksheet, certificate, letters)
   keep their own serif faces.
   ===================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JKK Bangla"; src: url("../fonts/jkk-bangla.woff") format("woff"); font-weight: 400; size-adjust: 112%; font-style: normal; font-display: swap; unicode-range: U+0980-09FF, U+0964-0965, U+200C-200D, U+25CC; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/crimson-text-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/crimson-text-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/crimson-text-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/cardo-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/cardo-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/cardo-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
/* Cardo has no bold italic. Crimson Text Bold Italic (a close old-style serif) fills that one style, so printed documents
   use a real font there instead of a computer-thickened italic. */
@font-face { font-family: "Cardo"; src: url("../fonts/crimson-text-bolditalic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Cert Blackletter"; src: url("../fonts/cert-blackletter.woff") format("woff"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Cert Chancery"; src: url("../fonts/cert-chancery.woff") format("woff"); font-weight: 400; font-style: normal; font-display: block; }

:root {
  --brand: #13235B;
  --brand-dark: #0E1A4F;
  --brand-deep: #0A1440;
  --brand-soft: #DDE2F2;
  --brand-tint: #F1F3FA;

  --sky: #4CAF2A;
  --sky-dark: #2F6C1A;
  --sky-soft: #EAF6E4;
  --royal: #2F6C1A;

  --gold: #A9791B;
  --gold-line: #D6B263;
  --gold-soft: #FBF4E3;

  --paper: #F5F7F5;
  --surface: #FFFFFF;
  --ink: #18212E;
  --ink-2: #364253;
  --muted: #5D6878;
  --line: #DCE3EC;
  --line-2: #C2CCD9;

  --ok: #17693F;
  --ok-soft: #E3F2E8;
  --bad: #A3271F;
  --bad-soft: #FBE8E6;
  --warn: #7A5200;
  --warn-soft: #FBF1D8;

  --font-ui: "Poppins", "JKK Bangla", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-doc: "Poppins", "JKK Bangla", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Crimson Text", "JKK Bangla", Georgia, "Times New Roman", serif;

  --r-lg: 10px;
  --r: 6px;
  --focus: 0 0 0 3px color-mix(in srgb, var(--sky) 35%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--font-doc); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); color: var(--brand); }
h2 { font-size: 1.0625rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .875em; background: var(--brand-tint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sky) 70%, white); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .875rem; margin: 6px 0 0; }
.req { color: var(--bad); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { color: var(--muted); margin: 4px 0; }
.pad { padding: 18px 20px; }
.print-only { display: none; }
.ic { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: 600 .95rem/1.2 var(--font-ui);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-tint); color: var(--ink); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--sky { background: var(--sky-dark); border-color: var(--sky-dark); color: #fff; }
.btn--sky:hover { background: #126b99; color: #fff; }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger:hover { background: #821e18; color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--royal); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand); }
.btn--ghost-danger { background: transparent; border-color: transparent; color: var(--bad); }
.btn--ghost-danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 1.0625rem; }
.btn--sm { min-height: 32px; padding: 0 11px; font-size: .85rem; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bad-soft); color: var(--bad); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.row-actions form { margin: 0; }

/* ---------- Forms ---------- */
.stack { display: grid; gap: 16px; }
.stack > * { margin: 0; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=search], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
textarea { padding: 10px 12px; resize: vertical; line-height: 1.45; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6878' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-dark); box-shadow: var(--focus); }
input[readonly] { background: var(--brand-tint); color: var(--ink-2); }
input::placeholder, textarea::placeholder { color: #8d97a6; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
input[type=file]::file-selector-button { font: 600 .875rem var(--font-ui); border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--brand-tint); color: var(--brand); font: 600 .8125rem var(--font-ui); border-radius: 4px; padding: 6px 10px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check label { font-weight: 500; font-size: .95rem; }
.check small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.check--inline { align-self: end; min-height: 44px; align-items: center; }
.check--inline input { margin: 0; }
.checks-row { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 16px; }
.field-error { color: var(--bad); font-size: .8125rem; font-weight: 600; margin: 6px 0 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline-form .field { flex: 1 1 260px; }
.color-pick { display: flex; gap: 8px; }
.color-pick input[type=color] { width: 48px; min-height: 44px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; }

/* ---------- Notices & badges ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid; margin: 0 0 16px; font-size: .95rem; }
.notice p { margin: 0; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice .ic { margin-top: 3px; }
.notice a { color: inherit; font-weight: 600; }
.notice--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.notice--bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); color: var(--bad); }
.notice--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn); }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.badge--run { background: var(--sky-soft); color: #0e5f88; }
.badge--grad { background: var(--ok-soft); color: var(--ok); }
.badge--stop { background: var(--bad-soft); color: var(--bad); }
.badge--off { background: #ECEEF1; color: var(--muted); }

/* ---------- Panels, tables, lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 20px; min-width: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--note { background: var(--sky-soft); border-color: #c4e3f5; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.panel__head h2, .panel__head p { margin: 0; }
.panel__head a { font-size: .9rem; font-weight: 600; }
details.panel > summary { cursor: pointer; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.split > .panel, .split > div > .panel:last-child { margin-bottom: 0; }
.split > div > .panel { margin-bottom: 20px; }
.split--wide-left { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 700; font-size: .82rem; color: var(--muted); padding: 9px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; background: var(--brand-tint); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th { color: var(--ink); font-size: .95rem; background: none; border-top: 2px solid var(--line); border-bottom: 0; padding-top: 12px; }
.table th.num { text-align: right; }
.table--compact td { padding: 7px 12px; }
.table--rows tbody tr:hover { background: var(--brand-tint); }
.table--rows td { vertical-align: middle; }
.table--rows { min-width: 720px; }
.table .is-fail td { color: var(--bad); }
.is-due { color: var(--bad); font-weight: 700; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.sub { display: block; color: var(--muted); font-size: .82rem; }
.panel--flush .table th:first-child, .panel--flush .table td:first-child { padding-left: 20px; }
.panel--flush .table th:last-child, .panel--flush .table td:last-child { padding-right: 20px; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger strong { display: block; font-weight: 600; }
.ledger a { text-decoration: none; color: var(--ink); }
.ledger small { color: var(--muted); font-size: .85rem; }
.ledger .num { font-weight: 700; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 38px; min-height: 26px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem; }
.notes { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.notes li + li { margin-top: 6px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 20px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pager span[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Summary strip ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 20px; }
.figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure { background: var(--surface); padding: 15px 20px 17px; display: grid; gap: 1px; text-decoration: none; color: inherit; border-top: 3px solid transparent; }
a.figure:hover { background: var(--brand-tint); color: inherit; }
.figure__label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.figure__value { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; line-height: 1.15; color: var(--brand); font-variant-numeric: tabular-nums; }
.figure__note { font-size: .85rem; color: var(--muted); }
.figure--due .figure__value { color: var(--bad); }
.figure--clear .figure__value { color: var(--ok); }

/* =====================================================================
   Public site
   ===================================================================== */
.topline { background: var(--brand-deep); color: #c9d6ea; font-size: .85rem; }
.topline__in { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; flex-wrap: wrap; }
.topline__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topline a { color: #e6eefa; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topline a:hover { color: #fff; text-decoration: underline; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--brand); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--brand); }
.brand__logo { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__text strong { font-family: var(--font-doc); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; color: var(--brand); }
.brand__text small { font-family: var(--font-doc); font-style: italic; font-size: 1.02rem; color: var(--muted); }
.masthead__nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.masthead__nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 12px; border-radius: var(--r); }
.masthead__nav > a:not(.btn):hover { color: var(--brand); background: var(--brand-tint); }
.masthead__nav > a:not(.btn)[aria-current] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.btn--login { background: var(--sky-dark); border-color: var(--sky-dark); color: #fff; margin-left: 8px; min-height: 42px; }
.btn--login:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--login[aria-current] { background: var(--brand); border-color: var(--brand); }
.masthead { position: relative; z-index: 20; }
.masthead__nav { margin-left: auto; }
.masthead__actions { display: flex; align-items: center; gap: 8px; }
.masthead__toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--brand); cursor: pointer; }
.masthead__toggle .ic { width: 22px; height: 22px; }
.navdrop { position: relative; }
.navdrop__btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; }
.navdrop__btn .ic { width: 16px; height: 16px; transition: transform .15s; }
.navdrop__btn:hover, .navdrop__btn[aria-expanded="true"] { color: var(--brand); background: var(--brand-tint); }
.navdrop__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.navdrop.is-current .navdrop__btn { color: var(--brand); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.navdrop__menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; min-width: 300px; max-width: 420px; display: none; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--r-lg); box-shadow: 0 22px 44px -26px rgba(11, 31, 61, .5); }
.navdrop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.navdrop.is-open .navdrop__menu { display: grid; }
.navdrop__menu a { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.navdrop__menu a strong { font-weight: 600; color: var(--brand); }
.navdrop__menu a small { font-size: .86rem; color: var(--muted); }
.navdrop__menu a:hover, .navdrop__menu a:focus-visible { background: var(--brand-tint); }
.navdrop__empty { padding: 10px 12px; color: var(--muted); }
@media (hover: hover) and (min-width: 1041px) {
  .navdrop:hover .navdrop__menu { display: grid; }
}

.ticker { background: var(--sky); color: #fff; }
.ticker__in { display: flex; align-items: stretch; min-height: 40px; }
.ticker__label { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--brand); font-weight: 700; font-size: .9rem; flex: none; }
.ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker__text { margin: 0; display: flex; gap: 80px; white-space: nowrap; font-weight: 600; font-size: .95rem; padding-left: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__text { animation: ticker 32s linear infinite; }
  .ticker:hover .ticker__text { animation-play-state: paused; }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 40px)); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__text { white-space: normal; }
  .ticker__text span[aria-hidden] { display: none; }
}
.site-main { min-height: 50vh; }

.home { background: linear-gradient(180deg, var(--surface) 0, var(--brand-tint) 100%); border-bottom: 1px solid var(--line); }
.home__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px 0 52px; }
.campus { margin: 0; }
.campus__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--brand); box-shadow: 0 26px 50px -34px rgba(11, 31, 61, .65); }
.campus__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.campus__frame--blank { display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 25% 15%, rgba(46, 168, 229, .38), transparent 55%), linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%); }
.campus__frame--blank .campus__mark { width: 104px; height: 104px; border-radius: 12px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.campus__place { display: grid; gap: 4px; font-family: var(--font-doc); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.campus__place small { font-family: var(--font-ui); font-size: .95rem; font-weight: 400; opacity: .85; }
.campus figcaption { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--sky); color: var(--ink-2); font-size: 1.04rem; line-height: 1.55; max-width: 62ch; }
.campus figcaption a { font-weight: 600; white-space: nowrap; }
.verify-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r-lg); padding: 30px 32px 26px; box-shadow: 0 18px 40px -30px rgba(11, 31, 61, .55); }
.verify-card h1 { margin-bottom: 6px; }
.verify-card__lead { color: var(--muted); margin-bottom: 20px; }
.verify-form { display: grid; gap: 16px; }
.verify-form .btn { width: 100%; }
.verify-card__note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.verify-card__note .ic { color: var(--sky-dark); margin-top: 3px; }

.site-foot { background: var(--brand-deep); color: #c9d6ea; font-size: .95rem; }
.site-foot a { color: #e6eefa; }
.site-foot a:hover { color: #fff; }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 36px 0 28px; }
.site-foot h2 { color: #fff; font-size: 1rem; margin: 6px 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot__brand { display: flex; align-items: center; gap: 10px; }
.site-foot__brand img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.site-foot__brand strong { font-family: var(--font-doc); font-size: 1.3rem; color: #fff; }
.site-foot__tag { font-family: var(--font-doc); font-style: italic; font-size: 1.05rem; margin: 8px 0; }
.site-foot__about p { display: flex; gap: 8px; align-items: flex-start; }
.site-foot__about .ic { margin-top: 3px; flex: none; }
.site-foot__bottom { background: #07152b; font-size: .85rem; }
.site-foot__bottom-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; }

/* ---------- Public pages: About, Contact, Academics ---------- */
.pubpage { padding: 34px 0 64px; }
.pubpage__head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pubpage__head h1 { font-family: var(--font-doc); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--brand); margin: 0 0 6px; }
.pubpage__head p { color: var(--muted); max-width: 64ch; margin: 0; }
.pubpage__head .pubpage__tag { font-family: var(--font-doc); font-style: italic; font-size: 1.2rem; }
.pubpage__head .pubpage__kicker { font-weight: 600; color: var(--sky-dark); margin-bottom: 4px; }
.pubpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.prose { max-width: 70ch; font-size: 1.06rem; color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.prose__photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 22px; }
.pubside { display: grid; gap: 16px; min-width: 0; }
.pubside__block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.pubside__block h2 { font-size: 1rem; color: var(--brand); margin: 0 0 10px; }
.pubside__block p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: .96rem; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.pubside__block p .ic { margin-top: 3px; flex: none; color: var(--sky-dark); }
.pubside__block .btn .ic { margin-top: 0; color: inherit; }
.pubside__list { list-style: none; margin: 0; padding: 0; display: grid; }
.pubside__list a { display: block; padding: 6px 0; font-weight: 600; text-decoration: none; }
.pubside__list a[aria-current] { color: var(--ink); }
.progfacts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 14px 0 0; padding: 0; }
.progfacts li { display: grid; }
.progfacts span { font-size: .85rem; color: var(--muted); }
.progfacts strong { font-size: 1.12rem; color: var(--ink); }
.curric__title { font-family: var(--font-doc); font-size: 1.6rem; color: var(--brand); margin: 28px 0 12px; }
.curric { margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.curric h3 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 12px 16px; font-size: 1.02rem; color: var(--brand); background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.curric h3 span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.curric__table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.curric__table th, .curric__table td { padding: 8px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.curric__table th { font-size: .82rem; font-weight: 600; color: var(--muted); }
.curric__table tr:last-child td { border-bottom: 0; }
.curric__table .num { text-align: right; }
.curric__table .code { width: 120px; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.contact__list { display: grid; gap: 14px; }
.contact__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky-soft); color: var(--sky-dark); }
.contact__item h2 { margin: 0 0 2px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.contact__item p { margin: 0 0 4px; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.contact__map { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact__map iframe { display: block; width: 100%; height: 440px; border: 0; }
.contact__mapnote { display: grid; place-items: center; height: 440px; padding: 24px; text-align: center; color: var(--muted); }

/* ---------- Sign in ---------- */
.auth { padding: clamp(32px, 6vw, 60px) 0 72px; display: grid; place-items: start center; }
.auth__card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sky-dark); border-radius: var(--r-lg); padding: 30px 30px 26px; }
.auth__card h1 { margin-bottom: 4px; }
.auth__lead { color: var(--muted); margin-bottom: 20px; }
.auth__help { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.auth .btn--lg { width: 100%; }

/* ---------- Verification result ---------- */
.verify { padding: 34px 0 64px; max-width: 900px; }
.verify__head p { color: var(--muted); max-width: 62ch; }
.verify__bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin: 18px 0 24px; }
.verify__bar .verify-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: end; }
.verify__bar .verify-form .btn { width: auto; }

.record { position: relative; padding: 9px; border-radius: 4px; background: repeating-linear-gradient(135deg, #e7eef8 0 2px, #fff 2px 6px); box-shadow: 0 1px 0 var(--line), 0 22px 44px -30px rgba(11, 31, 61, .5); margin-bottom: 18px; }
.record__frame {
  position: relative; background-color: #fff;
  background-image:
    repeating-radial-gradient(circle at 100% 0, transparent 0 13px, rgba(46, 168, 229, .05) 13px 14px),
    repeating-radial-gradient(circle at 0 100%, transparent 0 13px, rgba(23, 63, 122, .045) 13px 14px);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(214, 178, 99, .6);
  padding: 28px 34px 22px;
}
.record__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.record__logo { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.record__issuer { font-family: var(--font-doc); font-weight: 700; color: var(--brand); font-size: 1.25rem; margin: 0; }
.record__head h2 { font-family: var(--font-doc); font-weight: 600; font-style: italic; font-size: 1.1rem; color: var(--muted); margin: 0; }
.seal { width: 118px; height: 118px; transform: rotate(-9deg); margin: -10px -8px -14px 0; }
.seal__outer { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.seal__inner { fill: #eef5fc; stroke: var(--brand); stroke-width: 1.4; }
.seal__text { font: 700 10px var(--font-ui); fill: var(--gold); letter-spacing: .5px; }
.seal__tick { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .seal { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.25) .25s both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
}
.record__status { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 20px; padding: 10px 14px; background: var(--ok-soft); color: var(--ok); border-left: 3px solid var(--ok); font-weight: 600; }
.record__status .ic { margin-top: 3px; }
.record__body { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; }
.record__photo { width: 132px; height: 160px; object-fit: cover; border: 1px solid var(--line-2); padding: 4px; background: #fff; }
.record__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.record__list > div { padding: 8px 0 9px; border-bottom: 1px dotted var(--line-2); min-width: 0; }
.record__list dt { font-size: .85rem; color: var(--muted); }
.record__list dd { margin: 1px 0 0; font-family: var(--font-doc); font-size: 1.2rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.25; }
.record__name, .record__wide { grid-column: 1 / -1; }
.record__name dd { font-size: 1.65rem; color: var(--brand); }
.record__cgpa dd { color: var(--brand); font-size: 1.5rem; }
.record__cgpa small { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); font-weight: 500; }
.record__foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.record__foot p { margin: 0 0 4px; }
.record-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =====================================================================
   Graduate portal
   ===================================================================== */
.masthead--portal .masthead__in { min-height: 76px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-soft); }
.who__name { display: grid; line-height: 1.2; font-weight: 700; color: var(--ink); }
.who__name small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.who .btn { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.who .btn:hover { background: var(--brand-tint); }
.tabs { background: var(--brand); position: sticky; top: 0; z-index: 5; }
.tabs__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs__in::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; color: #d3def0; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: #fff; background: rgba(255,255,255,.07); }
.tabs a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--sky); background: rgba(255,255,255,.08); }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 0 0 20px; overflow-x: auto; }
.subtabs a { display: inline-flex; padding: 12px 14px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--sky); }
.portal-main { padding: 28px 0 40px; }
.portal-foot { padding: 0 0 36px; color: var(--muted); font-size: .9rem; }

.person { display: flex; gap: 20px; align-items: center; margin: 0 0 22px; flex-wrap: wrap; }
.person__photo { width: 96px; height: 112px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; }
.person__text { flex: 1 1 300px; min-width: 0; }
.person__text h1, .person__text h2 { font-family: var(--font-doc); font-weight: 700; font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); color: var(--brand); margin: 0 0 2px; }
.person__program { color: var(--ink-2); margin: 0 0 8px; font-size: 1.05rem; }
.person__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: .9rem; color: var(--muted); }
.person__meta strong { color: var(--ink); font-weight: 700; }
.person__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; max-width: 64ch; }

.semester__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 8px; }
.semester__head h2 { font-family: var(--font-doc); font-size: 1.4rem; font-weight: 700; color: var(--brand); margin: 0; }
.semester__head p { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.semester__head strong { color: var(--ink); }
.semester__head .row-actions { margin: 0; }
.semester .table { table-layout: fixed; min-width: 560px; }
.semester .table th:nth-child(1) { width: 15%; }
.semester .table th:nth-child(3), .semester .table th:nth-child(4) { width: 11%; }
.semester .table th:nth-child(5) { width: 13%; }
.semester .table th:nth-child(6) { width: 11%; }
.semester .table tfoot th { font-size: .9rem; color: var(--ink-2); }
.semester .table tfoot th:last-child { color: var(--brand); font-size: 1rem; }
details.scale summary { cursor: pointer; font-weight: 700; }
details.scale[open] summary { margin-bottom: 12px; }

.bill { max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 22px; margin: 0 0 20px; }
.bill dl { margin: 0; }
.bill dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.bill dl > div:last-child { border-bottom: 0; }
.bill dt { color: var(--ink-2); }
.bill dd { margin: 0; font-weight: 700; }
.bill__sub dt, .bill__sub dd { font-weight: 700; color: var(--ink); }
.bill__total { border-top: 2px solid var(--brand); }
.bill dl > .bill__total { border-bottom: 0; padding-top: 14px; padding-bottom: 14px; }
.bill__total dt { font-weight: 700; color: var(--ink); }
.bill__total dd { font-size: 1.5rem; line-height: 1.1; }
.bill__total.is-due dd { color: var(--bad); }
.bill__total.is-clear dd { color: var(--ok); }

.profile { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 6px; justify-items: center; text-align: center; position: sticky; top: 64px; }
.profile__card > img { width: 160px; height: 190px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-2); margin-bottom: 8px; }
.profile__card > strong { font-family: var(--font-doc); font-size: 1.3rem; color: var(--brand); }
.profile__card > span { color: var(--muted); }
.profile__groups > .panel h2 { font-family: var(--font-doc); font-size: 1.3rem; color: var(--brand); border-bottom: 2px solid var(--sky-soft); padding-bottom: 6px; }
.sign-box { width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 2px; }
.sign-box img { width: 180px; height: auto; mix-blend-mode: multiply; }
.sign-box small { color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 2px; min-width: 140px; }
.mini-facts { width: 100%; margin: 12px 0 0; text-align: left; font-size: .875rem; }
.mini-facts > div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.mini-facts dt { color: var(--muted); }
.mini-facts dd { margin: 0; font-weight: 600; text-align: right; }
.narrow { max-width: 580px; }
.narrow-left { max-width: 760px; }

/* Admin: CGPA explanation, auto-calculated values, fee breakdown */
.how summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.how__steps { margin: 12px 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.how__steps .muted { font-variant-numeric: tabular-nums; }
.auto-box { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 14px 16px; background: var(--sky-soft); border-radius: var(--r); }
.auto-box__nums { display: flex; gap: 22px; }
.auto-box__nums span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); }
.auto-box__nums strong { font-size: 1.5rem; color: var(--brand); line-height: 1.1; }
.auto-box p { display: flex; gap: 8px; margin: 0; font-size: .92rem; color: var(--ink-2); }
.auto-box p .ic { color: var(--sky-dark); margin-top: 3px; }
.bill--wide { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; }
.bill--wide .hint { margin: 0 0 12px; }
input[data-due] { font-weight: 700; color: var(--bad); }

/* =====================================================================
   Admin panel
   ===================================================================== */
.admin { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--brand-deep); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: start; }
.side__brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side__brand img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.side__brand span { display: grid; line-height: 1.25; min-width: 0; }
.side__brand strong { font-size: .98rem; }
.side__brand small { color: rgba(255,255,255,.6); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__nav { padding: 12px 10px; display: grid; gap: 2px; }
.side__nav a, .side__foot a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r); color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; }
.side__nav a:hover, .side__foot a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side__nav a[aria-current], .side__foot a[aria-current] { background: rgba(46,168,229,.18); color: #fff; box-shadow: inset 3px 0 0 var(--sky); }
.side__group { margin: 14px 12px 4px; font-size: .78rem; color: rgba(255,255,255,.5); }
.side__foot { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 2px; }
.side :focus-visible { outline-color: var(--sky); }
.admin__body { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 28px; min-height: 62px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar__menu { display: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); width: 40px; height: 40px; place-items: center; cursor: pointer; color: var(--ink); }
.topbar__title { font-family: var(--font-doc); font-weight: 700; font-size: 1.45rem; color: var(--brand); margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__site { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.admin__main { padding: 26px 28px 48px; max-width: 1240px; width: 100%; }
.lede { color: var(--ink-2); margin: 0 0 18px; max-width: 74ch; }
.crumbs { margin: 0 0 16px; font-size: .95rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.scrim { display: none; }

.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 18px; }
.filters__buttons { display: flex; gap: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head p { margin: 0; color: var(--ink-2); }
.list-head .row-actions { margin: 0; }
.person-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.person-cell img, .people img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper); }
.person-cell strong, .people strong { display: block; font-weight: 700; }
.person-cell small, .people small { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.people { list-style: none; margin: 0; padding: 0; }
.people a { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.people li:last-child a { border-bottom: 0; }
.people a > span:not(.badge) { flex: 1; min-width: 0; }
.people a > .badge { flex: none; }
.people small { display: block; overflow: hidden; text-overflow: ellipsis; }
.people a:hover strong { color: var(--royal); }

.form-sheet fieldset.panel { margin: 0 0 18px; }
.form-sheet legend { float: left; width: 100%; padding: 0 0 8px; margin: 0 0 14px; font-weight: 700; font-size: 1.1rem; color: var(--brand); border-bottom: 1px solid var(--line); }
.form-sheet legend + * { clear: both; }
.form-sheet .panel > :is(.grid-2, .grid-3, .grid-4, .field) + :is(.grid-2, .grid-3, .grid-4, .field) { margin-top: 16px; }
.form-sheet .panel > .hint { margin-top: 12px; }
.form-sheet__bar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 30%); z-index: 4; }
.photo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-field img { width: 96px; height: 114px; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.photo-field > div { display: grid; gap: 10px; min-width: 0; flex: 1; }
.sign-preview { display: grid; place-items: center; width: 160px; height: 64px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #fff; flex: none; }
.sign-preview img { width: 150px; height: 48px; object-fit: contain; border: 0; background: none; }
.photo-field .logo-preview { width: 96px; height: 96px; object-fit: contain; padding: 4px; background: #fff; }
.photo-field .hero-preview { width: 160px; height: 135px; object-fit: cover; }
.danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); margin-top: 28px; }
.danger h2 { color: var(--bad); }

.program-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.program-head h2 { font-family: var(--font-doc); font-size: 1.9rem; color: var(--brand); margin: 0 0 4px; }
.program-head .row-actions { margin: 0; }
.sem-title { margin: 18px 0 6px; font-family: var(--font-doc); font-size: 1.2rem; color: var(--brand); }
.sem-title:first-of-type { margin-top: 4px; }
.sem-title small { font-family: var(--font-ui); font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.catalog { margin-bottom: 6px; }
.catalog td { vertical-align: middle; }
.catalog th:first-child { width: 18%; }
.catalog th:nth-child(3) { width: 12%; }
.catalog th:last-child { width: 120px; }
.inline-edit { display: grid; grid-template-columns: 1fr 2.4fr .7fr .7fr auto; gap: 10px; align-items: end; }
.inline-edit__btns { display: flex; gap: 6px; padding-bottom: 6px; }
.is-editing td { background: var(--sky-soft); }

.editor td { padding: 6px 6px; vertical-align: top; }
.editor th { padding: 8px 6px; }
.editor input, .editor select { min-height: 40px; }
.editor td[data-gp] { padding-top: 15px; }
.course-cell select { min-width: 260px; }
.other-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; margin-top: 6px; }
.course-cell select + .other-fields[hidden] { display: none; }
.other-fields:first-child { margin-top: 0; }
.num-input { text-align: right; }
.gpa-live { align-self: end; display: grid; padding: 6px 14px; min-height: 64px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--brand-tint); }
.gpa-live span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.gpa-live strong { font-size: 1.5rem; color: var(--brand); line-height: 1.1; }
.gpa-live small { color: var(--muted); font-size: .82rem; }
.loader { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sky-soft); border-radius: var(--r); }
.loader label { font-weight: 600; }
.loader select { width: auto; min-height: 36px; }
.loader .hint { margin: 0; }

.tally { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.tally > div { padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r); min-width: 150px; }
.tally dt { font-size: .85rem; color: var(--muted); }
.tally dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.tally .is-bad dd { color: var(--bad); }
.error-list { max-height: 320px; overflow: auto; margin: 0; padding: 12px 12px 12px 30px; background: var(--bad-soft); color: var(--bad); border-radius: var(--r); font-size: .9rem; }
.cols { line-height: 2.1; }
.cols code.is-req { background: var(--gold-soft); border-color: var(--gold-line); color: #6b4c0e; font-weight: 700; }

details.menu { position: relative; display: inline-block; text-align: left; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
.menu__body { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); padding: 14px; display: grid; gap: 10px; z-index: 10; white-space: normal; }
.menu__body form { display: grid !important; gap: 8px; }

.admin-auth { background: var(--brand-deep); }
.admin-auth__main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-auth .btn--lg { width: 100%; }
.admin-auth__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.admin-auth__brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.admin-auth__brand strong { display: block; font-family: var(--font-doc); font-size: 1.35rem; line-height: 1.15; color: var(--brand); }
.admin-auth__brand span { color: var(--muted); font-size: .9rem; }

/* ---------- Installer ---------- */
.install__main { width: min(760px, 100% - 32px); margin: 40px auto 64px; }
.install__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.install__head img { border-radius: 8px; }
.install__head h1 { margin: 0 0 4px; }
.install__head p { margin: 0; color: var(--muted); }
.install .panel h2 { margin-top: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks .is-ok { color: var(--ok); }
.checks .is-bad { color: var(--bad); font-weight: 600; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; white-space: pre; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1040px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field--grow { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-left { grid-template-columns: minmax(0, 1fr); }
  .inline-edit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .masthead__in { flex-wrap: wrap; }
  .masthead__toggle { display: inline-grid; }
  .masthead__toggle .ic + .ic, .masthead.is-open .masthead__toggle .ic:first-child { display: none; }
  .masthead.is-open .masthead__toggle .ic + .ic { display: block; }
  .masthead__nav { order: 3; display: none; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding: 4px 0 8px; }
  .masthead.is-open .masthead__nav { display: flex; }
  .masthead__nav > a:not(.btn), .navdrop__btn { width: 100%; justify-content: space-between; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .masthead__nav > a:not(.btn)[aria-current], .navdrop.is-current .navdrop__btn { box-shadow: inset 3px 0 0 var(--sky); padding-left: 12px; }
  .navdrop__menu { position: static; transform: none; width: auto; min-width: 0; max-width: none; margin: 6px 0 8px; padding: 0 0 0 10px; border: 0; border-left: 3px solid var(--sky-soft); border-radius: 0; box-shadow: none; }
  .navdrop__menu::before { display: none; }
  .btn--login { margin-left: 0; }
}
@media (max-width: 900px) {
  .pubpage__grid, .contact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact__map iframe, .contact__mapnote { height: 320px; }
  .home__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0 36px; }
  .campus { order: 2; }
}
@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 276px; height: 100%; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; }
  .menu-open .side { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11, 31, 61, .5); z-index: 40; }
  .topbar { padding: 0 16px; }
  .topbar__menu { display: inline-grid; }
  .topbar__site { display: none; }
  .admin__main { padding: 20px 16px 40px; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile__card { position: static; }
}
@media (max-width: 760px) {
  .wrap { width: min(1160px, 100% - 28px); }
  .topline { display: none; }
  .masthead__in { min-height: 0; gap: 10px; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__text strong { font-size: 1.3rem; }
  .brand__text small { font-size: .95rem; }
  .masthead__in { align-items: center; }
  .masthead__actions { display: contents; }
  .brand { order: 1; flex: 1; }
  .masthead__toggle { order: 2; }
  .masthead__actions .btn--login { order: 3; width: 100%; justify-content: center; }
  .masthead__nav { order: 4; }
  .site-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-foot__about { grid-column: 1 / -1; }
  .verify-card { padding: 22px 18px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .verify__bar .verify-form { grid-template-columns: minmax(0, 1fr); }
  .verify__bar .verify-form .btn { width: 100%; }
  .record { padding: 6px; }
  .record__frame { padding: 20px 18px 18px; }
  .record__head { grid-template-columns: minmax(0, 1fr); }
  .record__logo { display: none; }
  .seal { position: absolute; top: 8px; right: 6px; width: 84px; height: 84px; margin: 0; }
  .record__head > div { padding-right: 78px; }
  .record__body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .record__photo { width: 108px; height: 130px; }
  .record__list { grid-template-columns: minmax(0, 1fr); }
  .who__name { display: none; }
  .who .btn span { display: none; }
  .person__photo { width: 76px; height: 90px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .panel { padding: 16px; }
  .figure { padding: 13px 16px; }
  .figures--3 .figure { padding: 12px; }
  .course-cell select { min-width: 200px; }
  .auto-box { grid-template-columns: minmax(0, 1fr); }
  .bill--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .brand__text strong { font-size: 1.15rem; }
  .figures--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Print
   ===================================================================== */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .topline, .masthead, .ticker, .tabs, .site-foot, .portal-foot, .side, .topbar, .btn, .verify__bar, .verify__head,
  .record-actions, .notice, details.scale, .skip, .row-actions, .crumbs { display: none !important; }
  .print-only { display: block; }
  .print-head { margin-bottom: 12px; font-size: 10pt; }
  .wrap, .portal-main, .verify { width: auto; max-width: none; padding: 0; margin: 0; }
  .panel { border: 0; padding: 0; margin: 0 0 14px; break-inside: avoid; }
  .profile { grid-template-columns: 200px 1fr; }
  .profile__card { position: static; border: 0; }
  .semester { break-inside: avoid; }
  .record { box-shadow: none; padding: 5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .record__frame, .record__status, .seal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .seal { animation: none; }
  a { color: inherit; text-decoration: none; }
}

/* =====================================================================
   Marksheet (admin only) — A4 sheet, framed, logo watermark
   Screen: 210 × 297 mm sheet with 10 mm padding = the printed page.
   ===================================================================== */
.marksheet-page { background: #e6ebf1; }
.ms-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ms-toolbar__info { color: var(--muted); font-size: .9rem; }
.ms-doc { padding: 24px 0 40px; }
.msp { width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 10mm; background: #fff; color: #121820; font-size: 9pt; line-height: 1.32; box-shadow: 0 12px 40px -20px rgba(11, 31, 61, .45); }
.msp__in { position: relative; display: flex; flex-direction: column; min-height: 277mm; padding: 4mm 5.5mm 3.5mm; border: 2.2pt double var(--brand); overflow: hidden; }
.msp__watermark { position: absolute; left: 50%; top: 54%; width: 128mm; height: 128mm; object-fit: contain; transform: translate(-50%, -50%); opacity: .14; pointer-events: none; z-index: 0; }
.msp__in > *:not(.msp__watermark) { position: relative; z-index: 1; }

.ms__head { display: grid; grid-template-columns: 20mm 1fr 20mm; gap: 8px; align-items: center; padding-bottom: 3mm; border-bottom: 1pt solid var(--brand); }
.ms__logo { width: 19mm; height: 19mm; object-fit: contain; border-radius: 0; }
.ms__bn { margin: 0 0 .6mm; font-family: "JKK Bangla", sans-serif; font-weight: 700; font-size: 12.5pt; line-height: 1.25; color: var(--brand); }
.ms__uni { text-align: center; }
.ms__uni h1 { font-family: var(--font-doc); font-weight: 700; font-size: 17.5pt; line-height: 1.05; color: var(--brand); margin: 0; letter-spacing: .2pt; }
.ms__tag { font-family: var(--font-doc); font-style: italic; font-size: 10.5pt; color: #3a4452; margin: 1.5px 0 0; }
.ms__addr { margin: 1px 0 0; font-size: 8pt; color: #4b5563; }
.ms__photo { width: 19mm; height: 23mm; object-fit: cover; border: .6pt solid #8d99a8; justify-self: end; }

.ms__titlerow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 2.5mm 0 2.5mm; }
.ms__corner { display: grid; gap: 0; font-size: 8pt; color: #4b5563; line-height: 1.25; }
.ms__corner strong { font-size: 9pt; color: #121820; }
.ms__corner--right { text-align: right; }
.ms__title { text-align: center; }
.ms__title h2 { display: inline-block; margin: 0; padding: 1.5px 16px; border: 1.2pt solid var(--brand); border-radius: 2px; font-family: var(--font-doc); font-weight: 700; font-size: 13.5pt; letter-spacing: .4pt; color: var(--brand); background: rgba(255, 255, 255, .85); }
.ms__title p { margin: 1.5px 0 0; font-size: 7.8pt; color: #4b5563; }

.ms__student { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0 0 3mm; padding: 1.8mm 3.5mm; border: .8pt solid #b9c4d2; border-radius: 2px; background: rgba(241, 245, 250, .7); font-size: 8.4pt; line-height: 1.3; }
.ms__student > div { display: flex; gap: 6px; min-width: 0; }
.ms__student dt { flex: none; width: 28mm; color: #4b5563; }
.ms__student dt::after { content: ":"; }
.ms__student dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ms__wide { grid-column: 1 / -1; }

.msp__body { flex: 1; display: flex; flex-direction: column; }
.msp__sems { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm 4mm; align-content: start; }
.msp--single .msp__sems { grid-template-columns: 1fr; }
.ms__sem { break-inside: avoid; min-width: 0; }
.ms__sem h3 { margin: 0 0 1.5px; font-size: 1.06em; color: var(--brand); }
.ms__sem table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ms__sem col.w-code { width: 17%; }
.ms__sem col.w-num { width: 10.5%; }
.ms__sem th, .ms__sem td { border: .6pt solid #aab6c4; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ms__sem th { background: rgba(229, 236, 245, .85); font-weight: 700; }
.ms__sem td { background: rgba(255, 255, 255, .3); }
.ms__sem .n { text-align: center; white-space: nowrap; }
.ms__sem .c { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.ms__sem tfoot td { background: rgba(241, 245, 250, .85); }
.ms__sem tr.f td { color: #a3271f; }
.msp--single .ms__sem col.w-code { width: 14%; }
.msp--single .ms__sem col.w-num { width: 9%; }
/* Text size steps; the page picks the largest one that fits */
.d1 .msp__sems { font-size: 9.6pt; } .d1 .ms__sem th, .d1 .ms__sem td { padding: 2.6px 5px; }
.d2 .msp__sems { font-size: 8.8pt; } .d2 .ms__sem th, .d2 .ms__sem td { padding: 2.2px 4px; }
.d3 .msp__sems { font-size: 8pt; }   .d3 .ms__sem th, .d3 .ms__sem td { padding: 1.8px 3.5px; }
.d4 .msp__sems { font-size: 7.3pt; } .d4 .ms__sem th, .d4 .ms__sem td { padding: 1.4px 3px; }
.d5 .msp__sems { font-size: 6.7pt; } .d5 .ms__sem th, .d5 .ms__sem td { padding: 1px 2.5px; }

.ms__end { margin-top: auto; padding-top: 3mm; }
.ms__summary { display: flex; margin: 0 0 2.5mm; border: 1.2pt solid var(--brand); border-radius: 2px; background: rgba(255, 255, 255, .85); }
.ms__summary > div { flex: 1; padding: 3px 8px; text-align: center; }
.ms__summary > div + div { border-left: .6pt solid #b9c4d2; }
.ms__summary span { display: block; font-size: 7.6pt; color: #4b5563; }
.ms__summary strong { font-size: 12pt; color: var(--brand); }
.ms__scale { width: 100%; border-collapse: collapse; font-size: 7.2pt; text-align: center; color: #374151; }
.ms__scale th, .ms__scale td { border: .6pt solid #b9c4d2; padding: .8px 2px; background: rgba(255, 255, 255, .6); }
.ms__scale th { text-align: left; white-space: nowrap; background: rgba(241, 245, 250, .85); }

.msp__sign { display: flex; justify-content: space-between; margin-top: 12mm; text-align: center; font-size: 8.6pt; }
.msp__sign > div { width: 58mm; }
.msp__sign span { display: block; border-top: .8pt solid #222; margin-bottom: 2px; }
.msp__pageno { margin: 2mm 0 0; text-align: center; font-size: 7.6pt; color: #4b5563; }

@media screen and (max-width: 860px) {
  .msp { width: auto; min-height: 0; margin: 12px; padding: 10px; }
  .msp__in { min-height: 0; }
  .msp__sems, .ms__student { grid-template-columns: minmax(0, 1fr); }
  .ms__titlerow { grid-template-columns: 1fr; text-align: center; }
  .ms__corner--right { text-align: center; }
  .msp__sign { gap: 6mm; }
}
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  html, body { background: #fff !important; }
  .ms-toolbar { display: none !important; }
  .ms-doc { padding: 0; }
  .msp { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .msp:last-child { break-after: auto; page-break-after: auto; }
  .msp__in { min-height: 276mm; }
  .msp, .msp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   Certificate (A4 landscape) and letters (A4 portrait)
   ===================================================================== */
.doc-page--landscape .ms-doc { overflow-x: auto; }
.doc-page--landscape .cert { margin-left: auto; margin-right: auto; }
.cert { position: relative; width: 297mm; height: 210mm; margin: 0 auto 24px; padding: 6mm; background: #fff; color: #1d2430; box-shadow: 0 12px 40px -20px rgba(11, 31, 61, .45); overflow: hidden; font-family: "Cardo", var(--font-doc); }
.cert__frame, .cert__micro, .cert__in { position: absolute; left: 6mm; top: 6mm; width: 285mm; height: 198mm; }
.cert__micro { overflow: visible; }
.cert__micro text { font-family: var(--font-ui); font-weight: 600; font-size: 1.12px; fill: #173F7A; opacity: .75; }
.cert__watermark { position: absolute; left: 50%; top: 53%; width: 92mm; height: 92mm; object-fit: contain; transform: translate(-50%, -50%); opacity: .075; pointer-events: none; }
.cert__in { padding: 18.5mm 28mm 17.5mm; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert__meta { position: absolute; top: 19.5mm; left: 21mm; right: 21mm; display: flex; justify-content: space-between; font-size: 9.5pt; color: #2a3442; }
.cert__meta strong { font-weight: 700; }
.cert__serial strong { color: #B3261E; letter-spacing: .4pt; }
.cert__logo { width: 17mm; height: 18.5mm; object-fit: contain; }
.cert__uni { font-family: "Cert Blackletter", "Cardo", serif; font-weight: 400; font-size: 34pt; line-height: 1.05; letter-spacing: -.2pt; color: var(--brand); margin: .5mm 0 0; white-space: nowrap; }
.cert__bn { margin: 2mm 0 0; font-family: "JKK Bangla", sans-serif; font-weight: 700; font-size: 17pt; line-height: 1.2; color: var(--brand); }
.cert__tag { font-style: italic; font-size: 11.5pt; letter-spacing: .2pt; color: #4a4f57; margin: 1mm 0 0; }
.cert__rule { width: 62mm; height: 3.1mm; margin-top: 1.5mm; }
.cert__kind { font-family: "Cert Blackletter", "Cardo", serif; font-size: 30pt; line-height: 1; color: #9A6B17; margin: 3mm 0 0; }
.cert__lead { font-family: "Cert Chancery", "Cardo", serif; font-size: 19pt; line-height: 1.1; color: #2a2f36; margin: 2.5mm 0 0; }
.cert__name { font-family: "Cert Chancery", "Cardo", serif; font-size: 36pt; line-height: 1.12; color: #12233F; margin: .5mm 0 1.5mm; }
.cert__text { font-size: 12.4pt; line-height: 1.5; color: #23272e; max-width: 236mm; margin: 0; text-wrap: balance; }
.cert__abbr { font-family: "Cardo", serif; font-weight: 700; font-size: .86em; letter-spacing: .5pt; }
.cert__text strong { font-weight: 700; color: #111; }
.cert__degree { font-family: "Cert Blackletter", "Cardo", serif; font-weight: 400; font-size: 25pt; line-height: 1.15; color: var(--brand); max-width: 236mm; margin: 2mm 0 .5mm; }
.cert__major { font-style: italic; font-size: 12.4pt; color: #23272e; margin: 0 0 1.5mm; }
.cert__signs { margin-top: auto; width: 100%; display: flex; justify-content: space-between; padding: 0 18mm; }
.cert__signs > div { width: 52mm; font-size: 11pt; color: #1d2430; text-align: center; }
.cert__signs span { display: block; border-top: .7pt solid #2a2f36; margin-bottom: 1.4mm; }
.cert__qr { position: absolute; left: 25mm; top: 169mm; width: 17mm; height: 17mm; background: #fff; }
.cert__qr svg { display: block; width: 100%; height: 100%; }

.letter { width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 10mm; background: #fff; color: #121820; box-shadow: 0 12px 40px -20px rgba(11, 31, 61, .45); }
.letter__in { position: relative; display: flex; flex-direction: column; min-height: 277mm; padding: 5mm 12mm 4mm; overflow: hidden; }
.letter__watermark { position: absolute; left: 50%; top: 56%; width: 112mm; height: 112mm; object-fit: contain; transform: translate(-50%, -50%); opacity: .075; pointer-events: none; }
.letter__in > *:not(.letter__watermark) { position: relative; }
.lh { display: flex; align-items: center; gap: 5mm; }
.lh__logo { width: 19mm; height: 21mm; border-radius: 0; object-fit: contain; }
.lh__bn { margin: 0 0 .6mm; font-family: "JKK Bangla", sans-serif; font-weight: 700; font-size: 13.5pt; line-height: 1.25; color: var(--brand); }
.lh__text h1 { font-family: var(--font-doc); font-weight: 700; font-size: 18.5pt; line-height: 1.05; color: var(--brand); margin: 0; }
.lh__tag { font-family: var(--font-doc); font-style: italic; font-size: 11pt; color: #3a4452; margin: .6mm 0 0; }
.lh__office { font-size: 9pt; color: #4b5563; margin: .6mm 0 0; }
.lh__rule { margin: 4mm 0 5mm; }
.lh__rule span { display: block; }
.lh__rule span:first-child { height: 1.5pt; background: var(--brand); }
.lh__rule span:last-child { height: .7pt; margin-top: 1.2pt; background: #2EA8E5; }
.letter__ref { display: flex; justify-content: space-between; font-size: 10pt; color: #374151; }
.letter__ref strong { color: #121820; }
.letter__title { display: table; margin: 11mm auto 6mm; padding: 0 4mm 1.2mm; border-bottom: .8pt solid #C9962B; font-family: var(--font-doc); font-weight: 700; font-size: 17pt; letter-spacing: .3pt; color: var(--brand); text-align: center; }
.letter__to { margin: 0 0 4mm; font-family: var(--font-doc); font-weight: 700; font-size: 12.5pt; }
.letter__body { font-family: var(--font-doc); font-size: 12.5pt; line-height: 1.65; text-align: justify; hyphens: manual; }
.letter__body p { margin: 0 0 4.5mm; }
.letter__sign { margin-top: 16mm; display: grid; justify-items: start; gap: .4mm; font-family: var(--font-doc); font-size: 11.5pt; line-height: 1.35; }
.letter__sign strong { font-size: 12.5pt; }
.letter__close { margin: -10mm 0 14mm; font-size: 12.5pt; }
.letter__line { width: 62mm; border-top: .8pt solid #222; margin-bottom: 1.6mm; }
.letter__contact { font-family: var(--font-ui); font-size: 9.5pt; color: #374151; }
.letter__foot { margin-top: auto; padding-top: 3mm; border-top: .6pt solid #c4cdd9; font-size: 8pt; color: #4b5563; text-align: center; }

@media screen and (max-width: 860px) {
  .letter { width: auto; min-height: 0; margin: 12px; padding: 10px; }
  .letter__in { min-height: 0; padding: 4mm; }
  .letter__body { text-align: left; }
  .letter__ref { flex-wrap: wrap; gap: 4px 16px; }
}
@media print {
  .doc-page .ms-doc { padding: 0; overflow: visible; }
  .cert { width: 285mm; height: 198mm; padding: 0; margin: 0; box-shadow: none; zoom: 1 !important; }
  .cert__frame, .cert__micro, .cert__in { left: 0; top: 0; }
  .cert__qr { left: 19mm; top: 163mm; }
  .letter { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .letter__in { min-height: 276mm; }
  .cert, .cert *, .letter, .letter * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Admin: Documents tab */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 20px; }
.doc-grid > .panel { margin: 0; }
.doc-card--wide { grid-column: 1 / -1; }
.doc-card summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.doc-card summary::-webkit-details-marker { display: none; }
.doc-card summary strong { display: block; font-size: 1.05rem; color: var(--brand); }
.doc-card summary small { display: block; color: var(--muted); font-size: .85rem; }
.doc-card[open] summary { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-card__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--sky-soft); color: var(--sky-dark); }
.doc-card__icon .ic { width: 22px; height: 22px; }
.doc-card textarea { font-family: var(--font-doc); font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 1040px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Students cannot print their results as a marksheet */
.no-print-note { display: none; }
@media print {
  .portal-results-content { display: none !important; }
  .no-print-note { display: block !important; padding: 40px 0; font-size: 13pt; }
}

/* Result entry: semester picker and fixed course rows */
.sem-pick { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 4px 16px; align-items: end; padding: 14px 16px; background: var(--sky-soft); border-radius: var(--r); }
.sem-pick .hint { margin: 0 0 12px; }
.course-name { display: block; padding-top: 9px; }
.course-name strong { margin-right: 8px; color: var(--brand); }
.editor td[data-points] { padding-top: 15px; font-weight: 700; color: var(--brand); }
.editor tr.fixed-row:not(.is-graded) .grade-select { border-color: var(--sky-dark); background-color: #fff; }
.marksheet-panel__make { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.marksheet-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; }
.marksheet-panel .hint { margin: 0; }
.marksheet-panel .inline-form .field { flex: 1 1 280px; }
.issued { margin-top: 14px; }
.issued summary { cursor: pointer; font-weight: 600; color: var(--royal); margin-bottom: 8px; }
@media (max-width: 760px) { .sem-pick { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   JKKNIU look (matches jkkniu.edu.bd)
   ===================================================================== */
body { font-size: .96rem; }
[lang="bn"] { font-family: "JKK Bangla", "Noto Sans Bengali", "Nirmala UI", "Kohinoor Bangla", sans-serif; }
.ms-doc { --font-doc: var(--font-serif); }
.btn { border-radius: 999px; font-weight: 600; }
.btn--lg { padding-inline: 26px; }

/* Header band */
.jkhead { position: relative; z-index: 20; }
.jkband { background: var(--sky); color: #fff; }
.jkband__in { position: relative; display: flex; align-items: center; justify-content: center; min-height: 172px; padding: 18px 0; }
.jkband__logo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: block; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.jkband__logo img { display: block; width: 104px; height: auto; }
.jkband__name { display: grid; justify-items: center; gap: 2px; padding: 0 130px; color: #fff; text-align: center; text-decoration: none; text-shadow: 2px 3px 4px rgba(0, 0, 0, .38); }
.jkband__name:hover { color: #fff; }
.jkband__bn { font-weight: 700; font-size: clamp(1.35rem, 3.4vw, 3rem); line-height: 1.3; }
.jkband__en { font-weight: 700; font-size: clamp(1.05rem, 2.35vw, 2.05rem); line-height: 1.2; letter-spacing: .005em; }
.jkband__portal { margin-top: 8px; padding: 3px 16px; border-radius: 999px; background: rgba(10, 20, 64, .3); font-size: .86rem; font-weight: 500; letter-spacing: .03em; text-shadow: none; }

/* Menu bar */
.jknav { background: #fff; border-bottom: 1px solid #e3e6ec; box-shadow: 0 2px 6px rgba(15, 25, 60, .06); }
.jknav__in { display: flex; justify-content: center; }
.jknav .masthead__nav { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 2px; }
.jknav .masthead__nav > a, .jknav .navdrop__btn { padding: 17px 13px; border-radius: 0; background: none; color: #1d2540; font-size: .88rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.jknav .masthead__nav > a:hover, .jknav .navdrop__btn:hover, .jknav .navdrop__btn[aria-expanded="true"] { color: var(--sky-dark); background: none; }
.jknav .masthead__nav > a[aria-current], .jknav .navdrop.is-current .navdrop__btn { color: var(--sky-dark); box-shadow: inset 0 -3px 0 var(--sky); }
.jknav .navdrop__btn { gap: 6px; }
.jknav .navdrop__btn .ic { width: 15px; height: 15px; }
.jknav .navdrop__menu { top: 100%; border-top-color: var(--sky); border-radius: 0 0 8px 8px; }
.jknav .navdrop__menu::before { display: none; }
.jknav .navdrop__menu a strong { color: #1d2540; }
.jknav .masthead__toggle { display: none; }

/* Notice ticker, as on the main site */
.ticker { display: flex; align-items: stretch; min-height: 46px; background: #fff; color: #1d2540; border-bottom: 1px solid #e3e6ec; }
.ticker__label { display: flex; align-items: center; flex: none; gap: 0; padding: 0 30px; background: var(--sky); color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.ticker__track { mask-image: none; }
.ticker__text { gap: 36px; padding-left: 20px; font-weight: 500; font-size: .96rem; }
.ticker__text > span { display: inline-flex; gap: 36px; }
.ticker__item { display: inline-flex; align-items: center; gap: 7px; }
.ticker__item .ic { width: 17px; height: 17px; color: #1d2540; }

/* Section title with the short green rule */
.jktitle { margin: 0 0 28px; text-align: center; font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; color: #1d2540; }
.jktitle::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; background: var(--sky); }

/* Home: photo + tabbed box */
.jkhero { padding: 34px 0 40px; background: #fff; }
.jkhero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.jkhero__media { margin: 0; }
.jkhero__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-dark); }
.jkhero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jkhero__photo--blank { display: grid; place-items: center; align-content: center; gap: 18px; padding: 28px; color: #fff; text-align: center; background: radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--sky) 55%, transparent), transparent 58%), linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%); }
.jkhero__photo--blank .jkhero__mark { width: 124px; height: auto; padding: 8px; background: #fff; border-radius: 12px; }
.jkhero__place { display: grid; gap: 6px; }
.jkhero__place span { font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.35; }
.jkhero__place small { font-size: .92rem; opacity: .85; }
.jkhero__media figcaption { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--sky); color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.jkhero__media figcaption a { font-weight: 600; white-space: nowrap; color: var(--sky-dark); }
.jktabs { background: #fff; }
.jktabs__bar { display: flex; gap: 26px; border-bottom: 1px solid #e3e6ec; margin-bottom: 20px; }
.jktabs__tab { position: relative; padding: 6px 0 12px; border: 0; background: none; color: #1d2540; font: inherit; font-size: 1.3rem; font-weight: 500; cursor: pointer; }
.jktabs__tab[aria-selected="true"] { color: var(--sky); }
.jktabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--sky); }
.jktabs__tab:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.jktabs__title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 600; color: #1d2540; }
.jktabs__lead { margin: 0 0 18px; color: var(--muted); }
.jktabs__note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e3e6ec; font-size: .86rem; color: var(--muted); }
.jktabs__note .ic { flex: none; margin-top: 2px; color: var(--sky-dark); }
.verify-form .btn--primary, .jktabs .btn--primary { border-radius: 4px; background: var(--sky); border-color: var(--sky); }
.verify-form .btn--primary:hover, .jktabs .btn--primary:hover { background: var(--sky-dark); border-color: var(--sky-dark); }

/* Navy band with boxes (like the Founded / Faculty Members band) */
.jkband2 { padding: 40px 0; background: linear-gradient(rgba(10, 20, 64, .86), rgba(10, 20, 64, .86)), radial-gradient(circle at 80% 30%, var(--sky-dark), transparent 60%), var(--brand-dark); }
.jkband2__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.jkstat { display: flex; align-items: center; gap: 16px; padding: 22px 20px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; transition: background .15s; }
.jkstat:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.jkstat__icon { display: grid; place-items: center; flex: none; width: 58px; height: 58px; background: var(--sky); box-shadow: -7px -7px 0 color-mix(in srgb, var(--sky) 55%, transparent); }
.jkstat__icon .ic { width: 28px; height: 28px; color: #fff; }
.jkstat strong { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.jkstat small { display: block; font-size: .92rem; font-weight: 600; opacity: .95; }

/* Programs list (like the Faculties / Institutes block) */
.jkprog { padding: 48px 0 56px; background: #fff; }
.jkprog .jktitle::before { content: ""; display: block; width: min(560px, 100%); height: 4px; margin: 0 auto 16px; background: var(--brand); }
.jkprog .jktitle::after { display: none; }
.jkprog__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: 1000px; }
.jkprog__list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-left: 4px solid #2bb3a3; color: #1d2540; font-weight: 500; text-transform: uppercase; letter-spacing: .015em; text-decoration: none; background: #fff; box-shadow: 0 1px 0 #eef0f3; }
.jkprog__list a:hover { background: var(--sky-soft); }
.jkprog__list small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.jkprog__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #3b2a8a; box-shadow: 0 0 0 3px #e4e0f5; }
.jkprog__icon .ic { width: 20px; height: 20px; color: #fff; }

/* Inner pages */
.pubpage { background: #fff; }
.pubpage__head { border-bottom: 0; padding-bottom: 0; }
.pubpage__head h1 { font-family: var(--font-ui); font-weight: 600; color: #1d2540; }
.pubpage__head h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; background: var(--sky); }
.pubpage__head .pubpage__kicker { color: var(--sky-dark); }
.pubside__block, .contact__item, .curric { border-top: 3px solid var(--sky); }
.curric h3 { background: #f3f7f2; color: #1d2540; }
.auth__card { border-top: 4px solid var(--sky); }
.auth__card h1, .verify-card h1, .card h1 { font-family: var(--font-ui); }

/* Footer */
.site-foot { background: var(--brand-dark); border-top: 4px solid var(--sky); color: #fff; font-size: .94rem; }
.site-foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; padding: 46px 0 34px; }
.site-foot h2 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid #fff; color: #fff; font-size: 1.2rem; font-weight: 600; }
.site-foot ul { gap: 9px; }
.site-foot ul a { color: #fff; font-weight: 500; text-decoration: none; }
.site-foot ul a::before { content: "» "; }
.site-foot ul a:hover { color: var(--sky); }
.site-foot__contact p { display: block; margin: 0 0 9px; font-weight: 500; }
.site-foot__contact p .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; }
.site-foot__contact a { color: #fff; text-decoration: none; }
.site-foot__follow { margin-top: 18px !important; }
.site-foot__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; background: #1f4fbf; color: #fff; }
.site-foot__social a:hover { background: var(--sky); }
.site-foot__social .ic { width: 20px; height: 20px; }
.site-foot__bottom { background: var(--brand); }
.site-foot__bottom-in { justify-content: center; padding: 16px 0; font-weight: 500; text-align: center; }

/* Portal and admin headers carry the Bangla name under the English one */
.brand__logo { width: 51px; height: 56px; object-fit: contain; border-radius: 0; }
.brand__text strong { font-family: var(--font-ui); font-size: 1.15rem; font-weight: 700; }
.brand__text small[lang="bn"] { font-style: normal; font-size: .98rem; color: var(--sky-dark); }

@media (max-width: 1040px) {
  .jknav__in { justify-content: flex-start; }
  .jknav .masthead__toggle { display: inline-flex; align-items: center; gap: 8px; width: 100%; height: auto; margin: 8px 0; padding: 10px 14px; border: 1px solid #e3e6ec; border-radius: 6px; font: inherit; font-weight: 600; text-transform: uppercase; color: #1d2540; }
  .jknav .masthead__toggle .ic + .ic { display: none; }
  .jknav.is-open .masthead__toggle .ic:first-child { display: none; }
  .jknav.is-open .masthead__toggle .ic + .ic { display: block; }
  .jknav .masthead__nav { display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding-bottom: 8px; }
  .jknav.is-open .masthead__nav { display: flex; }
  .jknav .masthead__nav > a, .jknav .navdrop__btn { padding: 12px 6px; }
  .jknav__in { flex-direction: column; align-items: stretch; }
  .jkhero__grid { grid-template-columns: minmax(0, 1fr); }
  .jkband2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .jkband__in { justify-content: flex-start; gap: 12px; min-height: 0; padding: 12px 0; }
  .jkband__logo { position: static; transform: none; flex: none; padding: 4px; border-radius: 8px; }
  .jkband__logo img { width: 54px; }
  .jkband__name { justify-items: start; padding: 0; text-align: left; text-shadow: 1px 2px 3px rgba(0, 0, 0, .35); }
  .jkband__bn { font-size: 1.12rem; }
  .jkband__en { font-size: .9rem; }
  .jkband__portal { margin-top: 2px; padding: 0; background: none; font-size: .74rem; font-weight: 500; opacity: .95; }
  .ticker__label { padding: 0 14px; font-size: .9rem; }
  .jkhero { padding-top: 22px; }
  .jkhero__media { order: 2; }
  .jktabs__tab { font-size: 1.08rem; }
  .jkband2__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .jkstat { padding: 16px; }
  .jkprog__list { grid-template-columns: minmax(0, 1fr); }
  .site-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

/* Admin: notice board */
.filterbar { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: .86rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--sky); color: var(--sky-dark); }
.chip.is-on { background: var(--sky); border-color: var(--sky); color: #fff; }
form.inline { display: inline; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; }
tr.is-muted td { color: var(--muted); }
tr.is-muted td a { color: var(--muted); }

/* =====================================================================
   Home sections copied from the main site's layout
   ===================================================================== */
fieldset.subset { margin: 6px 0 14px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: var(--r); }
fieldset.subset legend { padding: 0 6px; font-weight: 600; font-size: .92rem; }

/* Numbers band: Founded, Faculty Members, Regular Students, Department */
.jkstats { position: relative; padding: 44px 0; background: linear-gradient(rgba(36, 44, 58, .78), rgba(36, 44, 58, .78)), var(--stats-photo, linear-gradient(135deg, #3d5a3a 0%, #2a3e5c 55%, #3b4a36 100%)) center / cover no-repeat; }
.jkstats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.jkstat2 { display: flex; align-items: center; gap: 18px; padding: 26px 22px; border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.jkstat2__icon { position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 64px; background: #4FC12A; border-radius: 4px; }
.jkstat2__icon::before { content: ""; position: absolute; left: -9px; top: -9px; width: 64px; height: 64px; border-radius: 4px; background: rgba(79, 193, 42, .5); z-index: -1; }
.jkstat2 { isolation: isolate; }
.jkstat2__icon .ic { width: 30px; height: 30px; color: #fff; }
.jkstat2 strong { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.05; }
.jkstat2 small { display: block; font-size: 1.02rem; font-weight: 600; }

/* Faculties | Institutes */
.jkfac { padding: 56px 0 50px; background: #fff; }
.jkfac__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.jkfac__title { margin: 0 0 18px; padding-top: 14px; border-top: 4px solid #333b52; text-align: center; font-size: 1.5rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: #333b52; }
.jkfac__col--right .jkfac__title { border-top-color: var(--brand); }
.jkfac__title a { color: inherit; text-decoration: none; }
.jkfac__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jkfac__list a, .jkfac__plain { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-left: 4px solid #2bb3a3; color: #2e3446; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.jkfac__list a:hover { background: var(--sky-soft); color: var(--sky-dark); }
.jkfac__list--right a, .jkfac__list--right .jkfac__plain { justify-content: flex-end; text-align: right; border-left: 0; border-right: 4px solid var(--brand); }
.jkfac__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #4B2A86; box-shadow: 0 0 0 3px #e4dff4; }
.jkfac__icon .ic { width: 19px; height: 19px; color: #fff; }
.jkfac__icon--navy { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Notice board */
.jknb { padding: 54px 0 56px; background: #f6f8f6; }
.nfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.nfilter button, .nfilter a { padding: 7px 18px; border: 1px solid #d5dbd3; border-radius: 4px; background: #fff; color: #2e3446; font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.nfilter button:hover, .nfilter a:hover { border-color: var(--sky); color: var(--sky-dark); }
.nfilter button[aria-selected="true"], .nfilter a[aria-current] { background: var(--sky); border-color: var(--sky); color: #fff; }
.pubpage .nfilter { justify-content: flex-start; }
.nlist { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 10px; }
.nlist__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid #e3e7e1; border-left: 4px solid var(--sky); }
.nlist__item[hidden] { display: none; }
.nlist__title { color: #1d2540; font-weight: 500; line-height: 1.45; text-decoration: none; }
.nlist__title:hover { color: var(--sky-dark); text-decoration: underline; }
.nlist__cat { padding: 2px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--sky-dark); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.nlist__none { text-align: center; color: var(--muted); }
.nbadge { display: grid; justify-items: center; flex: none; min-width: 84px; padding: 6px 8px; border-radius: 4px; background: #0F1B4E; color: #fff; line-height: 1.05; }
.nbadge strong { font-size: 1.55rem; font-weight: 700; color: #6fd34a; }
.nbadge small { font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.jknb__more { margin: 26px 0 0; text-align: center; }
.btn-green { display: inline-flex; align-items: center; gap: 8px; padding: 11px 30px; border-radius: 3px; background: #4BB52B; color: #fff; font-weight: 700; text-decoration: none; }
.btn-green:hover { background: var(--sky-dark); color: #fff; }
.btn-green .ic { width: 16px; height: 16px; }
.pager { display: flex; justify-content: space-between; gap: 10px; max-width: 980px; margin: 18px auto 0; }
.nread { max-width: 880px; }
.nread__back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky-dark); text-decoration: none; }
.nread__card { margin-top: 10px; padding: 26px 28px; background: #fff; border: 1px solid #e3e7e1; border-top: 4px solid var(--sky); font-size: 1.02rem; line-height: 1.75; }
.nread__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.nread__head h1 { margin: 2px 0 0; font-size: 1.45rem; font-weight: 600; line-height: 1.4; color: #1d2540; }
.nread__cat { margin: 0; font-size: .85rem; font-weight: 600; color: var(--sky-dark); }

/* APA */
.apa { padding: 56px 0 60px; background: #fff; }
.apa .jktitle { font-weight: 700; }
.apa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.apa__item { padding: 26px 0; border-bottom: 1px solid #eef0ee; }
.apa__item h3 { margin: 0 0 14px; font-size: 1.45rem; font-weight: 700; color: #4BB52B; }
.apa__body { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 22px; align-items: start; }
.apa__icon { width: 120px; height: 120px; }
.apa__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.apa__body li { position: relative; padding-left: 22px; font-size: 1.08rem; }
.apa__body li::before { content: ""; position: absolute; left: 2px; top: .5em; border: 6px solid transparent; border-left: 8px solid #4BB52B; border-right: 0; }
.apa__body a { color: #1d2540; text-decoration: none; }
.apa__body a:hover { color: var(--sky-dark); text-decoration: underline; }

/* Faculty page */
.dept { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dept li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid #e3e7e1; border-left: 4px solid #2bb3a3; font-weight: 500; color: #1d2540; }
.dept__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #4B2A86; }
.dept__icon .ic { width: 17px; height: 17px; color: #fff; }
.dept__fac { margin: 8px 0 12px; font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.dept__fac a { color: #1d2540; text-decoration: none; }

/* Footer: as on the main site */
.site-foot { background: #142372; }
.site-foot__updated { padding: 0 0 22px; font-weight: 600; font-size: .92rem; }
.site-foot__bottom { background: #1A2C80; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-foot h2 { border-bottom-width: 3px; }
.site-foot__social { display: flex; gap: 12px; }
.site-foot__social a { background: #2257c9; border-radius: 2px; }

@media (max-width: 1040px) {
  .jkstats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apa__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .jkstats__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .jkstat2 { padding: 18px; }
  .jkstat2 strong { font-size: 2rem; }
  .jkfac__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .jkfac__list a, .jkfac__plain { font-size: .9rem; }
  .nlist__item { grid-template-columns: auto minmax(0, 1fr); }
  .nlist__cat { grid-column: 2; justify-self: start; }
  .apa__body { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
  .apa__icon { width: 80px; height: 80px; }
  .apa__item h3 { font-size: 1.2rem; }
  .apa__body li { font-size: 1rem; }
  .dept { grid-template-columns: minmax(0, 1fr); }
  .nread__card { padding: 18px; }
}

/* =====================================================================
   Verification result (JKKNIU layout)
   ===================================================================== */
.vx { padding: 40px 0 56px; background: #f6f8f6; }
.vx-search { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 220px) auto; align-items: end; gap: 0 14px; max-width: 980px; margin: 0 auto; padding: 0 16px 0 0; background: #fff; border: 1px solid #e3e7e1; box-shadow: 0 10px 26px -20px rgba(15, 27, 78, .4); }
.vx-search__label { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 0 22px; background: var(--sky); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.vx-search__label .ic { width: 20px; height: 20px; }
.vx-search .field { margin: 14px 0; }
.vx-search .btn-green { margin: 14px 0; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.vx-hint { max-width: 980px; margin: 14px auto 0; color: var(--muted); text-align: center; }
.vx-fail { display: flex; gap: 14px; align-items: flex-start; max-width: 980px; margin: 22px auto 0; padding: 16px 18px; background: #fff; border: 1px solid #f0c8c4; border-left: 5px solid var(--bad); }
.vx-fail__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bad); color: #fff; }
.vx-fail strong { color: var(--bad); text-transform: uppercase; letter-spacing: .03em; }
.vx-fail p { margin: 2px 0 0; }
.vx-result { position: relative; max-width: 1080px; margin: 26px auto 0; background: #fff; border: 1px solid #e3e7e1; box-shadow: 0 18px 40px -28px rgba(15, 27, 78, .45); }
.vx-ok { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 24px; background: #4BB52B; color: #fff; }
.vx-ok__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #3a9a1e; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.vx-ok__icon .ic { width: 30px; height: 30px; stroke-width: 3; }
.vx-ok h2 { margin: 0; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.vx-ok p { margin: 2px 0 0; font-weight: 500; }
.vx-ok__when { margin: 0; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .45); font-size: .86rem; text-align: right; }
.vx-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; padding: 26px 24px 8px; }
.vx-card { align-self: start; border: 1px solid #e3e7e1; text-align: center; }
.vx-card__top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0F1B4E; color: #fff; text-align: left; }
.vx-card__top img { width: 34px; height: auto; padding: 2px; background: #fff; border-radius: 4px; }
.vx-card__top span { display: grid; font-weight: 700; line-height: 1.15; }
.vx-card__top small { font-size: .78rem; font-weight: 500; color: #6fd34a; }
.vx-card__photo { display: block; width: 150px; height: 180px; margin: 20px auto 12px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px #d6dbd4, 0 10px 20px -14px rgba(0, 0, 0, .5); background: #eef2ee; }
.vx-card__name { margin: 0 12px; font-size: 1.2rem; font-weight: 700; color: #1d2540; line-height: 1.3; }
.vx-card__id { margin: 4px 0 0; color: var(--muted); }
.vx-card__id strong { color: #1d2540; }
.vx-card__facts { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0 0; padding: 16px 12px; border-top: 1px dashed #d6dbd4; }
.vx-ring { position: relative; width: 92px; height: 92px; }
.vx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vx-ring__bg { fill: none; stroke: #e6efe2; stroke-width: 3.4; }
.vx-ring__fg { fill: none; stroke: #4BB52B; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: var(--pct) 100; }
.vx-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.vx-ring strong { font-size: 1.35rem; font-weight: 800; color: #1d2540; }
.vx-ring small { font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.vx-card__date { display: grid; justify-items: center; gap: 6px; }
.vx-card__date > small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.vx-tables { display: grid; gap: 22px; align-content: start; }
.vx-h { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; color: #4BB52B; }
.vx-h::after { content: ""; display: block; width: 100%; height: 2px; margin-top: 8px; background: linear-gradient(90deg, #4BB52B 0 30%, #e3e7e1 30%); }
.vx-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.vx-table th, .vx-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #edf0ec; }
.vx-table th { width: 38%; font-weight: 500; color: var(--muted); background: #fafcf9; }
.vx-table td { font-weight: 600; color: #1d2540; }
.vx-table tr:nth-child(even) td { background: #fcfdfc; }
.vx-foot { margin: 14px 24px 0; padding: 16px 0 20px; border-top: 1px solid #edf0ec; font-size: .9rem; color: var(--muted); }
.vx-foot p { margin: 0 0 4px; padding-left: 12px; border-left: 3px solid #4BB52B; }
.vx-foot .vx-foot__src { border-left-color: transparent; font-size: .82rem; }
.vx-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) {
  .vx-search { grid-template-columns: minmax(0, 1fr); padding: 0 14px 4px; }
  .vx-search__label { margin: 0 -14px; padding: 12px 16px; }
  .vx-search .field { margin: 10px 0 0; }
  .vx-grid { grid-template-columns: minmax(0, 1fr); padding: 18px 14px 6px; }
  .vx-ok { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .vx-ok__when { grid-column: 1 / -1; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .45); text-align: left; }
  .vx-ok h2 { font-size: 1.35rem; }
  .vx-foot { margin: 12px 14px 0; }
}
@media print {
  .vx { padding: 0; background: #fff; }
  .vx .jktitle, .vx-search, .vx-hint, .vx-actions, .jkhead, .ticker { display: none !important; }
  .vx-ok { padding: 12px 18px; }
  .vx-grid { padding: 16px 18px 4px; gap: 20px; }
  .vx-table th, .vx-table td { padding: 7px 10px; }
  .vx-result { margin: 0; box-shadow: none; }
  .vx-ok, .vx-card__top, .vx-ring, .nbadge, .vx-h::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vx-grid { grid-template-columns: 240px minmax(0, 1fr); }
}

.vx-printhead { align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 2px solid #4BB52B; }
.vx-printhead img { width: 46px; height: auto; }
.vx-printhead p { margin: 0; font-size: 10pt; line-height: 1.3; color: #1d2540; }
.vx-printhead strong { font-size: 13pt; }
@media print { .vx-printhead.print-only { display: flex; } }

/* =====================================================================
   Graduate portal (JKKNIU layout)
   ===================================================================== */
body.gx { background: #f4f6f4; }
.gx-band { background: var(--sky); color: #fff; }
.gx-band__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 10px 0; }
.gx-brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: #fff; text-decoration: none; text-shadow: 1px 2px 3px rgba(0, 0, 0, .3); }
.gx-brand:hover { color: #fff; }
.gx-brand img { flex: none; width: 52px; height: auto; padding: 4px; background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.gx-brand > span { display: grid; line-height: 1.2; min-width: 0; }
.gx-brand__bn { font-weight: 700; font-size: 1.15rem; }
.gx-brand strong { font-size: 1.05rem; font-weight: 700; }
.gx-brand small { justify-self: start; margin-top: 3px; padding: 1px 10px; border-radius: 999px; background: rgba(10, 20, 64, .3); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-shadow: none; }
.gx-user { display: flex; align-items: center; gap: 10px; flex: none; padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.gx-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #eef2ee; }
.gx-user > span { display: grid; font-weight: 600; line-height: 1.15; }
.gx-user small { font-size: .78rem; font-weight: 500; opacity: .9; }
.gx-user__out { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #0F1B4E; color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; }
.gx-user__out:hover { background: #fff; color: #0F1B4E; }
.gx-user__out .ic { width: 16px; height: 16px; }
.gx-nav { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #e3e6ec; box-shadow: 0 2px 6px rgba(15, 25, 60, .06); }
.gx-nav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gx-nav a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 16px 14px; color: #1d2540; font-size: .88rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.gx-nav a .ic { width: 17px; height: 17px; color: var(--sky-dark); }
.gx-nav a:hover { color: var(--sky-dark); }
.gx-nav a[aria-current] { color: var(--sky-dark); box-shadow: inset 0 -3px 0 var(--sky); }
.gx-main { padding-top: 28px; padding-bottom: 44px; }
.gx-foot { background: var(--brand-dark); color: #dfe5f5; font-size: .88rem; }
.gx-foot__in { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 16px 0; }
.gx-foot p { margin: 0; }

.gx-title { margin: 0 0 22px; }
.gx-title h1 { margin: 0; font-size: 1.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #1d2540; }
.gx-title h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--sky); }
.gx-title p { margin: 10px 0 0; max-width: 72ch; color: var(--muted); }
.gx-title--row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.gx-welcome { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 22px 24px; background: #fff; border: 1px solid #e3e7e1; border-top: 4px solid var(--sky); }
.gx-welcome__photo { width: 112px; height: 132px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px #d6dbd4, 0 10px 20px -14px rgba(0, 0, 0, .5); background: #eef2ee; }
.gx-kicker { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sky-dark); }
.gx-welcome h1 { margin: 2px 0 2px; font-size: 1.75rem; font-weight: 700; color: #1d2540; }
.gx-welcome__prog { margin: 0 0 10px; color: var(--ink-2); font-weight: 500; }
.gx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gx-chips li { padding: 4px 12px; border-radius: 4px; background: #f3f6f2; font-size: .86rem; color: var(--muted); }
.gx-chips li strong { color: #1d2540; }
.gx-chips li:last-child { padding: 0; background: none; align-self: center; }
.gx-welcome__date { display: grid; justify-items: center; gap: 6px; text-align: center; }
.gx-welcome__date > small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.gx-pending { display: grid; place-items: center; width: 84px; height: 60px; border-radius: 4px; background: #0F1B4E; color: #6fd34a; }
.gx-pending .ic { width: 28px; height: 28px; }

.gx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.gx-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gx-stat { display: flex; align-items: center; gap: 18px; padding: 18px 18px 18px 24px; background: #fff; border: 1px solid #e3e7e1; isolation: isolate; }
.gx-stat__icon { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: #4FC12A; border-radius: 4px; }
.gx-stat__icon::before { content: ""; position: absolute; left: -7px; top: -7px; width: 52px; height: 52px; border-radius: 4px; background: rgba(79, 193, 42, .35); z-index: -1; }
.gx-stat__icon .ic { width: 25px; height: 25px; color: #fff; }
.gx-stat > span:last-child { display: grid; line-height: 1.2; min-width: 0; }
.gx-stat small { font-size: .82rem; font-weight: 600; color: var(--muted); }
.gx-stat strong { font-size: 1.6rem; font-weight: 700; color: #1d2540; }
.gx-stat em { font-style: normal; font-size: .8rem; color: var(--muted); }
.gx-stat--due .gx-stat__icon { background: var(--bad); }
.gx-stat--due .gx-stat__icon::before { background: rgba(163, 39, 31, .3); }
.gx-stat--due strong { color: var(--bad); }

.gx-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.gx-block { padding: 20px 22px; background: #fff; border: 1px solid #e3e7e1; }
.gx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #edf0ec; font-size: 1.2rem; font-weight: 700; color: #4BB52B; }
.gx-h a { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; color: #1d2540; text-decoration: none; }
.gx-h a:hover { color: var(--sky-dark); }
.gx-h a .ic { width: 14px; height: 14px; }
.gx-sems, .gx-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gx-sems li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border: 1px solid #edf0ec; border-left: 4px solid var(--sky); }
.gx-gpa { display: grid; justify-items: center; min-width: 64px; padding: 5px 6px; border-radius: 4px; background: #0F1B4E; color: #fff; line-height: 1.05; }
.gx-gpa strong { font-size: 1.1rem; color: #6fd34a; }
.gx-gpa small { font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.gx-sems__name { display: grid; font-weight: 600; color: #1d2540; }
.gx-sems__name small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.gx-sems__cgpa { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.gx-sems__cgpa strong { color: #1d2540; }
.gx-pays li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border: 1px solid #edf0ec; }
.gx-pays .nbadge { min-width: 70px; padding: 4px 6px; }
.gx-pays .nbadge strong { font-size: 1.15rem; }
.gx-pays .nbadge small { font-size: .62rem; }
.gx-pays li > span { display: grid; font-weight: 600; color: #1d2540; line-height: 1.3; }
.gx-pays li > span small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.gx-pays li > strong { white-space: nowrap; color: #1d2540; }
.gx-verify { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; padding: 20px 22px; background: #fff; border: 1px solid #e3e7e1; border-left: 5px solid var(--sky); }
.gx-verify__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--sky-soft); color: var(--sky-dark); }
.gx-verify h2 { margin: 0 0 4px; font-size: 1.15rem; color: #1d2540; }
.gx-verify p { margin: 0 0 10px; overflow-wrap: anywhere; }

.gx-semcard { margin: 0 0 20px; background: #fff; border: 1px solid #e3e7e1; }
.gx-semcard__head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; background: #0F1B4E; color: #fff; }
.gx-semcard__head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #fff; letter-spacing: .02em; }
.gx-semcard__head p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.gx-pill { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .82rem; }
.gx-pill strong { margin-left: 3px; }
.gx-pill--green { background: #4BB52B; }
.gx-table thead th { background: #f3f6f2; color: #1d2540; font-weight: 600; }
.gx-table tbody tr:nth-child(even) td { background: #fbfcfb; }
.gx-table tfoot th { background: #eef6ea; color: #1d2540; }
.gx-semcard.scale > summary { padding: 14px 16px; font-weight: 600; cursor: pointer; }

.gx-fees { margin: 0 0 22px; padding: 20px 22px; background: #fff; border: 1px solid #e3e7e1; border-top: 4px solid var(--sky); }
.gx-fees__steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; }
.gx-fees__steps li { display: grid; gap: 2px; padding: 6px 14px; border-left: 1px solid #edf0ec; }
.gx-fees__steps li:first-child { border-left: 0; padding-left: 0; }
.gx-fees__steps small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.gx-fees__steps strong { font-size: 1.25rem; color: #1d2540; }
.gx-fees__steps .is-due strong { color: var(--bad); }
.gx-fees__steps .is-clear strong { color: var(--ok); }
.gx-fees__bar { height: 12px; margin-top: 16px; border-radius: 999px; background: #edf0ec; overflow: hidden; }
.gx-fees__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4BB52B, #6fd34a); }
.gx-fees__note { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }

.gx-profile .panel { border: 1px solid #e3e7e1; border-radius: 0; box-shadow: none; }
.gx-profile .panel h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #edf0ec; font-size: 1.15rem; font-weight: 700; color: #4BB52B; }
.gx-profile .facts > div { border-bottom: 1px solid #f0f2ef; }
.profile__card.gx-idcard { padding: 0 0 18px; border: 1px solid #e3e7e1; border-radius: 0; overflow: hidden; top: 70px; }
.profile__card.gx-idcard > :not(.gx-idcard__top) { margin-left: 18px; margin-right: 18px; }
.gx-idcard__top { display: flex; align-items: center; gap: 10px; justify-self: stretch; align-self: stretch; padding: 10px 14px; background: #0F1B4E; color: #fff; text-align: left; }
.gx-idcard__top img { width: 34px !important; height: auto !important; padding: 2px; background: #fff; border-radius: 4px; }
.gx-idcard__top span { display: grid; font-weight: 700; line-height: 1.15; }
.gx-idcard__top small { font-size: .76rem; font-weight: 500; color: #6fd34a; }
.gx-idcard .gx-idcard__photo { margin-top: 14px; }

@media (max-width: 1040px) {
  .gx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-cols { grid-template-columns: minmax(0, 1fr); }
  .gx-fees__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 0; }
  .gx-fees__steps li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .gx-band__in { flex-wrap: wrap; min-height: 0; gap: 10px; }
  .gx-brand img { width: 44px; }
  .gx-brand__bn { font-size: 1rem; }
  .gx-brand strong { font-size: .88rem; }
  .gx-user { width: 100%; justify-content: space-between; border-radius: 10px; }
  .gx-user > span { margin-right: auto; }
  .gx-nav__in { justify-content: space-between; gap: 0; }
  .gx-nav a { flex-direction: column; gap: 3px; padding: 9px 6px 8px; font-size: .7rem; letter-spacing: .03em; }
  .gx-nav a .ic { width: 19px; height: 19px; }
  .gx-nav a span { white-space: nowrap; }
  .gx-nav a .gx-nav__long:has(+ .gx-nav__short) { display: none; }
  .gx-nav__short { display: inline !important; }
  .gx-welcome { align-items: start; }
  .gx-stat { padding: 14px 14px 14px 20px; }
  .gx-stat strong { font-size: 1.4rem; }
  .gx-welcome { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .gx-welcome__photo { width: 84px; height: 100px; }
  .gx-welcome h1 { font-size: 1.3rem; }
  .gx-welcome__date { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .gx-stats, .gx-stats--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gx-fees__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-fees__steps li, .gx-fees__steps li:nth-child(4) { border-left: 0; padding-left: 0; }
  .gx-sems__cgpa { grid-column: 2; }
  .gx-sems li { grid-template-columns: auto minmax(0, 1fr); }
  .gx-pays li { grid-template-columns: auto minmax(0, 1fr); }
  .gx-pays li > strong { grid-column: 2; }
  .gx-block { padding: 16px; }
}
@media print {
  .gx-head, .gx-foot, .gx-title .btn { display: none !important; }
  body.gx { background: #fff; }
  .gx-semcard__head, .gx-pill--green, .gx-gpa, .gx-fees__bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.gx-nav__short { display: none; }
@media print {
  .gx-main { padding-top: 0; padding-bottom: 0; }
  .gx-title { margin-bottom: 10px; }
  .gx-title h1 { font-size: 15pt; }
  .gx-title p { font-size: 9pt; }
  .gx-fees, .gx-block, .gx-semcard { padding: 10px 12px; margin-bottom: 10px; }
  .gx-fees__steps { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0 !important; }
  .gx-fees__steps li { border-left: 1px solid #e3e7e1 !important; padding: 2px 8px !important; }
  .gx-fees__steps li:first-child { border-left: 0 !important; padding-left: 0 !important; }
  .gx-fees__steps small { font-size: 7.5pt; }
  .gx-fees__steps strong { font-size: 10.5pt; }
  .gx-fees__bar { height: 7px; margin-top: 8px; }
  .gx-h { font-size: 11.5pt; margin-bottom: 6px; padding-bottom: 5px; }
  .gx-table { font-size: 8.5pt; }
  .gx-table th, .gx-table td { padding: 4px 6px !important; }
  .gx-table td small.sub { font-size: 7.5pt; }
  .gx-table th { font-size: 8.5pt !important; }
  .print-head { font-size: 9pt !important; }
}

/* =====================================================================
   Header, notice strip and footer — copied from jkkniu.edu.bd
   (values taken from the main site's own stylesheet: main.css / responsive.css)
   ===================================================================== */
.mx-container { width: 100%; padding-right: 12px; padding-left: 12px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .mx-container { max-width: 540px; } }
@media (min-width: 768px) { .mx-container { max-width: 720px; } }
@media (min-width: 992px) { .mx-container { max-width: 960px; } }
@media (min-width: 1200px) { .mx-container { max-width: 1140px; } }
@media (min-width: 1400px) { .mx-container { max-width: 1320px; } }

/* Top band */
.mx-topbar { display: flex; align-items: center; background: #3F9B0C; padding: 10px 0; font-family: Poppins, sans-serif; font-size: 14px; line-height: 1.5; }
.mx-topbar__row { display: flex; flex-wrap: wrap; align-items: center; margin-right: -12px; margin-left: -12px; }
.mx-topbar__row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: 12px; padding-left: 12px; }
.mx-topbar__logo { text-align: center; }
.mx-topbar__logo a { display: inline-block; vertical-align: middle; }
.mx-topbar__logo img { display: block; height: 100px; width: auto; max-width: 100%; margin: 0 auto; }
.mx-topbar__name { text-align: center; }
.mx-topbar__bn, .mx-topbar__en { color: #FBFBFB; text-shadow: 2px 3px 6px #000; text-align: center; line-height: 1.2; }
.mx-topbar__bn { margin: 8px 0 8px; font-family: "Noto Serif Bengali", "JKK Bangla", serif; font-size: 40px; font-weight: 600; }
.mx-topbar__en { margin: 10px 0 8px; font-family: Poppins, sans-serif; font-size: 35px; font-weight: 500; text-transform: capitalize; }
@media (min-width: 992px) {
  .mx-topbar__logo, .mx-topbar__side { flex: 0 0 auto; width: 16.66666667%; }
  .mx-topbar__name { flex: 0 0 auto; width: 66.66666667%; }
}
@media (max-width: 575.98px) {
  .mx-topbar { padding: 14px 0; }
  .mx-topbar__logo img { height: 70px; }
  .mx-topbar__bn, .mx-topbar__en { font-size: 16px; }
}

/* White menu bar */
.mx-header { position: relative; display: flex; align-items: center; height: 60px; z-index: 997; background: #fff; transition: all .5s; font-family: Poppins, sans-serif;
  box-shadow: rgba(50, 50, 93, .25) 0 2px 5px -1px, rgba(0, 0, 0, .3) 0 1px 3px -1px; }
.mx-header.is-fixed { position: fixed; top: 0; right: 0; left: 0; }
.mx-header.is-fixed + * { margin-top: 60px; }
.mx-header__in { display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 992px) { .mx-header__in { justify-content: center; } }
.mx-navbar { padding: 0; }
.mx-navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
.mx-navbar li { position: relative; }
.mx-navbar a, .mx-navbar a:focus { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; line-height: 1.5; color: #002147; white-space: nowrap; padding: 10px 0 10px 16px; text-transform: uppercase; text-decoration: none; transition: .3s; }
.mx-navbar a .ic { width: 12px; height: 12px; margin-left: 5px; }
.mx-navbar a:hover, .mx-navbar .active, .mx-navbar .active:focus, .mx-navbar li:hover > a { color: #1BBD36; }
.mx-navbar .mx-dropdown ul { display: block; position: absolute; left: 14px; top: calc(100% + 30px); margin: 0; padding: 10px 0; z-index: 99; opacity: 0; visibility: hidden; background: #fff; box-shadow: 0 0 30px rgba(127, 137, 161, .25); transition: .5s ease-in-out; border-top: 2px solid #1BBD36; }
.mx-navbar .mx-dropdown ul li { min-width: 200px; }
.mx-navbar .mx-dropdown ul a { padding: 10px 15px; font-size: 13px; text-transform: none; font-weight: 500; color: #002147; }
.mx-navbar .mx-dropdown ul a:hover, .mx-navbar .mx-dropdown ul li:hover > a { color: #1BBD36; background-color: #D1F2D7; }
.mx-navbar .mx-dropdown:hover > ul, .mx-navbar .mx-dropdown:focus-within > ul { opacity: 1; top: 100%; visibility: visible; }
@media (min-width: 992px) and (max-width: 1199.98px) { .mx-navbar a, .mx-navbar a:focus { font-size: 14px; } }
.mx-toggle { display: none; padding: 0; margin: 0; border: 0; background: none; color: #002147; line-height: 0; cursor: pointer; transition: .5s; }
.mx-toggle .ic { width: 28px; height: 28px; }
.mx-toggle__close { display: none; }
.mx-mlogo { display: none; align-items: center; gap: 8px; }
.mx-mlogo a { display: block; }
.mx-mlogo img { height: 48px; width: auto; }
.mx-mlogo span { font-size: 11px; font-weight: 600; line-height: 1.5; color: #002147; }
@media (max-width: 991px) {
  .mx-toggle { display: block; }
  .mx-navbar > ul { display: none; }
  .mx-header.is-fixed .mx-mlogo { display: flex; }
  /* Opened menu: dark overlay with a white list, as on the main site */
  .mx-navbar.is-open { position: fixed; inset: 0; overflow: hidden; background: rgba(14, 11, 10, .9); transition: .3s; z-index: 999; }
  .mx-navbar.is-open .mx-toggle { position: absolute; top: 15px; right: 15px; color: #fff; }
  .mx-navbar.is-open .mx-toggle__open { display: none; }
  .mx-navbar.is-open .mx-toggle__close { display: block; }
  .mx-navbar.is-open > ul { display: block; position: absolute; inset: 55px 15px 15px 15px; padding: 10px 0; background-color: #fff; overflow-y: auto; transition: .3s; }
  .mx-navbar.is-open a, .mx-navbar.is-open a:focus { padding: 10px 20px; font-size: 15px; color: #002147; }
  .mx-navbar.is-open a:hover, .mx-navbar.is-open .active, .mx-navbar.is-open li:hover > a { color: #1BBD36; }
  .mx-navbar.is-open .mx-dropdown ul { position: static; display: none; margin: 10px 20px; padding: 10px 0; z-index: 99; opacity: 1; visibility: visible; background: #fff; box-shadow: 0 0 30px rgba(127, 137, 161, .25); border-top: 2px solid #1BBD36; }
  .mx-navbar.is-open .mx-dropdown ul li { min-width: 200px; }
  .mx-navbar.is-open .mx-dropdown ul a { padding: 10px 20px; }
  .mx-navbar.is-open .mx-dropdown.is-active > ul { display: block; }
}
body.mx-menu-open { overflow: hidden; }

/* Graduate portal: the same white bar carries the portal's own menu */
.mx-navbar--portal .mx-short { display: none; }
@media (max-width: 991px) {
  .mx-header--portal .mx-header__in { justify-content: center; }
  .mx-navbar--portal > ul { display: flex; }
  .mx-navbar--portal a, .mx-navbar--portal a:focus { padding: 10px 7px; font-size: 12px; }
  .mx-navbar--portal .mx-long { display: none; }
  .mx-navbar--portal .mx-short { display: inline; }
}

/* Latest notice strip */
.mx-latest { display: flex; flex-wrap: wrap; font-family: Poppins, sans-serif; }
.mx-latest__label, .mx-latest__content { flex-shrink: 0; width: 100%; max-width: 100%; }
@media (min-width: 992px) {
  .mx-latest__label { flex: 0 0 auto; width: 16.66666667%; }
  .mx-latest__content { flex: 0 0 auto; width: 83.33333333%; }
}
.mx-latest__label { position: relative; display: flex; justify-content: center; align-items: center; height: 40px; padding: 0 20px; line-height: 40px; background-color: #3F9B0C; text-align: center; text-transform: uppercase; }
.mx-latest__label h4 { margin: 0; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.2; }
.mx-latest__content { position: relative; display: flex; align-items: center; height: 40px; padding-right: 20px; line-height: 40px; background-color: #E3E3E3; color: #002147; text-transform: uppercase; overflow: hidden; }
.mx-marquee { flex: 1; overflow: hidden; }
.mx-marquee p { display: inline-flex; margin: 0; white-space: nowrap; animation: mx-marquee var(--mx-dur, 45s) linear infinite; }
.mx-marquee:hover p { animation-play-state: paused; }
.mx-marquee p > span { display: inline-flex; padding-right: 15px; }
.mx-marquee a, .mx-marquee p > span > span { display: inline-flex; align-items: center; gap: 4px; padding-right: 15px; color: #002147; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; }
.mx-marquee a:hover { color: #1BBD36; }
.mx-marquee .ic { width: 14px; height: 14px; }
.mx-marquee [lang="bn"], .mx-marquee a { font-family: Poppins, "JKK Bangla", sans-serif; }
@keyframes mx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mx-marquee { overflow-x: auto; }
  .mx-marquee p { animation: none; }
}
/* Portal: signed-in graduate in the same strip */
.mx-user { gap: 10px; padding-left: 16px; text-transform: none; }
.mx-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; }
.mx-user__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: #002147; }
.mx-user__name small { margin-left: 6px; font-size: 13px; font-weight: 500; color: #4a5a6e; }
.mx-user__out { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #002147; font-size: 14px; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.mx-user__out:hover { color: #1BBD36; }
.mx-user__out .ic { width: 16px; height: 16px; }

/* Footer */
.mx-footer { padding: 40px 0 0; background: #002147; color: #fff; border-top: 3px solid #1BBD36; font-family: Poppins, sans-serif; font-size: 16px; line-height: 1.5; }
.mx-footer__top { padding-bottom: 0; }
.mx-row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.mx-row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: 12px; padding-left: 12px; }
.mx-col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) { .mx-col-md-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 992px) {
  .mx-col-lg-3 { flex: 0 0 auto; width: 25%; }
  .mx-col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .mx-col-lg-9 { flex: 0 0 auto; width: 75%; }
}
.mx-flinks h4, .mx-fcontact h4 { margin: 0 0 15px; padding-bottom: 6px; border-bottom: 3px solid #EEEEEE; color: #fff; font-family: Poppins, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; text-align: left; }
.mx-ffind h4 { margin-bottom: 5px; }
.mx-flinks ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.mx-flinks li { padding-bottom: 5px; color: #fff; }
.mx-flinks a { color: #fff; font-size: 13px; text-decoration: none; transition: .4s; }
.mx-flinks a:hover { color: #1BBD36; }
.mx-flinks a .ic { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; }
.mx-fcontact h5, .mx-fcontact h6 { margin: 0; color: #fff; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; }
.mx-fcontact h5 { margin-bottom: 15px; }
.mx-fcontact h6 { margin-bottom: 7px; }
.mx-fcontact h6 strong { font-weight: 700; }
.mx-fcontact h5 .ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.mx-social a { display: inline-block; width: 36px; height: 36px; margin: 7px 4px 7px 0; padding: 8px 0; border-radius: 4px; background: #133B68; color: #fff; font-size: 18px; line-height: 1; text-align: center; text-decoration: none; transition: .3s; }
.mx-social a:hover { background: #1BBD36; color: #fff; }
.mx-social .ic { display: inline-block; width: 20px; height: 20px; margin-top: -1px; vertical-align: top; }
.mx-updated { margin: 0 0 1rem; font-size: 13px; color: #fff; }
.mx-footer__bottom { padding: 20px 0; background: rgba(255, 255, 255, .06); text-align: center; }
.mx-ftext h5 { margin: 0; color: #fff; font-family: Poppins, sans-serif; font-size: 15px; font-weight: 400; line-height: 26px; }
.mx-ftext a { color: #1BBD36; text-decoration: none; }
@media (max-width: 575.98px) { .mx-ftext h5 { font-size: 14px; line-height: 24px; } }

/* Back to top */
.mx-scrolltop { position: fixed; right: 15px; bottom: 15px; z-index: 99999; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; background-color: #1BBD36; color: #fff; visibility: hidden; opacity: 0; transition: .4s; }
.mx-scrolltop.is-visible { visibility: visible; opacity: 1; }
.mx-scrolltop:hover { background-color: rgba(27, 189, 54, .8); color: #fff; }
.mx-scrolltop .ic { width: 24px; height: 24px; }

@media print {
  .mx-topbar, .mx-header, .mx-latest, .mx-footer, .mx-scrolltop { display: none !important; }
  .mx-header.is-fixed + * { margin-top: 0 !important; }
}

/* Default campus photo (from the main site's home page): show it whole, so the photographer's credit is never cut */
.jkhero__photo--default { aspect-ratio: 1080 / 608; }

/* Admin: notices from the main website */
.sync-panel { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; border-left: 4px solid #3F9B0C; }
.sync-panel.is-off { border-left-color: var(--line); }
.sync-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; }
.sync-panel h2 .ic { width: 18px; height: 18px; color: #3F9B0C; }
.sync-panel p { margin: 0 0 6px; max-width: 75ch; }
.sync-panel__status { color: var(--muted); font-size: .9rem; }
.sync-panel__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.src-main { display: inline-block; margin-top: 3px; padding: 0 6px; border-radius: 4px; background: #e8f5e1; color: #2f7a0b; font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; }
td.ntitle { min-width: 230px; }

/* =====================================================================
   Documents in the pattern of the university's provisional certificate
   (A4 portrait, plain white paper, faint logo watermark)
   ===================================================================== */
/* one weight only, so the browser draws a true bold for the bold parts */
@font-face { font-family: "JKK Bangla Serif"; src: url("../fonts/jkk-bangla-serif.woff") format("woff"); font-weight: 400; size-adjust: 106%; font-style: normal; font-display: block; unicode-range: U+0980-09FF, U+0964-0965, U+200C-200D, U+25CC, U+0020-0040, U+005B-0060, U+007B-007E, U+00A0; }
@font-face { font-family: "JKK Bangla Serif"; src: url("../fonts/jkk-bangla-serif-bold.woff") format("woff"); font-weight: 700; size-adjust: 106%; font-style: normal; font-display: block; unicode-range: U+0980-09FF, U+0964-0965, U+200C-200D, U+25CC, U+0020-0040, U+005B-0060, U+007B-007E, U+00A0; }
.jp { --bn: "JKK Bangla Serif", "Noto Serif Bengali", "JKK Bangla", serif; position: relative; display: flex; flex-direction: column; width: 210mm; height: 297mm; margin: 0 auto 24px; padding: 14mm 18mm 5mm; overflow: hidden; background: #fff; color: #141414; font-family: "Cardo", "Times New Roman", serif; font-size: 12pt; line-height: 1.5; box-shadow: 0 12px 40px -20px rgba(11, 31, 61, .45); }
.jp > * { position: relative; }
.jp .jp__wm { position: absolute; left: 50%; top: 168mm; width: 110mm; height: auto; transform: translate(-50%, -50%); opacity: .06; pointer-events: none; }
.jp__sl { position: absolute; left: 18mm; top: 17mm; margin: 0; font-size: 11.5pt; }
.jp__sl b { margin-left: 1.5mm; color: #9c2f22; font-size: 13pt; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.jp__head { padding-top: 12mm; text-align: center; }
.jp__brand { display: inline-block; max-width: 100%; }
.jp__bn { margin: 0; font-family: var(--bn); font-size: 28.5pt; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.jp__short { margin: -.5mm 0 0; text-align: right; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 9pt; font-weight: 700; letter-spacing: .06em; color: #8f8f8f; }
.jp .jp__logo { display: block; width: auto; height: 28mm; margin: 2mm auto 0; }
.jp strong { font-weight: 700; }

/* certificate */
.pc__bn { margin-top: 10mm; font-family: var(--bn); text-align: center; }
.pc__kind-bn { margin: 0; font-family: var(--bn); font-size: 21pt; font-weight: 700; line-height: 1.3; color: #141414; }
.pc__deg-bn { margin: 1.5mm 0 0; font-size: 15pt; font-weight: 700; }
.pc__lead-bn { margin: 6mm 0 4mm; font-size: 14pt; }
.pc__text-bn { margin: 0 0 3mm; font-size: 14pt; line-height: 1.75; text-align: justify; text-align-last: left; }
.pc__en { margin-top: 9mm; text-align: center; }
.pc__uni { margin: 0; font-family: "Cert Blackletter", serif; font-weight: 400; line-height: 1.15; color: #141414; white-space: nowrap; }
.pc__kind { margin: 2.5mm 0 0; font-size: 17pt; }
.pc__deg { margin: 3mm 0 0; font-size: 17pt; }
.pc__lead { margin: 5mm 0 3mm; font-size: 14pt; }
.pc__text { margin: 0 0 3mm; font-size: 13.5pt; line-height: 1.55; text-align: justify; text-align-last: left; }
.pc__cgpa, .pc__cgpa-bn { text-align: left; }
/* long names and degrees: a little tighter so everything stays on one page */
.pc--tight .pc__bn { margin-top: 8mm; }
.pc--tight .pc__lead-bn { margin: 5mm 0 3mm; }
.pc--tight .pc__text-bn { font-size: 13pt; }
.pc--tight .pc__en { margin-top: 8mm; }
.pc--tight .pc__deg { margin-top: 3mm; }
.pc--tight .pc__lead { margin: 5mm 0 3mm; }
.pc--tight .pc__text { font-size: 12.5pt; }

/* footer: Administration Building – QR – Controller of Examinations */
.jp__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6mm; margin-top: auto; }
.jp__place span { white-space: nowrap; }
.jp__place { display: grid; font-family: "Cert Chancery", "Cardo", serif; font-size: 13.5pt; line-height: 1.3; }
.jp__place b { font-family: "Cardo", serif; font-size: 13pt; font-weight: 700; letter-spacing: .05em; }
.jp__qr { justify-self: center; text-align: center; }
.jp__qr svg { display: block; width: 15mm; height: 15mm; margin: 0 auto; }
.jp__qr small { display: block; margin-top: .5mm; font-size: 6.5pt; color: #555; letter-spacing: .03em; }
.jp__sign { display: grid; justify-items: center; justify-self: end; min-width: 58mm; text-align: center; }
.jp__sign img { display: block; width: auto; max-width: 52mm; height: 16mm; margin-bottom: -1.5mm; object-fit: contain; }
.jp__signspace { display: block; width: 100%; height: 16mm; }
.jp__sign span { font-family: "Cert Chancery", "Cardo", serif; font-size: 14pt; line-height: 1.25; }
.jp__sign strong { font-size: 11pt; }
.jp__sign--person span { font-size: 12pt; }
.jp__sign--person small { font-size: 8.5pt; color: #444; }
.jp__nb { margin: 3.5mm 0 0; font-size: 9.5pt; text-align: center; }

/* letters (MOI, testimonial, recommendation) */
.jl__date { position: absolute; right: 18mm; top: 17mm; margin: 0; font-size: 11.5pt; }
.jl__bn { margin: 0; font-family: var(--bn); font-size: 17pt; font-weight: 700; line-height: 1.3; }

@media screen and (max-width: 860px) {
  .doc-page .ms-doc { overflow-x: auto; }
}
@media print {
  .jp { width: 210mm; height: 297mm; margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .jp:last-child { break-after: auto; page-break-after: auto; }
  .jp, .jp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.jp .nw { white-space: nowrap; }

/* Marksheet in the same pattern (the sheet grows, so the page can check that it fits on A4) */
.jm { --bn: "JKK Bangla Serif", "Noto Serif Bengali", "JKK Bangla", serif; color: #141414; font-family: "Cardo", "Times New Roman", serif; }
.jm .ms__student { font-size: 9.2pt; }
.jm .ms__sem th { vertical-align: middle; }
.jm .ms__sem th.n { padding-left: 1px; padding-right: 1px; font-size: .8em; letter-spacing: -.01em; }
.jm .ms__sem td.c { font-size: .9em; padding-right: 1px; }
.jm .ms__sem col.w-code { width: 19.5%; }
.jm .ms__sem col.w-num { width: 10.5%; }
.jm.msp--single .ms__sem col.w-code { width: 13%; }
.jm .jp__sl, .jm .jl__date { line-height: 15pt; }
.jm.msp--single .ms__sem col.w-num { width: 9%; }
.jm .ms__summary span { font-size: 8.2pt; }
.jm .ms__summary strong { font-size: 13pt; }
.jm .ms__scale { font-size: 7.8pt; }
.jm .msp__in { padding: 4mm 6mm 0; border: 0; }
.jm .msp__watermark { top: 56%; width: 110mm; height: 110mm; opacity: .06; }
.jm .jp__sl { top: 4mm; left: 6mm; font-size: 10.5pt; }
.jm .jp__sl b { font-size: 11.5pt; }
.jm .jl__date { position: absolute; top: 4mm; right: 6mm; font-size: 10.5pt; }
.jm .jp__head { padding-top: 7mm; }
.jm .jp__bn { font-size: 23pt; }
.jm .jp__short { font-size: 8pt; }
.jm .jp__logo { display: block; width: auto; height: 18mm; margin: 1mm auto 0; }
.jm__titles { margin-top: 2mm; text-align: center; }
.jm .jl__bn { font-size: 13.5pt; }
.jm .pc__uni { margin-top: .5mm; font-size: 16pt; }
.jm__title { margin: 1mm 0 0; font-family: "Cardo", serif; font-size: 13pt; font-weight: 700; color: #141414; letter-spacing: .02em; }
.jm__office { margin: .5mm 0 3mm; font-size: 8.5pt; color: #444; }
.jm strong { font-weight: 700; }
.jm .ms__student { border-color: #9a9a9a; border-radius: 0; background: transparent; }
.jm .ms__student dt { color: #444; }
.jm .ms__sem h3 { color: #141414; }
.jm .ms__sem th, .jm .ms__sem td { border-color: #8f8f8f; }
.jm .ms__sem th { background: #efefef; }
.jm .ms__sem td { background: transparent; }
.jm .ms__sem tfoot td { background: #f6f6f6; }
.jm .ms__summary { border-color: #141414; border-radius: 0; background: transparent; }
.jm .ms__summary > div + div { border-left-color: #9a9a9a; }
.jm .ms__summary strong { color: #141414; }
.jm .ms__summary span, .jm .ms__scale { color: #333; }
.jm .ms__scale th, .jm .ms__scale td { border-color: #9a9a9a; background: transparent; }
.jm .ms__scale th { background: #f3f3f3; }
.jm .jp__foot { margin-top: 6mm; }
.jm .jp__place { font-size: 11.5pt; }
.jm .jp__place b { font-size: 11pt; }
.jm .jp__sign span { font-size: 12.5pt; }
.jm .jp__sign img, .jm .jp__signspace { height: 13mm; }
.jm .jp__qr svg { width: 13mm; height: 13mm; }
.jm .msp__pageno { margin-top: 1.5mm; }
@media print {
  .jm .msp__in { min-height: 276mm; padding: 4mm 6mm 0; }
}
.jm .msp__in > .jp__sl, .jm .msp__in > .jl__date { position: absolute; top: 4mm; z-index: 2; }
.jm .ms__sem tbody td { vertical-align: baseline; }

/* Original certificate, in the layout of the university's own original certificate */
.po { padding-bottom: 9mm; }
.po .jp__logo { height: 23mm; }
.po__bn { margin-top: 10mm; font-family: var(--bn); font-size: 15pt; line-height: 1.85; text-align: center; }
.po .jp__sl { font-family: var(--bn); font-size: 12pt; }
.po .jp__sl b { font-family: "Cardo", serif; }
.po__bn p, .po__en p { margin: 0; }
.po__bn strong { font-weight: 700; }
.po__name-bn { font-size: 16pt; }
.po__deg-bn { font-size: 15.5pt; }
.po__en { margin-top: 10mm; font-size: 14pt; line-height: 1.7; text-align: center; }
.po__en .pc__uni { margin-bottom: 6mm; }
.po__deg { margin: .5mm 0 !important; font-size: 15pt; font-weight: 700; font-style: italic; line-height: 1.35; }
.po__name { margin: 1mm 0 !important; font-size: 17pt; font-weight: 700; letter-spacing: .01em; }
.po__gpa { margin-top: 1.5mm !important; }
.po--long .po__deg { font-size: 14pt; }
.po__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6mm; margin-top: auto; }
.po__sign, .po__date { display: grid; justify-items: center; text-align: center; line-height: 1.35; }
.po__sign:first-child { justify-self: start; }
.po__sign:last-child { justify-self: end; }
.po__sign { min-width: 56mm; }
.po__sign img { display: block; width: auto; max-width: 50mm; height: 15mm; margin-bottom: 1mm; object-fit: contain; }
.po__signspace { display: block; height: 16mm; }
.po__sign span, .po__date span { font-family: var(--bn); font-size: 12pt; }
.po__sign em, .po__date em { font-size: 12.5pt; font-style: italic; }
.po__addr { display: flex; justify-content: space-between; gap: 8mm; margin: 5mm 0 0; font-size: 10.5pt; color: #333; }
.po__addr span[lang="bn"] { font-family: var(--bn); font-size: 10.5pt; }

/* Letters (MOI, testimonial, recommendation): English only. University name, logo, title,
   then Ref. and Date on one line, the text, and the signature of the person who signs. */
.jl { padding: 15mm 22mm 14mm; }
.jl__head { padding-top: 3mm; text-align: center; }
.jl__head .pc__uni { margin: 0; }
.jl .jl__logo { display: block; width: auto; height: 26mm; margin: 5mm auto 0; }
.jl__title { margin: 5mm 0 0; font-family: "Cardo", serif; font-size: 17pt; font-weight: 700; line-height: 1.3; letter-spacing: .02em; color: #141414; }
.jl__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8mm; margin-top: 9mm; font-size: 11.5pt; }
.jl__meta p { margin: 0; }
.jl__meta p:first-child b { color: #9c2f22; letter-spacing: .02em; }
.jl__main { margin-top: 7mm; }
.jl__to { margin: 0 0 4mm; font-size: 12pt; font-weight: 700; }
.jl__body { font-size: 12.5pt; line-height: 1.7; text-align: justify; hyphens: none; overflow-wrap: break-word; }
.jl__body p { margin: 0 0 4mm; }
.jl__sign { display: grid; justify-items: center; align-self: flex-end; min-width: 62mm; max-width: 95mm; margin-top: 12mm; text-align: center; line-height: 1.35; }
.jl__signarea { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 18mm; margin-bottom: 1.5mm; border-bottom: .6pt solid #3a3a3a; }
.jl__signarea img { display: block; width: auto; max-width: 58mm; height: 16mm; margin-bottom: .5mm; object-fit: contain; }
.jl__sign strong { font-size: 12pt; }
.jl__sign span { font-size: 12pt; }
.jl__sign small { margin-top: .5mm; font-size: 9.5pt; color: #444; }

/* Shown above a document only when its text is too long for one A4 page (never printed) */
.doc-warn { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #8a1c12; font-weight: 600; }
.doc-warn[hidden] { display: none; }
.jp.is-overfull { outline: 3px solid #d93025; outline-offset: 4px; }
@media print { .doc-warn { display: none !important; } .jp.is-overfull { outline: 0; } }

/* Marksheet student details: name, program and father's name on the left;
   Roll No., Registration no. and Session on the right. Each side is its own column, so a long
   name or program wraps inside its column and never pushes into the other one. */
.jm .ms__student { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.jm .ms__student dl { display: grid; align-content: start; gap: .3mm 0; min-width: 0; margin: 0; }
.jm .ms__student dl > div { display: flex; gap: 6px; min-width: 0; }
.jm .ms__student dl:first-child dt { width: 27mm; }
.jm .ms__student dl:last-child dt { width: 25.5mm; }
@media print {
  /* The page has no browser margin (so no date or web address can be printed on it); the sheet keeps its own 10 mm border */
  .jm.msp { width: 210mm; height: 297mm; padding: 10mm; overflow: hidden; }
}

/* Registration card: certificate header, then the details in a framed card with the photo on the right */
.rc .jp__logo { height: 24mm; }
.rc .jp__head { padding-top: 2mm; }
.rc__titles { margin-top: 3mm; text-align: center; }
.rc__bn { margin: 0; font-family: var(--bn); font-size: 19pt; font-weight: 700; line-height: 1.3; }
.rc__titles .pc__uni { margin-top: 1.5mm; }
.rc__title { margin: 1.5mm 0 0; font-family: "Cardo", serif; font-size: 16pt; font-weight: 700; letter-spacing: .03em; color: #141414; }
.rc__card { margin-top: 7mm; padding: 4mm 6mm 3mm; border: 2.6pt double #2b2b2b; border-radius: 2.5mm; }
.rc__top { display: grid; grid-template-columns: minmax(0, 1fr) 33mm; gap: 6mm; align-items: start; }
.rc__list { display: grid; margin: 0; }
.rc__list > div { display: flex; gap: 3mm; min-width: 0; padding: 2mm 0 1.7mm; border-bottom: .5pt dotted #9a9a9a; }
.rc__list dt { flex: none; width: 37mm; color: #444; font-size: 11pt; }
.rc__list dt::after { content: ":"; }
.rc__list dd { min-width: 0; margin: 0; font-size: 12pt; font-weight: 700; overflow-wrap: anywhere; }
.rc__list dt[lang="bn"], .rc__bnval { font-family: var(--bn); }
.rc__reg { color: #9c2f22; letter-spacing: .03em; font-size: 13pt !important; }
.rc__name { font-size: 13pt !important; }
.rc__list--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 6mm; }
.rc__list--half dt { width: 37mm; }
.rc__list:last-child > div:last-child, .rc__list--half > div:nth-last-child(-n+2):nth-child(odd), .rc__list--half > div:last-child { border-bottom: 0; }
.rc__photo { display: grid; place-items: center; width: 33mm; height: 42mm; margin: 1mm 0 0; overflow: hidden; border: .8pt solid #555; background: #fff; }
.rc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc__photo figcaption { font-size: 9pt; line-height: 1.3; color: #888; text-align: center; }
.rc__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20mm; align-items: end; margin-top: auto; padding-top: 10mm; }
.rc__sig { display: grid; justify-items: center; text-align: center; }
.rc__sig { justify-self: end; }
.rc__sig img { display: block; width: auto; max-width: 52mm; height: 15mm; object-fit: contain; }
.rc__signspace { display: block; height: 15mm; }
.rc__sig span { min-width: 56mm; padding-top: 1.5mm; border-top: .6pt solid #3a3a3a; font-size: 11.5pt; line-height: 1.35; }
.rc__issue { margin: 0; padding-bottom: .5mm; font-size: 11.5pt; justify-self: start; }
.rc .jp__nb { margin-top: 2mm; }

/* Marksheet without serial number and date at the top: the header starts higher. A two-page marksheet
   shows its page number small in the top right corner, where it is out of the way. */
.jm .jp__head { padding-top: 1.5mm; }
.jm__pageno { position: absolute; top: 4mm; right: 6mm; z-index: 2; margin: 0; font-size: 9.5pt; color: #555; letter-spacing: .02em; }
.jm .msp__in > .jm__pageno { position: absolute; }
/* "Date of Result Published" and its date in the same script letters */
.jm .jp__place b { font-family: "Cert Chancery", "Cardo", serif; font-size: 11.5pt; font-weight: 400; letter-spacing: 0; }

/* Signatures page */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 22px; }
.sign-slot { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2, #fafbfc); }
.sign-slot .sign-preview { width: 100%; }
.sign-slot__none { margin: 0; font-size: .9rem; }
.teacher-dept { margin: 16px 0 6px; font-size: 1rem; color: var(--brand); }
.teacher-sign { width: 110px; }
.teacher-sign img { display: block; width: 96px; height: 30px; object-fit: contain; }
.btn-pair { display: flex; gap: 10px; flex-wrap: wrap; }
.sign-status { margin: 0; font-size: .9rem; color: var(--muted, #5b6472); }
.sign-status a { font-weight: 600; }

.sign-slot > * { min-width: 0; }
.sign-slot input[type="file"], #teacher-form input[type="file"] { max-width: 100%; }
.sign-save { margin: -4px 0 24px; }
#teacher-form .photo-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
#teacher-form .photo-field .sign-preview { width: 100%; }
.sign-slot .field, #teacher-form .field { grid-template-columns: minmax(0, 1fr); }

/* Site settings → Search engines: a preview of the Google result */
.serp { display: grid; gap: 3px; max-width: 620px; margin: 6px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: Arial, Helvetica, sans-serif; }
.serp__url { font-size: 13px; color: #202124; overflow-wrap: anywhere; }
.serp__title { font-size: 20px; line-height: 1.3; color: #1a0dab; overflow-wrap: anywhere; }
.serp__desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.seo-count { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.seo-count.is-long { color: #b3261e; font-weight: 600; }
