/* =========================================================
   MIZOCAT — Design System
   Palette: deep pine-teal · terracotta · amber · ivory
   ========================================================= */

:root {
    --ivory: #faf6ef;
    --paper: #ffffff;
    --ink: #12262b;
    --ink-2: #3c565e;
    --muted: #6b8389;
    --line: #e7dfd2;
    --line-2: #efe9de;

    --pine: #0b6b57;
    --pine-700: #07503f;
    --pine-900: #04322a;
    --pine-300: #6fc3ac;
    --pine-50: #eaf5f1;

    --terra: #d2551f;
    --terra-600: #b44313;
    --terra-50: #fceee5;
    --amber: #e9a93a;
    --amber-50: #fcf3e1;
    --plum: #7a3b62;
    --sky: #2e7fa8;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 26px;
    --shadow-sm:
        0 1px 2px rgba(18, 38, 43, 0.05), 0 4px 14px rgba(18, 38, 43, 0.05);
    --shadow:
        0 4px 10px rgba(18, 38, 43, 0.06), 0 18px 44px rgba(18, 38, 43, 0.1);
    --shadow-lg:
        0 10px 30px rgba(4, 50, 42, 0.16), 0 40px 80px rgba(4, 50, 42, 0.14);

    /* Ronak_20261123: Uniform fonts */
    /* --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; */
    --font-display: "Open Sans", sans-serif;
    --font-body: "Open Sans", sans-serif;

    --maxw: 1220px;
    --header-h: 74px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

    /* Ronak_20261125: Sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Ronak_20261125: Sticky footer */
#main {
    flex: 1 0 auto;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--pine);
    text-decoration: none;
}

a:hover {
    color: var(--pine-700);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}

.section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.section--tight {
    padding: clamp(40px, 5vw, 35px) 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--terra);
    border-radius: 2px;
}

.eyebrow--light {
    color: var(--amber);
}

.eyebrow--light::before {
    background: var(--amber);
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: var(--ink-2);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(30px, 4vw, 52px);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head.center .eyebrow::before {
    display: none;
}

/* ---------- Mizo puan-inspired ornament strip ---------- */
.puan-strip {
    height: 9px;
    background: repeating-linear-gradient(
        90deg,
        var(--terra) 0 14px,
        var(--pine-900) 14px 22px,
        var(--amber) 22px 30px,
        var(--pine-700) 30px 44px
    );
    background-size: 44px 100%;
}

/* ============================ HEADER ============================ */
.header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(250, 246, 239, 0.88);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition:
        box-shadow 0.3s,
        border-color 0.3s,
        background 0.3s;
}

.header.is-stuck {
    border-color: var(--line);
    box-shadow: 0 6px 24px rgba(18, 38, 43, 0.07);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Ronak_20261123: Aligned menu options */
.header__inner .nav {
    margin-left: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand__mark {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 13px;
    background: linear-gradient(150deg, var(--pine) 0%, var(--pine-900) 100%);
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(7, 80, 63, 0.35);
    position: relative;
    overflow: hidden;
}

.brand__mark::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--terra) 0 6px,
        var(--amber) 6px 10px,
        transparent 10px 14px
    );
}

.brand__mark svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    min-width: 0;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.24rem;
    letter-spacing: -0.02em;
    color: var(--pine-900);
}

/* .brand__sub {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */

.brand__sub {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    transition:
        color 0.2s,
        background 0.2s;
}

.nav a:hover {
    color: var(--pine-700);
    background: var(--pine-50);
}

.nav a.is-active {
    color: #fff;
    background: var(--pine);
}

.nav a.is-active:hover {
    background: var(--pine-700);
    color: #fff;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--terra);
    color: #fff;
    font-weight: 600;
    font-size: 0.93rem;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(210, 85, 31, 0.3);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.header__cta:hover {
    background: var(--terra-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(210, 85, 31, 0.36);
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================ HERO ============================ */
/* .hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: none;
    padding: clamp(36px, 5vw, 64px) 0;
} */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: none;
    padding: 0px;
}

.hero__banner img {
    width: 100%;
    height: 100%;
    display: block;

    /* Ronak_20261127: Banner crop on zoom out */
    /* object-fit: scale-down;
    object-position: left top; */
    object-fit: cover;
    object-position: center top;
}

.searchwrap {
    position: relative;
    z-index: 5;
    width: 100%;
    /* max-width: 1120px; */
    max-width: 980px;
    margin: 0 auto;
    margin-top: 110px;
}

.hero__inner {
    position: relative;
    z-index: 4;
    max-width: none;
    min-height: clamp(340px, 36vw, 430px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- hero banner photograph ---------- */
.hero__banner {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

/* .hero__banner img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
} */

/* search card floating over hero */
/* .searchwrap {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
} */

/* Chandani_20261113: semi-transparent search card (like GujCat home searchbox)
   so the hero banner stays visible behind it. Applies to the whole card,
   i.e. both the Simple and the Advanced tab. */
.searchwrap .searchcard {
    /* Ronak_20261123: Search bar transparent style */
    /* background: rgba(255, 255, 255, .68); */
    background: rgb(255 255 255 / 4%);
    -webkit-backdrop-filter: blur(10px);
    /* backdrop-filter: blur(10px); */
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 18px 45px rgba(10, 40, 33, 0.35);
}

.searchcard {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 14px;
    overflow: hidden;
}

.searchcard__tabs {
    display: flex;
    gap: 6px;
    padding: 6px 6px 4px;
}

/* Ronak_20261123: Updated 3 sections for better visibility of search header buttons */
/* .searchcard__tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 22px;
  border-radius: 999px;
  transition: .2s;
}

.searchcard__tab.is-active {
  background: var(--pine-50);
  color: var(--pine-700);
}

.searchcard__tab:hover {
  color: var(--pine-700);
} */

.searchcard__tab {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: rgba(4, 50, 42, 0.38);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(4, 50, 42, 0.45);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.searchcard__tab:not(.is-active):hover {
    background-color: rgba(11, 107, 87, 0.85);
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
    transform: translateY(-1px);
}

.searchcard__tab.is-active {
    background-color: var(--pine-700);
    border-color: var(--pine-700);
    color: #fff;
    box-shadow: 0 6px 18px rgba(4, 50, 42, 0.35);
    text-shadow: none;
}

.searchcard__tab:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}

.searchform {
    padding: 10px;
    display: none;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.searchform.is-active {
    display: flex;
}

.searchform .btn {
    height: 62px;
    padding: 0 34px;
    font-size: 1.03rem;
}

.field {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
}

.field svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.field input,
.field select {
    width: 100%;
    height: 62px;
    font-family: var(--font-body);
    font-size: 1.06rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px 0 46px;
    appearance: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.field select {
    padding-right: 40px;
    cursor: pointer;
}

.field input:focus,
.field select:focus {
    outline: none;
    background: #fff;
    border-color: var(--pine-300);
    box-shadow: 0 0 0 4px rgba(111, 195, 172, 0.28);
}

/* ===== Chandani_20261113: home searchbox sizes =====
   Home page only (scoped to .searchwrap):
   - dropdown (field select) made small & fixed width
   - typed search box (text/search input) made big
   - controls a little smaller (54px instead of 62px)
   Applies to both the simple and the advanced tab,
   since both live in the same home search card. */
.searchwrap .field input,
.searchwrap .field select {
    height: 54px;
    font-size: 1.02rem;
}

.searchwrap .searchform .btn,
.searchwrap .voicebtn {
    height: 54px;
}

.searchwrap .field--select {
    flex: 0 0 170px;
}

.searchwrap .field:not(.field--select) {
    flex: 1 1 420px;
}

.searchwrap .field--op {
    flex: 0 0 96px;
}

/* --- voice search mic button (home page, like IndCat) --- */
.voicebtn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--ivory);
    color: var(--terra);
    cursor: pointer;
    transition: 0.2s;
}

.voicebtn svg {
    width: 20px;
    height: 20px;
}

.voicebtn:hover {
    border-color: var(--terra);
    background: #fff;
}

.voicebtn.listening {
    background: #ff9800;
    border-color: #ff9800;
    color: #fff;
    animation: voicepulse 1s infinite;
}

@keyframes voicepulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* --- voice search modal (matches IndCat's voice modal) --- */
.voice-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.voice-modal-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden;
}

.voice-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.voice-modal-header h3 {
    color: #333;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.voice-modal-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.voice-modal-content {
    padding: 25px;
    text-align: left;
}

.voice-modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

.voice-modal-content select {
    width: 100%;
    height: 45px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.voice-instructions {
    margin: 18px 0;
    font-size: 0.85rem;
    color: #555;
}

.voice-instructions ul {
    margin: 6px 0 0 18px;
}

.voice-listening-indicator {
    display: none;
    text-align: center;
    font-weight: 700;
    color: #0c8663;
    margin-bottom: 14px;
}

.voice-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.voice-start-btn {
    flex: 1;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.voice-cancel-btn {
    flex: 1;
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* toast used after voice input is captured */
.voice-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    border-left: 4px solid #28a745;
}

.field--select::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 0 26px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        background 0.18s,
        color 0.18s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--pine);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 107, 87, 0.3);
}

.btn--primary:hover {
    background: var(--pine-700);
    color: #fff;
}

.btn--terra {
    background: var(--terra);
    color: #fff;
    box-shadow: 0 10px 24px rgba(210, 85, 31, 0.3);
}

.btn--terra:hover {
    background: var(--terra-600);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-2);
}

.btn--ghost:hover {
    background: var(--paper);
    border-color: var(--pine-300);
    color: var(--pine-700);
}

.btn--light {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.btn--light:hover {
    background: #fff;
    color: var(--pine-900);
}

.btn--sm {
    height: 42px;
    padding: 0 18px;
    font-size: 0.88rem;
    border-radius: 11px;
}

.btn--block {
    width: 100%;
}

/* ============================ STATS ============================ */
.stats {
    position: relative;
    z-index: 6;
    margin-top: calc(clamp(56px, 8vw, 96px) * -0.66);
}

/* Ronak_20261127: Stop overlapping stats on mobile view */
@media (max-width: 960px) {
    .stats {
        margin-top: -8px;
    }
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 8px;
    border: 1px solid var(--line-2);
}

.stat {
    /* Ronak_20261127: Reduced padding */
    /* padding: clamp(20px, 3vw, 32px) 18px; */
    padding: clamp(20px, 3vw, 20px) 18px;
    
    text-align: center;
    position: relative;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--line);
}

.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    color: var(--pine-700);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat__num small {
    font-size: 0.5em;
    color: var(--terra);
    font-weight: 600;
}

.stat__label {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 9px;
    font-weight: 500;
}

/* ============================ CARDS / GRIDS ============================ */
.grid {
    display: grid;
    gap: 20px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 2.6vw, 30px);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--pine-300);
}

.card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pine), var(--amber));
}

/* district tiles */
.dtile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.dtile::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--pine-50);
    transition:
        transform 0.35s,
        background 0.3s;
}

.dtile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--pine-300);
}

.dtile:hover::after {
    transform: scale(1.35);
    background: var(--amber-50);
}

.dtile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.dtile__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pine-900);
}

.dtile__count {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--pine);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
}

.dtile__meta {
    font-size: 0.86rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.dtile__arrow {
    color: var(--terra);
    font-weight: 600;
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

/* feature list */
.features {
    display: grid;
    gap: 18px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.feature:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.feature__ico {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--pine-50);
    color: var(--pine-700);
    display: grid;
    place-items: center;
}

.feature__ico svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    margin-bottom: 4px;
    font-size: 1.08rem;
}

.feature p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.95rem;
}

/* ============================ SECTION SHELLS ============================ */
.band {
    position: relative;
    background: var(--paper);
    border-block: 1px solid var(--line-2);
}

.band--pine {
    background:
        radial-gradient(
            700px 320px at 90% 0%,
            rgba(233, 169, 58, 0.16),
            transparent 60%
        ),
        linear-gradient(
            150deg,
            var(--pine-900),
            var(--pine-700) 70%,
            var(--pine)
        );
    color: #fff;
    border: 0;
}

.band--pine h2,
.band--pine h3 {
    color: #fff;
}

.band--pine .lead,
.band--pine p {
    color: rgba(255, 255, 255, 0.84);
}

.band--pine .uci__list li {
    color: rgba(255, 255, 255, 0.86);
}

.band--dark {
    background: #08201c;
    color: #fff;
    border: 0;
}

/* university card */
.uci {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.uci:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--pine-300);
}

.uci__head {
    padding: 24px 26px 20px;
    color: #fff;
    position: relative;
    background: linear-gradient(
        140deg,
        var(--pine-700),
        var(--pine) 55%,
        #128e7a
    );
}

.uci__head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--terra) 0 12px,
        var(--amber) 12px 20px,
        rgba(255, 255, 255, 0.75) 20px 26px
    );
}

.uci__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.uci__head h3 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.uci__loc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    gap: 7px;
}

.uci__loc svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.uci__body {
    padding: 22px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.uci__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pine-50);
    color: var(--pine-700);
    border: 1px solid rgba(11, 107, 87, 0.14);
}

.chip--amber {
    background: var(--amber-50);
    color: #8a5b08;
    border-color: rgba(233, 169, 58, 0.3);
}

.chip--terra {
    background: var(--terra-50);
    color: var(--terra-600);
    border-color: rgba(210, 85, 31, 0.2);
}

.chip--ghost {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
    font-weight: 500;
}

.uci__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.uci__list li {
    display: flex;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.uci__list li::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--amber);
    transform: rotate(45deg);
}

.uci__foot {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================ DIRECTORY ============================ */
.pagehead {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            800px 360px at 88% -20%,
            rgba(233, 169, 58, 0.28),
            transparent 62%
        ),
        linear-gradient(
            155deg,
            var(--pine-900),
            var(--pine-700) 60%,
            var(--pine)
        );
    padding: clamp(22px, 3vw, 25px) 0 clamp(28px, 3.5vw, 42px);
}

.pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.6) 0 1px,
        transparent 1px 34px
    );
}

.pagehead__inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.pagehead h1 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0;
}

.pagehead p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    color: var(--amber);
}

.breadcrumb span {
    opacity: 0.55;
}

.toolbar {
    position: relative;
    z-index: 6;
    margin-top: -46px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 16px;
}

.toolbar__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar__row + .toolbar__row {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.toolbar .field input,
.toolbar .field select {
    height: 48px;
}

.toolbar__label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 2px;
}

.toolbar__spacer {
    flex: 1 1 auto;
}

.pillset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 999px;
    cursor: pointer;
    background: var(--ivory);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: 0.2s;
}

.pill:hover {
    border-color: var(--pine-300);
    color: var(--pine-700);
}

.pill.is-active {
    background: var(--pine);
    border-color: var(--pine);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 107, 87, 0.26);
}

.resultsbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 26px 0 18px;
}

.resultsbar__count {
    font-size: 0.95rem;
    color: var(--ink-2);
}

.resultsbar__count b {
    color: var(--pine-700);
    font-size: 1.14rem;
    font-family: var(--font-display);
}

.viewtoggle {
    display: flex;
    gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
}

.viewtoggle button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    place-items: center;
    transition: 0.2s;
}

.viewtoggle button svg {
    width: 17px;
    height: 17px;
}

.viewtoggle button.is-active {
    background: var(--pine-50);
    color: var(--pine-700);
}

/* list / grid of institutions */
.instlist {
    display: grid;
    gap: 14px;
}

.instlist.is-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.inst {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition:
        box-shadow 0.22s,
        transform 0.22s,
        border-color 0.22s;
    position: relative;
    overflow: hidden;
}

.inst::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--pine), var(--amber));
    opacity: 0;
    transition: opacity 0.22s;
}

.inst:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--pine-300);
}

.inst:hover::before {
    opacity: 1;
}

.inst__ava {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, var(--pine-700), var(--pine));
}

.inst__ava--g {
    background: linear-gradient(145deg, #0e5f8c, #2e7fa8);
}

.inst__ava--p {
    background: linear-gradient(145deg, var(--terra-600), var(--terra));
}

.inst__ava--c {
    background: linear-gradient(145deg, var(--plum), #a4578a);
}

.inst__main {
    flex: 1;
    min-width: 0;
}

.inst__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.inst__name a {
    color: inherit;
}

.inst__name a:hover {
    color: var(--pine-700);
    text-decoration: underline;
    text-decoration-color: var(--pine-300);
    text-underline-offset: 3px;
}

.inst__code {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--terra);
    font-weight: 700;
    text-transform: uppercase;
}

.inst__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.87rem;
    color: var(--muted);
    margin-top: 7px;
}

.inst__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inst__meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.inst__streams {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--ivory);
    border: 1px solid var(--line);
    color: var(--ink-2);
}

.tag--sci {
    background: #eaf3fa;
    border-color: #cfe4f1;
    color: #175a7d;
}

.tag--com {
    background: var(--amber-50);
    border-color: #f3e0bc;
    color: #8a5b08;
}

.tag--eng {
    background: var(--pine-50);
    border-color: #cde8e0;
    color: var(--pine-700);
}

.tag--med {
    background: var(--terra-50);
    border-color: #f6d9c9;
    color: var(--terra-600);
}

.tag--edu {
    background: #f3ecf7;
    border-color: #e3d5ec;
    color: var(--plum);
}

.tag--law {
    background: #eef0fa;
    border-color: #d8dcf2;
    color: #3f4b94;
}

.tag--mgm {
    background: #e9f6f8;
    border-color: #cde9ee;
    color: #106570;
}

.inst__side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge--gov {
    background: var(--pine-50);
    color: var(--pine-700);
}

.badge--pri {
    background: var(--terra-50);
    color: var(--terra-600);
}

.badge--cen {
    background: #eaf3fa;
    color: #175a7d;
}

.badge--con {
    background: var(--amber-50);
    color: #8a5b08;
}

.inst__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pine-700);
}

.inst__link svg {
    width: 14px;
    height: 14px;
}

.inst__link:hover {
    color: var(--terra);
}

.empty {
    text-align: center;
    padding: clamp(40px, 6vw, 70px) 20px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

.empty__ico {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ivory);
    display: grid;
    place-items: center;
    color: var(--muted);
}

.empty__ico svg {
    width: 26px;
    height: 26px;
}

.empty h3 {
    margin-bottom: 6px;
}

.empty p {
    color: var(--muted);
    margin-bottom: 18px;
}

.loadmore {
    text-align: center;
    margin-top: 30px;
}

/* ============================ TABLE ============================ */
.tablewrap {
    overflow-x: auto;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

table.tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
    font-size: 0.93rem;
}

table.tbl thead th {
    position: sticky;
    top: 0;
    background: var(--pine-900);
    color: #fff;
    text-align: left;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 14px 16px;
    white-space: nowrap;
}

table.tbl tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-2);
    vertical-align: top;
    color: var(--ink-2);
}

table.tbl tbody tr:hover {
    background: var(--pine-50);
}

table.tbl tbody tr:last-child td {
    border-bottom: 0;
}

table.tbl .t-name {
    color: var(--ink);
    font-weight: 600;
}

table.tbl .t-code {
    font-size: 0.78rem;
    color: var(--terra);
    letter-spacing: 0.06em;
    font-weight: 700;
}

/* ============================ DISTRICT PAGE ============================ */
.dcard {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.dcard:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.dcard__head {
    padding: 22px 26px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--pine-700), var(--pine));
}

.dcard__head h3 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
}

.dcard__head small {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

.dcard__count {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--amber);
}

.dcard__body {
    padding: 18px 26px 24px;
}

.dcard__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
    max-height: 260px;
    overflow-y: auto;
}

.dcard__list li {
    font-size: 0.93rem;
    color: var(--ink-2);
    display: flex;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}

.dcard__list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dcard__list b {
    color: var(--pine-700);
    font-weight: 600;
}

.dcard__foot {
    padding: 0 26px 24px;
}

/* ============================ ABOUT / PROSE ============================ */
/* .prose {
  max-width: 780px;
} */

.prose h3 {
    margin-top: 1.6em;
}

.prose ul {
    padding-left: 20px;
}

.prose li {
    margin-bottom: 8px;
    color: var(--ink-2);
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}

/* accordion */
.acc {
    display: grid;
    gap: 12px;
}

.acc__item {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}

.acc__item.is-open {
    box-shadow: var(--shadow);
    border-color: var(--pine-300);
}

.acc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--ink);
    padding: 18px 22px;
}

.acc__btn:hover {
    color: var(--pine-700);
}

.acc__ico {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pine-50);
    color: var(--pine-700);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    transition:
        transform 0.3s,
        background 0.3s;
}

.acc__item.is-open .acc__ico {
    transform: rotate(45deg);
    background: var(--pine);
    color: #fff;
}

.acc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.acc__panel > div {
    padding: 0 22px 20px;
    color: var(--ink-2);
    font-size: 0.96rem;
}

/* callout */
.callout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--amber-50);
    border: 1px solid #f2e1be;
    border-left: 4px solid var(--amber);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    font-size: 0.95rem;
    color: #6e4c10;
}

.callout svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--amber);
}

/* ============================ CONTACT ============================ */
.form {
    display: grid;
    gap: 16px;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form textarea {
    min-height: 140px;
    resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--pine-300);
    box-shadow: 0 0 0 4px rgba(111, 195, 172, 0.26);
}

.info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}

.info-item:last-child {
    border-bottom: 0;
}

.info-item__ico {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--pine-50);
    color: var(--pine-700);
    display: grid;
    place-items: center;
}

.info-item__ico svg {
    width: 19px;
    height: 19px;
}

.info-item h4 {
    margin: 0 0 3px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.info-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

/* ============================ CTA ============================ */
.cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--terra-600),
        var(--terra) 55%,
        var(--amber)
    );
    border-radius: var(--radius-lg);
    padding: clamp(38px, 6vw, 64px) clamp(22px, 5vw, 60px);
    box-shadow: var(--shadow-lg);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 30px),
        repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 30px);
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: #fff;
    margin-bottom: 10px;
}

.cta p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
    margin: 0 auto 26px;
}

/* ============================ FOOTER ============================ */
.footer {
    background: #08201c;
    color: rgba(255, 255, 255, 0.72);
    /* padding: clamp(46px, 6vw, 72px) 0 0; */
    position: relative;

    /* Ronak_20261125: Sticky footer */
    flex-shrink: 0;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--terra) 0 16px,
        var(--amber) 16px 26px,
        var(--pine-300) 26px 38px
    );
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: clamp(26px, 4vw, 48px);
    padding-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    transition:
        color 0.2s,
        padding-left 0.2s;
}

.footer a:hover {
    color: var(--amber);
    padding-left: 4px;
}

.footer .brand__name {
    color: #fff;
}

.footer .brand__sub {
    color: rgba(255, 255, 255, 0.5);
}

.footer__about {
    font-size: 0.94rem;
    line-height: 1.7;
    margin-top: 18px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    
    /* Ronak_20261125: Reduce footer padding */
    /* padding: 20px 0; */
    padding: 10px 0;
    align-items: center;

    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Ronak_20261125: Reduce footer padding */
.footer__bottom p {
    margin: 0;
}

.socials {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0;
}

.socials a:hover {
    background: var(--terra);
    border-color: var(--terra);
    padding-left: 0;
    transform: translateY(-3px);
}

.socials svg {
    width: 17px;
    height: 17px;
}

/* back to top */
.totop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    background: var(--pine);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(11, 107, 87, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: 0.3s;
}

.totop.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.totop:hover {
    background: var(--pine-700);
}

.totop svg {
    width: 19px;
    height: 19px;
}

/* reveal animation (only active once JS confirms support) */
.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* utility */
#faq,
#sources,
[id] {
    scroll-margin-top: calc(var(--header-h) + 22px);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

.nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .header__inner {
        gap: 10px;
    }

    .nav {
        flex-wrap: nowrap;
    }

    .nav a {
        padding: 9px 10px;
        font-size: 0.89rem;
        white-space: nowrap;
    }

    .header__cta {
        padding: 10px 15px;
        font-size: 0.87rem;
        gap: 6px;
    }
}

@media (max-width: 960px) {
    .burger {
        display: flex;
    }

    .header__cta {
        display: none;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        padding: 14px 20px 22px;
        box-shadow: 0 22px 40px rgba(18, 38, 43, 0.14);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1),
            opacity 0.22s,
            visibility 0.28s;
        max-height: calc(100vh - var(--header-h) - 9px);
        overflow-y: auto;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav a {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 1.02rem;
    }

    .nav a.is-active {
        background: var(--pine);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3)::before {
        display: none;
    }

    .stat:nth-child(odd)::before {
        display: none;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .container {
        padding-inline: 17px;
    }

    /* .brand__sub {
        display: none;
    } */

    .brand__sub {
        display: block;
        font-size: 0.56rem;
        letter-spacing: 0.02em;
    }

    .searchform {
        flex-direction: column;
    }

    .searchform .field {
        flex: 0 0 auto;
        width: 100%;
    }

    .searchform .btn {
        width: 100%;
        height: 54px;
    }

    /* Ronak_20261123: Updated design <= 720px in hero search module */
    /* Column layout: row-mode flex-basis would otherwise become field height */
    .searchwrap .field:not(.field--select),
    .searchwrap .field--select,
    .searchwrap .field--op {
        flex: 0 0 auto;
        width: 100%;
    }

    .field input,
    .field select {
        height: 50px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 6px;
        border-radius: 20px;
    }

    .stat {
        padding: 18px 10px;
    }

    .stat__label {
        font-size: 0.7rem;
        letter-spacing: 0.07em;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .instlist.is-grid {
        grid-template-columns: 1fr;
    }

    .inst {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .inst__ava {
        width: 46px;
        height: 46px;
        font-size: 0.92rem;
        border-radius: 13px;
    }

    .inst__main {
        flex: 1 1 200px;
    }

    .inst__side {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px dashed var(--line);
    }

    .toolbar {
        padding: 14px;
        border-radius: 20px;
    }

    .toolbar__row {
        gap: 10px;
    }

    .toolbar .field {
        flex: 1 1 100%;
    }

    .pillset {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pillset::-webkit-scrollbar {
        display: none;
    }

    .pill {
        white-space: nowrap;
    }

    .form__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .uci__head {
        padding: 20px;
    }

    .uci__body {
        padding: 20px;
    }

    .dcard__head {
        padding: 18px 20px;
    }

    .dcard__body,
    .dcard__foot {
        padding-inline: 20px;
    }

    .resultsbar {
        gap: 10px;
    }

    .viewtoggle {
        margin-left: auto;
    }
}

@media (max-width: 420px) {
    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat__num {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .header,
    .footer,
    .totop,
    .toolbar,
    .viewtoggle,
    .searchwrap {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .inst {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ---------------- search page ---------------- */
.searchsplit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.searchcard {
    /* grid-column: 1; */
    grid-column: 1 / -1;
    grid-row: 1;
}

.searchresults {
    grid-column: 1;
    /* grid-column: 2; */
    grid-row: 2;
    min-width: 0;
}

.sprow {
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.sprow .btn {
    height: 62px;
    padding: 0 34px;
    font-size: 1.03rem;
}

.searchopts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 2px 12px 8px;
}

.searchopts__label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.searchopt {
    position: relative;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 999px;
    cursor: pointer;
    background: var(--ivory);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: 0.2s;
}

.searchopt input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.searchopt:hover {
    border-color: var(--pine-300);
    color: var(--pine-700);
}

.searchopt:has(input:checked) {
    background: var(--pine);
    border-color: var(--pine);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 107, 87, 0.26);
}

.searchcard.is-adv #panelSimple,
.searchcard.is-adv #searchopts {
    display: none;
}

.advbox {
    margin: 4px 12px 0;
    border-top: 1px dashed var(--line);
}

.advbox__sum {
    cursor: pointer;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 0 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pine-700);
}

.advbox__sum::-webkit-details-marker {
    display: none;
}

.advbox__sum::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--pine-50);
    color: var(--pine-700);
    font-family: var(--font-display);
    font-weight: 700;
}

.advbox[open] .advbox__sum::before {
    content: "\2212";
}

.advbox__body {
    display: grid;
    gap: 10px;
    padding: 4px 0 12px;
}

.advrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.advrow .field {
    flex: 1 1 180px;
}

.advrow .field--op {
    flex: 0 0 96px;
}

.advrow .field--op select {
    padding: 0 30px 0 16px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.facets {
    grid-column: 2;
    grid-row: 2 / span 1;
    /* grid-column: 1;
  grid-row: 2; */
    display: grid;
    gap: 14px;
    align-content: start;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.searchresults .resultsbar {
    margin-top: 4px;
}

.facetbox {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 15px 16px;
}

.facetbox__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.facetbox__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.facetbox__on {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--pine-50);
    color: var(--pine-700);
    padding: 3px 8px;
    border-radius: 999px;
}

.facetbox__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.facetrefine {
    border: 0;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--terra);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.facetrefine:hover {
    background: var(--pine-700);
}

.facetlist {
    display: grid;
    gap: 7px;
}

.facetitem {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 0.87rem;
    color: var(--ink-2);
}

.facetitem input {
    accent-color: var(--pine);
    width: 15px;
    height: 15px;
    flex: none;
    cursor: pointer;
}

.facetitem__label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.facetitem:has(input:checked) .facetitem__label {
    color: var(--pine-700);
    font-weight: 600;
}

.facetitem__count {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
}

.facetmore {
    margin-top: 9px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pine-700);
}

.facetmore:hover {
    color: var(--terra);
}

.facets__foot {
    display: grid;
    gap: 9px;
    justify-items: start;
}

.facets__hint {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.clearfilters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--terra-600);
    background: var(--terra-50);
    border: 1px solid #f6d9c9;
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    transition: 0.2s;
}

.clearfilters:hover {
    background: var(--terra);
    border-color: var(--terra);
    color: #fff;
}

.resultsbar__meta {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
    margin-left: 12px;
}

.limitsform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.limitsform select {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.limitsform select:focus {
    outline: none;
    border-color: var(--pine-300);
    box-shadow: 0 0 0 4px rgba(111, 195, 172, 0.28);
}

.results {
    display: grid;
}

.results .inst__side {
    max-width: 46%;
}

.results .inst__side .badge {
    white-space: normal;
    text-align: right;
}

mark {
    background: rgba(233, 169, 58, 0.45);
    color: inherit;
    border-radius: 3px;
    padding: 0 2px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 30px 0 6px;
}

.pager__page,
.pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink-2);
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.pager__page:hover,
.pager__btn:hover {
    border-color: var(--pine-300);
    color: var(--pine-700);
}

.pager__page.is-current {
    background: var(--pine);
    border-color: var(--pine);
    color: #fff;
}

.pager__gap {
    color: var(--muted);
    padding: 0 3px;
}

@media (max-width: 960px) {
    .searchsplit {
        grid-template-columns: 1fr;
    }

    .searchcard,
    .searchresults,
    .facets {
        grid-column: 1;
        grid-row: auto;
    }

    .facets {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .sprow .btn {
        height: 56px;
    }

    .resultsbar__meta {
        display: flex;
        margin-left: 0;
        margin-top: 4px;
    }
}

/* ---------------- Search: pre-search intro ---------------- */
.searchsplit--solo {
    grid-template-columns: minmax(0, 1fr);
}

.searchsplit--solo .searchresults {
    grid-row: 2;
}

.searchsplit--solo .searchresults .empty {
    margin-top: 4px;
}

/* ---------------- Home: all-institutions list ---------------- */
.split__text {
    align-self: start;
    padding-top: 8px;
}

.institlist {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}

.institlist__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-2);
}

.institlist__head h3 {
    font-family: var(--font-display);
    font-size: 1.14rem;
    margin-top: 6px;
}

.institlist__radios {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.institlist__radios .searchopt {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.institlist__items {
    list-style: none;
    margin: 0;
    padding: 0 12px 0 0;
    max-height: min(350px, 62vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--pine-300) transparent;
}

.institlist__items::-webkit-scrollbar {
    width: 8px;
}

.institlist__items::-webkit-scrollbar-track {
    background: transparent;
}

.institlist__items::-webkit-scrollbar-thumb {
    background: var(--pine-300);
    border-radius: 999px;
}

.institlist__items::-webkit-scrollbar-thumb:hover {
    background: var(--pine-500, var(--pine));
}

.institlist__item {
    break-inside: avoid;
    position: relative;
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--ink-2);
    padding: 7px 0 7px 16px;
    border-bottom: 1px dashed var(--line-2);
}

.institlist__item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

.institlist__item[data-type="university"] {
    color: var(--pine-700);
    font-weight: 700;
}

.institlist__item[data-type="university"]::before {
    background: var(--pine);
}

.institlist__item--loading {
    color: var(--muted);
    font-style: italic;
}

.institlist__item--loading::before {
    background: var(--line-2);
}

.institlist__foot {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.institlist__foot #institCount {
    color: var(--pine-700);
}

.institlist__search {
    position: relative;
    margin: 2px 0 12px;
}

.institlist__search svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--muted);
    pointer-events: none;
    transition: color 0.2s;
}

.institlist__search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 12px;
    appearance: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.institlist__search input::placeholder {
    color: var(--muted);
}

.institlist__search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.institlist__search:focus-within svg {
    color: var(--pine-700);
}

.institlist__search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--pine-300);
    box-shadow: 0 0 0 4px rgba(111, 195, 172, 0.28);
}

@media (max-width: 720px) {
    .institlist {
        padding: 18px;
    }

    .institlist__items {
        max-height: min(400px, 58vh);
    }
}

/* ---------------- Home: advanced search tab ---------------- */
.searchform .advbox__body {
    flex: 1 1 460px;
    min-width: 0;
}

.searchform .advrow .btn {
    flex: 0 0 auto;
}

.searchform .advbox__body .searchopts {
    padding-left: 0;
}

@media (max-width: 720px) {
    .searchform .advbox__body {
        flex: 0 0 auto;
    }

    .advrow .field {
        flex: 0 0 auto;
        width: 100%;
    }

    .advrow .field--op {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ---------------- Book details (Normal / MARC) ---------------- */
.bookcard {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.bookcard__head {
    padding: 26px 30px 6px;
}

.bookcard__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pine-700);
    text-decoration: none;
    margin-bottom: 14px;
}

.bookcard__back:hover {
    text-decoration: underline;
}

.bookcard__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 14px;
}

.bookcard__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bookcard__pills .pill {
    cursor: default;
}

.bookcard__pills .pill:hover {
    border-color: var(--line);
    color: var(--ink-2);
}

.bookcard__pills .pill--code {
    /* Ronak_20261123: Uniform fonts */
    /* font-family: ui-monospace, SFMono-Regular, Menlo, monospace; */
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.bookcard__pills .pill--year {
    background: var(--pine-50);
    border-color: var(--pine-50);
    color: var(--pine-700);
}

.booktabs {
    display: flex;
    gap: 6px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line-2);
}

.booktabs__btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    padding: 13px 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.booktabs__btn:hover {
    color: var(--pine-700);
}

.booktabs__btn.is-active {
    color: var(--pine-700);
    background: var(--pine-50);
}

.booktabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--pine);
}

.bookpane {
    display: none;
    padding: 24px 30px 30px;
}

.bookpane.is-active {
    display: block;
}

.bookrows {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    margin: 0;
}

.bookrows dt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid var(--line-2);
}

.bookrows dd {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink);
    font-size: 0.97rem;
}

.bookpane__h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 26px 0 12px;
}

.bookpane__empty {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.booktablewrap {
    overflow-x: auto;
}

.holdings {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.holdings th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pine-700);
    background: var(--pine-50);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-2);
}

.holdings td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-2);
}

.holdings tr:last-child td {
    border-bottom: 0;
}

/* Ronak_20261113: ILL Request button in the holdings table */
.illbtn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--pine);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.illbtn:hover {
    background: var(--terra);
    color: #fff;
}

/* Ronak_20261113: ILL request form page */
.illnotice {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #7c2d12;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.illsuccess {
    background: var(--pine-50);
    border: 1px solid var(--pine-300);
    color: var(--pine-700);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.illform {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.illform__table {
    font-size: 0.95rem;
}

.illform__table th {
    width: 320px;
    vertical-align: top;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pine-700);
    background: var(--pine-50);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-2);
}

.illform__table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-2);
}

.illform__table input[type="text"],
.illform__table input[type="email"],
.illform__table input[type="tel"],
.illform__table input[type="date"],
.illform__table select,
.illform__table textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
}

.illform__table textarea[readonly] {
    color: var(--ink-2);
}

.illform__table input[readonly] {
    background: #f1f5f4;
    color: var(--ink-2);
}

.illmasked {
    display: inline-block;
    /* Ronak_20261123: Uniform fonts */
    /* font-family: ui-monospace, SFMono-Regular, Menlo, monospace; */
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pine-700);
    background: var(--pine-50);
    border: 1px dashed var(--pine-300);
    border-radius: 8px;
    padding: 7px 12px;
}

.illhint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--ink-2);
}

.illvisit[hidden] {
    display: none;
}

.illcaptcha {
    display: inline-block;
    font-weight: 700;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
    user-select: none;
}

.illform__actions {
    margin-top: 18px;
}

@media (max-width: 720px) {
    .illform__table th,
    .illform__table td {
        display: block;
        width: 100%;
    }
}

.marcwrap {
    max-height: 560px;
    overflow: auto;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    overscroll-behavior: contain;
}

.marctable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.marctable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pine-700);
    background: var(--pine-50);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-2);
}

.marctable td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-2);
    vertical-align: top;
}

.marctable tr:last-child td {
    border-bottom: 0;
}

.marctable__tag {
    /* Ronak_20261123: Uniform fonts */
    /* font-family: ui-monospace, SFMono-Regular, Menlo, monospace; */
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--pine-700);
}

.marctable__val {
    word-break: break-word;
}

@media (max-width: 720px) {
    .bookcard__head {
        padding: 20px 18px 4px;
    }

    .booktabs {
        padding: 0 18px;
        overflow-x: auto;
    }

    .booktabs__btn {
        padding: 12px 14px;
        white-space: nowrap;
    }

    .bookpane {
        padding: 18px;
    }

    .bookrows {
        grid-template-columns: 1fr;
    }

    .bookrows dt {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .bookrows dd {
        padding-top: 4px;
    }

    /* Ronak_20261127: ILL table on mobile view */
    /* .holdings {
        min-width: 520px;
    } */
    .booktablewrap .holdings {
        min-width: 520px;
    }
}

/* ============================================================
   Record downloads � mizocat-style TXT / MARC / XML export
   ============================================================ */

.bookdl {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--pine-50);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    margin-top: 14px;
}

.bookdl__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-2);
}

.bookdl select {
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    font: inherit;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

.bookdl .btn {
    height: 38px;
    padding: 0 20px;
    font-size: 0.9rem;
}

.dltools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.dltools__all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.dltools__count {
    font-weight: 600;
    color: var(--ink-2);
}

.dltools select {
    height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    font: inherit;
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
}

.dltools .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 0.85rem;
    border-radius: 9px;
}

.dltools .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.inst__pick {
    flex: none;
    align-self: flex-start;
    margin-top: 3px;
    display: flex;
}

.dlchk {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--pine-700);
    cursor: pointer;
}

.inst__dl {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.inst__dlbtn {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pine-700);
    background: var(--paper);
    border: 1px solid var(--pine-300);
    border-radius: 7px;
    padding: 3px 7px;
    transition:
        background 0.18s,
        color 0.18s;
}

.inst__dlbtn:hover {
    background: var(--pine-700);
    color: #fff;
}

@media (max-width: 720px) {
    .bookdl {
        padding: 10px 12px;
    }

    .dltools {
        width: 100%;
        justify-content: flex-start;
    }

    .inst__pick {
        margin-top: 1px;
    }
}

/* Ronak_20261123: Section alignment */
/* Home about snapshot: top-align the info cards with the institutions table */
.split--about {
    align-items: start;
}

/* Main layout */
.mizocat-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

/* Ronak_20261123: Section alignment */
/* .mizocat-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.mizocat-info-card {
    background: #fff;
    border: 1px solid #eee6db;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(35, 45, 35, 0.06);
    min-width: 0;
}

.mizocat-info-card__head {
    padding: 10px 16px;
    border-radius: 10px 24px 24px 10px;
    margin-bottom: 12px;
    font-family: var(--font-display);

}

.mizocat-info-card__head h3 {
    color: #000;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    font-family: var(--font-display);
}

.mizocat-info-card__body p {
    font-size: 14px;
    line-height: 1.75;
    color: #40585e;
    margin: 0;
    text-align: justify;
}

.mizocat-readmore {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 16px;
    border: 1px solid #d9aa78;
    border-radius: 7px;
    color: #a9632d;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
} */

/* Three cards on left */
.mizocat-info-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 12px;
    min-width: 0;
}

/* Ronak_20261127: Institution list on mobile view */
/* Keep both columns bottom-aligned and let the list use all available height */
/* .split--about > .institlist {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.split--about > .institlist > .institlist__head,
.split--about > .institlist > .institlist__search {
    flex: none;
}

.split--about > .institlist .institlist__items {
    flex: 1 1 0;
    max-height: none;
    min-height: 0;
} */

@media (min-width: 961px) {
    .split--about > .institlist {
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .split--about > .institlist > .institlist__head,
    .split--about > .institlist > .institlist__search {
        flex: none;
    }

    .split--about > .institlist .institlist__items {
        flex: 1 1 0;
        max-height: none;
        min-height: 0;
    }
}

/* Each card */
.mizocat-info-card {
    background: #fff;
    border: 1px solid #eee6db;
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(35, 45, 35, 0.06);
    min-width: 0;
}

/* Colored heading */
.mizocat-info-card__head {
    padding: 6px 12px;
    border-radius: 10px 24px 24px 10px;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.mizocat-info-card__head h3 {
    color: #000;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    font-family: var(--font-display);
}

/* Content */
.mizocat-info-card__body p {
    font-size: 13px;
    line-height: 1.55;
    color: #40585e;
    margin: 0;
    text-align: justify;
}

/* Read more */
.mizocat-readmore {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    border: 1px solid #d9aa78;
    border-radius: 7px;
    color: #a9632d;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.mizocat-readmore:hover {
    background: #f68b20;
    color: #fff;
}

/* Existing institution list fills right side */
.mizocat-about-layout > .institlist {
    min-width: 0;
    height: 100%;
}

/* Responsive */
@media (max-width: 991px) {
    .mizocat-about-layout {
        grid-template-columns: 1fr;
    }
}

/* About page: distinct university-counts section */
.about-records {
    background: linear-gradient(135deg, var(--pine-50), #fff 65%);
    border-block: 1px solid var(--line-2);
}

.about-records__panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    gap: 28px;
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.about-records__intro h2 {
    margin-top: 8px;
}

.about-records__intro p {
    color: var(--muted);
}

.about-records__summary {
    margin-top: 22px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--pine-900);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-records__summary strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.about-records__summary span {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.82;
}

.about-records__table {
    min-width: 0;
}

.about-records__meta {
    margin: 12px 2px 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.about-records .pager {
    margin: 18px 0 0;
}

@media (max-width: 860px) {
    .about-records__panel {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .about-records__summary {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
}

/* Vishal */
.logo-head {
    height: 65px;
}

.visitor-count {
    background: var(--pine-700);
    color: #fff;
    padding: 1px 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Ronak_20261123 */
/* ---------------- About us page ---------------- */
.aboutus-page {
    padding-block: 24px;
}

.aboutus,
.aboutus__head {
    max-width: 760px;
    margin-inline: auto;
}

.aboutus__head {
    margin-bottom: 18px;
}

.aboutus__head h1 {
    font-size: 1.6rem;
}

.aboutus__head p {
    font-size: 0.9rem;
}

.aboutus__section {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
}

.aboutus__section:last-child {
    border-bottom: 0;
}

.aboutus__section .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 4px;
}

.aboutus__section h2 {
    font-size: 1.08rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.aboutus__section p,
.aboutus__section li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.aboutus__section p {
    text-align: justify;
}

.aboutus__section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.aboutus__section li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.aboutus__section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

.aboutus__section p:last-child,
.aboutus__section ul:last-child {
    margin-bottom: 0;
}

/* Ronak_20261125: FAQ - IndCat style */
/* FAQ accordion (IndCat-style, two columns) */
.faqacc-head {
    max-width: 1100px;
    margin-inline: auto;
    text-align: left;
}

.faqacc-head h1 {
    font-size: 1.6rem;
}

.faqacc-head p {
    font-size: 0.9rem;
}

.faqacc-page {
    padding-block: 24px;
}

.faqacc {
    max-width: 1100px;
    margin-inline: auto;
}

.faqacc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    align-items: start;
}

.faqacc-item + .faqacc-item {
    margin-top: 12px;
}

.faqacc-item {
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faqacc-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    list-style: none;
    background: var(--ivory);
    color: var(--pine-900);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.faqacc-q::-webkit-details-marker {
    display: none;
}

.faqacc-q:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: -2px;
}

.faqacc-toggle {
    flex: none;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--amber);
    color: var(--pine-900);
    font-size: 0;
    line-height: 1;
    font-weight: 700;
}

.faqacc-toggle::before {
    content: "+";
    font-size: 0.95rem;
}

.faqacc-item[open] .faqacc-toggle {
    background: var(--pine);
    color: #fff;
}

.faqacc-item[open] .faqacc-toggle::before {
    content: "\2212";
}

.faqacc-a {
    padding: 12px 14px 14px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ink-2);
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease;
}

.faqacc-a p {
    margin: 0 0 8px;
}

.faqacc-a p:last-child,
.faqacc-a ul:last-child {
    margin-bottom: 0;
}

.faqacc-a ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.faqacc-a li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.faqacc-a li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

@media (max-width: 860px) {
    .faqacc-grid {
        grid-template-columns: 1fr;
    }

    .faqacc-head {
        text-align: center;
    }
}
/* FAQ - IndCat style ::END */

/* Ronak_20261127: Launch announcement ticker */
.announce-ticker {
    overflow: hidden;
    background: var(--pine-700);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.announce-ticker__track {
    display: flex;
    width: max-content;
    animation: announce-scroll 28s linear infinite;
}

.announce-ticker__track span {
    padding: 8px 24px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
}

.announce-ticker:hover .announce-ticker__track {
    animation-play-state: paused;
}

@keyframes announce-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .announce-ticker__track {
        animation: none;
    }
}
/* Launch announcement ticker ::END */

/* footer */

/* Ronak_20261123: GIGW */
/* .prose */
/* .top-header {
    width: 100%;
    min-height: 35px;
    background-color: var(--pine);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 150px;
    box-sizing: border-box;
}
.top-header-links a {
    color: #ffffff;
    font-size: 15px;
    text-decoration: none;
    font-weight: 400;
} */

/* Anchor targets clear the sticky header */
#main,
#mainnav {
    scroll-margin-top: calc(var(--header-h) + 10px);
}

/* Screen Reader Access modal */
.sr-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.sr-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.sr-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--pine-700);
    color: #fff;
    padding: 14px 20px;
}

.sr-modal__head h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.sr-modal__close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.sr-modal__body {
    padding: 18px 20px;
    overflow: auto;
}

.sr-modal__body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.sr-modal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 14px;
}

.sr-modal__table th,
.sr-modal__table td {
    border: 1px solid var(--line-2);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.sr-modal__table th {
    background: var(--ivory);
}

.sr-modal__foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 18px;
}

.sr-modal__btn {
    border: 0;
    border-radius: 8px;
    background: var(--muted);
    color: #fff;
    padding: 8px 18px;
    cursor: pointer;
}

.sr-modal__btn:hover {
    background: var(--ink-2);
}

.top-header {
    width: 100%;
    min-height: 35px;
    background-color: var(--pine);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 5px 0;
    box-sizing: border-box;
    font-size: 0.78rem;
}

.top-header-inner {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.gigw-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Thin vertical dividers between the GIGW items */
.gigw-left > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    padding-left: 10px;
}

.gigw-left a,
.gigw-label {
    color: #fff;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}

.gigw-left a:hover,
.gigw-link:hover {
    text-decoration: underline;
}

.gigw-link {
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0 0 0 10px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
}

.gigw-textsize {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gigw-size-btn {
    min-width: 22px;
    height: 20px;
    padding: 0 3px;
    border: 0;
    border-radius: 3px;
    background: var(--terra);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.gigw-size-btn:hover {
    background: var(--amber);
    color: var(--pine-900);
}

.top-header-links {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.top-header-links a {
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 400;
}

/* Ronak_20261125: Right side links divider */
/* .top-header-links a + a::before {
    content: "|";
    margin: 0 8px;
    opacity: 0.6;
} */

.top-header-links a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    padding-left: 10px;
    margin-left: 10px;
}

.top-header-links a:hover {
    text-decoration: underline;
}

/* Partner logos at the right end of the main header row */
.header__logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.header__logos img {
    display: block;
    height: 46px;
    width: auto;
}

.header__logos .logo-indcat {
    height: 44px;
}

@media (max-width: 960px) {
    .header__logos {
        display: none;
    }
}

@media (max-width: 720px) {
    .top-header-inner {
        padding-inline: 17px;
    }
}
