.kbl-site,
.kbl-widget {
  --kbl-ink: var(--kar-ink, #102a42);
  --kbl-navy: var(--kar-navy, #164e83);
  --kbl-teal: var(--kar-teal, #12b8ad);
  --kbl-muted: var(--kar-muted, #526980);
  --kbl-line: var(--kar-line, #dce7f0);
  --kbl-ice: var(--kar-ice, #eaf7fa);
  --kbl-dark: var(--kar-dark, #0b2540);
  color: var(--kbl-ink);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

#content.kbl-site.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 0 70px;
  background: var(--kar-bg, #f7fafc);
  line-height: 1.85;
}

.kbl-shell.kbl-stack {
  box-sizing: border-box;
  width: min(calc(100% - 72px), 1240px);
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

.kbl-shell.kbl-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
  --gap: 25px;
  --widgets-spacing: 0px;
}

.kbl-shell .kbl-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 290px);
  align-items: start;
  gap: 24px;
  padding: 0;
}

.kbl-shell .kbl-article-columns {
  grid-template-columns: minmax(0, 1fr) minmax(245px, 300px);
}

.kbl-shell :is(.kbl-main-column, .kbl-side-column) {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 0;
}

.kbl-shell .kbl-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  --gap: 16px;
}

.kbl-site .elementor-widget-karchin-blog-content:has(.kbl-widget:empty) {
  display: none;
}

.kbl-site :is(a, button, input, textarea, summary):focus-visible,
.kbl-widget :is(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid #168296;
  outline-offset: 3px;
}

.kbl-trail {
  color: var(--kbl-muted);
  font-size: .83rem;
}

.kbl-trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kbl-trail li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kbl-trail li + li::before {
  display: inline-block;
  content: "‹";
  padding-inline: .55em;
  color: #63839e;
}

.kbl-trail a {
  color: var(--kbl-navy);
  text-decoration: none;
}

.kbl-trail a:hover {
  text-decoration: underline;
}

.kbl-hero {
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: 330px;
  overflow: hidden;
  position: relative;
  border-radius: 23px;
  background: #0b2b49;
  color: #fff;
}

.kbl-hero .kbl-hero-photo {
  position: absolute;
  z-index: -2;
  inset-block: 0;
  inset-inline-end: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 56%;
}

.kbl-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(270deg, #0b2b49 33%, rgba(11, 43, 73, .94) 45%, rgba(11, 43, 73, .45) 64%, rgba(11, 43, 73, .08) 100%);
}

.kbl-hero-copy {
  position: relative;
  width: min(100%, 600px);
  padding: clamp(27px, 5vw, 61px);
}

.kbl-hero h1,
.kbl-archive-head h1,
.kbl-post-head h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 4.3vw, 3.25rem);
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.kbl-hero p {
  margin: 9px 0 22px;
  color: #dbe9f4;
  font-size: clamp(.94rem, 1.6vw, 1.12rem);
}

.kbl-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 13px;
}

.kbl-hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 13px;
  border: 1px solid #6f98b5;
  border-radius: 9px;
  color: #f3fbff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.kbl-hero-links a:hover {
  background: #ddf5f9;
  color: #10334d;
}

.kbl-search {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 450px);
  margin: 0;
  padding: 5px;
  border: 1px solid var(--kbl-line);
  border-radius: 12px;
  background: #fff;
}

.kbl-search input[type="search"] {
  min-width: 0;
  min-height: 43px;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #102a42;
  font: inherit;
  font-size: .88rem;
}

.kbl-search input::placeholder {
  color: #526980;
  opacity: 1;
}

.kbl-search button,
.kbl-shop-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--kbl-navy);
  color: white;
  font: inherit;
  font-size: .87rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.kbl-search button:hover {
  background: #10395f;
  color: white;
}

.kbl-search-on-dark button,
.kbl-shop-card > a {
  gap: 8px;
  background: var(--kbl-teal);
  color: #062b34;
}

.kbl-search-on-dark button:hover,
.kbl-shop-card > a:hover {
  background: #42d2c8;
  color: #061f2a;
}

.kbl-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kbl-section-title {
  margin: 0 0 12px;
  color: var(--kbl-ink);
  font-size: clamp(1.28rem, 2.5vw, 1.65rem);
  font-weight: 850;
  line-height: 1.55;
}

.kbl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.kbl-archive-grid .kbl-grid,
.kbl-related .kbl-grid,
.kbl-teaser .kbl-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kbl-card,
.kbl-panel,
.kbl-post-body,
.kbl-comments,
.kbl-empty {
  min-width: 0;
  border: 1px solid var(--kbl-line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 14px rgba(17, 54, 86, .04);
}

.kbl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kbl-card:hover {
  border-color: #96b9d2;
}

.kbl-card-image {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #e2f3f6, #aec8df);
}

.kbl-card-image img,
.kbl-site .kbl-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kbl-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 17px 17px;
  min-width: 0;
}

.kbl-card-title {
  margin: 6px 0 7px;
  color: var(--kbl-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.kbl-card-title a {
  color: inherit;
  text-decoration: none;
}

.kbl-card-title a:hover {
  color: var(--kbl-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kbl-card-summary {
  margin: 0 0 14px;
  color: var(--kbl-muted);
  font-size: .87rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.kbl-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--kbl-ice);
  color: var(--kbl-navy);
  font-size: .77rem;
  font-weight: 750;
  text-decoration: none;
}

.kbl-chip:hover {
  background: #ccecf0;
}

.kbl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 9px;
  color: var(--kbl-muted);
  font-size: .78rem;
}

.kbl-meta > * + *::before {
  content: "•";
  margin-inline-end: 8px;
  color: #6f92ac;
}

.kbl-card .kbl-meta {
  margin-block-start: auto;
}

.kbl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
  margin-block-end: 16px;
}

.kbl-featured .kbl-card-image {
  height: 100%;
  min-height: 210px;
  aspect-ratio: auto;
}

.kbl-featured .kbl-card-copy {
  padding: clamp(15px, 3vw, 26px);
}

.kbl-featured .kbl-card-title {
  font-size: clamp(1.14rem, 2.3vw, 1.55rem);
}

.kbl-panel {
  padding: 17px 19px;
}

.kbl-panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 850;
}

.kbl-panel p,
.kbl-news time {
  margin: 0 0 9px;
  color: var(--kbl-muted);
  font-size: .84rem;
}

.kbl-topic-links,
.kbl-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.kbl-topic-links a,
.kbl-share a {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 4px 9px;
  border: 1px solid var(--kbl-line);
  border-radius: 9px;
  background: #fff;
  color: var(--kbl-navy);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.kbl-topic-links a:hover,
.kbl-topic-links a[aria-current],
.kbl-share a:hover {
  border-color: #91bfca;
  background: var(--kbl-ice);
}

.kbl-news ul {
  display: grid;
  gap: 8px;
  margin: 0 0 9px;
  padding: 0;
  list-style: none;
}

.kbl-news li {
  display: grid;
  gap: 3px;
}

.kbl-news li + li {
  padding-block-start: 8px;
  border-block-start: 1px solid var(--kbl-line);
}

.kbl-news li a,
.kbl-text-link,
.kbl-empty a {
  color: var(--kbl-navy);
  font-size: .88rem;
  font-weight: 780;
  text-decoration: none;
}

.kbl-news li a:hover,
.kbl-text-link:hover,
.kbl-empty a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kbl-news time {
  margin: 0;
}

.kbl-text-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
}

.kbl-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--kbl-line);
  border-radius: 21px;
  background: linear-gradient(115deg, #eef7fa, #e6f0f8);
}

.kbl-archive-head h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
}

.kbl-archive-head p {
  margin: 6px 0 0;
  color: var(--kbl-muted);
}

.kbl-archive-grid {
  display: grid;
  gap: 16px;
  margin-block-start: 20px;
}

.kbl-empty {
  padding: 18px 20px;
  color: var(--kbl-muted);
}

.kbl-empty p {
  margin: 0;
}

.kbl-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.kbl-pagination .page-numbers:not(ul) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 9px;
  border: 1px solid var(--kbl-line);
  border-radius: 8px;
  background: #fff;
  color: var(--kbl-navy);
  font-weight: 750;
  text-decoration: none;
}

.kbl-pagination .page-numbers.current {
  background: var(--kbl-navy);
  color: #fff;
}

.kbl-post-head h1 {
  max-width: 920px;
  margin-block: 7px 9px;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.4;
}

.kbl-standfirst {
  max-width: 72ch;
  margin: 0 0 13px;
  color: var(--kbl-muted);
  font-size: 1.05rem;
}

.kbl-post-cover {
  margin: 20px 0 0;
}

.kbl-site .kbl-post-cover-image {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: 19px;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(17, 54, 86, .07);
}

.kbl-post-cover figcaption {
  margin-block-start: 6px;
  color: var(--kbl-muted);
  font-size: .78rem;
}

.kbl-post-body,
.kbl-comments {
  padding: clamp(18px, 3.8vw, 39px);
}

.kbl-prose {
  color: var(--kbl-ink);
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  line-height: 2;
  overflow-wrap: anywhere;
}

.kbl-prose > :first-child { margin-block-start: 0; }
.kbl-prose > :last-child { margin-block-end: 0; }

.kbl-prose :is(h2,h3,h4) {
  max-width: 100%;
  margin: 1.5em 0 .45em;
  font-weight: 850;
  line-height: 1.45;
  scroll-margin-block-start: 100px;
}

.kbl-prose h2 { font-size: 1.48em; }
.kbl-prose h3 { font-size: 1.18em; }
.kbl-prose :is(p,ul,ol,figure,pre,blockquote) { margin-block: 0 1em; }

.kbl-prose :is(a,summary),
.kbl-comments a,
.kbl-post-pages a {
  color: var(--kbl-navy);
  text-underline-offset: 4px;
}

.kbl-prose blockquote {
  margin-inline: 0;
  padding: .65em 1em;
  border-inline-start: 3px solid var(--kbl-teal);
  background: var(--kbl-ice);
}

.kbl-prose :is(iframe,img,video,figure,table) { max-width: 100%; }
.kbl-prose pre { overflow: auto; }
.kbl-prose .wp-block-table { overflow-x: auto; }

.kbl-toc {
  margin: 0 0 25px;
  padding: 11px 14px;
  border: 1px solid var(--kbl-line);
  border-radius: 10px;
  background: #f4fafc;
}

.kbl-toc summary {
  cursor: pointer;
  color: var(--kbl-ink);
  font-weight: 850;
}

.kbl-toc ol { margin: 6px 0 0; padding-inline-start: 23px; }
.kbl-toc li { padding-block: 2px; }
.kbl-toc .kbl-toc-sub { margin-inline-start: 14px; list-style-type: circle; }
.kbl-toc a { color: var(--kbl-navy); font-size: .86rem; text-decoration: underline; }

.kbl-entry-links {
  display: grid;
  gap: 11px;
  margin-block-start: 22px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--kbl-line);
}

.kbl-share span,
.kbl-post-pages > span {
  color: var(--kbl-muted);
  font-size: .82rem;
}

.kbl-shop-card {
  background: var(--kbl-dark);
  border-color: var(--kbl-dark);
  color: #fff;
}

.kbl-shop-card p {
  color: #d7e6f2;
}

.kbl-shop-card a {
  margin-block-start: 3px;
}

.kbl-teaser {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.kbl-teaser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 10px;
}

.kbl-teaser-head .kbl-section-title {
  margin: 0;
}

.kbl-comments :is(h2,h3) { font-size: 1.24rem; }
.kbl-comments :is(p,label,li) { overflow-wrap: anywhere; }
.kbl-comments :is(input,textarea,button) { font: inherit; }
.kbl-comments :is(input,textarea) { max-width: 100%; }
.kbl-comments :is(.comment-list,.children) { padding-inline-start: 1em; }

@media (max-width: 1000px) {
  .kbl-shell.kbl-stack { width: calc(100% - 44px); }
  .kbl-shell .kbl-columns { grid-template-columns: minmax(0, 1fr) minmax(215px, 255px); gap: 16px; }
  .kbl-archive-grid .kbl-grid, .kbl-related .kbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  #content.kbl-site.site-main { padding-block: 16px 52px; }
  .kbl-shell.kbl-stack { width: calc(100% - 28px); }
  .kbl-shell.kbl-stack { gap: 17px; --gap: 17px; }
  .kbl-shell .kbl-columns { grid-template-columns: minmax(0, 1fr); }
  .kbl-hero { min-height: 278px; border-radius: 16px; }
  .kbl-hero-copy { padding: 23px 18px; }
  .kbl-hero .kbl-hero-photo { width: 100%; }
  .kbl-hero::after { background: linear-gradient(270deg, rgba(11,43,73,.98), rgba(11,43,73,.83) 60%, rgba(11,43,73,.62)); }
  .kbl-archive-head { flex-direction: column; align-items: stretch; gap: 12px; border-radius: 15px; }
  .kbl-archive-head .kbl-search { width: 100%; }
  .kbl-search input[type="search"] { font-size: 1rem; }
  .kbl-teaser .kbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 490px) {
  .kbl-site .kbl-grid, .kbl-teaser .kbl-grid { grid-template-columns: minmax(0, 1fr); }
  .kbl-featured { display: flex; }
  .kbl-featured .kbl-card-image { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .kbl-card-copy { padding: 13px 14px 15px; }
  .kbl-search button { padding-inline: 11px; }
  .kbl-hero h1 { font-size: 2rem; }
  .kbl-hero-links a { min-height: 42px; }
}
