/* Screen-reader only (visually hidden, accessible to crawlers) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

:root {
  --color-primary-text: #333;
  --color-secondary-text: #888;
  --color-white: #fff;
  --color-lighter-gray: #f6f6f6;
  --color-light-gray: #e6e6e6;
  --color-light-tint: rgba(196, 215, 246, 1);
  --color-mid-gray: #ccc;
  --color-dark-gray: #444;
  --color-darker-gray: #15171a;
  --color-black: #000;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  --head-nav-gap: 2.8rem;
  --h1-size: 4.6rem;
  --gap: 3.6rem;
  --font-museo: 'MuseoSansCyrl', sans-serif, BlinkMacSystemFont;
  --ghost-accent-color: #4A85E5;
}

.post-header-container,
.post-content-wrapper-outside {
  margin: 0;
}

.post-page .post-header-container,
.post-page .post-content-wrapper-outside {
  margin-left: 15px;
  margin-right: 15px;
}

.post-page .post-content-wrapper-inside hr:last-of-type {
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
}

.post-content-wrapper-inside {
  margin-top: 0 !important;
}

.head.gh-outer {
  padding-left: 15px;
  padding-right: 15px;
}

.glossary-page .post-content-wrapper-inside {
  margin-top: 4rem !important;
}

@media (max-width: 767px) {
  .glossary-page .post-content-wrapper-inside {
    margin-top: 3.2rem !important;
  }
}

.post-content-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.right-panel-container {
  max-width: 400px;
  height: fit-content;
  top: 100px;
  margin-top: 4rem;
}

.post-page .right-panel-container {
  margin-top: 3.8rem;
}

@media (max-width: 1024px) {
  .right-panel-container {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 1000px) {
  .right-panel-container {
    display: none;
  }
}

.right-panel-container .h2-list {
  margin-bottom: 40px;
}

.right-panel-container .h2-list:last-child {
  margin-bottom: 0;
}

.right-panel-container .h2-list-title {
  margin: 0 0 20px 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  color: #333;
}

.right-panel-container .h2-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.right-panel-container .h2-list-link {
  display: block;
  text-decoration: none;
  color: #4A85E5;
  font-size: 19px;
  line-height: 31px;
}

.right-panel-container .h2-list-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.mobile-wrapper-toc {
  display: none;
}

@media (max-width: 1000px) {
  .mobile-wrapper-toc {
    display: block;
  }
}

.mobile-wrapper-toc .toc-title {
  margin: 0 0 20px 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  color: #333;
}

.mobile-wrapper-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-wrapper-toc .toc-item {
  margin: 0;
}

.mobile-wrapper-toc .toc-item:last-child {
  margin-bottom: 0;
}

.mobile-wrapper-toc .toc-link {
  display: block !important;
  text-decoration: none !important;
  color: #4A85E5 !important;
  font-size: 19px !important;
  line-height: 31px !important;
}

.mobile-wrapper-toc .toc-link:hover {
  opacity: 0.8 !important;
  text-decoration: none !important;
}

.right-panel-container .bookmarks-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.right-panel-container .bookmarks-section:first-child {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .right-panel-container .bookmarks-section {
    display: none;
  }
}

.right-panel-container .bookmarks-title {
  margin: 0 0 10px 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  color: #333;
}

a.kg-bookmark-container {
  border: 2px solid rgba(196, 215, 246, 1) !important;
  border-radius: 12px !important;
}

.right-panel-container .kg-bookmark-card:last-child {
  margin-bottom: 0;
}

.right-panel-container .kg-bookmark-card.moved-bookmark {
  overflow: hidden;
}

.post-content-wrapper-inside > .kg-card.kg-image-card + p {
  margin-top: 28px !important;
}

.gh-content .gh-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.gh-content .gh-table-scroll table {
  min-width: 100%;
}

/* Ghost pages: full-width layout (1200px max, no side columns) — release-notes, glossary, roadmap, etc. */
.gh-page .gh-canvas {
  grid-template-columns:
    [full-start] minmax(var(--gap), auto)
    [wide-start] minmax(auto, 1fr)
    [main-start] min(1200px, calc(100% - var(--gap) * 2))
    [main-end] minmax(auto, 1fr)
    [wide-end] minmax(var(--gap), auto)
    [full-end];
}

.gh-page .post-header-container {
  margin: 0 !important;
}

.gh-page .post-content-wrapper-outside {
  margin-left: 0;
  margin-right: 0;
}

.gh-page .gh-main,
.glossary-page .gh-main,
.post-page .gh-main,
.tag-main,
.author-page .gh-main {
  padding-bottom: 0;
}

/* Glossary: additional layout for col-2/col-3 structure */
.glossary-page .gh-article-title {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.glossary-page hr {
  margin-bottom: 30px;
}

.glossary-page .col-2 {
  float: left;
  width: 25%;
}

.glossary-page .col-2 ul {
  margin-top: 0;
}

.glossary-page .col-3 {
  float: left;
  width: 70%;
  font-size: 19px;

}

.glossary-page .row::after {
  content: '';
  display: table;
  clear: both;
}

@media screen and (max-width: 1200px) {
  .glossary-page .col-2,
  .glossary-page .col-3 {
    width: 100%;
  }
}

.loading-spinner {
  display: inline-block;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: passwork-loading-circle-animation 1.5s infinite linear;
  border: 2px solid rgba(79, 132, 226, 0.2);
  border-top: 2px solid #4f84e2;
  border-left: 2px solid #4f84e2;
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

@keyframes passwork-loading-circle-animation {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toastFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Keep load-more hover subtle, without border emphasis */
.gh-loadmore:hover {
  border-color: var(--color-light-gray) !important;
  box-shadow: none !important;
  opacity: 0.8;
}

.pw-footer {
  border-top: 1px solid #e6eaf3;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 70px auto 0;
  width: 100%;
}

.pw-footer-desktop {
  margin-top: 40px;
  display: grid;
  gap: 40px 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pw-footer-col-title {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: #0b0b0b;
}

.pw-footer-links {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.pw-footer-links li + li {
  margin-top: 13px;
}

.pw-footer-link {
  color: #2c2e30;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
}

.pw-footer-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.pw-footer-mobile {
  display: none;
  margin: 0;
  border-top: 1px solid #e6eaf3;
}

.pw-footer-acc {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #e6eaf3;
}

.pw-footer-acc-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pw-footer-acc-summary {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
  color: #0b0b0b;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
}

.pw-footer-acc-icons {
  display: inline-flex;
}

.pw-footer-acc-icons img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.pw-footer-acc-icon-minus {
  display: none;
}

.pw-footer-acc-toggle:checked + .pw-footer-acc-summary .pw-footer-acc-icon-minus {
  display: inline-block;
}

.pw-footer-acc-toggle:checked + .pw-footer-acc-summary .pw-footer-acc-icon-plus {
  display: none;
}

.pw-footer-acc-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 200ms linear;
}

.pw-footer-acc-toggle:checked ~ .pw-footer-acc-content {
  grid-template-rows: 1fr;
}

.pw-footer-acc-links {
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-footer-acc-links li + li {
  margin-top: 15px;
}

.pw-footer-acc-toggle:checked ~ .pw-footer-acc-content .pw-footer-acc-links {
  padding-bottom: 15px;
}

.pw-footer-bottom {
  margin-top: 40px;
  border-top: 1px solid #e6eaf3;
  padding: 40px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pw-footer-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pw-footer-copy {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 21px;
  font-weight: 300;
  text-align: center;
}

.pw-mobile-break {
  display: none;
}

.pw-lang-switcher {
  position: relative;
}

.pw-lang-switcher-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  line-height: 19px;
  color: #2c2e30;
  font-weight: 300;
}

.pw-lang-label {
  display: inline-flex;
  align-items: center;
}

.pw-lang-flag {
  width: 24px;
  height: 16px;
  margin-right: 13px;
  flex-shrink: 0;
}

.pw-lang-switcher-summary::-webkit-details-marker {
  display: none;
}

.pw-lang-chevron-up {
  display: none;
}

.pw-lang-switcher[open] .pw-lang-chevron-up {
  display: inline-block;
}

.pw-lang-switcher[open] .pw-lang-chevron-down {
  display: none;
}

.pw-lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 104px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
  z-index: 30;
}

.pw-lang-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 5px;
  color: #2c2e30;
  text-decoration: none;
}

.pw-lang-item:hover {
  opacity: 1;
  background: rgba( 79, 132, 226, 0.1);
}

.pw-lang-item.is-active {
  color: #b1b1b1;
  pointer-events: none;
}

@media (max-width: 625px) {
  .pw-footer {
    border-top: none;
    padding-bottom: 25px;
  }

  .pw-footer-desktop {
    display: none;
  }

  .pw-footer-mobile {
    display: block;
  }

  .pw-footer-bottom {
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: none;
    margin-top: 0;
  }

  .pw-footer-copy {
    width: 100%;
    order: -1;
    text-align: left;
  }

  .pw-mobile-break {
    display: inline;
  }
}

/* Empty state (no posts, error fallback) */
.gh-empty-state {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 200px 0 100px;
}
.gh-empty-state-message {
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 24px;
  color: #080808;
  font-weight: 300;
}
.gh-empty-state-link-wrap {
  margin-top: 4px;
  font-size: 18px;
  line-height: 24px;
  color: #080808;
  font-weight: 300;
}
.gh-empty-state-link {
  color: #4f84e2;
  text-decoration: none;
}

/* Not found page content */
.gh-not-found {
  text-align: center;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gh-not-found h1 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 42px;
  line-height: 50px;
  color: #080808;
  font-weight: 700;
}
.gh-not-found p {
  font-size: 18px;
  line-height: 24px;
  color: #080808;
  font-weight: 300;
}
.gh-not-found .gh-not-found-link-wrap {
  margin-top: 4px;
}
.gh-not-found a {
  color: #4f84e2;
  text-decoration: none;
}

/* CookieYes revisit button positioning */
body > .cky-btn-revisit-wrapper.cky-revisit-bottom-left {
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 20px;
  width: 62px;
  height: 62px;
}
