:root {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --ink: #14110d;
    --ink-soft: #5a544a;
    --ink-faint: #8b8478;
    --line: #e3dccb;
    --brand: #006A4E;
    --brand-deep: #004D38;
    --brand-soft: #e6f3ee;
    --accent: #c2410c;
    --accent-soft: #fef3e9;
    --urgent: #F42A41;
    --font-sans: 'Anek Bangla', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* NOTE: do not set overflow-x on html/body — it forces overflow-y to a
   non-visible computed value too (CSS overflow propagation rule), which
   breaks `position: sticky` on the header. The actual mobile-overflow
   causes (nav, search row) are fixed at the source instead; see the
   mobile nav rules below and .search-row. */
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 1px 1px, rgba(20, 17, 13, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}
.mono { font-family: var(--font-mono); }
a { color: inherit; }

/* ===== HEADER ===== */
header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
    display: inline-flex; align-items: center;
    color: var(--ink); text-decoration: none;
    line-height: 0;
}
.brand-logo {
    display: block;
    height: 42px;
    width: auto;
}
.footer-brand .brand-logo { height: 44px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--brand-deep); font-weight: 800; }
.nav-link-slt, .nav-link-slt.is-active { color: var(--urgent); }
.nav-link-slt:hover { color: var(--urgent); opacity: 0.82; }
.nav-item.has-dropdown.is-active > .nav-link::after { color: var(--brand-deep); }

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none; border-radius: 8px; cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle:hover { background: var(--brand-soft); }
.nav-toggle-bar {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.dropdown-toggle { display: none; }

/* ===== NAV DROPDOWN (Procurement Nature / Procurement Method) ===== */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-dropdown > .nav-link::after {
    content: '▾'; display: inline-block; margin-left: 5px; font-size: 12px; opacity: .85;
    font-family: var(--font-mono); color: var(--ink-soft);
    transform: translateY(-1px);
}
.dropdown-panel {
    position: absolute; top: 100%; left: 0;
    /* No margin-top here on purpose: a real margin is empty space the mouse can't
       "stay hovered" over, so moving from the nav-link down to the panel would drop
       out of :hover mid-transit and the panel would close before you reach it.
       padding-top gives the same visual gap while remaining part of the hoverable box
       (the visible card itself is the nested .dropdown-panel-inner). */
    padding-top: 12px; z-index: 60;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s ease, visibility .15s;
}
.dropdown-panel--right { left: auto; right: 0; }
.nav-item.has-dropdown:hover .dropdown-panel,
.nav-item.has-dropdown:focus-within .dropdown-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown-panel-inner {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 36px rgba(20, 17, 13, .14);
    padding: 10px;
}
.dropdown-panel--list .dropdown-panel-inner { display: flex; flex-direction: column; gap: 2px; min-width: 230px; }
.dropdown-panel--grid .dropdown-panel-inner { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 2px 10px; min-width: 440px; }
.dropdown-panel-inner a {
    padding: 7px 10px; border-radius: 8px; text-decoration: none;
    display: flex; flex-direction: column; gap: 1px;
}
.dropdown-panel-inner a:hover, .dropdown-panel-inner a:focus-visible { background: var(--brand-soft); }
.dropdown-panel-inner .dd-bn { font-weight: 600; color: var(--ink); font-size: 13px; }
.dropdown-panel-inner .dd-en { font-size: 11px; color: var(--ink-faint); }
.dropdown-panel-inner .dd-code { font-weight: 700; color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; }
.dropdown-panel-inner .dd-full { font-size: 10.5px; color: var(--ink-faint); line-height: 1.3; }
.dropdown-panel-inner .dd-all {
    grid-column: 1 / -1;
    margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line);
    flex-direction: row; align-items: center; justify-content: space-between;
    font-weight: 700; color: var(--brand-deep);
}

/* Mega-menu (Tenderer ম্যানুয়াল / Procurement Method) — grouped, multi-column */
.dropdown-panel--mega .dropdown-panel-inner {
    column-width: 200px; column-count: 3; column-gap: 6px;
    width: 660px; padding: 14px;
}
.dropdown-panel--mega .dd-group { break-inside: avoid; margin-bottom: 10px; }
.dropdown-panel--mega .dd-group-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-faint); padding: 6px 10px 4px;
}
.dropdown-panel--mega .dd-group-link { padding-top: 7px; padding-bottom: 7px; }
.dropdown-panel--mega .dd-group-link .dd-bn { font-weight: 700; }
.dropdown-panel--mega .dd-bn { font-size: 12.5px; line-height: 1.3; }
.dropdown-panel--mega .dd-all {
    display: block; break-inside: avoid;
    margin: 4px 0 0; padding: 10px; border-top: none;
    background: var(--brand-soft); border-radius: 8px; text-align: center;
}
.dropdown-panel--mega .dd-all:hover { background: var(--brand-soft); filter: brightness(0.97); }

/* Book nav link */
.book-nav-item { display: inline-flex; align-items: center; }
.book-nav-icon { width: 14px; height: 14px; margin-right: 5px; }

@media (max-width: 1200px) {
    .dropdown-panel--grid .dropdown-panel-inner { grid-template-columns: 1fr; min-width: 220px; }
    .dropdown-panel--mega .dropdown-panel-inner { column-count: 1; column-width: auto; width: auto; min-width: 260px; }

    .nav-toggle { display: flex; }
    .header-right {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 2px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 36px rgba(20, 17, 13, .14);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 8px;
    }
    .header-right.is-open { display: flex; }
    .header-right > .nav-link {
        padding: 12px 10px;
        border-radius: 8px;
        font-size: 15px;
    }
    .header-right > .nav-link:hover { background: var(--brand-soft); }

    .nav-item.has-dropdown {
        display: flex; flex-wrap: wrap; align-items: center;
        position: static;
    }
    .nav-item.has-dropdown > .nav-link {
        flex: 1;
        padding: 12px 10px;
        border-radius: 8px;
        font-size: 15px;
    }
    .nav-item.has-dropdown > .nav-link:hover { background: var(--brand-soft); }
    .nav-item.has-dropdown > .nav-link::after { display: none; }

    .dropdown-toggle {
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
        width: 40px; height: 40px;
        background: none; border: none; border-radius: 8px; cursor: pointer;
        font-size: 13px; color: var(--ink-soft);
        transition: transform .15s ease;
    }
    .dropdown-toggle:hover { background: var(--brand-soft); }
    .nav-item.has-dropdown.is-open .dropdown-toggle { transform: rotate(180deg); }

    .dropdown-panel {
        order: 3; width: 100%;
        position: static;
        padding-top: 0;
        opacity: 1; visibility: visible; pointer-events: auto;
        display: none;
    }
    .nav-item.has-dropdown.is-open .dropdown-panel { display: block; }
    .dropdown-panel-inner {
        box-shadow: none; border: none; border-radius: 0;
        padding: 2px 2px 2px 14px;
    }
    .dropdown-panel--list .dropdown-panel-inner,
    .dropdown-panel--grid .dropdown-panel-inner {
        min-width: 0; grid-template-columns: 1fr;
    }
}

/* ===== HERO BAND (compact) ===== */
.hero-band { border-bottom: 1px solid var(--line); }
.hero-band-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 20px 18px 18px;
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap;
}
.hero-text { flex: 1 1 auto; min-width: 280px; }
.eyebrow {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--brand); font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
}
.eyebrow::before {
    content: ''; width: 6px; height: 6px;
    background: var(--brand); border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 106, 78, 0.18);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 106, 78, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(0, 106, 78, 0); }
}
h1 {
    font-weight: 700;
    font-size: clamp(22px, 3.4vw, 32px);
    line-height: 1.15; letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 720px;
}
h1 em { font-style: italic; font-weight: 600; color: var(--brand); }
.hero-h1-accent { color: var(--brand-deep); }

.hero-book-ad {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 22px 7px 7px; border-radius: 12px;
    background: var(--brand-soft); border: 1px solid var(--brand);
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.hero-book-ad:hover { background: var(--brand); border-color: var(--brand-deep); transform: translateY(-1px); }
.hero-book-ad:hover .hero-book-ad-title,
.hero-book-ad:hover .hero-book-ad-sub,
.hero-book-ad:hover .hero-book-ad-sub b { color: #fff; }
.hero-book-ads { display: flex; gap: 10px; flex-shrink: 0; }
.hero-book-ads .hero-book-ad { padding: 7px 14px 7px 7px; gap: 10px; align-items: center; }
.hero-book-ads .hero-book-ad-cover { width: 40px; }
.hero-book-ads .hero-book-ad-title { max-width: none; font-size: 13.5px; }
.hero-book-ad-price { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.hero-book-ad-price b { font-family: var(--font-mono); font-size: 15px; color: var(--brand-deep); }
.hero-book-ad-buy {
    padding: 3px 12px; border-radius: 999px; background: var(--brand); color: #fff;
    font-size: 11.5px; font-weight: 700; transition: background .15s ease, color .15s ease;
}
.hero-book-ad:hover .hero-book-ad-price b { color: #fff; }
.hero-book-ad:hover .hero-book-ad-buy { background: #fff; color: var(--brand-deep); }
.hero-text h1.hero-h1-sm { font-size: clamp(20px, 2.3vw, 26px); }
@media (max-width: 900px) { .hero-book-ads { width: 100%; flex-wrap: wrap; } .hero-book-ads .hero-book-ad { flex: 1 1 240px; } }
.hero-book-ad-cover {
    width: 44px; height: auto; flex-shrink: 0; display: block;
    border-radius: 4px;
    box-shadow: 0 8px 18px -7px rgba(20, 17, 13, .4);
}
.hero-book-ad-body { display: flex; flex-direction: column; gap: 3px; }
.hero-book-ad-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; max-width: 300px; white-space: nowrap; }
.hero-book-ad-sub { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.hero-book-ad-sub b { font-family: var(--font-mono); color: var(--brand-deep); }

.hero-stats { display: flex; gap: 22px; flex-shrink: 0; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.hero-stat .num {
    font-weight: 700; font-size: 24px;
    color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.hero-stat .lbl {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink-faint); font-weight: 600;
}

/* ===== CONTROL BAR (search + filters) ===== */
.control-bar {
    max-width: 1200px; margin: 0 auto;
    padding: 16px 18px 8px;
    display: flex; flex-direction: column; gap: 10px;
}
.search-row { display: flex; gap: 8px; align-items: stretch; position: relative; flex-wrap: wrap; }
.search-input-wrap { flex: 1; min-width: 200px; position: relative; }
@media (max-width: 480px) {
    .search-input-wrap { flex-basis: 100%; }
}
#searchInput {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 10px;
    font: inherit; font-size: 14px;
    outline: none; transition: border-color 0.15s;
}
#searchInput:focus { border-color: var(--brand); }

/* ===== SUGGEST PANEL ===== */
.suggest-panel {
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px -10px rgba(20, 17, 13, 0.18);
    max-height: 460px;
    overflow-y: auto;
    z-index: 60;
    padding: 8px 0;
}
.suggest-empty, .suggest-loading {
    padding: 16px 18px; font-size: 13px;
    color: var(--ink-faint); text-align: center;
}
.suggest-group { padding: 6px 0; }
.suggest-group + .suggest-group { border-top: 1px dashed var(--line); }
.suggest-group-label {
    padding: 8px 18px 4px;
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ink-faint); font-weight: 700;
}
.suggest-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background-color 0.1s ease;
    min-width: 0;
}
.suggest-item:hover, .suggest-item.active {
    background: var(--brand-soft);
}
.suggest-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.suggest-icon.tender { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-soft); }
.suggest-body { flex: 1; min-width: 0; }
.suggest-title {
    font-size: 13.5px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest-sub {
    font-size: 11px; color: var(--ink-faint);
    margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest-count {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px; color: var(--ink-faint);
}
.suggest-match { background: rgba(0, 106, 78, 0.18); color: var(--brand-deep); border-radius: 2px; padding: 0 1px; }
.suggest-hint {
    padding: 8px 18px; font-size: 11px;
    color: var(--ink-faint);
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
}
.suggest-hint kbd {
    display: inline-block; padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    font-size: 10px;
    margin: 0 2px;
}
.search-btn, .more-btn {
    border: 1px solid var(--ink);
    background: var(--ink); color: var(--bg);
    padding: 10px 18px; border-radius: 10px;
    font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
    white-space: nowrap;
}
.search-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.more-btn {
    background: var(--bg-card); color: var(--ink); border-color: var(--line);
    display: inline-flex; align-items: center; gap: 6px;
}
.more-btn:hover { border-color: var(--ink-soft); }
.more-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more-btn .chev { font-family: var(--font-mono); font-size: 11px; transition: transform 0.2s ease; }
.more-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }


/* ===== ADVANCED PANEL (slide-down) ===== */
.advanced-panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 4px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.advanced-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 16px;
}
.adv-field { display: flex; flex-direction: column; gap: 5px; }
.adv-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 700; color: var(--ink-faint);
}
.adv-field select, .adv-field input {
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit; font-size: 13px;
    color: var(--ink);
    outline: none; transition: border-color 0.15s;
}
.adv-field select:focus, .adv-field input:focus { border-color: var(--brand); }
.advanced-actions {
    padding: 0 16px 14px; display: flex; justify-content: flex-end;
}
.btn-link {
    background: transparent; border: none;
    color: var(--ink-soft); cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    padding: 6px 0;
}
.btn-link:hover { color: var(--urgent); }

/* ===== LIST HEADER ===== */
.list-header {
    max-width: 1200px; margin: 14px auto 10px;
    padding: 0 18px;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.list-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.list-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ===== TENDER CARDS ===== */
.tenders {
    max-width: 1200px; margin: 0 auto 32px;
    padding: 0 18px;
    display: grid; grid-template-columns: 1fr; gap: 10px;
}
.tender {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    position: relative; overflow: hidden;
    cursor: pointer;
    animation: fadeUp 0.5s ease backwards;
}
.tender:hover {
    border-color: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -16px rgba(20, 17, 13, 0.18);
}
.tender::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--brand);
    opacity: 0; transition: opacity 0.2s ease;
}
.tender.urgent::before { background: var(--urgent); opacity: 1; }
.tender:hover::before { opacity: 1; }

.tender-top {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.tag {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 700; padding: 4px 8px; border-radius: 4px;
    background: var(--accent-soft); color: var(--accent);
}
.tag.cat-goods            { background: #eff6ff; color: #1d4ed8; }
.tag.cat-works            { background: #fef3c7; color: #92400e; }
.tag.cat-services         { background: #f3e8ff; color: #6b21a8; }
.tag.cat-physical-service { background: #ecfdf5; color: #047857; }
.tag.cat-default          { background: var(--accent-soft); color: var(--accent); }
.tag-source {
    font-family: var(--font-mono);
    background: var(--brand-soft); color: var(--brand-deep);
}
.tender-id {
    font-family: var(--font-mono);
    font-size: 10px; color: var(--ink-faint);
    margin-left: auto;
}
.tender-title {
    font-weight: 700;
    font-size: 15px; line-height: 1.3; letter-spacing: -0.01em;
    color: var(--ink); margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.tender-meta {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px 14px;
    margin-bottom: 10px; padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ink-faint); font-weight: 600;
}
.meta-value {
    font-size: 13px; font-weight: 500; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta-value.value { font-family: var(--font-mono); font-weight: 700; }

.tender-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.deadline {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.deadline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.deadline.warn .dot { background: var(--accent); }
.deadline.urgent .dot { background: var(--urgent); animation: pulse-red 1.2s infinite; }
.deadline.warn { color: var(--accent); }
.deadline.urgent { color: var(--urgent); }
@keyframes pulse-red { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.deadline .countdown { font-family: var(--font-mono); font-weight: 700; }

.view-btn {
    display: inline-flex; align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 12px; font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.view-btn:hover {
    background: var(--ink);
    color: var(--bg);
}

/* ===== PAGER ===== */
.pager {
    max-width: 1200px; margin: 0 auto 60px;
    padding: 0 18px;
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}
.pager button {
    padding: 7px 12px;
    border: 1px solid var(--line); background: var(--bg-card);
    border-radius: 8px; cursor: pointer; font: inherit;
    font-size: 13px; min-width: 36px;
    color: var(--ink-soft); font-weight: 600;
    font-family: var(--font-mono);
}
.pager button:hover { border-color: var(--ink-soft); color: var(--ink); }
.pager button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager button:disabled { opacity: .3; cursor: default; }

/* ===== DETAIL DIALOG ===== */
.detail-dialog {
    border: none; padding: 0;
    border-radius: 16px;
    width: min(880px, 95vw); max-height: 90vh;
    overflow: auto;
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    font-family: var(--font-sans);
    color: var(--ink);
    margin: auto;
}
.detail-print-header { display: none; }
.detail-dialog[open] {
    position: fixed;
    inset: 0;
    margin: auto;
}
.detail-dialog::backdrop { background: rgba(20, 17, 13, .6); }
.detail-dialog article { padding: 28px 32px; }

.detail-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.detail-head .badge-row { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-dialog h2 {
    font-weight: 700;
    font-size: 22px; line-height: 1.3; letter-spacing: -0.015em;
    color: var(--ink);
}

.detail-section {
    margin: 14px 0 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.detail-section:first-of-type { border-top: 0; padding-top: 0; }
.detail-section-title {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
    font-weight: 700; color: var(--brand-deep);
    margin-bottom: 10px;
}
.detail-dialog dl {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 7px 18px; margin: 0; font-size: 13.5px;
}
.detail-dialog dl.dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}
.detail-dialog dl.dl-grid dt { padding-top: 0; }
.detail-dialog dl.dl-grid dt::after { content: ''; }
.detail-dialog dt {
    color: var(--ink-faint);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; padding-top: 2px;
}
.detail-dialog dd {
    margin: 0; color: var(--ink); font-weight: 500;
    word-wrap: break-word; overflow-wrap: anywhere;
}
.detail-dialog dd p { margin: 0; line-height: 1.55; }
.detail-dialog dd p + p,
.detail-dialog dd p + .detail-list {
    margin-top: 8px;
}
.detail-dialog dd .detail-list {
    margin: 0; padding-left: 20px;
    display: flex; flex-direction: column; gap: 9px;
    line-height: 1.55;
}
.detail-dialog dd .detail-sublist {
    margin: 6px 0 0; padding-left: 18px;
    display: flex; flex-direction: column; gap: 6px;
    list-style-type: lower-alpha;
    line-height: 1.5;
}
.detail-dialog .muted { color: var(--ink-faint); }
.detail-dialog .small { font-size: 12px; }
.detail-dialog .detail-category {
    font-size: 13px; line-height: 1.5; color: var(--ink);
}

.tag-live-mark { background: #fee2e2; color: #991b1b; }

/* Financial block */
.detail-financial {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin: 14px 0 18px;
}
.detail-financial .detail-section-title { color: var(--brand-deep); margin-bottom: 12px; }
.detail-financial dl.dl-grid { font-size: 13px; }
.detail-financial dd { font-family: var(--font-mono); font-weight: 700; }
.exp-fallback {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 10px;
}
.exp-fallback p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.exp-fallback .source-link { font-size: 12px; }

/* Source link */
.detail-source-row { margin: 18px 0 16px; }
.source-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand-deep); font-weight: 600; font-size: 13px;
    text-decoration: none;
    border-bottom: 1.5px solid var(--brand); padding-bottom: 1px;
}
.source-link:hover { color: var(--ink); }

/* WhatsApp consultancy CTA */
.consult-cta {
    margin: 8px 0 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #128C7E, #25D366);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    color: #fff;
}
.consult-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.consult-sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.consult-cta a.consult-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #128C7E;
    padding: 9px 16px; border-radius: 8px;
    font-weight: 700; font-size: 14px;
    text-decoration: none; font-family: var(--font-mono);
    transition: transform 0.15s ease;
}
.consult-cta a.consult-btn:hover { transform: translateY(-1px); color: #128C7E; }
.consult-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Action bar */
.detail-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 14px 28px 22px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: sticky; bottom: 0;
}
.btn {
    display: inline-block; padding: 9px 16px;
    border: 1px solid var(--line);
    background: var(--bg-card); color: var(--ink);
    border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px;
    cursor: pointer;
}
.btn:hover { border-color: var(--ink-soft); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost { background: transparent; }

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--line);
    background: var(--bg-card);
    padding: 48px 18px 28px;
    margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 32px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}
.footer-col h4 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    font-weight: 700; color: var(--ink-faint);
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col span {
    color: var(--ink-soft); font-size: 13px; font-weight: 500; text-decoration: none;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink); }
.footer-brand .brand { margin-bottom: 12px; }
.footer-tag { color: var(--ink-soft); font-size: 13px; line-height: 1.55; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }

/* Author box at the end of a blog post */
.post-author {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; margin: 28px 0 0;
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.post-author img {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--brand-soft); flex-shrink: 0;
}
.post-author-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.post-author-role {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--brand-deep); font-weight: 700; margin: 2px 0 6px;
}
.post-author-bio { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.post-author-bio a { color: var(--brand-deep); }

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    font-size: 11px; color: var(--ink-faint);
    font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-bottom span { color: var(--ink-faint); }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--ink-faint); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ===== STATES ===== */
.loading, .empty {
    padding: 40px 20px; text-align: center;
    color: var(--ink-faint); font-size: 14px;
    border: 1px dashed var(--line); border-radius: 14px;
    background: var(--bg-card);
    grid-column: 1 / -1;
}

/* ===== ARTICLE (info pages) ===== */
/* Container matches the site's 1200px rhythm (same as the homepage) so pages don't look like a
   narrow column stranded in empty space on wide screens. Prose spans the full container, same as
   headings and grids/tables/callouts, so wide viewports don't show a dead gutter next to text. */
.article { max-width: 1160px; margin: 0 auto; padding: 36px 24px 60px; }
.article h1 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; letter-spacing: -0.025em; line-height: 1.1; }
.article .lede { color: var(--ink-soft); font-size: 17px; margin: 0 0 28px; line-height: 1.55; }
.article h2 { font-weight: 700; font-size: 22px; margin-top: 36px; margin-bottom: 10px; letter-spacing: -0.02em; color: var(--ink); }
.article h3 { font-weight: 700; font-size: 16px; margin-top: 22px; margin-bottom: 6px; color: var(--ink); }
.article p, .article ul, .article ol { color: var(--ink-soft); margin-bottom: 14px; font-size: 15px; line-height: 1.7; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.list-bn { list-style-type: bengali; }
.article a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.article strong { color: var(--ink); font-weight: 700; }
.article hr { border: 0; border-top: 1px dashed var(--line); margin: 32px 0; }
.article .updated { color: var(--ink-faint); font-size: 12px; font-family: var(--font-mono); }

/* Team grid */
.team-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 18px 0 8px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.team-photo {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-soft);
    margin-bottom: 12px;
}
.team-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.team-role {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--brand-deep); font-weight: 700; margin-top: 4px;
}
.team-bio { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-top: 10px; text-align: left; }
.team-quote {
    font-style: italic; font-size: 14px; color: var(--ink-soft);
    border-left: 3px solid var(--brand);
    padding: 10px 14px;
    background: var(--brand-soft);
    border-radius: 0 8px 8px 0;
    margin-top: 12px; text-align: left;
}
.team-link {
    display: inline-block; margin-top: 10px;
    font-size: 12px; font-weight: 600; color: var(--brand-deep);
    text-decoration: none; border-bottom: 1px solid var(--brand);
}

/* Founder social/website CTA row */
.founder-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.founder-social a.founder-social-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg-card);
    color: var(--ink-soft); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.founder-social-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.founder-social a.founder-social-btn:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }

.founder-card {
    grid-column: 1 / -1;
    flex-direction: row; align-items: flex-start; text-align: left;
    gap: 22px; padding: 24px;
}
.founder-card .team-photo { flex-shrink: 0; }
@media (max-width: 560px) {
    .founder-card { flex-direction: column; align-items: center; text-align: center; }
    .founder-card .founder-social { justify-content: center; }
}

/* Mission/Vision/Service callouts */
.callout-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 16px 0 22px;
}
.callout-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-card);
}
.callout-card h3 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--brand-deep); margin: 0 0 8px;
}
.callout-card p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }

/* ===== BOOK LANDING PAGE ===== */
.book-hero { display: flex; gap: 36px; align-items: flex-start; margin: 20px 0 40px; }
.book-cover-frame { flex-shrink: 0; width: 260px; position: relative; cursor: pointer; border-radius: 8px; }
.book-cover-frame img {
    width: 100%; display: block; border-radius: 8px;
    box-shadow: 0 24px 54px -14px rgba(20, 17, 13, .38);
}
.book-cover-frame .book-cover-preview-hint {
    position: absolute; inset: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(20, 17, 13, 0); color: #fff; font-size: 13px; font-weight: 700;
    opacity: 0; transition: opacity .15s ease, background .15s ease;
}
.book-cover-frame--static { cursor: default; }
.book-cover-frame--static img { border-radius: 12px; }
.book-price-was { margin-left: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--ink-faint); text-decoration: line-through; }
.bundle-items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 16px 0 28px; }
a.bundle-item {
    display: flex; gap: 16px; align-items: center; padding: 14px; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a.bundle-item:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 14px 30px -18px rgba(0, 106, 78, 0.35); }
.bundle-item img { width: 84px; flex-shrink: 0; border-radius: 6px; box-shadow: 0 10px 24px -10px rgba(20, 17, 13, .4); }
.bundle-item-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bundle-item-title { font-weight: 700; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.bundle-item-price { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
.book-cover-frame:hover .book-cover-preview-hint { opacity: 1; background: rgba(20, 17, 13, 0.45); }
.book-cover-frame .book-cover-preview-hint svg { width: 18px; height: 18px; }
.book-hero-content { flex: 1; min-width: 280px; }
.book-hero-content h1 { margin-top: 10px; max-width: none; }
.book-subtitle { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; margin: 12px 0 22px; max-width: 620px; }
.book-stats-row { display: flex; gap: 26px; margin: 0 0 22px; flex-wrap: wrap; }
.book-stat { display: flex; flex-direction: column; }
.book-stat .num { font-weight: 700; font-size: 22px; color: var(--ink); font-family: var(--font-mono); letter-spacing: -0.01em; }
.book-stat .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 600; margin-top: 2px; }

.book-buy-box {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--brand-soft); border: 1px solid var(--line);
    border-radius: 14px; padding: 18px 20px; margin-bottom: 12px;
}
.book-price { display: flex; align-items: baseline; gap: 5px; }
.book-price .amount { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--brand-deep); }
.book-price .unit { font-size: 12.5px; color: var(--ink-faint); }
.book-buy-box a.book-buy-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #1FAE54; color: #fff;
    padding: 13px 22px; border-radius: 10px;
    font-weight: 700; font-size: 14.5px; text-decoration: none;
    transition: transform .15s ease, background .15s ease; white-space: nowrap;
}
.book-buy-box a.book-buy-btn:hover { background: #1B9A4A; transform: translateY(-1px); color: #fff; }
.book-buy-box .book-sample-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); color: var(--brand-deep);
    border: 1.5px solid var(--brand); padding: 11.5px 20px; border-radius: 10px;
    font-family: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease; white-space: nowrap;
}
.book-buy-box .book-sample-btn:hover { background: var(--brand-soft); transform: translateY(-1px); color: var(--brand-deep); }
.book-trust-note { font-size: 12.5px; color: var(--ink-faint); }

.book-feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px; margin: 16px 0 28px;
}
.book-feature-card { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.book-feature-icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
    background: var(--brand-soft); color: var(--brand-deep);
    display: grid; place-items: center;
}
.book-feature-icon svg { width: 18px; height: 18px; }
.book-feature-card h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.book-feature-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.book-toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.book-toc-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.book-toc-card .num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.book-toc-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 4px 0 0; }
.book-toc-more { font-size: 13px; color: var(--ink-faint); margin: 10px 0 26px; }

.book-author-row {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    margin: 16px 0 28px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card);
}
.book-author-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-soft); flex-shrink: 0; }
.book-final-cta { margin: 28px 0; }

@media (max-width: 700px) {
    .book-hero { flex-direction: column; align-items: center; text-align: center; }
    .book-cover-frame { width: 210px; }
    .book-stats-row { justify-content: center; }
    .book-buy-box { justify-content: center; }
    .book-author-row { justify-content: center; text-align: center; }
    .book-author-row a.find-cta { margin-left: 0 !important; }
}

/* ===== Contact page — hero CTA (gold standard) ===== */
.contact-hero-cta {
    position: relative;
    overflow: hidden;
    margin: 26px 0 34px;
    padding: 36px 38px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 1px 1px, rgba(20, 17, 13, 0.05) 1px, transparent 0) 0 0 / 22px 22px,
        var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 20px 40px -30px rgba(20, 17, 13, 0.2);
}
.contact-hero-cta::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(520px 260px at 88% 0%, rgba(212, 175, 55, 0.14), transparent 70%);
    pointer-events: none;
}
.contact-hero-badge {
    position: relative;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #8a6d1f;
    margin-bottom: 16px;
}
.contact-hero-badge svg { width: 13px; height: 13px; }
.contact-hero-title {
    position: relative;
    font-size: 26px; font-weight: 800; line-height: 1.25;
    margin: 0 0 8px; color: var(--brand-deep);
}
.contact-hero-sub {
    position: relative;
    font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
    margin: 0 0 24px; max-width: 520px;
}
.contact-hero-actions {
    position: relative;
    display: flex; flex-wrap: wrap; gap: 12px;
}
.contact-hero-cta a.contact-hero-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 20px; border-radius: 12px;
    font-size: 13.5px; font-weight: 700;
    text-decoration: none;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    color: var(--ink);
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.contact-hero-cta a.contact-hero-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-hero-cta a.contact-hero-btn:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(20, 17, 13, 0.35);
}
.contact-hero-cta a.contact-hero-btn--primary {
    background: linear-gradient(135deg, #1FAE54, #1B9A4A);
    border-color: transparent;
    color: #fff;
}
.contact-hero-cta a.contact-hero-btn--primary:hover {
    background: linear-gradient(135deg, #22c25e, #1FAE54);
    box-shadow: 0 10px 22px -8px rgba(31, 174, 84, 0.45);
}
.contact-hero-cta a.contact-hero-btn--gold {
    background: linear-gradient(135deg, #D4AF37, #B8912C);
    border-color: transparent;
    color: #241a02;
}
.contact-hero-cta a.contact-hero-btn--gold:hover {
    background: linear-gradient(135deg, #e2c158, #D4AF37);
    box-shadow: 0 10px 22px -8px rgba(212, 175, 55, 0.4);
}
/* Contact form — gold standard */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
    margin: 18px 0 8px;
}
.contact-form-panel {
    margin: 0;
    padding: 28px 30px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 40px -30px rgba(20, 17, 13, 0.25);
}
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.office-hours-card {
    padding: 22px 22px 20px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.office-hours-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--brand-soft); color: var(--brand-deep);
    margin-bottom: 12px;
}
.office-hours-icon svg { width: 19px; height: 19px; }
.office-hours-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
.office-hours-card h3 .cf-optional { font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.office-hours-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.office-hours-list > div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}
.office-hours-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.office-hours-list dt { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.office-hours-list dd { margin: 0; font-size: 12.5px; color: var(--ink); font-weight: 700; font-family: var(--font-mono); text-align: right; }
.office-hours-note { font-size: 12px; color: var(--ink-faint); line-height: 1.55; margin: 0; }
.contact-form, .order-form { display: flex; flex-direction: column; gap: 16px; margin: 0; max-width: none; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label, .order-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.contact-form label .cf-optional, .order-form label .cf-optional { font-weight: 500; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.contact-form input,
.contact-form textarea,
.order-form input {
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    padding: 11px 14px;
    border-radius: 10px;
    font: inherit; font-size: 14px;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.order-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.order-form input::placeholder { color: var(--ink-faint); }
.cf-submit {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff; padding: 13px 26px; border-radius: 12px;
    border: 0; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 12px 24px -12px rgba(0, 106, 78, 0.55);
}
.cf-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(0, 106, 78, 0.65); }
.cf-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.cf-submit svg { width: 17px; height: 17px; }
.cf-note { font-size: 12px; color: var(--ink-faint); margin: 2px 0 0; }
.cf-status {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 18px 0 8px; padding: 16px 18px;
    border-radius: 14px; font-size: 14px; line-height: 1.6;
}
.cf-status svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.cf-status--success { background: #e7f8ee; border: 1px solid #b6e6c9; color: #12603a; }
.cf-status--error { background: #fef2f2; border: 1px solid #f7c9c9; color: #a11f1f; }
.cf-status strong { display: block; margin-bottom: 3px; color: inherit; }
@media (max-width: 860px) {
    .contact-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .contact-hero-cta { padding: 28px 22px; }
    .contact-hero-title { font-size: 21px; }
    .contact-hero-actions { flex-direction: column; }
    .contact-hero-cta a.contact-hero-btn { justify-content: center; }
    .cf-row { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 22px 18px; }
}

/* Blog/books listing */
.posts-list { display: grid; gap: 14px; margin: 18px 0; }
.post-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: 12px;
}
.post-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.post-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.post-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); margin-top: 8px; }

/* ===== GLOSSARY / BLOG CONTENT SYSTEM ===== */

/* Breadcrumb */
.crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--ink-faint);
    margin: 0 0 18px;
}
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--brand-deep); text-decoration: underline; }
.crumb .sep { color: var(--line); }
.crumb .current { color: var(--ink); font-weight: 600; }

/* Category badge + tag pills */
.badge-category {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 5px 12px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-deep);
    text-decoration: none;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.tag-pill {
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
    background: var(--bg-card); border: 1px solid var(--line);
    padding: 5px 11px; border-radius: 999px;
    font-family: var(--font-mono);
}

/* Hero icon block used on term pages */
.term-hero {
    display: flex; align-items: flex-start; gap: 18px;
    margin-bottom: 6px;
}
.term-icon {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brand-soft);
}
.term-icon svg { width: 30px; height: 30px; }
.term-icon.cat-goods            { background: #eff6ff; color: #1d4ed8; }
.term-icon.cat-works            { background: #fef3c7; color: #92400e; }
.term-icon.cat-services         { background: #f3e8ff; color: #6b21a8; }
.term-icon.cat-physical-service { background: #ecfdf5; color: #047857; }
.term-icon.cat-method-tender { background: var(--accent-soft); color: var(--accent); }
.term-icon.cat-method-select { background: #eef2ff; color: #4338ca; }
.term-icon.cat-type          { background: #fdf2f8; color: #be185d; }
.term-icon.cat-process        { background: #f0fdfa; color: #0f766e; }

/* Quick-answer / definition box — GEO-friendly direct answer block */
.definition-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 4px 12px 12px 4px;
    padding: 18px 22px;
    margin: 18px 0 28px;
}
.definition-box .dl-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--brand-deep); margin-bottom: 8px;
}
.definition-box p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.definition-box p + p { margin-top: 10px; }

/* Rendered-formula block — used inside .definition-box for official legal/mathematical formulas */
.formula-intro { margin: 0 0 16px !important; }
.formula-card { padding-bottom: 22px; }
.formula-block {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px 22px;
    margin: 0 0 14px;
}
.formula-block:last-of-type { margin-bottom: 18px; }
.formula-step-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ink-faint); margin-bottom: 12px; text-align: center;
}
.formula-eq {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 6px 8px;
    font-family: var(--font-mono);
    font-size: 17px;
    color: var(--ink);
    text-align: center;
}
.formula-eq .var { font-style: italic; font-weight: 700; }
.formula-eq sub { font-size: 0.68em; }
.formula-eq .op { color: var(--ink-faint); padding: 0 2px; }
.frac {
    display: inline-flex; flex-direction: column; align-items: center;
    vertical-align: middle; margin: 0 4px; line-height: 1.3;
}
.frac-num, .frac-den { padding: 1px 6px; font-size: 0.92em; }
.frac-line { width: 100%; border-top: 1.5px solid currentColor; margin: 1px 0; }
.formula-note { font-size: 13.5px !important; color: var(--ink-soft) !important; line-height: 1.7 !important; }

/* Confidence / verify-with-source note (used where an exact official definition isn't confirmed) */
.verify-note {
    background: #fffbeb;
    border: 1px dashed #d97706;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 18px 0 26px;
    font-size: 13.5px; color: #92400e; line-height: 1.6;
}
.verify-note strong { color: #78350f; }

/* ===== FOUNDER PAGE ===== */
.founder-hero {
    display: flex; gap: 32px; align-items: center;
    padding: 36px; margin: 20px 0 32px;
    background: var(--brand-soft); border-radius: 20px;
}
.founder-hero-photo {
    width: 168px; height: 168px; border-radius: 50%;
    object-fit: cover; border: 4px solid #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    flex-shrink: 0;
}
.founder-hero-name { font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.founder-hero-role {
    font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--brand-deep); font-weight: 700; margin-top: 6px;
}
.founder-hero-tagline { margin-top: 14px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; max-width: 56ch; }
.founder-hero-links { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.founder-hero-links a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--brand-deep);
    background: #fff; border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 999px; text-decoration: none;
}
.founder-hero-links a:hover { border-color: var(--brand); }

.founder-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px; margin: 0 0 36px;
}
.founder-stat {
    padding: 20px; border: 1px solid var(--line); border-radius: 14px;
    text-align: center; background: var(--bg-card);
}
.founder-stat .num { font-size: 25px; font-weight: 800; color: var(--brand-deep); font-family: var(--font-mono); letter-spacing: -0.02em; }
.founder-stat .lbl { font-size: 12px; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }

@media (max-width: 640px) {
    .founder-hero { flex-direction: column; text-align: center; padding: 28px 22px; }
    .founder-hero-links { justify-content: center; }
    .founder-hero-tagline { max-width: none; }
}

/* ===== SITEMAP ===== */
.sitemap-section { margin: 0 0 40px; }
.sitemap-section h2 {
    font-size: 17px; font-weight: 700; color: var(--brand-deep);
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.sitemap-list {
    list-style: none; margin: 0; padding: 0;
    columns: 3; column-gap: 32px;
}
.sitemap-list li { break-inside: avoid; margin-bottom: 9px; font-size: 14px; line-height: 1.4; }
.sitemap-list a { color: var(--ink-soft); text-decoration: none; }
.sitemap-list a:hover { color: var(--brand-deep); text-decoration: underline; }
@media (max-width: 720px)  { .sitemap-list { columns: 1; } }
@media (min-width: 721px) and (max-width: 1000px) { .sitemap-list { columns: 2; } }

/* ===== TENDERER MANUAL (screenshots + numbered steps) ===== */
.manual-note {
    background: var(--brand-soft);
    border-radius: 10px;
    border-left: 4px solid var(--brand);
    padding: 14px 18px;
    margin: 18px 0 26px;
    font-size: 14px; color: var(--ink); line-height: 1.65;
}
.manual-note strong { color: var(--brand-deep); }

.manual-steps { list-style: none; margin: 18px 0 28px; padding: 0; counter-reset: manual-step; }
.manual-step {
    counter-increment: manual-step;
    position: relative;
    padding: 2px 0 2px 40px;
    margin: 0 0 16px;
    font-size: 15px; line-height: 1.7; color: var(--ink);
}
.manual-step:last-child { margin-bottom: 0; }
.manual-step::before {
    content: counter(manual-step);
    position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand-deep); color: #fff;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    display: grid; place-items: center;
}
.manual-step .sub-id { color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; margin-right: 6px; }
.manual-step h4 { font-size: 15px; margin: 0 0 4px; color: var(--ink); }
.manual-step p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }

.screen-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--brand-deep); background: var(--brand-soft);
    padding: 2px 9px; border-radius: 999px;
    margin-left: 6px;
}

.manual-figure {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    margin: 16px 0 26px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.manual-figure img {
    display: block; width: 100%; height: auto;
    border-radius: 7px; border: 1px solid var(--line);
}
.manual-figure figcaption {
    text-align: center; margin-top: 10px;
    font-family: var(--font-mono); font-size: 11.5px;
    color: var(--ink-faint); letter-spacing: 0.03em;
}
.manual-figure-row {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 16px 0 26px;
}
.manual-figure-row .manual-figure { margin: 0; }

.manual-toc {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0 28px;
}
.manual-toc .dl-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--brand-deep); margin-bottom: 10px;
}
.manual-toc ol { margin: 0; padding-left: 20px; }
.manual-toc li { font-size: 14px; margin-bottom: 6px; }
.manual-toc a { color: var(--ink); text-decoration: none; }
.manual-toc a:hover { color: var(--brand-deep); text-decoration: underline; }

.manual-chapter-nav {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
}
.manual-chapter-nav .dl-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ink-faint); margin-bottom: 10px;
}
.manual-chapter-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: chnav; }
.manual-chapter-nav li { counter-increment: chnav; margin-bottom: 4px; }
.manual-chapter-nav li::before { content: counter(chnav) '. '; color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; }
.manual-chapter-nav a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; padding: 4px 0; display: inline; }
.manual-chapter-nav a:hover { color: var(--brand-deep); text-decoration: underline; }
.manual-chapter-nav a.current { color: var(--brand-deep); font-weight: 700; }

.manual-hub-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 20px 0 8px;
}
.manual-hub-card {
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--bg-card); padding: 22px 24px;
}
.manual-hub-card h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; margin: 0 0 4px; color: var(--ink);
}
.manual-hub-card .ch-no {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    background: var(--brand-deep); color: #fff;
    font-family: var(--font-mono); font-weight: 700; font-size: 13px;
    display: grid; place-items: center;
}
.manual-hub-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55; }
.manual-hub-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.manual-hub-card a { font-size: 13.5px; color: var(--ink); text-decoration: none; }
.manual-hub-card a:hover { color: var(--brand-deep); text-decoration: underline; }

@media (max-width: 640px) {
    .manual-figure-row { grid-template-columns: 1fr; }
}

/* Legal citation block */
.law-quote {
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0 20px;
    font-size: 14px; color: var(--ink);
    line-height: 1.65;
}
.law-quote .src {
    display: block; margin-top: 8px;
    font-size: 11.5px; font-family: var(--font-mono); color: var(--accent);
}

/* Related-terms grid (used on hub + cross-links) */
.term-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 16px 0 24px;
}
.term-card {
    display: block; padding: 20px 22px;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--bg-card); text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.term-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.term-card .term-card-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: grid; place-items: center; margin: 0 0 14px;
}
.term-card .term-card-icon svg { width: 34px; height: 34px; stroke-width: 2.3; }
.term-card .term-card-icon.cat-goods            { background: #eff6ff; color: #1d4ed8; }
.term-card .term-card-icon.cat-works            { background: #fef3c7; color: #92400e; }
.term-card .term-card-icon.cat-services         { background: #f3e8ff; color: #6b21a8; }
.term-card .term-card-icon.cat-physical-service { background: #ecfdf5; color: #047857; }
.term-card .term-card-icon.cat-method-tender { background: var(--accent-soft); color: var(--accent); }
.term-card .term-card-icon.cat-method-select { background: #eef2ff; color: #4338ca; }
.term-card .term-card-icon.cat-type          { background: #fdf2f8; color: #be185d; }
.term-card .term-card-icon.cat-process        { background: #f0fdfa; color: #0f766e; }
.term-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.term-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.term-card .term-card-en { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

/* ===== HOMEPAGE PREVIEW SECTIONS (Procurement Nature / Method / Blog) ===== */
.home-section { padding: 40px 0; border-top: 1px solid var(--line); }
.home-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.home-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 20px;
}
.home-section-head h2 { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.home-section-more {
    display: inline-flex; align-items: center;
    font-size: 12.5px; font-weight: 700; color: var(--brand-deep);
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    padding: 7px 16px; border-radius: 999px;
    border: 1.5px solid var(--brand); background: var(--bg-card);
    transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.home-section-more:hover {
    background: var(--brand); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(0, 106, 78, .45);
}
.home-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .home-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-card-grid { grid-template-columns: 1fr; } }

/* Compare table on hub pages */
.compare-table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--bg-card); }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: 0; }

/* Live-search CTA button linking back to the tender list with a nature/method/type filter applied */
.article a.find-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: var(--bg);
    padding: 12px 20px; border-radius: 10px;
    text-decoration: none; font-weight: 700; font-size: 14px;
    margin: 6px 0 24px;
}
.article a.find-cta:hover { background: var(--brand-deep); color: var(--bg); }

/* 404 error page */
.error-404-wrap { max-width: 640px; margin: 0 auto; padding: 56px 20px 90px; text-align: center; }

.error-404-glyph {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    margin-bottom: 6px;
}
.error-404-digit {
    font-family: var(--font-mono); font-weight: 800; font-size: clamp(64px, 14vw, 116px); line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(150deg, var(--brand) 10%, var(--brand-deep) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0; transform: translateY(10px);
    animation: err404FadeUp .6s ease forwards;
}
.error-404-digit:last-child { animation-delay: .12s; }
.error-404-glass-wrap {
    width: clamp(64px, 13vw, 108px); height: clamp(64px, 13vw, 108px);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    opacity: 0; animation: err404FadeUp .6s ease .06s forwards;
}
.error-404-glass { width: 100%; height: 100%; animation: err404Float 4.5s ease-in-out infinite; transform-origin: 50% 50%; }

@keyframes err404FadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes err404Float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-7px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
    .error-404-digit, .error-404-glass-wrap { opacity: 1; transform: none; animation: none; }
    .error-404-glass { animation: none; }
}

.error-404-wrap h1 { margin: 6px 0 10px; font-size: 22px; }
.error-404-wrap p.error-404-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }
.error-404-path-chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; margin: 0 0 26px; font-size: 12px; color: var(--ink-faint);
}
.error-404-path-chip code {
    font-family: var(--font-mono); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: 320px;
}

.error-404-live { text-transform: none; letter-spacing: 0; font-size: 13px; margin-bottom: 26px; }
.error-404-live .num { font-family: var(--font-mono); font-weight: 800; color: var(--brand-deep); }

.error-404-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.error-404-wrap a.find-cta { margin: 0; }

.error-404-quicklinks {
    display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    text-align: center;
}
a.error-404-quicklink {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg-card); text-decoration: none; color: inherit;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a.error-404-quicklink:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 14px 30px -18px rgba(0, 106, 78, 0.35); }
.error-404-quicklink .ic {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--brand-soft); color: var(--brand-deep);
    display: grid; place-items: center;
}
.error-404-quicklink .ic svg { width: 18px; height: 18px; }
.error-404-quicklink .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }

/* FAQ accordion */
.faq-list { margin: 8px 0 24px; }
.faq-item {
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg-card);
    margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
    padding: 14px 18px; cursor: pointer; font-weight: 700; font-size: 14.5px;
    color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--brand); font-size: 18px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 18px 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* Source / reference list */
.source-list { font-size: 13px; }
.source-list li { margin-bottom: 8px; }
.source-list a { word-break: break-word; }

/* Blog post cards on index (with thumbnail, category, tags) */
a.post-card-v2 {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--bg-card); overflow: hidden; text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.post-card-v2:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-card-v2 .post-thumb { aspect-ratio: 16/9; width: 100%; display: flex; align-items: center; justify-content: center; }
.post-card-v2 .post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-v2 .post-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-deep); }
.post-card-v2 h3 { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.4; }
.post-card-v2 .post-excerpt { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.blog-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 18px 0 8px; }
.blog-empty { grid-column: 1 / -1; color: var(--ink-faint); padding: 20px 0; }
.blog-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.blog-filter-row .tag-pill {
    cursor: pointer; font: inherit; font-family: var(--font-mono);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.blog-filter-row .tag-pill:hover { border-color: var(--brand); color: var(--brand-deep); }
.blog-filter-row .tag-pill.is-active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* Designed SVG/CSS thumbnail — used instead of a photo on post cards */
.post-thumb {
    display: flex; align-items: center; justify-content: center;
    background-size: 22px 22px;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1px, transparent 0);
}
.post-thumb svg { width: 56px; height: 56px; stroke-width: 2.2; color: rgba(255,255,255,.95); }
.post-thumb.cat-a { background-color: var(--brand); }
.post-thumb.cat-b { background-color: var(--accent); }
.post-thumb.cat-c { background-color: #4338ca; }
.post-thumb.cat-d { background-color: var(--urgent); }

/* Blog article hero banner (full post page) — same designed-graphic language as the thumbs */
.post-hero {
    border-radius: 16px; padding: 28px 30px; margin: 4px 0 22px;
    display: flex; align-items: center; gap: 18px;
    border: 1px solid var(--line);
}
.post-hero-icon {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff;
}
.post-hero-icon svg { width: 34px; height: 34px; stroke-width: 2.2; }
.post-hero.cat-a { background: linear-gradient(135deg, var(--brand-soft), var(--bg-card)); }
.post-hero.cat-a .post-hero-icon { background: var(--brand); }
.post-hero.cat-b { background: linear-gradient(135deg, var(--accent-soft), var(--bg-card)); }
.post-hero.cat-b .post-hero-icon { background: var(--accent); }
.post-hero.cat-c { background: linear-gradient(135deg, #eef2ff, var(--bg-card)); }
.post-hero.cat-c .post-hero-icon { background: #4338ca; }
.post-hero.cat-d { background: linear-gradient(135deg, #fee2e2, var(--bg-card)); }
.post-hero.cat-d .post-hero-icon { background: var(--urgent); }
.post-hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--brand-deep); margin-bottom: 4px; }
.post-hero-cat-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.post-byline { font-size: 13px; color: var(--ink-faint); margin: -10px 0 20px; }

/* ===== BLOG POST — 80/20 content/sidebar layout ===== */
.post-layout {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(240px, 1fr);
    gap: 40px; align-items: start;
}
.post-main { min-width: 0; }
.post-main > p, .post-main > ul, .post-main > ol,
.post-main > .definition-box, .post-main > .law-quote, .post-main > .verify-note {
    max-width: 720px;
}
.post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--bg-card); padding: 18px;
}
.sidebar-widget h4 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--brand-deep); font-weight: 700; margin: 0 0 12px;
}
.sidebar-search { display: flex; gap: 6px; }
.sidebar-search input {
    flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg);
    color: var(--ink); padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 13px; outline: none;
}
.sidebar-search input:focus { border-color: var(--brand); }
.sidebar-search button {
    border: 0; background: var(--ink); color: var(--bg);
    border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 13px; font-weight: 700;
}
.sidebar-search button:hover { background: var(--brand-deep); }
.sidebar-related { display: flex; flex-direction: column; gap: 12px; }
.sidebar-related a { text-decoration: none; display: block; }
.sidebar-related .sr-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-deep); font-weight: 700; }
.sidebar-related .sr-title { font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.4; margin-top: 2px; }
.sidebar-related a:hover .sr-title { color: var(--brand-deep); }
.sidebar-related-item + .sidebar-related-item { padding-top: 12px; border-top: 1px dashed var(--line); }
.sidebar-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-cats a {
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
    background: var(--bg); border: 1px solid var(--line);
    padding: 5px 10px; border-radius: 999px; text-decoration: none;
}
.sidebar-cats a:hover { border-color: var(--brand); color: var(--brand-deep); }

/* Social share row */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.share-label { font-size: 12px; font-weight: 700; color: var(--ink-faint); margin-right: 2px; }
.share-btn {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg-card); border: 1px solid var(--line);
    color: var(--ink-soft); text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.share-btn.share-copy { cursor: pointer; }
.share-btn.share-copy.copied { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }

@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 720px) {
    .tenders { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tender { padding: 16px 18px; }
}
@media (min-width: 1024px) {
    .tenders { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .hero-band-inner { gap: 12px; }
    .hero-stats { gap: 16px; width: 100%; flex-wrap: wrap; }
    .hero-stat .num { font-size: 20px; }
    .hero-book-ad-title, .hero-book-ad-sub { white-space: normal; }
    .hero-book-ad-title { max-width: 200px; }
}

/* ===== ANIMATIONS ===== */
.tender:nth-child(1) { animation-delay: 0.05s; }
.tender:nth-child(2) { animation-delay: 0.10s; }
.tender:nth-child(3) { animation-delay: 0.15s; }
.tender:nth-child(4) { animation-delay: 0.20s; }
.tender:nth-child(5) { animation-delay: 0.25s; }
.tender:nth-child(6) { animation-delay: 0.30s; }
.tender:nth-child(7) { animation-delay: 0.35s; }
.tender:nth-child(8) { animation-delay: 0.40s; }
.tender:nth-child(9) { animation-delay: 0.45s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

[hidden] { display: none !important; }

@media (max-width: 720px) {
    .detail-dialog dl { grid-template-columns: 1fr !important; gap: 2px 0 !important; }
    .detail-dialog dl.dl-grid { grid-template-columns: 1fr !important; }
    .detail-dialog article { padding: 22px 18px; }
    .detail-actions { padding: 12px 18px 18px; }
    .consult-cta { flex-direction: column; align-items: stretch; }
}

/* ===== PRINT ===== */
@page {
    size: A4 portrait;
    margin: 16mm 14mm;
}
@media print {
    /* site chrome never prints, on any page */
    header, footer, .no-print { display: none !important; }

    /* While the tender-detail dialog is open, hide every OTHER sibling on the page (hero band,
       search bar, tender list, and all homepage sections below it) so only the dialog's own
       content prints. An allowlist via :has() rather than a per-section blacklist, so a newly
       added homepage section can never leak into print output again the way .home-section did. */
    body:has(> .detail-dialog[open]) > *:not(.detail-dialog) { display: none !important; }

    html, body {
        background: #fff !important;
        background-image: none !important;
        color: #000;
        font-size: 10.5pt;
        line-height: 1.45;
    }

    /* print-only branding header, shown only inside the printed dialog */
    .detail-print-header {
        display: flex !important; align-items: center; justify-content: space-between;
        gap: 12px; margin-bottom: 12pt; padding-bottom: 8pt;
        border-bottom: 1px solid #333;
    }
    .detail-print-logo { height: 26pt; width: auto; display: block; }
    .detail-print-url { font-size: 9pt; color: #555; font-family: 'JetBrains Mono', ui-monospace, monospace; }

    /* unstick the dialog and let it flow as a normal block */
    .detail-dialog {
        position: static !important;
        inset: auto !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: visible !important;
        display: block !important;
        page-break-inside: auto;
    }
    .detail-dialog::backdrop { display: none !important; }
    .detail-dialog article { padding: 0 !important; }

    /* keep colored tags readable on print */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    /* tighter typography for print */
    .detail-dialog h2 { font-size: 16pt; line-height: 1.25; margin-bottom: 6pt; page-break-after: avoid; }
    .detail-section-title { font-size: 8.5pt; color: #1f4d3a !important; margin-bottom: 6pt; page-break-after: avoid; }
    .detail-section { margin: 10pt 0 12pt; padding-top: 10pt; border-top: 1px dashed #999; page-break-inside: avoid; }
    .detail-section:first-of-type { border-top: 0; padding-top: 0; }
    .detail-head { border-bottom: 1px solid #333; padding-bottom: 8pt; margin-bottom: 12pt; }

    .detail-dialog dl {
        grid-template-columns: 130pt 1fr !important;
        gap: 4pt 10pt !important;
        font-size: 10pt !important;
    }
    .detail-dialog dl.dl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6pt 12pt !important;
    }
    .detail-dialog dt { color: #555 !important; font-size: 8pt !important; }
    .detail-dialog dd { color: #000 !important; font-weight: 500 !important; }

    /* financial block keeps its border so it stands out on paper */
    .detail-financial {
        background: #f7f5ef !important;
        border: 1px solid #aaa !important;
        padding: 10pt 12pt !important;
        page-break-inside: avoid;
    }
    /* tags / badges on print */
    .badge-row { gap: 4pt !important; }
    .tag {
        background: #eee !important;
        color: #000 !important;
        border: 0.5pt solid #999;
        padding: 2pt 5pt !important;
        font-size: 7.5pt !important;
        border-radius: 3pt !important;
    }
    .tag.cat-goods            { background: #eff6ff !important; color: #1d4ed8 !important; }
    .tag.cat-works            { background: #fef3c7 !important; color: #92400e !important; }
    .tag.cat-services         { background: #f3e8ff !important; color: #6b21a8 !important; }
    .tag.cat-physical-service { background: #ecfdf5 !important; color: #047857 !important; }
    .tag-source               { background: #e6f3ee !important; color: #004D38 !important; }
    .tag-live-mark            { background: #fee2e2 !important; color: #991b1b !important; }

    .source-link {
        color: #004D38 !important;
        text-decoration: underline;
        border-bottom: 0;
    }
    .source-link::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #555; }
}

/* ===== SLT CALCULATOR ===== */
.slt-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--brand-deep); margin-bottom: 4px; }
.slt-title { font-weight: 800; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 24px; }
.slt-title-en { font-size: 0.55em; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }

.slt-panel {
    background: var(--bg-card); border: 1px solid var(--line);
    border-left: 4px solid var(--brand); border-radius: 4px 14px 14px 4px;
    padding: 24px 28px; margin-bottom: 20px;
}
.slt-panel > h2 { text-align: left; font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 18px; }

.slt-input-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; align-items: stretch; }
.slt-field { display: flex; flex-direction: column; }
.slt-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.slt-field input, .slt-field select {
    width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 14px; outline: none;
    margin-top: auto;
}
.slt-field input:focus, .slt-field select:focus { border-color: var(--brand); }

.nppi-reference {
    background: var(--brand-soft); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 16px;
    margin: -8px 0 20px;
}
.nppi-reference-title { font-size: 12.5px; font-weight: 700; color: var(--brand-deep); margin-bottom: 10px; }
.nppi-card-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 10px;
}
.nppi-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 10px; overflow: hidden;
}
.nppi-card-head {
    background: var(--brand-deep); color: #fff;
    font-size: 12.5px; font-weight: 700;
    padding: 9px 12px;
}
.nppi-card-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nppi-card-table th {
    text-align: left; font-weight: 600; color: var(--ink-faint);
    background: var(--brand-soft);
    padding: 6px 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
}
.nppi-card-table td { padding: 6px 12px; border-top: 1px solid var(--line); color: var(--ink); }
.nppi-card-table td:last-child { font-family: var(--font-mono); font-weight: 700; color: var(--brand-deep); text-align: right; }
.nppi-reference-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; font-weight: 700; color: var(--brand-deep);
    text-decoration: underline; text-underline-offset: 2px;
    margin-bottom: 8px;
}
.nppi-reference-note { font-size: 11.5px; color: var(--ink-faint); line-height: 1.55; margin: 0; }

.slt-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 10px;
    padding: 10px 18px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    text-decoration: none;
}
.slt-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.slt-btn.slt-btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.slt-btn.slt-btn-outline:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.slt-btn:disabled { opacity: .5; cursor: not-allowed; }
.slt-btn svg { width: 16px; height: 16px; }

.slt-table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.slt-table-head h3 { margin: 0; font-size: 15px; }
.slt-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
table.slt-bidders { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
table.slt-bidders th { background: var(--bg); color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.slt-bidders td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.slt-bidders tr:last-child td { border-bottom: 0; }
table.slt-bidders input[type="text"], table.slt-bidders input[type="number"] {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px;
    background: var(--bg-card); color: var(--ink);
}
table.slt-bidders input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }
.slt-delta { font-family: var(--font-mono); font-weight: 700; }
.slt-delta.neg { color: var(--urgent); }
.slt-delta.pos { color: var(--brand); }
.slt-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-block; white-space: nowrap; }
.slt-badge.responsive { background: var(--brand-soft); color: var(--brand-deep); }
.slt-badge.nonresponsive { background: #fee2e2; color: #b91c1c; }
.slt-rank { font-weight: 800; color: var(--brand-deep); }
.slt-del-btn { background: var(--urgent); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.slt-del-btn:hover { opacity: .85; }
.slt-del-btn svg { width: 15px; height: 15px; }
.slt-calc-row { text-align: left; }

.slt-results { display: none; }
.slt-results.show { display: block; }
.slt-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.slt-results-head h2 { text-align: left; margin: 0; font-size: 17px; font-weight: 800; }

.slt-subhead { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; margin: 0 0 8px; }
.slt-param-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 20px; }
.slt-param-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--ink-faint); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.slt-param-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.slt-param-table .slt-param-val { font-family: var(--font-mono); font-weight: 700; background: var(--bg); padding: 3px 8px; border-radius: 6px; }

.slt-result-cards { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.slt-result-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.slt-result-card .slt-r-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
.slt-result-card .slt-r-value { font-size: 19px; font-weight: 800; font-family: var(--font-mono); color: var(--ink); margin-top: 6px; }
.slt-result-card .slt-r-abbr { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

.slt-winner-box { background: var(--brand-soft); border: 1px solid var(--brand); border-radius: 14px; padding: 20px; text-align: center; }
.slt-winner-box .slt-w-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-deep); font-weight: 700; }
.slt-winner-box .slt-w-name { font-size: 22px; font-weight: 800; margin: 6px 0 4px; color: var(--ink); }
.slt-winner-box .slt-w-price { font-size: 14px; color: var(--ink-soft); }
.slt-note { font-size: 12px; color: var(--ink-faint); margin-top: 16px; text-align: left; }

@media (max-width: 860px) {
    .slt-result-cards { grid-template-columns: 1fr; }
}

.pdf-modal {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(20, 17, 13, 0.65);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.pdf-modal.show { display: flex; }
.pdf-modal-inner {
    background: var(--bg-card); border-radius: 14px;
    width: min(920px, 100%); height: min(85vh, 900px);
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.pdf-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.pdf-modal-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.pdf-modal-actions { display: flex; gap: 8px; }
.pdf-modal-body { flex: 1; background: #52565c; }
.pdf-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== BOOK CATALOGUE ===== */
.book-catalog-grid {
    display: grid; gap: 20px; justify-content: start;
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
    margin: 20px 0;
}
a.book-catalog-card {
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.book-catalog-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 14px 30px -18px rgba(0, 106, 78, 0.35); }
.book-catalog-cover { aspect-ratio: 3/4; overflow: hidden; background: var(--brand-soft); }
.book-catalog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-catalog-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-catalog-body h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.book-catalog-body p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.book-catalog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.book-catalog-price { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--brand-deep); }
.book-catalog-saving { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); font-family: inherit; font-size: 11px; font-weight: 700; color: var(--brand-deep); vertical-align: middle; }
.book-catalog-cta { font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* ===== ORDER FLOW (buy / status) ===== */
.order-grid { display: flex; flex-direction: column; gap: 18px; margin: 20px 0; max-width: 460px; }
.order-panel {
    max-width: 560px; background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 16px; padding: 24px 26px;
}
.order-panel h2 { font-size: 16px; margin: 24px 0 12px; }
.order-panel h2:first-child { margin-top: 0; }
.order-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; margin: 10px 0 0; }
.order-error {
    background: #fef2f2; border: 1px solid #f7c9c9; color: #a11f1f;
    padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.order-pending-panel, .order-done-panel {
    text-align: center; padding: 28px 18px; border-radius: 14px;
    background: var(--brand-soft); border: 1px solid var(--line);
}
.order-pending-panel svg, .order-done-panel svg { color: var(--brand-deep); margin-bottom: 8px; }
.order-pending-panel h3, .order-done-panel h3 { margin: 0 0 6px; font-size: 16px; }
.order-pending-panel p, .order-done-panel p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; }
.order-done-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.order-done-links a { text-decoration: none; }
.order-done-items { display: flex; flex-direction: column; gap: 14px; }
.order-done-item { padding-top: 14px; border-top: 1px solid var(--line); }
.order-done-item:first-child { padding-top: 0; border-top: 0; }
.order-done-item-title { font-size: 13px; font-weight: 700; color: var(--brand-deep); margin-bottom: 8px; }

/* ---- bKash-style payment card — mirrors the real bKash checkout popup:
   white header (what you're buying), solid bKash-pink body (how to pay +
   the form, white pill inputs on pink), white footer with the confirm
   action. Real bKash pink is legitimate here — a real bKash account
   receiving real payments, not an imitation of bKash itself. ---- */
.bkash-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 40px -18px rgba(20, 17, 13, .35); }
.bkash-card-header { padding: 20px 22px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.bkash-card-header-title { font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.bkash-card-header .order-price { margin-top: 8px; font-family: var(--font-mono); font-weight: 800; font-size: 22px; color: var(--brand-deep); }
.bkash-card-header .order-price .unit { font-size: 12px; font-weight: 500; color: var(--ink-faint); margin-left: 4px; }

.order-bundle-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-soft); }
.bkash-card-body { background: #E2136E; padding: 22px; }
.order-bkash-row-label { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .85); margin: 0 0 10px; }
.order-bkash-row {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; border-radius: 50px; padding: 8px 8px 8px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15); max-width: 320px; margin: 0 auto;
}
.order-bkash-number { font-family: var(--font-mono); font-weight: 800; font-size: 19px; color: #E2136E; letter-spacing: .02em; }
.order-copy-btn {
    background: #E2136E; border: 0; border-radius: 50px; color: #fff;
    padding: 9px 16px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background .15s ease;
}
.order-copy-btn:hover { background: #b8105c; }
.order-bkash-account { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .8); margin: 8px 0 0; }
.order-leadin {
    text-align: center; color: #fff; font-weight: 700; font-size: 14px;
    margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28);
}
.bkash-card-body .order-note { color: rgba(255, 255, 255, .82); text-align: center; margin: 6px 0 0; }
.bkash-card-body .order-note strong { color: #fff; }
.bkash-card-body .order-form { margin-top: 16px; gap: 12px; }
.bkash-card-body .order-form label { color: #fff; }
.bkash-card-body .order-form label .cf-optional { color: rgba(255, 255, 255, .78); }
.bkash-card-body .order-form input { border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.bkash-card-body .order-form input:focus { border: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.bkash-card-body .order-error { margin-top: 4px; }

.bkash-card-footer { background: var(--bg-card); padding: 16px 22px 20px; text-align: center; }
.bkash-confirm-btn {
    width: 100%; max-width: 320px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand); color: #fff; border: 0; border-radius: 50px;
    padding: 13px 22px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.bkash-confirm-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.bkash-confirm-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.order-help-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
a.order-help-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 50px; border: 1.5px solid var(--line);
    background: var(--bg-card); color: var(--ink); font-weight: 700; font-size: 13px;
    text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
a.order-help-btn:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.order-help-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
a.order-help-btn.order-help-btn--whatsapp { border-color: #25D366; color: #128C7E; }
a.order-help-btn.order-help-btn--whatsapp:hover { background: #e9fbf3; border-color: #25D366; color: #128C7E; }

/* ===== ORDER ADMIN LOGIN ===== */
.admin-login-wrap {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top, var(--brand) 0%, var(--brand-deep) 55%, #04241a 100%);
}
.admin-login-logo-wrap { background: #fff; border-radius: 14px; padding: 14px 26px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.admin-login-logo { display: block; height: 40px; width: auto; }
.admin-login-tagline { color: rgba(255, 255, 255, .78); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin: 0 0 26px; text-align: center; }
.admin-login-card { width: 100%; max-width: 380px; background: var(--bg-card); border-radius: 16px; padding: 30px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.admin-login-card h1 { font-size: 18px; text-align: center; margin: 0 0 22px; color: var(--ink); }
.admin-login-field { margin-bottom: 16px; }
.admin-login-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.admin-login-input-wrap { position: relative; display: flex; align-items: center; }
.admin-login-input-wrap svg.leading { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
.admin-login-input-wrap input {
    width: 100%; padding: 11px 14px 11px 38px; border: 1.5px solid var(--line); border-radius: 10px;
    background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.admin-login-input-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.admin-login-toggle-eye { position: absolute; right: 8px; background: none; border: 0; cursor: pointer; color: var(--ink-faint); display: flex; padding: 6px; border-radius: 6px; }
.admin-login-toggle-eye:hover { color: var(--ink); background: var(--bg); }
.admin-login-toggle-eye svg { width: 16px; height: 16px; }
.admin-login-btn {
    width: 100%; padding: 12px; border: 0; border-radius: 50px; background: var(--brand); color: #fff;
    font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; margin-top: 6px;
    transition: background .15s ease, transform .15s ease;
}
.admin-login-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.admin-login-err {
    background: #fef2f2; color: #a11f1f; border: 1px solid #f7c9c9; border-radius: 10px;
    padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.admin-login-err svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== ORDER ADMIN DASHBOARD ===== */
.admin-stats-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 16px 0 24px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.admin-stat-card .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; }
.admin-stat-card .num { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--brand-deep); margin-top: 4px; }
.admin-stat-card .sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.admin-table-wrap { overflow-x: auto; margin: 14px 0 28px; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.admin-table th { text-align: left; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; padding: 10px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table td { padding: 10px 14px; border-top: 1px solid var(--line); }
.admin-table td.mono { font-family: var(--font-mono); }

.admin-topbar {
    background: var(--brand); color: #fff;
    padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.admin-topbar-brand { display: flex; align-items: center; gap: 10px; }
.admin-topbar-brand .chip { background: #fff; border-radius: 7px; padding: 4px 9px; display: flex; align-items: center; }
.admin-topbar-brand .chip img { display: block; height: 20px; width: auto; }
.admin-topbar-brand .divider { color: rgba(255, 255, 255, .35); }
.admin-topbar-brand .sub { font-size: 13px; color: #cfead9; font-weight: 600; }
a.admin-logout-btn {
    display: inline-flex; align-items: center; gap: 7px;
    color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700;
    padding: 8px 16px; border-radius: 50px; background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3); transition: background .15s ease;
}
a.admin-logout-btn:hover { background: rgba(255, 255, 255, .28); }
a.admin-logout-btn svg { width: 15px; height: 15px; }

.admin-dash-wrap { max-width: 1100px; margin: 0 auto; padding: 26px 24px 60px; }
.admin-dash-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.admin-dash-heading h1 { margin: 0; font-size: 21px; }
.admin-dash-heading .date { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.admin-section-label { font-size: 11px; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; margin: 30px 0 10px; }
.admin-section-label .count { color: var(--brand-deep); }
.admin-empty { color: var(--ink-faint); font-size: 13.5px; }

.admin-flash {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; margin: 16px 0 0;
}
.admin-flash svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-flash.ok { background: #e7f8ee; color: #12603a; }
.admin-flash.error { background: #fef2f2; color: #a11f1f; }

.admin-action-row { display: flex; gap: 6px; }
.admin-action-row button {
    border: 0; border-radius: 50px; padding: 7px 15px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
    transition: opacity .15s ease;
}
.admin-action-row button:hover { opacity: .85; }
.admin-action-row .admin-approve-btn { background: var(--brand); color: #fff; }
.admin-action-row .admin-reject-btn { background: #fef2f2; color: #a11f1f; border: 1px solid #f7c9c9; }
