:root {
  --font-family-titles: "Inter", sans-serif;
  --font-family-body:   "Inter", sans-serif;
  --font-weight-titles: 700;
  --font-weight-body:   500;

  --h1-font-size:        5.2rem;
  --h1-line-height:      120%;
  --h1-letter-spacing:   -0.02em;
  --h2-font-size:        4rem;
  --h2-line-height:      120%;
  --h2-letter-spacing:   -0.02em;
  --h3-font-size:        2.6rem;
  --h3-line-height:      120%;
  --h3-letter-spacing:   -0.03em;
  --h4-font-size:        2.2rem;
  --h4-line-height:      120%;
  --h4-letter-spacing:   -0.03em;
  --h5-font-size:        1.8rem;
  --h5-line-height:      120%;
  --h5-letter-spacing:   -0.03em;
  --h6-font-size:        1.6rem;
  --h6-line-height:      120%;
  --h6-letter-spacing:   -0.03em;

  --text-L-font-size:    1.8rem;
  --text-L-line-height:  140%;
  --text-L-letter-spacing: -0.02em;
  --text-M-font-size:    1.6rem;
  --text-M-line-height:  140%;
  --text-M-letter-spacing: -0.02em;
  --text-S-font-size:    1.4rem;
  --text-S-line-height:  140%;
  --text-S-letter-spacing: -0.02em;
  --text-XS-font-size:   1.2rem;
  --text-XS-line-height: 140%;
  --text-XS-letter-spacing: -0.02em;

  --tier-font-size:      1rem;
  --tier-line-height:    140%;
  --tier-letter-spacing: 0.02em;
  --tier-font-weight:    700;

  --brand:               #000000;
  --brand-on:            #ffffff;
  --brand-soft:          rgba(0, 0, 0, 0.06);
  --brand-bg:            #000000;

  --accent-color:        var(--brand);
  --dark-color:          #000000;
  --gray-color:          #585858;
  --stroke-color:        #dfdfdf;
  --light-bg-color:      #f3f3f3;
  --white-color:         #ffffff;
  --page-bg:             #f5f5f7;
  --title-bg-color:      #000000;
  --tag-bg-color:        #000000;
}

html:not([data-theme=dark]) .switch-theme-btn::before { left: 50%; }
html:not([data-theme=dark]) .switch-theme-btn .dark-mode-icon { color: var(--gray-color); }

html[data-theme=dark] {
  --brand:           #ffffff;
  --brand-on:        #1d1d1f;
  --brand-soft:      rgba(255, 255, 255, 0.08);
  --brand-bg:        #373737;
  --dark-color:      #ffffff;
  --gray-color:      #9b9b9b;
  --stroke-color:    #404040;
  --light-bg-color:  #373737;
  --white-color:     #1d1d1f;
  --page-bg:         #272727;
  --title-bg-color:  #000000;
}

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

html { font-size: 10px; scroll-behavior: smooth; }

body {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  font-size: var(--text-M-font-size);
  line-height: var(--text-M-line-height);
  letter-spacing: var(--text-M-letter-spacing);
  background-color: var(--page-bg);
  color: var(--dark-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.post-layout {
  max-width: 1240px;
  width: calc(100% - 40px);
  height: 100%;
  margin: 0 auto;
}

#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex-grow: 1; }

.main {
  flex-grow: 1;
  padding-top: 32px;
  padding-bottom: 120px;
}

.main > section { padding: 40px 0; }
.main > section:first-of-type { padding-top: 0; }

.header {
  left: 0;
  background-color: var(--white-color);
  z-index: 4500;
  height: 72px;
  border-bottom: 1px solid var(--stroke-color);
  transition: background-color .3s ease, border-color .3s ease;
}

.has-sticky-header .header {
  position: sticky;
  top: 0;
}

#reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-color, #1a1a1a);
  z-index: 4600;
  transition: width .1s linear;
  pointer-events: none;
}

.read-next-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 360px;
  background: var(--white-color);
  border: 1px solid var(--stroke-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 4400;
  transform: translateY(calc(100% + 32px));
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
  opacity: 0;
}

.read-next-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.read-next-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--stroke-color);
}

.read-next-popup__label {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-color);
}

.read-next-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gray-color);
  border-radius: 4px;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}
.read-next-popup__close:hover {
  background: var(--light-bg-color);
  color: var(--dark-color);
}

.read-next-popup__card {
  display: flex;
  gap: 12px;
  padding: 12px 16px 16px;
  text-decoration: none;
  color: inherit;
}
.read-next-popup__card:hover .read-next-popup__title {
  color: var(--gray-color);
}

.read-next-popup__img-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
}
.read-next-popup__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.read-next-popup__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.read-next-popup__cat {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  color: var(--gray-color);
  display: block;
}

.read-next-popup__title {
  font-family: var(--font-family-titles);
  font-size: var(--text-M-font-size);
  font-weight: var(--font-weight-titles);
  line-height: 1.3;
  color: var(--brand);
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .read-next-popup {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

.header__wrapper {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 16px; }

.logo__title {
  font-family: var(--font-family-titles);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: var(--brand);
  white-space: nowrap;
}

.logo__img { max-height: 40px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-grow: 1;
}

.nav-item { position: relative; }

.nav-item__link,
.nav-link,
.nav-list a {
  font-family: var(--font-family-titles);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  color: var(--brand);
  padding: 4px 12px;
  display: block;
  white-space: nowrap;
  transition: opacity .3s ease;
}

.nav-item__link:hover,
.nav-link:hover,
.nav-list a:hover { opacity: 0.65; }

.nav-item .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white-color);
  border: 1px solid var(--stroke-color);
  border-radius: 4px;
  min-width: 180px;
  list-style: none;
  display: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-item:hover .sub-menu { display: block; }

.nav-item .sub-menu a {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: var(--font-weight-body);
  line-height: var(--text-M-line-height);
  letter-spacing: var(--text-M-letter-spacing);
  color: var(--brand);
  padding: 8px 16px;
  display: block;
  transition: background-color .2s ease;
}

.nav-item .sub-menu a:hover { background-color: var(--light-bg-color); }

.header-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  color: var(--brand);
  padding: 6px 8px;
}

.search-toggle-label { display: none; }

.btn-header-cta {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: 700;
  background-color: var(--brand);
  color: var(--brand-on);
  border-radius: 4px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: opacity .3s ease;
}

.btn-header-cta:hover { opacity: 0.8; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--brand);
}

.header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-drawer-actions { display: none; }

.search-bar { padding: 12px 0; border-top: 1px solid var(--stroke-color); }
.search-bar[hidden] { display: none; }

.post-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-tag {
  border-radius: 0px;
  padding: 2px 6px;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-tag__name {
  font-family: var(--font-family-body);
  font-size: var(--tier-font-size);
  font-weight: var(--tier-font-weight);
  line-height: var(--tier-line-height);
  letter-spacing: var(--tier-letter-spacing);
  text-transform: uppercase;
  color: #fff;
}

.header-layout {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-layout__title {
  font-family: var(--font-family-titles);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h3-line-height);
  letter-spacing: var(--h3-letter-spacing);
  color: var(--accent-color);
}

.header-layout__link {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: var(--font-weight-body);
  line-height: var(--text-M-line-height);
  letter-spacing: var(--text-M-letter-spacing);
  color: var(--gray-color);
}

.post-card-author {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-author__img-link { flex-shrink: 0; }

.post-card-author__img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-author__name-wrapper { display: flex; align-items: center; gap: 3px; }

.post-card-author__name-prefix,
.post-card-author__name {
  font-size: var(--text-XS-font-size);
  opacity: 0.8;
  color: #fff;
}

.three-col-grid-layout__posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card-medium {
  max-width: 403px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.post-card-medium__img-link-wrapper {
  position: relative;
  padding: 16px;
  padding-bottom: 35px;
  height: 226px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card-medium__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-family-titles);
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  align-self: flex-start;
}

.post-card-medium__img-link {
  position: absolute;
  display: block;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
}

.post-card-medium__img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: scale .3s ease;
}

.post-card-medium:hover .post-card-medium__img { scale: 1.05; }

.post-card-medium__img-link-wrapper .post-tags {
  position: relative;
  top: auto; left: auto;
  z-index: 3;
  align-self: flex-end;
}

.post-card-medium__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px 16px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.post-card-medium__heading-link {
  font-family: var(--font-family-titles);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-titles);
  line-height: 3.5rem;
  letter-spacing: var(--h3-letter-spacing);
  color: #fff;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(to right, var(--title-bg-color) 0%, var(--title-bg-color) 100%);
  background-size: 100%;
  background-repeat: no-repeat;
  padding: 0px 8px;
  display: inline;
}

.post-card-medium__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-color);
  margin-top: auto;
}

.post-card-medium__date {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  opacity: 0.8;
}

.post-card-medium .post-card-author__name-prefix,
.post-card-medium .post-card-author__name {
  color: var(--gray-color);
  opacity: 0.8;
}

.post-card-medium__link {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 4;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: 700;
  background-color: var(--brand);
  color: var(--brand-on);
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  cursor: pointer;
  transition: opacity .3s ease;
}

.btn-load-more:hover { opacity: 0.8; }
.btn-load-more:disabled { opacity: 0.4; cursor: not-allowed; }

.single-wrap { padding: 40px 0; }

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
}

.breadcrumb ol li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
}

.article-header { margin-bottom: 32px; }

.article-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.badge-cat {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  font-weight: 700;
  background-color: var(--brand);
  color: var(--brand-on);
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-title {
  font-family: var(--font-family-titles);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  color: var(--dark-color);
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-color);
  font-size: var(--text-S-font-size);
}

.author-avatar { border-radius: 50%; object-fit: cover; }

.article-meta-text { display: flex; flex-direction: column; gap: 2px; }

.author-name, .article-date { font-size: var(--text-S-font-size); }

.article-hero-img { margin-bottom: 32px; }

.article-featured-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 520px;
  object-fit: cover;
}

.article-content {
  font-size: var(--text-L-font-size);
  line-height: 1.75;
  color: var(--dark-color);
  max-width: 720px;
}

.article-content h2, .article-content h3, .article-content h4 {
  font-family: var(--font-family-titles);
  font-weight: var(--font-weight-titles);
  margin: 32px 0 16px;
}

.article-content p { margin-bottom: 20px; }
.article-content a { color: var(--brand); text-decoration: underline; }
.article-content img { border-radius: 8px; margin: 24px 0; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }

.tag-pill {
  font-size: var(--text-XS-font-size);
  border: 1px solid var(--stroke-color);
  border-radius: 20px;
  padding: 4px 14px;
  color: var(--gray-color);
  transition: border-color .2s;
}

.tag-pill:hover { border-color: var(--brand); }

.related-section { padding: 40px 0; background-color: var(--light-bg-color); }

.archive-header {
  background-color: var(--white-color);
  padding: 40px 0;
  border-bottom: 1px solid var(--stroke-color);
  margin-bottom: 40px;
}

.archive-label {
  font-size: var(--text-XS-font-size);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-color);
  display: block;
  margin-bottom: 8px;
}

.archive-title {
  font-family: var(--font-family-titles);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  color: var(--dark-color);
}

.archive-desc {
  color: var(--gray-color);
  margin-top: 12px;
  max-width: 600px;
  font-size: var(--text-M-font-size);
}

.archive-count {
  color: var(--gray-color);
  font-size: var(--text-S-font-size);
  margin-top: 8px;
}

.pagination-wrap { margin-top: 48px; }

.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.page-numbers {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--dark-color);
  border: 1px solid var(--stroke-color);
  padding: 0 8px;
}

.page-numbers.current {
  background-color: var(--brand);
  color: var(--brand-on);
  border-color: var(--brand);
}

.page-numbers:hover:not(.current) { background-color: var(--light-bg-color); }

.search-form { display: flex; gap: 8px; }

.search-field {
  flex-grow: 1;
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  padding: 10px 16px;
  border: 1px solid var(--stroke-color);
  border-radius: 4px;
  background: var(--white-color);
  color: var(--dark-color);
}

.search-submit {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: 700;
  background-color: var(--brand);
  color: var(--brand-on);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
}

.newsletter-section {
  background-color: var(--white-color);
  border-top: 1px solid var(--stroke-color);
  padding: 56px 0;
}

.newsletter-inner {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-text { flex: 1; min-width: 240px; }

.newsletter-title {
  font-family: var(--font-family-titles);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h3-line-height);
  letter-spacing: var(--h3-letter-spacing);
  color: var(--dark-color);
  margin-bottom: 8px;
}

.newsletter-subtitle {
  font-size: var(--text-M-font-size);
  color: var(--gray-color);
}

.newsletter-form { flex: 1; min-width: 280px; }

.newsletter-group { display: flex; gap: 8px; }

.newsletter-input {
  flex-grow: 1;
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  padding: 10px 16px;
  border: 1px solid var(--stroke-color);
  border-radius: 4px;
  background: var(--white-color);
  color: var(--dark-color);
}

.newsletter-btn {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: 700;
  background-color: var(--brand);
  color: var(--brand-on);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .3s ease;
}

.newsletter-btn:hover { opacity: 0.8; }

.site-footer {
  background-color: var(--white-color);
  border-top: 1px solid var(--stroke-color);
  padding: 56px 0 32px;
}

.footer-top {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand { flex: 0 0 220px; }

.footer-logo-link {
  font-family: var(--font-family-titles);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-titles);
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  flex: 1;
}

.footer-col { flex: 1; min-width: 120px; }

.footer-col-title {
  font-family: var(--font-family-titles);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  color: var(--brand);
  margin-bottom: 16px;
}

.footer-col-title a { color: var(--brand); }

.footer-col-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col-list a {
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
  transition: color .2s ease;
}

.footer-col-list a:hover { color: var(--brand); }

.footer-bottom {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--stroke-color);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-family: var(--font-family-body);
  font-size: var(--text-S-font-size);
  line-height: var(--text-S-line-height);
  letter-spacing: var(--text-S-letter-spacing);
  color: var(--gray-color);
}

.footer-legal-menu { display: flex; gap: 16px; list-style: none; }

.footer-legal-menu a {
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
}

.no-results-section,
.no-results { text-align: center; padding: 80px 20px; }

.no-results-title {
  font-family: var(--font-family-titles);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-titles);
  color: var(--dark-color);
  margin-bottom: 16px;
}

.no-results-text {
  color: var(--gray-color);
  font-size: var(--text-M-font-size);
}

.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img { border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.nav-menu { list-style: none; padding: 0; margin: 0; }
.nav-menu li { position: relative; }
.nav-menu a { display: block; }

.nav-list > .menu-item { position: relative; }

.nav-list > .menu-item > a {
  font-family: var(--font-family-titles);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  color: var(--brand);
  padding: 4px 12px;
  display: block;
  white-space: nowrap;
  transition: opacity .3s ease;
}

.nav-list > .menu-item > a:hover { opacity: 0.65; }

.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white-color);
  border: 1px solid var(--stroke-color);
  border-radius: 4px;
  min-width: 180px;
  list-style: none;
  display: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-list .menu-item:hover > .sub-menu { display: block; }

.nav-list .sub-menu .menu-item a {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  font-weight: var(--font-weight-body);
  line-height: var(--text-M-line-height);
  letter-spacing: var(--text-M-letter-spacing);
  color: var(--brand);
  padding: 8px 16px;
  display: block;
  transition: background-color .2s ease;
}

.nav-list .sub-menu .menu-item a:hover { background-color: var(--light-bg-color); }


@media (max-width: 900px) {
  .three-col-grid-layout__posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --h1-font-size: 3.6rem;
    --h2-font-size: 2.8rem;
    --h3-font-size: 2.2rem;
    --h4-font-size: 1.8rem;
  }

  .post-layout { width: calc(100% - 32px); }
  .main { padding-bottom: 60px; }

  .menu-toggle { display: flex; }

  .header-btns .switch-theme-btn { display: none; }
  .header-btns .btn-header-cta   { display: none; }

  #site-navigation { display: none; }
  #site-navigation.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--stroke-color);
    z-index: 4000;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  #site-navigation.is-open .nav-list {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
  }
  #site-navigation.is-open .nav-list > .menu-item > a {
    padding: 12px 24px;
    font-size: var(--h4-font-size);
  }
  #site-navigation.is-open .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: none;
    background-color: var(--light-bg-color);
  }
  #site-navigation.is-open .menu-item.is-open > .sub-menu { display: block; }

  .nav-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--stroke-color);
    flex-shrink: 0;
  }

  .three-col-grid-layout__posts { grid-template-columns: 1fr; }
  .post-card-medium { max-width: 100%; }

  .newsletter-group { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { flex: none; }
}

@media (max-width: 480px) {
  .post-card-big-secondary { min-height: 200px; }
  .search-form { flex-direction: column; }
}

.header-layout__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.four-col-grid-layout__posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.four-col-grid-layout .post-card-big-secondary { max-width: 100%; }

.post-card-big-secondary {
  position: relative;
  max-width: 402px;
  min-height: 223px;
  width: 100%;
  flex-grow: 1;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}

.post-card-big-secondary::before {
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,0) 39.01%, rgba(0,0,0,0.5) 65.92%);
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  border-radius: 8px;
}

.post-card-big-secondary__img-link {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 8px;
}

.post-card-big-secondary__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .3s ease;
}

.post-card-big-secondary:hover .post-card-big-secondary__img { scale: 1.05; }

.post-card-big-secondary__content {
  display: flex;
  flex-direction: column;
  padding: 10px 16px 16px 10px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.post-card-big-secondary__heading {
  margin-top: auto;
  margin-left: 6px;
  padding-top: 16px;
  font-family: var(--font-family-titles);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: #fff;
}

.post-card-big-secondary__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-left: 6px;
  min-height: 28px;
}

.post-card-big-secondary__date {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  color: #fff;
  opacity: 0.8;
}

.post-card-big-secondary__link {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 3;
}

.post-card-big-secondary .post-tags { position: relative; z-index: 5; }

.breadcrumbs {
  list-style: none;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs__item {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  font-weight: var(--font-weight-body);
  color: var(--gray-color);
  text-transform: capitalize;
}

.breadcrumbs__item:nth-of-type(n + 2) { margin-left: 8px; }

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--gray-color);
}

.breadcrumbs__link {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  color: var(--gray-color);
  display: inline;
  padding-bottom: 2px;
  background-position: left 85%;
  background-size: 100% 5%;
  background-image: linear-gradient(to right, var(--gray-color) 0%, var(--gray-color) 100%);
  background-repeat: no-repeat;
  transition: background-size .3s ease-in-out, color .3s ease;
}

.breadcrumbs__link:hover { background-size: 0% 5%; }

.page-header { margin-bottom: 24px; }

.page-header__title {
  font-family: var(--font-family-titles);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  color: var(--dark-color);
}

.page-header__excerpt {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  color: var(--gray-color);
  margin-top: 12px;
  max-width: 600px;
}

.page-header__count {
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
  margin-top: 8px;
}

.post-page { padding-bottom: 120px; }

.post-page__breadcrumbs {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

.post-page__wrapper {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 32px auto 0;
}

.post--has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  column-gap: 32px;
  align-items: start;
}
.post--has-sidebar .sidebar      { grid-column: 2; grid-row: 1 / span 20; }
.post--has-sidebar .post-content { grid-column: 1; }
.post--has-sidebar .post-footer  { grid-column: 1; }

.post-header { position: relative; margin-bottom: 40px; }

.post-header__img-wrapper {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  max-height: 468px;
}

.post-header__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 468px;
}

.post-header__overlapping {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 5;
  margin-top: -80px;
  padding: 0 24px;
}

.post-header__title {
  font-family: var(--font-family-titles);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
}

.post-header__title--with-bg span {
  color: #fff;
  border-radius: 2px;
  line-height: 6.6rem;
  background-image: linear-gradient(to right, var(--title-bg-color) 0%, var(--title-bg-color) 100%);
  background-size: 100%;
  background-repeat: no-repeat;
  padding: 0px 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.post-header__excerpt {
  font-family: var(--font-family-body);
  font-size: var(--post-paragraph-font-size, 2rem);
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.02em;
  color: var(--gray-color);
  max-width: 714px;
}

.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-color);
}

.post-header__date {
  font-family: var(--font-family-body);
  font-size: var(--text-XS-font-size);
  opacity: 0.8;
}

.post-content {
  font-family: var(--font-family-body);
  color: var(--dark-color);
  padding: 0 8px;
  min-width: 0;
}

.post-content > * {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.post-content > *:first-child { margin-top: 0; }
.post-content > *:last-child  { margin-bottom: 0; }

.post-content p {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: var(--dark-color);
}

.post-content h2 {
  font-family: var(--font-family-titles);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-letter-spacing);
  color: var(--dark-color);
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-family: var(--font-family-titles);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h3-line-height);
  letter-spacing: var(--h3-letter-spacing);
  color: var(--dark-color);
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content h4 {
  font-family: var(--font-family-titles);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: var(--dark-color);
  margin-top: 24px;
  margin-bottom: 8px;
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 8px;
}

.post-content figcaption {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  color: var(--gray-color);
  margin-bottom: 40px;
}

.post-content a {
  display: inline;
  color: var(--brand);
  font-size: 1.8rem;
  background-position: left 85%;
  background-size: 100% 5%;
  background-image: linear-gradient(to right, var(--brand) 0%, var(--brand) 100%);
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s ease-in-out, color .3s ease;
}

.post-content a:hover { background-size: 0% 5%; }

.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  font-size: 1.8rem;
  line-height: 160%;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 4px solid var(--dark-color);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--gray-color);
  font-size: 2rem;
  font-style: italic;
}

.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke-color); }
.post-footer__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar__posts-wrapper { display: flex; flex-direction: column; gap: 8px; }

.sidebar__posts-title {
  font-family: var(--font-family-titles);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: var(--brand);
  margin-bottom: 16px;
}

.sidebar__posts { display: flex; flex-direction: column; gap: 8px; }

.sidebar .post-card-big-secondary {
  min-height: 169px;
  height: auto;
  max-width: 100%;
}

.sidebar .post-card-big-secondary__heading {
  font-size: var(--h5-font-size);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  margin-left: 6px;
}

.sidebar .post-card-big-secondary__meta { margin-top: 8px; min-height: auto; }
.sidebar .post-card-big-secondary__content { padding-right: 10px; }

.sidebar-toc { display: flex; flex-direction: column; gap: 0; }

.sidebar-toc__item {
  display: flex;
  border-bottom: 1px solid var(--stroke-color);
}

.sidebar-toc__link {
  font-family: var(--font-family-body);
  font-size: var(--text-S-font-size);
  font-weight: var(--font-weight-body);
  color: var(--brand);
  opacity: 0.72;
  padding: 10px 0;
  display: block;
  width: 100%;
  transition: color .2s ease;
  line-height: 1.4;
}

.sidebar-toc__link:hover { opacity: 1; }

.sidebar-toc__item--h3 .sidebar-toc__link { padding-left: 16px; font-size: var(--text-XS-font-size); }

.post-read-next {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 56px auto 0;
}

.post-read-next__posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  margin-top: 24px;
}

.switch-theme-btn {
  height: 40px;
  padding: 4px;
  background-color: var(--light-bg-color);
  display: flex;
  border-radius: 4px;
  position: relative;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .3s ease, background-color .3s ease;
}

.switch-theme-btn::before {
  content: "";
  height: 32px;
  width: 32px;
  border-radius: 4px;
  background-color: var(--white-color);
  position: absolute;
  left: 4px;
  top: 4px;
  transition: left .6s cubic-bezier(0.23, 1, 0.32, 1), background-color .3s ease;
}

html[data-theme=light] .switch-theme-btn::before { left: 50%; }

.switch-theme-btn__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  position: relative;
  z-index: 10;
}

.switch-theme-btn__btn { color: var(--dark-color); transition: color .3s ease; }

html[data-theme=light] .switch-theme-btn .dark-mode-icon { color: var(--gray-color); }
html[data-theme=dark]  .switch-theme-btn .light-mode-icon { color: rgba(255,255,255,.53); }
html[data-theme=dark]  .switch-theme-btn .dark-mode-icon { color: #fff; }

.switch-theme-btn__btn svg path,
.switch-theme-btn__btn svg circle { transition: fill .3s ease; }

.switch-theme-btn:hover { opacity: 0.9; }

@media (max-width: 1100px) {
  .four-col-grid-layout__posts { grid-template-columns: repeat(2, 1fr); }
  .post-read-next__posts { grid-template-columns: repeat(2, 1fr); }
  .post--has-sidebar { column-gap: 24px; }
}

@media (max-width: 1000px) {
  .post-page__wrapper { width: 100%; }
  .post--has-sidebar {
    display: flex;
    flex-direction: column;
  }
  .post--has-sidebar .post-header     { order: 1; }
  .post--has-sidebar .sidebar--before { order: 2; margin-bottom: 32px; }
  .post--has-sidebar .post-content   { order: 3; }
  .post--has-sidebar .post-footer    { order: 4; }
  .post--has-sidebar .sidebar--after  { order: 5; }
  .sidebar {
    position: static;
    align-self: auto;
    top: auto;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  .sidebar__posts { flex-direction: row; flex-wrap: wrap; }
  .sidebar .post-card-big-secondary { max-width: 100%; min-height: 226px; flex: 1; min-width: 240px; }
  .post-page { padding-bottom: 80px; }
}

@media (max-width: 750px) {
  .post-header__overlapping { padding: 0 16px; margin-top: -48px; }
  .post-header__title--with-bg span { font-size: 4.4rem; line-height: 5.8rem; }
}

@media (max-width: 600px) {
  .four-col-grid-layout__posts { grid-template-columns: 1fr; }
  .post-read-next__posts { grid-template-columns: 1fr; }
}

.sidebar--toc-lines .sidebar__posts-wrapper {
  padding: 0;
}
.sidebar--toc-lines .sidebar__posts-title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 4px;
}
.sidebar--toc-lines .sidebar-toc { gap: 0; }
.sidebar--toc-lines .sidebar-toc__item {
  border-bottom: none;
  border-left: 2px solid var(--stroke-color);
  padding-left: 14px;
  margin: 2px 0;
  transition: border-color .2s ease;
}
.sidebar--toc-lines .sidebar-toc__item:hover {
  border-left-color: var(--brand);
}
.sidebar--toc-lines .sidebar-toc__item--h3 {
  padding-left: 28px;
}
.sidebar--toc-lines .sidebar-toc__link {
  padding: 5px 0;
  font-size: var(--text-S-font-size);
  color: var(--brand);
  opacity: 0.72;
}
.sidebar--toc-lines .sidebar-toc__link:hover {
  opacity: 1;
}

.sidebar--toc-card .sidebar__posts-wrapper {
  background-color: var(--brand-bg);
  border-radius: 8px;
  padding: 20px 24px;
}
.sidebar--toc-card .sidebar__posts-title {
  color: var(--white-color);
  margin-bottom: 16px;
}
html[data-theme=light] .sidebar--toc-card .sidebar__posts-title { color: #fff; }

.sidebar--toc-card .sidebar-toc__item {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.sidebar--toc-card .sidebar-toc__link {
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}
.sidebar--toc-card .sidebar-toc__link:hover {
  color: #fff;
  opacity: 1;
}

html[data-theme=dark] .sidebar--toc-card .sidebar-toc__item {
  border-bottom-color: var(--stroke-color);
}
html[data-theme=dark] .sidebar--toc-card .sidebar-toc__link {
  color: var(--gray-color);
}
html[data-theme=dark] .sidebar--toc-card .sidebar-toc__link:hover {
  color: var(--brand);
}

.footer-middle {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--stroke-color);
}

.footer-middle__sections {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-middle__section { flex: 1; min-width: 120px; }

.footer-middle__section-title {
  font-family: var(--font-family-titles);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  color: var(--dark-color);
  margin-bottom: 12px;
}

.footer-middle-nav--vertical { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-middle-nav--vertical .menu-item a {
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
  transition: color .2s ease;
}
.footer-middle-nav--vertical .menu-item a:hover { color: var(--dark-color); }

.footer-middle--horizontal .footer-middle__section { display: flex; flex-direction: column; gap: 12px; }
.footer-middle-nav--horizontal { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.footer-middle-nav--horizontal .menu-item a {
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
  padding: 4px 16px 4px 0;
  display: block;
  transition: color .2s ease;
}
.footer-middle-nav--horizontal .menu-item a:hover { color: var(--dark-color); }

@media (max-width: 768px) {
  .footer-middle { padding: 24px 0; }
  .footer-middle__sections { flex-direction: column; gap: 24px; }
}

.post-toc-inline {
  margin: 8px 8px 40px;
}

.post-toc-inline__title {
  font-family: var(--font-family-titles);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: var(--brand);
  margin-bottom: 16px;
}

.post-toc-inline__list { display: flex; flex-direction: column; }

.post-toc-inline__item { border-bottom: 1px solid var(--stroke-color); }

.post-toc-inline__link {
  font-family: var(--font-family-body);
  font-size: var(--text-S-font-size);
  color: var(--gray-color);
  padding: 10px 0;
  display: block;
  line-height: 1.4;
  transition: color .2s ease;
}
.post-toc-inline__link:hover { color: var(--dark-color); }

.post-toc-inline__item--h3 .post-toc-inline__link {
  padding-left: 18px;
  font-size: var(--text-XS-font-size);
}

@media (min-width: 1001px) {
  .post-toc-inline { display: none; }
}

.post-toc-inline--lines .post-toc-inline__title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
}
.post-toc-inline--lines .post-toc-inline__item {
  border-bottom: none;
  border-left: 2px solid var(--stroke-color);
  padding-left: 14px;
  margin: 2px 0;
  transition: border-color .2s ease;
}
.post-toc-inline--lines .post-toc-inline__item:hover {
  border-left-color: var(--dark-color);
}
.post-toc-inline--lines .post-toc-inline__item--h3 {
  padding-left: 28px;
  border-left-width: 2px;
}
.post-toc-inline--lines .post-toc-inline__link { padding: 5px 0; }

.post-toc-inline--card {
  background-color: var(--brand-bg);
  border-radius: 8px;
  padding: 24px 28px;
  margin-left: 0;
  margin-right: 0;
}
.post-toc-inline--card .post-toc-inline__title { color: #fff; }
html[data-theme=light] .post-toc-inline--card .post-toc-inline__title { color: #fff; }

.post-toc-inline--card .post-toc-inline__item {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.post-toc-inline--card .post-toc-inline__link {
  color: rgba(255, 255, 255, 0.65);
}
.post-toc-inline--card .post-toc-inline__link:hover { color: #fff; }

html[data-theme=dark] .post-toc-inline--card .post-toc-inline__title {
  color: var(--dark-color);
}
html[data-theme=dark] .post-toc-inline--card .post-toc-inline__item {
  border-bottom-color: var(--stroke-color);
}
html[data-theme=dark] .post-toc-inline--card .post-toc-inline__link {
  color: var(--gray-color);
}
html[data-theme=dark] .post-toc-inline--card .post-toc-inline__link:hover {
  color: var(--brand);
}

.cats-cta-block {
  padding: 48px 0 24px;
  border-top: 1px solid var(--stroke-color);
  margin-top: 40px;
}

.cats-cta-block__title {
  font-family: var(--font-family-titles);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-letter-spacing);
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 28px;
}

.cats-cta-block__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 600px) {
  .cats-cta-block__btns { gap: 8px; }
  .cats-cta-block__btns .btn-header-cta { font-size: 1.3rem; padding: 8px 14px; }
}

.page-404 {
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 80px 0 60px;
}

.page-404__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-404__code {
  font-family: var(--font-family-titles);
  font-size: 12rem;
  font-weight: 700;
  line-height: 1;
  color: var(--dark-color);
  margin-bottom: 16px;
}

.page-404__title {
  font-family: var(--font-family-titles);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-titles);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  color: var(--dark-color);
  margin-bottom: 16px;
}

.page-404__text {
  font-family: var(--font-family-body);
  font-size: var(--text-M-font-size);
  color: var(--gray-color);
  margin-bottom: 32px;
  max-width: 480px;
}

.page-404__latest-title {
  font-family: var(--font-family-titles);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-titles);
  color: var(--dark-color);
  margin-bottom: 24px;
  text-align: center;
}

html[data-color="navy"] {
  --brand:          #1b3a6b;
  --brand-on:       #ffffff;
  --brand-soft:     rgba(27, 58, 107, 0.07);
  --brand-bg:       #1b3a6b;
  --title-bg-color: #1b3a6b;
}
html[data-color="navy"][data-theme="dark"] {
  --brand:          #93c5fd;
  --brand-on:       #0b1220;
  --brand-soft:     rgba(147, 197, 253, 0.12);
  --brand-bg:       #1a3461;
  --title-bg-color: #1a3461;
}

html[data-color="forest"] {
  --brand:          #1d4a30;
  --brand-on:       #ffffff;
  --brand-soft:     rgba(29, 74, 48, 0.07);
  --brand-bg:       #1d4a30;
  --title-bg-color: #1d4a30;
}
html[data-color="forest"][data-theme="dark"] {
  --brand:          #86efac;
  --brand-on:       #0a2018;
  --brand-soft:     rgba(134, 239, 172, 0.12);
  --brand-bg:       #1a4228;
  --title-bg-color: #1a4228;
}

html[data-color="crimson"] {
  --brand:          #8b1a1a;
  --brand-on:       #ffffff;
  --brand-soft:     rgba(139, 26, 26, 0.07);
  --brand-bg:       #8b1a1a;
  --title-bg-color: #8b1a1a;
}
html[data-color="crimson"][data-theme="dark"] {
  --brand:          #fca5a5;
  --brand-on:       #1a0000;
  --brand-soft:     rgba(252, 165, 165, 0.12);
  --brand-bg:       #7f1818;
  --title-bg-color: #7f1818;
}

.table-scroll,
.post-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  transition: box-shadow 0.15s ease;
}

.table-scroll--has-overflow,
.post-content .wp-block-table.table-scroll--has-overflow {
  box-shadow: inset -10px 0 16px -8px rgba(0, 0, 0, 0.10);
}

html[data-theme="dark"] .table-scroll--has-overflow,
html[data-theme="dark"] .post-content .wp-block-table.table-scroll--has-overflow {
  box-shadow: inset -10px 0 16px -8px rgba(255, 255, 255, 0.08);
}

.post-content table {
  border-collapse: collapse;
  width: 100%;
  max-width: none;
  table-layout: auto;
}

.post-content .table-scroll table {
  max-width: none;
}

.post-content figure,
.post-content .wp-block-image,
.post-content .wp-block-gallery {
  width: 100%;
  max-width: 100%;
}

.post-content table th,
.post-content table td {
  padding: 10px 14px;
  border: 1px solid var(--stroke-color);
  text-align: left;
  font-size: var(--text-S-font-size);
  line-height: 1.5;
  vertical-align: top;
}

.post-content table th {
  background-color: var(--light-bg-color);
  font-weight: 700;
}

.post-content table > :first-child > tr:first-child th,
.post-content table > :first-child > tr:first-child td {
  text-align: center;
}

html[data-theme="light"] .post-content table > :first-child > tr:first-child th,
html[data-theme="light"] .post-content table > :first-child > tr:first-child td {
  background-color: #000000;
  color: #ffffff;
}

.post-content table tr:nth-child(even) td {
  background-color: var(--light-bg-color);
}

.post-content {
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-content iframe {
  max-width: 100%;
}

@media (max-width: 680px) {
  .post-content .wp-block-table table,
  .post-content .table-scroll table,
  .post-content table {
    width: max(100%, 640px);
  }

  .post-content table th,
  .post-content table td {
    padding: 8px 10px;
    font-size: var(--text-XS-font-size);
    line-height: 1.4;
  }
}

.img-placeholder { background: var(--light-bg-color); width: 100%; height: 100%; }

.post-header--overlapping .post-tags { position: relative; top: auto; left: auto; }

.post-header--overlapping .post-card-author__name-prefix,
.post-header--overlapping .post-card-author__name { color: var(--gray-color); opacity: 1; }

.page-404 .btn-load-more { display: inline-block; text-decoration: none; }
.page-404 .cats-cta-block,
.page-404 .three-col-grid-layout { margin-top: 48px; }

#search-overlay {
  background: var(--white-color);
  border-bottom: 1px solid var(--stroke-color);
  padding: 12px 0;
}

#search-overlay .post-layout { height: auto; }

iframe,
embed,
object,
video {
  max-width: 100%;
}

.story-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 32px 0 8px;
    padding: 18px 0;
    border-top: 2px solid var(--dark-color);
}

.story-share__label {
    font-family: var(--font-family-titles);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.story-share__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-share__btn {
    padding: 8px 16px;
    border: 1px solid var(--dark-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.story-share__btn:hover {
    background: var(--dark-color);
    color: #fff;
}

.lexis__wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.lexis__head {
    margin: 20px 0 26px;
}

.lexis__title {
    margin: 0 0 8px;
    font-family: var(--font-family-titles);
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: -0.02em;
    color: var(--dark-color);
}

.lexis__intro {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
    color: var(--gray-color);
}

.lexis__tools {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: 0 0 26px;
    padding: 14px 0;
    background: #fff;
    border-bottom: 2px solid var(--dark-color);
}

.lexis__alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.lexis__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border: 1px solid var(--dark-color);
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.lexis__letter:hover {
    background: var(--dark-color);
    color: #fff;
}

.lexis__letter--off {
    opacity: 0.25;
    pointer-events: none;
}

.lexis__filter {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid var(--dark-color);
    background: #fff;
    color: var(--dark-color);
    font: inherit;
    font-size: 15px;
}

.lexis__group {
    margin-bottom: 32px;
    scroll-margin-top: 110px;
}

.lexis__group-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--dark-color);
    font-family: var(--font-family-titles);
    font-size: 26px;
    letter-spacing: -0.02em;
}

.lexis__terms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.lexis__terms a:hover {
    text-decoration: underline;
}

.lexis__defs {
    margin: 0;
}

.lexis__def {
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
    scroll-margin-top: 110px;
}

.lexis__def dt {
    font-family: var(--font-family-titles);
    font-size: 19px;
    font-weight: 700;
}

.lexis__def dd {
    margin: 8px 0 0;
}

.lexis__empty {
    color: var(--gray-color);
}

.lexis-entry {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.lexis-entry__title {
    margin: 8px 0 22px;
    font-family: var(--font-family-titles);
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -0.02em;
}

.lexis-block {
    margin-top: 32px;
    padding: 20px 22px;
    border: 2px solid var(--dark-color);
}

.lexis-block__title {
    margin: 0 0 12px;
    font-family: var(--font-family-titles);
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lexis-block__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.lexis-block__list a:hover {
    text-decoration: underline;
}

.lexis-more {
    margin: 30px 0 48px;
}

.lexis-more__btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--dark-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.lexis-more__btn:hover {
    opacity: 0.85;
}

@media (max-width: 720px) {
    .lexis__terms,
    .lexis-block__list {
        grid-template-columns: 1fr;
    }
}

.faq-acc {
    border-bottom: 1px solid #ddd;
}

.faq-acc__question {
    padding: 14px 0;
    font-family: var(--font-family-titles);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.faq-acc__question:hover {
    text-decoration: underline;
}

.faq-acc__answer {
    padding: 0 0 18px;
}

.team-intro {
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 56px;
}

.team-card {
    padding: 24px;
    border: 2px solid var(--dark-color);
    text-align: center;
}

.team-card__avatar {
    margin: 0 auto 14px;
    border-radius: 50%;
}

.team-card__name {
    margin: 0 0 4px;
    font-family: var(--font-family-titles);
    font-size: 19px;
    letter-spacing: -0.02em;
}

.team-card__name a {
    color: var(--dark-color);
    text-decoration: none;
}

.team-card__role {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-color);
}

.team-card__bio {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
}

.team-card__count {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--gray-color);
}

.team-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-card__links a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--dark-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
}

.team-card__links a:hover {
    background: var(--dark-color);
    color: #fff;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
