/* ==========================================================================
   কর আপীল অঞ্চল-রাজশাহী — public site
   Palette: Bangladesh government green + flag red, warm neutrals.
   ========================================================================== */
:root {
    --brand: #0b5d3b;
    --brand-700: #08482e;
    --brand-800: #063a25;
    --brand-50: #eaf4ef;
    --brand-100: #d3e9de;
    --accent: #c8102e;
    --gold: #c99a2e;
    --ink: #1b2a24;
    --muted: #5c6b64;
    --line: #e3e9e6;
    --bg: #f4f6f5;
    --card: #ffffff;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 30, .06), 0 1px 3px rgba(16, 40, 30, .06);
    --shadow: 0 6px 24px -8px rgba(16, 40, 30, .18);
    --bs-body-font-family: "Hind Siliguri", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-link-color-rgb: 11, 93, 59;
    --bs-link-hover-color-rgb: 8, 72, 46;
}

body {
    font-family: var(--bs-body-font-family);
    background: var(--bg);
    color: var(--ink);
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.min-w-0 { min-width: 0; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--brand-800); color: rgba(255,255,255,.85); padding: .4rem 0; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; }
.topbar-sep { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.25); }

.site-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    background-image: radial-gradient(circle at 92% 10%, rgba(11,93,59,.06) 0, transparent 40%),
                      linear-gradient(90deg, rgba(200,16,46,.03), transparent 30%);
}
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 74px; height: 74px; object-fit: contain; flex-shrink: 0; }
.brand > span { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 1.7rem; font-weight: 700; color: var(--brand-700); letter-spacing: -.2px; }
.brand-en { font-family: "Inter", sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.brand-tag { font-size: .88rem; color: var(--muted); margin-top: .15rem; }

.header-search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .25rem .2rem 1rem; }
.header-search input { border: 0; background: transparent; outline: none; width: 210px; font-size: .95rem; }
.header-search button { border: 0; background: var(--brand); color: #fff; width: 34px; height: 34px; border-radius: 50%; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,93,59,.12); }
.btn-ereturn { background: var(--accent); color: #fff; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; }
.btn-ereturn:hover { background: #a50d26; color: #fff; text-decoration: none; }

/* ---------- main nav ---------- */
.main-nav { background: var(--brand); padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.main-nav .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.35); font-size: 1.5rem; padding: .15rem .55rem; margin: .4rem 0; }
.main-nav .nav-link { color: rgba(255,255,255,.92); font-weight: 500; padding: .85rem 1rem !important; position: relative; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.main-nav .nav-link.active { color: #fff; background: var(--brand-700); }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }
.main-nav .dropdown-menu { border: 0; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: .4rem; margin-top: 0; min-width: 240px; }
.main-nav .dropdown-item { border-radius: 8px; padding: .55rem .8rem; }
.main-nav .dropdown-item:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; }
}

/* ---------- ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-label { background: var(--accent); color: #fff; font-weight: 600; padding: .55rem 1rem; display: flex; align-items: center; white-space: nowrap; position: relative; }
.ticker-label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; border-left: 12px solid var(--accent); border-top: 21px solid transparent; border-bottom: 21px solid transparent; }
.ticker-label:hover { color: #fff; text-decoration: none; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); padding-left: 1.2rem; }
.ticker-move { display: inline-flex; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--ink); padding: .55rem 1.4rem .55rem 0; font-size: .95rem; }
.ticker-move a:hover { color: var(--brand); }
.ticker-date { color: var(--muted); font-size: .85em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } }

/* ---------- hero ---------- */
.hero { padding-top: 1.25rem; }
.hero .carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe7e3; }
.hero .carousel-item img { aspect-ratio: 2200 / 465; object-fit: cover; }
.hero .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border-radius: 4px; background: var(--brand); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { background-color: rgba(0,0,0,.35); border-radius: 50%; background-size: 50%; width: 2.5rem; height: 2.5rem; }

/* ---------- quick access ---------- */
.quick-access { padding: 1.25rem 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.quick-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem .8rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; color: var(--ink); font-weight: 600; font-size: .98rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); text-decoration: none; color: var(--brand-700); }
.qi { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; }
.qi-green { background: #e5f4ec; color: #0b7a4b; }
.qi-blue { background: #e6effc; color: #1d5fc4; }
.qi-amber { background: #fdf3e1; color: #b7791f; }
.qi-purple { background: #f1eafb; color: #6b3fb5; }
.qi-teal { background: #e2f5f4; color: #0f8077; }
.qi-red { background: #fde8eb; color: var(--accent); }
@media (max-width: 991.98px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } .quick-tile { font-size: .9rem; } }

/* ---------- panels ---------- */
.card-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { color: var(--brand-700); font-weight: 700; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; font-family: "Inter", "Hind Siliguri", sans-serif; }
.section-title { font-weight: 700; color: var(--ink); position: relative; padding-bottom: .55rem; margin-bottom: 1rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--gold)); }

.btn-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); font-weight: 600; border-radius: 10px; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-700); border-color: var(--brand-700); color: #fff; text-decoration: none; }
.btn-outline-brand { color: var(--brand); border: 1px solid var(--brand); font-weight: 600; border-radius: 10px; background: #fff; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-light-brand { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: 9px; }
.btn-light-brand:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* about */
.about-panel { overflow: hidden; }
.about-img { min-height: 240px; background: var(--brand-50); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: linear-gradient(180deg, #fbfdfc, #f3f8f5); }
.stat-strip > div { padding: 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.stat-strip span { font-size: .88rem; color: var(--muted); }
@media (max-width: 575.98px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip > div:nth-child(2) { border-right: 0; } .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* service cards */
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.service-head { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: linear-gradient(90deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); }
.service-head img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--brand-100); }
.service-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.service-head h3 { font-size: 1.08rem; font-weight: 700; margin: 0; color: var(--brand-700); }
.service-card ul { list-style: none; margin: 0; padding: .5rem .6rem .7rem; }
.service-card li a { display: flex; align-items: center; gap: .25rem; padding: .38rem .5rem; border-radius: 8px; color: var(--ink); }
.service-card li a i { color: var(--brand); font-size: 1.2rem; transition: transform .15s; }
.service-card li a:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.service-card li a:hover i { transform: translateX(3px); }

/* notices */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list li:hover { background: #fafcfb; }
.notice-date { width: 58px; flex-shrink: 0; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--brand-100); background: #fff; line-height: 1.1; }
.notice-date b { display: block; background: var(--brand); color: #fff; font-size: 1.15rem; padding: .25rem 0; }
.notice-date span { display: block; font-size: .72rem; padding-top: .2rem; color: var(--brand-700); font-weight: 600; }
.notice-date small { display: block; font-size: .7rem; color: var(--muted); padding-bottom: .2rem; }
.notice-title { color: var(--ink); font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-title:hover { color: var(--brand); }

.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* video + photos */
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-card iframe { border: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: .75rem; }
.photo-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid a, .masonry-item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--brand-50); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid a span, .masonry-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .75rem .55rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s; }
.photo-grid a:hover img, .masonry-item:hover img { transform: scale(1.04); }
.photo-grid a:hover span, .masonry-item:hover span { opacity: 1; }
@media (max-width: 575.98px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 70px; }
.official-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; padding: 0 1rem 1.1rem; overflow: hidden; }
.official-role { margin: 0 -1rem 1rem; background: var(--brand); color: #fff; font-weight: 600; padding: .55rem; }
.official-card img { width: 130px; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--brand-100); background: var(--brand-50); }
.official-name { font-weight: 700; margin-top: .85rem; color: var(--ink); }
.official-desig { font-size: .86rem; color: var(--muted); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.side-head { background: linear-gradient(90deg, var(--brand), var(--brand-700)); color: #fff; font-weight: 600; padding: .7rem 1rem; display: flex; align-items: center; gap: .5rem; }
.side-links { list-style: none; margin: 0; padding: .35rem 0; }
.side-links li a { display: flex; align-items: center; gap: .45rem; padding: .48rem 1rem; color: var(--ink); font-size: .96rem; border-left: 3px solid transparent; }
.side-links li a i { color: var(--brand); font-size: .75rem; }
.side-links li a:hover { background: var(--brand-50); border-left-color: var(--brand); color: var(--brand-700); text-decoration: none; }
.contact-card .emergency { background: #fff5f6; border: 1px dashed #f1b4bd; border-radius: 10px; padding: .6rem .8rem; }
.contact-card .emergency a { color: var(--accent); }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(120deg, var(--brand-800), var(--brand) 60%, #127a4f); color: #fff; padding: 2rem 0 2.2rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,46,.35), transparent 70%); }
.page-hero h1 { font-size: 1.9rem; font-weight: 700; margin: 0; position: relative; z-index: 1; }
.page-hero .breadcrumb { margin-bottom: .5rem; --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb-item.active { color: #fff; }

.prose { line-height: 1.95; color: #24332c; overflow-wrap: anywhere; }
.prose p { margin-bottom: 1rem; }
.prose h2, .prose h3, .prose h4 { color: var(--brand-700); font-weight: 700; margin: 1.6rem 0 .8rem; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .96rem; display: block; overflow-x: auto; }
.prose table td, .prose table th { border: 1px solid var(--line); padding: .7rem .85rem; vertical-align: top; }
.prose table tr:first-child td, .prose table th { background: var(--brand-50); font-weight: 700; color: var(--brand-700); }
.prose table p { margin: 0; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose u { text-decoration: none; font-weight: 700; color: var(--brand-700); }
.updated { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }

.doc-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row:nth-child(even):not(.doc-head) { background: #fafcfb; }
.doc-head { background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem; }
.doc-no { font-weight: 700; color: var(--muted); text-align: center; }
.doc-head .doc-no, .doc-head span:first-child { color: #fff; text-align: center; }
.doc-title { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.doc-ic { font-size: 1.6rem; color: var(--accent); flex-shrink: 0; }
@media (max-width: 575.98px) { .doc-row { grid-template-columns: 1fr; gap: .4rem; } .doc-no { display: none; } .doc-row .text-end { text-align: left !important; } .doc-head { display: none; } }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--brand-100); display: block; margin-bottom: .8rem; }
.pdf-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f0f2f1; }
.pdf-frame object { width: 100%; height: 80vh; min-height: 520px; display: block; }

.album-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.album-cover { position: relative; aspect-ratio: 16/10; background: var(--brand-50); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-count { position: absolute; right: .7rem; bottom: .7rem; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry-item { margin-bottom: 1rem; break-inside: avoid; }
.masonry-item img { width: 100%; display: block; transition: transform .3s; }

.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; box-shadow: var(--shadow-sm); height: 100%; }
.person-card img { width: 120px; height: 140px; object-fit: cover; object-position: top; border-radius: 12px; margin-bottom: 1rem; background: var(--brand-50); }

.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; gap: .9rem; height: 100%; box-shadow: var(--shadow-sm); }
.info-tile > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.info-tile div { display: flex; flex-direction: column; font-size: .95rem; }
.info-tile b { color: var(--brand-700); }
.info-tile small { color: var(--muted); margin-top: .2rem; }
.map-wrap { min-height: 460px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(11,93,59,.15); }
.success-box > i { font-size: 3.5rem; color: #0b7a4b; }
.track-no { display: inline-block; font-family: "Inter", monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; background: var(--brand-50); color: var(--brand-700); border: 2px dashed var(--brand-100); border-radius: 12px; padding: .4rem 1.2rem; }
.search-hit { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.search-hit a { font-weight: 600; font-size: 1.08rem; margin-left: .5rem; }
.search-hit p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.error-code { font-size: 6rem; font-weight: 700; color: var(--brand-100); line-height: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-800); color: rgba(255,255,255,.9); padding-top: 3rem; margin-top: 3rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand) 0 60%, var(--accent) 60% 80%, var(--gold) 80%); }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 3px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .55rem; }
.footer-contact i { color: var(--gold); margin-top: .15rem; }
.footer-bottom { margin-top: 2.5rem; padding: 1rem 0; background: rgba(0,0,0,.2); color: rgba(255,255,255,.7); }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1030; }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 767.98px) {
    .brand img { width: 56px; height: 56px; }
    .brand-name { font-size: 1.3rem; }
    .brand-tag { display: none; }
    .page-hero h1 { font-size: 1.45rem; }
    .sidebar { position: static; }
}
@media print {
    .topbar, .main-nav, .ticker, .site-footer, .sidebar, .to-top, .header-actions { display: none !important; }
}

/* ---------- staff list (/page/staff-list) ---------- */
.staff-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.staff-row { display: grid; grid-template-columns: 56px 84px 1.6fr 1.3fr 1.3fr; gap: 1rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.staff-row:last-child { border-bottom: 0; }
.staff-row:nth-child(even):not(.staff-head) { background: #fafcfb; }
.staff-head { background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem; }
.staff-head span:first-child, .staff-no { text-align: center; }
.staff-no { font-weight: 700; color: var(--muted); }
.staff-row img { width: 64px; height: 76px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--brand-50); box-shadow: 0 0 0 1px var(--line); }
.staff-row b { display: block; color: var(--ink); }
.staff-row small { display: block; color: var(--brand-700); font-weight: 500; }
.staff-office { color: var(--muted); font-size: .95rem; }
.staff-contact a { display: flex; align-items: center; gap: .4rem; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .staff-head { display: none; }
    .staff-row { grid-template-columns: 72px 1fr; gap: .3rem 1rem; }
    .staff-no { display: none; }
    .staff-row > span:nth-child(2) { grid-row: span 3; }
}

/* ---------- PDF viewer (PDF.js, js/pdfview.js) — no scrollbars, drag to pan ---------- */
.pdfv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #525a57; position: relative; }
.pdfv-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem .6rem; background: var(--brand-800); color: #fff; }
.pdfv-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.pdfv-btn:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.pdfv-lbl { min-width: 64px; text-align: center; font-family: "Inter", sans-serif; font-size: .88rem; font-variant-numeric: tabular-nums; }
.pdfv-zoom { min-width: 52px; }
.pdfv-stage { height: 78vh; min-height: 460px; overflow: auto; scrollbar-width: none; -ms-overflow-style: none; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; position: relative; overscroll-behavior: contain; }
.pdfv-stage::-webkit-scrollbar { display: none; }
.pdfv-grab .pdfv-stage { cursor: grabbing; }
.pdfv-pages { padding: 12px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 100%; box-sizing: border-box; }
.pdfv-page { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); flex-shrink: 0; }
.pdfv-page canvas { width: 100%; height: 100%; display: block; }
.pdfv-loading, .pdfv-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; text-align: center; padding: 1rem; }
.pdfv-error { display: none; background: #f0f2f1; color: var(--ink); }
.pdfv-ready .pdfv-loading { display: none; }
.pdfv-failed .pdfv-loading { display: none; }
.pdfv-failed .pdfv-error { display: flex; }
.pdfv-hint { position: absolute; right: .7rem; bottom: .6rem; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; pointer-events: none; opacity: .85; }
.pdfv-hint kbd { background: rgba(255,255,255,.2); padding: 0 .3rem; font-size: .75rem; }
.pdfv:fullscreen, .pdfv:-webkit-full-screen { border-radius: 0; display: flex; flex-direction: column; }
.pdfv:fullscreen .pdfv-stage, .pdfv:-webkit-full-screen .pdfv-stage { height: auto; flex: 1; }
.pdfv.pdfv-full { position: fixed; inset: 0; z-index: 2000; border-radius: 0; display: flex; flex-direction: column; }
.pdfv.pdfv-full .pdfv-stage { height: auto; flex: 1; }
@media (max-width: 575.98px) { .pdfv-stage { height: 70vh; min-height: 380px; } .pdfv-hint { display: none; } }
