/* =========================================================
   KRC public website – design tokens & components
   ========================================================= */
:root {
  /* brand colours – overridden by Admin > Website Theme (see App\Support\SiteTheme) */
  --navy: #0b2c5b;
  --gold: #b98a2b;
  --navy-d: color-mix(in srgb, var(--navy) 78%, #000);
  --navy-dd: color-mix(in srgb, var(--navy) 55%, #000);
  --gold-l: color-mix(in srgb, var(--gold) 68%, #fff);
  --gold-d: color-mix(in srgb, var(--gold) 86%, #000);
  --strong: var(--navy);                 /* filled buttons / active tabs */
  --head: var(--navy);                   /* headings & link text */
  /* surfaces (light mode) */
  --bg: #fff; --surface: #fff; --surface-2: #f4f7fb; --tint: #eef2f8; --team-tint: #fdf8ee;
  --ink: #1b2a41; --ink-2: var(--ink-2); --muted: #64748b; --line: #e4e9f1;
  --soft: var(--surface-2);
  --shadow: rgba(11,44,91,.08);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
/* dark mode (Admin > Website Theme > Default mode, or the visitor switch) */
[data-site-mode="dark"] {
  --strong: var(--gold);
  --head: color-mix(in srgb, var(--navy) 30%, #fff);
  --bg: #0b1322; --surface: #131d33; --surface-2: #182540; --tint: #1c2b4a; --team-tint: #171d2e;
  --ink: #e6edf8; --ink-2: #c4d0e6; --muted: #93a4c2; --line: #25355a;
  --shadow: rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--bg); transition: background-color .2s, color .2s; margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container-xl { max-width: 1240px; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-d); color: #dfe8f5; font-size: 11.5px; }
.topbar .container-xl { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.topbar i.fa-bullhorn { color: var(--gold-l); margin-right: 6px; }
.topbar a.tb-link { color: var(--gold-l); font-weight: 600; margin-left: 6px; }
.topbar .tb-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.tb-social { display: flex; gap: 6px; }
.tb-social a { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; color: #fff; background: #4b5b74; }
.tb-social a.fb { background: #1877f2; } .tb-social a.yt { background: #e02424; } .tb-social a.ig { background: #6b7280; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar .container-xl, .hdr-inner, .mainnav .container-xl { padding-left: 32px; padding-right: 32px; }
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand .logo { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: none; }
.brand h1 { font-size: 18px; font-weight: 700; color: var(--head); letter-spacing: -.1px; line-height: 1.2; }
.brand .sub { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.brand .addr { font-size: 10.5px; color: var(--muted); }
.hdr-quote { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; text-align: center; line-height: 1.35; max-width: 340px; }
.hdr-quote span { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--muted); text-align: right; }
.hdr-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.btn-icon { width: 38px; height: 38px; border-radius: 7px; background: var(--tint); display: grid; place-items: center; color: var(--head); }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--gold); color: #fff; border: 0; border-radius: 6px; font-weight: 600; font-size: 13px; padding: 10px 20px; cursor: pointer; transition: .15s; }
.btn-gold:hover { background: var(--gold-d); color: #fff; }
.btn-navy { display: inline-flex; align-items: center; gap: 8px; background: var(--strong); color: #fff; border: 0; border-radius: 6px; font-weight: 600; font-size: 12px; padding: 9px 16px; cursor: pointer; }
.btn-navy:hover { background: color-mix(in srgb, var(--strong) 82%, #000); color: #fff; }
.btn-outline-gold { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold); color: var(--gold); border-radius: 5px; font-weight: 600; font-size: 11.5px; padding: 5px 14px; background: var(--surface); }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ---------- main nav ---------- */
.mainnav { background: var(--navy); }
.mainnav .navbar { padding: 0; }
.mainnav .nav-link { color: #e9f0fb; font-size: 11.5px; font-weight: 500; padding: 12px 14px !important; display: flex; align-items: center; gap: 5px; }
.mainnav .nav-link:hover, .mainnav .nav-item.show > .nav-link { background: rgba(255,255,255,.08); color: #fff; }
.mainnav .nav-link.active { background: var(--gold); color: #fff; }
.mainnav .dropdown-toggle::after { border-width: .28em .28em 0; margin-left: 3px; }
.mainnav .dropdown-menu { border: 0; border-radius: 0 0 8px 8px; background: var(--surface); padding: 6px 0; min-width: 220px; box-shadow: 0 12px 30px rgba(8,35,73,.2); margin-top: 0; }
.mainnav .dropdown-item { font-size: 12.5px; padding: 8px 18px; color: var(--ink); }
.mainnav .dropdown-item:hover { background: var(--soft); color: var(--head); }
.mainnav .navbar-toggler { border: 1px solid rgba(255,255,255,.4); color: #fff; margin: 8px 0; padding: 4px 10px; }
@media (min-width: 992px) { .mainnav .dropdown:hover > .dropdown-menu { display: block; } }

/* ---------- hero ---------- */
.hero { height: 342px; position: relative; color: #fff; background-color: var(--navy-d); background-size: cover; background-position: center; min-height: 342px; display: flex; align-items: center; overflow: hidden; }
.hero.has-custom::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,56,.94) 0%, rgba(6,26,56,.82) 42%, rgba(6,26,56,.25) 78%, rgba(6,26,56,.05) 100%); }
.hero .container-xl { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; gap: 24px; }
.hero-main { max-width: 604px; width: 100%; margin-left: 34px; }
.hero-label { color: var(--gold-l); letter-spacing: 3.2px; font-size: 12.5px; font-weight: 500; margin-bottom: 4px; }
.hero h2 { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1.06; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero h2 span { display: block; color: var(--gold-l); }
.hero-sub { margin: 8px 0 14px; font-size: 15.5px; color: #e6edf8; }
.hero-search { background: var(--surface); border-radius: 9px; padding: 6px 12px 8px; color: var(--ink); box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.hs-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.hs-tab { background: none; border: 0; font-size: 11px; font-weight: 500; color: var(--ink-2); padding: 5px 16px; border-radius: 4px; cursor: pointer; }
.hs-tab.active { background: var(--strong); color: #fff; }
.hs-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px 4px 12px; }
.hs-box i { color: var(--head); }
.hs-box input { flex: 1; border: 0; outline: 0; font-size: 12.5px; padding: 8px 0; min-width: 0; background: transparent; }
.hs-links { display: flex; gap: 10px; justify-content: center; margin-top: 9px; flex-wrap: wrap; }
.hs-links a { background: var(--tint); color: var(--ink-2); font-size: 11px; padding: 6px 22px; border-radius: 20px; font-weight: 500; }
.hs-links a:hover { background: var(--strong); color: #fff; }
.hero-words { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: #f6e7c1; text-align: left; align-self: flex-start; margin: 22px 8px 0 0; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hero-words::after { content: ''; display: block; width: 32px; height: 2px; background: var(--gold-l); margin-top: 10px; }

/* ---------- quick tiles ---------- */
.tiles { padding: 0; }
.tiles .container-xl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 11px; padding-top: 8px; padding-bottom: 8px; }
.tile { --c: #2563eb; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 8px 14px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 14%, var(--surface)); background: color-mix(in srgb, var(--c) 9%, var(--surface)); transition: .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px var(--shadow); }
.tile > i { font-size: 30px; color: var(--c); margin-bottom: 2px; }
.tile b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tile small { font-size: 10px; color: var(--c); }
.tile small i { font-size: 8px; }

/* ---------- stats band ---------- */
.stats { background: var(--navy); color: #fff; border-bottom-left-radius: 46px; }
.stats .container-xl { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 19px; padding-bottom: 19px; }
.stat { display: flex; align-items: center; gap: 10px; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.14); flex: 1; min-width: 0; }
.stat .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 16px; flex: none; color: #cfe0fb; }
.stat b { display: block; font-size: 18px; font-weight: 700; line-height: 1.1; }
.stat small { font-size: 10.5px; color: #b9cae6; }
.stats-tag { font-family: var(--serif); font-style: italic; color: var(--gold-l); font-size: 15px; line-height: 1.3; display: flex; align-items: center; gap: 10px; flex: none; padding-left: 8px; }
.stats-tag i { font-size: 24px; }

/* ---------- section helpers ---------- */
.sec { padding: 26px 0 8px; }
.sec-label { color: var(--gold); font-size: 12px; font-weight: 500; }
.sec-title { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--head); line-height: 1.2; }
.sec-sub { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
.sec-h { font-size: 15px; font-weight: 700; color: var(--head); display: flex; align-items: center; gap: 8px; }
.sec-h::before { content: ''; width: 3px; height: 16px; background: var(--gold); border-radius: 2px; }
.sec-h-sub { font-size: 12px; color: var(--ink-2); margin: 2px 0 12px 11px; }
.link-all { font-size: 11px; color: var(--head); font-weight: 600; }

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--surface-2), var(--bg)); padding: 0; }
.about-grid { display: grid; grid-template-columns: 354px 1fr 263px; gap: 24px; align-items: center; padding-top: 0; padding-bottom: 0; }
.about-img { position: relative; aspect-ratio: 284 / 147; align-self: start; background-size: cover; background-position: center; margin-top: 0; }
.about-quote { position: absolute; right: 0; bottom: 0; width: 46%; top: 35%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, rgba(255,253,248,.93), rgba(250,245,234,.9)); padding: 8px 16px; font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); border-top-left-radius: 8px; }
.about-quote span { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--head); font-weight: 500; margin-top: 6px; }
.about-text { padding: 12px 0; align-self: center; }
.about-text small { font-weight: 700; color: var(--head); font-size: 13px; display: block; }
.about-text h2 { font-family: var(--serif); font-size: 21px; color: var(--head); font-weight: 600; margin: 2px 0 8px; }
.about-text p { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 12px; }
.about-feats { list-style: none; margin: 0; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px var(--shadow); }
.about-feats li { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 500; padding: 5px 0; color: var(--ink-2); }
.about-feats li i { color: var(--head); width: 18px; text-align: center; font-size: 14px; }

/* ---------- team ---------- */
.team { position: relative; background: linear-gradient(90deg, var(--bg) 0%, var(--team-tint) 100%); padding: 18px 0 14px; border-top: 1px solid var(--line); overflow: hidden; }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.team-ctrl { display: flex; align-items: center; gap: 10px; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--strong); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 12px; }
.round-btn.light { background: var(--surface); color: var(--head); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.team-wrap { display: flex; gap: 14px; align-items: stretch; padding-right: 142px; }
.team-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; padding: 2px; }
.team-track::-webkit-scrollbar { display: none; }
.member-card { flex: 0 0 calc((100% - 28px) / 3); min-width: 290px; scroll-snap-align: start; display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; box-shadow: 0 6px 16px var(--shadow); }
.member-card img { width: 124px; height: 102px; object-fit: cover; border-radius: 4px; background: var(--tint); flex: none; }
.member-card h4 { font-size: 14.5px; font-weight: 700; color: var(--head); }
.member-card p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.member-card hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0 8px; width: 90%; }
.team-quote { position: absolute; right: 0; bottom: 0; width: 176px; height: 190px; background-size: cover; background-position: bottom right; background-repeat: no-repeat; font-family: var(--serif); font-style: italic; color: #a7791d; font-size: 15px; line-height: 1.35; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 16px 0 26px; }
.team-quote i { font-size: 20px; }
.team-quote span { color: #8a6a1c; }

/* ---------- services ---------- */
.services { padding: 14px 0 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.svc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 15px 6px 11px; transition: .18s; }
.svc:hover { box-shadow: 0 8px 20px rgba(11,44,91,.1); transform: translateY(-2px); }
.svc > i { font-size: 21px; color: var(--c, #2563eb); margin-bottom: 3px; }
.svc b { font-size: 11px; font-weight: 700; color: var(--ink); }
.svc small { font-size: 9px; color: var(--muted); line-height: 1.25; }

/* ---------- collection / notices / hours ---------- */
.trio { display: grid; grid-template-columns: 1.55fr 1.35fr 1fr; gap: 26px; padding-top: 8px; padding-bottom: 8px; }
.col-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; padding: 2px 2px 8px; }
.col-track::-webkit-scrollbar { display: none; }
.col-card { flex: 0 0 calc((100% - 40px) / 5); min-width: 92px; scroll-snap-align: start; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 6px 8px; box-shadow: 0 4px 12px var(--shadow); }
.col-card img { width: 100%; aspect-ratio: 75 / 91; object-fit: cover; border-radius: 4px; background: var(--tint); }
.col-card b { display: block; font-size: 10.5px; font-weight: 600; margin-top: 7px; color: var(--ink); }
.col-wrap { position: relative; }
.col-wrap .round-btn { position: absolute; top: 44%; transform: translateY(-50%); width: 28px; height: 28px; z-index: 2; }
.col-wrap .prev { left: -12px; } .col-wrap .next { right: -12px; }
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.nd { width: 36px; flex: none; text-align: center; background: var(--tint); border-radius: 4px; padding: 3px 0; line-height: 1.05; }
.nd b { display: block; font-size: 14px; color: var(--head); font-weight: 700; }
.nd small { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.notice-list a.nt { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; font-weight: 500; }
.notice-list a.nt:hover { color: var(--gold); }
.badge-new { background: #ffe9b8; color: #9a6a00; font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-left: auto; flex: none; }
.hours-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 16px var(--shadow); background: var(--surface); }
.hours-card h3 { font-size: 14px; color: var(--head); font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.hours-box { background: var(--tint); border-radius: 4px; text-align: center; padding: 5px 8px; margin-bottom: 6px; font-size: 12px; line-height: 1.45; }
.hours-box b { color: var(--head); font-size: 14px; display: block; }
.hours-box.holiday { background: var(--surface-2); font-size: 11.5px; }
.hours-box.holiday b { font-size: 12.5px; }
.hours-img { position: relative; height: 62px; border-radius: 4px 4px 0 0; background-size: cover; background-position: center; }
.hours-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, transparent, var(--surface) 92%); }
.hours-quote { position: relative; margin-top: -14px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.hours-quote span { display: block; font-family: var(--sans); font-style: normal; font-size: 10px; color: var(--muted); }

/* ---------- digital resources ---------- */
.digital { padding: 14px 0 26px; }
.dr-row { display: flex; gap: 10px; align-items: stretch; }
.dr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; flex: 1; }
.dr-card { height: 58px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px 12px; overflow: hidden; transition: .18s; box-shadow: 0 3px 10px var(--shadow); }
.dr-card:hover { box-shadow: 0 6px 16px var(--shadow); transform: translateY(-2px); }
.dr-card img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; }
.dr-card span { font-weight: 800; font-size: 14px; letter-spacing: -.2px; text-align: center; line-height: 1.1; }
.dr-more { align-self: center; flex: none; margin-left: 6px; padding: 12px 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-d); color: #d5e0f2; }
.foot-grid { display: grid; grid-template-columns: 1.9fr 1fr .85fr 1.3fr 1.35fr; gap: 24px; padding-top: 18px; padding-bottom: 14px; }
.foot-brand { display: flex; gap: 12px; }
.foot-brand img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.foot-brand b { display: block; color: #fff; font-size: 13px; }
.foot-brand p { margin: 4px 0; font-size: 10.5px; color: #b6c6df; line-height: 1.5; }
.foot-brand em { font-family: var(--serif); color: var(--gold-l); font-size: 13px; }
.site-footer h5 { color: #fff; font-size: 13.5px; font-weight: 700; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { font-size: 11.5px; padding: 2px 0; color: #c4d2e8; }
.site-footer li a:hover { color: var(--gold-l); }
.site-footer li i.fa-chevron-right { font-size: 7px; margin-right: 8px; color: #7f95b6; }
.foot-contact li { display: flex; gap: 10px; line-height: 1.45; padding: 3px 0; }
.foot-contact i { color: var(--gold-l); width: 14px; margin-top: 3px; }
.foot-words { font-family: var(--serif); font-style: italic; color: var(--gold-l); font-size: 16px; line-height: 1.25; display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.foot-words i { font-size: 54px; color: rgba(255,255,255,.12); }
.foot-words .fw-art { width: 92px; height: 78px; object-fit: contain; opacity: .75; flex: none; }
.foot-bottom { background: var(--navy-dd); font-size: 10.5px; color: #9fb2d0; }
.foot-bottom .container-xl { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .sep { margin: 0 8px; opacity: .5; }

/* ---------- inner pages / OPAC ---------- */
.page-banner { background: linear-gradient(90deg, var(--navy-dd), var(--navy)); color: #fff; padding: 30px 0; background-size: cover; background-position: center; position: relative; }
.page-banner.has-img::before { content: ''; position: absolute; inset: 0; background: rgba(6,26,56,.72); }
.page-banner .container-xl { position: relative; }
.page-banner h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.crumbs { font-size: 12px; color: #c5d3ea; margin-top: 6px; }
.crumbs a:hover { color: var(--gold-l); }
.page-body { padding: 30px 0 46px; min-height: 40vh; }
.prose { max-width: 860px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { color: var(--head); font-family: var(--serif); margin: 20px 0 8px; }
.prose img { border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.filter-box { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 18px; }
.filter-box .form-control, .filter-box .form-select { font-size: 13px; }
.book-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; height: 100%; transition: .18s; }
.book-card:hover { box-shadow: 0 8px 22px rgba(11,44,91,.1); }
.book-card .cover { width: 74px; height: 100px; flex: none; border-radius: 4px; object-fit: cover; background: linear-gradient(135deg, var(--navy), #2d5b9e); color: #fff; display: grid; place-items: center; font-size: 26px; }
.book-card h3 { font-size: 14px; font-weight: 700; color: var(--head); line-height: 1.3; }
.book-card p { font-size: 12px; color: var(--ink-2); margin: 3px 0; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: var(--tint); color: var(--head); }
.pill.ok { background: #dcfce7; color: #166534; } .pill.no { background: #fee2e2; color: #991b1b; } .pill.dig { background: #ede9fe; color: #5b21b6; }
.detail-table th { width: 170px; color: var(--muted); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 991px) { .hero { height: auto; min-height: 342px; } }
@media (max-width: 1199px) {
  .team-quote { display: none; }
  .team-wrap { padding-right: 0; }
  .hdr-quote { display: none; }
  .tiles .container-xl { grid-template-columns: repeat(4, 1fr); }
  .stats .container-xl { flex-wrap: wrap; }
  .stat { flex: 0 0 30%; border-right: 0; }
  .about-grid { grid-template-columns: 300px 1fr; }
  .about-feats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 0; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > :first-child { grid-column: 1 / -1; }
  .dr-grid { grid-template-columns: repeat(4, 1fr); }
  .dr-row { flex-direction: column; } .dr-more { margin: 0; align-self: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-words { display: none; }
}
@media (max-width: 767px) {
  .topbar .tb-right span { display: none; }
  .hdr-inner { flex-wrap: wrap; }
  .brand h1 { font-size: 15px; }
  .hero h2 { font-size: 30px; }
  .hero-words { display: none; }
  .tiles .container-xl { grid-template-columns: repeat(2, 1fr); }
  .stat { flex: 0 0 46%; }
  .stats-tag { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { width: 100%; }
  .about-feats { grid-template-columns: 1fr; }
  .member-card { flex-basis: 88%; }
  .team-quote { display: none; }
  .team-wrap { padding-right: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .col-card { flex-basis: 34%; }
  .dr-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom .container-xl { justify-content: center; text-align: center; }
}

/* ---------- overflow safety (grid children must be allowed to shrink) ---------- */
.trio > *, .about-grid > *, .foot-grid > *, .svc-grid > *, .dr-grid > *, .tiles .container-xl > * { min-width: 0; }
.col-wrap, .col-track { min-width: 0; max-width: 100%; }
@media (max-width: 767px) { .col-wrap .prev { left: 2px; } .col-wrap .next { right: 2px; } }

@media (min-width: 1200px) { .about-feats li { white-space: nowrap; } }

@media (max-width: 991px) {
  .hero-main { margin-left: 0; }
  .topbar .container-xl, .hdr-inner, .mainnav .container-xl { padding-left: 12px; padding-right: 12px; }
}

/* ===================== Visitor appearance switcher (topbar) ===================== */
.tb-theme { position: relative; }
.tb-theme-btn { width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; font-size: 12px; cursor: pointer; padding: 0; transition: .15s; }
.tb-theme-btn:hover, .tb-theme-btn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); }
.site-appear { min-width: 260px; padding: 14px 16px 12px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px var(--shadow); color: var(--ink); white-space: normal; }
.site-appear h6 { font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.site-appear .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.site-appear .seg button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 7px 4px; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.site-appear .seg button.on { background: var(--surface); color: var(--head); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.site-appear .swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.site-appear .sw { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 5px 5px; cursor: pointer; text-align: center; color: var(--ink); font-size: 10.5px; font-weight: 600; line-height: 1.2; transition: .15s; }
.site-appear .sw:hover { border-color: var(--gold); }
.site-appear .sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent); }
.site-appear .sw i { display: block; height: 20px; border-radius: 6px; margin-bottom: 5px; }
.site-appear .reset { width: 100%; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; padding: 4px 0 0; cursor: pointer; }
.site-appear .reset:hover { color: var(--head); }
@media (max-width: 575px) { .site-appear { min-width: 240px; } .topbar .tb-social { display: none; } }

/* ===================== Dark-mode refinements ===================== */
[data-site-mode="dark"] body { background: var(--bg); color: var(--ink); }
[data-site-mode="dark"] .team-quote { box-shadow: inset 0 0 0 100vmax rgba(8,14,30,.55); }
[data-site-mode="dark"] .hero { box-shadow: inset 0 0 0 100vmax rgba(6,12,28,.18); }
[data-site-mode="dark"] .about-img { box-shadow: inset 0 0 0 100vmax rgba(6,12,28,.12); }
[data-site-mode="dark"] .col-card img, [data-site-mode="dark"] .member-card img, [data-site-mode="dark"] .hours-img { filter: brightness(.88) contrast(1.02); }
[data-site-mode="dark"] .dr-card { background: #fff; }
[data-site-mode="dark"] .form-control, [data-site-mode="dark"] .form-select { background-color: var(--surface-2); border-color: var(--line); color: var(--ink); }
[data-site-mode="dark"] .dropdown-menu { background: var(--surface); border-color: var(--line); }
[data-site-mode="dark"] .dropdown-item { color: var(--ink); }
[data-site-mode="dark"] .dropdown-item:hover { background: var(--surface-2); color: var(--head); }
[data-site-mode="dark"] .pill.ok { background: #14351f; color: #86efac; }
[data-site-mode="dark"] .pill.no { background: #3b1518; color: #fca5a5; }
[data-site-mode="dark"] .pill.dig { background: #2a1f4d; color: #c4b5fd; }
[data-site-mode="dark"] .badge-new { background: #4a3a0f; color: #fcd57a; }
[data-site-mode="dark"] .page-banner.has-img::before { background: rgba(4,10,24,.78); }
[data-site-mode="dark"] .about-quote { background: linear-gradient(135deg, rgba(19,29,51,.94), rgba(14,22,40,.92)); }
[data-site-mode="dark"] .team-quote, [data-site-mode="dark"] .team-quote span { color: #f0cd7a; }
[data-site-mode="dark"] .team-quote { box-shadow: inset 0 0 0 100vmax rgba(8,14,30,.45); text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ===================== Language selector + Hindi / Marathi typography ===================== */
.tb-lang { position: relative; }
.tb-lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; background: transparent; color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 10px; height: 24px; cursor: pointer; transition: .15s; line-height: 1; }
.tb-lang-btn:hover, .tb-lang-btn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); }
.tb-lang-btn .caret { font-size: 8px; opacity: .8; }
.site-lang { min-width: 150px; padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px var(--shadow); }
.site-lang .dropdown-item { border-radius: 6px; font-size: 13px; padding: 7px 10px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-lang .dropdown-item:hover { background: var(--surface-2); color: var(--head); }
.site-lang .dropdown-item.active { background: var(--tint); color: var(--head); font-weight: 600; }
@media (max-width: 575px) { .tb-lang-btn span { display: none; } .tb-lang-btn { padding: 2px 8px; } }

html[lang="hi"], html[lang="mr"] { --sans: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif; --serif: 'Noto Serif Devanagari', 'Playfair Display', Georgia, serif; }
html[lang="hi"] body, html[lang="mr"] body { font-family: var(--sans); line-height: 1.55; }
html[lang="hi"] .hero h2, html[lang="mr"] .hero h2 { line-height: 1.25; }
html[lang="hi"] .hero-label, html[lang="mr"] .hero-label, html[lang="hi"] .tile small, html[lang="mr"] .tile small { letter-spacing: 0; }
html[lang="hi"] .mainnav .nav-link, html[lang="mr"] .mainnav .nav-link { white-space: nowrap; }
html[lang="hi"] :is(.hdr-quote, .hero-words, .stats-tag, .about-quote, .team-quote, .hours-quote, .foot-brand em, .foot-words, .sec-label),
html[lang="mr"] :is(.hdr-quote, .hero-words, .stats-tag, .about-quote, .team-quote, .hours-quote, .foot-brand em, .foot-words, .sec-label) { font-style: normal; }
@media (min-width: 992px) { .team-wrap { min-height: 190px; } }
html[lang="hi"] .hero h2, html[lang="mr"] .hero h2 { font-size: 42px; }
html[lang="hi"] .hero-label, html[lang="mr"] .hero-label { margin-bottom: 8px; font-size: 12px; }

/* ===================== Inner pages: banner + rich content components ===================== */
.page-banner { padding: 44px 0 40px; background-image: linear-gradient(100deg, color-mix(in srgb, var(--navy-dd) 94%, transparent), color-mix(in srgb, var(--navy) 78%, transparent)), url('../img/hero-bg.jpg'); background-size: cover; background-position: center 35%; overflow: hidden; }
.page-banner.has-img { background-image: none; }
.page-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 38px solid rgba(255,255,255,.05); pointer-events: none; }
.page-banner h1 { font-size: 36px; }
.page-banner h1::after { content: ''; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--gold-l); margin-top: 12px; }
.page-banner .pb-sub { max-width: 640px; margin: 12px 0 0; font-size: 14.5px; color: #d5e0f3; line-height: 1.6; }
.page-body.pg-wide { padding-top: 34px; }
.prose.prose-rich { max-width: none; }

.pg > section { margin-bottom: 46px; }
.pg-lead { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink); border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; max-width: 900px; margin: 0 0 40px; }
.pg-title { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--head); margin: 0 0 6px; }
.pg-sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.pg-title + .pg-sub { margin-top: 0; }
.pg-title.center, .pg-sub.center { text-align: center; }
.pg-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-d); margin-bottom: 6px; }

.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.pg-split.rev > :first-child { order: 2; }
.pg-split p { margin: 0 0 12px; }
.pg-photo { position: relative; min-height: 320px; border-radius: 18px; background-size: cover; background-position: center; box-shadow: 0 18px 40px var(--shadow); }
.pg-photo::before { content: ''; position: absolute; inset: 12px; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; pointer-events: none; }
.pg-photo .chip { position: absolute; left: 18px; bottom: 18px; background: var(--surface); color: var(--head); font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 30px; box-shadow: 0 8px 20px rgba(0,0,0,.2); display: flex; gap: 8px; align-items: center; }
.pg-photo .chip i { color: var(--gold); }

.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pg-grid.c3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pg-card { --c: var(--gold); position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; padding: 22px 20px 20px; box-shadow: 0 2px 10px var(--shadow); transition: transform .2s, box-shadow .2s; height: 100%; }
.pg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow); }
.pg-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); margin-bottom: 14px; }
.pg-card h4 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--head); margin: 0 0 6px; }
.pg-card p { font-size: 13.3px; line-height: 1.6; color: var(--muted); margin: 0; }
.pg-card .tag { display: inline-block; margin-top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); padding: 3px 10px; border-radius: 20px; }
.pg-card .num { position: absolute; top: 12px; right: 16px; font-family: var(--serif); font-size: 34px; font-weight: 700; color: color-mix(in srgb, var(--c) 18%, transparent); line-height: 1; }
.pg-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--head); }
.pg-card .go:hover { color: var(--gold-d); }
.pg-card .logo { height: 58px; display: grid; place-items: center; background: #fff; border-radius: 10px; border: 1px solid #e4e9f1; margin-bottom: 14px; padding: 8px; }
.pg-card .logo img { max-height: 40px; max-width: 100%; object-fit: contain; }

.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; background: linear-gradient(120deg, var(--navy-dd), var(--navy)); color: #fff; border-radius: 18px; padding: 28px 18px; text-align: center; position: relative; overflow: hidden; }
.pg-stats::after { content: ''; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,255,255,.05); }
.pg-stat { position: relative; z-index: 1; padding: 4px 10px; }
.pg-stat + .pg-stat { border-left: 1px solid rgba(255,255,255,.14); }
.pg-stat i { display: block; font-size: 22px; color: var(--gold-l); margin-bottom: 8px; }
.pg-stat b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.pg-stat small { display: block; font-size: 12px; color: #c6d4ec; margin-top: 4px; }

.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pg-chips li { background: var(--tint); color: var(--head); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 30px; border: 1px solid var(--line); }
.pg-check { list-style: none; padding: 0; margin: 12px 0; }
.pg-check li { position: relative; padding: 5px 0 5px 30px; }
.pg-check li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); color: var(--gold-d); font-size: 10px; display: grid; place-items: center; }
.pg-check.no li::before { content: '\f00d'; background: color-mix(in srgb, #dc2626 14%, var(--surface)); color: #dc2626; }

.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 2px 10px var(--shadow); }
.pg-box h4 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; color: var(--head); }
.pg-box.do { border-top: 3px solid #16a34a; } .pg-box.do h4 i { color: #16a34a; }
.pg-box.dont { border-top: 3px solid #dc2626; } .pg-box.dont h4 i { color: #dc2626; }

.pg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; counter-reset: st; position: relative; }
.pg-step { counter-increment: st; position: relative; text-align: center; padding: 0 8px; }
.pg-step::before { content: counter(st); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 700; box-shadow: 0 8px 18px color-mix(in srgb, var(--gold) 40%, transparent); position: relative; z-index: 1; }
.pg-step:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: calc(50% + 34px); width: calc(100% - 68px + 22px); border-top: 2px dashed color-mix(in srgb, var(--gold) 55%, transparent); }
.pg-step h5 { font-size: 15px; font-weight: 700; color: var(--head); margin: 0 0 4px; }
.pg-step p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

.pg-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: linear-gradient(115deg, var(--navy-dd), var(--navy)); color: #fff; border-radius: 20px; padding: 30px 34px; position: relative; overflow: hidden; }
.pg-cta::before { content: ''; position: absolute; right: -50px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 45%, transparent), transparent 68%); }
.pg-cta > * { position: relative; }
.pg-cta h3 { font-family: var(--serif); font-size: 24px; color: #fff; margin: 0 0 4px; }
.pg-cta p { margin: 0; color: #cfdbf0; font-size: 14px; }
.pg-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-cta a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; border-radius: 8px; padding: 11px 20px; }
.pg-cta a.gold { background: var(--gold); color: #fff; } .pg-cta a.gold:hover { background: var(--gold-d); }
.pg-cta a.ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; } .pg-cta a.ghost:hover { background: rgba(255,255,255,.12); }

.pg-quote { position: relative; background: linear-gradient(135deg, var(--surface-2), var(--tint)); border-radius: 18px; padding: 34px 40px; text-align: center; }
.pg-quote i { font-size: 26px; color: var(--gold); opacity: .8; }
.pg-quote p { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--head); margin: 10px 0 8px; line-height: 1.5; }
.pg-quote span { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted); }

/* annual calendar (Library Activities) */
.pg-timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 6px 0; }
.pg-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--gold-l), var(--gold), var(--navy)); border-radius: 3px; }
.pg-ev { position: relative; width: 50%; padding: 0 44px 26px 0; text-align: right; }
.pg-ev:nth-child(even) { margin-left: 50%; padding: 0 0 26px 44px; text-align: left; }
.pg-ev::after { content: ''; position: absolute; top: 14px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.pg-ev:nth-child(even)::after { right: auto; left: -9px; }
.pg-ev .when { display: inline-block; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; padding: 4px 13px; border-radius: 20px; margin-bottom: 8px; }
.pg-ev .card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: 0 2px 10px var(--shadow); }
.pg-ev h5 { font-size: 15.5px; font-weight: 700; color: var(--head); margin: 0 0 4px; }
.pg-ev p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

.pg-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 190px 190px; gap: 14px; }
.pg-gallery figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 8px 22px var(--shadow); }
.pg-gallery figure:first-child { grid-row: span 2; }
.pg-gallery figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6,18,40,.82)); }
.pg-gallery figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-size: 13.5px; font-weight: 600; }
.pg-gallery figcaption small { display: block; font-weight: 400; font-size: 11.5px; color: #dbe6f7; margin-top: 2px; }

.pg-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.pg-faq summary { cursor: pointer; font-weight: 700; color: var(--head); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: var(--gold); transition: transform .2s; }
.pg-faq details[open] summary::after { transform: rotate(180deg); }
.pg-faq details p { margin: 0 0 16px; color: var(--muted); }

.pg-info { display: flex; gap: 14px; align-items: flex-start; }
.pg-info .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold-d); font-size: 18px; }
.pg-info h4 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 0 0 3px; color: var(--head); }
.pg-info p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.pg-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pg-links .pg-box ul { list-style: none; padding: 0; margin: 0; }
.pg-links .pg-box li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.pg-links .pg-box li:last-child { border-bottom: 0; }
.pg-links .pg-box li a { color: var(--ink-2); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.pg-links .pg-box li a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold); }
.pg-links .pg-box li a:hover { color: var(--gold-d); }
.pg-legal { max-width: 900px; }
.pg-legal .pg-box { margin-bottom: 16px; }
.pg-legal .pg-box p:last-child { margin-bottom: 0; }
.team-title-row { margin: 40px 0 16px; }

@media (max-width: 991px) {
  .pg-split, .pg-two { grid-template-columns: 1fr; gap: 24px; }
  .pg-split.rev > :first-child { order: 0; }
  .pg-photo { min-height: 240px; }
  .pg-step:not(:last-child)::after { display: none; }
  .pg-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .pg-gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .pg-lead { font-size: 17px; }
}
@media (max-width: 767px) {
  .page-banner h1 { font-size: 27px; }
  .pg-timeline::before { left: 14px; }
  .pg-ev, .pg-ev:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 22px 44px; text-align: left; }
  .pg-ev::after, .pg-ev:nth-child(even)::after { left: 5px; right: auto; }
  .pg-stat + .pg-stat { border-left: 0; }
  .pg-cta { padding: 24px 22px; }
  .pg-quote { padding: 26px 22px; } .pg-quote p { font-size: 18px; }
}
[data-site-mode="dark"] .pg-photo::before { border-color: rgba(255,255,255,.3); }
[data-site-mode="dark"] .pg-box, [data-site-mode="dark"] .pg-card, [data-site-mode="dark"] .pg-ev .card { box-shadow: none; }
html[lang="hi"] .pg-lead, html[lang="mr"] .pg-lead { font-style: normal; line-height: 1.8; }
html[lang="hi"] .pg-quote p, html[lang="mr"] .pg-quote p { font-style: normal; }
html[lang="hi"] .pg-eyebrow, html[lang="mr"] .pg-eyebrow, html[lang="hi"] .pg-card .tag, html[lang="mr"] .pg-card .tag { letter-spacing: 0; }

/* three-per-row grids (6 / 9 items) */
.pg-grid.c3x { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .pg-grid.c3x { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .pg-grid.c3x { grid-template-columns: 1fr; } }
