/* ============================================================
   QRATI BLOG – site.css
  Authored frontend styles for the public theme.
   ============================================================ */

:root {
  --background-rgb: 250, 250, 250;
  --foreground-rgb: 37, 38, 41;
  --muted-rgb: 229, 229, 229;
  --muted-foreground-rgb: 72, 72, 72;
  --border-rgb: 222, 222, 222;
  --popover-rgb: 245, 245, 245;
  --primary-rgb: 255, 72, 0;
  --primary-fg-rgb: 255, 255, 255;
  --input-rgb: 245, 245, 245;
  --background: rgb(var(--background-rgb));
  --foreground: rgb(var(--foreground-rgb));
  --muted: rgb(var(--muted-rgb));
  --muted-foreground: rgb(var(--muted-foreground-rgb));
  --border: rgb(var(--border-rgb));
  --popover: rgb(var(--popover-rgb));
  --input: rgb(var(--input-rgb));
  --primary: rgb(var(--primary-rgb));
  --primary-foreground: rgb(var(--primary-fg-rgb));
  --secondary: rgb(var(--primary-rgb));
  --secondary-foreground: rgb(var(--primary-fg-rgb));
  --accent: rgb(var(--primary-rgb));
  --accent-foreground: rgb(var(--primary-fg-rgb));
  --info: #2563eb;
  --warning: #f59e0b;
  --success: #10b981;
  --destructive: #ef4444;
  --ring: var(--primary);
  --popover-foreground: var(--foreground);
  --radius: 8px;
}

html.dark {
  --background-rgb: 10, 10, 10;
  --foreground-rgb: 245, 245, 245;
  --muted-rgb: 23, 23, 23;
  --muted-foreground-rgb: 181, 184, 187;
  --border-rgb: 53, 53, 56;
  --popover-rgb: 23, 23, 23;
  --primary-rgb: 255, 92, 26;
  --primary-fg-rgb: 255, 255, 255;
  --input-rgb: 23, 23, 23;
  --background: rgb(var(--background-rgb));
  --foreground: rgb(var(--foreground-rgb));
  --muted: rgb(var(--muted-rgb));
  --muted-foreground: rgb(var(--muted-foreground-rgb));
  --border: rgb(var(--border-rgb));
  --popover: rgb(var(--popover-rgb));
  --input: rgb(var(--input-rgb));
  --primary: rgb(var(--primary-rgb));
  --primary-foreground: rgb(var(--primary-fg-rgb));
  --secondary: rgb(var(--primary-rgb));
  --secondary-foreground: rgb(var(--primary-fg-rgb));
  --accent: rgb(var(--primary-rgb));
  --accent-foreground: rgb(var(--primary-fg-rgb));
  --info: #5b8def;
  --warning: #fbbf24;
  --success: #34d399;
  --destructive: #ef4444;
  --ring: var(--primary);
  --popover-foreground: var(--foreground);
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  color-scheme: light dark;
  line-height: 1.5;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(var(--background-rgb));
  color: rgb(var(--foreground-rgb));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color .2s ease, color .2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  background-color: transparent;
}

ul,
ol,
menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden]:where(:not([hidden=until-found])) {
  display: none !important;
}

::selection {
  background: rgb(var(--primary-rgb));
  color: rgb(var(--primary-fg-rgb));
}

.qb-is-hidden {
  display: none !important;
}

.qb-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.qb-icon-button:hover {
  background: var(--muted);
}

.qb-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .50rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.qb-pill-button__icon {
  font-size: 1rem;
}

.qb-pill-button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.qb-pill-button--primary:hover {
  opacity: .9;
}

.qb-pill-button--outline-primary {
  border: 1px solid var(--primary);
  background: var(--background);
  color: var(--primary);
}

.qb-pill-button--outline-primary:hover {
  background: rgba(var(--primary-rgb), .1);
}

.qb-nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .2s ease;
}

.qb-nav-link:hover,
.qb-nav-link--active {
  color: var(--primary);
}

.qb-topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1001;
  padding: 0 .75rem;
  background: var(--background);
}

.qb-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.5rem;
}

.qb-topbar__brand-group,
.qb-topbar__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.qb-topbar__brand-group {
  min-width: 0;
}

.qb-sidebar-toggle--desktop,
.qb-topbar__cta,
.qb-topbar__desktop-nav {
  display: none;
}

.qb-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  color: var(--foreground);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
}

.qb-brand-link__logo {
  width: auto;
  height: 1.5rem;
}

.qb-brand-link__label {
  padding-bottom: .25rem;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1;
}

.qb-topbar__desktop-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-weight: 500;
}

.qb-theme-switcher {
  position: relative;
}

.qb-theme-switcher__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 10;
  min-width: 11rem;
  overflow: hidden;
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--popover);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

.qb-theme-option--menu {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .5rem .75rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-size: .875rem;
  text-align: left;
  transition: background-color .2s ease;
}

.qb-theme-option--menu:hover,
.qb-theme-option.is-selected {
  background: var(--muted);
}

.qb-theme-check--menu {
  margin-left: auto;
}

.qb-topbar__spacer {
  height: 3.5rem;
}

.qb-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.qb-search-overlay__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.5rem 1rem;
}

.qb-search-overlay__form {
  width: 100%;
  max-width: 32rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--background);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.qb-search-overlay__row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.qb-search-overlay__icon {
  color: var(--muted-foreground);
}

.qb-search-overlay__input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--foreground);
  outline: none;
}

.qb-sidebar {
  position: fixed;
  left: 0;
  top: 3.5rem;
  z-index: 1000;
  display: none;
  width: 100%;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: .5rem;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
}

.qb-sidebar::-webkit-scrollbar {
  display: none;
}

.qb-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.qb-sidebar__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  border-radius: .75rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.qb-sidebar__link:hover,
.qb-sidebar__link--active {
  background: var(--muted);
}

.qb-sidebar__divider {
  margin: 1rem 0;
  border-top: 1px solid var(--border);
}

.qb-layout {
  min-height: 100vh;
  background: var(--background);
  transition: padding-left .28s ease;
}

.qb-main {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.qb-post-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qb-post-feed__main {
  min-width: 0;
  flex: 1;
}

.qb-post-feed__header {
  margin-bottom: 1.5rem;
  padding: 0 .75rem;
}

.qb-post-feed__description {
  max-width: 64rem;
  margin: 0 auto;
  color: var(--foreground);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.qb-post-feed__grid {
  display: grid;
  gap: 1.5rem;
}

.qb-post-feed__empty {
  padding: 4rem 0;
  text-align: center;
}

.qb-post-feed__empty-icon {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.qb-post-feed__empty-title {
  margin: 0;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 600;
}

.qb-post-feed__empty-description {
  margin: .5rem 0 0;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}

.qb-archive-page {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.qb-archive-page__header {
  margin-bottom: 2rem;
}

.qb-archive-page__eyebrow {
  margin: 0;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .875rem;
  font-weight: 600;
}

.qb-archive-page__title {
  margin: .5rem 0 0;
  color: var(--foreground);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 600;
}

.qb-archive-page__description {
  max-width: 42rem;
  margin: .75rem 0 0;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}

.qb-archive-page__content {
  display: grid;
  gap: 1.5rem;
}

.qb-archive-page__grid {
  display: grid;
  gap: 1.5rem;
}

.qb-not-found {
  width: min(100%, 80rem);
  min-height: 60vh;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qb-not-found__icon {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 3.75rem;
}

.qb-not-found__title {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
}

.qb-not-found__description {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}

.qb-not-found__link {
  margin-top: 2rem;
}

.qb-page-shell {
  width: min(100%, 64rem);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.qb-page-article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--popover);
  color: var(--foreground);
}

.qb-page-article__header {
  margin-bottom: 2rem;
}

.qb-page-article__title {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 600;
}

.qb-page-article__content {
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}

.qb-page-article__content > * + * {
  margin-top: 1.5rem;
}

.qb-page-article__content a {
  color: var(--primary);
}

.qb-single__content ul,
.qb-page-article__content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.qb-single__content ol,
.qb-page-article__content ol {
  padding-left: 1.5rem;
  list-style: decimal;
}

.qb-single__content li + li,
.qb-page-article__content li + li {
  margin-top: .5rem;
}

.qb-footer-shell {
  margin-top: 4rem;
}

.qb-footer-shell__desktop {
  display: none;
}

.qb-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  padding-bottom: .75rem;
}

.qb-footer-links__heading {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .875rem;
  font-weight: 500;
}

.qb-footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.qb-footer-links__item {
  text-align: center;
}

.qb-footer-links__anchor {
  color: var(--muted-foreground);
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s ease;
}

.qb-footer-links__anchor:hover {
  color: var(--info);
}

.qb-footer-shell__copyright {
  display: flex;
  justify-content: center;
  padding: .75rem 0;
  border-top: 1px solid var(--border);
}

.qb-footer-shell__copyright-text {
  color: var(--muted-foreground);
  font-size: .75rem;
}

.qb-mobile-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
  border-top: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
}

.qb-mobile-nav__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .5rem 0;
  border: 0;
  border-radius: .75rem .75rem 0 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.qb-mobile-nav__item:hover,
.qb-mobile-nav__item--active {
  background: var(--muted);
}

.qb-mobile-nav__item--active {
  color: var(--primary);
}

.qb-mobile-nav__label {
  font-size: 10px;
  font-weight: 600;
}

.qb-mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.qb-mobile-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}

.qb-mobile-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: auto auto 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--background);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, .18);
}

.qb-mobile-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .75rem;
}

.qb-mobile-sheet__title {
  color: var(--foreground);
  font-size: .875rem;
  font-weight: 600;
}

.qb-mobile-sheet__nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.qb-mobile-sheet__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color .2s ease;
}

.qb-mobile-sheet__link:hover {
  background: var(--muted);
}

.qb-mobile-sheet__link--split {
  justify-content: space-between;
}

.qb-mobile-sheet__label-group {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.qb-mobile-sheet__count {
  color: var(--muted-foreground);
}

.qb-mobile-nav__spacer {
  height: 3.5rem;
}

.qb-blog-excerpt {
  position: relative;
  width: 100%;
}

.qb-blog-excerpt__text {
  display: -webkit-box;
  overflow: hidden;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--qb-blog-excerpt-lines, 2);
}

.qb-blog-excerpt.is-expanded .qb-blog-excerpt__text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.qb-blog-excerpt__overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: .125rem;
  padding-left: .5rem;
  background: var(--popover);
}

.qb-blog-excerpt__toggle,
.qb-blog-excerpt__less {
  margin-left: .25rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25;
  border: 0;
}

.qb-blog-excerpt__toggle:hover,
.qb-blog-excerpt__less:hover {
  text-decoration: underline;
}

.qb-blog-excerpt__less {
  display: inline;
}

.qb-blog-excerpt__overlay[hidden],
.qb-blog-excerpt__less[hidden] {
  display: none !important;
}

.qb-single-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.qb-single-page__content {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 0;
}

.qb-post-pagination {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.qb-post-pagination__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--popover);
  color: var(--foreground);
  text-decoration: none;
  transition: border-color .2s ease;
}

.qb-post-pagination__link:hover {
  border-color: var(--primary);
}

.qb-post-pagination__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--foreground);
  font-size: .875rem;
  font-weight: 600;
}

.qb-post-pagination__title {
  max-width: 60%;
  overflow: hidden;
  color: var(--muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .875rem;
}

.qb-single {
  max-width: 56rem;
  margin: 0 auto;
  color: var(--foreground);
}

.qb-single__header {
  margin-bottom: 2rem;
}

.qb-single__title {
  margin: 0 0 1.5rem;
  color: var(--foreground);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.qb-single__meta {
  margin-bottom: 1.5rem;
}

.qb-single__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.qb-single__author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  object-fit: cover;
}

.qb-single__author-copy {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.qb-single__author-name {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.qb-single__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: .875rem;
}

.qb-single__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.qb-single__media {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
}

.qb-single__media-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.qb-single__watermark {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  margin: 0;
  color: var(--primary-foreground);
  font-size: 1.125rem;
  font-weight: 800;
  opacity: .75;
}

.qb-single__watermark-brand {
  color: var(--primary);
}

.qb-single__content {
  font-size: 1.125rem;
  line-height: 1.75;
}

.qb-single__content > * + * {
  margin-top: 1.5rem;
}

.qb-single__content h2,
.qb-single__content h3,
.qb-single__content h4,
.qb-single__content h5,
.qb-single__content h6 {
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.3;
}

.qb-single__content p,
.qb-single__content li {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.qb-single__content a {
  color: var(--primary);
  text-decoration: none;
}

.qb-single__content a:hover {
  text-decoration: underline;
}

.qb-single__content blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 .75rem .75rem 0;
  background: var(--muted);
  font-style: normal;
}

.qb-single__content img {
  width: 100%;
  border-radius: 1rem;
}

.qb-single__footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.qb-single__separator {
  border: 0;
  border-top: 1px solid var(--border);
}

.qb-share-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.qb-share-panel__title {
  margin: 0 0 .25rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.qb-share-panel__description {
  margin: 0;
  color: var(--muted-foreground);
  font-size: .875rem;
}

.qb-author-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qb-author-bio__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.qb-author-bio__panel {
  padding: 1.5rem;
  border-radius: .75rem;
}

.qb-author-bio__title {
  margin: 0 0 .5rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.qb-author-bio__description {
  margin: 0;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.7;
}

.qb-post-cta {
  padding: 2rem;
  border-radius: .75rem;
  text-align: center;
}

.qb-post-cta__title {
  margin: 0 0 .75rem;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 600;
}

.qb-post-cta__description {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--muted-foreground);
  font-size: .875rem;
}

.qb-post-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.qb-post-cta__button {
  border-radius: .75rem;
}

.qb-single__back-wrap {
  text-align: center;
}

.qb-single__back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s ease;
}

.qb-single__back-link:hover {
  color: var(--primary);
}

.qb-search-page {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.qb-search-page__header {
  margin-bottom: 2rem;
}

.qb-search-page__title {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 600;
}

.qb-search-page__title-highlight {
  color: var(--primary);
}

.qb-search-page__meta {
  margin: .75rem 0 0;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}

.qb-search-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--popover);
}

.qb-search-form__icon {
  color: var(--muted-foreground);
}

.qb-search-form__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--background);
  color: var(--foreground);
  padding: .875rem 1rem;
  outline: none;
}

.qb-search-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}

.qb-search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  padding: .875rem 1rem;
  transition: opacity .2s ease;
}

.qb-search-form__submit:hover {
  opacity: .9;
}

.qb-search-page__content {
  display: grid;
  gap: 1.5rem;
}

.qb-search-page__grid {
  display: grid;
  gap: 1.5rem;
}

.qb-search-pagination {
  margin-top: 2rem;
}

.qb-search-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
}

.qb-search-pagination a,
.qb-search-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 .75rem;
  border-radius: 999px;
  text-decoration: none;
}

.qb-search-pagination a {
  color: var(--foreground);
  transition: background-color .2s ease, color .2s ease;
}

.qb-search-pagination a:hover,
.qb-search-pagination .current {
  background: var(--muted);
}

.qb-search-empty {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--popover);
  text-align: center;
}

.qb-search-empty__icon {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.qb-search-empty__title {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.qb-search-empty__description {
  margin: .5rem 0 0;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}

.qb-search-empty__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color .2s ease;
}

.qb-search-empty__link:hover {
  background: var(--muted);
}

.qb-post-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.qb-post-card:hover {
  transform: translateY(-2px);
}

.qb-post-card__media-link {
  display: block;
  overflow: hidden;
}

.qb-post-card__media-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--muted);
}

.qb-post-card__media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.qb-post-card:hover .qb-post-card__media-image {
  transform: scale(1.05);
}

.qb-post-card__body {
  padding: .75rem;
}

.qb-post-card__title {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 600;
}

.qb-post-card__title-link {
  display: block;
  color: var(--foreground);
  text-decoration: none;
  transition: color .2s ease;
}

.qb-post-card__title-link:hover {
  color: var(--primary);
}

.qb-post-card__excerpt {
  margin-bottom: 1rem;
}

.qb-post-card__excerpt-text {
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.7;
}

.qb-post-card__excerpt-link {
  color: var(--primary);
}

.qb-post-card__excerpt-ellipsis {
  color: var(--muted-foreground);
}

.qb-post-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.qb-post-card__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
}

.qb-post-card__meta-copy {
  font-size: .875rem;
}

.qb-post-card__author {
  margin: 0;
  color: var(--foreground);
  font-weight: 500;
}

.qb-post-card__meta-line {
  color: var(--muted-foreground);
  font-size: .75rem;
}

.qb-blog-aside {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.qb-sidebar-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
}

.qb-sidebar-panel__title {
  margin: 0 0 1rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.qb-sidebar-panel__title--compact {
  margin-bottom: .5rem;
}

.qb-sidebar-panel__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qb-sidebar-panel__copy {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  font-size: .875rem;
}

.qb-sidebar-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .75rem;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
}

.qb-sidebar-panel__button--outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: border-color .2s ease, color .2s ease;
}

.qb-sidebar-panel__button--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qb-recent-post {
  display: block;
  text-decoration: none;
}

.qb-recent-post__row {
  display: flex;
  gap: .75rem;
}

.qb-recent-post__image {
  width: 5rem;
  height: 4rem;
  border-radius: .75rem;
  object-fit: cover;
  flex-shrink: 0;
}

.qb-recent-post__copy {
  min-width: 0;
  flex: 1;
}

.qb-recent-post__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  color: var(--foreground);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s ease;
}

.qb-recent-post:hover .qb-recent-post__title {
  color: var(--primary);
}

.qb-recent-post__meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: .25rem 0 0;
  color: var(--muted-foreground);
  font-size: .75rem;
}

.qb-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.qb-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: .875rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.qb-tag-pill:hover {
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
}

.qb-connect-promo--sidebar {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 1rem;
  color: var(--foreground);
}

.qb-connect-promo__orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.qb-connect-promo__orb--top {
  top: -2.5rem;
  right: -2.5rem;
  width: 8rem;
  height: 8rem;
}

.qb-connect-promo__orb--bottom {
  bottom: -2rem;
  left: -2rem;
  width: 6rem;
  height: 6rem;
}

.qb-connect-promo__content {
  position: relative;
  z-index: 1;
}

.qb-connect-promo__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.qb-connect-promo__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.qb-connect-promo__title {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.qb-connect-promo__description {
  margin: 0 0 1rem;
  color: var(--foreground);
  font-size: .875rem;
  line-height: 1.7;
}

.qb-connect-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .625rem 1rem;
  border-radius: .75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: opacity .2s ease;
}

.qb-connect-promo__cta:hover {
  opacity: .9;
}

@media (min-width: 640px) {
  .qb-brand-link__label {
    padding-bottom: 0;
  }

  .qb-post-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--popover);
  }

  .qb-post-card__body {
    padding: 1.5rem;
  }

  .qb-post-feed__header {
    padding: 0;
  }

  .qb-search-page {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .qb-search-form {
    flex-direction: row;
    align-items: center;
  }

  .qb-search-form__input {
    width: auto;
    flex: 1;
  }

  .qb-blog-aside {
    margin-top: 1.5rem;
  }

  .qb-page-shell,
  .qb-archive-page,
  .qb-not-found {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .qb-footer-shell__desktop {
    display: block;
  }

  .qb-mobile-nav,
  .qb-mobile-nav__spacer {
    display: none;
  }

  .qb-author-bio {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .qb-topbar__desktop-nav {
    display: flex;
    margin-left: 1.5rem;
  }

  .qb-post-feed {
    flex-direction: row;
  }

  .qb-post-feed__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qb-single-page {
    flex-direction: row;
    align-items: flex-start;
  }

  .qb-single-page__content {
    min-width: 0;
    flex: 1;
    width: auto;
    max-width: none;
  }

  .qb-search-page__content {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .qb-search-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qb-archive-page__content {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .qb-archive-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qb-blog-aside {
    position: sticky;
    top: 6rem;
    width: 20rem;
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .qb-sidebar-toggle--desktop,
  .qb-topbar__cta {
    display: inline-flex;
  }

  .qb-sidebar {
    display: block;
    width: 14rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .qb-sidebar.is-collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-100% - 1rem));
  }

  .qb-layout--sidebar-open {
    padding-left: 14rem;
  }

  .qb-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .qb-footer-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .qb-post-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .qb-sidebar {
    width: 16rem;
  }

  .qb-layout--sidebar-open {
    padding-left: 16rem;
  }
}
