/* Indreshwor Campus — "Kathmandu Courtyard" public site.
   Plain CSS (no build step) so it deploys on hosts without Node. */

:root {
  --brick: #A6462E;
  --brick-deep: #8A3826;
  --brass: #C08A3E;
  --timber: #3E2F26;
  --sage: #6B7A63;

  --whitewash: #FAF6F0;
  --surface-raised: #FFFDFA;
  --surface-sunken: #F1EBE1;

  --ink: #2A3038;
  --muted: #595550;
  --inverse: #FAF6F0;
  --rule: #E4DBCE;

  /* Notice-type tokens (badge colour is one source everywhere) */
  --notice-admission: #A6462E;
  --notice-exam: #2F5D8A;
  --notice-result: #2E6B4F;
  --notice-holiday: #B77A18;
  --notice-general: #57534C;
  --notice-tender: #5F6E58;
  --notice-vacancy: #6B3A5B;
  --notice-scholarship: #2E6B6B;

  --shadow-low: 0 1px 2px rgba(62,47,38,.06), 0 2px 8px rgba(62,47,38,.05);
  --shadow-raised: 0 4px 16px rgba(62,47,38,.10);

  --wrap: 1200px;
  --r-sm: 2px;
  --r-md: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Mukta, "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--whitewash);
}

:lang(ne) { line-height: 1.75; word-spacing: .02em; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); color: var(--timber); }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { text-wrap: pretty; max-width: 68ch; }

a { color: var(--brick); text-underline-offset: 2px; }
a:hover { color: var(--brick-deep); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.tnum { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: 12px 24px;
  border-radius: var(--r-sm); font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s cubic-bezier(.16,1,.3,1), color .2s;
}
.btn-primary { background: var(--brick); color: var(--inverse); }
.btn-primary:hover { background: var(--brick-deep); color: var(--inverse); }
.btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--brick); color: var(--brick); }

:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }


/* ---- Hero ---- */
.hero { background: var(--surface-sunken); border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-block: 48px; }
.hero p.lede { font-size: 1.1rem; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---- Section ---- */
.section { padding-block: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); margin-left: 16px; }

/* ---- Notice board (flat bordered list) ---- */
.board { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-low); }
.notice-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: var(--surface-sunken); }
.notice-row .body { flex: 1; min-width: 0; }
.notice-row .title { font-weight: 600; color: var(--ink); }
.notice-row .title .pin { color: var(--brass); }
.notice-row .meta { margin-top: 4px; }

/* ---- Badge ---- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--r-sm);
  font-size: .8125rem; font-weight: 500; white-space: nowrap;
  color: var(--badge, var(--notice-general));
  background: color-mix(in oklab, var(--badge, var(--notice-general)) 12%, transparent);
}

/* ---- Date chip ---- */
.date-chip { display: inline-flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: .85rem; }
.date-chip .bs { color: var(--ink); }
.date-chip .ad { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* ---- Filter chips ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--surface-raised); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip[aria-current="true"] { background: var(--brick); color: var(--inverse); border-color: var(--brick); }

/* ---- Article ---- */
.article { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-low); }
.article .prose { margin-top: 16px; }
.article .prose :is(p, ul, ol) { max-width: 70ch; }
.attachments { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 16px; }
.attachments a { display: inline-flex; gap: 8px; align-items: center; }


/* ---- Programmes ---- */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 12px 0 28px; }
.prog-card { display: block; background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-low); transition: box-shadow .2s, border-color .2s; }
.prog-card:hover { box-shadow: var(--shadow-raised); border-color: var(--brass); }
.prog-card h3 { margin: 0 0 6px; color: var(--timber); }
.prog-card .meta { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.prog-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---- Programmes catalogue and end-to-end finder ---- */
.programmes-page{padding-block:clamp(44px,7vw,82px)}
.programmes-wrap{max-width:1120px}
.programmes-head{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:34px}
.programmes-head h1{margin:2px 0 8px}.programmes-head p{margin:0;color:var(--muted);font-size:1.04rem}
.programmes-eyebrow{color:var(--brick);font-size:.74rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.program-filter{margin-bottom:38px;padding:24px;background:var(--surface-sunken);border:1px solid var(--rule);border-top:4px solid var(--brick);box-shadow:var(--shadow-low)}
.program-filter-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.program-filter-heading span{color:var(--brick);font-size:.7rem;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.program-filter-heading h2{margin:3px 0 0;color:var(--timber);font-size:1.35rem}
.program-filter-heading>a{font-size:.88rem;font-weight:650}
.program-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:14px;align-items:end}
.program-filter-fields label{display:block;color:var(--muted);font-size:.78rem;font-weight:700}
.program-filter-fields select{display:block;width:100%;min-height:46px;margin-top:5px;padding:10px 38px 10px 12px;border:1px solid var(--rule);border-radius:var(--r-sm);background-color:var(--surface-raised);color:var(--ink);font:inherit}
.program-filter-fields select:focus-visible{border-color:var(--brick);outline:2px solid var(--brick);outline-offset:1px}
.program-results-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--rule)}
.program-results-head>div{display:flex;align-items:center;gap:12px}.program-results-count{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--brick);color:var(--inverse);font-weight:750}
.program-results-head h2{margin:0;color:var(--timber);font-size:1.35rem}.program-results-head p{margin:0;color:var(--muted);font-size:.88rem}
.program-level{margin-bottom:34px}.program-level-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.program-level-head h2{margin:0;color:var(--timber);font-size:1.5rem}.program-level-head>span{padding:2px 9px;border-radius:99px;background:var(--surface-sunken);color:var(--muted);font-size:.75rem;font-weight:700}
.prog-card.program-result-card{display:flex;flex-direction:column;min-height:260px;border-top:3px solid var(--brass);padding:24px}
.program-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.program-card-top>span{color:var(--brick);font-size:.72rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.program-card-top>b{display:grid;place-items:center;min-width:36px;height:36px;padding:0 7px;border:1px solid var(--rule);border-radius:50%;color:var(--timber);font-size:.68rem}
.program-result-card h3{font-size:1.35rem}.program-result-card>p:not(.meta){line-height:1.55}
.program-card-link{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:20px;color:var(--brick);font-weight:700;font-size:.9rem}
.program-card-link i{font-size:1.2rem;font-style:normal;transition:transform .2s ease}.program-result-card:hover .program-card-link i{transform:translateX(4px)}
.program-empty{padding:54px 24px;text-align:center;background:var(--surface-sunken);border:1px solid var(--rule)}
.program-empty svg{width:48px;height:48px;margin:0 auto 14px;color:var(--brass)}.program-empty h2{color:var(--timber)}.program-empty p{margin:0 auto 20px;color:var(--muted)}
@media(max-width:860px){.programmes-head{align-items:start;flex-direction:column}.program-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.program-filter-fields .btn{justify-content:center}}
@media(max-width:560px){.program-filter{padding:20px 16px}.program-filter-heading{align-items:start;flex-direction:column}.program-filter-fields{grid-template-columns:1fr}.program-results-head{align-items:start;flex-direction:column}.prog-card.program-result-card{min-height:230px}}
@media(prefers-reduced-motion:reduce){.program-card-link i{transition:none}}

/* ---- Fee table ---- */
.fee-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.fee-table th, .fee-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.fee-table th:last-child, .fee-table td:last-child { text-align: right; }
.fee-table thead th { background: var(--surface-sunken); font-size: .8125rem; }
.fee-table tr.total td { font-weight: 700; border-bottom: 0; background: var(--surface-sunken); }
.contact-fees { background: var(--surface-sunken); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }
.contact-fees p { margin: 0 0 12px; }

/* ---- Faculty ---- */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 22px; margin: 18px 0 40px; }
.faculty-card { position: relative; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--rule); border-radius: 18px; padding: 28px 22px 24px; text-align: center; box-shadow: var(--shadow-low); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.faculty-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brick); }
.faculty-card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--brass) 65%, var(--rule)); box-shadow: var(--shadow-raised); }
.faculty-card img, .faculty-card .avatar-fallback { width: 140px; height: 158px; border-radius: 18px; object-fit: cover; object-position: center top; margin: 0 auto 18px; display: block; border: 5px solid var(--surface-raised); box-shadow: 0 0 0 1px var(--brass), 0 10px 24px rgba(62,47,38,.14); }
.faculty-card .avatar-fallback { display: grid; place-items: center; background: var(--surface-sunken); color: var(--brick); font-size: 3rem; font-weight: 750; line-height: 1; }
.faculty-card h3 { margin: 0; color: var(--timber); font-size: 1.16rem; line-height: 1.3; }
.faculty-card .desig { color: var(--brick); font-size: .92rem; font-weight: 650; margin: 5px 0; }
.faculty-card .quals, .faculty-card .muted { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: 3px 0; }
.faculty-card a { font-weight: 600; }

/* ---- Admission banner ---- */
.admission-banner { display: block; background: var(--brick); color: var(--inverse); text-decoration: none; text-align: center; padding: 10px 16px; font-size: .95rem; }
.admission-banner:hover { background: var(--brick-deep); color: var(--inverse); }
.admission-banner .cta { margin-left: 8px; text-decoration: underline; }

/* ---- Admission cycle card ---- */
.cycle-card { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-low); margin-bottom: 20px; }
.cycle-card h2 { margin: 10px 0 4px; }

/* ---- FAQ accordion ---- */
.faq { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface-raised); margin-bottom: 10px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--brick); font-weight: 700; }
.faq[open] summary::before { content: "− "; }
.faq[open] summary { border-bottom: 1px solid var(--rule); }
.faq .prose { padding: 12px 0; }

/* ---- Application / contact forms ---- */
.app-card { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 24px 28px; box-shadow: var(--shadow-low); }
.app-form h2 { font-size: 1.05rem; color: var(--timber); margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.app-form h2:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.app-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
.app-form input, .app-form select, .app-form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--whitewash); color: var(--ink); font: inherit; min-height: 44px;
}
.app-form textarea { min-height: 110px; resize: vertical; }
.app-form input:focus, .app-form select:focus, .app-form textarea:focus { border-color: var(--brick); outline: 2px solid var(--brick); outline-offset: 1px; background: var(--surface-raised); }
.app-form input[type="file"] { padding: 9px; background: var(--surface-sunken); cursor: pointer; }

/* ---- Gallery ---- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.album-card { display: block; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: var(--surface-raised); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-low); transition: box-shadow .2s; }
.album-card:hover { box-shadow: var(--shadow-raised); }
.album-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.album-card .album-noimg { display: flex; align-items: center; justify-content: center; height: 170px; font-size: 2.5rem; background: var(--surface-sunken); }
.album-card .album-meta { display: block; padding: 12px 14px; }
.album-card .album-meta strong { display: block; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.photo { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); background: var(--surface-raised); }
.photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
.photo figcaption { padding: 8px 12px; font-size: .85rem; color: var(--muted); }
.photo-lightbox-trigger { position: relative; display: block; overflow: hidden; background: var(--surface-sunken); color: inherit; cursor: zoom-in; }
.photo-lightbox-trigger img { transition: transform .25s ease, filter .25s ease; }
.photo-lightbox-trigger:hover img { transform: scale(1.025); filter: brightness(.92); }
.photo-lightbox-trigger:focus-visible { outline: 3px solid var(--brass); outline-offset: -4px; }
.photo-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(42,31,25,.82); color: #fff; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.photo-zoom svg { width: 20px; height: 20px; }
.photo-lightbox-trigger:hover .photo-zoom,.photo-lightbox-trigger:focus-visible .photo-zoom { opacity: 1; transform: none; }
.photo-video { aspect-ratio: 16 / 9; }
.photo-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.gallery-lightbox { position: relative; width: min(96vw, 1180px); max-width: none; max-height: 94vh; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #17110e; color: #fff; box-shadow: 0 26px 80px rgba(28,20,16,.42); }
.gallery-lightbox::backdrop { background: rgba(25,18,15,.86); backdrop-filter: blur(4px); }
.gallery-lightbox[open] { display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; align-items: center; }
.gallery-lightbox figure { min-width: 0; margin: 0; }
.gallery-lightbox figure img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #17110e; }
.gallery-lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 12px 18px; color: #f5efe7; font-size: .9rem; }
.gallery-lightbox-count { flex: none; color: #cfbfae; font-variant-numeric: tabular-nums; }
.gallery-lightbox-close,.gallery-lightbox-nav { display: grid; place-items: center; border: 0; color: #fff; cursor: pointer; }
.gallery-lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; background: rgba(31,24,20,.86); font-size: 1.7rem; line-height: 1; }
.gallery-lightbox-nav { width: 48px; height: 56px; margin: 8px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 2.25rem; line-height: 1; }
.gallery-lightbox-nav:hover,.gallery-lightbox-close:hover { background: var(--brick); }
.gallery-lightbox-nav:focus-visible,.gallery-lightbox-close:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---- Home hero ---- */
.hero-home { background: var(--surface-sunken); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 44px; }
.hero-copy h1 { margin: 0 0 12px; }
.hero-copy .lede { font-size: 1.1rem; color: var(--muted); }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-photo { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--rule); box-shadow: var(--shadow-low); object-fit: cover; }

.band-sunken { background: var(--surface-sunken); border-block: 1px solid var(--rule); }

/* ---- Stats band ---- */
.stats-band { background: var(--timber); color: var(--inverse); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 32px; text-align: center; }
.stats .stat-num { font-family: Inter, system-ui, sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--brass); line-height: 1; }
.stats .stat p { margin: 6px auto 0; color: color-mix(in oklab, var(--whitewash) 80%, transparent); font-size: .9rem; max-width: none; }

/* ---- Campus Chief ---- */
.chief { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.chief-mono { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--surface-sunken); border: 1px solid var(--rule); border-radius: var(--r-md); }
.chief-mono span { font-size: 3.5rem; font-weight: 700; color: var(--brick); }
.chief-quote { font-size: 1.15rem; line-height: 1.7; color: var(--timber); max-width: 62ch; }
.chief-by { color: var(--muted); margin-top: 12px; }

/* ---- Gallery strip ---- */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-strip img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--r-sm); display: block; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .chief { grid-template-columns: 1fr; }
  .chief-mono { width: 100px; aspect-ratio: 1; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-lightbox[open] { grid-template-columns: 48px minmax(0,1fr) 48px; }
  .gallery-lightbox-nav { width: 40px; height: 52px; margin: 4px; }
  .gallery-lightbox figure img { max-height: 76vh; }
  .gallery-lightbox figcaption { padding: 10px 14px; }
}

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

/* Downloads — category filter and document list */
.downloads-wrap { max-width: 1040px; }
.downloads-title { align-items: end; margin-bottom: 24px; }
.downloads-title .eyebrow { display: block; margin-bottom: 5px; color: var(--brick); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.downloads-title p { max-width: 58ch; margin: 8px 0 0; color: var(--muted); }
.downloads-total { flex: none; min-width: 112px; padding: 13px 16px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface-raised); color: var(--muted); font-size: .75rem; text-align: center; text-transform: uppercase; letter-spacing: .07em; }
.downloads-total strong { display: block; color: var(--brick); font: 700 1.65rem/1 Inter, system-ui, sans-serif; letter-spacing: 0; }
.dl-cats { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 30px; padding: 12px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface-sunken); }
.dl-cat-all { flex: none; }
.dl-category-groups { display: flex; flex: 1; flex-wrap: wrap; align-items: flex-start; gap: 10px; min-width: 0; }
.dl-category-group { display: flex; flex-direction: column; gap: 7px; padding: 5px; border: 1px solid transparent; border-radius: 14px; }
.dl-category-group:has(.is-active) { border-color: color-mix(in oklab, var(--brick) 22%, var(--rule)); background: rgba(255,255,255,.5); }
.dl-subcategories { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 12px; }
.dl-cat {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 99px;
  background: var(--surface-raised); color: var(--text-primary);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.dl-cat:hover { border-color: var(--brick); color: var(--brick); transform: translateY(-1px); }
.dl-cat.is-active { background: var(--brick); border-color: var(--brick); color: var(--inverse); box-shadow: 0 5px 14px rgba(166,70,46,.2); }
.dl-cat.is-parent { font-weight: 700; }
.dl-cat.is-subcategory { border-style: dashed; background: color-mix(in oklab, var(--surface-raised) 72%, var(--surface-sunken)); font-size: .84rem; }
.dl-cat.is-subcategory i { color: var(--brass); font-size: 1rem; font-style: normal; line-height: 1; }
.dl-cat.is-subcategory.is-active { border-style: solid; background: var(--brick); }
.dl-cat.is-subcategory.is-active i { color: #f7d9ad; }
.dl-category-lock { margin-left: 1px; color: var(--brass); font-size: .55rem !important; font-style: normal; }
.dl-cat.is-active .dl-category-lock { color: #f7d9ad; }
.dl-cat span {
  font-size: .74rem; font-weight: 700; line-height: 1;
  background: var(--surface-sunken); color: var(--text-muted);
  padding: 3px 7px; border-radius: 99px;
}
.dl-cat.is-active span { background: rgba(255,255,255,.18); color: var(--inverse); }
.downloads-result-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.downloads-result-head h2 { margin: 0; color: var(--timber); }
.downloads-result-head p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.downloads-breadcrumb { display: inline-flex; gap: 7px; align-items: center; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.downloads-breadcrumb b { color: var(--brass); }
.downloads-result-head>a { color: var(--brick); font-size: .88rem; font-weight: 650; }
.download-board { border-radius: 16px; box-shadow: var(--shadow-low); }
.download-row { align-items: center; gap: 18px; padding: 20px 22px; }
.download-row:hover { background: color-mix(in oklab, var(--surface-sunken) 72%, white); }
.download-row .title { display: block; color: var(--timber); font-size: 1.02rem; }
.download-row .btn { flex: none; display: inline-flex; align-items: center; gap: 7px; min-width: 128px; justify-content: center; }
.download-access { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.access-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; }
.access-chip.is-protected { background: color-mix(in oklab, var(--brass) 14%, transparent); color: #8b5d16; }
.access-chip.is-unlocked { background: color-mix(in oklab, var(--sage) 18%, transparent); color: #356b55; }
.access-chip.is-information { background: var(--surface-sunken); color: var(--muted); }
.download-meta { margin: 0 !important; font-size: .72rem !important; letter-spacing: .03em; text-transform: uppercase; opacity: .86; }
.download-pending { align-self: center; white-space: nowrap; }
.downloads-empty { padding: 52px 24px; text-align: center; }
.downloads-empty svg { width: 46px; height: 46px; color: var(--brass); }
.downloads-empty h3 { margin: 12px 0 5px; color: var(--timber); }
.downloads-empty p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 700px) {
  .downloads-title { align-items: flex-start; }
  .downloads-total { display: none; }
  .dl-cats { align-items: stretch; flex-direction: column; overflow: visible; }
  .dl-cat { flex: none; }
  .dl-cat-all { align-self: flex-start; }
  .dl-category-groups { display: grid; grid-template-columns: 1fr; width: 100%; }
  .dl-category-group { width: 100%; }
  .dl-category-group>.dl-cat { align-self: flex-start; }
  .download-row { align-items: flex-start; flex-wrap: wrap; }
  .download-row>.badge { order: 0; }
  .download-row>.body { flex-basis: calc(100% - 110px); }
  .download-row>.btn, .download-row>.download-pending { margin-left: auto; }
  .faculty-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .faculty-card img, .faculty-card .avatar-fallback { width: 126px; height: 142px; }
}

/* Search */
.searchbar { display: flex; gap: 10px; margin-bottom: 24px; }
.searchbar input {
  flex: 1; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--surface-raised); color: var(--text-primary); font: inherit;
}
.searchbar input:focus-visible { outline: 2px solid var(--brick); outline-offset: 1px; }
.count {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  background: var(--surface-sunken); padding: 2px 9px; border-radius: 99px;
  vertical-align: middle; margin-left: 8px;
}
.notice-row .sr-arrow { color: var(--text-muted); flex: none; align-self: center; margin-left: auto; }

/* Page featured image — small, floated left, text wraps around it */
.page-featured {
  float: left; width: 180px; max-width: 38%; height: auto;
  margin: 4px 24px 12px 0; border-radius: var(--r-md);
  box-shadow: var(--sh-ambient); background: var(--surface-sunken);
}
@media (max-width: 520px) {
  .page-featured { float: none; width: auto; max-width: 200px; margin: 0 0 16px; }
}
.prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: 12px 0; }

/* Affiliation logo (falls back to the text medallion when unset) */
.aff-logo { width: 66px; height: 66px; object-fit: contain; }
.aff-medallion-logo { width: 40px; height: 40px; object-fit: contain; }
.campus-aff-inline-logo { display: inline-block; width: 28px; height: 28px; margin-right: 7px; border: 1px solid rgba(192,138,62,.38); border-radius: 8px; background: var(--surface-raised); object-fit: cover; object-position: left center; vertical-align: middle; box-shadow: 0 3px 9px rgba(62,47,38,.09); }

/* ===== Leadership message pages (resources/views/pages/partials/message.blade.php) ===== */
.lm-wrap{max-width:1080px}
.lm-back{color:var(--brick)}
.lm-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:var(--s7);align-items:start;margin-top:var(--s6)}
.lm-profile{position:sticky;top:96px;background:var(--surface-raised);border:1px solid var(--rule);border-radius:var(--r-lg);padding:var(--s6) var(--s5);text-align:center}
.lm-portrait{width:200px;height:200px;margin:0 auto var(--s5);border-radius:50%;background:var(--surface-sunken);
  box-shadow:0 0 0 6px var(--surface-raised),0 0 0 7px var(--brass);display:grid;place-items:center;overflow:hidden}
.lm-portrait img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.lm-portrait span{font-size:4.5rem;font-weight:700;color:var(--brick);line-height:1}
.lm-name{font-size:1.25rem;font-weight:700;color:var(--timber);line-height:1.3;margin:0}
.lm-role{color:var(--text-muted);font-size:.95rem;line-height:1.5;margin:4px 0 0}
.lm-letter{position:relative;background:var(--surface-raised);border:1px solid var(--rule);border-radius:var(--r-lg);
  padding:var(--s7) clamp(24px,5vw,56px) var(--s6)}
.lm-qmark{position:absolute;top:6px;left:clamp(14px,3vw,36px);font-family:Georgia,serif;font-size:110px;line-height:1;
  color:var(--brass);opacity:.35;pointer-events:none}
.lm-letter>p{max-width:66ch;margin:0 0 var(--s4);line-height:1.75}
.lm-letter>.lm-kicker{font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--brick);margin:0 0 var(--s3)}
.lm-letter>p.lm-lead{font-size:1.2rem;color:var(--timber)}
.lm-letter[lang=ne]>p{line-height:1.95}
.lm-sign{margin-top:var(--s6);padding-top:var(--s5);border-top:1px solid var(--rule);display:flex;flex-direction:column;gap:2px;color:var(--text-muted);font-size:.95rem}
.lm-sign strong{font-size:1.1rem;color:var(--timber)}
.lm-other{display:flex;flex-direction:column;margin-top:var(--s6);padding:var(--s4) var(--s5);background:var(--surface-sunken);
  border-radius:var(--r-md);text-decoration:none;color:var(--brick);font-weight:600}
.lm-other span{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);font-weight:700}
.lm-other:hover{background:#EAE2D5}
@media(max-width:820px){
  .lm-grid{grid-template-columns:1fr;gap:var(--s5)}
  .lm-profile{position:static;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:var(--s4);text-align:left;padding:var(--s5)}
  .lm-portrait{width:96px;height:96px;margin:0;grid-row:span 3;box-shadow:0 0 0 4px var(--surface-raised),0 0 0 5px var(--brass)}
  .lm-portrait span{font-size:2.4rem}
  .lm-qmark{font-size:80px}
}

/* ===== About page: institutional story, direction and leadership ===== */
.about-page{overflow:hidden}
.about-hero{padding:clamp(42px,7vw,84px) 0 0;background:var(--surface-sunken);border-bottom:1px solid var(--rule)}
.about-hero-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);gap:clamp(36px,7vw,88px);align-items:center}
.about-back{display:inline-flex;margin-bottom:var(--s5);font-size:.86rem;font-weight:650;text-decoration:none}
.about-eyebrow{display:block;margin-bottom:10px;color:var(--brick);font-size:.75rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase}
.about-hero-copy h1{max-width:12ch;font-size:clamp(2.55rem,5.6vw,5rem);letter-spacing:-.04em}
.about-intro{color:var(--muted);font-size:1.08rem}
.about-intro p{margin:0;max-width:58ch}
.about-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:var(--s6)}
.about-hero-media{position:relative;margin:0;min-height:470px;align-self:stretch;overflow:hidden;border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--timber);box-shadow:var(--shadow-raised)}
.about-hero-media:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.22);border-bottom:0;border-radius:inherit;pointer-events:none}
.about-hero-media img{width:100%;height:100%;min-height:470px;display:block;object-fit:cover;object-position:center}
.about-hero-media figcaption{position:absolute;right:18px;bottom:18px;display:flex;flex-direction:column;max-width:280px;padding:13px 16px;background:rgba(42,48,56,.9);color:#fff;border-left:3px solid var(--brass)}
.about-hero-media figcaption strong{font-size:1rem}.about-hero-media figcaption span{font-size:.8rem;opacity:.78}
.about-facts{display:grid;grid-template-columns:repeat(4,1fr);margin-top:0;background:var(--surface-raised);border-inline:1px solid var(--rule)}
.about-facts>div{min-height:112px;display:flex;flex-direction:column;justify-content:center;padding:20px 26px;border-right:1px solid var(--rule)}
.about-facts>div:last-child{border-right:0}
.about-facts strong{color:var(--timber);font-size:1.65rem;line-height:1.1}.about-facts span{margin-top:6px;color:var(--muted);font-size:.8rem;line-height:1.35}
.about-narrow{max-width:1040px}
.about-section-head{margin-bottom:var(--s6)}
.about-section-head h2{color:var(--timber);font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-.025em}
.about-section-head>p,.about-section-head-row>p{color:var(--muted);margin:8px 0 0}
.about-section-head-row{display:flex;align-items:end;justify-content:space-between;gap:var(--s7)}
.about-section-head-row>p{max-width:50ch;margin-bottom:8px}
.about-direction{padding-block:clamp(64px,9vw,112px);background:var(--whitewash)}
.about-tabs{display:grid;grid-template-columns:220px minmax(0,1fr);border:1px solid var(--rule);background:var(--surface-raised);box-shadow:var(--shadow-low)}
.about-tablist{display:flex;flex-direction:column;background:var(--surface-sunken);border-right:1px solid var(--rule)}
.about-tablist button{min-height:76px;display:flex;align-items:center;gap:16px;padding:18px 22px;border:0;border-bottom:1px solid var(--rule);background:transparent;color:var(--muted);font:700 1rem/1.2 inherit;text-align:left;cursor:pointer}
.about-tablist button span{color:var(--brass);font:700 .72rem/1 Inter,system-ui,sans-serif;letter-spacing:.08em}
.about-tablist button[aria-selected=true]{background:var(--surface-raised);color:var(--brick);box-shadow:inset 4px 0 0 var(--brick)}
.about-tabpanels{min-height:300px;display:grid;align-items:stretch}
.about-tabpanels article{display:flex;align-items:center;gap:clamp(24px,5vw,56px);padding:clamp(32px,6vw,68px)}
.about-tabpanels article+article{border-top:1px solid var(--rule)}
.about-tabs.is-ready .about-tabpanels article+article{border-top:0}
.about-panel-mark{flex:none;display:grid;place-items:center;width:100px;height:100px;border:1px solid var(--brass);border-radius:50%;color:var(--brick);font:700 2.75rem/1 Georgia,serif}
.about-panel-label{margin:0 0 12px;color:var(--brick);font-size:.75rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
.about-tabpanels h3{max-width:27ch;margin:0;color:var(--timber);font-size:clamp(1.45rem,3vw,2.15rem);line-height:1.3}
.about-leadership{padding-block:clamp(64px,9vw,112px);background:var(--surface-sunken)}
.about-message-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s5)}
.about-message-card{display:flex;flex-direction:column;min-height:410px;padding:clamp(24px,4vw,40px);background:var(--surface-raised);border:1px solid var(--rule);border-top:4px solid var(--brick);box-shadow:var(--shadow-low)}
.about-message-person{display:flex;align-items:center;gap:20px;padding-bottom:var(--s5);border-bottom:1px solid var(--rule)}
.about-message-person img,.about-person-fallback{width:92px;height:108px;flex:none;object-fit:cover;object-position:center top;background:var(--surface-sunken);border:1px solid var(--rule)}
.about-person-fallback{display:grid;place-items:center;color:var(--brick);font-size:2rem;font-weight:750}
.about-message-person span{color:var(--brick);font-size:.72rem;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.about-message-person h3{margin:6px 0 0;color:var(--timber);font-size:1.25rem}
.about-message-card>p{margin:var(--s5) 0;color:var(--muted);font-family:Georgia,"Noto Serif Devanagari",serif;font-size:1.05rem;line-height:1.75}
.about-message-card>a{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:var(--s4);border-top:1px solid var(--rule);font-weight:700;text-decoration:none}
.about-message-card>a span{font-size:1.2rem;transition:transform .2s ease}.about-message-card>a:hover span{transform:translateX(4px)}
.about-related{padding-block:clamp(64px,9vw,104px);background:var(--surface-raised)}
.about-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--rule)}
.about-related-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:18px;align-items:start;min-height:180px;padding:30px 28px;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);color:var(--ink);text-decoration:none;transition:background .2s ease}
.about-related-card:nth-child(2n){border-right:0}.about-related-card:hover{background:var(--surface-sunken);color:var(--ink)}
.about-related-card>span{padding-top:5px;color:var(--brass);font-size:.75rem;font-weight:750}
.about-related-card h3{margin:0 0 8px;color:var(--timber)}.about-related-card p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
.about-related-card i{color:var(--brick);font-size:1.3rem;font-style:normal;transition:transform .2s ease}.about-related-card:hover i{transform:translateX(4px)}
@media(max-width:900px){
  .about-hero-grid{grid-template-columns:1fr}.about-hero-copy h1{max-width:none}.about-hero-media{min-height:380px}.about-hero-media img{min-height:380px}
  .about-facts{grid-template-columns:repeat(2,1fr)}.about-facts>div:nth-child(2){border-right:0}.about-facts>div:nth-child(-n+2){border-bottom:1px solid var(--rule)}
  .about-section-head-row{display:block}.about-message-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .about-hero{padding-top:32px}.about-hero-grid{gap:32px}.about-hero-media,.about-hero-media img{min-height:300px}.about-hero-media{margin-inline:-20px;border-radius:0}
  .about-facts{margin-inline:auto;padding-inline:0}.about-facts>div{min-height:96px;padding:16px}.about-facts strong{font-size:1.35rem}
  .about-tabs{grid-template-columns:1fr}.about-tablist{display:grid;grid-template-columns:1fr 1fr;border-right:0;border-bottom:1px solid var(--rule)}
  .about-tablist button{min-height:58px;border-bottom:0;border-right:1px solid var(--rule)}.about-tablist button:last-child{border-right:0}
  .about-tablist button[aria-selected=true]{box-shadow:inset 0 -4px 0 var(--brick)}
  .about-tabpanels{min-height:0}.about-tabpanels article{align-items:flex-start;padding:28px 22px}.about-panel-mark{width:58px;height:58px;font-size:1.7rem}.about-tabpanels h3{font-size:1.3rem}
  .about-related-grid{grid-template-columns:1fr}.about-related-card,.about-related-card:nth-child(2n){border-right:0}.about-message-card{min-height:0}.about-message-person img,.about-person-fallback{width:76px;height:90px}
}
@media(prefers-reduced-motion:reduce){.about-message-card>a span,.about-related-card i{transition:none}}
