/* ============================================================
   BROX-POLISH.CSS — Class-Excluded Layout Design Polish
   ============================================================
   Provides polished baseline styles for semantic HTML elements
   across the BroxLab frontend — typography rhythm, spacing,
   layout refinement, dark mode, and responsive polish.

   Version: 1.0.0
   ============================================================ */

/* ============================
   1. BASE TYPOGRAPHY & RHYTHM
   ============================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.25;
  color: inherit;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 0.4em;
}

h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 0.35em;
}

h1+p,
h2+p,
h3+p {
  margin-top: -0.25em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.7;
}

a {
  transition: color 0.2s ease;
  word-break: break-word;
}

a:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  margin: 1.5em 0;
}

/* ============================
   2. LAYOUT CONTAINERS
   ============================ */

main {
  min-height: auto;
}

section {
  margin-bottom: 2rem;
}

article {
  margin-bottom: 1.5rem;
}

aside {
  font-size: 0.95em;
}

/* ============================
   3. NAVIGATION & HEADER
   ============================ */
/* 🎨 DEPRECATED: Header, nav, and dropdown styles now handled by Tailwind utilities
      in layout.twig. These CSS rules were causing style overrides on page load.
      All header/nav styling is now Tailwind-driven for consistent performance. */

/* ════════════════════════════════════════════════════════════
   3.5 LISTS & NAVIGATION SEMANTICS
   ════════════════════════════════════════════════════════════ */

/* Unordered Lists */
ul {
  list-style-position: inside;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 2rem;
}

/* Ordered Lists */
ol {
  list-style-position: inside;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 2rem;
  list-style-type: lower-alpha;
}

/* Description Lists */
dl {
  margin-bottom: 1.5rem;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  color: inherit;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

/* Navigation Lists (used in menus) - reset default list styles */
nav ul,
nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════════════════ */

/* ============================
   4. CONTENT AREA POLISH
   ============================ */

section[class*="hero"] {
  position: relative;
}





/* ============================
   5. FORM ELEMENTS
   ============================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.925rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

form>div:not([class]),
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: #334155;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:disabled,
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* ============================
   6. STATUS BADGES
   ============================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* ============================
   7. CARDS & MEDIA
   ============================ */

/* Admin Panel Card - Container for tables and content */
.admin-panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.2s ease;
}

.admin-panel-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Table wrapper within admin panel cards */
.admin-panel-card .overflow-x-auto {
  border-radius: 0.75rem;
}

.admin-panel-card table {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 1.5em 0;
  text-align: center;
}

figcaption {
  font-size: 0.85em;
  color: #64748b;
  margin-top: 0.5em;
  font-style: italic;
}

/* ============================
   7.5 DASHBOARD & STAT CARDS
   ============================ */

/* Modern stat/metric card styling */
.stat-card,
.metric-card,
.dashboard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

/* Stat card content structure */
.stat-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat-card-info {
  flex: 1;
}

.stat-card-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.375rem;
}

.stat-card-change.positive {
  color: #16a34a;
}

.stat-card-change.negative {
  color: #dc2626;
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f4ff 100%);
  color: #6366f1;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Stat card color variants */
.stat-card.blue .stat-card-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #3b82f6;
}

.stat-card.blue::before {
  background: linear-gradient(90deg, #3b82f6 0%, #0ea5e9 100%);
}

.stat-card.emerald .stat-card-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #10b981;
}

.stat-card.emerald::before {
  background: linear-gradient(90deg, #10b981 0%, #14b8a6 100%);
}

.stat-card.amber .stat-card-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  color: #f59e0b;
}

.stat-card.amber::before {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.stat-card.rose .stat-card-icon {
  background: linear-gradient(135deg, #ffe4e6 0%, #fff1f2 100%);
  color: #f43f5e;
}

.stat-card.rose::before {
  background: linear-gradient(90deg, #f43f5e 0%, #ec4899 100%);
}

.stat-card.violet .stat-card-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #faf5ff 100%);
  color: #8b5cf6;
}

.stat-card.violet::before {
  background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
}

/* Dashboard section styling */
.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.dashboard-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Modern button styling for dashboard */
.btn-primary,
button[type="submit"],
a.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.625rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Access level badge - modern styling */
.access-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f4ff 100%);
  color: #6366f1;
  border: 1px solid #c7d2fe;
}

.badge.admin {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #1e40af;
  border-color: #93c5fd;
}

.badge.user {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #065f46;
  border-color: #6ee7b7;
}

.badge.moderator {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  color: #78350f;
  border-color: #fcd34d;
}

/* ============================
   8. FOOTER
   ============================ */

footer {
  font-size: 0.925rem;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer li {
  margin-bottom: 0.5em;
}

footer a {
  text-decoration: none;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================
   9. BLOCKQUOTES & CODE
   ============================ */

blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #6366f1;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #334155;
}

blockquote p:last-child {
  margin-bottom: 0;
}

code,
kbd,
pre,
samp {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.875em;
}

code {
  background: rgba(99, 102, 241, 0.08);
  padding: 0.15em 0.35em;
  border-radius: 0.375rem;
  color: #6366f1;
}

pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  line-height: 1.6;
  margin: 1.25em 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

kbd {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.15em 0.45em;
  border-radius: 0.375rem;
  font-size: 0.8em;
  box-shadow: 0 1px 0 #cbd5e1;
}

/* ============================
   10. RESPONSIVE IMPROVEMENTS
   ============================ */

@media (max-width: 639px) {
  body {
    font-size: 0.925rem;
  }

  section {
    margin-bottom: 1.5rem;
  }

  article {
    margin-bottom: 1.25rem;
  }

  .listing-grid,
  .feed-grid {
    gap: 1rem;
  }

  th,
  td {
    padding: 0.5rem 0.625rem;
  }

  table {
    font-size: 0.85rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {

  .listing-grid,
  .feed-grid {
    gap: 1.25rem;
  }
}

/* ============================
   11. ANIMATIONS & TRANSITIONS
   ============================ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes brox-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main:not(.admin-main) {
  animation: brox-fade-in 0.35s ease-out;
}

/* ── Preloader spinner ── */
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* ── Preloader dot bounce ── */
@keyframes preloader-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Preloader fade-out state (applied via JS) ── */
#sitePreloader.preloader-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Page transition overlay active state ── */
#pageTransitionOverlay.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ============================
   12. ACCESSIBILITY
   ============================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only.focus\\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

@media (pointer: coarse) {

  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  nav a,
  nav button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================
   13. UTILITY OVERRIDES
   ============================ */

.hidden {
  display: none !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   14. DARK MODE COMPATIBILITY
   ============================ */

[data-theme="dark"] hr {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

[data-theme="dark"] .empty-state {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] blockquote {
  background: rgba(129, 140, 248, 0.06);
  color: #e2e8f0;
}

/* Dark mode admin panel card */
[data-theme="dark"] .admin-panel-card {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .admin-panel-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dark mode - Only focus-related overrides now */

[data-theme="dark"] .dropdown-menu a:hover {
  background-color: #334155;
  color: #f1f5f9;
}

/* ════════════════════════════════════════════════════════════
   MOBILE MENU ANIMATIONS
   ════════════════════════════════════════════════════════════ */

/* Mobile menu transition states — hidden on mobile unless expanded */
[data-mobile-menu] {
  display: flex;
}

/* Hide nav on mobile when NOT expanded */
@media (max-width: 1023px) {
  [data-mobile-menu][data-expanded="false"] {
    display: none;
  }
}

/* Ensure visible on desktop regardless of data-expanded */
@media (min-width: 1024px) {
  [data-mobile-menu] {
    display: flex !important;
  }
}

[data-mobile-menu][data-expanded="true"] {
  max-height: 24rem;
  overflow-y: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Smooth animation for menu items */
[data-mobile-menu] a,
[data-mobile-menu] button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .dropdown-menu a.active {
  background-color: rgba(165, 180, 252, 0.1);
  color: #a5b4fc;
}

[data-theme="dark"] nav[aria-label="Breadcrumb"] a {
  color: #a5b4fc;
}

[data-theme="dark"] nav[aria-label="Breadcrumb"] a:hover {
  color: #c7d2fe;
}

[data-theme="dark"] nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  color: #475569;
}

[data-theme="dark"] code {
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
}

[data-theme="dark"] pre {
  background: #0f172a;
}

[data-theme="dark"] kbd {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] label {
  color: #cbd5e1;
}

/* Dark mode dashboard components */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .dashboard-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .metric-card:hover,
[data-theme="dark"] .dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
  border-color: #475569;
}

[data-theme="dark"] .stat-card-label {
  color: #94a3b8;
}

[data-theme="dark"] .stat-card-value {
  color: #f1f5f9;
}

[data-theme="dark"] .stat-card-change {
  color: #cbd5e1;
}

[data-theme="dark"] .stat-card-icon {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
}

[data-theme="dark"] .stat-card.blue .stat-card-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

[data-theme="dark"] .stat-card.emerald .stat-card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

[data-theme="dark"] .stat-card.amber .stat-card-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

[data-theme="dark"] .stat-card.rose .stat-card-icon {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
}

[data-theme="dark"] .stat-card.violet .stat-card-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
}

[data-theme="dark"] .dashboard-section-title {
  color: #f1f5f9;
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-secondary {
  background: #334155;
  color: #e2e8f0;
  border-color: #475569;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #475569;
  border-color: #64748b;
  color: #f1f5f9;
}

[data-theme="dark"] .access-badge,
[data-theme="dark"] .badge {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.2);
}

[data-theme="dark"] .badge.admin {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .badge.user {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.2);
}

[data-theme="dark"] .badge.moderator {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

/* ============================
   15. PRINT STYLES
   ============================ */

@media print {

  header,
  footer,
  nav,
  .scroll-top-btn,
  .notif-permission-btn,
  #scrollTopBtn,
  #enableNotificationsBtn,
  .ai-assistant,
  [role="navigation"],
  [aria-label="Breadcrumb"] {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
  }

  p,
  li,
  blockquote {
    orphans: 3;
    widows: 3;
  }
}