.content-page { padding-top: 160px; }
.content-page-header { margin-bottom: 52px; }
.content-page-nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.content-page-nav a { text-decoration: none; }
.content-page-nav a:hover, .content-page-nav a[aria-current="page"] { color: var(--ink); }
.content-page-nav .nav-separator { color: #c9c5c2; }
.content-page-nav-current { color: var(--ink); }
.content-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.content-filter { position: relative; flex: 0 0 auto; }
.content-filter[hidden], .filter-menu[hidden] { display: none; }
.filter-trigger {
  display: inline-flex;
  min-width: 102px;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 23, 23, .035);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.filter-trigger:hover { border-color: #d9d5d2; box-shadow: 0 5px 16px rgba(23, 23, 23, .07); transform: translateY(-1px); }
.content-filter.is-open .filter-trigger { border-color: rgba(240, 106, 58, .36); box-shadow: 0 0 0 3px rgba(240, 106, 58, .08); }
.filter-icon { display: flex; width: 13px; height: 11px; flex: 0 0 13px; flex-direction: column; justify-content: space-between; }
.filter-icon i { display: block; height: 1px; border-radius: 999px; background: var(--muted); transition: width 160ms ease; }
.filter-icon i:nth-child(2) { width: 9px; }
.filter-icon i:nth-child(3) { width: 5px; }
.filter-trigger:hover .filter-icon i:first-child { width: 9px; }
.filter-trigger:hover .filter-icon i:nth-child(2) { width: 13px; }
.filter-chevron { width: 6px; height: 6px; margin: -3px 0 0 auto; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); transition: transform 180ms ease, margin 180ms ease; }
.content-filter.is-open .filter-chevron { margin-top: 3px; transform: rotate(225deg); }
.filter-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 160px;
  padding: 6px;
  border: 1px solid rgba(23, 23, 23, .07);
  border-radius: 9px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 38px rgba(23, 23, 23, .12), 0 3px 10px rgba(23, 23, 23, .05);
  backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: filter-menu-in 150ms ease-out both;
}
.filter-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  color: #595450;
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.filter-option:hover, .filter-option:focus-visible { color: var(--ink); background: var(--soft); outline: 0; }
.filter-option[aria-selected="true"] { color: var(--ink); background: #fff8f4; }
.filter-check { color: var(--orange-deep); font-size: 11px; opacity: 0; transform: scale(.7); transition: opacity 140ms ease, transform 140ms ease; }
.filter-option[aria-selected="true"] .filter-check { opacity: 1; transform: scale(1); }
.filter-option[data-filter-value="engineering"][aria-selected="true"] { background: #f3f7fd; }
.filter-option[data-filter-value="engineering"] .filter-check { color: #3978c5; }
@keyframes filter-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.content-page-header h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.content-page-header p { max-width: 520px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.content-list { border-top: 1px solid var(--line); }
.content-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.content-card h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.42; }
.content-card p { max-width: 520px; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.content-card-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; text-align: right; }
.content-card .content-card-category { max-width: none; margin: 0; color: var(--orange-deep); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.content-card .content-card-category.category-engineering { color: #3978c5; }
.content-card time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.content-empty { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.article-header { margin-bottom: 44px; }
.article-kicker { margin: 0 0 10px; color: var(--orange-deep); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.article-kicker.category-engineering { color: #3978c5; }
.article-header h1 { max-width: 620px; margin: 0; font-size: 25px; font-weight: 600; line-height: 1.2; }
.article-meta { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.article-deck { max-width: 570px; margin: 14px 0 0; font-size: 15px; line-height: 1.5; }

.markdown-body { max-width: 640px; padding-bottom: var(--section-gap); }
.markdown-body h2 { margin: 42px 0 12px; font-size: 18px; line-height: 1.3; }
.markdown-body h3 { margin: 30px 0 10px; font-size: 15px; line-height: 1.35; }
.markdown-body p, .markdown-body li { font-size: 14px; line-height: 1.65; }
.markdown-body p { margin: 0 0 18px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 18px; padding-left: 22px; }
.markdown-body blockquote { margin: 26px 0; padding-left: 16px; border-left: 2px solid var(--orange); color: var(--muted); }
.markdown-body blockquote p { margin: 0; }
.markdown-body pre { overflow-x: auto; padding: 16px; border-radius: 5px; background: var(--soft); font-size: 12px; line-height: 1.55; }
.markdown-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.markdown-body img { max-width: 100%; height: auto; }
.article-nav { display: flex; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.article-nav a { text-decoration: none; }
.article-nav a:hover { color: var(--ink); }
.article-nav span { color: var(--line); }

@media (hover: hover) {
  .content-card { transition: background 220ms ease; }
  .content-card:hover { background: linear-gradient(90deg, rgba(240,106,58,.04), transparent 70%); }
  .content-card h2 { transition: color 220ms ease; }
  .content-card:hover h2 { color: var(--orange-deep); }
}

@media (max-width: 720px) {
  .content-page { padding-top: 126px; }
  .content-page-header { margin-bottom: 40px; }
  .content-card { gap: 16px; }
  .filter-trigger { min-width: 98px; }
}
