.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 {
  --canvas-zoom: 1;
}

:root {
  --bg: #f5f5f5;
  --panel: rgba(255, 252, 245, 0.85);
  --panel-strong: #fffaf0;
  --stroke: rgba(33, 28, 20, 0.12);
  --text: #0a0a0a;
  --muted: #a0a0a0;
  --accent: #d95d39;
  --accent-soft: rgba(217, 93, 57, 0.14);
  --chip: #efe3d3;
  --shadow: 0 24px 80px rgba(52, 39, 24, 0.12);
  --chrome-shadow: 0 0 56px rgba(15, 15, 15, 0.04);
  --chrome-shadow-bleed: 40px;
  --card-size: 320px;
  --card-gap: 24px;
  --sidebar-width: 380px;
}

* {
  box-sizing: border-box;
}

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

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

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

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  border-right: 1px solid var(--stroke);
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(22px);
}

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

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--accent);
}

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

.panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.controls-panel {
  display: grid;
  gap: 18px;
}

.search-field,
.post-form label {
  display: grid;
  gap: 8px;
}

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

.search-input-wrap input {
  border: 0;
  height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 24px;
  padding-right: 44px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #787878;
}

.search-input-wrap input::placeholder {
  color: #787878;
}

.search-input-wrap input:hover {
  background: #e6e6e6;
  color: #0a0a0a;
}

.search-input-wrap input:hover::placeholder {
  color: #0a0a0a;
}

.search-input-wrap input:focus {
  border-color: transparent;
  background: #e6e6e6;
  color: #0a0a0a;
}

.search-hint {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #c8c8c8;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  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: #c8c8c8;
  cursor: pointer;
}

.search-clear-btn:hover {
  color: #0a0a0a;
}

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

.post-form span,
.filters-header span,
.canvas-help span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: #dcdcdc;
  background: #fff;
}

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;
}

.filters-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters-row {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 8px 24px 8px 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(10, 10, 10, 0.1);
  backdrop-filter: blur(10px);
  z-index: auto;
  pointer-events: auto;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.results-badge {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  color: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.filters-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  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: 999px;
  /* Clip scrolling chips to the pill so left/right edges read as fully rounded. */
  overflow: hidden;
}

.filters-scroll {
  width: 100%;
  height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: 999px;
}

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

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

.filters-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms 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,
.status-chip {
  border-radius: 999px;
}

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

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #787878;
  background: #f5f5f5;
}

.filter-chip:hover {
  color: #0a0a0a;
  background: #e6e6e6;
}

.filter-chip.is-active {
  background: #0a0a0a;
  color: #fff;
  box-shadow: none;
}

.ghost-button,
.delete-button {
  height: 40px;
  padding: 10px 24px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

#clearFiltersBtn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #787878;
  padding-left: 0;
  padding-right: 0;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

#clearFiltersBtn:hover {
  color: #0a0a0a;
}

#clearFiltersBtn:active {
  color: #0a0a0a;
}

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

#clearFiltersBtn:active .clear-count {
  color: #787878;
}

.primary-button {
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #d95d39, #c83f1a);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(217, 93, 57, 0.26);
}

.post-form {
  display: grid;
  gap: 16px;
}

.is-hidden {
  display: none;
}

.posts-admin-list {
  margin-top: 24px;
}

.admin-posts-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.admin-post-actions,
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-post-title {
  font-weight: 700;
}

.admin-post-meta {
  margin-top: 4px;
  font-size: 14px;
}

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

.stage-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 5;
  pointer-events: none;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.account-anchor {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: auto;
}

.account-button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #787878;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-button-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.account-button:hover {
  color: #0a0a0a;
}

.search-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  margin-top: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 14px 36px rgba(10, 10, 10, 0.1);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: box-shadow 220ms ease;
}

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

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

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight: 700;
  pointer-events: auto;
}

.canvas-viewport {
  position: relative;
  overflow: auto;
  height: 100vh;
  cursor: grab;
  background: var(--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 cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(
    90deg,
    rgba(12, 12, 12, 0.06) 0%,
    rgba(12, 12, 12, 0.025) 40%,
    rgba(12, 12, 12, 0) 100%
  );
  backdrop-filter: blur(24px) saturate(130%) brightness(0.97);
  -webkit-backdrop-filter: blur(24px) saturate(130%) brightness(0.97);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 16px 0 32px rgba(0, 0, 0, 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(12, 12, 12, 0.06) 0%,
    rgba(12, 12, 12, 0.025) 40%,
    rgba(12, 12, 12, 0) 100%
  );
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset -16px 0 32px rgba(0, 0, 0, 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(12, 12, 12, 0.06) 0%,
    rgba(12, 12, 12, 0.025) 40%,
    rgba(12, 12, 12, 0) 100%
  );
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 0 16px 32px rgba(0, 0, 0, 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(12, 12, 12, 0.06) 0%,
    rgba(12, 12, 12, 0.025) 40%,
    rgba(12, 12, 12, 0) 100%
  );
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 0 -16px 32px rgba(0, 0, 0, 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(10, 10, 10, 0.1), rgba(10, 10, 10, 0));
    box-shadow: none;
  }

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

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

  .gallery-glass-edge.is-bottom {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.1), rgba(10, 10, 10, 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-center-action {
  display: none;
}

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

.bottom-left-action {
  left: 24px;
}

.bottom-right-action {
  right: 24px;
}

.minimap-panel {
  position: absolute;
  left: 24px;
  bottom: 72px;
  z-index: 5;
  width: 240px;
  height: 240px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  backdrop-filter: blur(10px);
  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 #0064cd;
  border-radius: 999px;
  background: rgba(0, 100, 205, 0.1);
  pointer-events: none;
}

.overlay-button {
  box-shadow: none;
  background: #fff;
  color: #787878;
  border: 1px solid var(--stroke);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  height: 40px;
  padding: 10px 24px;
}

.overlay-button:hover {
  color: #0a0a0a;
  background: #f5f5f5;
  border-color: transparent;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #a0a0a0;
  box-shadow: none;
  backdrop-filter: none;
}

.icon-button:hover {
  color: #0a0a0a;
  border-color: transparent;
  background: #e6e6e6;
}

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

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  backdrop-filter: blur(10px);
}

.zoom-controls-inline {
  width: 100%;
}

.zoom-slider {
  width: 180px;
  accent-color: #0a0a0a;
}

.dot-divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(33, 28, 20, 0.28);
}

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

.post-card.is-loading::after {
  content: none;
}

.post-card.is-loading .post-media,
.post-card.is-loading .post-copy,
.post-card.is-loading .post-link-button,
.post-card.is-loading .post-save-button {
  opacity: 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: #ebebeb;
}

.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: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

.post-source-open {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f0f0f;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.post-source-open-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("/arrow-right-up.svg") center / 24px 24px no-repeat;
  mask: url("/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: #ffffff;
  }
}

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

.post-save-button {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 160ms ease;
}

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

.post-save-button:hover {
  color: #ffffff;
  background: #0a0a0a;
}

.post-save-button.is-saved {
  color: #ffffff;
  background: #0a0a0a;
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.18);
}

.auth-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(10, 10, 10, 0.12);
}

.auth-header > div {
  display: grid;
  gap: 0;
}

.auth-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-header h2,
.auth-header p,
.auth-profile-card p {
  margin: 0;
}

.auth-header h2 {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #0a0a0a;
}

.auth-header p {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
}

.auth-close-button,
.auth-logout-button,
.auth-saved-link {
  border: 0;
  background: transparent;
  color: #787878;
  padding: 0;
}

.auth-close-button:hover,
.auth-logout-button:hover,
.auth-saved-link:hover {
  color: #0a0a0a;
}

.auth-saved-link {
  display: inline-flex;
  margin-bottom: 12px;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #787878;
}

.auth-tab:hover {
  background: #e6e6e6;
  color: #0a0a0a;
}

.auth-tab.is-active {
  background: #0a0a0a;
  color: #ffffff;
}

.auth-form {
  gap: 16px;
}

.auth-input-label {
  gap: 0;
}

.auth-form input {
  border: 0;
  height: 40px;
  padding: 10px 16px;
  border-radius: 24px;
  background: #f5f5f5;
  color: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: background-color 160ms ease, color 160ms ease;
}

.auth-form input::placeholder {
  color: #787878;
}

.auth-form input:hover {
  background: #e6e6e6;
  color: #0a0a0a;
}

.auth-form input:hover::placeholder {
  color: #0a0a0a;
}

.auth-form input:focus {
  background: #e6e6e6;
  color: #0a0a0a;
}

.auth-form .primary-button {
  height: 40px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  box-shadow: none;
}

.auth-form .primary-button:hover {
  background: #0a0a0a;
  color: #ffffff;
}

.auth-hint,
.auth-message,
.auth-profile-label,
.auth-profile-saved {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #787878;
}

.auth-message {
  min-height: 20px;
}

.auth-profile-card {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.saved-shell {
  min-height: 100vh;
}

.saved-topbar {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.saved-topbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.saved-chip {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #787878;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saved-chip:hover {
  color: #0a0a0a;
}

.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: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  pointer-events: auto;
}

.results-empty-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #0f0f0f;
}

.results-empty-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #a0a0a0;
}

.results-empty-reset {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #0f0f0f;
  background: #ebebeb;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.results-empty-reset:hover {
  background: #e6e6e6;
}

.saved-empty {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.saved-empty-card {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.saved-empty-card h1,
.saved-empty-card p {
  margin: 0;
}

.auth-profile-email {
  font-size: 16px;
  line-height: 24px;
  color: #0a0a0a;
}

.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: #ffffff;
  background: rgba(15, 15, 15, 0.8);
}

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

.post-card.is-clickable:focus-visible {
  outline: 1px solid #0a0a0a;
  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-preview-video {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 232px;
  margin: auto;
  display: block;
}

.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: 16px;
  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 180ms ease;
}

.post-media-stack.is-video .post-media-hover-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms 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: 4px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  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;
}

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

.post-media .post-embed {
  overflow: hidden;
  scrollbar-width: none;
}

.post-media .post-embed::-webkit-scrollbar {
  display: none;
}

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

.post-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a0a0a;
  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, #ebebeb 0%, rgba(235, 235, 235, 0) 100%);
}

.post-title.is-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ebebeb 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: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity 120ms ease, visibility 120ms ease;
}

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

.post-link-hover-badge-icon {
  display: none;
}

.post-link-hover-badge-url {
  position: relative;
  display: block;
  max-width: 200px;
  padding: 6px 8px;
  background: rgba(85, 85, 85, 0.8);
  border-radius: 999px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.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: #0a0a0a;
  text-underline-offset: 2px;
}

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

.post-title.post-title-big {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  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: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  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: 16px 16px 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: #0a0a0a;
  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: 16px;
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  box-sizing: border-box;
}

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

.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 16px 16px;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.post-card-skill {
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  border-color: #e6e6e6;
}

.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: #0f0f0f;
  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: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #0f0f0f;
}

.skill-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  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 16px;
  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: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #0f0f0f;
}

.skill-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.skill-type,
.skill-info-sep,
.skill-git-stars {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #a0a0a0;
  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: rgba(10, 10, 10, 0.72);
}

.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: 32px;
  background: #ffffff;
}

.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: 999px;
  background: #ffffff;
  color: #0a0a0a;
  padding: 8px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.image-overlay-close:hover {
  background: #0a0a0a;
  color: #ffffff;
}

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

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

.gate-panel {
  max-width: 520px;
  margin: 10vh auto 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-migration-status {
  margin: -8px 0 24px;
  color: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

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

.admin-credentials-panel {
  margin-bottom: 24px;
}

.access-error {
  margin: 0;
  color: #b42318;
}

.admin-static-steps {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

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

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

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

  .panel {
    padding: 16px;
    border-radius: 22px;
  }

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

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

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

  .search-panel .account-button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    gap: 0;
    border-radius: 999px;
    background: #f5f5f5;
  }

  .search-panel .account-button:hover {
    background: #e6e6e6;
  }

  .search-panel .account-button-label {
    display: none;
  }

  .search-panel .account-button-icon {
    display: block;
  }
}

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

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

  .post-save-button {
    opacity: 1;
    pointer-events: auto;
  }

  .saved-topbar {
    left: 16px;
    right: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

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

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


.post-category-chip {
  border: 0;
  background: transparent;
  color: #a0a0a0;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.post-category-chip:hover,
.post-category-chip:focus-visible {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-category-sep {
  color: #c2c2c2;
}

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


.post-card:not(.post-card-no-media) .post-copy {
  margin-top: 16px !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: 12px;
}

.aso-media-header span {
  font-weight: 500;
}

.aso-media-hint,
.aso-media-empty {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.aso-media-list {
  display: grid;
  gap: 8px;
}

.aso-media-item {
  display: grid;
  grid-template-columns: 28px 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
}

.aso-media-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 12px;
  font-weight: 700;
}

.aso-media-preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  background: #f5f5f5;
}

.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: 13px;
  font-weight: 500;
}

.aso-media-status {
  font-size: 12px;
  color: #777;
}

.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: #ffffff;
  color-scheme: light;
}

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

.post-page-main,
.post-surface,
.blog-article-main.post-surface {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  margin: 0;
  padding: 24px 16px 64px;
  box-sizing: border-box;
  background: #f5f5f5;
  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: 32px 16px;
  background: transparent;
  color: #0a370f;
  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: #a5f550;
}

.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: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a370f;
  text-align: center;
}

.post-reveal-footer-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

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

.post-reveal-logo:hover,
.post-reveal-logo:focus-visible {
  color: #0f0f0f;
}

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

.post-reveal-logo:focus-visible {
  outline: 2px solid #0a370f;
  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 32px;
}

.post-reveal-next {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  background: #96e146;
  color: #0a370f;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}

.post-reveal-next:hover,
.post-reveal-next:focus-visible {
  background: #8cd23c;
}

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

.post-reveal-next:focus-visible {
  outline: 2px solid #0a370f;
  outline-offset: 2px;
}

.post-reveal-next-label {
  flex: 0 0 auto;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #508c2d;
  white-space: nowrap;
}

.post-reveal-next-title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a370f;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.post-reveal-next-chevron {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #0a370f;
  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: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a370f;
  text-align: center;
}

.post-reveal-year {
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a370f;
  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 #ebebeb;
  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: 16px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.post-source-link:hover,
.post-source-link:focus-visible {
  background: #a5f550;
  color: #0a370f;
}

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

.post-story {
  width: min(100%, 320px);
  box-sizing: border-box;
  margin-top: -1px;
  padding: 16px 16px 24px;
  border: 1px solid #ebebeb;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.post-story-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
  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;
}

.post-story-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-story-or {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #0f0f0f;
}

.post-story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #ebebeb;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.post-story-button:hover,
.post-story-button:focus-visible {
  background: #dcdcdc;
  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: 16px;
  border: 1px solid #ebebeb;
  background: transparent;
  color: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.post-share:active {
  background: #a5f550;
  color: #0a370f;
}

@media (hover: hover) and (pointer: fine) {
  .post-share:hover {
    background: #a5f550;
    color: #0a370f;
  }
}

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

.post-share:focus-visible {
  outline: 2px solid #0a370f;
  outline-offset: 2px;
}

.post-share.is-copied {
  background: #a5f550;
  color: #0a370f;
}

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

.post-page-heading {
  margin: 32px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
  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 160ms ease, visibility 160ms 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: 16px;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  background: #ebebeb;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.post-scroll-pin-meta:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 2px;
}

.post-scroll-pin-chevron {
  width: 24px;
  height: 24px;
  color: #a0a0a0;
  display: grid;
  place-items: center;
  transition: color 140ms ease;
}

.post-scroll-pin-meta:hover .post-scroll-pin-chevron,
.post-scroll-pin-meta:focus-visible .post-scroll-pin-chevron {
  color: #0f0f0f;
}

.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: 8px 16px 32px;
  background: linear-gradient(180deg, #ebebeb 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 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
  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(10px);
  -webkit-backdrop-filter: blur(10px);
  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(4px);
  -webkit-backdrop-filter: blur(4px);
  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: 32px;
  display: grid;
  grid-template-columns: 320px;
  justify-content: center;
  justify-items: center;
  gap: 0;
}

.post-related-view-more {
  appearance: none;
  display: block;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease;
}

.post-related-view-more:hover,
.post-related-view-more:focus-visible {
  color: #0f0f0f;
}

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

.post-related-view-more:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 2px;
}

.post-related-end {
  margin: 32px 0 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
  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: 24px 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;
  background: linear-gradient(180deg, #e8e8e8 0%, #b0b0b0 50%, #dcdcdc 100%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-related-submit:hover .post-related-submit-metal {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 0, 0, 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: #f5f5f5;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  transition: background-color 0.15s ease;
  pointer-events: none;
}

.post-related-submit:hover .post-related-submit-fill {
  background: #ffffff;
}

.post-related-submit-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: #a0a0a0;
  transition: color 0.15s ease;
  pointer-events: none;
}

.post-related-submit:hover .post-related-submit-icon {
  color: #0f0f0f;
}

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

.post-related-submit:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 4px;
  border-radius: 50%;
}

.post-page-empty {
  margin: 24px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
}

@media (max-width: 720px) {
  .post-page-main,
  .post-surface {
    padding-left: 12px;
    padding-right: 12px;
  }

  .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: 32px 16px;
  }

  .post-reveal-footer-middle {
    gap: 24px;
  }

  .post-reveal-next-wrap {
    padding: 0 16px;
  }

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

  .post-related-grid {
    grid-template-columns: minmax(0, 320px);
  }
}


/* 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: 999px;
  padding: 14px 44px 14px 24px;
  background: rgba(255, 255, 255, 0.8);
  color: #0a0a0a;
  box-shadow: var(--chrome-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-input-wrap input:hover,
.search-input-wrap input:focus {
  background: rgba(255, 255, 255, 0.8);
  color: #0a0a0a;
}

.panel-icon-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f0f0f;
  box-shadow: var(--chrome-shadow);
  display: inline-grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
  text-decoration: none;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel-icon-button:hover,
.panel-icon-button:focus-visible {
  background: #a5f550;
  color: #0a370f;
}

.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: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #a0a0a0;
  box-shadow: var(--chrome-shadow);
  display: inline-grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.side-menu-chevron-button:hover,
.side-menu-chevron-button:focus-visible {
  background: rgba(255, 255, 255, 0.8);
  color: #0f0f0f;
}

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

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

.search-center-button {
  color: #0f0f0f;
  box-shadow: none;
}

.search-center-button:hover,
.search-center-button:focus-visible {
  color: #0a370f;
}

.side-menu-toggle-button {
  color: #0f0f0f;
}

.side-menu-toggle-button:hover,
.side-menu-toggle-button:focus-visible {
  color: #0a370f;
}

.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: #a5f550;
  color: #0a370f;
}


.side-menu-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.side-menu-controls-divider {
  display: block;
  width: 24px;
  height: 2px;
  background: #e1e1e1;
  flex-shrink: 0;
}

.side-menu-submit-button {
  color: #0f0f0f;
}

.side-menu-submit-button:hover,
.side-menu-submit-button:focus-visible {
  color: #0a370f;
}

.side-menu {
  position: fixed;
  top: 50%;
  left: 24px;
  z-index: 7;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  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 cubic-bezier(0.4, 0, 0.2, 1),
      top 280ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}

.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: #ffffff;
  border-radius: 16px;
  box-shadow: none;
  pointer-events: none;
  transition:
    max-height 380ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 340ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 320ms ease,
    margin 340ms cubic-bezier(0.4, 0, 0.2, 1);
}

.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 320ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.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: #ffffff;
  border-radius: 16px;
  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: 8px;
  pointer-events: none;
}

.view-mode-switcher-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  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: 999px;
  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: #d7d7d7;
}

.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: #ffffff;
  border-radius: 16px;
  box-shadow: none;
  pointer-events: none;
  transition:
    max-height 380ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 340ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 320ms ease,
    margin 340ms cubic-bezier(0.4, 0, 0.2, 1);
}

.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 320ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.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: #fafafa;
  color: #0f0f0f;
}

.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: #ebebeb;
}

.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 24px 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: 16px;
  background: #ebebeb;
}

.side-menu-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a0a0a;
  text-align: left;
  text-decoration: none;
  padding: 14px 16px;
  cursor: pointer;
  box-sizing: border-box;
}

.side-menu-item:hover,
.side-menu-item:focus-visible {
  background: #fafafa;
}

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

  .side-menu-item:hover,
  .side-menu-item:focus-visible,
  .view-mode-item:hover,
  .view-mode-item:focus-visible {
    background: #fafafa;
    color: #0f0f0f;
  }

  .side-menu-item.is-active,
  .side-menu-item[aria-current="page"],
  .view-mode-item.is-active {
    background: #fafafa;
    color: #0f0f0f;
  }
}

.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: 16px;
  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 cubic-bezier(0.4, 0, 0.2, 1);
  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: 999px;
  transform: translateY(-50%) scale(1);
  background: #e1e1e1;
  pointer-events: none;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  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: 16px 0 0 16px;
  background: #ffffff;
  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: 16px;
  box-shadow: var(--chrome-shadow);
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
  transition:
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 220ms ease,
    max-width 280ms cubic-bezier(0.4, 0, 0.2, 1);
  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: 16px;
  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: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 320ms 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: #0f0f0f;
  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: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-carousel-title {
  color: #0f0f0f;
}

.banner-carousel-description {
  color: #a0a0a0;
}

.banner-carousel-button {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  text-decoration: none;
  flex: 0 0 auto;
}

.banner-carousel-button:hover {
  color: #0f0f0f;
}

.admin-banners-grid {
  margin-top: 24px;
}

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

.about-page {
  min-height: 100vh;
  background: var(--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 24px 180px;
  box-sizing: border-box;
  gap: 180px;
  background: #f5f5f5;
  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: 24px 0 32px;
  box-sizing: border-box;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px;
}

.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: 999px;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  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 140ms ease, transform 140ms 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 #0f0f0f;
  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: 16px;
  opacity: 0;
  transition: opacity 0.35s 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 0.2s ease;
  }
}

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

.about-hero-eyebrow {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
}

.about-typewriter {
  color: #a0a0a0;
  border-right: 1px solid #a0a0a0;
  padding-right: 1px;
  white-space: nowrap;
}

.about-hero-lead {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #0f0f0f;
}

.about-hero-link {
  position: relative;
  color: #555555;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: color 160ms ease;
}

.about-hero-link:hover,
.about-hero-link:focus-visible {
  color: #0f0f0f;
  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: 999px;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 140ms ease, transform 140ms 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 4px;
  color: rgba(255, 255, 255, 0.7);
}

.about-hero-tooltip-name {
  color: #ffffff;
}

.about-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f0f0f;
  box-shadow: var(--chrome-shadow, 0 0 56px rgba(15, 15, 15, 0.04));
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.about-round-btn:hover,
.about-round-btn:focus-visible {
  color: #0f0f0f;
}

.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: 24px;
  text-align: center;
}

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

.about-friends-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.about-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--chrome-shadow, 0 0 56px rgba(15, 15, 15, 0.04));
}

.about-duo {
  display: flex;
  gap: 8px;
  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: 16px;
}

.about-duo-panel--lime {
  background: #a5f550;
}

.about-duo-panel--gray {
  background: #ebebeb;
  padding: 16px;
  box-sizing: border-box;
}

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

.about-duo-post:focus-visible {
  outline: 2px solid #0f0f0f;
  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: #0a370f;
  -webkit-mask-image: url("/logo.svg");
  mask-image: url("/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: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
  pointer-events: none;
}

.about-folder-icon {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.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: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #0f0f0f;
}

.about-subheading {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
}

.about-block-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.about-block-head--spaced {
  gap: 4px;
}

.about-copy,
.about-copy-single {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
}

.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: 8px;
}

.about-library-list > li:first-child .about-library-item {
  border-radius: 16px 16px 0 0;
}

.about-library-list > li:last-child .about-library-item {
  border-radius: 0 0 16px 16px;
}

.about-library-list > li:only-child .about-library-item {
  border-radius: 16px;
}

.about-library-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.about-library-meta .about-list-chevron {
  color: #c8c8c8;
  transition: color 160ms 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-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
}

.about-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  text-decoration: none;
  color: #787878;
  background: #ffffff;
}

.about-list-row:hover,
.about-list-row:focus-visible {
  color: #0f0f0f;
}

.about-list-label {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.about-list-value {
  flex-shrink: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.about-list-chevron {
  flex-shrink: 0;
  color: #c8c8c8;
}

.about-list-divider {
  width: 100%;
  height: 1px;
  background: rgba(15, 15, 15, 0.06);
}

.about-cta-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
}

.about-view-all {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #a0a0a0;
  text-decoration: none;
}

.about-view-all:hover,
.about-view-all:focus-visible {
  color: #0f0f0f;
}

.about-mini-app-card {
  position: relative;
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.about-mini-app-card:hover,
.about-mini-app-card:focus-visible {
  background: #a5f550;
  outline: none;
}

.about-mini-app-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #787878;
  transition: color 160ms ease;
}

.about-mini-app-card:hover .about-mini-app-label,
.about-mini-app-card:focus-visible .about-mini-app-label {
  color: #0a370f;
}

.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: #e6e6e6;
  -webkit-mask-image: url("/favicon.svg");
  mask-image: url("/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 160ms ease;
}

.about-mini-app-card:hover .about-mini-app-mark,
.about-mini-app-card:focus-visible .about-mini-app-mark {
  background-color: #0a370f;
}

.about-page-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

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

.about-page-body {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
}

.about-page-intro {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
}

.about-page-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
}

.about-page-mini-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
}

.about-page-mini-app-icon {
  display: block;
  width: 60px;
  height: 60px;
}

.about-page-mini-app-title {
  margin: 16px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
}

.about-page-mini-app-link {
  margin: 4px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  text-decoration: none;
  transition: color 160ms ease;
}

.about-page-mini-app-link:hover,
.about-page-mini-app-link:focus-visible {
  color: #0f0f0f;
  outline: none;
}

.about-page-last-updated {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.about-page-last-updated time {
  color: inherit;
}

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

.categories-page-intro {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.post-reveal-footer .categories-page-list.about-library-list {
  background: #96e146;
}

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

.post-reveal-footer .side-menu-item {
  color: #0a370f;
}

.post-reveal-footer .side-menu-item:hover,
.post-reveal-footer .side-menu-item:focus-visible {
  background: #8cd23c;
  color: #0a370f;
}

.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: #0a370f;
}

.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: #ffffff;
  border-radius: 16px;
  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: 24px;
  min-height: 100vh;
  min-height: 100dvh;
}

.submit-promo {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 480px;
  max-width: 100%;
  height: 240px;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.submit-promo.is-dragging {
  cursor: grabbing;
}

.submit-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(243, 243, 243, 0) 0%,
    #f3f3f3 100%
  );
  pointer-events: none;
}

.submit-promo-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  perspective-origin: 50% 0%;
  overflow: visible;
}

.submit-promo-sphere {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
}

.submit-promo-item {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  max-width: var(--submit-promo-item-size, 52px);
  max-height: var(--submit-promo-item-size, 52px);
  transform-style: preserve-3d;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
  opacity: 1;
  will-change: opacity;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.submit-promo-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--submit-promo-item-size, 52px);
  max-height: var(--submit-promo-item-size, 52px);
  object-fit: contain;
  background: none;
  border-radius: 8px;
  pointer-events: none;
  -webkit-user-drag: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .submit-promo-sphere {
    will-change: auto;
  }
}

.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: 24px;
  width: 100%;
}

.submit-page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.submit-page-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #0f0f0f;
}

.submit-page-subtitle {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
}

.submit-page-fields {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  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: 999px;
  padding: 14px 24px;
  background: #ffffff;
  color: #787878;
  box-shadow: none;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: color 160ms ease;
}

.submit-page-field .search-input-wrap input::placeholder {
  color: #787878;
  transition: color 160ms ease;
}

.submit-page-field .search-input-wrap input:focus {
  background: #ffffff;
  color: #0f0f0f;
  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: #0f0f0f;
  }
}

.submit-page-button {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 999px;
  background: #ebebeb;
  color: #a0a0a0;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms 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: #ebebeb;
    color: #0f0f0f;
    outline: none;
  }
}

.submit-page-button.is-ready {
  background: #0f0f0f;
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .submit-page-button.is-ready:hover,
  .submit-page-button.is-ready:focus-visible {
    background: #0f0f0f;
    color: #ffffff;
  }
}

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

.submit-page-status {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-align: center;
}

.submit-page-status.is-error {
  color: #787878;
}

.submit-page-status.is-success {
  color: #0a370f;
}

.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 12px;
  border-radius: 999px;
  background: transparent;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms 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(8px);
  -webkit-backdrop-filter: blur(8px);
  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: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  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: 16px;
  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 12px;
  border-radius: 999px;
  background: transparent;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms 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(8px);
  -webkit-backdrop-filter: blur(8px);
  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: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  box-shadow: var(--chrome-shadow);
  overflow: hidden;
}

.recent-seo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  background: #ffffff;
  color: #0f0f0f;
  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: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
}

.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 220ms 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 160ms ease;
}

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

.recent-seo-scroll::after {
  bottom: 0;
  background: linear-gradient(0deg, #ffffff 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 16px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.recent-seo-item + .recent-seo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: #ebebeb;
}

.recent-seo-item:hover,
.recent-seo-item:focus-visible {
  background: #fafafa;
  outline: none;
}

.recent-seo-item-title,
.recent-seo-item-source {
  margin: 0;
  max-width: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-seo-item-title {
  color: #0f0f0f;
}

.recent-seo-item-source {
  color: #a0a0a0;
}

.recent-seo-empty {
  margin: 0;
  padding: 14px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #a0a0a0;
}

.filters-frame {
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
}

.filters-scroll {
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
}

.filters-list {
  gap: 4px;
  height: 40px;
  align-items: center;
}

.filter-chip {
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #787878;
  box-shadow: var(--chrome-shadow);
  transition: background-color 160ms ease, color 160ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.filter-chip:hover,
.filter-chip.is-active,
.filter-chip.is-active:hover,
.filter-chip.is-active:focus-visible {
  background: #a5f550;
  color: #0a370f;
}

#clearFiltersBtn {
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #787878;
  box-shadow: var(--chrome-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#clearFiltersBtn:hover,
#clearFiltersBtn:focus-visible {
  background: #a5f550;
  color: #0a370f;
}

@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: 4px;
  }

  .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: 16px;
    line-height: 22px;
    padding-left: 16px;
    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: 8px;
    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: 16px 16px 0 0;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), visibility 320ms 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(10, 10, 10, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms 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: 16px;
    padding-right: 16px;
  }

  .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-last-updated {
    position: static;
    transform: none;
    width: 100%;
    white-space: normal;
  }

  .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: 16px 16px 88px;
    box-sizing: border-box;
  }

  .about-page-redesign .about-page-main {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 16px 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: 56px;
    width: 100%;
  }

  .about-page-redesign .about-scroll-btn {
    margin-top: 32px;
  }

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

  .submit-promo {
    left: 0;
    right: 0;
    width: 100%;
    height: 180px;
    transform: none;
  }

  .submit-promo-item {
    border-radius: 8px;
  }

  .submit-page .about-page-main {
    height: 100%;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

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

  .submit-page-middle {
    gap: 24px;
  }

  .submit-page-field .search-input-wrap input {
    font-size: 16px;
    line-height: 22px;
  }

  .about-page-content {
    gap: 24px;
    max-height: 100%;
  }

  .about-page-body {
    gap: 56px;
  }

  .about-page-intro {
    gap: 24px;
  }

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

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

  .categories-page-intro {
    gap: 24px;
    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;
  }
}

@media (max-width: 720px) and (max-height: 640px) {
  .about-page-content,
  .categories-page-intro {
    gap: 16px;
  }
}


.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 160ms ease;
  color: #0f0f0f;
  /* 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: 999px;
  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 160ms 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: rgba(255, 255, 255, 0.8);
    color: #0f0f0f;
  }

  .side-menu.is-open .side-menu-toggle-button,
  .side-menu.is-open .side-menu-toggle-button:focus-visible {
    background: #a5f550;
    color: #0a370f;
  }

  .filter-chip:hover,
  .filter-chip:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    color: #787878;
  }

  .filter-chip.is-active,
  .filter-chip.is-active:hover,
  .filter-chip.is-active:focus-visible {
    background: #a5f550;
    color: #0a370f;
  }

  #clearFiltersBtn:hover,
  #clearFiltersBtn:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    color: #787878;
  }

  .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: rgba(255, 255, 255, 0.8);
    color: #0f0f0f;
  }

  .view-mode-chevron-button:hover,
  .view-mode-chevron-button:focus-visible {
    color: #a0a0a0;
  }

  .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: 24px 24px 120px;
  box-sizing: border-box;
}

.blog-article-main {
  min-height: 100vh;
  padding: 24px 24px 64px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  background: #f5f5f5;
}

.blog-article-main.post-surface {
  padding: 24px 24px 64px;
}

.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 #ebebeb;
  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: #ebebeb;
  }
}

@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: #0a0a0a;
    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: 48px auto 0;
  text-align: center;
  color: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.blog-seo-list {
  width: 320px;
  max-width: calc(100% - 48px);
  margin: 0 auto 24px;
  padding: 0;
  list-style: decimal;
  color: #111;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.blog-seo-list li {
  margin: 0 0 12px;
}

.blog-seo-list a {
  color: #0a0a0a;
  text-decoration: none;
}

.blog-seo-list p {
  margin: 4px 0 0;
  color: #787878;
}

.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: 8px;
  width: 100%;
  margin: 0 0 32px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.blog-article-breadcrumb a,
.blog-article-breadcrumb span {
  color: #a0a0a0;
  text-decoration: none;
  flex: 0 0 auto;
}

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

.blog-article-breadcrumb a:hover,
.blog-article-breadcrumb a:focus-visible {
  color: #0f0f0f;
  outline: none;
}

.blog-article-cover {
  display: block;
  margin: 0 0 32px;
}

.blog-article-cover.is-appicon {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
}

.blog-article-cover.is-image {
  width: 100%;
  height: auto;
  max-width: 320px;
  border-radius: 0;
  object-fit: cover;
}

.blog-article-collection-icon {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 0 32px;
  background-color: #0f0f0f;
  -webkit-mask: url("/collection-icon.svg") center / contain no-repeat;
  mask: url("/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: #c8c8c8;
  -webkit-mask: url("/collection-icon.svg") center / contain no-repeat;
  mask: url("/collection-icon.svg") center / contain no-repeat;
  transition: background-color 180ms 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: #0f0f0f;
  }
}

.blog-article-date {
  margin: 0 0 8px;
  width: 100%;
  text-align: center;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.blog-article-title {
  margin: 0;
  width: 100%;
  text-align: center;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
  overflow-wrap: anywhere;
}

.blog-article-text {
  width: 100%;
  margin-top: 80px;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.blog-article-text.is-intro {
  margin-top: 48px;
  text-align: center;
  color: #a0a0a0;
}

.blog-article-text p {
  margin: 0 0 20px;
}

.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: #a0a0a0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.blog-article-text-more:hover,
.blog-article-text-more:focus-visible {
  color: #0f0f0f;
}

.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 32px;
  width: 100%;
  text-align: center;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  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: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e6e6;
  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: 16px;
  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: #ebebeb;
  }
}

.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: 32px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a0a0a0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  cursor: pointer;
}

.blog-article-view-more:hover,
.blog-article-view-more:focus-visible {
  color: #0f0f0f;
  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 160ms ease, visibility 160ms ease, transform 160ms 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: 16px;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  background: #ebebeb;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  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 #0f0f0f;
  outline-offset: 2px;
}

.blog-article-scroll-pin-chevron {
  width: 24px;
  height: 24px;
  color: #a0a0a0;
  display: grid;
  place-items: center;
  transition: color 140ms 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: #0f0f0f;
}

.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: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0f0f0f;
  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, #ebebeb 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(10px);
  -webkit-backdrop-filter: blur(10px);
  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(4px);
  -webkit-backdrop-filter: blur(4px);
  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: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  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: 8px;
  margin: 0 0 24px;
}

.admin-tab {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.admin-tab.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.admin-blog-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.admin-blog-editor {
  min-height: 280px;
  padding: 12px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  background: #fff;
  outline: none;
  color: #111;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.admin-blog-editor:empty::before {
  content: attr(data-placeholder);
  color: #9a9a9a;
  pointer-events: none;
}

.admin-blog-editor h1,
.admin-blog-editor h2,
.admin-blog-editor h3,
.admin-blog-editor h4,
.admin-blog-editor h5,
.admin-blog-editor h6 {
  margin: 0 0 12px;
  color: #111;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.admin-blog-editor p,
.admin-blog-editor div,
.admin-blog-editor span,
.admin-blog-editor li {
  margin: 0 0 12px;
  color: #111;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.admin-blog-editor span,
.admin-blog-editor a {
  margin: 0;
}

.admin-blog-editor a {
  color: #465ff5;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.admin-blog-editor img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
}

.admin-blog-cover-preview {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 8px 0 0;
  border-radius: 8px;
}

.admin-blog-related {
  display: grid;
  gap: 8px;
}

.admin-blog-related > span {
  font-weight: 600;
}

.admin-blog-related-hint {
  margin: 0;
  color: #787878;
  font-size: 13px;
  line-height: 18px;
}

.admin-blog-related-list {
  display: grid;
  gap: 8px;
}

.admin-blog-related-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.admin-blog-related-row input {
  width: 100%;
}
