:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --text: #212529;
  --heading: #1a1d21;
  --text-soft: #6c757d;
  --accent: #007bff;
  --accent-2: #3395ff;
  --border: #dee2e6;
  --danger: #cc3344;
  --radius: 4px;
  --shadow: 0 10px 24px rgba(14, 31, 53, 0.08);
  --container: min(1180px, 92vw);
  --home-horizontal-height: 272px;
}

html[data-theme="dark"] {
  --bg: #121416;
  --surface: #1b1f24;
  --surface-2: #242a31;
  --text: #e5e7eb;
  --heading: #f0f3f7;
  --text-soft: #a1a8b3;
  --accent: #58a6ff;
  --accent-2: #79b8ff;
  --border: #343b45;
  --shadow: 0 16px 30px rgba(2, 7, 13, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-2);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-main {
  flex: 1 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent);
  padding: 10px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  container-type: inline-size;
}

.header-menu-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-title {
  font: 700 1.28rem/1 "Sora", "Segoe UI", sans-serif;
  color: var(--text);
}

.site-title:hover,
.site-title:focus,
.site-title:focus-visible,
.site-title:active {
  color: var(--text);
  text-decoration: none;
}

.primary-nav {
  flex: 1;
  min-width: 0;
}

.primary-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav ul {
  overflow-x: auto;
  scrollbar-width: thin;
}

.primary-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  align-items: center;
}

.menu-toggle,
.menu-close {
  display: none;
}

.menu-toggle-state {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-backdrop {
  display: none;
}

.icon-button {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.menu-toggle.icon-button,
.menu-close.icon-button {
  display: none;
}

@container (max-width: 980px) {
  .menu-toggle.icon-button {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 220;
    width: min(340px, 88vw);
    height: 100dvh;
    border-left: 1px solid var(--border);
    background: var(--surface);
    padding: 76px 14px 20px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s ease;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    background: var(--surface-2);
  }

  .menu-toggle-state:checked ~ .header-menu-row .primary-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle-state:checked ~ .header-menu-row .menu-close.icon-button {
    display: inline-flex;
    position: absolute;
    top: 16px;
    left: 14px;
    z-index: 2;
  }

  .menu-toggle-state:checked ~ .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 210;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--bg) 68%, transparent);
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
}

.icon-button .bi {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.icon-button .theme-toggle-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button,
.search-submit {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font: 600 0.9rem/1 "IBM Plex Sans", "Segoe UI", sans-serif;
  cursor: pointer;
}

button:hover,
button:focus-visible,
.search-submit:hover,
.search-submit:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-field {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
}

.quick-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(5, 7, 12, 0.88);
  padding: clamp(22px, 4vw, 50px);
}

.quick-search-overlay[hidden] {
  display: none !important;
}

.quick-search-dialog {
  width: min(1060px, 94vw);
  margin-top: min(29vh, 260px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.search-overlay-head {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.search-overlay-close-text {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  color: #fff;
  font: 700 1.12rem/1 "IBM Plex Sans", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.overlay-search-form {
  grid-template-columns: 1fr auto;
  gap: 0;
  margin-top: 0;
  align-items: stretch;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 18px;
}

.search-input-icon {
  display: inline-flex;
  color: #11161d;
}

.search-input-icon .bi {
  width: 34px;
  height: 34px;
  font-size: 34px;
  line-height: 34px;
}

.overlay-search-form .search-field {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #11161d;
  font-size: clamp(1.3rem, 2.35vw, 2rem);
  font-weight: 500;
  padding: 0;
}

.overlay-search-form .search-field::placeholder {
  color: #6b7684;
}

.overlay-search-form .search-field:focus {
  outline: none;
}

.overlay-search-form .search-submit {
  min-width: 88px;
  min-height: 66px;
  border-radius: 0 4px 4px 0;
  padding: 0;
  border-color: #0c1017;
  background: #0c1017;
  color: #fff;
}

.overlay-search-form .search-submit svg {
  width: 28px;
  height: 28px;
}

.layout.with-sidebar {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 28px;
  margin-bottom: 40px;
}

.layout.no-sidebar {
  margin-bottom: 40px;
}

.layout.with-sidebar > * {
  min-width: 0;
}

.layout.with-sidebar > .sidebar {
  position: sticky;
  top: var(--sidebar-sticky-top, 74px);
  align-self: start;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-top-stories {
  margin-top: 14px;
  margin-bottom: 28px;
}

.home-top-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-top-headline h1 {
  margin: 0;
  font-size: 1.35rem;
}

.home-top-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.home-top-tags a {
  font-size: 1.05rem;
  color: var(--text-soft);
}

.home-top-featured {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  border-radius: 10px;
  overflow: clip;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.home-top-featured-media {
  display: block;
  min-height: 320px;
  background: var(--surface-2);
  line-height: 0;
  position: relative;
  overflow: hidden;
}

.home-top-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-top-featured-body {
  padding: 30px 22px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  align-content: center;
  gap: 14px;
}

.home-top-featured-body h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.1vw, 2.35rem);
}

.home-top-featured-body h2 a,
.home-top-featured-body p,
.home-top-featured-body a {
  color: inherit;
}

.home-top-featured-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-top-mini-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: clip;
}

.home-top-mini-media {
  display: block;
  width: 100%;
  height: 170px;
  min-height: 170px;
  background: var(--surface-2);
  line-height: 0;
  position: relative;
  overflow: hidden;
}

.home-top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-top-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.home-top-mini-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-top-media-fallback {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--surface-2);
}

.home-top-mini-body {
  padding: 12px;
  flex: 1 1 auto;
}

.home-top-mini-body h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.home-top-mini-body h3 a {
  color: var(--heading);
}

.home-top-featured-body h2 a,
.home-top-mini-body h3 a,
.home-horizontal-title a,
.post-card-title a {
  color: var(--heading);
  transition: color 0.2s ease;
}

.home-top-featured-body h2 a:hover,
.home-top-featured-body h2 a:focus-visible,
.home-top-mini-body h3 a:hover,
.home-top-mini-body h3 a:focus-visible,
.home-horizontal-title a:hover,
.home-horizontal-title a:focus-visible,
.post-card-title a:hover,
.post-card-title a:focus-visible {
  color: color-mix(in srgb, var(--heading) 80%, var(--accent) 20%);
}

.home-latest {
  margin-bottom: 26px;
}

.home-trending {
  margin-bottom: 22px;
}

.section-header-separated {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-header-separated h2 {
  margin: 0;
  white-space: nowrap;
}

.section-separator {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.home-most-read-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-most-read-grid .post-card {
  margin-bottom: 0;
  border-radius: 10px;
}

.home-most-read-grid .post-card-body {
  padding: 12px;
}

.home-most-read-grid .post-card-meta {
  display: none;
}

.home-most-read-grid .post-card-title {
  font-size: 1.02rem;
  margin: 6px 0;
}

.home-most-read-grid .post-card-title a {
  color: var(--heading);
}

.home-most-read-grid .post-card-title a:hover,
.home-most-read-grid .post-card-title a:focus-visible {
  color: color-mix(in srgb, var(--heading) 80%, var(--accent) 20%);
}

.home-most-read-grid .post-card-excerpt {
  display: none;
}

.home-latest-list {
  display: grid;
  gap: 16px;
  grid-auto-rows: var(--home-horizontal-height);
}

.home-latest-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.home-latest-load-more {
  min-width: 190px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font: 700 0.92rem/1 "IBM Plex Sans", "Segoe UI", sans-serif;
}

.home-latest-load-more[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.home-horizontal-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.55fr);
  height: var(--home-horizontal-height);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: clip;
}

.home-horizontal-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
}

.home-horizontal-title {
  margin: 0 0 10px;
  font-size: 2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.home-horizontal-title a {
  color: var(--heading);
}

.home-horizontal-excerpt {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.08rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.home-horizontal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  margin-top: auto;
}

.home-horizontal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
}

.home-horizontal-pill.is-category {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 82%, var(--accent) 18%);
}

.home-horizontal-media {
  display: block;
  height: 100%;
  background: var(--surface-2);
  line-height: 0;
  position: relative;
  overflow: hidden;
}

.home-horizontal-image,
.home-horizontal-image-fallback {
  width: 100%;
  height: 100%;
}

.home-horizontal-image {
  display: block;
  object-fit: cover;
}

.home-horizontal-image-fallback {
  background: var(--surface-2);
}

.post-card-image-fallback {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
}

.post-card-media.is-media-fallback,
.home-horizontal-media.is-media-fallback,
.home-top-mini-media.is-media-fallback,
.home-top-featured-media.is-media-fallback {
  background: var(--surface-2);
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

body.search .post-card,
body.category .post-card,
body.tag .post-card,
body.author .post-card,
body.error404 .post-card {
  border-radius: 10px;
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  line-height: 0;
  position: relative;
  overflow: hidden;
}

.post-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-media::after,
.home-horizontal-media::after,
.home-top-mini-media::after,
.home-top-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.post-card-media:hover::after,
.post-card-media:focus-within::after,
.home-horizontal-media:hover::after,
.home-horizontal-media:focus-within::after,
.home-top-mini-media:hover::after,
.home-top-mini-media:focus-within::after,
.home-top-featured-media:hover::after,
.home-top-featured-media:focus-within::after {
  opacity: 1;
}

.post-card-body {
  padding: 14px;
}

.post-card-meta {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.post-card-title {
  margin: 8px 0;
  font-size: 1.15rem;
}

body.category .post-card-title a,
body.tag .post-card-title a,
body.author .post-card-title a,
body.error404 .post-card-title a {
  color: var(--heading);
}

body.category .post-card-title a:hover,
body.category .post-card-title a:focus-visible,
body.tag .post-card-title a:hover,
body.tag .post-card-title a:focus-visible,
body.author .post-card-title a:hover,
body.author .post-card-title a:focus-visible,
body.error404 .post-card-title a:hover,
body.error404 .post-card-title a:focus-visible {
  color: color-mix(in srgb, var(--heading) 80%, var(--accent) 20%);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 24px;
}

.featured-post-kicker {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.featured-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.category-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.category-block ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

article.single-post,
.related-posts,
.sidebar .widget,
.not-found {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 18px;
  margin-bottom: 18px;
}

.related-posts .post-grid {
  gap: 12px;
}

.related-posts .post-card {
  border-radius: 8px;
}

.related-posts .post-card-media {
  aspect-ratio: 16 / 8;
}

.related-posts .post-card-body {
  padding: 10px;
}

.related-posts .post-card-meta {
  font-size: 0.74rem;
  gap: 8px;
}

.related-posts .post-card-title {
  margin: 6px 0 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.related-posts .post-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

body.error404 .not-found {
  margin-top: 14px;
}

body.single .layout.with-sidebar {
  margin-top: 14px;
}

body.category .layout.with-sidebar > .sidebar,
body.tag .layout.with-sidebar > .sidebar,
body.author .layout.with-sidebar > .sidebar,
body.search .layout.with-sidebar > .sidebar,
body.date .layout.with-sidebar > .sidebar {
  margin-top: 14px;
}

body.page .layout.no-sidebar {
  margin-top: 14px;
}

body.single {
  background: var(--bg) !important;
}

body.single .site-main,
body.single .site-main > .container,
body.single .content-area {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.single-post-category {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.single-post-header h1 {
  margin: 0 0 12px;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.single-post-thumb {
  margin: 14px 0 18px;
}

.single-post-content {
  overflow-wrap: anywhere;
}

.single-post-content img,
.single-post-content iframe,
.single-post-content table,
.single-post-content pre {
  max-width: 100%;
}

.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 14px 0;
}

.single-post-content table th,
.single-post-content table td {
  padding: 10px;
  border: 1px solid var(--border);
  color: var(--heading);
  vertical-align: top;
}

.single-post-content table th {
  background: color-mix(in srgb, var(--surface-2) 78%, var(--surface));
  font-weight: 700;
}

.single-post-content table tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
}

.single-post-content table tbody tr:nth-child(even) td {
  background: var(--surface);
}

html[data-theme="dark"] .single-post-content table,
html[data-theme="dark"] .single-post-content table tr,
html[data-theme="dark"] .single-post-content table th,
html[data-theme="dark"] .single-post-content table td {
  color: var(--text) !important;
  border-color: var(--border);
}

html[data-theme="dark"] .single-post-content table th {
  background: color-mix(in srgb, var(--surface-2) 84%, var(--surface)) !important;
}

html[data-theme="dark"] .single-post-content table tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--surface-2) 76%, var(--surface)) !important;
}

html[data-theme="dark"] .single-post-content table tbody tr:nth-child(even) td {
  background: var(--surface) !important;
}

.post-source-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  margin-top: 16px;
  padding: 5px 10px;
  border: 1px dotted color-mix(in srgb, var(--border) 78%, var(--text-soft) 22%);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface-2) 86%, var(--surface));
}

.post-source-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--heading) 78%, var(--text) 22%);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  padding: 0 10px 0 0;
  border-right: 1px solid color-mix(in srgb, var(--border) 78%, var(--text-soft) 22%);
}

.post-source-link {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-source-link:hover,
.post-source-link:focus-visible {
  color: var(--text-soft);
  text-decoration: none;
}

.native-share {
  margin-top: 10px;
  padding-top: 8px;
}

.native-share-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
}

.native-share-title::before,
.native-share-title::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid var(--border);
}

.native-share-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.native-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  color: #ffffff;
  background-clip: padding-box;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.native-share-btn .bi {
  font-size: 26px;
  line-height: 1;
}

.native-share-btn:hover,
.native-share-btn:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.native-share-facebook {
  background: #1877f2;
}

.native-share-twitter {
  background: #111111;
}

.native-share-whatsapp {
  background: #25d366;
}

.native-share-telegram {
  background: #229ed9;
}

.native-share-linkedin {
  background: #0a66c2;
}

.native-share-email {
  background: #7ea94b;
}

.native-share-copy {
  background: #f4c214;
}

.native-share-copy .bi {
  font-size: 27px;
}

@media (max-width: 640px) {
  .native-share-btn {
    width: 40px;
    height: 40px;
  }

  .native-share-btn .bi {
    font-size: 23px;
  }

  .native-share-copy .bi {
    font-size: 24px;
  }

  .native-share-title {
    font-size: 1.04rem;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .post-source-box {
    column-gap: 8px;
    padding: 5px 8px;
  }

  .post-source-label {
    font-size: 0.82rem;
    padding: 0 8px 0 0;
  }

  .post-source-link {
    font-size: 0.82rem;
  }
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.meta-badge .bi {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
  color: var(--accent);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.post-tags .tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.post-tags .tag-badge:hover,
.post-tags .tag-badge:focus-visible {
  background: color-mix(in srgb, var(--surface-2) 82%, var(--accent) 18%);
  border-color: color-mix(in srgb, var(--border) 70%, var(--accent) 30%);
  color: var(--text);
  transform: none;
}

.comments-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 18px;
  margin-bottom: 18px;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 14px;
  color: var(--heading);
}

.comments-heading {
  margin-bottom: 14px;
}

.comments-list-heading {
  margin-top: 8px;
}

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-list .comment,
.comment-list .comment-item,
.comment-list li {
  min-width: 0;
}

.comment-list .children {
  margin-top: 12px;
  margin-left: 18px;
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.comment-list .comment-body {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-author-meta {
  min-width: 0;
}

.comment-author-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-author .fn,
.comment-author .says {
  font-style: normal;
}

.comment-author .fn {
  color: var(--heading);
  font-weight: 700;
}

.comment-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #2f90ff;
}

.comment-admin-badge .bi {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.comment-metadata {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.comment-metadata a {
  color: inherit;
}

.comment-reply-to {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.comment-reply-to .bi {
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
}

.comment-reply-to a {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

.comment-reply-to a:hover,
.comment-reply-to a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.comment-content p {
  margin: 0 0 10px;
}

.comment-content,
.comment-content p,
.comment-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reply {
  margin-top: 8px;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-navigation a {
  color: var(--heading);
}

.comments-area .comment-respond {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}

.comment-reply-compose {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.comment-reply-compose.is-inline-reply {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0;
}

.comments-reply-heading {
  margin-bottom: 10px;
}

.comment-form-reply {
  margin-bottom: 4px;
}

.reply-form-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reply-form-actions .submit,
.reply-form-actions .comment-reply-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 40px;
  padding: 0 16px;
  font: 700 0.9rem/1 "IBM Plex Sans", "Segoe UI", sans-serif;
}

.comment-reply-cancel {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}

.comment-reply-cancel:hover,
.comment-reply-cancel:focus-visible {
  color: var(--heading);
  border-color: color-mix(in srgb, var(--border) 68%, var(--accent) 32%);
  background: color-mix(in srgb, var(--surface) 84%, var(--accent) 16%);
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.comment-reply-target {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 86%, var(--accent) 14%);
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
}

.comment-reply-target[hidden] {
  display: none !important;
}

.comment-reply-target .bi {
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
}

.comment-form p {
  margin: 0;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email {
  grid-column: span 1;
}

.comment-form .comment-form-comment,
.comment-form .comment-notes,
.comment-form .logged-in-as,
.comment-form .form-submit,
.comment-form .comment-form-cookies-consent {
  grid-column: 1 / -1;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  font: 400 0.95rem/1.5 "IBM Plex Sans", "Segoe UI", sans-serif;
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comments-area .submit {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--heading);
  font: 700 0.9rem/1 "IBM Plex Sans", "Segoe UI", sans-serif;
  cursor: pointer;
}

.comments-area .submit:hover,
.comments-area .submit:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.comment-form .form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  margin-bottom: 12px;
}

.no-comments {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.widget-title {
  margin-top: 0;
}

.widget_teknobuk_categories_widget,
.widget_teknobuk_popular_posts_widget {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-2)) 0%, var(--surface) 100%);
}

.widget_teknobuk_categories_widget .widget-title,
.widget_teknobuk_popular_posts_widget .widget-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  font-size: 1.04rem;
}

.teknobuk-widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.teknobuk-widget-categories li,
.teknobuk-widget-popular-posts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 78%, var(--surface));
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.teknobuk-widget-categories li {
  justify-content: flex-start;
}

.teknobuk-widget-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
  color: var(--text-soft);
}

.teknobuk-widget-categories li:hover,
.teknobuk-widget-categories li:focus-within,
.teknobuk-widget-popular-posts li:hover,
.teknobuk-widget-popular-posts li:focus-within {
  border-color: color-mix(in srgb, var(--border) 60%, var(--accent) 40%);
  background: color-mix(in srgb, var(--surface-2) 68%, var(--accent) 10%);
}

.teknobuk-widget-categories li a,
.teknobuk-widget-post-link {
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.teknobuk-widget-categories li a:hover,
.teknobuk-widget-categories li a:focus-visible,
.teknobuk-widget-post-link:hover,
.teknobuk-widget-post-link:focus-visible {
  color: color-mix(in srgb, var(--heading) 74%, var(--accent) 26%);
}

.teknobuk-widget-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-width: 30px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 80%, var(--accent) 20%);
  color: var(--accent);
  font-size: 0.74rem;
  line-height: 1;
}

.teknobuk-widget-popular-posts li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 78px;
}

.teknobuk-widget-post-media {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  line-height: 0;
}

.teknobuk-widget-post-thumb,
.teknobuk-widget-post-thumb-fallback {
  width: 100%;
  height: 100%;
}

.teknobuk-widget-post-thumb {
  display: block;
  object-fit: cover;
}

.teknobuk-widget-post-thumb-fallback {
  display: block;
  background: color-mix(in srgb, var(--surface-2) 86%, var(--surface));
}

.teknobuk-widget-post-meta {
  display: none;
}

.teknobuk-widget-post-meta .bi {
  font-size: 12px;
  color: var(--accent);
}

.pagination,
.nav-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.nav-links {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.page-numbers {
  border-right: 1px solid var(--border);
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
}

.page-numbers:last-child {
  border-right: 0;
}

.page-numbers:hover,
.page-numbers:focus-visible {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--accent-2);
}

.page-numbers.dots {
  color: var(--text-soft);
  pointer-events: none;
}

.page-numbers.current {
  color: var(--accent);
  background: var(--surface);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 20px 0 38px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-inner p {
  margin: 0;
  order: 1;
}

.footer-nav {
  order: 2;
  margin-left: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, var(--heading));
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .home-most-read-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :root {
    --home-horizontal-height: 244px;
  }

  .home-top-featured {
    grid-template-columns: 1fr;
  }

  .home-top-featured-media {
    min-height: 250px;
  }

  .home-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-top-mini-media {
    height: 160px;
    min-height: 160px;
  }

  .header-menu-row {
    gap: 6px;
  }

  .layout.with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout.with-sidebar > .sidebar {
    position: static;
    top: auto;
  }

  .category-blocks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-header-separated {
    gap: 8px;
  }

  .home-most-read-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-most-read-grid .post-card-title {
    font-size: 0.95rem;
  }

  :root {
    --home-horizontal-height: 360px;
  }

  .home-top-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-top-tags {
    justify-content: flex-start;
    gap: 10px;
  }

  .home-top-featured-media {
    min-height: 210px;
  }

  .home-top-featured-body {
    padding: 22px 16px;
  }

  .home-top-grid {
    grid-template-columns: 1fr;
  }

  .home-top-mini-media {
    height: 190px;
    min-height: 190px;
  }

  .home-horizontal-card {
    grid-template-columns: 1fr;
    height: var(--home-horizontal-height);
  }

  .home-horizontal-media {
    min-height: 0;
    height: 180px;
  }

  .home-horizontal-body {
    padding: 14px;
  }

  .home-horizontal-title {
    font-size: 1.38rem;
  }

  .home-horizontal-excerpt {
    font-size: 0.98rem;
  }

  .header-inner {
    align-items: center;
  }

  .site-header .menu-toggle.icon-button {
    display: inline-flex;
  }

  .site-header .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 220;
    width: min(340px, 88vw);
    height: 100dvh;
    border-left: 1px solid var(--border);
    background: var(--surface);
    padding: 76px 14px 20px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s ease;
  }

  .site-header .primary-nav ul {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
  }

  .site-header .primary-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    background: var(--surface-2);
  }

  .menu-toggle-state:checked ~ .header-menu-row .primary-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle-state:checked ~ .header-menu-row .menu-close.icon-button {
    display: inline-flex;
    position: absolute;
    top: 16px;
    left: 14px;
    z-index: 2;
  }

  .menu-toggle-state:checked ~ .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 210;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--bg) 68%, transparent);
    padding: 0;
    margin: 0;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .overlay-search-form {
    margin-top: 0;
  }

  .quick-search-dialog {
    margin-top: min(24vh, 190px);
  }

  .search-overlay-head {
    margin-bottom: 12px;
  }

  .search-overlay-close-text {
    font-size: 0.96rem;
  }

  .search-input-wrap {
    padding: 0 12px;
    gap: 8px;
  }

  .search-input-icon .bi {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
  }

  .overlay-search-form .search-field {
    min-height: 54px;
    font-size: 1.1rem;
  }

  .overlay-search-form .search-submit {
    min-width: 62px;
    min-height: 54px;
  }

  .comments-area {
    padding: 14px;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-list .children {
    margin-left: 8px;
    padding-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    margin-left: 0;
  }

  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}
