.blog-page {
  display: block;
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  scroll-behavior: smooth;
  --blog-type-display: clamp(2.1rem, 1.55rem + 2vw, 3.4rem);
  --blog-type-page-title: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
  --blog-type-feature: clamp(1.55rem, 1.3rem + 0.85vw, 1.85rem);
  --blog-type-section: 1.45rem;
  --blog-type-card-title: 1.125rem;
  --blog-type-lead: 1.125rem;
  --blog-type-body: 1rem;
  --blog-type-support: 0.875rem;
  --blog-type-meta: 0.75rem;
  --blog-type-data: 1.25rem;
  --blog-type-button: 1.2rem;
}

.blog-page .btn:hover,
.blog-page .btn:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.72);
}

.blog-page header {
  position: static;
  inset: auto;
  transform: none;
  z-index: auto;
}

.blog-page :focus-visible {
  outline: 3px solid var(--accent-darken);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--text-primary);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.blog-header {
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  z-index: 2;
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem auto 0;
  padding: 0.45rem 0.8rem 0.45rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--raised);
  transform: none;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-primary);
  font-size: var(--blog-type-card-title);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.blog-brand strong {
  color: var(--accent-darken);
}

.blog-nav {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.blog-nav a:hover,
.blog-nav a[aria-current="page"] {
  color: var(--accent-darken);
  background: rgba(255, 255, 255, 0.58);
}

.blog-main {
  display: block;
  width: 100%;
  min-height: 0;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.blog-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 3.2rem 5rem;
}

.blog-page h1,
.blog-page h2,
.blog-page h3 {
  color: var(--text-primary);
  text-align: start;
  text-wrap: balance;
}

.blog-page p {
  font-size: var(--blog-type-body);
}

.blog-hero .stat strong {
  font-size: var(--blog-type-data);
}

.blog-heading {
  max-width: 54rem;
  margin-block-end: 2rem;
}

.blog-heading h1 {
  margin: 0 0 0.5rem;
  font-size: var(--blog-type-page-title);
  font-weight: 800;
  line-height: 1.35;
}

.blog-heading > p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 2rem;
}

.blog-content-column {
  min-width: 0;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
  align-items: center;
  gap: 1.7rem;
  padding: 1.15rem;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--raised);
}

.featured-copy {
  padding: 0.6rem 0.4rem;
}

.sample-label {
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: rgba(231, 90, 8, 0.1);
  color: var(--accent-darken) !important;
  font-size: var(--blog-type-meta) !important;
  font-weight: 700;
}

.post-category {
  display: inline-flex;
  margin: 0;
  color: var(--accent-darken);
  font-size: var(--blog-type-support);
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  gap: 0.45rem;
}

.post-category svg,
.topic-option svg,
.rail-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: 0.9;
}

.featured-post h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: var(--blog-type-feature);
  font-weight: 800;
  line-height: 1.55;
}

.featured-post h2 a,
.article-row h3 a {
  color: inherit;
  text-decoration: none;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.featured-post h2 a:hover,
.article-row h3 a:hover {
  color: var(--accent-darken);
  text-decoration: underline;
}

.post-excerpt {
  max-width: 58ch;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 0.8rem;
  color: var(--accent-darken);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.featured-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.article-list {
  margin-block-start: 3rem;
  scroll-margin-block-start: 1.5rem;
}

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid rgba(45, 55, 72, 0.2);
}

.list-heading h2 {
  margin: 0 0 0.2rem;
  font-size: var(--blog-type-section);
  font-weight: 800;
}

.list-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
}

.archive-note {
  margin-block-start: 0.25rem !important;
  font-size: var(--blog-type-meta) !important;
}

.result-count {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
}

.article-row {
  padding: 1.15rem 0.25rem 1.3rem;
  border-block-end: 1px solid rgba(45, 55, 72, 0.16);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.35rem !important;
  color: var(--text-secondary);
  font-size: var(--blog-type-meta) !important;
}

.row-meta > span {
  padding-inline-start: 0.8rem;
  border-inline-start: 1px solid rgba(45, 55, 72, 0.24);
}

.article-row h3 {
  margin: 0 0 0.25rem;
  font-size: var(--blog-type-card-title);
  font-weight: 700;
  line-height: 1.7;
}

.article-row > p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
  line-height: 1.8;
}

.empty-results {
  padding-block: 1.5rem;
  color: var(--text-secondary);
}

.topic-rail {
  position: sticky;
  top: 1.25rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--raised);
}

.topic-rail h2 {
  margin: 0;
  font-size: var(--blog-type-card-title);
  font-weight: 800;
}

.topic-intro {
  margin: 0.35rem 0 1rem;
  color: var(--text-secondary);
  font-size: var(--blog-type-support) !important;
  line-height: 1.8;
}

.topic-options {
  display: grid;
  gap: 0.4rem;
}

.topic-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: var(--blog-type-support);
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  align-items: center;
  gap: 0.55rem;
}

.topic-option:hover {
  color: var(--accent-darken);
  background: rgba(255, 255, 255, 0.5);
}

.topic-option.is-active {
  color: var(--accent-darken);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.mobile-topic-label,
.mobile-topic-filter {
  display: none;
}

.rail-note {
  margin-block-start: 1.4rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid rgba(45, 55, 72, 0.18);
}

.rail-note h3 {
  margin: 0 0 0.45rem;
  font-size: var(--blog-type-card-title);
  font-weight: 700;
  line-height: 1.7;
}

.rail-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-support) !important;
  line-height: 1.8;
}

.rail-cta {
  padding: 1rem;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--pressed);
}

.rail-cta-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rail-cta-chip {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(231, 90, 8, 0.08));
  box-shadow: var(--subtle);
}

.rail-cta-chip .rail-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.rail-icon {
  width: 2.15rem;
  height: 2.15rem;
  margin-block-end: 0.45rem;
  fill: var(--accent-darken);
}

.rail-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(231, 90, 8, 0.08);
  color: var(--accent-darken);
  font-size: var(--blog-type-meta);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rail-cta h3 {
  margin: 0.7rem 0 0;
  color: var(--text-primary);
  font-size: var(--blog-type-card-title);
  line-height: 1.7;
}

.rail-cta-rule {
  display: block;
  height: 1px;
  margin: 0.7rem 0 0;
  background: linear-gradient(90deg, rgba(231, 90, 8, 0.32), rgba(231, 90, 8, 0));
}

.rail-cta p {
  margin: 0.6rem 0 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
  line-height: 1.85;
}

.rail-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: 0.85rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: rgba(231, 90, 8, 0.07);
  color: var(--accent-darken);
  font-size: var(--blog-type-support);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rail-cta-arrow {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-cta-link:hover,
.rail-cta-link:focus-visible {
  background: rgba(231, 90, 8, 0.12);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(231, 90, 8, 0.1);
}

.rail-cta-link:hover .rail-cta-arrow,
.rail-cta-link:focus-visible .rail-cta-arrow {
  transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .rail-cta-link,
  .rail-cta-arrow {
    transition: none;
  }
}

.blog-footer {
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-block-start: 1px solid rgba(45, 55, 72, 0.2);
}

.blog-footer > a:last-child {
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
  text-decoration: none;
}

.article-shell {
  padding-block-start: 2rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-block-end: 1.6rem;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
}

.breadcrumbs a,
.back-link {
  color: var(--accent-darken);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.article-layout {
  display: grid;
  grid-template-areas:
    "header rail"
    "content rail";
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: start;
  gap: 0 3rem;
}

.article-content {
  grid-area: content;
  min-width: 0;
  max-width: 74ch;
}

.article-header {
  grid-area: header;
  margin-block-end: 1.5rem;
}

.article-header .sample-label {
  margin-block-end: 0.75rem;
}

.article-header h1 {
  max-width: 24ch;
  margin: 0.35rem 0 0.7rem;
  font-size: var(--blog-type-page-title);
  font-weight: 800;
  line-height: 1.35;
}

.article-deck {
  max-width: 66ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-lead) !important;
  line-height: 1.9;
}

.article-figure {
  margin: 1.6rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
}

.article-figure figcaption {
  margin-block-start: 0.55rem;
  color: var(--text-secondary);
  font-size: var(--blog-type-meta);
  line-height: 1.7;
}

.sample-disclaimer {
  margin: 1.8rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(231, 90, 8, 0.1);
  color: var(--text-primary) !important;
  font-size: var(--blog-type-support) !important;
}

.article-body {
  max-width: 70ch;
}

.article-body section {
  margin-block: 2.3rem;
  scroll-margin-block-start: 1.5rem;
}

.article-body h2 {
  margin: 0 0 0.65rem;
  font-size: var(--blog-type-section);
  font-weight: 800;
  line-height: 1.5;
}

.article-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-body);
  line-height: 2;
}

.article-contact {
  margin-block: 2.8rem;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: var(--raised);
}

.article-contact h2,
.related-posts h2 {
  margin: 0 0 0.4rem;
  font-size: var(--blog-type-card-title);
  font-weight: 800;
}

.article-contact p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-contact .btn {
  margin-block-start: 0.85rem;
}

.related-posts {
  margin-block-start: 2rem;
}

.related-posts h2 {
  padding-block-end: 0.65rem;
  border-block-end: 1px solid rgba(45, 55, 72, 0.2);
}

.related-posts > div {
  display: grid;
}

.related-posts a {
  padding-block: 0.8rem;
  border-block-end: 1px solid rgba(45, 55, 72, 0.15);
  color: var(--text-primary);
  line-height: 1.7;
  text-decoration: none;
}

.related-posts a:hover {
  color: var(--accent-darken);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-rail {
  grid-area: rail;
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  padding-block-start: 0.2rem;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.contents-nav {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: var(--raised);
}

.contents-nav h2 {
  margin: 0;
  font-size: var(--blog-type-card-title);
  font-weight: 800;
}

.contents-nav ol {
  display: grid;
  gap: 0.55rem;
  padding-inline-start: 1.35rem;
  margin: 0;
  color: var(--accent-darken);
}

.contents-nav a {
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
  line-height: 1.7;
  text-decoration: none;
}

.contents-nav a:hover {
  color: var(--accent-darken);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-not-found {
  max-width: 42rem;
  margin: 4rem auto;
  text-align: center;
}

.article-not-found h1 {
  font-size: var(--blog-type-page-title);
}

.article-not-found p {
  color: var(--text-secondary);
}

.article-not-found .btn {
  margin: 1rem auto 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.2rem;
  }

  .featured-post {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 36%);
    gap: 1rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .blog-shell {
    padding-block-start: 2.4rem;
  }

  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-layout {
    grid-template-areas:
      "header"
      "rail"
      "content";
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-rail {
    position: static;
    grid-row: 1;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .topic-rail > h2,
  .topic-intro,
  .topic-options {
    display: none;
  }

  .mobile-topic-label {
    display: block;
    margin-block-end: 0.4rem;
    color: var(--text-secondary);
    font-size: var(--blog-type-support);
    font-weight: 700;
  }

  .mobile-topic-filter {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: var(--raised);
    color: var(--text-primary);
    font: inherit;
  }

  .rail-note {
    display: none;
  }

  .featured-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-image {
    grid-row: 1;
    max-height: 270px;
  }

  .article-rail {
    position: static;
    grid-area: rail;
    grid-row: auto;
    padding: 0;
  }

  .contents-nav {
    padding: 0.8rem 1rem;
  }

  .article-figure img {
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .blog-header {
    width: calc(100vw - 2rem);
    min-height: 58px;
    margin-block-start: 0.6rem;
    padding-inline: 0.7rem;
  }

  .blog-nav ul {
    gap: 0;
  }

  .blog-nav a {
    min-height: 38px;
    padding-inline: 0.55rem;
    font-size: var(--blog-type-support);
  }

  .blog-shell,
  .blog-footer {
    width: calc(100vw - 2rem);
  }

  .blog-heading h1 {
    font-size: var(--blog-type-page-title);
  }

  .list-heading {
    align-items: start;
  }

  .result-count {
    font-size: var(--blog-type-meta);
  }

  .blog-footer {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-page,
  .blog-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.blog-hero {
  position: relative;
  display: grid;
  min-height: 320px;
  align-items: center;
  margin-block-end: 2.8rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(229, 237, 245, 0.8));
  box-shadow: var(--hero);
}

.blog-hero::after {
  position: absolute;
  inset-inline-end: -4rem;
  inset-block-start: -6rem;
  width: 20rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 1.4rem rgba(255, 255, 255, 0.12), 0 0 0 2.8rem rgba(95, 157, 231, 0.05);
  content: "";
  pointer-events: none;
}

.blog-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-hero::after {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

@starting-style {
  .blog-hero-copy {
    opacity: 0.82;
    translate: 0 0.45rem;
  }

  .blog-hero::after {
    opacity: 0.25;
    transform: scale(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  @starting-style {
    .blog-hero-copy {
      translate: none;
    }

    .blog-hero::after {
      transform: none;
    }
  }
}

.blog-hero h1 {
  display: grid;
  gap: 0.05em;
  margin: 0 0 0.65rem;
  font-size: var(--blog-type-display);
  font-weight: 800;
  line-height: 1.28;
}

.blog-hero h1 strong {
  color: var(--accent-darken);
  font-weight: 800;
}

.blog-hero-copy > p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-body);
  line-height: 1.9;
}

.blog-search {
  display: block;
  max-width: 35rem;
  margin-block-start: 1.35rem;
}

.search-container {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 40px;
  background: var(--bg);
  box-shadow: var(--pressed-deep);
  transition:
    min-height var(--transition),
    box-shadow var(--transition);
}

.search-container:focus-within {
  min-height: 70px;
  box-shadow: var(--pressed), 0 0 0 3px rgba(231, 90, 8, 0.15);
}

.search-input-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.blog-search input {
  min-width: 0;
  min-height: 54px;
  width: 100%;
  padding: 0.7rem 3.25rem 0.7rem 1rem;
  border: 0;
  border-radius: 40px;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
  font: inherit;
}

.blog-search input::-webkit-search-cancel-button {
  appearance: none;
}

.blog-search input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
  transition: opacity var(--transition);
}

.search-container:focus-within input::placeholder {
  opacity: 0.6;
}

.search-shortcut {
  position: absolute;
  inset-inline-end: 0.7rem;
  display: grid;
  min-width: 1.8rem;
  min-height: 1.8rem;
  place-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1;
  opacity: 1;
  transition: opacity var(--transition);
}

.search-input-wrap.has-query .search-shortcut,
.search-container:focus-within .search-shortcut {
  opacity: 0;
}

.search-clear {
  position: absolute;
  inset-inline-end: 0.45rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    opacity var(--transition);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
}

.search-clear svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.search-clear[hidden] {
  display: none;
}

.blog-search-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin: 0.35rem;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 30px;
  background: var(--bg);
  box-shadow: var(--raised);
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition), background-color var(--transition);
}

.search-container:focus-within .blog-search-submit svg {
  color: var(--accent);
}

.blog-search-submit svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.search-assist {
  display: grid;
  min-height: 2.75rem;
  align-items: center;
  margin-block-start: 0.55rem;
  transition:
    min-height var(--transition),
    margin-block-start var(--transition);
}

.blog-search:focus-within .search-assist {
  min-height: 3rem;
  margin-block-start: 0.7rem;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.search-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.search-chip:hover:not(.is-active) {
  box-shadow: var(--subtle);
}

.search-chip.is-active,
.search-chip.is-active:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--pressed);
  color: var(--accent);
}

.search-status {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: center;
}

.blog-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--hero);
  color: var(--accent-darken);
}

.statbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-block-start: 1.35rem;
  margin-inline: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(229, 237, 245, 0.8));
  box-shadow: var(--raised);
}

.stat {
  min-width: 7rem;
  padding: 0.45rem 0.8rem;
  text-align: center;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  color: var(--accent-darken);
  font-size: var(--blog-type-data);
  font-weight: 800;
  line-height: 1.3;
}

.stat span {
  color: var(--text-secondary);
  font-size: var(--blog-type-meta);
  font-weight: 600;
}

.featured-post {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(229, 237, 245, 0.86));
  box-shadow: var(--hero);
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-post:hover,
.featured-post:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--hero);
}

.sample-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(229, 237, 245, 0.8));
  box-shadow: var(--subtle);
  color: var(--text-primary) !important;
  font-size: var(--blog-type-meta) !important;
  font-weight: 700;
  white-space: nowrap;
}

.featured-copy > .sample-label {
  margin-block-end: 0.75rem;
}

.featured-copy > .post-category {
  color: var(--text-primary);
}

.featured-copy > .post-category svg {
  color: var(--accent-darken);
}

.featured-post h2 {
  font-size: var(--blog-type-feature);
  font-weight: 800;
}

.featured-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-block-start: 0.9rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--raised);
  color: var(--text-primary);
  font-size: var(--blog-type-button);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.featured-cta::before {
  position: absolute;
  z-index: -1;
  inset: -1.5px;
  padding: 2px;
  border-radius: 18px;
  background: conic-gradient(from var(--ai-angle), #ffbc00 0deg, rgb(229 237 245) 90deg, #fff 180deg, #e5edf5 270deg, #ffbc00 360deg);
  content: "";
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rotate-border 5s linear infinite;
}

.featured-cta:hover,
.featured-cta:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-darken);
  box-shadow: var(--hero);
  color: #fff;
  font-weight: 800;
}

.featured-cta:active {
  transform: translateY(1px);
  box-shadow: var(--pressed);
}

.featured-image {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow: var(--pressed);
}

.article-list {
  margin-block-start: 3.4rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block-start: 1.5rem;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(229, 237, 245, 0.86));
  box-shadow: var(--raised);
  transition: translate var(--transition), box-shadow var(--transition);
}

.article-card:hover,
.article-card:focus-within {
  translate: 0 -4px;
  box-shadow: var(--hero);
}

.article-card[hidden] {
  display: none !important;
}

.article-card-image {
  height: 170px;
  overflow: hidden;
  border-block-end: 1px solid rgba(255, 255, 255, 0.5);
}

.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-image img {
  transform: scale(1.035);
}

.article-card-copy {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.1rem 1.1rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.card-meta .sample-label {
  padding: 0.25rem 0.5rem;
  font-size: var(--blog-type-meta) !important;
}

.card-meta .post-category {
  color: var(--text-primary);
}

.card-meta .post-category:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.article-card h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: var(--blog-type-card-title);
  font-weight: 800;
  line-height: 1.75;
}

.article-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent-darken);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-card-copy > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--blog-type-support);
  line-height: 1.85;
}

.card-read-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: auto;
  padding-block-start: 0.65rem;
  color: var(--text-primary);
  font-size: var(--blog-type-support);
  font-weight: 700;
  text-decoration: none;
}

.card-read-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.empty-results {
  margin-block-start: 1.5rem;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: var(--pressed);
  color: var(--text-secondary);
}

.topic-rail {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topic-options {
  gap: 0.5rem;
}

.topic-option {
  min-height: 56px;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--raised);
  color: var(--text-primary);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition), background-color var(--transition);
}

.topic-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--hero);
  color: var(--text-primary);
}

.topic-option .topic-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  box-shadow: var(--subtle);
  color: var(--accent-darken);
}

.topic-option .topic-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.topic-option.is-active {
  box-shadow: var(--pressed);
  color: var(--text-primary);
  font-weight: 700;
}

@supports ((animation-timeline: view()) and (animation-range: entry 10%)) {
  .article-card {
    animation: article-card-enter 1ms linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

@supports not ((animation-timeline: view()) and (animation-range: entry 10%)) {
  .article-card {
    opacity: 1;
    transform: none;
  }
}

@keyframes article-card-enter {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .article-grid {
    gap: 1rem;
  }
}

@media (max-width: 700px) {
  .blog-hero {
    min-height: auto;
    margin-block-end: 2rem;
    padding: 1.5rem;
  }

  .blog-hero::after {
    inset-inline-end: -9rem;
    inset-block-start: -8rem;
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-card-copy {
    min-height: 0;
  }

  .card-read-link {
    margin-block-start: 0.6rem;
  }
}

@media (max-width: 640px) {
  .search-container {
    gap: 0;
  }

  .blog-search-submit {
    width: 3rem;
    min-height: 3rem;
    margin: 0.3rem;
    padding: 0;
    border-radius: 50%;
  }

  .blog-search-submit .search-submit-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .search-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.25rem 0.15rem 0.65rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .search-chips::-webkit-scrollbar {
    display: none;
  }

  .search-chip {
    min-height: 48px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .statbar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat {
    min-width: 0;
    padding-inline: 0.25rem;
  }

  .stat span {
    font-size: var(--blog-type-meta);
  }

  .featured-post {
    padding: 0.9rem;
  }

  .article-card-image {
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .featured-post,
  .topic-option,
  .blog-search-submit,
  .featured-cta,
  .article-card-image img {
    animation: none !important;
    transition-duration: 0.01ms !important;
    translate: none !important;
    transform: none !important;
  }

  .featured-cta::before {
    animation: none;
  }
}

.blog-nav a:hover,
.blog-nav a[aria-current="page"],
.post-category,
.featured-post h2 a:hover,
.article-row h3 a:hover,
.text-link,
.text-link:hover,
.rail-cta-link,
.rail-cta-link:hover,
.rail-cta-link:focus-visible,
.breadcrumbs a,
.back-link,
.contents-nav a:hover,
.related-posts a:hover {
  color: var(--text-primary);
}

.post-category svg,
.topic-option .topic-icon,
.rail-icon {
  color: var(--accent-darken);
}

.featured-post h2 a:hover,
.text-link:hover,
.contents-nav a:hover,
.related-posts a:hover {
  text-decoration-color: var(--accent);
}

.breadcrumbs a,
.back-link {
  text-decoration-color: var(--accent);
}

.featured-cta:hover,
.featured-cta:focus-visible {
  background: var(--bg);
  color: var(--text-primary);
}

.rail-kicker {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .stat span {
    font-size: var(--blog-type-meta);
  }
}

.blog-search-submit:hover {
  color: var(--text-primary);
}