/* Blog-only shell: use the marketing-site header/footer without changing portal shells. */
.blog-site {
  --blog-shell-line: rgba(245, 245, 243, .19);
}

.blog-site .site-header {
  position: relative;
  inset: auto;
  background: var(--paper);
}

.blog-site .header-inner {
  gap: clamp(12px, 2vw, 28px);
}

.blog-site .primary-nav {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.blog-site .primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 243, .55);
  text-underline-offset: 7px;
}

.blog-site .portal-languages {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--blog-shell-line);
  border-radius: 30px;
  font: 10px/1 "DM Mono", monospace;
}

.blog-site .portal-languages a {
  display: inline-flex;
  min-width: 37px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 30px;
  color: var(--ink);
}

.blog-site .portal-languages [aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.blog-site main {
  min-height: 65vh;
}

.blog-site .blog-footer-center {
  justify-self: center;
}

.blog-site .blog-footer-center p {
  margin: 0 0 12px;
  color: #c1c4c3;
  font-size: 11px;
  line-height: 1.8;
}

.blog-site .blog-footer-contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.blog-site .blog-footer-contact span {
  color: #e0e2e1;
}

.blog-site .blog-footer-contact:hover,
.blog-site .footer-sites a:hover,
.blog-site .footer-bottom a:hover {
  color: #c6c9c8;
}

@media (min-width: 681px) and (max-width: 1000px) {
  .blog-site .header-inner {
    width: calc(100% - 48px);
  }
  .blog-site .portal-languages {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .blog-site .primary-nav.is-open {
    z-index: 30;
  }
}

@media (max-width: 680px) {
  .blog-site .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 11px;
  }

  .blog-site .primary-nav {
    z-index: 30;
  }

  .blog-site .portal-languages {
    align-self: center;
  }

  .blog-site .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-site .blog-footer-center {
    justify-self: end;
    text-align: right;
  }

  .blog-site .footer-sites {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .blog-site .header-inner {
    gap: 7px;
  }
  .blog-site .brand {
    width: 98px;
  }
  .blog-site .portal-languages a {
    min-width: 31px;
    padding: 0 5px;
    font-size: 9px;
  }
}
