:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfc;
  --text: #1d1d1f;
  --text-soft: #303035;
  --muted: #707078;
  --line: #e6e6ea;
  --line-strong: #d7d7dd;
  --accent: #111111;
  --blue: #056eb9;
  --tag: #f3f3f5;
  --focus-ring: rgba(0, 102, 204, 0.2);
  --radius-sm: 8px;
  --radius-md: 8px;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 22px rgba(0, 0, 0, 0.05);
  --shadow-border:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-border-hover:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.no-js #postList,
.no-js #resultCount {
  display: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
}

:where(#main) button,
:where(#main) input,
:where(#main) select,
:where(#main) summary {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

:where(#main) button,
:where(#main) input,
:where(#main) select {
  letter-spacing: 0;
}

:where(#main) a {
  color: inherit;
  text-decoration: none;
}

:where(#main) img {
  display: block;
  height: auto;
  max-width: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

:where(#main) mark {
  border-radius: 4px;
  background: #fff1a8;
  color: inherit;
  padding: 0 2px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
}

.skip-link:focus {
  left: 12px;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 max(40px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(230, 230, 234, 0.82);
  background: #f5f5f9;
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  color: var(--text);
  line-height: 1.12;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
  flex: 0 0 auto;
  outline: 0;
}

.brand-word {
  font-size: 17px;
}

.brand-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(3px);
  white-space: nowrap;
}

.brand-subtitle span {
  display: block;
  transform: translateY(1px);
}

.brand-subtitle-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  outline: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-nav-menu {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav a,
.mobile-nav a,
.menu-toggle,
.text-button,
.primary-button,
.tag-button {
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.topic-card {
  min-height: 40px;
  border-radius: var(--radius-sm);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 2px;
  color: var(--muted);
  font-weight: 800;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: transparent;
  color: var(--text);
  outline: none;
}

.nav a:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--tag);
  color: var(--text);
  outline: none;
}

.nav a[aria-current="page"] {
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.nav a:active {
  transform: scale(0.96);
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 44px;
  min-width: 44px;
  padding: 0 2px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.menu-toggle-icon {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 14px;
  place-items: center;
}

.menu-toggle-icon span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle-icon span:first-child {
  transform: translateY(-4px);
}

.menu-toggle-icon span:last-child {
  transform: translateY(4px);
}

.mobile-nav-menu[open] .menu-toggle-icon span:first-child {
  transform: rotate(45deg);
}

.mobile-nav-menu[open] .menu-toggle-icon span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
  font-weight: 800;
}

:where(#main) {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--text);
  line-height: 1.62;
  overflow-wrap: break-word;
  text-wrap: pretty;
  word-break: keep-all;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: min(480px, calc(100vh - 132px));
  padding: 34px 0 24px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

:where(#main) h1,
:where(#main) h2,
:where(#main) h3 {
  text-wrap: balance;
}

:where(#main) h1,
:where(#main) h2,
:where(#main) h3,
:where(#main) p {
  margin-top: 0;
}

:where(#main) h1 {
  margin-bottom: 0;
  font-size: 52px;
  line-height: 1.02;
}

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.7;
}

.hero-stats,
.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  gap: 10px;
}

.hero-actions .text-button {
  padding: 10px 14px;
}

.hero-stats span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.featured-post,
.recent-section,
.saved-section,
.toolbar,
.topic-map,
.archive-section,
.posts-section,
.about-section,
.post-view {
  margin: 36px 0;
}

.post-view {
  display: grid;
  grid-template-columns: minmax(0, 920px) minmax(220px, 280px);
  grid-template-areas:
    "tools tools"
    "message message"
    "article toc"
    "related related";
  align-items: start;
  justify-content: center;
  column-gap: 32px;
}

.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border), var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.featured-card:hover,
.featured-card:focus-within {
  box-shadow: var(--shadow-border-hover), var(--shadow-card);
  transform: translateY(-1px);
}

.featured-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-right: 0;
}

.featured-media-link,
.featured-card-link {
  display: grid;
  border-radius: var(--radius-sm);
}

.featured-media-link {
  display: none;
}

.featured-media-link:focus-visible,
.featured-card-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: #f3f4f6;
  object-fit: contain;
  object-position: center;
  transition: transform 220ms ease;
}

.featured-card:hover img,
.featured-card:focus-within img {
  transform: scale(1.02);
}

.featured-card h2 {
  margin: 6px 0 10px;
  font-size: 34px;
  line-height: 1.16;
}

.featured-card p {
  color: var(--text-soft);
}

.featured-topic,
.post-card-topic {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.featured-save-button {
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
}

.featured-save-button:not(.active) .save-icon-off {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.featured-meta,
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.meta-item + .meta-item::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.posts-section .toolbar {
  margin: 0 0 20px;
}

.search-box,
.sort-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sort-box {
  min-width: 132px;
}

.search-box input,
.sort-box select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-border);
  color: var(--text);
  padding: 0 12px;
  transition: box-shadow 160ms ease, transform 120ms ease;
}

.search-box input:hover,
.sort-box select:hover {
  box-shadow: var(--shadow-border-hover);
}

.search-box input:focus,
.sort-box select:focus,
:where(#main) button:focus-visible,
:where(#main) a:focus-visible,
:where(#main) summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.tag-filters,
.filter-summary,
.list-message {
  grid-column: 1 / -1;
}

.article-primary-actions,
.article-tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-button,
.primary-button,
.tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.text-button:active,
.primary-button:active,
.tag-button:active {
  transform: scale(0.96);
}

.text-button {
  padding: 8px 12px;
}

.text-button.compact {
  min-height: 44px;
  padding: 7px 11px;
  font-size: 14px;
}

.primary-button {
  padding: 10px 14px;
  background: var(--accent);
  color: #ffffff;
}

.tag-button.active,
.saved-filter-button.active,
.list-pagination .text-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.saved-filter-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tag-button.active .tag-filter-count {
  color: #111111;
  background: #ffffff;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-button {
  gap: 8px;
  padding: 7px 10px;
}

.tag-button:not(.active) {
  border-color: transparent;
  background: var(--tag);
}

.tag-filter-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--tag);
  color: var(--muted);
  font-size: 12px;
}

#resultCount,
.filter-summary,
.tag-filter-count,
.list-pagination .text-button,
.pagination-summary,
.topic-count,
.archive-item span,
.archive-meta,
.article-meta,
.featured-meta,
.meta,
.recent-meta,
.saved-meta {
  font-variant-numeric: tabular-nums;
}

.filter-summary,
.list-message,
.empty-state {
  margin: 0;
  color: var(--muted);
}

#postViewMessage {
  grid-area: message;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 620px;
}

.empty-state-detail {
  display: block;
}

.empty-state-action {
  margin-top: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.posts-section.is-empty-production .section-heading {
  display: grid;
  justify-content: start;
  gap: 8px;
}

.posts-section.is-empty-production #resultCount {
  max-width: 620px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 38px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.compact-heading h2 {
  font-size: 28px;
}

.recent-section {
  padding: 2px 0;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recent-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 6px 10px;
  min-height: 92px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.recent-link:hover,
.recent-link:focus-visible {
  box-shadow: var(--shadow-border-hover), var(--shadow-card);
  transform: translateY(-1px);
  outline: none;
}

.recent-link:active {
  transform: translateY(0);
}

.recent-meta {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-link > strong {
  grid-column: 1;
  font-size: 17px;
  line-height: 1.4;
}

.recent-meta strong,
.saved-meta strong {
  color: var(--blue);
  font-weight: 900;
}

.recent-cue,
.saved-cue {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  text-align: right;
  transition: color 160ms ease, transform 160ms ease;
}

.recent-cue {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.recent-link:hover .recent-cue,
.recent-link:focus-visible .recent-cue,
.saved-card:hover .saved-cue,
.saved-card:focus-within .saved-cue {
  color: var(--accent);
  transform: translateX(2px);
}

.recent-progress {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tag);
}

.recent-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.recent-progress.progress-5 span { width: 5%; }
.recent-progress.progress-10 span { width: 10%; }
.recent-progress.progress-15 span { width: 15%; }
.recent-progress.progress-20 span { width: 20%; }
.recent-progress.progress-25 span { width: 25%; }
.recent-progress.progress-30 span { width: 30%; }
.recent-progress.progress-35 span { width: 35%; }
.recent-progress.progress-40 span { width: 40%; }
.recent-progress.progress-45 span { width: 45%; }
.recent-progress.progress-50 span { width: 50%; }
.recent-progress.progress-55 span { width: 55%; }
.recent-progress.progress-60 span { width: 60%; }
.recent-progress.progress-65 span { width: 65%; }
.recent-progress.progress-70 span { width: 70%; }
.recent-progress.progress-75 span { width: 75%; }
.recent-progress.progress-80 span { width: 80%; }
.recent-progress.progress-85 span { width: 85%; }
.recent-progress.progress-90 span { width: 90%; }
.recent-progress.progress-95 span { width: 95%; }
.recent-progress.progress-100 span { width: 100%; }

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.saved-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.saved-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 6px 10px;
  min-width: 0;
}

.saved-card a:focus-visible {
  border-radius: var(--radius-sm);
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.saved-card:hover,
.saved-card:focus-within {
  box-shadow: var(--shadow-border-hover), var(--shadow-card);
  transform: translateY(-1px);
}

.saved-card:active {
  transform: translateY(0);
}

.saved-card .save-button {
  width: auto;
  justify-self: end;
  white-space: nowrap;
}

.saved-meta {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-card a > strong {
  grid-column: 1;
  font-size: 17px;
  line-height: 1.4;
}

.saved-cue {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-border), var(--shadow-soft);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.post-card-link {
  display: grid;
  height: 100%;
}

.post-card:hover,
.post-card:focus-within {
  box-shadow: var(--shadow-border-hover), var(--shadow-card);
  transform: translateY(-1px);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  object-fit: contain;
  object-position: center;
  transition: transform 220ms ease;
}

.post-card:hover img,
.post-card:focus-within img {
  transform: scale(1.02);
}

.post-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.post-card-topic {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 112px);
  overflow: hidden;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-border);
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.post-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
}

.post-card:hover .post-card-actions,
.post-card:focus-within .post-card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.icon-button span,
.icon-button svg {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1), filter 180ms cubic-bezier(0.2, 0, 0, 1), transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.post-card:hover .icon-button span,
.post-card:hover .icon-button svg,
.post-card:focus-within .icon-button span,
.post-card:focus-within .icon-button svg,
.icon-button:focus-visible span,
.icon-button:focus-visible svg {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.icon-button.save-button .save-icon {
  grid-area: 1 / 1;
}

.post-card:hover .icon-button.save-button:not(.active) .save-icon-on,
.post-card:focus-within .icon-button.save-button:not(.active) .save-icon-on,
.icon-button.save-button:not(.active):focus-visible .save-icon-on,
.post-card:hover .icon-button.save-button.active .save-icon-off,
.post-card:focus-within .icon-button.save-button.active .save-icon-off,
.icon-button.save-button.active:focus-visible .save-icon-off {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
}

.post-card:hover .icon-button.save-button:not(.active) .save-icon-off,
.post-card:focus-within .icon-button.save-button:not(.active) .save-icon-off,
.icon-button.save-button:not(.active):focus-visible .save-icon-off,
.post-card:hover .icon-button.save-button.active .save-icon-on,
.post-card:focus-within .icon-button.save-button.active .save-icon-on,
.icon-button.save-button.active:focus-visible .save-icon-on {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.icon-button.save-button.active .save-icon-off {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
}

.icon-button.save-button.active .save-icon-on {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--tag);
  outline: none;
}

.icon-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.icon-button.is-success {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.icon-button.is-success span,
.icon-button.is-success svg {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.list-reaction-button {
  font-size: 15px;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.save-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.post-card h3 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.28;
}

.post-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.post-card h3,
.post-card p,
.recent-link > strong,
.saved-card a > strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.post-card h3,
.recent-link > strong,
.saved-card a > strong {
  -webkit-line-clamp: 2;
}

.post-card p {
  -webkit-line-clamp: 3;
  text-wrap: pretty;
}

.post-card-meta {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.post-card-meta .meta-item {
  flex: 0 0 auto;
  white-space: nowrap;
}

.post-card-meta .meta-item:nth-child(2) {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-cue {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 18px;
  margin-left: auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.58;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.post-card:hover .read-cue,
.post-card:focus-within .read-cue {
  color: var(--accent);
  opacity: 1;
  transform: translateX(2px);
}

.search-context {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 4px 0 0 10px;
  border-left: 2px solid rgba(17, 17, 17, 0.12);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

.search-context-label {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.search-context-snippet {
  min-width: 0;
}

.post-list.is-loading {
  pointer-events: none;
}

.list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px auto 0;
}

.pagination-pages {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border-radius: calc(var(--radius-sm) + 4px);
  background: var(--surface-soft);
}

.pagination-summary {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.list-pagination .text-button {
  min-width: 44px;
}

.list-pagination .pagination-step {
  gap: 6px;
  min-width: 74px;
}

.pagination-step span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.pagination-step:not(:disabled):hover span,
.pagination-step:not(:disabled):focus-visible span {
  color: currentColor;
  transform: translateX(1px);
}

.pagination-step[data-page-direction="prev"]:not(:disabled):hover span,
.pagination-step[data-page-direction="prev"]:not(:disabled):focus-visible span {
  transform: translateX(-1px);
}

.list-pagination .text-button:not(.active):not(:disabled) {
  border-color: transparent;
  background: transparent;
}

.list-pagination .text-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.skeleton-card {
  min-height: 360px;
}

.skeleton-media,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: #ededf0;
}

.skeleton-media::after,
.skeleton-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  transform: translateX(-100%);
  animation: skeleton-sweep 1.3s ease-in-out infinite;
}

.skeleton-media {
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 32%;
}

.skeleton-line.medium {
  width: 68%;
}

.skeleton-line.title {
  width: 86%;
  height: 22px;
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

.topic-grid,
.about-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-list {
  display: grid;
  gap: 16px;
}

.archive-month {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.archive-month h3 {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.archive-items {
  display: grid;
  gap: 8px;
}

.archive-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(180px, 0.34fr) 22px;
  gap: 14px;
  align-items: baseline;
  min-height: 48px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.archive-item:hover,
.archive-item:focus-visible {
  background: var(--surface);
  box-shadow: var(--shadow-border-hover);
  transform: translateY(-1px);
  outline: none;
}

.archive-item:active {
  transform: translateY(0);
}

.archive-item span,
.archive-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.archive-item > strong {
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
  text-wrap: pretty;
}

.archive-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-meta strong {
  color: var(--blue);
  font-size: inherit;
  font-weight: 900;
  line-height: inherit;
}

.archive-cue {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  text-align: right;
  transition: color 160ms ease, transform 160ms ease;
}

.archive-item:hover .archive-cue,
.archive-item:focus-visible .archive-cue {
  color: var(--accent);
  transform: translateX(2px);
}

.topic-card,
.about-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.topic-card {
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  cursor: pointer;
}

.topic-card:hover,
.topic-card:focus-visible {
  box-shadow: var(--shadow-border-hover), inset 0 0 0 1px var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.topic-card.active {
  box-shadow: var(--shadow-border-hover), inset 0 0 0 1px rgba(17, 17, 17, 0.14);
  outline: none;
}

.topic-card.active:hover,
.topic-card.active:focus-visible {
  transform: none;
}

.topic-card:active {
  transform: scale(0.96);
}

.topic-count,
.topic-latest {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.topic-latest {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-card strong,
.about-grid strong {
  min-width: 0;
  font-size: 18px;
}

.topic-count {
  display: inline-grid;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
  line-height: 1;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.topic-cue {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  text-align: right;
  transition: color 160ms ease, transform 160ms ease;
}

.topic-card:hover .topic-cue,
.topic-card:focus-visible .topic-cue,
.topic-card.active .topic-cue {
  color: var(--accent);
  transform: translateX(2px);
}

.topic-card.active .topic-count {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.14);
  color: var(--accent);
}

.article-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 28px;
  padding: 0 0 12px;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.article-menu,
.reading-settings {
  position: relative;
}

.article-menu summary,
.reading-settings summary {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.article-menu summary:hover,
.article-menu summary:focus-visible,
.reading-settings summary:hover,
.reading-settings summary:focus-visible {
  background: var(--tag);
  color: var(--text);
  box-shadow: var(--shadow-border-hover);
}

.article-menu[open] summary,
.reading-settings[open] summary {
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-border);
}

.article-menu summary:active,
.reading-settings summary:active {
  transform: scale(0.96);
}

.article-menu summary::-webkit-details-marker,
.reading-settings summary::-webkit-details-marker {
  display: none;
}

.article-tool-group {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-border), var(--shadow-card);
}

.article {
  grid-area: article;
  width: min(100%, 960px);
  margin: 0 auto;
}

.static-article {
  width: min(100%, 1040px);
  padding: 52px 0 22px;
}

.static-toc {
  margin-bottom: 26px;
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  width: min(100%, 920px);
  margin: 34px auto 0;
}

.post-pagination-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border);
}

.article.width-narrow {
  width: min(100%, 720px);
}

.article.width-wide {
  width: min(100%, 1120px);
}

.article-header {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.article-header h1 {
  font-size: 44px;
  line-height: 1.14;
  hyphens: auto;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: keep-all;
}

.article-header p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 7.5;
  margin: 0 0 34px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.article-loading {
  display: grid;
  gap: 16px;
}

.article-loading .skeleton-media {
  border-radius: var(--radius-md);
}

.article-loading-header {
  opacity: 0.88;
}

.article-content {
  font-size: calc(16.5px * var(--article-scale, 1));
  line-height: 1.72;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content > :last-child {
  margin-bottom: 0;
}

.article.scale-90 .article-content { --article-scale: 0.9; }
.article.scale-95 .article-content { --article-scale: 0.95; }
.article.scale-100 .article-content { --article-scale: 1; }
.article.scale-105 .article-content { --article-scale: 1.05; }
.article.scale-110 .article-content { --article-scale: 1.1; }
.article.scale-115 .article-content { --article-scale: 1.15; }
.article.scale-120 .article-content { --article-scale: 1.2; }

.article.leading-compact .article-content { line-height: 1.58; }
.article.leading-wide .article-content { line-height: 1.9; }
.article.font-serif .article-content { font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.article.paragraph-compact .article-content p { margin-bottom: 12px; }
.article.paragraph-wide .article-content p { margin-bottom: 26px; }

.article-content h1,
.article-content h2 {
  position: relative;
  display: block;
  scroll-margin-top: 104px;
  margin: 38px 0 10px;
  font-size: 25px;
  line-height: 1.3;
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: keep-all;
}

.article-content h3 {
  position: relative;
  display: block;
  scroll-margin-top: 104px;
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.34;
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: keep-all;
}

.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
  text-wrap: balance;
}

.heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.72em;
  opacity: 0;
  text-decoration: none;
  transform: scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.heading-anchor::before {
  content: "#";
}

.article-content h2:hover .heading-anchor,
.article-content h2:focus-within .heading-anchor,
.article-content h3:hover .heading-anchor,
.article-content h3:focus-within .heading-anchor {
  opacity: 1;
  transform: scale(1);
}

.heading-anchor:hover,
.heading-anchor:focus-visible {
  background: var(--tag);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-border-hover);
}

.heading-anchor:focus-visible {
  opacity: 1;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  transform: scale(1);
}

@media (min-width: 881px) {
  .heading-anchor {
    position: absolute;
    top: 50%;
    left: -48px;
    transform: translateY(-50%) scale(0.96);
  }

  .article-content h2:hover .heading-anchor,
  .article-content h2:focus-within .heading-anchor,
  .article-content h3:hover .heading-anchor,
  .article-content h3:focus-within .heading-anchor,
  .heading-anchor:hover,
  .heading-anchor:focus-visible {
    transform: translateY(-50%) scale(1);
  }
}

.article-content p {
  margin-bottom: 18px;
}

.article-content :where(p, li, figcaption, blockquote) {
  overflow-wrap: break-word;
  text-wrap: pretty;
  word-break: keep-all;
}

.article-content a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-link-card {
  margin: 28px 0;
}

.article-link-card a {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-border), 0 12px 26px rgba(0, 0, 0, 0.045);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.article-link-card a:hover,
.article-link-card a:focus-visible {
  box-shadow: var(--shadow-border-hover), 0 16px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.article-link-card a:active {
  transform: scale(0.96);
}

.article-link-card-domain,
.article-link-card-url {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.article-link-card strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.article-link-card-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-content li {
  padding-left: 2px;
}

.article-content li > :last-child {
  margin-bottom: 0;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 3px 0 0 rgba(17, 17, 17, 0.14), var(--shadow-border);
  color: var(--text-soft);
}

.article-content blockquote > :last-child {
  margin-bottom: 0;
}

.article-content code {
  border-radius: 5px;
  background: var(--tag);
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-variant-ligatures: none;
}

.article-content pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 0;
  background: #f8fafc;
  box-shadow: var(--shadow-border), 0 10px 24px rgba(0, 0, 0, 0.04);
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
  font-size: 0.92em;
  line-height: 1.62;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-content figure {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}

.article-content img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-border);
}

.article-content p > img:only-child {
  margin: 30px auto;
}

.article-content figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 26px 0;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-border);
  font-size: 0.94em;
  line-height: 1.5;
}

.article-content th,
.article-content td {
  min-width: 128px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 850;
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-content hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.toc {
  grid-area: toc;
  position: sticky;
  top: 104px;
  width: 100%;
  max-height: calc(100vh - 132px);
  overflow: auto;
  margin: 0;
  padding: 14px 14px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.toc-section li {
  min-width: 0;
}

.toc a {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 750;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc a:hover,
.toc a:focus-visible,
.toc a[aria-current="true"] {
  background: var(--tag);
  color: var(--text);
  outline: none;
}

.toc a[aria-current="true"] {
  color: var(--text);
  font-weight: 850;
  box-shadow: none;
}

.toc .nested {
  margin-left: 18px;
}

.toc-section + .toc-recommendations {
  margin-top: 18px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
}

.toc-recommendations {
  display: grid;
  gap: 10px;
}

.toc-recommendation-list {
  display: grid;
  gap: 8px;
}

.toc .toc-recommendation {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 8px 0;
  border-radius: 0;
  color: var(--text);
}

.toc .toc-recommendation:hover,
.toc .toc-recommendation:focus-visible {
  background: transparent;
  color: var(--text);
}

.toc-recommendation span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.toc-recommendation small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-posts {
  grid-area: related;
  width: min(100%, 920px);
  display: grid;
  gap: 12px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 14px;
}

.related-posts .section-heading {
  display: grid;
  justify-content: start;
  gap: 6px;
  margin-bottom: 2px;
}

.related-posts .section-heading h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.related-posts .section-heading p {
  max-width: 520px;
  font-size: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.related-card {
  display: grid;
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 16px;
  color: inherit;
  transition: background-color 160ms ease, transform 120ms ease;
}

.related-card + .related-card {
  border-top: 1px solid var(--line);
}

.related-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
  text-wrap: pretty;
}

.related-card .related-meta strong {
  color: var(--blue);
  font-size: inherit;
  font-weight: 900;
  line-height: inherit;
}

.related-cue {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  text-align: right;
  transition: color 160ms ease, transform 160ms ease;
}

.post-pagination-card {
  display: grid;
  grid-template-columns: 1fr;
  aspect-ratio: 16 / 9;
  min-height: 184px;
  padding: 0;
}

.post-pagination-card + .post-pagination-card {
  border-top: 0;
}

.post-pagination-card .related-cue {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.12);
}

.post-pagination-card .related-thumbnail {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  overflow: hidden;
}

.post-pagination-card .related-thumbnail img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: transform 220ms ease;
}

.post-pagination-card .related-copy {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.post-pagination-card .related-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  line-height: 1.25;
  box-shadow: 0 10px 26px rgba(29, 29, 31, 0.12);
  white-space: normal;
  backdrop-filter: blur(10px);
}

.post-pagination-card .related-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.related-card:hover,
.related-card:focus-visible {
  background: var(--surface);
  transform: translateY(-1px);
  outline: none;
}

.related-card:hover .related-cue,
.related-card:focus-visible .related-cue {
  color: var(--accent);
  transform: translateX(2px);
}

.post-pagination-card:hover .related-thumbnail img,
.post-pagination-card:focus-visible .related-thumbnail img {
  transform: none;
}

.related-card:active {
  transform: translateY(0);
}

.post-pagination-previous {
  grid-template-columns: 22px minmax(132px, auto) minmax(0, 1fr);
}

.post-pagination-previous .related-cue {
  grid-column: 1;
  text-align: left;
}

.post-pagination-card.post-pagination-previous .related-cue {
  right: auto;
  left: 14px;
}

.post-pagination-card > strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: pretty;
}

.post-pagination-previous:hover .related-cue,
.post-pagination-previous:focus-visible .related-cue {
  transform: translateX(-2px);
}

.compact-heading {
  align-items: end;
  padding: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
  padding: 26px 0 54px;
}

.about-section p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--text);
  font-size: 15px;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.not-found-card {
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  padding: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-border), var(--shadow-soft);
}

.not-found-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-height: 44px;
  font-weight: 900;
}

.not-found-card h1 {
  margin: 0;
  font-size: 44px;
}

.not-found-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.not-found-card .eyebrow {
  margin-top: 4px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .about-section {
    grid-template-columns: 1fr;
  }

  .post-list,
  .topic-grid,
  .about-grid,
  .recent-grid,
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    min-height: 64px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-nav-menu {
    position: static;
    display: block;
  }

  .mobile-nav-menu[open] .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav {
    position: fixed;
    top: 72px;
    right: max(24px, calc((100vw - 1180px) / 2));
    z-index: 70;
    width: 180px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-border-hover), 0 14px 34px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-nav a {
    justify-content: flex-start;
    min-width: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .hero {
    min-height: 0;
    padding: 30px 0 26px;
  }

  .hero-image {
    aspect-ratio: 16 / 7;
    max-height: 220px;
  }

  .post-view {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "message"
      "toc"
      "article"
      "related";
    column-gap: 0;
  }

  .toc {
    position: static;
    width: min(100%, 780px);
    max-height: none;
    margin: 0 auto 24px;
    overflow: visible;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .featured-copy {
    order: -1;
    padding-right: 0;
  }

  :where(#main) h1 {
    font-size: 54px;
  }

  .featured-card h2,
  .section-heading h2 {
    font-size: 32px;
  }

  .article-header h1 {
    font-size: 40px;
  }

  .article-tools,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-month,
  .archive-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 64px;
    padding: 8px 14px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-word {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .nav {
    width: auto;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 12px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    position: relative;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 2px;
    font-size: 14px;
  }

  .nav a[aria-current="page"] {
    background: transparent;
    box-shadow: none;
    color: var(--text);
  }

  .nav a[aria-current="page"]::after {
    right: 4px;
    bottom: 6px;
    left: 4px;
  }

  .nav a:focus-visible {
    box-shadow: 0 0 0 3px var(--focus-ring);
  }

  .post-list,
  .topic-grid,
  .about-grid,
  .recent-grid,
  .saved-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions,
  .article-primary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .text-button,
  .primary-button,
  .sort-box {
    width: 100%;
  }

  .hero {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-image {
    max-height: 96px;
  }

  .featured-card {
    gap: 14px;
    padding: 20px;
  }

  .featured-card .featured-copy {
    padding-right: 0;
  }

  .featured-media-link {
    display: none;
  }

  .featured-card h2 {
    margin-bottom: 8px;
  }

  .featured-actions {
    align-items: center;
    justify-content: space-between;
  }

  .post-card-actions {
    position: static;
    justify-content: flex-start;
    padding: 0 16px 16px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
  }

  .post-card-actions .list-share-button,
  .post-card-actions .list-download-button {
    display: none;
  }

  .post-card-actions .icon-button span,
  .post-card-actions .icon-button svg {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  .post-card-actions .save-button:not(.active) .save-icon-on,
  .post-card-actions .save-button.active .save-icon-off {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
  }

  .post-card-body {
    gap: 8px;
    padding: 16px;
  }

  .post-card h3 {
    font-size: 20px;
    line-height: 1.24;
  }

  .post-card p {
    -webkit-line-clamp: 2;
    font-size: 15px;
    line-height: 1.58;
    max-height: calc(15px * 1.58 * 2);
  }

  .saved-card .save-button {
    width: auto;
  }

  .tag-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .tag-button {
    flex: 0 0 auto;
  }

  .toc {
    display: none;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
  }

  .toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr);
    align-items: end;
    gap: 10px;
  }

  .toolbar:not(.has-saved-filter) .toolbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar:not(.has-saved-filter) .sort-box {
    justify-self: end;
    min-width: 132px;
  }

  .toolbar .sort-box {
    width: auto;
  }

  .toolbar .text-button.compact {
    min-height: 44px;
    padding-inline: 9px;
  }

  #clearSearchButton:not([hidden]) {
    grid-column: 1 / -1;
    width: 100%;
  }

  .article-menu[open],
  .reading-settings[open] {
    display: grid;
    gap: 8px;
  }

  .article-menu[open] .article-tool-group,
  .reading-settings[open] .article-tool-group {
    position: static;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding: 30px 24px;
  }

  :where(#main) h1 {
    font-size: 36px;
  }

  .featured-card h2,
  .section-heading h2,
  .not-found-card h1 {
    font-size: 30px;
  }

  .not-found-card {
    padding: 24px;
  }

  .not-found-page {
    align-items: start;
    justify-items: center;
    min-height: 100svh;
    padding-top: 96px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .featured-card h2 {
    font-size: 28px;
  }

  .article-header h1 {
    font-size: 28px;
    line-height: 1.16;
  }

  .article-header {
    gap: 10px;
    margin-bottom: 20px;
  }

  .article-header p {
    font-size: 16px;
    line-height: 1.54;
  }

  .article-content {
    font-size: calc(16px * var(--article-scale, 1));
    line-height: 1.68;
  }

  .article-content h1,
  .article-content h2 {
    margin-top: 34px;
    font-size: 23px;
  }

  .article-content h3 {
    margin-top: 26px;
    font-size: 19px;
  }

  .article-content p {
    margin-bottom: 16px;
  }

  .article-content table {
    font-size: 0.9em;
  }

  .article-content th,
  .article-content td {
    min-width: 116px;
    padding: 9px 10px;
  }

  .article-meta {
    gap: 8px;
  }

  .article-cover {
    aspect-ratio: 16 / 7.5;
    margin-bottom: 18px;
  }

  .archive-item {
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: start;
    gap: 4px 10px;
  }

  .archive-item > span:first-child,
  .archive-item > strong,
  .archive-meta {
    grid-column: 1;
  }

  .archive-item > span:first-child {
    font-size: 12px;
    font-weight: 700;
  }

  .archive-item > strong {
    margin-top: 2px;
  }

  .archive-cue {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .post-pagination-card.related-card {
    min-height: 156px;
  }

  .post-pagination-card .related-meta {
    max-width: calc(100% - 52px);
    font-size: 12px;
  }

  .post-pagination-card .related-cue {
    top: 12px;
    right: 12px;
  }

  .post-pagination-card.post-pagination-previous .related-cue {
    left: 12px;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .featured-card h2 {
    font-size: 26px;
  }

  .article-header h1 {
    font-size: 26px;
  }
}

/* Corca Tech directory layout. */
body {
  background: #ffffff;
}

main {
  width: min(1280px, calc(100% - 40px));
}

.site-header {
  min-height: 64px;
  padding: 14px max(20px, calc((100vw - 1280px) / 2));
  border-bottom: 0;
  background: #f5f5f9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-word {
  font-size: 18px;
}

.brand-subtitle {
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
}

.hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-height: min(360px, calc(100vh - 132px));
  padding: 76px 0 30px;
  text-align: center;
}

.hero-copy {
  justify-items: center;
  width: min(100%, 780px);
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  color: var(--text);
  font-size: 64px;
  line-height: 1.02;
}

.hero-title-sub {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1.38;
}

.hero .lead {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-topic-filters {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.hero-topic-filters button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  padding: 5px 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.hero-topic-filters button::after {
  content: attr(data-count);
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hero-topic-filters button:hover,
.hero-topic-filters button:focus-visible {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

/* Selected tag simply keeps the hover look (subtle border + white fill),
   rather than standing out with a strong outline or fill. */
.hero-topic-filters button.active {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.hero-topic-filters button.active::after {
  color: var(--muted);
}

.hero-topic-filters button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.hero-actions {
  justify-content: center;
  margin-top: 8px;
}

.hero-image {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.featured-post,
.recent-section,
.saved-section,
.toolbar,
.topic-map,
.archive-section,
.posts-section,
.about-section,
.post-view {
  margin: 64px 0;
}

.topic-map {
  margin-top: 28px;
}

.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topic-card {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  color: var(--blue);
}

.topic-card strong {
  font-size: 14px;
}

.topic-latest,
.topic-cue {
  display: none;
}

.topic-count {
  width: auto;
  height: auto;
  min-width: 24px;
  padding: 2px 7px;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  font-size: 12px;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.active {
  background: var(--blue);
  box-shadow: none;
  color: #ffffff;
}

.topic-card.active .topic-count {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.section-heading {
  align-items: center;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: 30px;
}

.posts-section .toolbar {
  margin-bottom: 34px;
}

.post-list {
  gap: 64px;
}

.post-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.post-card:hover,
.post-card:focus-within {
  box-shadow: none;
  transform: translateY(-2px);
}

.post-card-link,
.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card img {
  border-radius: 6px;
  background: #f2f4f7;
}

.post-card-body {
  gap: 8px;
  padding: 22px 0 0;
}

.post-card h3 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.37;
}

.post-card p {
  color: var(--muted);
  line-height: 1.58;
  -webkit-line-clamp: 2;
}

.post-card-meta {
  margin-top: 2px;
}

.list-pagination {
  gap: 10px;
  margin-top: 90px;
}

.pagination-pages {
  gap: 10px;
  padding: 0;
  background: transparent;
}

.list-pagination .text-button {
  min-width: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  box-shadow: none;
}

.list-pagination .text-button.active,
.list-pagination .pagination-step {
  background: #f3f4f6;
  color: var(--text);
}

.list-pagination .pagination-step {
  min-width: 50px;
}

.list-pagination .text-button:not(.active):not(:disabled) {
  background: transparent;
}

.pagination-step span {
  color: currentColor;
  font-size: 30px;
}

.pagination-summary {
  display: none;
}

.site-footer {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  border-top: 0;
  background: #f1f5f9;
  color: var(--subTxt-gray, #475569);
}

.site-footer .footer-inner {
  display: block;
  padding: 55px 20px 34px;
}

.site-footer .footer-sitemap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
  padding-bottom: 72px;
}

.site-footer .footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.footer-brand strong,
.site-footer strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-logo {
  width: 112px;
  height: auto;
  outline: 0;
}

.site-footer .footer-site-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, max-content));
  justify-content: end;
  gap: 28px;
}

.site-footer .footer-site-group {
  display: grid;
  align-content: start;
  gap: 4px;
}

.footer-site-group h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.43;
}

.footer-site-group a {
  display: block;
  min-height: 32px;
  padding: 4px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  transition: color 160ms ease, transform 120ms ease;
}

.footer-site-group a:hover,
.footer-site-group a:focus-visible {
  color: var(--blue);
  outline: none;
  transform: translateX(2px);
}

.site-footer .footer-bottom {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer .footer-policy-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.footer-policy-links a {
  color: var(--muted);
  font-size: 12px;
}

.footer-policy-links a + a::before {
  display: inline-block;
  width: 2px;
  height: 2px;
  margin: 0 10px 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

@media (max-width: 1023px) {
  .site-footer .footer-sitemap {
    display: block;
    padding-bottom: 40px;
  }

  .site-footer .footer-site-groups {
    grid-template-columns: repeat(2, minmax(112px, max-content));
    justify-content: end;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 52px;
  }

  .hero-title-main {
    font-size: 48px;
  }

  .hero-title-sub {
    font-size: 18px;
  }

  .list-pagination .text-button {
    min-width: 34px;
    min-height: 34px;
    font-size: 15px;
  }

  .pagination-step span {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 28px 10px;
  }

  .nav {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .nav a {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
    font-size: 14px;
  }

  main {
    width: min(100% - 28px, 1280px);
  }

  .hero {
    padding-top: 34px;
    text-align: left;
  }

  .hero-copy {
    justify-items: start;
  }

  .hero-title-main {
    font-size: 42px;
  }

  .hero-title-sub {
    font-size: 17px;
  }

  .hero-actions {
    justify-content: stretch;
    width: 100%;
  }

  .topic-map,
  .posts-section {
    margin-top: 48px;
  }

  .section-heading {
    align-items: stretch;
    gap: 8px;
  }

  .post-list {
    gap: 42px;
  }

  .post-card-body {
    padding-top: 16px;
  }

  .post-card h3 {
    min-height: 0;
  }

  .post-card-actions {
    padding: 12px 0 0;
  }

  .site-footer .footer-inner {
    padding: 34px 20px 28px;
  }

  .site-footer .footer-site-groups {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

/* Tech-blog directory structure. */
.site-header {
  flex-wrap: nowrap;
  min-height: 64px;
  padding: 0 max(40px, calc((100vw - 1280px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 96px;
  height: auto;
}

.brand-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  font-size: 13px;
  line-height: 1;
  transform: translateY(3px);
}

.nav {
  gap: 36px;
  width: auto;
}

.nav a {
  min-width: 0;
  color: #6b6f78;
  font-size: 16px;
}

main {
  width: min(1280px, calc(100% - 80px));
}

main:has(.post-view:not([hidden])),
main:has(.static-post-view) {
  width: min(1520px, calc(100% - 32px));
}

/* Match the site's category middle pages (products/about): a full-bleed
   #e1eaf7 → white gradient behind a centred navy title. margin-inline pulls
   the section edge-to-edge; padding-inline restores the centred content width. */
.hero {
  min-height: 0;
  margin-inline: calc(50% - 50vw);
  padding: 64px calc(50vw - 50%) 40px;
  background: linear-gradient(to bottom, #e1eaf7, #ffffff);
}

.hero .eyebrow,
.hero-actions,
.hero-image,
.featured-post,
.recent-section,
.saved-section,
.archive-section,
.about-section,
.toolbar {
  display: none !important;
}

.hero-title-main {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-size: clamp(30px, 4vw, 51px);
  font-weight: 400;
  line-height: 1.2;
  color: #1a2352;
  letter-spacing: normal;
}

.hero-title-sub {
  margin-top: 12px;
  color: #1a2352;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.hero .lead {
  display: none;
}

.topic-map,
.posts-section {
  margin: 0 0 96px;
}

.topic-map .section-heading,
.posts-section .section-heading {
  align-items: center;
  margin-bottom: 28px;
}

.topic-map .section-heading h2,
.posts-section .section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

#resultCount {
  display: none;
}

.topic-more-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #6b6f78;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  padding: 0 2px;
  transition: color 160ms ease, transform 120ms ease;
}

.topic-more-link:hover,
.topic-more-link:focus-visible {
  color: var(--blue);
  outline: none;
}

.topic-more-link:active {
  transform: scale(0.96);
}

.topic-grid {
  gap: 10px;
}

.topic-grid.is-collapsed {
  max-height: 44px;
  overflow: hidden;
}

.topic-grid.is-expanded {
  max-height: none;
  overflow: visible;
}

.topic-card {
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: #eaf4ff;
  box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.14);
  color: #0057b8;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.topic-count {
  display: none;
}

.topic-card strong {
  font-size: 15px;
  font-weight: 750;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.active {
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.22), 0 6px 14px rgba(0, 102, 204, 0.16);
  color: #ffffff;
}

.posts-section {
  padding-top: 6px;
}

.post-list {
  column-gap: 48px;
  row-gap: 76px;
}

.post-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.post-card:hover,
.post-card:focus-within {
  box-shadow: none;
  transform: translateY(-2px);
}

.post-card-link {
  display: grid;
  gap: 22px;
}

.post-card img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #f3f4f6;
}

.post-card:hover img,
.post-card:focus-within img {
  transform: none;
}

.post-card-body {
  gap: 16px;
  padding: 0;
}

.post-card-topic {
  position: static;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: none;
}

.post-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a2352;
}

.post-card p,
.post-card-actions,
.post-card .read-cue {
  display: none;
}

.post-card-meta {
  justify-content: flex-start;
  margin-top: 0;
  color: #8a8f99;
  font-size: 14px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.post-card-meta .meta-item:nth-child(2) {
  display: inline-flex;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card-meta .post-card-topic {
  color: #666;
  flex: 0 1 auto;
}

.list-pagination {
  margin-top: 84px;
}

.site-footer {
  max-width: none;
  background: #f3f4f6;
}

.site-footer .footer-inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 58px 0 34px;
}

.site-footer .footer-sitemap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 72px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    display: flex;
    min-height: 64px;
    padding: 0 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 88px;
  }

  .brand-subtitle-icon {
    width: 16px;
    height: 16px;
  }

  .mobile-nav-menu {
    position: static;
  }

  .mobile-nav {
    right: 20px;
  }

  main {
    width: min(100% - 40px, 1280px);
  }

  .hero {
    /* Keep the full-bleed padding-inline (calc(50vw - 50%)) from the base rule;
       only tighten the vertical padding on mobile. Stay centred like the
       category middle pages. */
    padding-block: 44px 36px;
    text-align: center;
  }

  .hero-copy {
    justify-items: center;
  }

  .hero-title-sub {
    font-size: 15px;
  }

  .post-list {
    grid-template-columns: 1fr;
    row-gap: 46px;
  }

  .post-card h3 {
    min-height: 0;
    font-size: 21px;
  }

  .site-footer .footer-inner {
    width: min(100% - 40px, 1280px);
  }
}

/* Tech-blog article detail structure. */
/* The hero's full-bleed 100vw gradient would add the scrollbar's width of
   horizontal scroll; clip contains it at the root without creating a scroll
   container (so the sticky header keeps working). */
html {
  overflow-x: clip;
}

body {
  background: #ffffff;
  overflow-x: clip;
}

.post-view {
  width: min(1408px, 100%);
  margin: 0 auto 120px;
  padding: 64px 0 0;
  grid-template-columns: minmax(0, 280px) minmax(0, 768px) minmax(0, 280px);
  grid-template-areas:
    "tools tools tools"
    "message message message"
    "toc article recommendations"
    ". related .";
  justify-content: center;
  column-gap: 40px;
}

.static-post-view {
  grid-template-areas:
    "toc article recommendations"
    ". related .";
  padding-top: 0;
}

.article-tools {
  width: min(768px, 100%);
  margin: 0 auto 34px;
  padding: 0 0 12px;
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.article {
  width: min(100%, 768px);
  margin: 0;
}

.static-article {
  width: min(100%, 768px);
  padding: 0;
}

.article-header {
  justify-items: center;
  gap: 16px;
  /* Full-bleed #e1eaf7 → white gradient behind the title, matching the blog
     listing hero and the category middle pages. margin-inline pulls the band
     edge-to-edge; padding-inline restores the centred column width. */
  margin-inline: calc(50% - 50vw);
  margin-bottom: 48px;
  padding: 60px calc(50vw - 50%) 44px;
  background: linear-gradient(to bottom, #e1eaf7, #ffffff);
  text-align: center;
}

.article-header .tag-row {
  display: none;
}

.article-header h1 {
  max-width: 720px;
  color: #1a2352;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  hyphens: auto;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: keep-all;
}

.article-header p {
  max-width: 680px;
  color: #475569;
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  text-wrap: pretty;
  word-break: keep-all;
}

.article-meta {
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.article-cover {
  aspect-ratio: 16 / 9;
  margin-bottom: 48px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.article-content {
  color: #1a1a1a;
  font-size: calc(16px * var(--article-scale, 1));
  line-height: 1.75;
}

.article-content h1,
.article-content h2 {
  margin: 44px 0 16px;
  color: #1a2352;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.article-content h3 {
  margin: 34px 0 14px;
  color: #1a2352;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.article-content h4,
.article-content h5,
.article-content h6 {
  color: #1a2352;
}

.article-content p {
  margin: 1.5rem 0 1rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 4px 0 0 #e5e7eb;
  color: #374151;
  font-style: italic;
}

.article-content pre {
  border-radius: 6px;
  background: #161b22;
  box-shadow: none;
  color: #c9d1d9;
}

.article-content code {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f3f4f6;
}

.article-content pre code {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  white-space: inherit;
}

.article-content .eyebrow,
.article-content .meta {
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.article-content .eyebrow {
  margin: 0 0 12px;
  color: #3454d1;
  text-transform: none;
}

.article-content .meta {
  margin: 16px 0 28px;
  font-weight: 500;
}

.article-content .frame,
.article-content .note {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #354052;
}

.article-content .frame > :first-child,
.article-content .note > :first-child {
  margin-top: 0;
}

.article-content .frame > :last-child,
.article-content .note > :last-child {
  margin-bottom: 0;
}

.article-content .frame h2,
.article-content .frame h3 {
  margin-top: 0;
}

.article-content .intro-question {
  margin: 28px 0;
  padding: 10px 0 10px 18px;
  border-left: 4px solid #3454d1;
  color: #111827;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.5;
}

.article-content .closing {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.article-content table {
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.toc {
  position: sticky;
  top: 112px;
  justify-self: end;
  width: min(280px, 100%);
  margin: 0;
  max-height: calc(100vh - 140px);
  padding: 0 0 0 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.recommendations-panel {
  grid-area: recommendations;
  justify-self: start;
}

.toc strong {
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.toc ol {
  gap: 2px;
  list-style: none;
}

.toc-section li {
  min-width: 0;
}

.toc-section li::marker {
  content: "";
}

.toc a {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px 0;
  border-left: 0;
  border-radius: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc a:hover,
.toc a:focus-visible,
.toc a[aria-current="true"] {
  background: transparent;
  color: #111827;
  outline: none;
}

.toc a[aria-current="true"] {
  font-weight: 850;
  box-shadow: none;
}

.toc .nested {
  margin-left: 12px;
}

.toc-section + .toc-recommendations {
  margin-top: 18px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.1);
}

.toc-recommendations {
  display: grid;
  gap: 10px;
}

.toc-recommendation-list {
  display: grid;
  gap: 7px;
}

.toc .toc-recommendation {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 7px 0 8px 0;
  border-left: 0;
  color: #111827;
}

.toc .toc-recommendation:hover,
.toc .toc-recommendation:focus-visible {
  background: transparent;
  border-left-color: #d1d5db;
  color: #111827;
}

.toc-recommendation span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.toc-recommendation small {
  overflow: hidden;
  color: #9ca3af;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-view > .post-pagination,
.related-posts {
  grid-area: related;
  width: 100%;
  margin: 72px 0 0;
  justify-self: center;
}

.article-mobile-navigation {
  display: none;
}

@media (max-width: 1024px) {
  .post-view,
  .static-post-view {
    width: min(100% - 40px, 768px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "message"
      "article"
      "toc"
      "recommendations"
      "related";
    padding-top: 48px;
  }

  .toc {
    position: static;
    justify-self: center;
    width: min(100%, 768px);
    max-height: none;
    margin: 0 auto 36px;
    overflow: visible;
  }

  .article-tools {
    width: min(100% - 40px, 768px);
  }

}

@media (max-width: 640px) {
  .post-card img {
    height: auto;
    aspect-ratio: auto;
  }

  .list-pagination {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    flex-wrap: nowrap;
    width: 100%;
  }

  .pagination-pages {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pagination-pages::-webkit-scrollbar {
    display: none;
  }

  .list-pagination .text-button {
    flex: 0 0 auto;
    width: auto;
  }

  .post-view,
  .static-post-view {
    width: min(100% - 32px, 768px);
    padding-top: 32px;
  }

  .article-header {
    gap: 12px;
    margin-bottom: 28px;
  }

  .article-header h1 {
    font-size: 30px;
    line-height: 1.16;
  }

  .article-header p {
    font-size: 16px;
    line-height: 1.54;
  }

  .article-content {
    font-size: calc(16px * var(--article-scale, 1));
    line-height: 1.68;
  }

  .article-cover {
    margin-bottom: 28px;
  }

  .article-mobile-navigation {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
  }

  .article-mobile-navigation summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    list-style: none;
  }

  .article-mobile-navigation summary::-webkit-details-marker {
    display: none;
  }

  .article-mobile-navigation summary::after {
    color: #6b7280;
    content: "+";
    font-size: 20px;
    font-weight: 500;
  }

  .article-mobile-navigation[open] summary::after {
    content: "−";
  }

  .article-mobile-navigation-content {
    display: grid;
    gap: 18px;
    padding: 0 14px 14px;
  }

  .article-mobile-navigation .toc-section,
  .article-mobile-navigation .toc-recommendations {
    display: grid;
    gap: 8px;
  }

  .article-mobile-navigation .toc-section strong,
  .article-mobile-navigation .toc-recommendations strong {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
  }

  .article-mobile-navigation .toc-section ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .article-mobile-navigation .toc-section a {
    display: block;
    min-height: 30px;
    padding: 4px 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  .article-mobile-navigation .toc-recommendations {
    margin: 0;
    padding-top: 14px;
    box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.1);
  }

  .article-mobile-navigation .toc-recommendation {
    display: grid;
    gap: 5px;
    padding: 7px 0 8px 0;
    border-left: 0;
    color: #111827;
  }

  .article-mobile-navigation .toc-recommendation:hover,
  .article-mobile-navigation .toc-recommendation:focus-visible {
    border-left-color: #d1d5db;
    color: #111827;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .post-card:hover,
  .post-card:focus-within,
  .saved-card:hover,
  .saved-card:focus-within {
    transform: none;
  }

  .post-card-actions {
    transform: none;
  }

  .icon-button span,
  .icon-button svg {
    transition-duration: 0.01ms !important;
  }

  .skeleton-media::after,
  .skeleton-line::after {
    animation: none !important;
  }
}

@media (hover: none) {
  .post-card-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .icon-button span,
  .icon-button svg {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  .save-button:not(.active) .save-icon-on,
  .save-button.active .save-icon-off {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
  }
}

@media print {
  .site-header,
  .hero,
  .featured-post,
  .toolbar,
  .topic-map,
  .archive-section,
  .article-tools,
  .toc,
  .related-posts,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .post-view,
  .article {
    display: block !important;
    width: 100%;
  }
}
