@media screen {
  .pdf-export-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 0 0 18px; }
  .pdf-export-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--blue-line, #a7bfd5); border-radius: 8px; background: var(--blue-soft, #edf3fb); color: var(--blue-ink, #285885); font: 600 15px/1.4 var(--sans, system-ui); cursor: pointer; }
  .pdf-export-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
  .pdf-export-button:hover { background: var(--surface-soft, #edf3ef); }
  .pdf-export-hint { color: var(--secondary, #52645e); font-size: 13px; }
  .print-generated { display: none; }
}

@media print {
  @page { size: A4 portrait; margin: 14mm 13mm 17mm; }
  html, body, html[data-theme] body { width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; background: #fff !important; color: #172722 !important; font: 10pt/1.48 Arial, "Nirmala UI", sans-serif !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html[lang="bn"], html[lang="bn"] body, html[lang="bn"] body :is(h1,h2,h3,h4,p,li,td,th,label,a,span,small,strong,blockquote,time) { font-family: "Tiro Bangla", "Nirmala UI", "Noto Sans Bengali", serif !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
  .skip-link, .nav-toggle, .nav-close, .site-nav, .nav-overlay, .nav-preferences, .section-nav, .scroll-to-top, .pdf-export-toolbar, .doc-modal, .modal-backdrop, .search-panel, .doc-toolbar, .obc-list-toolbar, .site-footer-meta > .site-footer-contact + span { display: none !important; }
  html[data-theme] .site-header { display: block !important; position: static !important; inset: auto !important; height: auto !important; padding: 0 !important; background: #fff !important; border: 0 !important; box-shadow: none !important; }
  .site-header-inner { display: grid !important; grid-template-columns: 34mm minmax(0,1fr) !important; align-items: center !important; width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 0 7mm !important; border-bottom: 1.5pt solid #155448; gap: 0 7mm !important; }
  .site-logo { display: block !important; grid-column: 1 !important; grid-row: 1 !important; width: 34mm !important; padding: 0 !important; }
  .site-logo img { display: block !important; width: 34mm !important; height: 14mm !important; object-fit: contain !important; content: url('../obcwb-flat-dark-logo.webp'); }
  .masthead-title { display: block !important; grid-column: 2 !important; grid-row: 1 !important; margin: 0 !important; padding: 0 0 0 5mm !important; border-left: 1pt solid #b8792a !important; }
  .masthead-title strong { color: #153a34 !important; font: 700 16pt/1.25 Arial, sans-serif !important; }
  .masthead-title small, .masthead-title span { display: none !important; }
  .wrap, .hero-inner, main.wrap, .site-footer-inner { width: 100% !important; max-width: none !important; margin-inline: 0 !important; padding-inline: 0 !important; }
  html[data-theme] .hero { padding: 7mm 0 4mm !important; border: 0 !important; background: #fff !important; }
  .hero::before, .hero::after { display: none !important; }
  html[data-theme] .hero h1 { max-width: none !important; margin: 0 0 2mm !important; color: #153a34 !important; font: 700 21pt/1.25 Arial, "Nirmala UI", sans-serif !important; overflow-wrap: anywhere; }
  html[lang="bn"] .hero h1 { font-family: "Tiro Bangla", "Nirmala UI", "Noto Sans Bengali", serif !important; }
  .hero-eyebrow { margin: 0 0 2mm !important; color: #596b63 !important; font: 600 9pt/1.3 Arial, sans-serif !important; }
  .hero-sub { max-width: 100% !important; margin: 0 !important; color: #40564c !important; font-size: 10pt !important; }
  .print-generated { display: block !important; margin: 2mm 0 0 !important; color: #596b63 !important; font: 8pt/1.4 Arial, sans-serif !important; }
  html[lang="bn"] .print-generated { font-family: "Tiro Bangla", "Nirmala UI", "Noto Sans Bengali", serif !important; }
  .hero-stats { grid-template-columns: repeat(4,minmax(0,1fr)) !important; margin-top: 5mm !important; gap: 3mm !important; }
  .hero-stat { min-height: 0 !important; padding: 3mm !important; border: .5pt solid #cbd8d0 !important; border-top: 2pt solid #5a8a70 !important; border-radius: 2mm !important; background: #f5f8f5 !important; }
  .hero-stat strong { color: #153a34 !important; font-size: 15pt !important; }
  .hero-stat span { color: #40564c !important; font-size: 8pt !important; }
  main.wrap { min-height: 0 !important; padding-block: 2mm 6mm !important; }
  html[data-theme] main :is(.research,.intro,.query-hub,.forms-section,.research-shortcuts,.card,.home-card,.report-card,.framework-card,.research-card,.case-event > div,.event .card,.hearing-card,.notice,.callout) { background: #fff !important; color: #172722 !important; border-color: #cbd8d0 !important; box-shadow: none !important; }
  html[data-theme] main :is(.hero-stat,.hearing-card,.stat-card) { break-inside: avoid-page; }
  html[data-theme] main :is(h1,h2,h3,h4,p,li,td,th,label,span,small,strong,time) { color: #172722 !important; }
  html[data-theme] main :is(h2,h3) { break-after: avoid-page; color: #153a34 !important; }
  html[data-theme] main :is(p,li) { orphans: 3; widows: 3; }
  html[data-theme] main a { color: #174f7b !important; text-decoration: underline; text-underline-offset: 1pt; overflow-wrap: anywhere; }
  main button, main input, main select, main textarea, .doc-actions button { display: none !important; }
  .table-wrap { width: 100% !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; }
  .table-wrap table { display: table !important; width: 100% !important; min-width: 0 !important; max-width: none !important; border-collapse: collapse !important; table-layout: fixed !important; font-size: 8pt !important; }
  .table-wrap thead { display: table-header-group !important; }
  .table-wrap tbody { display: table-row-group !important; }
  .table-wrap tr { display: table-row !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; break-inside: avoid-page; }
  .table-wrap th, .table-wrap td { display: table-cell !important; width: auto !important; min-width: 0 !important; padding: 4pt !important; border: .5pt solid #b9c7bf !important; border-radius: 0 !important; background: #fff !important; color: #172722 !important; font: inherit !important; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
  .table-wrap th { background: #edf3ef !important; font-weight: 700 !important; }
  .table-wrap td::before { display: none !important; content: none !important; }
  .table-wrap tr[hidden], .table-wrap tr.hidden { display: none !important; }
  .table-wrap .doc-row { border-top: 0 !important; }
  html[data-theme] .table-wrap #docs-tbody .doc-row { display: table-row !important; grid-template-columns: none !important; }
  html[data-theme] .table-wrap #docs-tbody .doc-row td { display: table-cell !important; min-width: 0 !important; margin: 0 !important; padding: 4pt !important; border: .5pt solid #b9c7bf !important; text-align: start !important; }
  html[data-theme] main .table-wrap thead th:nth-child(1), #docs-tbody td:nth-child(1) { width: 20% !important; }
  html[data-theme] main .table-wrap thead th:nth-child(2), #docs-tbody td:nth-child(2) { width: 9% !important; }
  html[data-theme] main .table-wrap thead th:nth-child(3), #docs-tbody td:nth-child(3) { width: 12% !important; }
  html[data-theme] main .table-wrap thead th:nth-child(4), #docs-tbody td:nth-child(4) { width: 13% !important; }
  html[data-theme] main .table-wrap thead th:nth-child(5), #docs-tbody td:nth-child(5) { width: 32% !important; }
  html[data-theme] main .table-wrap thead th:nth-child(6), #docs-tbody td:nth-child(6) { width: 14% !important; }
  html[data-theme] #docs-tbody .doc-row td:last-child { display: table-cell !important; }
  html[data-theme] #docs-tbody .doc-actions { display: block !important; padding: 0 !important; border: 0 !important; }
  html[data-theme] #docs-tbody .doc-actions a { display: inline-block !important; width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 2pt 3pt !important; text-align: start !important; white-space: normal !important; }
  .doc-row code, .doc-provenance { overflow-wrap: anywhere; }
  html[data-theme] .site-footer { margin-top: 7mm !important; padding: 5mm 0 0 !important; border-top: 1pt solid #cbd8d0 !important; background: #fff !important; color: #40564c !important; }
  .site-footer-inner { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4mm 8mm !important; padding-block: 0 !important; }
  .site-footer-brand { gap: 2mm !important; }
  .site-footer-brand > img { display: none !important; }
  .site-footer-brand > span { color: #40564c !important; font-size: 8.5pt !important; }
  .footer-links { display: none !important; }
  .site-footer-meta { grid-column: 1 / -1 !important; display: flex !important; flex-direction: row !important; justify-content: space-between !important; padding: 3mm 0 0 !important; border-top: .5pt solid #cbd8d0 !important; gap: 4mm !important; }
  .footer-parent-brand { display: flex !important; width: auto !important; align-items: center; gap: 3mm !important; color: #40564c !important; }
  .footer-parent-brand img { width: 36mm !important; max-width: 36mm !important; height: auto !important; }
  .footer-social { display: flex !important; gap: 2mm 4mm !important; }
  .footer-social a, .footer-social a span { min-height: 0 !important; padding: 0 !important; color: #174f7b !important; font: 8pt/1.4 Arial, sans-serif !important; }
  .site-footer::after { display: block; margin-top: 5mm; padding: 3mm 4mm; border: .5pt solid #c2cec7; border-inline-start: 2pt solid #b8792a; background: #f6f5ef; color: #34453f; font: 8.5pt/1.45 Arial, sans-serif; white-space: normal; break-inside: avoid-page; }
  html:not([lang="bn"]) .site-footer::after { content: "Research disclaimer: This independent archive is for public research and information. It is not legal advice, an official government publication, or a certified copy of a source. Verify original records and current law before relying on this material; original sources prevail."; }
  html[lang="bn"] .site-footer::after { content: "গবেষণা-সংক্রান্ত ঘোষণা: এই স্বাধীন আর্কাইভ জনসাধারণের গবেষণা ও তথ্যের জন্য। এটি আইনি পরামর্শ, সরকারি প্রকাশনা বা কোনো উৎসের প্রত্যয়িত অনুলিপি নয়। এই তথ্যের ওপর নির্ভর করার আগে মূল নথি ও বর্তমান আইন যাচাই করুন; মূল উৎসই প্রামাণ্য।"; font-family: "Tiro Bangla", "Nirmala UI", "Noto Sans Bengali", serif; }
}
