:root {
  --docufyr-ink: #0f172a;
  --docufyr-slate: #475569;
  --docufyr-muted: #64748b;
  --docufyr-line: #e2e8f0;
  --docufyr-panel: rgba(255, 255, 255, 0.92);
  --docufyr-canvas: #f8fafc;
  --docufyr-white: #ffffff;
  --docufyr-accent: #1d4ed8;
  --docufyr-accent-dark: #1e3a8a;
  --docufyr-accent-soft: #eff6ff;
  --docufyr-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --docufyr-radius-xl: 28px;
  --docufyr-radius-lg: 22px;
  --docufyr-radius-md: 16px;
}

body.docufyr-premium-library-active {
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbff 45%, #ffffff 100%) !important;
  color: var(--docufyr-slate);
}

body.docufyr-premium-library-active .site-content,
body.docufyr-premium-library-active .content-area,
body.docufyr-premium-library-active .inside-article,
body.docufyr-premium-library-active .entry-content {
  width: 100%;
  max-width: none;
}

body.docufyr-premium-library-active .sidebar,
body.docufyr-premium-library-active .widget-area,
body.docufyr-premium-library-active #right-sidebar,
body.docufyr-premium-library-active #left-sidebar {
  display: none !important;
}

.docufyr-shell {
  position: relative;
  padding: 30px 0 70px;
}

.docufyr-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 540px;
  background:
    radial-gradient(circle at 14% 10%, rgba(59, 130, 246, 0.17), transparent 33%),
    radial-gradient(circle at 88% 7%, rgba(249, 115, 22, 0.14), transparent 20%),
    radial-gradient(circle at 50% 16%, rgba(37, 99, 235, 0.06), transparent 36%);
  pointer-events: none;
}

.docufyr-container {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.docufyr-hero,
.docufyr-content-panel,
.docufyr-term-section {
  position: relative;
  z-index: 1;
}

.docufyr-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--docufyr-muted);
}

.docufyr-breadcrumbs a {
  color: var(--docufyr-muted);
  text-decoration: none;
}

.docufyr-breadcrumbs a:hover {
  color: var(--docufyr-accent);
}

.docufyr-hero {
  margin-bottom: 24px;
}

.docufyr-hero__inner {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--docufyr-shadow);
}

.docufyr-hero__content h1 {
  margin: 0 0 14px;
  color: var(--docufyr-ink);
  font-size: clamp(2.25rem, 3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.docufyr-hero__content p {
  max-width: 780px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.8;
}

.docufyr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--docufyr-accent-soft);
  color: var(--docufyr-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.docufyr-hero__meta {
  display: grid;
  gap: 16px;
  align-content: start;
}

.docufyr-stat-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--docufyr-line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.docufyr-stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--docufyr-ink);
  font-size: 1.05rem;
}

.docufyr-stat-card span {
  display: block;
  line-height: 1.7;
}

.docufyr-content-panel {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--docufyr-radius-xl);
  background: var(--docufyr-panel);
  box-shadow: var(--docufyr-shadow);
}

.docufyr-content-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.docufyr-content-panel__header h2,
.docufyr-section-heading h2 {
  margin: 0 0 6px;
  color: var(--docufyr-ink);
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.docufyr-content-panel__header p,
.docufyr-section-heading p {
  margin: 0;
  color: var(--docufyr-muted);
  line-height: 1.7;
}

.docufyr-term-section {
  margin-top: 24px;
}

.docufyr-term-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.docufyr-term-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--docufyr-radius-lg);
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.docufyr-term-card:hover {
  transform: translateY(-2px);
  border-color: #bfd7ff;
  box-shadow: 0 20px 55px rgba(29, 78, 216, 0.12);
}

.docufyr-term-name {
  color: var(--docufyr-ink);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
}

.docufyr-term-description {
  color: var(--docufyr-slate);
  line-height: 1.7;
}

.docufyr-term-meta {
  margin-top: auto;
  color: var(--docufyr-accent);
  font-size: 13px;
  font-weight: 700;
}

.docufyr-library-content {
  overflow: hidden;
}

.docufyr-library-content .dataTables_wrapper,
.docufyr-library-content .posts-data-table-wrapper,
.docufyr-library-content table.posts-data-table {
  width: 100%;
}

.docufyr-library-content .dataTables_filter,
.docufyr-library-content .dataTables_length,
.docufyr-library-content .dataTables_info,
.docufyr-library-content .dataTables_paginate {
  margin: 0 0 18px;
}

.docufyr-library-content .dataTables_filter input,
.docufyr-library-content .posts-data-table-controls input,
.docufyr-library-content input[type="search"] {
  min-width: min(420px, 100%);
  padding: 14px 18px;
  border: 1px solid var(--docufyr-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.docufyr-library-content table.posts-data-table,
.docufyr-library-content table.dataTable {
  border-collapse: separate;
  border-spacing: 0 14px;
  background: transparent;
}

.docufyr-library-content table.posts-data-table thead th,
.docufyr-library-content table.dataTable thead th {
  padding: 14px 16px;
  border: 0;
  color: var(--docufyr-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

.docufyr-library-content table.posts-data-table tbody tr,
.docufyr-library-content table.dataTable tbody tr {
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.docufyr-library-content table.posts-data-table tbody td,
.docufyr-library-content table.dataTable tbody td {
  padding: 18px 16px;
  border-top: 1px solid var(--docufyr-line);
  border-bottom: 1px solid var(--docufyr-line);
  vertical-align: top;
}

.docufyr-library-content table.posts-data-table tbody td:first-child,
.docufyr-library-content table.dataTable tbody td:first-child {
  border-left: 1px solid var(--docufyr-line);
  border-radius: 18px 0 0 18px;
}

.docufyr-library-content table.posts-data-table tbody td:last-child,
.docufyr-library-content table.dataTable tbody td:last-child {
  border-right: 1px solid var(--docufyr-line);
  border-radius: 0 18px 18px 0;
}

.docufyr-library-content table.posts-data-table a,
.docufyr-library-content table.dataTable a {
  color: var(--docufyr-accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.docufyr-library-content table.posts-data-table a:hover,
.docufyr-library-content table.dataTable a:hover {
  color: var(--docufyr-accent);
}

.docufyr-document-list {
  display: grid;
  gap: 16px;
}

.docufyr-document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
  border-radius: var(--docufyr-radius-lg);
  border: 1px solid var(--docufyr-line);
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.05);
}

.docufyr-document-card__title {
  margin: 0 0 10px;
  color: var(--docufyr-ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.docufyr-document-card__title a {
  color: inherit;
  text-decoration: none;
}

.docufyr-document-card__summary {
  margin: 12px 0 0;
  line-height: 1.75;
}

.docufyr-document-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: end;
  justify-content: center;
}

.docufyr-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docufyr-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--docufyr-accent-soft);
  color: var(--docufyr-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.docufyr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--docufyr-ink);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.docufyr-button:hover {
  background: #020617;
}

.docufyr-button--secondary {
  background: #ffffff;
  color: var(--docufyr-ink) !important;
  border: 1px solid var(--docufyr-line);
  box-shadow: none;
}

.docufyr-action-stack {
  align-content: center;
}

.docufyr-action-stack .docufyr-button {
  width: 100%;
}

.docufyr-preview-frame {
  border: 1px solid var(--docufyr-line);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.docufyr-preview-frame iframe {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
  background: #ffffff;
}

.docufyr-preview-html {
  padding: 26px;
  border: 1px solid var(--docufyr-line);
  border-radius: 22px;
  background: #ffffff;
  line-height: 1.8;
}

.docufyr-preview-html > :first-child {
  margin-top: 0;
}

.docufyr-preview-html > :last-child {
  margin-bottom: 0;
}

.docufyr-empty-state {
  padding: 28px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: #ffffff;
}

.docufyr-empty-state h3 {
  margin: 0 0 8px;
  color: var(--docufyr-ink);
}

.docufyr-empty-state p {
  margin: 0;
  line-height: 1.8;
}

.docufyr-pagination {
  margin-top: 22px;
}

.docufyr-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin: 0 4px 6px 0;
  border-radius: 12px;
  border: 1px solid var(--docufyr-line);
  background: #ffffff;
  text-decoration: none;
  color: var(--docufyr-ink);
  font-weight: 700;
}

.docufyr-pagination .page-numbers.current,
.docufyr-pagination .page-numbers:hover {
  background: var(--docufyr-accent);
  border-color: var(--docufyr-accent);
  color: #ffffff;
}

@media (max-width: 900px) {
  .docufyr-hero__inner,
  .docufyr-document-card {
    grid-template-columns: 1fr;
  }

  .docufyr-document-card__actions {
    align-items: start;
  }

  .docufyr-preview-frame iframe {
    min-height: 700px;
  }
}

@media (max-width: 700px) {
  .docufyr-shell {
    padding-top: 18px;
  }

  .docufyr-container {
    width: min(100% - 18px, 100%);
  }

  .docufyr-hero__inner,
  .docufyr-content-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .docufyr-library-content table.posts-data-table,
  .docufyr-library-content table.dataTable,
  .docufyr-library-content table.posts-data-table thead,
  .docufyr-library-content table.dataTable thead,
  .docufyr-library-content table.posts-data-table tbody,
  .docufyr-library-content table.dataTable tbody,
  .docufyr-library-content table.posts-data-table tr,
  .docufyr-library-content table.dataTable tr,
  .docufyr-library-content table.posts-data-table td,
  .docufyr-library-content table.dataTable td {
    display: block;
    width: 100%;
  }

  .docufyr-library-content table.posts-data-table thead,
  .docufyr-library-content table.dataTable thead {
    display: none;
  }

  .docufyr-library-content table.posts-data-table tbody tr,
  .docufyr-library-content table.dataTable tbody tr {
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .docufyr-library-content table.posts-data-table tbody td,
  .docufyr-library-content table.dataTable tbody td {
    border-left: 1px solid var(--docufyr-line) !important;
    border-right: 1px solid var(--docufyr-line) !important;
    border-radius: 0 !important;
  }

  .docufyr-library-content table.posts-data-table tbody td:first-child,
  .docufyr-library-content table.dataTable tbody td:first-child {
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
  }

  .docufyr-library-content table.posts-data-table tbody td:last-child,
  .docufyr-library-content table.dataTable tbody td:last-child {
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
  }

  .docufyr-preview-frame iframe {
    min-height: 560px;
  }
}

.docufyr-container {
  width: min(1380px, calc(100% - 32px));
}

.docufyr-hero__inner--search {
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 38px;
}

.docufyr-hero__content--centered {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.docufyr-hero__content--centered p {
  margin-left: auto;
  margin-right: auto;
}

.docufyr-search-stage {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.docufyr-library-search-host {
  position: relative;
  min-height: 88px;
  padding: 22px;
  border: 1px solid rgba(191, 215, 255, 0.7);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: 0 24px 70px rgba(19, 54, 108, 0.1);
}

.docufyr-library-search-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: var(--docufyr-muted);
  font-size: 0.98rem;
}

.docufyr-library-search-host.is-ready .docufyr-library-search-fallback {
  display: none;
}

.docufyr-library-search-host .posts-data-table-controls,
.docufyr-library-search-host .dataTables_filter,
.docufyr-library-search-host .dt-search {
  margin: 0;
}

.docufyr-library-search-host label,
.docufyr-library-search-host .dataTables_filter label {
  display: block;
  font-size: 0;
  line-height: 1;
}

.docufyr-library-search-host .posts-data-table-controls input,
.docufyr-library-search-host .dataTables_filter input,
.docufyr-library-search-host .dt-search input,
.docufyr-library-search-host input[type="search"],
.docufyr-library-search-host input[type="text"] {
  width: 100% !important;
  min-width: 100% !important;
  min-height: 64px;
  padding: 18px 22px;
  border: 1px solid #d7e4f5;
  border-radius: 22px;
  background: #ffffff;
  color: var(--docufyr-ink);
  font-size: 1.06rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.docufyr-library-search-host a,
.docufyr-library-search-host button,
.docufyr-library-search-host .reset,
.docufyr-library-search-host .posts-data-table-reset {
  color: var(--docufyr-accent) !important;
}

.docufyr-search-stage__note {
  margin: 14px 0 0;
  color: var(--docufyr-muted);
  line-height: 1.7;
}

.docufyr-content-panel--library {
  margin-top: 28px;
}

.docufyr-term-section {
  margin-top: 28px;
}

.docufyr-section-heading {
  margin-bottom: 18px;
  text-align: center;
}

.docufyr-section-heading h2 {
  margin-bottom: 0;
}

.docufyr-term-card {
  min-height: 190px;
}

.docufyr-term-description {
  color: var(--docufyr-muted);
}

.docufyr-term-meta {
  font-size: 14px;
}

.docufyr-library-content .dataTables_filter,
.docufyr-library-content .posts-data-table-controls,
.docufyr-library-content .dt-search {
  margin-bottom: 18px;
}

.docufyr-library-content table.posts-data-table tbody td:last-child a,
.docufyr-library-content table.dataTable tbody td:last-child a,
.docufyr-library-content table.posts-data-table tbody td:last-child .button,
.docufyr-library-content table.dataTable tbody td:last-child .button,
.docufyr-library-content table.posts-data-table tbody td:last-child input[type="button"],
.docufyr-library-content table.dataTable tbody td:last-child input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--docufyr-ink) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.docufyr-library-content table.posts-data-table tbody td:last-child a:hover,
.docufyr-library-content table.dataTable tbody td:last-child a:hover,
.docufyr-library-content table.posts-data-table tbody td:last-child .button:hover,
.docufyr-library-content table.dataTable tbody td:last-child .button:hover {
  background: #020617 !important;
  color: #ffffff !important;
}

.docufyr-library-content table.posts-data-table tbody td:last-child,
.docufyr-library-content table.dataTable tbody td:last-child {
  min-width: 152px;
}

@media (max-width: 900px) {
  .docufyr-hero__inner--search {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .docufyr-library-search-host {
    padding: 16px;
    border-radius: 22px;
  }

  .docufyr-library-search-host .posts-data-table-controls input,
  .docufyr-library-search-host .dataTables_filter input,
  .docufyr-library-search-host .dt-search input,
  .docufyr-library-search-host input[type="search"],
  .docufyr-library-search-host input[type="text"] {
    min-height: 56px;
    font-size: 1rem;
  }
}

.docufyr-library-panel {
  position: relative;
  z-index: 1;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--docufyr-shadow);
}

.docufyr-library-panel__intro {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.docufyr-library-panel__intro h1 {
  margin: 0 0 14px;
  color: var(--docufyr-ink);
  font-size: clamp(2.25rem, 3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.docufyr-library-panel__intro p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.8;
}

.docufyr-library-panel__divider {
  height: 1px;
  margin: 30px 0 26px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0), rgba(226, 232, 240, 1), rgba(226, 232, 240, 0));
}

.docufyr-library-panel__results-header {
  margin-bottom: 18px;
}

.docufyr-library-panel__results-header h2 {
  margin: 0;
  color: var(--docufyr-ink);
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.docufyr-featured-section {
  margin-top: 28px;
}

.docufyr-featured-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.docufyr-quick-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--docufyr-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.docufyr-quick-card__eyebrow {
  margin-bottom: 12px;
  color: var(--docufyr-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docufyr-quick-card__title {
  margin: 0;
  color: var(--docufyr-ink);
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.docufyr-quick-card__title a {
  color: inherit;
  text-decoration: none;
}

.docufyr-quick-card__title a:hover {
  color: var(--docufyr-accent-dark);
}

.docufyr-quick-card__actions {
  margin-top: auto;
}

.docufyr-quick-card__actions .docufyr-button {
  width: 100%;
}

@media (max-width: 900px) {
  .docufyr-library-panel {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .docufyr-library-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .docufyr-featured-grid {
    grid-template-columns: 1fr;
  }
}
