/*

 * Canonical Mech page shell.

 *

 * This layer is derived from the blog visual language and owns only the

 * surrounding page: navigation, content columns, metadata, and footer.

 * Mech source, Mechdown, and the portable REPL are independent layers.

 */

:root {
  --mech-page-style-signal: 1px;

  /* ── Layout ── */
  --header-height: 0px;
  --toc-width: 260px;
  --content-max-width: 1200px;

  --nav-text-primary: var(--text-primary);
  --nav-text-active: var(--text-primary);
  --nav-text-hover: var(--accent-hover);
  --nav-accent-active: var(--accent-primary);
  --nav-accent-hover: var(--accent-hover);

  --kicker-accent: var(--mech-hero-accent);
  --hero-accent: var(--mech-hero-accent);
  --hero-text-secondary: var(--mech-text-hero-secondary);
  --hero-text-primary: var(--mech-text-hero-primary);
  --toc-accent: var(--mech-toc-accent);
  --toc-accent-soft: var(--mech-toc-accent-soft);
  --toc-text-secondary: var(--mech-toc-text);
  --toc-border: var(--mech-toc-border);
  /* ── Resize grip dimensions (non-color layout vars) ── */
  --grip-width:          8px;
  --grip-height:         50px;
  --grip-radius:         2px;
  --separator-grip-width:  8px;
  --separator-grip-height: 50px;
  --grip-notch-width:  2px;
  --grip-notch-height: 24px;

}

:root:has(.site-header) {
  --header-height: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  scroll-behavior: smooth;
  scrollbar-color: var(--mech-scrollbar) transparent;
  scrollbar-width: thin;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  position: relative;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--mech-scrollbar);
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--mech-scrollbar-hover);
  background-clip: content-box;
}

body { min-height: 100vh; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.brand img {
  width: auto;
  height: 35px;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--mech-code-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--mech-shadow-header);
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-weight: 700;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
}

.brand {
  white-space: nowrap;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-weight: 800;
}

.top-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-text-primary);
  align-self: stretch;
  align-items: stretch;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 17px 2px 17px;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: -1px;
}

.top-nav a:hover {
  color: var(--nav-text-hover);
  border-bottom-color: var(--nav-accent-hover);

}

.top-nav a.active {
  color: var(--nav-text-active);
  border-bottom-color: var(--nav-accent-active);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ── GitHub widget ── */
.widget {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.widget .btn,
.widget .social-count {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.widget .btn {
  padding: 0 12px;
  gap: 6px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-radius: 8px 0 0 8px;
}

.widget .btn:hover {
  border-color: var(--blue-primary);
  background: var(--border-strong);
}

.widget .social-count {
  padding: 0 10px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.widget .social-count:hover {
  color: var(--text-primary);
}

/* ── Content shell ── */
.content-shell {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 32px;
  padding-bottom: 0px;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  position: sticky;
  top: var(--header-height);
  align-self: start;
  scrollbar-width: thin;
  scrollbar-color: var(--mech-scrollbar) transparent;
}

.content-shell::-webkit-scrollbar {
  width: 8px;
}

.content-shell::-webkit-scrollbar-track {
  background: transparent;
}

.content-shell::-webkit-scrollbar-thumb {
  background: var(--mech-scrollbar);
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

.content-shell::-webkit-scrollbar-thumb:hover {
  background: var(--mech-scrollbar-hover);
  background-clip: content-box;
}

.content-shell {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.content-column {
  width: min(100%, var(--content-max-width));
  max-width: var(--content-max-width);
  min-width: 0;
  container-type: inline-size;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs .hero-kicker {
  margin-bottom: inherit !important;
  display: inherit !important;
  flex-wrap: inherit !important;
  gap: inherit !important;
  text-transform: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.breadcrumbs .sep { color: var(--accent-primary); }

.breadcrumbs a:hover { color: var(--accent-primary); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(380px, 1.45fr);
  gap: 18px;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kicker-accent);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.04;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mech-meta {
  margin-top: 22px;
  color: var(--hero-text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mech-meta p {
  color: inherit;
  margin: 0px;
  font-weight: 400;
}

.post-pagination{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:32px 0 20px;
  padding-top:14px;
  border-top:1px dotted var(--border);
}

.post-pagination-prev,.post-pagination-next{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.post-pagination-next{
  text-align:right;
  align-items:flex-end;
}

.post-pagination-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--text-secondary);
}

.post-pagination-next .post-pagination-label {
  margin-right: 25px;
}

.post-pagination-prev .post-pagination-label {
  margin-left: 25px;
}

.post-pagination .mech-previous,
.post-pagination .mech-next{
  margin:0;
}

.post-pagination a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text-primary);
  font-size:16px;
  text-decoration:none;
}

.post-pagination-prev a::before{
  content:"⟨";
  color:var(--accent-primary);
  font-size:35px;
  line-height:1;
  margin-right:4px;
  transform: translateY(-15px);
}

.post-pagination-next a::after{
  content:"⟩";
  color:var(--accent-primary);
  font-size:35px;
  line-height:1;
  margin-left:4px;
  transform: translateY(-15px);
}

.post-pagination a:hover{
  color:var(--accent-soft);
}

.hero-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-accent);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
}

/* ── Article layout ── */
.article-layout {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 48px;
  align-items: start;
}

.article-layout:is(.hide-toc, .no-sections, .has-empty-toc) { display: block; }

.article-layout:is(.hide-toc, .no-sections, .has-empty-toc) .toc { display: none; }

.article-layout:is(.hide-toc, .no-sections, .has-empty-toc) .main-content {
  margin-inline: auto;
  max-width: min(100%, calc(var(--content-max-width) - var(--toc-width) - 48px));
}

.content-shell.hidden { display: none; }

.article-backmatter {
  display: block;
  width: 100%;
  margin-top: 20px;
  position: relative;
}

.backmatter-row + .backmatter-row {
  margin-top: 18px;
}

.backmatter-body {
  padding: 12px 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

/* ── TOC ── */
.mech-toc-toggle {
  align-items: center;
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--toc-accent);
  border-radius: 999px;
  color: var(--toc-accent);
  cursor: pointer;
  display: none;
  font: 700 12px/1.2 "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  gap: 0.55rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.8rem;
  text-transform: uppercase;
}

.mech-toc-toggle::after {
  content: "+";
  font-size: 1.1em;
  line-height: 1;
}

.article-layout.is-toc-open > .mech-toc-toggle::after,
.docs-layout.is-toc-open > .mech-toc-toggle::after {
  content: "−";
}

.mech-toc-toggle:hover,
.mech-toc-toggle:focus-visible {
  border-color: var(--toc-border);
  color: var(--toc-accent);
  outline: none;
}

.toc {
  flex: 0 0 min(100%, var(--toc-width));
  position: sticky;
  top: 0px;
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow-y: auto;
  padding-right: 8px;
}

/* ── TOC ── */

.toc .toc-title {
  font-size: 1.17em;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  margin-top: 0;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--toc-accent-soft);
  letter-spacing: 0.08em;
}

.toc ul { list-style: none; padding: 0; margin: 0; }

.toc li { margin-bottom: 12px; }

.toc a {
  color: var(--toc-text-secondary);
  display: block;
  padding: 4px 0 4px 10px;   /* add left padding to make room */
  position: relative;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--toc-accent-soft);
  outline: none;
}

.toc a.active {
  color: var(--toc-accent);
  font-weight: 700;
}

.toc a.active-path {
  color: var(--toc-accent);
  font-weight: 650;
}

.toc > ul > li > a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--toc-accent-soft);
}

.toc .toc-sub { display: none; margin: 6px 0 0 14px; padding-left: 12px; border-left: 1px dotted var(--toc-accent-soft); }

.toc li.expanded > .toc-sub { display: block; }

.toc .toc-sub li { margin-bottom: 8px; }

.toc .toc-sub a { font-size: 14px; }

.toc .toc-sub .toc-sub { margin-top: 4px; }

/* ── Main content ── */
.main-content {
  flex: 1 1 360px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  counter-reset: section-index;
}

/* ── Footer ── */
.footer {
  grid-column: 1 / -1;
  margin-top: 0px;
  border-top: 1px dotted var(--border);
  background: var(--mech-output-bg);
  color: var(--text-secondary);
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 32px;
  container-type: inline-size;
}

/* Main layout */
.footer-main {
  display: grid;
  grid-template-columns: 170px minmax(280px, 360px) minmax(340px, 1fr);
  column-gap: 30px;
  row-gap: 18px;
  padding: 54px 0 36px;
  align-items: start;
}

/* Robot */
.footer-robot {
  grid-column: 1;
  grid-row: 1;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-robot img {
  width: 100%;
  margin-left: 20px;
  max-width: 230px;
  filter: drop-shadow(var(--mech-image-shadow));
  transition: opacity 180ms ease, transform 180ms ease;
}

.mika-glyph {
  display: inline-block;
  margin: 0;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  max-height: 0;
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
  pointer-events: none;
}

.mika-glyph-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mika-glyph-art {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.03em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  text-shadow: var(--mech-brand-glow);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mika-glyph-art--mini,
.mika-glyph-art--micro {
  display: block;
  grid-area: 1 / 1;
}

.mika-glyph-art-wrap {
  display: grid;
}

.mika-glyph-art--mini {
  opacity: 1;
  font-size: 24px;
  transform: scale(1);
}

.mika-glyph-art--micro {
  opacity: 0;
  transform: scale(0.86);
}

/* Links */
.footer-links {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 24px;
  align-content: start; /* FIX */
}

.footer-heading {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  font-size: 13px;
}

.footer-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--accent-primary);
  padding-bottom: 2px;
}

.footer-heading-text {
  display: block;
  flex: 1;
  border-bottom: 1px solid var(--mech-footer-heading-rule);
  padding-bottom: 2px;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.footer-group a::after {
  content: "›";
  color: var(--text-muted);
  font-size: 14px;
  margin-left: auto;
}

.footer-group a:hover {
  color: var(--accent-hover);
}

.footer-group a:hover::after {
  color: var(--accent-hover);
}

/* Release panel */
.footer-release {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
}

.release-grid-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  border-bottom: 1px solid var(--border-strong);
}

.release-grid-row:last-of-type {
  border-bottom: 0;
}

.release-grid-label,
.release-grid-value {
  padding: 10px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.release-grid-label {
  color: var(--text-primary);
  border-right: 1px solid var(--border-strong);
}

.release-grid-value {
  color: var(--text-secondary);
}

.release-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.release-downloads a,
.release-grid-value a,
.release-ack a {
  color: var(--accent-soft);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.release-ack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;

}

.release-ack .footer-icon {
  color: var(--accent-primary);
}

/* Bottom bar */
.footer-meta {
  border-top: 1px dotted var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

.footer-pride {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-inline: auto;
}

.mika-separator {
  position: relative;
  display: block;
  width: 55%;
  height: 0;
  margin: 64px auto;
  border-top: 1px dotted var(--mech-mika-divider);
}

.mika-separator::before {
  content: "⦿";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: SF Mono, SF Mono Regular, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--mech-mika-divider);
  background: var(--bg-primary);
  padding: 0 12px;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 900px) {
  .article-layout {
    flex-direction: column;
    gap: 24px;
  }

  .article-layout:not(.has-empty-toc, .hide-toc, .no-sections) > .mech-toc-toggle,
  .docs-layout:not(.has-empty-toc, .hide-toc, .no-sections) > .mech-toc-toggle {
    display: inline-flex;
  }

  .article-layout > .toc,
  .docs-layout > .toc {
    display: none;
  }

  .article-layout.is-toc-open > .toc,
  .docs-layout.is-toc-open > .toc {
    border-bottom: 0;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 100%;
  }

  .article-layout.is-toc-open > .main-content,
  .docs-layout.is-toc-open > .main-content,
  .content-column:has(> .article-layout.is-toc-open, > .docs-layout.is-toc-open) > .article-backmatter {
    display: none;
  }

  .article-layout.is-toc-open .toc .toc-sub,
  .docs-layout.is-toc-open .toc .toc-sub {
    display: block;
  }

  .content-shell {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible;
    padding: 18px 18px 0;
    position: static;
  }

  .content-column,
  .article-layout,
  .main-content,
  .article-intro,
  .article-backmatter {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .footer-main {
    grid-template-columns: max-content minmax(0, 1fr);
    padding-top: 36px;
    row-gap: 22px;
  }

  .footer-robot {
    align-self: start;
    grid-column: 1;
    grid-row: 1;
    width: auto;
  }

  .footer-release {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    width: 100%;
  }

  .footer-robot img {
    margin: 0;
    opacity: 0;
    transform: scale(0.75);
    width: 0;
  }

  .mika-glyph {
    color: var(--accent-primary);
    margin-top: 8px;
    max-height: 120px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mika-glyph-art--mini {
    margin-top: 20px;
    opacity: 1;
    transform: scale(1);
  }

  .mika-separator {
    margin: 48px auto;
  }
}

@container (max-width: 900px) {
  .article-layout,
  .docs-layout {
    flex-direction: column;
    gap: 24px;
  }

  .article-layout > .main-content,
  .docs-layout > .main-content {
    width: 100%;
  }

  .article-layout:not(.has-empty-toc, .hide-toc, .no-sections) > .mech-toc-toggle,
  .docs-layout:not(.has-empty-toc, .hide-toc, .no-sections) > .mech-toc-toggle {
    display: inline-flex;
  }

  .article-layout > .toc,
  .docs-layout > .toc {
    display: none;
  }

  .article-layout.is-toc-open > .toc,
  .docs-layout.is-toc-open > .toc {
    border-bottom: 0;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 100%;
  }

  .article-layout.is-toc-open > .main-content,
  .docs-layout.is-toc-open > .main-content,
  .content-column:has(> .article-layout.is-toc-open, > .docs-layout.is-toc-open) > .article-backmatter {
    display: none;
  }

  .article-layout.is-toc-open .toc .toc-sub,
  .docs-layout.is-toc-open .toc .toc-sub {
    display: block;
  }
}

@container (max-width: 700px) {
  .footer-main {
    gap: 18px 20px;
  }
}

@container (max-width: 680px) {
  .footer-release {
    margin-left: -75px;
  }

  .mika-glyph {
    margin-left: 0;
    padding: 8px 9px;
  }

  .mika-glyph-art--mini {
    opacity: 0;
    transform: scale(0.86);
  }

  .mika-glyph-art--micro {
    font-size: 20px;
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  :root:has(.site-header) {
    --header-height: 118px;
  }

  .site-header {
    align-items: stretch;
    height: var(--header-height);
    padding: 8px 16px 0;
  }

  .header-inner {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-areas: "brand" "nav";
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    position: relative;
    width: 100%;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    min-width: 0;
  }

  .brand img {
    height: 42px;
    margin: 0 auto;
    max-width: min(70vw, 260px);
    width: auto;
  }

  .top-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    grid-area: nav;
    justify-content: center;
    overflow-x: visible;
    white-space: normal;
    width: 100%;
  }

  .top-nav a {
    font-size: 12px;
    padding: 20px 0 22px;
  }

  .header-actions {
    align-items: center;
    display: flex;
    margin-left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
  }

  .widget .btn,
  .widget .social-count {
    font-size: 12px;
    height: 28px;
  }

  .widget .btn {
    padding-inline: 9px;
  }

  .widget .social-count {
    padding-inline: 8px;
  }
}

@media (max-width: 450px) {
  .header-actions {
    display: none;
  }

  .brand img {
    max-width: 90vw;
  }
}

@media (max-width: 500px) {
  .mika-separator {
    margin: 0 auto;
  }

  .footer-inner {
    padding: 0;
  }
}

@media (max-width: 400px) {
  .footer-inner {
    padding: 0 16px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }

  .footer-robot {
    display: none;
  }

  .footer-release,
  .footer-links {
    grid-column: 1;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .footer-release {
    grid-row: 1;
  }

  .footer-links {
    display: grid;
    gap: 22px;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-group,
  .footer-group a {
    min-width: 0;
    width: 100%;
  }

  .release-grid-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-grid-label {
    border-bottom: 1px solid var(--border-strong);
    border-right: 0;
    padding-bottom: 4px;
  }

  .release-grid-value {
    overflow-wrap: anywhere;
    padding-top: 6px;
  }

  .footer-meta {
    padding: 18px 0;
  }

  .footer-pride {
    flex-wrap: wrap;
  }
}
