/*
 * KohaSupport Knowledge Base — Redesign Styles
 * Depends on CSS custom properties from design-system-v2.css.
 * All selectors are prefixed .kb-* or #kb-* to avoid side effects.
 */

/* ---------------------------------------------------------------
   VISUALLY HIDDEN UTILITY
--------------------------------------------------------------- */

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

/* ---------------------------------------------------------------
   SEARCH BLOCK
--------------------------------------------------------------- */

.kb-search-block {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 3.5rem 0 3rem;
}

.kb-search-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.kb-search-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.kb-search-subtext {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.kb-search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kb-search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e5e7eb;
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  color: #0f172a;
  min-width: 0;
}

.kb-search-input:focus {
  border-color: var(--primary, #059669);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.kb-search-btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--primary, #059669);
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.kb-search-btn:hover {
  background: var(--primary-dark, #047857);
}

.kb-search-btn:active {
  transform: translateY(1px);
}

.kb-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.kb-chips-label {
  font-size: 0.8rem;
  color: #9ca3af;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 0.125rem;
}

.kb-chip {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 2rem;
  font-size: 0.8rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1;
}

.kb-chip:hover {
  border-color: var(--primary, #059669);
  background: #f0fdf7;
  color: var(--primary, #059669);
  text-decoration: none;
}

/* Search results (injected by kb-search.js, restyled here) */
#kb-search-results {
  padding: 3rem 0;
}

#kb-search-results .section-header p {
  margin-bottom: 1.5rem;
}

#kb-search-results .article-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

#kb-search-results .article-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  padding: 1.125rem 1.5rem;
  transition: box-shadow 0.15s;
}

#kb-search-results .article-preview:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

mark {
  background: #fef08a;
  color: inherit;
  border-radius: 0.125rem;
  padding: 0 0.1em;
}

/* ---------------------------------------------------------------
   START HERE / POPULAR WORKFLOWS
--------------------------------------------------------------- */

.kb-workflows {
  padding: 4.5rem 0;
}

.kb-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary, #059669);
  margin-bottom: 0.5rem;
  display: block;
}

.kb-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.kb-section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 2.5rem;
  line-height: 1.5;
}

.kb-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}

.kb-workflow-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.kb-workflow-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.kb-workflow-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.375rem;
  line-height: 1.3;
}

.kb-workflow-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.kb-workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.125rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #059669);
  text-decoration: none;
}

.kb-workflow-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   BROWSE BY CATEGORY
--------------------------------------------------------------- */

.kb-categories {
  padding: 4.5rem 0;
  background: #f8fafc;
}

.kb-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}

.kb-category-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.625rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.kb-category-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
}

.kb-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.kb-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.kb-category-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary, #059669);
  background: #f0fdf7;
  border: 1px solid #a7f3d0;
  border-radius: 2rem;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.5;
}

.kb-category-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.kb-category-articles {
  list-style: none;
  padding: 0;
  margin: 0 0 0.875rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.kb-category-articles li {
  padding: 0.25rem 0;
  font-size: 0.84rem;
}

.kb-category-articles a {
  color: #374151;
  text-decoration: none;
  line-height: 1.4;
}

.kb-category-articles a:before {
  content: '→ ';
  color: #d1d5db;
}

.kb-category-articles a:hover {
  color: var(--primary, #059669);
}

.kb-category-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.kb-view-category {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary, #059669);
  text-decoration: none;
}

.kb-view-category:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   NEW & UPDATED
--------------------------------------------------------------- */

.kb-updated {
  padding: 4.5rem 0;
}

.kb-updated-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
}

.kb-updated-item {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.kb-updated-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary, #059669);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 5rem;
}

.kb-updated-content {
  flex: 1;
  min-width: 0;
}

.kb-updated-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

.kb-updated-title:hover {
  color: var(--primary, #059669);
}

.kb-updated-meta {
  font-size: 0.73rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

/* ---------------------------------------------------------------
   ALL TOPICS ACCORDION
--------------------------------------------------------------- */

.kb-topics {
  padding: 4.5rem 0;
  background: #f8fafc;
}

.kb-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.kb-accordion-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  overflow: hidden;
}

.kb-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  gap: 1rem;
  transition: background 0.15s;
}

.kb-accordion-trigger:hover {
  background: #f9fafb;
}

.kb-accordion-trigger:focus-visible {
  outline: 2px solid var(--primary, #059669);
  outline-offset: -2px;
}

.kb-accordion-trigger[aria-expanded="true"] {
  border-bottom: 1px solid #f3f4f6;
}

.kb-accordion-trigger-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.kb-accordion-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
}

.kb-accordion-chevron {
  font-size: 0.7rem;
  color: #9ca3af;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.kb-accordion-trigger[aria-expanded="true"] .kb-accordion-chevron {
  transform: rotate(180deg);
}

.kb-accordion-body {
  display: none;
  padding: 1rem 1.375rem 1.25rem;
}

.kb-accordion-body.is-open {
  display: block;
}

.kb-accordion-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 2rem;
}

.kb-accordion-links li a {
  font-size: 0.86rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.7;
  display: block;
}

.kb-accordion-links li a:before {
  content: '→ ';
  color: #d1d5db;
}

.kb-accordion-links li a:hover {
  color: var(--primary, #059669);
}

/* ---------------------------------------------------------------
   ARTICLE LAYOUT (kb-article.html)
--------------------------------------------------------------- */

.kb-article-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 4rem;
  align-items: start;
}

.kb-article-main {
  min-width: 0;
}

/* Breadcrumbs */
.kb-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 1.75rem;
}

.kb-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
}

.kb-breadcrumbs a:hover {
  color: var(--primary, #059669);
  text-decoration: underline;
}

.kb-breadcrumbs .sep {
  color: #d1d5db;
}

.kb-breadcrumbs .current {
  color: #374151;
  font-weight: 500;
}

/* Article header */
.kb-article-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f3f4f6;
}

.kb-article-category-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary, #059669);
  background: #f0fdf7;
  border: 1px solid #a7f3d0;
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.875rem;
}

.kb-article-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 0.875rem;
  letter-spacing: -0.01em;
}

.kb-article-dek {
  font-size: 1.075rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.kb-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.79rem;
  color: #9ca3af;
}

.kb-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Mobile TOC */
.kb-toc-mobile {
  display: none;
  margin-bottom: 2rem;
}

.kb-toc-mobile-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.kb-toc-mobile-trigger .chevron {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: #9ca3af;
}

.kb-toc-mobile-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.kb-toc-mobile-body {
  display: none;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.75rem 1rem;
}

.kb-toc-mobile-body.is-open {
  display: block;
}

.kb-toc-mobile-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-toc-mobile-body a {
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.85;
  display: block;
}

.kb-toc-mobile-body a:hover {
  color: var(--primary, #059669);
}

/* Prose / article body */
.kb-prose {
  font-size: 1rem;
  line-height: 1.78;
  color: #374151;
}

.kb-prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.75rem 0 0.875rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
  scroll-margin-top: 6rem;
}

.kb-prose h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.kb-prose h3 {
  font-size: 1.075rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2rem 0 0.5rem;
  scroll-margin-top: 6rem;
}

.kb-prose h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: #374151;
  margin: 1.5rem 0 0.375rem;
  scroll-margin-top: 6rem;
}

.kb-prose p {
  margin: 0 0 1.25rem;
}

.kb-prose ul {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.kb-prose li {
  margin-bottom: 0.35rem;
}

.kb-prose ol {
  counter-reset: step-counter;
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

/* Green circle counter — top-level items only */
.kb-prose ol > li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
}

.kb-prose ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary, #059669);
  color: #fff;
  border-radius: 50%;
  font-size: 0.73rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nested lists inside prose ol — restore normal appearance */
.kb-prose ol ol,
.kb-prose ol ul {
  list-style: disc;
  counter-reset: none;
  margin: 0.5rem 0 0.5rem 0;
  padding-left: 1.25rem;
}

.kb-prose ol ol {
  list-style: decimal;
}

.kb-prose ol ol li,
.kb-prose ol ul li {
  counter-increment: none;
  padding-left: 0;
  margin-bottom: 0.3rem;
}

.kb-prose ol ol li::before,
.kb-prose ol ul li::before {
  display: none;
}

.kb-prose a {
  color: var(--primary, #059669);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kb-prose a:hover {
  color: var(--primary-dark, #047857);
}

.kb-prose code {
  background: #f4f4f5;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  padding: 0.125em 0.425em;
  font-size: 0.875em;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  color: #0f172a;
}

.kb-prose pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.625rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

.kb-prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.kb-prose blockquote {
  border-left: 4px solid var(--primary, #059669);
  padding: 0.875rem 1.25rem;
  background: #f0fdf7;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: #374151;
}

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

.kb-prose blockquote > :first-child {
  margin-top: 0;
}

.kb-prose hr {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 2rem 0;
}

.kb-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.kb-prose th {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 0.625rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
}

.kb-prose td {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 1rem;
  color: #374151;
}

.kb-prose tr:hover td {
  background: #f9fafb;
}

/* ---------------------------------------------------------------
   STICKY TOC SIDEBAR (desktop)
--------------------------------------------------------------- */

.kb-toc-sidebar {
  position: sticky;
  top: 5.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.kb-toc-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 1rem;
}

.kb-toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.kb-toc-list li {
  border-left: 2px solid #e5e7eb;
  padding-left: 0.875rem;
  margin-bottom: 0;
  transition: border-color 0.15s;
}

.kb-toc-list li.active {
  border-color: var(--primary, #059669);
}

.kb-toc-list a {
  font-size: 0.815rem;
  color: #6b7280;
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding: 0.275rem 0;
  transition: color 0.15s;
}

.kb-toc-list a:hover,
.kb-toc-list li.active a {
  color: var(--primary, #059669);
}

.kb-toc-list a.toc-h3 {
  font-size: 0.775rem;
  padding-left: 0.75rem;
}

.kb-toc-cta {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.815rem;
  color: #6b7280;
  line-height: 1.5;
}

.kb-toc-cta a {
  color: var(--primary, #059669);
  text-decoration: none;
  font-weight: 600;
}

.kb-toc-cta a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   ARTICLE BOTTOM SECTIONS
--------------------------------------------------------------- */

.kb-article-bottom {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* Next Steps */
.kb-bottom-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.kb-next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.875rem;
}

.kb-next-step-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  color: #0f172a;
  display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.kb-next-step-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
  text-decoration: none;
  color: #0f172a;
}

.kb-next-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary, #059669);
  margin-bottom: 0.375rem;
}

.kb-next-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Related in Category */
.kb-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.kb-related-list a {
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid #f3f4f6;
}

.kb-related-list a:hover {
  color: var(--primary, #059669);
}

.kb-related-list a:before {
  content: '→ ';
  color: #d1d5db;
}

/* Feedback */
.kb-feedback {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.kb-feedback-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.kb-feedback-btns {
  display: flex;
  gap: 0.5rem;
}

.kb-feedback-btn {
  padding: 0.45rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 2rem;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.kb-feedback-btn:hover {
  border-color: var(--primary, #059669);
  color: var(--primary, #059669);
  background: #f0fdf7;
}

.kb-feedback-btn.is-selected {
  background: var(--primary, #059669);
  color: #fff;
  border-color: var(--primary, #059669);
}

.kb-feedback-thanks {
  display: none;
  font-size: 0.875rem;
  color: var(--primary, #059669);
  font-weight: 500;
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */

@media (max-width: 1024px) {
  .kb-article-outer {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 1.5rem 3rem;
  }

  .kb-toc-sidebar {
    display: none;
  }

  .kb-toc-mobile {
    display: block;
  }
}

@media (max-width: 768px) {
  .kb-search-block {
    padding: 2.5rem 0 2rem;
  }

  .kb-search-heading {
    font-size: 1.25rem;
  }

  .kb-search-form {
    flex-direction: column;
  }

  .kb-search-btn {
    width: 100%;
  }

  .kb-workflow-grid {
    grid-template-columns: 1fr;
  }

  .kb-category-grid {
    grid-template-columns: 1fr;
  }

  .kb-updated-grid {
    grid-template-columns: 1fr;
  }

  .kb-accordion-links {
    grid-template-columns: 1fr;
  }

  .kb-workflows,
  .kb-categories,
  .kb-updated,
  .kb-topics {
    padding: 3rem 0;
  }

  .kb-section-title {
    font-size: 1.4rem;
  }

  .kb-article-title {
    font-size: 1.625rem;
  }

  .kb-article-outer {
    padding: 1.5rem 1rem 2.5rem;
  }

  .kb-next-steps-grid {
    grid-template-columns: 1fr;
  }

  .kb-feedback {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .kb-prose h2 {
    font-size: 1.2rem;
  }
}
