.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Palette */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #ebebeb;
  --gray-300: #e1e1e1;
  --gray-400: #c8c8c8;
  --gray-500: #a0a0a0;
  --gray-600: #787878;
  --gray-900: #0f0f0f;
  --lime-400: #a5f550;
  --lime-500: #96e146;
  --lime-600: #8cd23c;
  --green-700: #508c2d;
  --green-900: #0a370f;

  /* Semantic color */
  --color-bg: var(--gray-100);
  --color-surface: var(--white);
  --color-glass: rgba(255, 255, 255, 0.8);
  --color-glass-strong: rgba(255, 255, 255, 0.9);
  --color-scrim: rgba(15, 15, 15, 0.72);
  --color-text: var(--gray-900);
  --color-text-secondary: var(--gray-600);
  --color-text-muted: var(--gray-500);
  --color-text-subtle: var(--gray-400);
  --color-border: var(--gray-200);
  --color-divider: var(--gray-300);
  --color-accent: var(--lime-400);
  --color-accent-hover: var(--lime-500);
  --color-accent-pressed: var(--lime-600);
  --color-on-accent: var(--green-900);
  --color-on-accent-muted: var(--green-700);

  /* Typography */
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  /* Elevation */
  --chrome-shadow: 0 0 56px rgba(15, 15, 15, 0.04);
  --chrome-shadow-bleed: 40px;
  --shadow-md: 0 12px 32px rgba(15, 15, 15, 0.08);
  --shadow-lg: 0 24px 80px rgba(15, 15, 15, 0.12);
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 24px;

  /* Motion */
  --duration-fast: 160ms;
  --duration-base: 220ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --canvas-zoom: 1;
  --card-size: 320px;
  --card-gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.panel-heading h2,
.panel-heading h3,
.post-title {
  margin: 0;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.brand-copy,
.panel-heading p,
.admin-post-meta {
  color: var(--color-text-muted);
}

.panel {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-glass);
  box-shadow: var(--shadow-lg);
}

.search-field,
.post-form label {
  display: grid;
  gap: var(--space-2);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: var(--space-6);
  padding-right: 44px;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

.search-input-wrap input::placeholder {
  color: var(--color-text-secondary);
}

.search-input-wrap input:hover {
  background: var(--gray-200);
  color: var(--color-text);
}

.search-input-wrap input:hover::placeholder {
  color: var(--color-text);
}

.search-input-wrap input:focus {
  border-color: transparent;
  background: var(--gray-200);
  color: var(--color-text);
}

.search-hint {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--color-text-subtle);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  pointer-events: none;
  white-space: nowrap;
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-subtle);
  cursor: pointer;
}

.search-clear-btn:hover {
  color: var(--color-text);
}

.search-clear-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.post-form span {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(33, 28, 20, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px var(--space-4);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration-fast) ease, transform var(--duration-fast) ease, background var(--duration-fast) ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gray-300);
  background: var(--white);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.filters-row {
  transition: box-shadow var(--duration-base) ease, transform var(--duration-base) ease;
}

.results-badge {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  white-space: nowrap;
}

.filters-list {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 0;
  min-width: max-content;
}

.filters-frame {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-pill);
  /* Clip scrolling chips to the pill so left/right edges read as fully rounded. */
  overflow: hidden;
}

.filters-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

.filters-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    270deg,
    var(--color-glass) 0%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.filters-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-glass) 0%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.filters-frame.has-left-shadow::before {
  opacity: 1;
}

.filters-frame.has-right-shadow::after {
  opacity: 1;
}

.filter-chip,
.ghost-button,
.primary-button,
.delete-button {
  border-radius: var(--radius-pill);
}

.filter-chip,
.ghost-button,
.delete-button {
  border: 0;
  background: transparent;
  color: var(--color-text);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

.filter-chip:hover {
  color: var(--color-text);
  background: var(--gray-200);
}

.filter-chip.is-active {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: none;
}

.ghost-button,
.delete-button {
  height: 40px;
  padding: 10px var(--space-6);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

#clearFiltersBtn {
  padding-left: 0;
  padding-right: 0;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

#clearFiltersBtn:hover {
  color: var(--color-text);
}

#clearFiltersBtn:active {
  color: var(--color-text);
}

#clearFiltersBtn .clear-count {
  color: inherit;
}

#clearFiltersBtn:active .clear-count {
  color: var(--color-text-secondary);
}

.primary-button {
  height: 40px;
  border: 0;
  padding: 10px var(--space-6);
  cursor: pointer;
  background: var(--gray-900);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 20px;
  transition: background-color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.primary-button:hover {
  background: rgba(15, 15, 15, 0.8);
}

.primary-button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Text buttons in admin forms; chrome icon buttons share .ghost-button but style themselves. */
.ghost-button:not(.icon-button, #clearFiltersBtn),
.delete-button {
  background: var(--gray-100);
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.ghost-button:not(.icon-button, #clearFiltersBtn):hover,
.delete-button:hover {
  background: var(--gray-200);
}

.post-form {
  display: grid;
  gap: var(--space-4);
}

.is-hidden {
  display: none;
}

.posts-admin-list {
  margin-top: var(--space-6);
}

.admin-posts-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.admin-post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-glass);
}

.admin-post-actions,
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-post-title {
  font-weight: var(--font-weight-bold);
}

.admin-post-meta {
  margin-top: var(--space-1);
  font-size: var(--font-size-sm);
}

.main-stage {
  position: relative;
  min-width: 0;
  height: 100vh;
}

.stage-overlay {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.search-panel {
  align-items: center;
  gap: var(--space-2);
  transition: box-shadow var(--duration-base) ease;
}

.search-panel .search-field {
  flex: 1 1 auto;
}

.search-center-button {
  flex: 0 0 auto;
}

.canvas-viewport {
  position: relative;
  overflow: auto;
  height: 100vh;
  cursor: grab;
  background: var(--color-bg);
  scrollbar-gutter: stable;
}

body:not(.is-feed-view):not(.admin-page):not(.post-page):not(.about-page):not(.blog-page):not(.blog-article-page) {
  overflow: hidden;
}

body:not(.is-feed-view) .canvas-viewport {
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

body:not(.is-feed-view) .canvas-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admin-page,
.post-page,
.about-page,
.blog-page,
.blog-article-page {
  overflow: auto;
}

.canvas-viewport.is-dragging {
  cursor: grabbing;
}

.canvas-viewport.is-dragging,
.canvas-viewport.is-dragging * {
  user-select: none;
}

.canvas-viewport img {
  -webkit-user-drag: none;
  user-select: none;
}

.canvas-viewport.is-dragging .post-card,
.canvas-viewport.is-scrolling .post-card,
.canvas-viewport.is-zooming .post-card {
  transition: none !important;
}

.canvas-frame {
  position: relative;
  min-width: 0;
  height: 100vh;
}

.gallery-glass-edges {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

body.is-focus-view .gallery-glass-edges {
  display: none;
}

body.is-feed-view .gallery-glass-edge.is-left,
body.is-feed-view .gallery-glass-edge.is-right {
  display: none;
}

.gallery-glass-edge {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms var(--ease-out);
  background: linear-gradient(
    90deg,
    rgba(15, 15, 15, 0.06) 0%,
    rgba(15, 15, 15, 0.025) 40%,
    rgba(15, 15, 15, 0) 100%
  );
  backdrop-filter: blur(var(--blur-lg)) saturate(130%) brightness(0.97);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(130%) brightness(0.97);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 16px 0 32px rgba(15, 15, 15, 0.03);
}

.gallery-glass-edges.show-left .gallery-glass-edge.is-left,
.gallery-glass-edges.show-right .gallery-glass-edge.is-right,
.gallery-glass-edges.show-top .gallery-glass-edge.is-top,
.gallery-glass-edges.show-bottom .gallery-glass-edge.is-bottom {
  opacity: 1;
}

.gallery-glass-edge.is-left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 72px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 12%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 12%, transparent 100%);
}

.gallery-glass-edge.is-right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(
    270deg,
    rgba(15, 15, 15, 0.06) 0%,
    rgba(15, 15, 15, 0.025) 40%,
    rgba(15, 15, 15, 0) 100%
  );
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset -16px 0 32px rgba(15, 15, 15, 0.03);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 12%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, #000 12%, transparent 100%);
}

.gallery-glass-edge.is-top {
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.06) 0%,
    rgba(15, 15, 15, 0.025) 40%,
    rgba(15, 15, 15, 0) 100%
  );
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 0 16px 32px rgba(15, 15, 15, 0.03);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 12%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 12%, transparent 100%);
}

.gallery-glass-edge.is-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(
    0deg,
    rgba(15, 15, 15, 0.06) 0%,
    rgba(15, 15, 15, 0.025) 40%,
    rgba(15, 15, 15, 0) 100%
  );
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 0 -16px 32px rgba(15, 15, 15, 0.03);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 12%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, #000 12%, transparent 100%);
}

@media (prefers-reduced-transparency: reduce) {
  .gallery-glass-edge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(90deg, rgba(15, 15, 15, 0.1), rgba(15, 15, 15, 0));
    box-shadow: none;
  }

  .gallery-glass-edge.is-right {
    background: linear-gradient(270deg, rgba(15, 15, 15, 0.1), rgba(15, 15, 15, 0));
  }

  .gallery-glass-edge.is-top {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.1), rgba(15, 15, 15, 0));
  }

  .gallery-glass-edge.is-bottom {
    background: linear-gradient(0deg, rgba(15, 15, 15, 0.1), rgba(15, 15, 15, 0));
  }
}

 .canvas-inner {
  transform: scale(var(--canvas-zoom));
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.canvas-surface {
  position: relative;
}

.overlay-actions {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.bottom-left-action {
  position: absolute;
  bottom: 24px;
  z-index: 5;
  pointer-events: auto;
  left: 24px;
}

.minimap-panel {
  position: absolute;
  left: 24px;
  bottom: 72px;
  z-index: 5;
  width: 240px;
  height: 240px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--blur-md));
  pointer-events: auto;
}

.minimap-panel.is-hidden {
  display: none;
}

.minimap-inner {
  position: absolute;
  inset: -1px;
}

.minimap-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.minimap-viewport {
  position: absolute;
  border: 1.5px solid var(--gray-900);
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 15, 0.04);
  pointer-events: none;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  color: var(--color-text-muted);
  box-shadow: none;
  backdrop-filter: none;
}

.icon-button:hover {
  color: var(--color-text);
  border-color: transparent;
  background: var(--gray-200);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: var(--radius-pill);
  background: var(--color-glass-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--blur-md));
}

.zoom-slider {
  width: 180px;
  accent-color: var(--gray-900);
}

.post-card {
  position: absolute;
  width: 320px;
  height: 320px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 1px solid var(--gray-200);
  box-shadow: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  content-visibility: auto;
  contain-intrinsic-size: 320px 320px;
  transition: background-color var(--duration-fast) ease, opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes post-skeleton-shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 0;
  }
}

.post-card.is-lite {
  contain: layout paint style;
}

.post-card.is-entering {
  opacity: 0.92;
  transform: translateY(4px) scale(0.992);
}

.post-card:hover {
  background: var(--gray-200);
}

.canvas-inner.focus-fade-active .post-card {
  opacity: 0.3;
}

.canvas-inner.focus-fade-active .post-card.is-focus-target {
  opacity: 1;
}

.post-link-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  line-height: 16px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: opacity var(--duration-fast) ease, background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.post-source-open {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-1);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text);
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, opacity var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.post-source-open-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("/images/arrow-right-up.svg") center / 24px 24px no-repeat;
  mask: url("/images/arrow-right-up.svg") center / 24px 24px no-repeat;
}

@media (min-width: 761px) {
  .post-source-open {
    display: inline-flex;
  }

  .post-card:hover .post-source-open,
  .post-card:focus-within .post-source-open {
    opacity: 1;
    pointer-events: auto;
  }

  .post-source-open:hover,
  .post-source-open:focus-visible {
    background: rgba(15, 15, 15, 0.8);
    color: var(--white);
  }
}

.post-source-open:focus {
  outline: none;
}

.results-empty {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.results-empty.is-hidden,
.results-empty[hidden] {
  display: none;
}

.results-empty-card {
  box-sizing: border-box;
  width: 320px;
  height: 320px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  pointer-events: auto;
}

.results-empty-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
  line-height: 24px;
  color: var(--color-text);
}

.results-empty-text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text-muted);
}

.results-empty-reset {
  margin-top: var(--space-2);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px var(--space-6);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text);
  background: var(--gray-200);
  cursor: pointer;
  transition: background-color var(--duration-fast) ease;
}

.results-empty-reset:hover {
  background: var(--gray-300);
}

.post-card:hover .post-link-button,
.post-card:focus-within .post-link-button {
  opacity: 1;
  pointer-events: auto;
}

.post-link-button:hover,
.post-link-button:focus-visible {
  color: var(--white);
  background: rgba(15, 15, 15, 0.8);
}

.post-card.is-clickable {
  cursor: pointer;
}

.post-card.is-clickable:focus-visible {
  outline: 1px solid var(--gray-900);
  outline-offset: 4px;
}

.post-media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: fit-content;
  max-width: 288px;
  /* Card inner 288px − 16px gap to copy − title/category (~40px) = 232px */
  max-height: 232px;
  flex: 0 1 auto;
  min-height: 0;
  background: transparent;
}

.post-media.is-empty {
  display: none;
}

.post-media img {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 232px;
  display: block;
  border: 0;
  /* HTML width/height attrs set a landscape aspect-ratio hint — don't force it. */
  aspect-ratio: auto;
}

.post-media video {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 232px;
  display: block;
  border: 0;
  aspect-ratio: auto;
}

.post-media-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-media-stack.is-single {
  max-width: 288px;
  max-height: 232px;
}

/* Clip once on the stack so tall media get even 16px corners. */
.post-media-stack.is-single:not(.is-appicon) {
  overflow: hidden;
  border-radius: var(--radius-lg);
  line-height: 0;
}

.post-media-stack.is-single:not(.is-appicon) .post-media-layer {
  display: block;
  line-height: 0;
}

.post-media-stack.is-single:not(.is-appicon) img,
.post-media-stack.is-single:not(.is-appicon) video,
.post-media-stack.is-video:not(.is-appicon) .post-media-poster,
.post-media-stack.is-video:not(.is-appicon) .post-media-hover-video {
  border-radius: 0;
}

.post-media-stack.is-video {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 232px;
}

.post-media-stack.is-gallery {
  width: 232px;
  height: 208px;
}

.post-media-stack.is-appicon {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
}

.post-media-stack.is-appicon .post-media-layer,
.post-media-stack.is-appicon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.post-media-stack.is-appicon img {
  object-fit: contain;
  object-position: center;
}

.post-media-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 260ms ease;
}

.post-media-stack.is-single .post-media-layer {
  position: relative;
  inset: auto;
}

.post-media-stack.is-video .post-media-layer {
  width: auto;
  height: auto;
}

.post-media-stack.is-video .post-media-poster,
.post-media-stack.is-video .post-media-hover-video {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 232px;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
}

.post-media-stack.is-video .post-media-poster {
  display: block;
  opacity: 1;
  transition: opacity var(--duration-fast) ease;
}

.post-media-stack.is-video .post-media-hover-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  pointer-events: none;
}

.post-media-stack.is-video.is-posterless .post-media-hover-video {
  opacity: 1;
}

.post-card.is-video-preview-ready .post-media-stack.is-video.has-poster .post-media-hover-video,
.post-card.is-video-playing .post-media-stack.is-video .post-media-hover-video {
  opacity: 1;
}

.post-card.is-video-preview-ready .post-media-stack.is-video.has-poster .post-media-poster,
.post-card.is-video-playing .post-media-stack.is-video .post-media-poster {
  opacity: 0;
}

.post-media-video-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  pointer-events: none;
}

.post-media-video-badge img {
  grid-area: 1 / 1;
  display: block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}

.post-media-video-badge .post-media-video-badge-icon--stop {
  display: none;
}

.post-media-video-badge.is-active .post-media-video-badge-icon--play {
  display: none;
}

.post-media-video-badge.is-active .post-media-video-badge-icon--stop {
  display: block;
}

.post-media-stack.is-gallery .post-media-layer:nth-child(1) {
  transform: translate(-10px, 8px) rotate(-6deg);
}

.post-media-stack.is-gallery .post-media-layer:nth-child(2) {
  transform: translate(8px, 4px) rotate(5deg);
}

.post-media-stack.is-gallery .post-media-layer:nth-child(3) {
  transform: translate(-4px, -8px) rotate(3deg);
}

.post-media-stack.is-gallery .post-media-layer:nth-child(4) {
  transform: translate(12px, -10px) rotate(-4deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(1),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(1) {
  transform: translate(-12px, 9px) rotate(3deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(2),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(2) {
  transform: translate(10px, 6px) rotate(-2.5deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(3),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(3) {
  transform: translate(-6px, -10px) rotate(-1.5deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(4),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(4) {
  transform: translate(14px, -12px) rotate(2deg);
}

.post-media-stack.is-gallery img {
  max-width: 180px;
  max-height: 180px;
  border-radius: var(--radius-lg);
}

.post-media-stack.is-aso:not(.is-appicon) img {
  border-radius: var(--radius-lg);
}

.post-copy {
  width: 100%;
  margin-top: var(--space-4);
  display: grid;
  gap: 0;
  background: transparent;
  justify-items: center;
  align-content: start;
  flex: 0 0 auto;
  padding: 0 var(--space-4);
  position: relative;
  overflow: visible;
}

.post-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-title:not(.post-title-big) .post-title-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.post-title.is-marquee {
  position: relative;
  text-align: left;
  text-overflow: clip;
}

.post-title.is-marquee::before,
.post-title.is-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 1;
  pointer-events: none;
}

.post-title.is-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--gray-200) 0%, rgba(235, 235, 235, 0) 100%);
}

.post-title.is-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--gray-200) 0%, rgba(235, 235, 235, 0) 100%);
}

.post-title.is-marquee .post-title-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: post-title-marquee var(--marquee-duration, 4s) linear infinite;
}

@keyframes post-title-marquee {
  0%,
  12% {
    transform: translateX(0);
  }
  45%,
  57% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
  90%,
  100% {
    transform: translateX(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .post-title.is-marquee .post-title-text {
    animation: none;
    transform: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.post-title-link {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: default;
  position: relative;
  overflow: visible;
}

.post-title-link.is-linked {
  cursor: pointer;
}

.post-title-link.is-post-link {
  cursor: pointer;
}

.post-link-hover-badge {
  position: fixed;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: stretch;
  gap: var(--space-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity var(--duration-fast) ease, visibility var(--duration-fast) ease;
}

.post-link-hover-badge.is-visible {
  opacity: 1;
  visibility: visible;
}

.post-link-hover-badge-url {
  position: relative;
  display: block;
  max-width: 200px;
  padding: 6px var(--space-2);
  background: rgba(15, 15, 15, 0.8);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.post-link-hover-badge-url-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.post-link-hover-badge-url.is-marquee .post-link-hover-badge-url-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: post-link-hover-badge-marquee var(--marquee-duration, 4s) linear infinite;
}

@keyframes post-link-hover-badge-marquee {
  0%,
  12% {
    transform: translateX(0);
  }
  45%,
  57% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
  90%,
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-link-hover-badge-url.is-marquee .post-link-hover-badge-url-text {
    animation: none;
  }
}

.post-title-link.is-linked:hover .post-title,
.post-title-link.is-linked:focus-visible .post-title,
.post-title-link.is-post-link:hover .post-title,
.post-title-link.is-post-link:focus-visible .post-title,
.post-title-link.is-linked:hover .post-title-text,
.post-title-link.is-linked:focus-visible .post-title-text,
.post-title-link.is-post-link:hover .post-title-text,
.post-title-link.is-post-link:focus-visible .post-title-text {
  text-decoration: underline;
  text-decoration-color: var(--gray-900);
  text-underline-offset: 2px;
}

.post-title-link:focus-visible {
  outline: none;
}

.post-title.post-title-big {
  font-size: var(--font-size-xl);
  line-height: 32px;
  font-weight: var(--font-weight-bold);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card-no-media .post-copy {
  margin-top: 0;
}

.post-card-no-media .post-title.post-title-big {
  -webkit-line-clamp: 3;
}

.post-category {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  text-align: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-card-profile {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.profile-username-wrap {
  width: 100%;
  min-width: 0;
  padding: var(--space-4) var(--space-4) 0;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: visible;
}

.profile-username-link {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: visible;
}

.profile-username-link.is-linked {
  cursor: pointer;
}

.profile-username-link.is-post-link {
  cursor: pointer;
}

.profile-username-link.is-linked:hover .profile-username,
.profile-username-link.is-linked:focus-visible .profile-username,
.profile-username-link.is-post-link:hover .profile-username,
.profile-username-link.is-post-link:focus-visible .profile-username,
.profile-username-link.is-linked:hover .post-title-text,
.profile-username-link.is-linked:focus-visible .post-title-text,
.profile-username-link.is-post-link:hover .post-title-text,
.profile-username-link.is-post-link:focus-visible .post-title-text {
  text-decoration: underline;
  text-decoration-color: var(--gray-900);
  text-underline-offset: 2px;
}

.profile-username {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.profile-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
  min-width: 0;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  object-fit: cover;
  display: block;
  background: transparent;
  border-radius: var(--radius-pill);
}

.profile-line {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.profile-category {
  width: 100%;
  padding: 0 var(--space-4) var(--space-4);
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.post-card-skill {
  padding: var(--space-4);
  align-items: center;
  justify-content: space-between;
  gap: 0;
  border-color: var(--gray-200);
}

.skill-name-wrap {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: visible;
  flex: 0 0 auto;
}

.skill-name-link {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: visible;
}

.skill-name-link.is-linked {
  cursor: pointer;
}

.skill-name-link.is-post-link {
  cursor: pointer;
}

.skill-name-link.is-linked:hover .skill-name,
.skill-name-link.is-linked:focus-visible .skill-name,
.skill-name-link.is-post-link:hover .skill-name,
.skill-name-link.is-post-link:focus-visible .skill-name,
.skill-name-link.is-linked:hover .post-title-text,
.skill-name-link.is-linked:focus-visible .post-title-text,
.skill-name-link.is-post-link:hover .post-title-text,
.skill-name-link.is-post-link:focus-visible .post-title-text {
  text-decoration: underline;
  text-decoration-color: var(--gray-900);
  text-underline-offset: 2px;
}

.skill-name {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text);
}

.skill-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.skill-image {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  object-fit: cover;
  display: block;
  background: transparent;
  border-radius: 0;
}

.skill-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

.skill-title {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text);
}

.skill-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 0;
  max-width: 100%;
}

.skill-type,
.skill-info-sep,
.skill-git-stars {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.skill-type {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.skill-git-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
}

.skill-category {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  flex: 0 0 auto;
}

.admin-type-fields.is-hidden {
  display: none;
}

.image-overlay {
  --overlay-frame: 560px;
  --overlay-gap: 24px;
  position: fixed;
  inset: 0;
  z-index: 40;
}

body.is-overlay-open {
  overflow: hidden;
}

.image-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
}

.image-overlay-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0;
}

.image-overlay-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--overlay-frame);
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  padding-left: calc(50vw - (var(--overlay-frame) / 2));
  padding-right: calc(50vw - (var(--overlay-frame) / 2));
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.image-overlay-stage::-webkit-scrollbar {
  display: none;
}

.image-overlay-track {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--overlay-gap);
  height: var(--overlay-frame);
}

.image-overlay-frame {
  flex: 0 0 var(--overlay-frame);
  width: var(--overlay-frame);
  height: var(--overlay-frame);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: center;
  border-radius: 0;
  background: transparent;
}

.image-overlay-image,
.image-overlay-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.image-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  line-height: 16px;
  cursor: pointer;
}

.image-overlay-close:hover {
  background: var(--gray-900);
  color: var(--white);
}

.admin-page {
  min-height: 100vh;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-12);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-migration-status {
  margin: -8px 0 var(--space-6);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: var(--space-6);
  align-items: start;
}

.admin-credentials-panel {
  margin-bottom: var(--space-6);
}

@media (max-width: 1100px) {
  .canvas-viewport {
    height: 100vh;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .stage-overlay {
    padding-left: 0;
    padding-right: 0;
  }

  .panel {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
  }

  .home-filters-stack {
    left: 16px;
    right: 16px;
    transform: none;
    width: calc(100vw - 32px);
    max-width: none;
  }

  .minimap-panel {
    left: 16px;
    bottom: 16px;
  }

  }

@media (max-width: 760px) {
  .post-link-button {
    display: none;
  }

  .post-source-open {
    display: none !important;
  }

  .image-overlay {
    --overlay-frame: min(560px, calc(100vw - 32px));
  }

  .image-overlay-close {
    top: 16px;
    right: 16px;
  }
}

.post-category-chip {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.post-category-chip:hover,
.post-category-chip:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-category-sep {
  color: var(--color-text-subtle);
}

.overlay-actions {
  display: none !important;
}

.post-card:not(.post-card-no-media) .post-copy {
  margin-top: var(--space-4) !important;
}

.admin-page select[multiple] {
  min-height: 132px;
}

.aso-media-field {
  display: grid;
  gap: 10px;
}

.aso-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.aso-media-header span {
  font-weight: var(--font-weight-medium);
}

.aso-media-hint,
.aso-media-empty {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  line-height: 16px;
}

.aso-media-list {
  display: grid;
  gap: var(--space-2);
}

.aso-media-item {
  display: grid;
  grid-template-columns: 28px 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: var(--space-2);
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: var(--radius-md);
  background: var(--white);
}

.aso-media-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.aso-media-preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}

.aso-media-meta {
  min-width: 0;
}

.aso-media-name,
.aso-media-status {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aso-media-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.aso-media-status {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.aso-media-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aso-media-actions .ghost-button,
.aso-media-actions .delete-button {
  min-width: 36px;
  padding: 6px 10px;
}

.post-page,
.blog-article-page {
  min-height: 100vh;
  background: var(--white);
  color-scheme: light;
}

html:has(body.post-page),
html:has(body.blog-article-page),
html:has(body.about-page.about-page-redesign) {
  background: var(--white);
  color-scheme: light;
}

.post-page-main,
.post-surface,
.blog-article-main.post-surface {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  margin: 0;
  padding: var(--space-6) var(--space-4) var(--space-16);
  box-sizing: border-box;
  background: var(--gray-100);
  will-change: clip-path;
  overflow: hidden;
}

/* drop-shadow follows clip-path (box-shadow would be clipped away). */
.post-surface.is-reveal-active {
  filter: drop-shadow(0 12px 28px rgb(15 15 15 / calc(0.12 * var(--post-reveal-proximity, 0))));
}

.post-detail-root {
  display: grid;
  justify-items: center;
}

.post-reveal-footer {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 50vh;
  height: 50dvh;
  min-height: 50vh;
  min-height: 50dvh;
  margin: 0;
  padding: var(--space-8) var(--space-4);
  background: transparent;
  color: var(--color-on-accent);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
}

/* Document-flow backdrop: never position:fixed — Safari samples fixed layers for chrome. */
.post-reveal-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -100vh;
  top: -100dvh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: var(--color-accent);
}

.post-reveal-footer-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 320px);
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.post-reveal-footer-label {
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-on-accent);
  text-align: center;
}

.post-reveal-footer-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}

.post-reveal-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--color-on-accent);
  text-decoration: none;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.post-reveal-logo:hover,
.post-reveal-logo:focus-visible {
  color: var(--color-text);
}

.post-reveal-logo:focus {
  outline: none;
}

.post-reveal-logo:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}

.post-reveal-logo-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.post-reveal-next-wrap {
  box-sizing: border-box;
  width: 100%;
  padding: 0 var(--space-8);
}

.post-reveal-next {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: var(--radius-pill);
  padding: var(--space-1) 6px var(--space-1) var(--space-3);
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) ease;
}

.post-reveal-next:hover,
.post-reveal-next:focus-visible {
  background: var(--color-accent-pressed);
}

.post-reveal-next:focus {
  outline: none;
}

.post-reveal-next:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}

.post-reveal-next-label {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-on-accent-muted);
  white-space: nowrap;
}

.post-reveal-next-title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-on-accent);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.post-reveal-next-chevron {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--color-on-accent);
  display: grid;
  place-items: center;
}

.post-reveal-next-chevron svg {
  width: 24px;
  height: 24px;
  display: block;
}

.post-reveal-tagline {
  margin: 0;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-on-accent);
  text-align: center;
}

.post-reveal-year {
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-on-accent);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .post-surface {
    will-change: auto;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}

.ssr-post-preview {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}

.ssr-post-preview h1,
.ssr-post-preview p,
.ssr-post-preview .ssr-post-body,
.ssr-post-preview img {
  margin: 0;
}

.post-page-card.post-card {
  position: relative;
  left: auto;
  top: auto;
  width: 320px;
  height: 320px;
  flex: 0 0 auto;
}

.post-page-card.is-primary-post {
  cursor: default;
}

.post-source {
  width: min(100%, 320px);
  box-sizing: border-box;
  margin-top: -1px;
  padding: 0;
  border: 1px solid var(--gray-200);
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.post-source-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.post-source-link:hover,
.post-source-link:focus-visible {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.post-source-link:focus {
  outline: none;
}

.post-story {
  width: min(100%, 320px);
  box-sizing: border-box;
  margin-top: -1px;
  padding: var(--space-4) var(--space-4) var(--space-6);
  border: 1px solid var(--gray-200);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.post-story-text-wrap {
  position: relative;
}

.post-story-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: center;
  max-height: calc(20px * 4);
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-story.is-expanded .post-story-text,
.post-story.is-short .post-story-text {
  max-height: none;
  overflow: visible;
}

.post-story-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 1) 100%);
}

.post-story.is-expanded .post-story-fade,
.post-story.is-short .post-story-fade {
  display: none;
}

.post-story.is-short .post-story-button:not(.post-story-play),
.post-story.is-short .post-story-or {
  display: none !important;
}

.post-story-button[hidden],
.post-story-or[hidden] {
  display: none !important;
}

/* Temporarily hide TTS play control — keep markup/JS for a future restore. */
.post-story-or,
.post-story-play {
  display: none !important;
}

.post-story-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.post-story-or {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text);
}

.post-story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.post-story-button:hover,
.post-story-button:focus-visible {
  background: var(--gray-300);
  outline: none;
}

.post-story-play-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
}

.post-story-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.post-story-button.is-playing .post-story-play-icon::before {
  width: 10px;
  height: 12px;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 3px 100% no-repeat;
}

.post-share {
  width: min(100%, 320px);
  box-sizing: border-box;
  margin-top: -1px;
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  background: transparent;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.post-share:active {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@media (hover: hover) and (pointer: fine) {
  .post-share:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
  }
}

.post-share:focus {
  outline: none;
}

.post-share:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}

.post-share.is-copied {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.post-share svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
}

.post-page-heading {
  margin: var(--space-8) 0 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: center;
}

.post-page-heading.is-pin-covered {
  visibility: hidden;
}

.post-scroll-pin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-6px + var(--pin-shift, 0px)));
  transition: opacity var(--duration-fast) ease, visibility var(--duration-fast) ease;
}

.post-scroll-pin.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(var(--pin-shift, 0px));
}

.post-scroll-pin-meta {
  box-sizing: border-box;
  width: min(100%, 320px);
  margin: 0;
  padding: var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-200);
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.post-scroll-pin-meta:focus {
  outline: none;
}

.post-scroll-pin-meta:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 2px;
}

.post-scroll-pin-chevron {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  transition: color var(--duration-fast) ease;
}

.post-scroll-pin-meta:hover .post-scroll-pin-chevron,
.post-scroll-pin-meta:focus-visible .post-scroll-pin-chevron {
  color: var(--color-text);
}

.post-scroll-pin-chevron-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.post-scroll-pin-copy {
  width: 100%;
  display: grid;
  gap: 0;
  justify-items: center;
}

.post-scroll-pin-title {
  width: 100%;
}

.post-scroll-pin-category {
  margin: 0;
}

.post-scroll-pin-related {
  position: relative;
  box-sizing: border-box;
  align-self: center;
  width: min(100%, 320px);
  padding: var(--space-2) var(--space-4) var(--space-8);
  background: linear-gradient(180deg, var(--gray-200) 0%, rgba(235, 235, 235, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.post-scroll-pin-related-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
}

.post-scroll-pin-related::before,
.post-scroll-pin-related::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.post-scroll-pin-related::before {
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 78%);
}

.post-scroll-pin-related::after {
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.post-related-grid {
  width: min(100%, 320px);
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 320px;
  justify-content: center;
  justify-items: center;
  gap: 0;
}

.post-related-view-more {
  appearance: none;
  display: block;
  margin: var(--space-8) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-fast) ease;
}

.post-related-view-more:hover,
.post-related-view-more:focus-visible {
  color: var(--color-text);
}

.post-related-view-more:focus {
  outline: none;
}

.post-related-view-more:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 2px;
}

.post-related-end {
  margin: var(--space-8) 0 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: center;
}

.post-related-submit {
  --submit-size: 48px;
  --submit-rim: 2px;
  --submit-inner: calc(var(--submit-size) - var(--submit-rim) * 2);
  display: block;
  flex-shrink: 0;
  margin: var(--space-6) auto 0;
  padding: 0;
  width: var(--submit-size);
  height: var(--submit-size);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Liquid metal host — same idea as CodePen #liquid-metal */
.post-related-submit-metal {
  position: relative;
  display: block;
  width: var(--submit-size);
  height: var(--submit-size);
  border-radius: 50%;
  overflow: visible;
  /* Brushed-metal rim: stops are a material effect, not palette colors. */
  background: linear-gradient(180deg, #e8e8e8 0%, #b0b0b0 50%, #dcdcdc 100%);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.08),
    0 2px 6px rgba(15, 15, 15, 0.05);
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.post-related-submit:hover .post-related-submit-metal {
  box-shadow: 0 14px 28px rgba(15, 15, 15, 0.1),
    0 4px 10px rgba(15, 15, 15, 0.06);
}

.post-related-submit:active .post-related-submit-metal {
  transform: translateY(1px) scale(0.98);
}

.post-related-submit-metal canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 50% !important;
  pointer-events: none;
}

/* Light inner face — CodePen ::before, light theme */
.post-related-submit-fill {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--submit-inner);
  height: var(--submit-inner);
  border-radius: 50%;
  background: var(--gray-100);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  transition: background-color var(--duration-fast) ease;
  pointer-events: none;
}

.post-related-submit:hover .post-related-submit-fill {
  background: var(--white);
}

.post-related-submit-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
  pointer-events: none;
}

.post-related-submit:hover .post-related-submit-icon {
  color: var(--color-text);
}

.post-related-submit:focus {
  outline: none;
}

.post-related-submit:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 4px;
  border-radius: 50%;
}

@media (max-width: 720px) {
    .post-scroll-pin-meta,
  .post-scroll-pin-related {
    width: 100%;
    max-width: none;
  }

  .post-reveal-footer {
    height: 50vh;
    height: 50dvh;
    min-height: 50vh;
    min-height: 50dvh;
    padding: var(--space-8) var(--space-4);
  }

  .post-reveal-footer-middle {
    gap: var(--space-6);
  }

  .post-reveal-next-wrap {
    padding: 0 var(--space-4);
  }

  .post-story-text {
    max-height: calc(20px * 4);
  }

  }

/* Search and filters refresh */
.stage-overlay {
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: auto;
  pointer-events: none;
}

.search-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 320px;
  margin-inline: auto;
  transform: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  display: block;
}

.search-panel .search-field {
  display: block;
  width: 100%;
  gap: 0;
}

.search-input-wrap input {
  height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 44px 14px var(--space-6);
  background: var(--color-glass);
  color: var(--color-text);
  box-shadow: var(--chrome-shadow);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.search-input-wrap input:hover,
.search-input-wrap input:focus {
  background: var(--color-glass);
  color: var(--color-text);
}

.panel-icon-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text);
  box-shadow: var(--chrome-shadow);
  display: inline-grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  text-decoration: none;
  box-sizing: border-box;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.panel-icon-button:hover,
.panel-icon-button:focus-visible {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.panel-icon-button img,
.panel-icon-button .panel-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.side-menu-chevron-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text-muted);
  box-shadow: var(--chrome-shadow);
  display: inline-grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
  box-sizing: border-box;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.side-menu-chevron-button:hover,
.side-menu-chevron-button:focus-visible {
  background: var(--color-glass);
  color: var(--color-text);
}

.side-menu-chevron {
  width: 24px;
  height: 24px;
  display: block;
}

.side-menu-chevron path {
  fill: currentColor;
}

.search-center-button {
  color: var(--color-text);
  box-shadow: none;
}

.search-center-button:hover,
.search-center-button:focus-visible {
  color: var(--color-on-accent);
}

.side-menu-toggle-button {
  color: var(--color-text);
}

.side-menu-toggle-button:hover,
.side-menu-toggle-button:focus-visible {
  color: var(--color-on-accent);
}

.side-menu.is-open .side-menu-toggle-button,
.side-menu.is-open .side-menu-toggle-button:hover,
.side-menu.is-open .side-menu-toggle-button:focus-visible {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.side-menu-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  pointer-events: auto;
}

.side-menu-controls-divider {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.side-menu-submit-button {
  color: var(--color-text);
}

.side-menu-submit-button:hover,
.side-menu-submit-button:focus-visible {
  color: var(--color-on-accent);
}

.side-menu {
  position: fixed;
  top: 50%;
  left: 24px;
  z-index: 7;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  pointer-events: none;
}

/* Lift menu on desktop while footer reveal is active (exact top set in JS). */
@media (min-width: 721px) {
  body.post-page .side-menu,
  body.about-page-redesign .side-menu {
    transition: transform 280ms var(--ease-standard),
      top 280ms var(--ease-standard);
  }
}

.side-menu .panel-icon-button {
  box-shadow: var(--chrome-shadow);
}

.side-menu-button,
.side-menu-panel {
  pointer-events: auto;
}

.side-menu-panel {
  display: block;
  width: 272px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: -8px;
  margin-bottom: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: none;
  pointer-events: none;
  transition: max-height 380ms var(--ease-standard),
    opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard),
    visibility var(--duration-slow) ease,
    margin var(--duration-slow) var(--ease-standard);
}

.side-menu.is-open .side-menu-panel {
  max-height: 320px;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 0;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.side-menu-panel .side-menu-list li {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

.side-menu.is-open .side-menu-panel .side-menu-list li {
  opacity: 1;
  transform: translateY(0);
}

.side-menu.is-open .side-menu-panel .side-menu-list li:nth-child(1) {
  transition-delay: 70ms;
}

.side-menu.is-open .side-menu-panel .side-menu-list li:nth-child(2) {
  transition-delay: 110ms;
}

.side-menu.is-open .side-menu-panel .side-menu-list li:nth-child(3) {
  transition-delay: 150ms;
}

.side-menu.is-open .side-menu-panel .side-menu-list li:nth-child(4) {
  transition-delay: 190ms;
}

.side-menu:not(.is-open) .side-menu-panel .side-menu-list li {
  transition-delay: 0ms;
}

.search-center-button {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 6;
}

.logo-copy-menu {
  position: fixed;
  z-index: 100;
  width: 272px;
  margin: 0;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}

.view-mode-switcher {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  pointer-events: none;
}

.view-mode-switcher-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  pointer-events: auto;
}

.view-mode-switcher .search-center-button {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  box-shadow: none;
}

.focus-compass-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: transparent;
  flex: 0 0 48px;
}

/* Keep chrome fixed; do not use position:relative here (it overrides .search-center-button). */
body.post-page > .search-center-button.focus-compass-btn,
body.about-page > .search-center-button.focus-compass-btn,
body.blog-page > .search-center-button.focus-compass-btn,
body.blog-article-page > .search-center-button.focus-compass-btn,
body.categories-page > .search-center-button.focus-compass-btn,
body.submit-page > .search-center-button.focus-compass-btn {
  position: fixed;
}

.focus-compass-btn:hover,
.focus-compass-btn:focus-visible {
  background: transparent;
  color: transparent;
  filter: brightness(1.04);
}

.focus-compass-btn .focus-compass-svg,
.icon-button.focus-compass-btn svg {
  display: block;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  pointer-events: none;
  user-select: none;
}

.focus-compass-square {
  fill: var(--gray-300);
}

.view-mode-chevron-button {
  box-shadow: var(--chrome-shadow);
}

.view-mode-panel {
  display: block;
  width: 272px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: -8px;
  margin-bottom: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: none;
  pointer-events: none;
  transition: max-height 380ms var(--ease-standard),
    opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard),
    visibility var(--duration-slow) ease,
    margin var(--duration-slow) var(--ease-standard);
}

.view-mode-switcher.is-open .view-mode-panel {
  max-height: 180px;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 0;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.view-mode-panel .side-menu-list li {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

.view-mode-switcher.is-open .view-mode-panel .side-menu-list li {
  opacity: 1;
  transform: translateY(0);
}

.view-mode-switcher.is-open .view-mode-panel .side-menu-list li:nth-child(1) {
  transition-delay: 70ms;
}

.view-mode-switcher.is-open .view-mode-panel .side-menu-list li:nth-child(2) {
  transition-delay: 120ms;
}

.view-mode-switcher.is-open .view-mode-panel .side-menu-list li:nth-child(3) {
  transition-delay: 170ms;
}

.view-mode-switcher:not(.is-open) .view-mode-panel .side-menu-list li {
  transition-delay: 0ms;
}

.view-mode-item.is-active {
  background: var(--gray-50);
  color: var(--color-text);
}

.canvas-viewport.is-feed-mode {
  scrollbar-gutter: stable both-edges;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.canvas-viewport.is-feed-mode *,
.canvas-viewport.is-feed-mode *::before,
.canvas-viewport.is-feed-mode *::after {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
}

.canvas-viewport.is-dragging,
body.is-feed-dragging,
body.is-feed-dragging *,
body.is-canvas-dragging,
body.is-canvas-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.is-pointer-down .canvas-viewport,
body.is-pointer-down .canvas-viewport * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

.canvas-viewport.is-feed-mode .feed-surface,
.canvas-viewport.is-feed-mode .feed-inner,
.canvas-viewport.is-feed-mode .post-card {
  cursor: grab;
}

.canvas-viewport .post-card.is-clickable,
.canvas-viewport .post-card a[href],
.canvas-viewport .post-card button,
.canvas-viewport a[href],
.canvas-viewport button,
.canvas-viewport.is-feed-mode .post-card.is-clickable,
.canvas-viewport.is-feed-mode .post-card a[href],
.canvas-viewport.is-feed-mode .post-card button,
.canvas-viewport.is-feed-mode .post-title-link.is-post-link,
.canvas-viewport.is-feed-mode .post-source-open,
.canvas-viewport.is-feed-mode .post-link-button {
  cursor: pointer;
}

.canvas-viewport.is-feed-mode .canvas-surface {
  display: none;
}

.canvas-viewport.is-focus-mode {
  overflow: hidden;
  cursor: default;
}

.canvas-viewport.is-focus-mode .canvas-surface,
.canvas-viewport.is-focus-mode .feed-surface {
  display: none;
}

.focus-surface {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.focus-surface[hidden] {
  display: none !important;
}

.canvas-viewport.is-focus-mode .focus-surface:not([hidden]) {
  display: block;
  position: absolute;
  inset: 0;
}

.focus-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
}

.focus-stage-card,
.focus-list .post-card {
  position: static;
  width: 320px;
  max-width: 100%;
  height: 320px;
  flex: 0 0 auto;
  cursor: pointer;
}

.focus-stage-card {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.focus-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  z-index: 2;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
  box-sizing: border-box;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.focus-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.focus-list-item {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

.focus-list-item + .focus-list-item {
  margin-top: -1px;
}

.focus-list-item.is-active {
  position: relative;
  z-index: 1;
}

.focus-list-item.is-active .post-card {
  background: var(--gray-200);
}

.focus-list-spacer {
  flex: 0 0 auto;
  width: 100%;
  pointer-events: none;
}

body.is-focus-view .overlay-actions,
body.is-focus-view .banner-carousel {
  display: none !important;
}

body.is-focus-view .search-panel,
body.is-focus-view .home-filters-stack {
  left: 0;
  right: 0;
  transform: none;
  margin-inline: auto;
}

.feed-surface {
  display: none;
  min-height: 100%;
  padding: 96px var(--space-6) 96px;
  box-sizing: border-box;
}

.canvas-viewport.is-feed-mode .feed-surface {
  display: block;
}

.feed-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 320px;
  max-width: calc(100% - 48px);
  margin-inline: auto;
}

.feed-inner .post-card {
  position: static;
  width: 100%;
  max-width: 320px;
  height: 320px;
  flex: 0 0 auto;
  /* Avoid scroll jumps from content-visibility size guessing in feed. */
  content-visibility: visible;
  contain-intrinsic-size: auto;
  transition: none;
}

body.is-feed-view .search-panel {
  left: 0;
  right: 0;
  transform: none;
  margin-inline: auto;
}

body.is-feed-view .home-filters-stack {
  left: 0;
  right: 0;
  transform: none;
  margin-inline: auto;
}

@media (min-width: 721px) {
  body:not(.is-feed-view) .stage-overlay {
    left: 0;
    right: 0;
  }

  body:not(.is-feed-view) .search-panel,
  body:not(.is-feed-view) .home-filters-stack {
    left: 0;
    right: 0;
    margin-inline: auto;
    transform: none;
  }
}

body.is-feed-view .overlay-actions {
  display: none;
}

.side-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu-list li + li::before {
  content: "";
  display: block;
  height: 1px;
  margin-left: var(--space-4);
  background: var(--gray-200);
}

.side-menu-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: left;
  text-decoration: none;
  padding: 14px var(--space-4);
  cursor: pointer;
  box-sizing: border-box;
}

.side-menu-item:hover,
.side-menu-item:focus-visible {
  background: var(--gray-50);
}

@media (min-width: 721px) {
  .side-menu-item,
  .view-mode-item {
    color: var(--color-text-secondary);
  }

  .side-menu-item:hover,
  .side-menu-item:focus-visible,
  .view-mode-item:hover,
  .view-mode-item:focus-visible {
    background: var(--gray-50);
    color: var(--color-text);
  }

  .side-menu-item.is-active,
  .side-menu-item[aria-current="page"],
  .view-mode-item.is-active {
    background: var(--gray-50);
    color: var(--color-text);
  }
}

.side-menu-backdrop {
  display: none;
}

.banner-carousel {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 6;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.banner-carousel.is-hidden {
  display: none;
}

.banner-carousel-handle {
  box-sizing: content-box;
  width: 4px;
  height: 72px;
  min-width: 4px;
  padding: var(--space-4);
  margin-right: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  transform: translateX(0);
  transition: transform 280ms var(--ease-standard);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.banner-carousel-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  left: auto;
  width: 4px;
  height: 72px;
  border-radius: var(--radius-pill);
  transform: translateY(-50%) scale(1);
  background: var(--gray-300);
  pointer-events: none;
  transition: transform var(--duration-base) var(--ease-standard);
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  .banner-carousel-handle:hover::after {
    transform: translateY(-50%) scale(1.2);
  }
}

.banner-carousel-handle:active {
  cursor: grabbing;
}

.banner-carousel.is-dragging .banner-carousel-handle::after {
  transition: none;
}

.banner-carousel-reveal {
  display: none;
  width: 16px;
  height: 240px;
  min-width: 16px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  pointer-events: auto;
  flex: 0 0 auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.banner-carousel-panel {
  width: 240px;
  max-width: 240px;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--chrome-shadow);
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
  transition: transform 280ms var(--ease-standard),
    opacity var(--duration-base) ease,
    max-width 280ms var(--ease-standard);
  transform-origin: right center;
}

.banner-carousel.is-dragging .banner-carousel-panel,
.banner-carousel.is-dragging .banner-carousel-handle {
  transition: none;
}

.banner-carousel.is-collapsed {
  right: 0;
  gap: 0;
}

.banner-carousel.is-collapsed .banner-carousel-handle {
  margin-right: 0;
}

.banner-carousel.is-collapsed:not(.is-dragging) .banner-carousel-panel {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  overflow: hidden;
}

.banner-carousel.is-collapsed .banner-carousel-reveal {
  display: block;
}

.banner-carousel.is-dragging.is-collapsed .banner-carousel-panel {
  max-width: 240px;
  overflow: visible;
  pointer-events: none;
}

.banner-carousel.is-dragging.is-collapsed .banner-carousel-reveal {
  display: none;
}

.banner-carousel-track {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  outline: none;
}

.banner-carousel-slide {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 240px;
  height: 240px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity var(--duration-slow) ease;
}

.banner-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  box-shadow: none;
}

.banner-carousel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.banner-carousel-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--gray-900);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.banner-carousel-progress-bar.is-running {
  animation: banner-carousel-progress var(--banner-interval, 5s) linear forwards;
}

@keyframes banner-carousel-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.banner-carousel-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}

.banner-carousel-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.banner-carousel-title,
.banner-carousel-description {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-carousel-title {
  color: var(--color-text);
}

.banner-carousel-description {
  color: var(--color-text-muted);
}

.banner-carousel-button {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  text-decoration: none;
  flex: 0 0 auto;
}

.banner-carousel-button:hover {
  color: var(--color-text);
}

.admin-banners-grid {
  margin-top: var(--space-6);
}

@media (max-width: 720px) {
  .banner-carousel {
    display: none !important;
  }
}

.about-page {
  min-height: 100vh;
  background: var(--color-bg);
}

.about-page-redesign {
  overflow-x: hidden;
  overflow-y: auto;
}

.about-page-redesign .about-page-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 0 var(--space-6) 180px;
  box-sizing: border-box;
  gap: 180px;
  background: var(--gray-100);
  will-change: clip-path;
}

.about-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-6) 0 var(--space-8);
  box-sizing: border-box;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
}

.about-image-frame--hero {
  width: 240px;
  height: 240px;
  background: transparent;
}

.about-image-frame--library {
  width: 80px;
  height: 80px;
  background: transparent;
}

.about-image-frame--duo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
}

.about-image-frame--duo .about-image-slide {
  border-radius: 0;
}

.about-image-frame--collections {
  width: 72px;
  height: 0;
  border-radius: 0;
  background: transparent;
}

.about-collections-link {
  position: relative;
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.about-collections-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: 240px;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.about-collections-link:hover .about-collections-tooltip,
.about-collections-link:focus-visible .about-collections-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-collections-link:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 4px;
}

.about-image-frame--collections .about-image-slide {
  position: absolute;
  inset: auto;
  left: 0;
  bottom: 0;
  width: 72px;
  height: auto;
  max-width: 72px;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.about-image-slide {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
  pointer-events: none;
  z-index: 0;
}

.about-image-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .about-image-slide,
  .about-image-slide.is-active {
    transition: opacity var(--duration-base) ease;
  }
}

.about-hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.about-hero-eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text);
}

.about-typewriter {
  color: var(--color-text-muted);
  border-right: 1px solid var(--gray-500);
  padding-right: 1px;
  white-space: nowrap;
}

.about-hero-lead {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  color: var(--color-text);
}

.about-hero-link {
  position: relative;
  color: var(--color-text-secondary);
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}

.about-hero-link:hover,
.about-hero-link:focus-visible {
  color: var(--color-text);
  outline: none;
}

.about-hero-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.about-hero-link:hover .about-hero-tooltip,
.about-hero-link:focus-visible .about-hero-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-hero-tooltip-prefix {
  color: rgba(255, 255, 255, 0.7);
}

.about-hero-tooltip-sep {
  margin: 0 var(--space-1);
  color: rgba(255, 255, 255, 0.7);
}

.about-hero-tooltip-name {
  color: var(--white);
}

.about-scroll-btn {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.about-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  gap: var(--space-6);
  text-align: center;
}

.about-block--friends {
  padding-bottom: 0;
}

.about-friends-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
}

.about-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--chrome-shadow);
}

.about-duo {
  display: flex;
  gap: var(--space-2);
  width: 320px;
  max-width: 100%;
  height: 320px;
  box-sizing: border-box;
}

.about-duo-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-duo-panel--lime {
  background: var(--color-accent);
}

.about-duo-panel--gray {
  background: var(--gray-200);
  padding: var(--space-4);
  box-sizing: border-box;
}

.about-duo-post {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.about-duo-post:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 2px;
}

.about-duo-logo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
}

.about-duo-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 128px;
  height: 128px;
  background-color: var(--green-900);
  -webkit-mask-image: url("/images/logo.svg");
  mask-image: url("/images/logo.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.about-duo-copy {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text);
  pointer-events: none;
}

.about-list-label--truncate {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.about-heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  color: var(--color-text);
}

.about-subheading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text);
}

.about-block-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
}

.about-block-head--spaced {
  gap: var(--space-1);
}

.about-copy,
.about-copy-single {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text);
}

.about-copy {
  width: 100%;
}

.about-copy p {
  margin: 0;
}

.categories-page-list.about-library-list {
  height: auto;
  max-height: none;
  overflow: hidden;
}

.about-library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.about-library-list > li:first-child .about-library-item {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.about-library-list > li:last-child .about-library-item {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.about-library-list > li:only-child .about-library-item {
  border-radius: var(--radius-lg);
}

.about-library-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.about-library-meta .about-list-chevron {
  color: var(--color-text-subtle);
  transition: color var(--duration-fast) ease;
}

.about-library-item:hover .about-list-chevron,
.about-library-item:focus-visible .about-list-chevron {
  color: currentColor;
}

.about-block .post-related-submit {
  margin: 0;
}

.about-list-chevron {
  flex-shrink: 0;
  color: var(--color-text-subtle);
}

.about-cta-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text);
}

.about-view-all {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.about-view-all:hover,
.about-view-all:focus-visible {
  color: var(--color-text);
}

.about-mini-app-card {
  position: relative;
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  text-decoration: none;
  transition: background-color var(--duration-fast) ease;
}

.about-mini-app-card:hover,
.about-mini-app-card:focus-visible {
  background: var(--color-accent);
  outline: none;
}

.about-mini-app-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
}

.about-mini-app-card:hover .about-mini-app-label,
.about-mini-app-card:focus-visible .about-mini-app-label {
  color: var(--color-on-accent);
}

.about-mini-app-logo-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
}

.about-mini-app-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background-color: var(--gray-200);
  -webkit-mask-image: url("/images/favicon.svg");
  mask-image: url("/images/favicon.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color var(--duration-fast) ease;
}

.about-mini-app-card:hover .about-mini-app-mark,
.about-mini-app-card:focus-visible .about-mini-app-mark {
  background-color: var(--green-900);
}

.about-page-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  box-sizing: border-box;
}

.about-page-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
}

.categories-page-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 320px;
  max-width: calc(100vw - 48px);
  text-align: center;
}

.post-reveal-footer .categories-page-list.about-library-list {
  background: var(--color-accent-hover);
}

.post-reveal-footer .side-menu-list li + li::before {
  background: rgba(10, 55, 15, 0.12);
}

.post-reveal-footer .side-menu-item {
  color: var(--color-on-accent);
}

.post-reveal-footer .side-menu-item:hover,
.post-reveal-footer .side-menu-item:focus-visible {
  background: var(--color-accent-pressed);
  color: var(--color-on-accent);
}

.post-reveal-footer .about-library-meta .about-list-chevron {
  color: rgba(10, 55, 15, 0.35);
}

.post-reveal-footer .about-library-item:hover .about-list-chevron,
.post-reveal-footer .about-library-item:focus-visible .about-list-chevron {
  color: var(--color-on-accent);
}

.categories-page-list {
  width: 100%;
  height: calc(48px + (48px + 1px) * 4 + 1px + 24px);
  max-height: calc(48px + (48px + 1px) * 4 + 1px + 24px);
  flex: 0 0 auto;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: left;
  scrollbar-width: none;
}

.categories-page-list::-webkit-scrollbar {
  display: none;
}

.submit-page .about-page-main {
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-height: 100vh;
  min-height: 100dvh;
}

.submit-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.submit-page-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
}

/* Centered page heading shared by Submit and Categories. */
.page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  text-align: center;
}

.page-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  line-height: 24px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.page-subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
}

.submit-page-fields {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  width: 100%;
}

.submit-page-field {
  display: block;
  width: 100%;
  gap: 0;
}

.submit-page-field .search-input-wrap input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px var(--space-6);
  background: var(--white);
  color: var(--color-text-secondary);
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  transition: color var(--duration-fast) ease;
}

.submit-page-field .search-input-wrap input::placeholder {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
}

.submit-page-field .search-input-wrap input:focus {
  background: var(--white);
  color: var(--color-text);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .submit-page-field .search-input-wrap input:hover,
  .submit-page-field .search-input-wrap input:hover::placeholder {
    color: var(--color-text);
  }
}

.submit-page-button {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  color: var(--color-text-muted);
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.submit-page-button-icon {
  display: block;
  width: 24px;
  height: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .submit-page-button:hover,
  .submit-page-button:focus-visible {
    background: var(--gray-200);
    color: var(--color-text);
    outline: none;
  }
}

.submit-page-button.is-ready {
  background: var(--gray-900);
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .submit-page-button.is-ready:hover,
  .submit-page-button.is-ready:focus-visible {
    background: var(--gray-900);
    color: var(--white);
  }
}

.submit-page-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.submit-page-status {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  text-align: center;
}

.submit-page-status.is-error {
  color: var(--color-text-secondary);
}

.submit-page-status.is-success {
  color: var(--color-on-accent);
}

.submit-success-toast {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  box-sizing: border-box;
  padding: 6px var(--space-3);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.submit-success-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  z-index: -1;
  pointer-events: none;
}

.submit-success-toast[hidden] {
  display: none;
}

.submit-success-toast.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.filters-row {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: none;
  backdrop-filter: none;
  z-index: auto;
  pointer-events: auto;
  overflow: visible;
}

.home-filters-stack {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 320px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  pointer-events: none;
  overflow: visible;
}

.home-last-updated {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 16px);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 6px var(--space-3);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.home-last-updated::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  z-index: -1;
  pointer-events: none;
}

.home-last-updated[hidden] {
  display: none;
}

.home-last-updated.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.home-last-updated time {
  color: inherit;
}

.home-filters-stack .filters-row,
.home-filters-stack .recent-seo {
  pointer-events: auto;
}

.recent-seo {
  width: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--chrome-shadow);
  overflow: hidden;
}

.recent-seo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 0;
  background: var(--white);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.recent-seo-toggle:hover,
.recent-seo-toggle:focus-visible {
  outline: none;
}

.recent-seo-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
}

.recent-seo-chevron {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.recent-seo-chevron-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.recent-seo-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) ease;
}

.recent-seo.is-open .recent-seo-panel {
  max-height: 374px;
}

.recent-seo-scroll {
  position: relative;
  height: 374px;
}

.recent-seo-scroll::before,
.recent-seo-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.recent-seo-scroll::before {
  top: 0;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.recent-seo-scroll::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.recent-seo-scroll.has-top-fade::before,
.recent-seo-scroll.has-bottom-fade::after {
  opacity: 1;
}

.recent-seo-list {
  height: 374px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.recent-seo-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.recent-seo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 14px var(--space-4);
  text-decoration: none;
  color: inherit;
  background: var(--white);
  cursor: pointer;
  transition: background-color var(--duration-fast) ease;
}

.recent-seo-item + .recent-seo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.recent-seo-item:hover,
.recent-seo-item:focus-visible {
  background: var(--gray-50);
  outline: none;
}

.recent-seo-item-title,
.recent-seo-item-source {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-seo-item-title {
  color: var(--color-text);
}

.recent-seo-item-source {
  color: var(--color-text-muted);
}

.recent-seo-empty {
  margin: 0;
  padding: 14px var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: var(--color-text-muted);
}

.filters-frame {
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.filters-scroll {
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-pill);
}

.filters-list {
  gap: var(--space-1);
  height: 40px;
  align-items: center;
}

.filter-chip {
  height: 40px;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text-secondary);
  box-shadow: var(--chrome-shadow);
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.filter-chip:hover,
.filter-chip.is-active,
.filter-chip.is-active:hover,
.filter-chip.is-active:focus-visible {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

#clearFiltersBtn {
  height: 40px;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text-secondary);
  box-shadow: var(--chrome-shadow);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

#clearFiltersBtn:hover,
#clearFiltersBtn:focus-visible {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@media (max-width: 720px) {
  .stage-overlay {
    top: 16px;
    left: 16px;
    right: 16px;
    padding: 0;
  }

  .search-panel {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    transform: none;
    width: calc(100vw - 32px);
    max-width: none;
  }

  .search-hint {
    display: none;
  }

  .home-filters-stack {
    top: 68px;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    /* Match gap between search (top 16 + height 48) and filters (top 68) → 4px */
    gap: var(--space-1);
  }

  .home-last-updated {
    bottom: auto;
    top: calc(100% + 12px);
  }

  .recent-seo {
    display: none;
  }

  .filters-row {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
  }

  .search-input-wrap input {
    font-size: var(--font-size-md);
    line-height: 22px;
    padding-left: var(--space-4);
    padding-right: 44px;
  }

  .search-center-button {
    top: auto;
    left: 16px;
    bottom: 16px;
  }

  .view-mode-switcher {
    top: auto;
    left: 16px;
    bottom: 16px;
    pointer-events: auto;
    flex-direction: column-reverse;
  }

  .view-mode-panel .side-menu-list li:has([data-view="focus"]) {
    display: none;
  }

  .view-mode-switcher-controls {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .view-mode-switcher .search-center-button,
  .view-mode-chevron-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .side-menu {
    top: auto;
    left: auto;
    right: 16px;
    bottom: 16px;
    transform: none;
    z-index: 11;
    pointer-events: auto;
  }

  .side-menu.is-open {
    z-index: 21;
  }

  .side-menu-controls {
    flex-direction: row;
    gap: var(--space-2);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
  }

  .side-menu-button,
  .side-menu-submit-button,
  .side-menu-toggle-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .side-menu-controls-divider {
    display: none;
  }

  .side-menu .side-menu-chevron-button {
    display: none;
  }

  .view-mode-panel {
    margin-top: 0;
    margin-bottom: -8px;
    transform-origin: bottom left;
    transform: translateY(6px);
  }

  .view-mode-switcher.is-open .view-mode-panel {
    margin-bottom: 0;
    transform: translateY(0);
  }

  .view-mode-chevron-button {
    box-shadow: var(--chrome-shadow);
  }

  .side-menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(70vh, 360px);
    margin-top: 0;
    margin-bottom: 0;
    overflow-y: auto;
    display: block;
    visibility: hidden;
    pointer-events: none;
    opacity: 1;
    transform: translateY(100%);
    z-index: 2;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: transform var(--duration-slow) var(--ease-standard), visibility var(--duration-slow) ease;
  }

  .side-menu.is-open .side-menu-panel {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .side-menu-panel .side-menu-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .side-menu-panel .side-menu-item {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .side-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 15, 15, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) ease;
    z-index: 19;
  }

  .side-menu-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .side-menu-backdrop.is-closing {
    display: block;
    opacity: 0;
    pointer-events: none;
  }

  body.is-side-menu-open {
    overscroll-behavior: none;
  }

  .post-page-main,
  .post-surface {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .post-page-card.post-card {
    width: calc(100vw - 32px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 320px;
  }

  .post-related-grid {
    width: min(100%, 320px);
    grid-template-columns: minmax(0, min(320px, calc(100vw - 32px)));
  }

  .about-page {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .about-page-redesign {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .about-page-main {
    min-height: 0;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
    padding: var(--space-4) var(--space-4) 88px;
    box-sizing: border-box;
  }

  .about-page-redesign .about-page-main {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 var(--space-4) 180px;
    gap: 180px;
  }

  .about-page-redesign .about-hero {
    justify-content: flex-start;
    min-height: 100dvh;
    gap: 0;
  }

  .about-page-redesign .about-hero-title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-top: var(--space-14);
    width: 100%;
  }

  .about-page-redesign .about-scroll-btn {
    margin-top: var(--space-8);
  }

  .submit-page {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .submit-page .about-page-main {
    height: 100%;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
  }

  .submit-page-content {
    width: 100%;
    max-width: calc(100vw - 32px);
    min-height: 0;
    height: auto;
  }

  .submit-page-middle {
    gap: var(--space-6);
  }

  .submit-page-field .search-input-wrap input {
    font-size: var(--font-size-md);
    line-height: 22px;
  }

  .categories-page .about-page-main {
    justify-content: center;
    align-items: center;
  }

  .categories-page-content {
    height: auto;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    flex: 0 1 auto;
  }

  .categories-page .page-heading {
    flex-shrink: 0;
  }

  .categories-page-list {
    flex: 0 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-feed-view {
    --feed-mobile-side: 16px;
  }

  body.is-feed-view .feed-surface {
    padding-top: calc(68px + 48px + 16px);
    padding-right: var(--feed-mobile-side);
    padding-left: var(--feed-mobile-side);
  }

  body.is-feed-view .feed-inner {
    width: 100%;
    max-width: none;
  }

  body.is-feed-view .feed-inner .post-card {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.filters-frame::before,
.filters-frame::after {
  display: none;
}

.post-media-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--duration-fast) ease;
  color: var(--color-text);
  /* Neon Drift defaults (speed 1.1 → --dmx-speed = 1/1.1) */
  --dmx-cycle: 1500ms;
  --dmx-speed: 0.9090909;
  --dmx-opacity-base: 0.12;
  --dmx-opacity-mid: 0.42;
  --dmx-opacity-peak: 1;
}

.post-media-loader-matrix {
  display: grid;
  grid-template-columns: repeat(5, 6px);
  grid-template-rows: repeat(5, 6px);
  gap: 3px;
  width: 42px;
  height: 42px;
}

.post-media-loader-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
  will-change: opacity;
  animation: post-media-neon-drift calc(var(--dmx-cycle) * var(--dmx-speed)) linear infinite;
  animation-delay: calc(
    (var(--dmx-path, 0) * 0.2 + var(--dmx-diagonal-parity, 0) * 0.5) *
      var(--dmx-cycle) *
      var(--dmx-speed)
  );
}

.post-media-layer.is-media-loading > img,
.post-media-layer.is-media-loading > video {
  opacity: 0;
}

.post-media-layer.is-media-loaded .post-media-loader {
  opacity: 0;
}

.post-media-layer.is-media-loaded > img,
.post-media-layer.is-media-loaded > video {
  opacity: 1;
}

.post-media-layer > img,
.post-media-layer > video {
  transition: opacity var(--duration-fast) ease;
}

@keyframes post-media-neon-drift {
  0%,
  100% {
    opacity: calc(0.5 * var(--dmx-opacity-base));
  }

  14% {
    opacity: var(--dmx-opacity-peak);
  }

  30% {
    opacity: calc(0.75 * var(--dmx-opacity-base));
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-media-loader-dot {
    animation: none;
    opacity: 0.14;
  }

  .post-media-loader-dot[data-parity="0"] {
    opacity: 0.88;
  }
}

@media (hover: none), (pointer: coarse) {
  .side-menu-item:hover,
  .side-menu-item:focus-visible {
    background: transparent;
  }

  .side-menu-submit-button:hover,
  .side-menu-submit-button:focus-visible,
  .side-menu-toggle-button:hover,
  .side-menu-toggle-button:focus-visible,
  .side-menu.is-open .side-menu-toggle-button:hover,
  .side-menu.is-open .side-menu-toggle-button:focus-visible {
    background: var(--color-glass);
    color: var(--color-text);
  }

  .side-menu.is-open .side-menu-toggle-button,
  .side-menu.is-open .side-menu-toggle-button:focus-visible {
    background: var(--color-accent);
    color: var(--color-on-accent);
  }

  .filter-chip:hover,
  .filter-chip:focus-visible {
    background: var(--color-glass);
    color: var(--color-text-secondary);
  }

  .filter-chip.is-active,
  .filter-chip.is-active:hover,
  .filter-chip.is-active:focus-visible {
    background: var(--color-accent);
    color: var(--color-on-accent);
  }

  #clearFiltersBtn:hover,
  #clearFiltersBtn:focus-visible {
    background: var(--color-glass);
    color: var(--color-text-secondary);
  }

  .panel-icon-button:hover,
  .panel-icon-button:focus-visible,
  .search-center-button:hover,
  .search-center-button:focus-visible,
  .view-mode-chevron-button:hover,
  .view-mode-chevron-button:focus-visible {
    background: var(--color-glass);
    color: var(--color-text);
  }

  .view-mode-chevron-button:hover,
  .view-mode-chevron-button:focus-visible {
    color: var(--color-text-muted);
  }

  .post-card:hover {
    background: transparent;
  }

  .post-card:hover .post-link-button,
  .post-card:focus-within .post-link-button {
    opacity: 0;
    pointer-events: none;
  }

  .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(1),
  .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(1) {
    transform: translate(-10px, 8px) rotate(-6deg);
  }

  .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(2),
  .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(2) {
    transform: translate(8px, 4px) rotate(5deg);
  }

  .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(3),
  .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(3) {
    transform: translate(-4px, -8px) rotate(3deg);
  }

  .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(4),
  .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(4) {
    transform: translate(12px, -10px) rotate(-4deg);
  }
}

/* Telegram Mini App */
body.is-telegram-webapp {
  /* Prefer viewport-fit insets on fixed chrome, not body padding —
     padding was shifting clusters unevenly versus position:fixed controls. */
}

@media (min-width: 721px) {
  body.is-telegram-webapp .view-mode-switcher {
    top: calc(24px + env(safe-area-inset-top, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
  }

  body.is-telegram-webapp .stage-overlay {
    top: calc(24px + env(safe-area-inset-top, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
  }

  body.is-telegram-webapp .side-menu {
    left: calc(24px + env(safe-area-inset-left, 0px));
  }

  body.is-telegram-webapp .home-filters-stack {
    bottom: 0;
  }
}

@media (max-width: 720px) {
  body.is-telegram-webapp .view-mode-switcher,
  body.is-telegram-webapp .side-menu {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.is-telegram-webapp .view-mode-switcher {
    left: calc(16px + env(safe-area-inset-left, 0px));
  }

  body.is-telegram-webapp .side-menu {
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  body.is-telegram-webapp .stage-overlay {
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  body.is-telegram-webapp .search-panel {
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: auto;
  }

  body.is-telegram-webapp .home-filters-stack {
    top: calc(68px + env(safe-area-inset-top, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  body.is-telegram-webapp.post-page .search-center-button,
  body.is-telegram-webapp .post-page .search-center-button {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }
}

/* —— Blog —— */
.blog-page-main {
  min-height: 100vh;
  padding: var(--space-6) var(--space-6) 120px;
  box-sizing: border-box;
}

.blog-article-main {
  min-height: 100vh;
  padding: var(--space-6) var(--space-6) var(--space-16);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  background: var(--gray-100);
}

.blog-article-main.post-surface {
  padding: var(--space-6) var(--space-6) var(--space-16);
}

.blog-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 320px;
  max-width: calc(100% - 48px);
  margin-inline: auto;
}

.blog-feed .post-card,
.blog-feed .blog-card {
  position: static;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 320px;
  height: 320px;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--gray-200);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .blog-feed .post-card:hover,
  .blog-feed .blog-card:hover,
  .blog-feed .post-card:focus-within,
  .blog-feed .blog-card:focus-within {
    background: var(--gray-200);
  }
}

@media (hover: hover) and (pointer: fine) {
  .blog-feed .post-title-link.is-post-link:hover .post-title,
  .blog-feed .post-title-link.is-post-link:focus-visible .post-title,
  .blog-feed .post-title-link.is-post-link:hover .post-title-text,
  .blog-feed .post-title-link.is-post-link:focus-visible .post-title-text {
    text-decoration: underline;
    text-decoration-color: var(--gray-900);
    text-underline-offset: 2px;
  }
}

@media (max-width: 720px) {
  .blog-feed {
    width: min(100%, 320px);
    max-width: calc(100% - 32px);
  }

  .blog-feed .post-card,
  .blog-feed .blog-card {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .blog-feed .post-card:hover,
  .blog-feed .blog-card:hover,
  .blog-feed .post-card:focus-within,
  .blog-feed .blog-card:focus-within,
  .blog-article-post-card.post-card:hover,
  .blog-article-post-card.post-card:focus-within {
    background: transparent;
  }

  .blog-feed .post-card:hover .post-link-button,
  .blog-feed .blog-card:hover .post-link-button,
  .blog-feed .post-card:focus-within .post-link-button,
  .blog-feed .blog-card:focus-within .post-link-button,
  .blog-article-post-card.post-card:hover .post-link-button,
  .blog-article-post-card.post-card:focus-within .post-link-button {
    opacity: 0;
    pointer-events: none;
  }

  .blog-feed .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(1),
  .blog-feed .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(1),
  .blog-article-post-card.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(1),
  .blog-article-post-card.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(1) {
    transform: translate(-10px, 8px) rotate(-6deg);
  }

  .blog-feed .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(2),
  .blog-feed .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(2),
  .blog-article-post-card.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(2),
  .blog-article-post-card.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(2) {
    transform: translate(8px, 4px) rotate(5deg);
  }

  .blog-feed .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(3),
  .blog-feed .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(3),
  .blog-article-post-card.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(3),
  .blog-article-post-card.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(3) {
    transform: translate(-4px, -8px) rotate(3deg);
  }

  .blog-feed .post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(4),
  .blog-feed .post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(4),
  .blog-article-post-card.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(4),
  .blog-article-post-card.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(4) {
    transform: translate(12px, -10px) rotate(-4deg);
  }
}

.blog-empty {
  margin: var(--space-12) auto 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

.blog-seo-list {
  width: 320px;
  max-width: calc(100% - 48px);
  margin: 0 auto var(--space-6);
  padding: 0;
  list-style: decimal;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

.blog-seo-list li {
  margin: 0 0 var(--space-3);
}

.blog-seo-list a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-seo-list p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
}

.blog-article-shell {
  width: 320px;
  max-width: 100%;
}

.blog-article {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  margin: 0 0 var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  white-space: nowrap;
}

.blog-article-breadcrumb a,
.blog-article-breadcrumb span {
  color: var(--color-text-muted);
  text-decoration: none;
  flex: 0 0 auto;
}

.blog-article-breadcrumb #blogBreadcrumbCurrent {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-article-breadcrumb a:hover,
.blog-article-breadcrumb a:focus-visible {
  color: var(--color-text);
  outline: none;
}

.blog-article-cover {
  display: block;
  margin: 0 0 var(--space-8);
}

.blog-article-cover.is-appicon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.blog-article-collection-icon {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 0 var(--space-8);
  background-color: var(--gray-900);
  -webkit-mask: url("/images/collection-icon.svg") center / contain no-repeat;
  mask: url("/images/collection-icon.svg") center / contain no-repeat;
}

.blog-article .blog-article-cover {
  display: none !important;
}

.blog-feed .blog-card .post-media-stack.is-single:not(.is-appicon) {
  width: auto;
  max-width: 288px;
  max-height: 232px;
}

.blog-feed .blog-card .post-media-stack.is-single:not(.is-appicon) img {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 232px;
  object-fit: cover;
}

.post-media-stack.is-collection-icon .post-media-collection-icon {
  display: block;
  width: 80px;
  height: 80px;
  background-color: var(--gray-400);
  -webkit-mask: url("/images/collection-icon.svg") center / contain no-repeat;
  mask: url("/images/collection-icon.svg") center / contain no-repeat;
  transition: background-color var(--duration-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .blog-feed .blog-card:hover .post-media-stack.is-collection-icon .post-media-collection-icon,
  .blog-feed .blog-card:focus-within .post-media-stack.is-collection-icon .post-media-collection-icon,
  .post-card[data-card-type="collection"]:hover .post-media-stack.is-collection-icon .post-media-collection-icon,
  .post-card[data-card-type="collection"]:focus-within .post-media-stack.is-collection-icon .post-media-collection-icon {
    background-color: var(--gray-900);
  }
}

.blog-article-date {
  margin: 0 0 var(--space-2);
  width: 100%;
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
}

.blog-article-title {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: 32px;
  overflow-wrap: anywhere;
}

.blog-article-text {
  width: 100%;
  margin-top: 80px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
}

.blog-article-text.is-intro {
  margin-top: var(--space-12);
  text-align: center;
  color: var(--color-text-muted);
}

.blog-article-text p {
  margin: 0 0 var(--space-5);
}

.blog-article-text p:last-child {
  margin-bottom: 0;
}

.blog-article-text.is-collapsible.is-collapsed .blog-article-text-tail,
.blog-article-text.is-collapsible.is-collapsed .blog-article-text-tail-inline {
  display: none;
}

.blog-article-text.is-collapsible:not(.is-collapsed) .blog-article-text-ellipsis,
.blog-article-text.is-collapsible:not(.is-collapsed) .blog-article-text-more {
  display: none;
}

.blog-article-text-more {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: var(--font-weight-regular);
  line-height: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.blog-article-text-more:hover,
.blog-article-text-more:focus-visible {
  color: var(--color-text);
}

.blog-article-text-more:focus {
  outline: none;
}

.blog-article-text-more:focus-visible {
  outline: 2px solid rgba(10, 55, 15, 0.35);
  outline-offset: 2px;
}

.blog-article-text.is-collapsible.is-collapsed > p:last-of-type {
  margin-bottom: 0;
}

.blog-article-text-tail {
  display: contents;
}

.blog-article-text:not(.is-collapsed) .blog-article-text-tail p:last-child {
  margin-bottom: 0;
}

.blog-article-related {
  width: 100%;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-article-related-heading {
  margin: 0 0 var(--space-8);
  width: 100%;
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
}

.blog-article-related-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.blog-article-post-card.post-card {
  position: static;
  left: auto;
  top: auto;
  width: 320px;
  max-width: 100%;
  height: 320px;
  margin: 0;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: transparent;
  box-sizing: border-box;
}

.blog-article-post-card.post-card.post-card-profile {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.blog-article-post-card.post-card.post-card-skill {
  padding: var(--space-4);
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.blog-article-post-card.post-card + .blog-article-post-card.post-card {
  margin-top: -1px;
}

@media (hover: hover) and (pointer: fine) {
  .blog-article-post-card.post-card:hover,
  .blog-article-post-card.post-card:focus-within {
    background: var(--gray-200);
  }
}

.blog-article-post-card .post-media-stack.is-appicon {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
}

.blog-article-post-card .post-media-stack.is-appicon img {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.blog-article-related-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.blog-article-view-more {
  margin: var(--space-8) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  cursor: pointer;
}

.blog-article-view-more:hover,
.blog-article-view-more:focus-visible {
  color: var(--color-text);
  outline: none;
}

.blog-article-scroll-pin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-fast) ease, visibility var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.blog-article-scroll-pin.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.blog-article-scroll-pin-meta {
  box-sizing: border-box;
  width: min(100%, 320px);
  margin: 0;
  padding: var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-200);
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.blog-article-scroll-pin-meta:focus {
  outline: none;
}

.blog-article-scroll-pin-meta:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 2px;
}

.blog-article-scroll-pin-chevron {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  transition: color var(--duration-fast) ease;
}

.blog-article-scroll-pin-meta:hover .blog-article-scroll-pin-chevron,
.blog-article-scroll-pin-meta:focus-visible .blog-article-scroll-pin-chevron {
  color: var(--color-text);
}

.blog-article-scroll-pin-chevron-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.blog-article-scroll-pin-title {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.blog-article-scroll-pin-fade {
  position: relative;
  box-sizing: border-box;
  align-self: center;
  width: min(100%, 320px);
  height: 48px;
  padding: 0;
  background: linear-gradient(180deg, var(--gray-200) 0%, rgba(235, 235, 235, 0) 100%);
  z-index: 0;
}

.blog-article-scroll-pin-fade::before,
.blog-article-scroll-pin-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blog-article-scroll-pin-fade::before {
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 78%);
}

.blog-article-scroll-pin-fade::after {
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.blog-article-missing {
  margin: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
}

@media (max-width: 720px) {
  .blog-article-post-card.post-card {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .blog-article-scroll-pin-meta,
  .blog-article-scroll-pin-fade {
    width: 100%;
    max-width: none;
  }
}

.admin-tabs {
  display: inline-flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
}

.admin-tab {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: 20px;
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
}

.admin-blog-cover-preview {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: var(--space-2) 0 0;
  border-radius: var(--radius-sm);
}

.admin-blog-related {
  display: grid;
  gap: var(--space-2);
}

.admin-blog-related > span {
  font-weight: var(--font-weight-medium);
}

.admin-blog-related-hint {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  line-height: 16px;
}

.admin-blog-related-list {
  display: grid;
  gap: var(--space-2);
}

.admin-blog-related-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: center;
}

.admin-blog-related-row input {
  width: 100%;
}

/* —— Interaction states shared by all buttons —— */

/* Zero specificity: component focus styles above still win. */
:where(a, button, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--color-on-accent);
  outline-offset: 2px;
}

:where(
    .panel-icon-button,
    .side-menu-chevron-button,
    .view-mode-chevron-button,
    .filter-chip,
    #clearFiltersBtn,
    .post-story-button,
    .results-empty-reset,
    .primary-button,
    .ghost-button,
    .delete-button,
    .submit-page-button,
    .post-link-button,
    .post-scroll-pin-related-pill,
    .admin-tab
  ):active:not(:disabled) {
  scale: 0.97;
  transition: scale 100ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  :where(
      .panel-icon-button,
      .side-menu-chevron-button,
      .view-mode-chevron-button,
      .filter-chip,
      #clearFiltersBtn,
      .post-story-button,
      .results-empty-reset,
      .primary-button,
      .ghost-button,
      .delete-button,
      .submit-page-button,
      .post-link-button,
      .post-scroll-pin-related-pill,
      .admin-tab
    ):active {
    scale: none;
  }
}
