/* ==========================================================================
   Library & Hostel Management — "Campus Ledger" ACADEMIC EDITORIAL design.
   Deliberately different from every other page: warm paper, ruled lines,
   catalog-card hero, bookshelf & room-grid visuals, table-of-contents index.
   Burgundy + brass + scholarly teal on cream. Scoped under .lh-scope.
   ========================================================================== */
.lh-scope {
    --lh-ink: #2a2320;
    --lh: #9b2d43;            /* library burgundy */
    --lh-2: #b83a54;
    --lh-3: #78202f;          /* deep wine */
    --lh-brass: #b8863b;      /* brass accent */
    --lh-brass-2: #d4a94f;
    --lh-teal: #1f6f6b;       /* hostel scholarly teal */
    --lh-teal-2: #2a8a84;
    --lh-cream: #f6efe2;
    --lh-cream-2: #fbf6ec;
    --lh-paper: #fffdf8;
    --lh-line: #e4d9c4;
    --lh-muted: #6f6455;
    --lh-grad: linear-gradient(120deg, #b83a54 0%, #9b2d43 55%, #78202f 100%);
    --lh-grad-brass: linear-gradient(120deg, #d4a94f 0%, #b8863b 100%);
    --lh-grad-teal: linear-gradient(120deg, #2a8a84 0%, #1f6f6b 100%);
    --lh-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
    color: #4a4038;
}
.lh-scope section { overflow: hidden; }
.lh-header-bg { background: radial-gradient(1100px 320px at 85% 130%, #efe3cf 0%, rgba(239,227,207,0) 70%), #f7f0e3; }

/* ---- shared ---- */
.lh-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--lh-mono); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lh-3); }
.lh-eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--lh-brass); }
.lh-eyebrow.teal { color: var(--lh-teal); } .lh-eyebrow.teal::before { background: var(--lh-teal); }
.lh-eyebrow.on-dark { color: var(--lh-brass-2); } .lh-eyebrow.on-dark::before { background: var(--lh-brass-2); }
.lh-h { font-weight: 800; letter-spacing: -.015em; color: var(--lh-ink); line-height: 1.1; }
.lh-lead { color: var(--lh-muted); font-size: 1.08rem; line-height: 1.75; }
.lh-brass-txt { color: var(--lh-brass); }
.lh-head { max-width: 720px; margin: 0 auto 3.2rem; }
.lh-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lh-head h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); margin: 1rem 0 .9rem; }
.lh-head p { margin: 0; }

.lh-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; padding: .9rem 1.6rem; border-radius: .55rem; border: 0; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; text-decoration: none; }
.lh-btn i { transition: transform .25s ease; } .lh-btn:hover i { transform: translate(2px,-2px); }
.lh-btn-primary { background: var(--lh-grad); color: #fff; box-shadow: 0 .7rem 1.6rem rgba(120,32,47,.3); }
.lh-btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 1.1rem 2.2rem rgba(120,32,47,.42); }
.lh-btn-ghost { background: transparent; color: var(--lh-3); border: 1.5px solid var(--lh-3); }
.lh-btn-ghost:hover { color: #fff; background: var(--lh-3); transform: translateY(-3px); }
.lh-btn-brass { background: var(--lh-grad-brass); color: #3a2c0c; box-shadow: 0 .7rem 1.6rem rgba(184,134,59,.3); }
.lh-btn-brass:hover { color: #3a2c0c; transform: translateY(-3px); }

/* ==========================================================================
   HERO — editorial copy + catalog-card / key-card collage
   ========================================================================== */
.lh-hero { position: relative; background: radial-gradient(900px 500px at 88% -10%, #efe0c8 0%, rgba(239,224,200,0) 60%), #f7f0e3; }
.lh-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(120,32,47,.05) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg,#000,transparent 82%); mask-image: linear-gradient(180deg,#000,transparent 82%); }
.lh-hero .container { position: relative; z-index: 2; }
.lh-hero h1 { font-size: clamp(2.3rem, 4.7vw, 3.7rem); }
.lh-underline { position: relative; white-space: nowrap; }
.lh-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .28em; background: var(--lh-grad-brass); opacity: .55; z-index: -1; border-radius: 2px; }
.lh-hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.lh-hero-trust .t { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--lh-ink); font-size: .94rem; }
.lh-hero-trust .t i { color: var(--lh); font-size: 1.15rem; }

.lh-collage { position: relative; padding: 1.5rem 0; min-height: 25rem; }
/* catalog (library index) card */
.lh-catalog { position: relative; z-index: 3; background: var(--lh-paper); border: 1px solid var(--lh-line); border-radius: .5rem; box-shadow: 0 2rem 4.5rem rgba(42,35,32,.22); padding: 1.3rem 1.4rem 1.1rem; transform: rotate(-2.5deg); max-width: 25rem; margin-left: auto; }
.lh-catalog::before { content: ""; position: absolute; left: 50%; top: .7rem; transform: translateX(-50%); width: .7rem; height: .7rem; border-radius: 50%; background: var(--lh-cream); box-shadow: inset 0 0 0 1px var(--lh-line); }
.lh-catalog__hd { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--lh-ink); padding-bottom: .5rem; margin-bottom: .7rem; }
.lh-catalog__hd .lbl { font-family: var(--lh-mono); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lh-3); }
.lh-catalog__hd .call { font-family: var(--lh-mono); font-size: .74rem; font-weight: 700; color: var(--lh-ink); background: var(--lh-cream); border: 1px solid var(--lh-line); border-radius: .3rem; padding: .1rem .4rem; }
.lh-catalog h4 { font-size: 1.2rem; font-weight: 800; color: var(--lh-ink); margin: 0 0 .1rem; line-height: 1.2; }
.lh-catalog .by { font-size: .78rem; color: var(--lh-muted); font-style: italic; margin-bottom: .7rem; }
.lh-subj { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.lh-subj span { font-family: var(--lh-mono); font-size: .64rem; font-weight: 700; color: var(--lh-3); background: #f7ecec; border: 1px solid #ecd7d7; border-radius: 2rem; padding: .2rem .55rem; }
.lh-due { border-top: 1px dashed var(--lh-line); border-bottom: 1px dashed var(--lh-line); padding: .55rem 0; margin-bottom: .8rem; }
.lh-due .dt { display: flex; justify-content: space-between; font-family: var(--lh-mono); font-size: .68rem; }
.lh-due .dt span { color: var(--lh-muted); } .lh-due .dt b { color: var(--lh-ink); }
.lh-due .dt.on b { color: var(--lh-teal); }
.lh-barcode { height: 2rem; background: repeating-linear-gradient(90deg, var(--lh-ink) 0 2px, transparent 2px 4px, var(--lh-ink) 4px 5px, transparent 5px 8px); opacity: .8; border-radius: 2px; margin-bottom: .35rem; }
.lh-barcode + small { font-family: var(--lh-mono); font-size: .6rem; letter-spacing: .3em; color: var(--lh-muted); }
.lh-stamp { position: absolute; top: 3.2rem; right: -.6rem; z-index: 4; font-family: var(--lh-mono); font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--lh); border: 2.5px solid var(--lh); border-radius: .4rem; padding: .2rem .5rem; transform: rotate(11deg); opacity: .82; background: rgba(255,255,255,.4); }
/* hostel key card behind */
.lh-keycard { position: absolute; left: 0; bottom: 1rem; z-index: 2; width: 15rem; background: var(--lh-grad-teal); color: #fff; border-radius: .6rem; box-shadow: 0 1.6rem 3.4rem rgba(31,111,107,.34); padding: 1.1rem 1.2rem; transform: rotate(5deg); }
.lh-keycard .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.lh-keycard .top .lbl { font-family: var(--lh-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.lh-keycard .top i { font-size: 1.3rem; opacity: .9; }
.lh-keycard .room { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.lh-keycard .room small { font-size: .8rem; font-weight: 600; opacity: .85; }
.lh-keycard .meta { display: flex; gap: 1.2rem; margin-top: .7rem; font-size: .72rem; }
.lh-keycard .meta span { opacity: .8; } .lh-keycard .meta b { display: block; font-size: .82rem; }
@media (max-width: 991px) { .lh-catalog { transform: rotate(-1.5deg); margin: 0 auto; } .lh-keycard { position: static; transform: rotate(0); width: 100%; margin-top: 1.4rem; } .lh-stamp { right: 1rem; } }

/* ==========================================================================
   LEDGER STRIP (facts, ruled ledger)
   ========================================================================== */
.lh-ledger { background: var(--lh-cream-2); border-top: 1px solid var(--lh-line); border-bottom: 1px solid var(--lh-line); }
.lh-ledger .l { text-align: center; padding: 1.4rem .5rem; position: relative; }
.lh-ledger .col + .col .l::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--lh-line); }
.lh-ledger b { display: block; font-family: var(--lh-mono); font-size: clamp(1.6rem,3vw,2.1rem); font-weight: 700; color: var(--lh); line-height: 1; }
.lh-ledger span { display: block; margin-top: .4rem; font-size: .8rem; color: var(--lh-muted); letter-spacing: .02em; }
@media (max-width: 767px) { .lh-ledger .col:nth-child(odd) .l::before { display: none; } }

/* ==========================================================================
   TWO SYSTEMS — editorial blocks
   ========================================================================== */
.lh-sys { padding-top: 1rem; }
.lh-sys__no { font-family: var(--lh-mono); font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--lh); opacity: .18; }
.lh-sys--teal .lh-sys__no { color: var(--lh-teal); }
.lh-sys h3 { font-size: clamp(1.7rem,3vw,2.3rem); font-weight: 800; color: var(--lh-ink); margin: .3rem 0 .7rem; }
.lh-sys > p { color: var(--lh-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.3rem; }
.lh-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.4rem; }
.lh-checks li { position: relative; padding-left: 1.6rem; font-size: .9rem; color: #4a4038; line-height: 1.45; }
.lh-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-size: .68rem; font-weight: 800; color: #fff; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--lh); display: flex; align-items: center; justify-content: center; }
.lh-sys--teal .lh-checks li::before { background: var(--lh-teal); }
@media (max-width: 575px) { .lh-checks { grid-template-columns: 1fr; } }

/* bookshelf visual */
.lh-shelf { background: var(--lh-cream-2); border: 1px solid var(--lh-line); border-radius: .8rem; padding: 1.6rem 1.4rem 0; box-shadow: 0 1.4rem 3.4rem rgba(42,35,32,.1); }
.lh-shelf__row { display: flex; align-items: flex-end; justify-content: center; gap: .35rem; height: 11rem; border-bottom: .7rem solid var(--lh-brass); border-radius: 0 0 .3rem .3rem; padding: 0 .3rem; }
.lh-spine { width: 1.5rem; border-radius: .2rem .2rem 0 0; color: #fff; writing-mode: vertical-rl; text-orientation: mixed; font-size: .58rem; font-weight: 700; letter-spacing: .05em; padding: .5rem .1rem; display: flex; align-items: flex-start; justify-content: center; box-shadow: inset -2px 0 3px rgba(0,0,0,.18); }
.lh-shelf__cap { display: flex; justify-content: space-between; padding: .7rem .2rem .9rem; font-family: var(--lh-mono); font-size: .68rem; color: var(--lh-muted); }
.lh-shelf__cap b { color: var(--lh-ink); }
/* room grid visual */
.lh-rooms { background: var(--lh-cream-2); border: 1px solid var(--lh-line); border-radius: .8rem; padding: 1.4rem; box-shadow: 0 1.4rem 3.4rem rgba(42,35,32,.1); }
.lh-rooms__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.lh-rooms__hd b { font-weight: 800; color: var(--lh-ink); font-size: .95rem; }
.lh-occ { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; color: var(--lh-teal); background: #e3f2f0; padding: .3rem .6rem; border-radius: 2rem; }
.lh-roomgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; }
.lh-room { aspect-ratio: 1; border-radius: .4rem; display: flex; align-items: center; justify-content: center; font-family: var(--lh-mono); font-size: .62rem; font-weight: 700; }
.lh-room.occ { background: var(--lh-teal); color: #fff; }
.lh-room.res { background: #f6e2c4; color: #8a5a12; }
.lh-room.vac { background: #fff; color: var(--lh-muted); border: 1px dashed var(--lh-line); }
.lh-legend { display: flex; gap: 1rem; margin-top: 1rem; font-size: .7rem; color: var(--lh-muted); }
.lh-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lh-legend i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.lh-legend i.occ { background: var(--lh-teal); } .lh-legend i.res { background: #f0c98a; } .lh-legend i.vac { background: #fff; border: 1px dashed var(--lh-line); }

/* ==========================================================================
   MODULES — table of contents (ruled index with leader dots)
   ========================================================================== */
.lh-modules { background: var(--lh-cream); }
.lh-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; }
.lh-toc__item { display: flex; align-items: baseline; gap: .8rem; padding: 1.05rem 0; border-bottom: 1px solid var(--lh-line); }
.lh-toc__no { font-family: var(--lh-mono); font-size: .8rem; font-weight: 700; color: var(--lh-brass); flex: none; width: 1.8rem; }
.lh-toc__b { flex: 1; }
.lh-toc__b h4 { font-size: 1.02rem; font-weight: 800; color: var(--lh-ink); margin: 0 0 .12rem; display: inline-flex; align-items: center; gap: .5rem; }
.lh-toc__b h4 i { color: var(--lh); font-size: 1.05rem; }
.lh-toc--teal .lh-toc__b h4 i { color: var(--lh-teal); }
.lh-toc__b p { font-size: .84rem; color: var(--lh-muted); margin: 0; line-height: 1.5; }
.lh-toc__item:hover { background: rgba(184,134,59,.05); }
@media (max-width: 767px) { .lh-toc { grid-template-columns: 1fr; gap: 0; } }

/* ==========================================================================
   MARKET REQUIREMENTS — checklist cards
   ========================================================================== */
.lh-req { background: var(--lh-paper); border: 1px solid var(--lh-line); border-radius: .7rem; padding: 1.4rem; height: 100%; display: flex; gap: .9rem; align-items: flex-start; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.lh-req:hover { transform: translateY(-.4rem); box-shadow: 0 1.3rem 2.8rem rgba(42,35,32,.1); border-color: var(--lh-brass); }
.lh-req .ic { flex: none; width: 2.9rem; height: 2.9rem; border-radius: .6rem; background: #f7ecec; color: var(--lh); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.lh-req:nth-child(3n+2) .ic { background: #e3f2f0; color: var(--lh-teal); }
.lh-req:nth-child(3n) .ic { background: #f8efd9; color: var(--lh-brass); }
.lh-req h3 { font-size: 1rem; font-weight: 800; color: var(--lh-ink); margin: .1rem 0 .25rem; }
.lh-req p { font-size: .84rem; color: var(--lh-muted); margin: 0; line-height: 1.5; }

/* ==========================================================================
   AUDIENCES — chips
   ========================================================================== */
.lh-aud { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.lh-audchip { display: inline-flex; align-items: center; gap: .55rem; background: var(--lh-paper); border: 1px solid var(--lh-line); border-radius: 2rem; padding: .7rem 1.3rem; font-weight: 700; color: var(--lh-ink); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.lh-audchip i { color: var(--lh-brass); font-size: 1.15rem; }
.lh-audchip:hover { transform: translateY(-.25rem); border-color: var(--lh); box-shadow: 0 .8rem 1.8rem rgba(42,35,32,.1); }

/* ==========================================================================
   WHY / VALUE
   ========================================================================== */
.lh-why { background: var(--lh-cream); }
.lh-val { display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--lh-line); }
.lh-val:last-child { border-bottom: 0; }
.lh-val .ic { flex: none; width: 3rem; height: 3rem; border-radius: .6rem; background: var(--lh-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 .5rem 1.1rem rgba(120,32,47,.28); }
.lh-val h3 { font-size: 1.08rem; font-weight: 800; color: var(--lh-ink); margin-bottom: .25rem; }
.lh-val p { font-size: .9rem; color: var(--lh-muted); margin: 0; line-height: 1.55; }
.lh-quotebox { background: var(--lh-ink); color: #ece3d6; border-radius: .8rem; padding: 2rem; position: relative; overflow: hidden; }
.lh-quotebox::before { content: "\201C"; position: absolute; top: -1rem; left: 1rem; font-size: 7rem; color: var(--lh-brass); opacity: .35; font-family: Georgia, serif; }
.lh-quotebox p { position: relative; z-index: 2; font-size: 1.1rem; line-height: 1.6; font-style: italic; margin-bottom: 1.2rem; }
.lh-quotebox .by { position: relative; z-index: 2; display: flex; align-items: center; gap: .7rem; }
.lh-quotebox .by .av { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--lh-grad-brass); color: #3a2c0c; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lh-quotebox .by b { color: #fff; display: block; font-size: .95rem; } .lh-quotebox .by span { font-size: .8rem; color: #c9bda9; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.lh-quote { background: var(--lh-paper); border: 1px solid var(--lh-line); border-radius: .7rem; padding: 1.8rem; height: 100%; display: flex; flex-direction: column; }
.lh-quote .stars { color: var(--lh-brass); letter-spacing: .1em; margin-bottom: .9rem; }
.lh-quote p.tx { font-size: .98rem; color: #4a4038; line-height: 1.65; flex: 1; }
.lh-quote .who { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--lh-line); }
.lh-quote .who .av { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--lh-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.lh-quote .who h6 { margin: 0; font-weight: 800; color: var(--lh-ink); font-size: .92rem; } .lh-quote .who span { font-size: .78rem; color: var(--lh-muted); }

/* ==========================================================================
   FAQ (academic ruled accordion)
   ========================================================================== */
.lh-faq .accordion-item { position: relative; background: var(--lh-paper); border: 1px solid var(--lh-line) !important; border-radius: .6rem !important; margin-bottom: .7rem; overflow: hidden; }
.lh-faq .card-header { background: transparent; }
.lh-faq .accordion-item .card-header button { font-weight: 800; color: var(--lh-ink); font-size: 1rem; padding: 1.15rem 3rem 1.15rem 1.3rem; background: var(--lh-paper); display: flex; align-items: center; width: 100%; text-align: left; }
.lh-faq .accordion-item .card-header button::before { display: none !important; }
.lh-faq .accordion-item .card-header button::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-family: var(--lh-mono); font-size: 1.3rem; font-weight: 400; color: var(--lh); transition: transform .25s ease; }
.lh-faq .accordion-item .card-header button:not(.collapsed) { color: var(--lh-3); background: var(--lh-cream-2); }
.lh-faq .accordion-item .card-header button:not(.collapsed)::after { content: "\2013"; }
.lh-faq .card-body { padding: 0 1.3rem 1.3rem; color: var(--lh-muted); }
.lh-faq .card-body p { margin: 0; line-height: 1.65; }

/* ==========================================================================
   CTA + LEAD FORM (burgundy band)
   ========================================================================== */
.lh-cta { position: relative; background: var(--lh-3); color: #f3e9db; }
.lh-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 15% 0%, rgba(184,58,84,.5), transparent 60%), radial-gradient(700px 400px at 92% 100%, rgba(184,134,59,.34), transparent 60%); }
.lh-cta .container { position: relative; z-index: 2; }
.lh-cta h2 { color: #fff; font-size: clamp(1.9rem,3.2vw,2.6rem); }
.lh-cta .lead { color: #e6d3c0; }
.lh-cta .trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.lh-cta .trust li { display: flex; align-items: center; gap: .7rem; color: #f3e6d6; font-weight: 600; }
.lh-cta .trust li i { color: var(--lh-brass-2); font-size: 1.2rem; }
.lh-callbox { margin-top: 1.7rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: .6rem; padding: 1.1rem 1.3rem; }
.lh-callbox b { color: #fff; } .lh-callbox a { color: var(--lh-brass-2); font-weight: 700; text-decoration: none; }
.lh-formcard { background: var(--lh-paper); border-radius: .8rem; padding: 2rem; box-shadow: 0 1.4rem 3.4rem rgba(0,0,0,.3); }
.lh-formcard h3 { color: var(--lh-ink); }
.lh-formcard .form-control { border-radius: .5rem; }
.lh-ta { height: 120px; }
.lh-privacy { font-size: .78rem; color: var(--lh-muted); text-align: center; margin-top: .3rem; }
