/* CS e-Library — Department of Computer Science, UNIPORT
   Mobile-first. Palette: deep library green, brass gold, paper. */
:root {
  --ink: #0f2e2a;
  --ink-2: #1b4740;
  --ink-soft: #3d5a55;
  --gold: #e0a526;
  --gold-deep: #b9831a;
  --paper: #faf7f0;
  --paper-2: #f2ede1;
  --card: #ffffff;
  --line: #e4ddcd;
  --text: #1c2624;
  --muted: #5f6d6a;
  --danger: #b42318;
  --ok: #15803d;
  --info: #1d4ed8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,46,42,.06), 0 8px 24px rgba(15,46,42,.08);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font: 600 .95rem var(--body);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; min-height: 44px; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ebb43a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f1c13; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: .875rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { border-radius: 10px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: .2px; white-space: nowrap; }
.brand-text small { color: #c9d6d2; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 10px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; cursor: pointer; }
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; }
.mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); flex-direction: column;
  padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.mainnav.open { display: flex; }
.mainnav a { color: #e7efed; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500; }
.mainnav a[aria-current="page"] { color: var(--gold); }
.mainnav .btn { margin-top: 10px; border-bottom: 0; }
.mainnav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.mainnav .btn-ghost:hover { background: rgba(255,255,255,.08); }
.mainnav .nav-admin { color: var(--gold); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .mainnav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; border: 0; gap: 4px; background: none; }
  .mainnav a { border: 0; padding: 8px 10px; border-radius: 8px; }
  .mainnav a:hover { background: rgba(255,255,255,.07); }
  .mainnav .btn { margin: 0 0 0 6px; }
}

/* ---------- Admin bar ---------- */
.adminbar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.adminbar-in { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.adminbar a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.adminbar a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Flash ---------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.flash-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.flash-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.flash-info { background: #eff8ff; border-color: #b2ddff; color: #194185; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 420px at 85% -10%, rgba(224,165,38,.22), transparent 60%), var(--ink); color: #fff; padding: 40px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -40px -1px -40px; height: 28px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-bottom: 12px; }
.hero p.lead { color: #d3e0dc; font-size: 1.05rem; max-width: 56ch; margin: 0 0 22px; }
.search { display: flex; gap: 8px; max-width: 620px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 12px; font: 500 1rem var(--body); color: var(--text); background: transparent; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); font-size: 1.7rem; color: #fff; }
.hero-stats span { color: #b8c9c4; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head .more { white-space: nowrap; font-weight: 600; text-decoration: none; }
.section-alt { background: var(--paper-2); }

/* ---------- Auto-scrolling rows ---------- */
.scroller { position: relative; }
.scroller-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-track > * { scroll-snap-align: start; flex: none; }
.scroller-btn { display: none; position: absolute; top: 38%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); cursor: pointer; z-index: 2; font-size: 1.2rem; color: var(--ink); }
.scroller-btn.prev { left: -8px; } .scroller-btn.next { right: -8px; }
@media (min-width: 760px) { .scroller-btn { display: block; } }

/* ---------- Book cards ---------- */
.book { width: 150px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.book-cover { aspect-ratio: 2 / 3; border-radius: 8px 12px 12px 8px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); position: relative; transition: transform .2s; }
.book:hover .book-cover { transform: translateY(-3px); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1; }
.book-title { font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-meta { color: var(--muted); font-size: .8rem; margin-top: -4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-soft); }
.tag-gold { background: #fdf0d2; color: #7a5410; }
.tag-link { background: #e0ecff; color: #1e3a8a; }
@media (min-width: 760px) { .book { width: 170px; } }

/* Generated cover for items without a thumbnail */
.gen-cover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px 12px 16px; color: var(--c2); background: var(--c1);
  background-image: linear-gradient(160deg, rgba(255,255,255,.08), transparent 45%), repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px); }
.gen-cover .gc-type { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.gen-cover .gc-title { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15; color: #fff; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.gen-cover .gc-author { font-size: .7rem; color: rgba(255,255,255,.75); border-top: 2px solid var(--c2); padding-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Category tiles ---------- */
.cat { width: 220px; text-decoration: none; color: #fff; border-radius: var(--radius); padding: 18px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between; background: var(--c1); position: relative; overflow: hidden; }
.cat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; border: 14px solid var(--c2); opacity: .35; }
.cat strong { font-family: var(--display); font-size: 1.1rem; line-height: 1.2; position: relative; z-index: 1; }
.cat span { color: rgba(255,255,255,.8); font-size: .85rem; position: relative; z-index: 1; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-grid .cat { width: auto; }

/* ---------- Grids ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
.book-grid .book { width: auto; }
@media (min-width: 760px) { .book-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); } }

/* Journal links */
.link-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.link-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.link-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.link-card strong { display: block; color: var(--ink); }
.link-card small { color: var(--muted); }
.link-card p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

/* About band */
.about { display: grid; gap: 24px; align-items: center; }
.about p { color: var(--ink-soft); }
.about-card { background: var(--ink); color: #e3ece9; border-radius: var(--radius); padding: 22px; }
.about-card h3 { color: var(--gold); }
.about-card ul { margin: 0; padding-left: 18px; }
.about-card li { margin: 6px 0; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Filters / page header ---------- */
.page-head { background: var(--ink); color: #fff; padding: 28px 0 30px; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0; }
.page-head p { color: #c9d6d2; margin: 6px 0 0; }
.filters { display: grid; gap: 10px; margin: 20px 0; grid-template-columns: 1fr; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr 1fr auto; } }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; background: #fff; padding: 0 10px; }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Item page ---------- */
.item { display: grid; gap: 24px; padding: 28px 0; }
.item-cover { max-width: 260px; }
.item-cover .book-cover { border-radius: 10px 14px 14px 10px; }
.item h1 { font-size: clamp(1.5rem, 5vw, 2.3rem); }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.meta-list dt { color: var(--muted); font-size: .88rem; }
.meta-list dd { margin: 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
@media (min-width: 760px) { .item { grid-template-columns: 260px 1fr; gap: 40px; } }

/* Reader */
.reader-bar { background: var(--ink); color: #fff; }
.reader-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.reader-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-frame { width: 100%; height: calc(100vh - 116px); min-height: 480px; border: 0; display: block; background: #525659; }

/* ---------- Forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card + .card { margin-top: 16px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d6cfbf; border-radius: 10px; font: 500 1rem var(--body); color: var(--text); background: #fff; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed #c9bfa8; border-radius: 10px; background: #fffdf8; font: inherit; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; }

/* Login */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 28px 16px; background:
  radial-gradient(800px 400px at 0% 0%, rgba(224,165,38,.14), transparent 60%), var(--paper); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 28px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card .logo { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 9px; font: 600 .92rem var(--body); color: var(--ink-soft); cursor: pointer; min-height: 42px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #efe9dc; vertical-align: middle; }
th { background: #fbf8f1; font-weight: 700; color: var(--ink); white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td .thumb { width: 40px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
td .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.inline { display: inline; }

/* Admin */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; }
.admin-head h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .85rem; }
.quick { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; }
.quick a:hover { border-color: var(--gold); }
.quick strong { display: block; color: var(--ink); margin-bottom: 4px; }
.split { display: grid; gap: 20px; }
@media (min-width: 960px) { .split { grid-template-columns: 380px 1fr; align-items: start; } }

/* Bulk upload */
.drop { border: 2px dashed #c9bfa8; border-radius: var(--radius); background: #fffdf8; padding: 26px 16px; text-align: center; }
.drop.over { border-color: var(--gold); background: #fff7e3; }
.drop > strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.drop .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.bulk-list { display: grid; gap: 10px; margin-top: 16px; }
.bulk-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; align-items: start; }
.bulk-row .thumb { width: 64px; height: 90px; border-radius: 6px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; font-size: .7rem; color: var(--muted); }
.bulk-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bulk-fields { display: grid; gap: 8px; grid-template-columns: 1fr; }
.bulk-fields input, .bulk-fields select { min-height: 38px; padding: 7px 10px; font-size: .92rem; }
@media (min-width: 900px) { .bulk-fields { grid-template-columns: 2fr 1.3fr 1.3fr 110px; } }
.bulk-status { font-size: .8rem; font-weight: 600; color: var(--muted); }
.bulk-status.ok { color: var(--ok); } .bulk-status.err { color: var(--danger); } .bulk-status.busy { color: var(--info); }
.bulk-row .remove { margin-left: auto; }
.progress { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--ink-2), var(--gold)); transition: width .2s; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(250,247,240,.96); backdrop-filter: blur(6px); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; z-index: 5; }

/* ---------- Footer ---------- */
.footer { background: #0b2421; color: #b9c9c5; margin-top: 48px; padding: 36px 0 18px; }
.footer-in { display: grid; gap: 24px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { color: #fff; font-family: var(--display); font-size: 1.15rem; }
.footer-brand p { margin: 4px 0 0; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer h4 { color: var(--gold); margin: 0 0 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-cols a, .footer-cols span { display: block; color: #d8e3e0; text-decoration: none; font-size: .92rem; padding: 3px 0; word-break: break-word; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 16px; font-size: .8rem; color: #8aa19c; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1.2fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- v2: university branding, HOD, programmes ---------- */
.brand-crest { display: none; height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px; margin-left: 4px; }
@media (min-width: 600px) { .brand-crest { display: block; } }
.hero.has-photo { background:
  linear-gradient(100deg, rgba(10,36,33,.96) 0%, rgba(10,36,33,.88) 45%, rgba(10,36,33,.55) 100%),
  var(--hero-img) center / cover no-repeat, var(--ink); }
@media (max-width: 700px) { .hero.has-photo { background:
  linear-gradient(180deg, rgba(10,36,33,.9), rgba(10,36,33,.96)), var(--hero-img) center / cover no-repeat, var(--ink); } }

.hod { display: grid; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.hod-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--gold); display: grid; place-items: center;
  font-family: var(--display); font-size: 2.4rem; font-weight: 700; border: 4px solid var(--gold); flex: none; }
.hod-photo img { width: 100%; height: 100%; object-fit: cover; }
.hod .kicker { color: var(--gold-deep); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.hod h2 { margin: 4px 0 2px; }
.hod .role { color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.hod blockquote { margin: 0; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 14px; }
.hod blockquote p { margin: 0 0 10px; }
@media (min-width: 760px) { .hod { grid-template-columns: 150px 1fr; padding: 30px; } .hod-photo { width: 150px; height: 150px; } }

.prog-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }
.prog { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--gold); }
.prog strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.08rem; margin-bottom: 4px; }
.prog p { margin: 0; color: var(--muted); font-size: .92rem; }
.objectives { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.objectives li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.objectives li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); }
