/* Mulish, Noto Sans SC and Noto Serif SC are open-source Google Fonts. They are loaded from Google Fonts instead of bundled locally. */
@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600&display=swap");

/*
  Huashu Design CSS map
  01. Tokens and base HTML
  02. Homepage shell, hero and editorial sections
  03. Halo theme integration for subpages
  04. Global rhythm and shared component system
  05. Typography, footer social and feed feedback
  06. Page-specific overrides: archive, article, sidebar and comments
  07. Homepage editorial flow refinements
  08. UI audit consolidation layer
  09. Current fixes and plugin-specific locks
*/

/* 01. Tokens and base HTML */
:root {
  --font-en: "Mulish", "Muli", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-cn-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Noto Sans SC", serif;
  --font-base: var(--font-en), var(--font-cn);
  --font-display: var(--font-cn-title);
  --hs-bg: #f8f4ee;
  --hs-bg-soft: #fbf8f3;
  --hs-surface: rgba(255, 255, 255, 0.68);
  --hs-surface-strong: rgba(255, 255, 255, 0.86);
  --hs-border: rgba(120, 112, 104, 0.16);
  --hs-text: #272522;
  --hs-text-soft: #6f6a64;
  --hs-muted: #9a938a;
  --hs-blue: #dce8f2;
  --hs-blue-strong: #afc4e8;
  --hs-lilac: #e9e3f0;
  --hs-sand: #e9ded0;
  --hs-shadow: 0 20px 60px rgba(65, 55, 45, 0.08);
  --hs-radius-lg: 28px;
  --hs-radius-md: 18px;
  --hs-radius-sm: 999px;
  --hs-milk: var(--hs-bg);
  --hs-lavender: var(--hs-lilac);
  --hs-warm: var(--hs-text-soft);
  --hs-ink: var(--hs-text);
  --hs-muted: #9a928b;
  --hs-line: rgba(39, 37, 34, 0.12);
  --hs-panel: rgba(255, 252, 247, 0.72);
  --hs-panel-strong: rgba(255, 252, 247, 0.88);
  --hs-home-shadow: 0 22px 70px rgba(80, 70, 58, 0.12);
  --hs-home-radius-lg: 34px;
  --hs-home-radius-md: 24px;
  --hs-home-radius-sm: 16px;
  --hs-max: 1160px;
}

html.dark,
html[data-theme="dark"],
[data-theme="dark"] {
  --hs-bg: #181715;
  --hs-bg-soft: #201f1d;
  --hs-surface: rgba(36, 34, 31, 0.72);
  --hs-surface-strong: rgba(42, 40, 36, 0.88);
  --hs-border: rgba(255, 255, 255, 0.12);
  --hs-text: #f2ece3;
  --hs-text-soft: #c9c0b6;
  --hs-muted: #918a82;
  --hs-blue: #2b3440;
  --hs-blue-strong: #61799f;
  --hs-lilac: #332d3a;
  --hs-sand: #3a3129;
  --hs-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 02. Homepage shell, hero and editorial sections. */
body.hs-page {
  margin: 0;
  min-width: 320px;
  color: var(--hs-ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(220, 232, 242, 0.96), transparent 32rem),
    radial-gradient(circle at 86% 20%, rgba(233, 227, 240, 0.88), transparent 30rem),
    linear-gradient(135deg, #f8f4ee 0%, #fbf8f3 46%, #f4f0ec 100%);
  font-family: var(--font-base);
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hs-page::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(39, 37, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 37, 34, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 68%);
}

.hs-shell {
  overflow: hidden;
}

.hs-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 238, 0.74);
  border-bottom: 1px solid rgba(39, 37, 34, 0.07);
}

.hs-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--hs-max));
  height: 74px;
  margin: 0 auto;
}

.hs-brand {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.hs-brand__cn {
  font-size: 18px;
  font-weight: 650;
  color: var(--hs-ink);
}

.hs-brand__en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  color: var(--hs-warm);
  letter-spacing: 0.04em;
}

.hs-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hs-menu a,
.hs-nav__link {
  font-size: 14px;
  color: rgba(39, 37, 34, 0.74);
  transition: color 180ms ease;
}

.hs-menu a:hover,
.hs-nav__link:hover {
  color: var(--hs-ink);
}

.hs-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--hs-ink);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--hs-line);
  border-radius: 999px;
}

.hs-menu-button span,
.hs-menu-button::before,
.hs-menu-button::after {
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 auto;
  content: "";
  background: currentColor;
}

.hs-menu-button span {
  margin-block: 5px;
}

.hs-mobile-menu {
  display: none;
}

.hs-section {
  width: min(calc(100% - 40px), var(--hs-max));
  margin: 0 auto;
}

.hs-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: clamp(56px, 9vw, 116px) 0 76px;
}

.hs-hero__signature {
  position: absolute;
  top: clamp(40px, 9vw, 108px);
  left: min(20vw, 210px);
  z-index: -1;
  max-width: 92vw;
  overflow: hidden;
  font-family: var(--font-en);
  font-size: clamp(68px, 13.4vw, 188px);
  font-weight: 700;
  line-height: 0.9;
  color: rgba(39, 37, 34, 0.1);
  white-space: nowrap;
  letter-spacing: 0;
  transform: translateX(-8%);
}

.hs-hero::after {
  position: absolute;
  right: -16vw;
  bottom: 4vh;
  z-index: -1;
  width: 44vw;
  min-width: 360px;
  height: 44vw;
  min-height: 360px;
  content: "";
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(145deg, rgba(220, 232, 242, 0.84), rgba(233, 227, 240, 0.72));
  border-radius: 48% 52% 44% 56%;
  filter: blur(1px);
  opacity: 0.88;
}

.hs-hero__copy {
  max-width: 720px;
}

.hs-hero__title {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.hs-hero__title-cn {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 74px);
  font-weight: 620;
}

.hs-hero__title-en {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.hs-hero__subtitle {
  max-width: 560px;
  margin: 30px 0 0;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--hs-warm);
}

.hs-hero__desc,
.hs-section-note,
.hs-about__copy p {
  color: rgba(39, 37, 34, 0.68);
}

.hs-hero__desc {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.95;
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 560;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.hs-button:hover {
  transform: translateY(-1px);
}

.hs-button--primary {
  color: #fffaf4;
  background: var(--hs-ink);
  border: 1px solid var(--hs-ink);
}

.hs-button--ghost {
  color: var(--hs-ink);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(39, 37, 34, 0.16);
}

.hs-hero__visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.hs-orbit-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 38px);
  overflow: hidden;
  background: var(--hs-panel);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
  backdrop-filter: blur(22px);
}

.hs-orbit-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(140deg, rgba(220, 232, 242, 0.24), rgba(233, 227, 240, 0.24));
}

.hs-orbit-card > * {
  position: relative;
}

.hs-orbit-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--hs-warm);
}

.hs-orbit-card__line {
  height: 1px;
  margin: 34px 0;
  background: linear-gradient(90deg, transparent, rgba(39, 37, 34, 0.22), transparent);
}

.hs-orbit-card__quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.6vw, 48px);
  font-style: italic;
  line-height: 1.18;
}

.hs-orbit-card__caption {
  max-width: 320px;
  margin: 22px 0 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(39, 37, 34, 0.66);
}

.hs-mini-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hs-mini-note {
  min-height: 126px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--hs-radius-md);
  backdrop-filter: blur(18px);
}

.hs-mini-note strong {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
}

.hs-mini-note span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hs-warm);
}

.hs-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.hs-section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 560;
  line-height: 1.08;
}

.hs-section-title em {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(39, 37, 34, 0.56);
}

.hs-section-note {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.hs-posts {
  padding: 42px 0 80px;
}

.hs-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
}

.hs-post-list {
  display: grid;
  gap: 18px;
}

.hs-post-card {
  position: relative;
  display: grid;
  gap: 22px;
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  background: var(--hs-panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--hs-radius-md);
  box-shadow: 0 16px 48px rgba(80, 70, 58, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hs-post-card:hover {
  border-color: rgba(39, 37, 34, 0.14);
  box-shadow: 0 24px 58px rgba(80, 70, 58, 0.12);
  transform: translateY(-3px);
}

.hs-post-card--feature {
  min-height: 460px;
  align-content: end;
  background:
    linear-gradient(152deg, rgba(255, 252, 247, 0.88), rgba(220, 232, 242, 0.52)),
    var(--hs-panel-strong);
}

.hs-post-card__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.26;
}

.hs-post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-post-card__cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(248, 244, 238, 0.22), rgba(248, 244, 238, 0.94));
}

.hs-post-card__body {
  position: relative;
  z-index: 1;
}

.hs-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--hs-warm);
}

.hs-post-card__category {
  color: var(--hs-ink);
}

.hs-post-card__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 560;
  line-height: 1.2;
}

.hs-post-card:not(.hs-post-card--feature) .hs-post-card__title {
  font-size: clamp(20px, 2vw, 26px);
}

.hs-post-card__excerpt {
  display: -webkit-box;
  margin: 16px 0 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(39, 37, 34, 0.66);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hs-post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 620;
  color: var(--hs-ink);
}

.hs-post-card__read::after {
  width: 18px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 180ms ease;
}

.hs-post-card:hover .hs-post-card__read::after {
  width: 30px;
}

.hs-empty {
  padding: 54px;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--hs-radius-md);
}

.hs-empty p {
  margin: 0;
  color: var(--hs-warm);
}

.hs-about {
  padding: 86px 0;
}

.hs-about__panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.84), rgba(233, 227, 240, 0.36)),
    rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
}

.hs-about__symbol {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(145deg, rgba(220, 232, 242, 0.9), rgba(233, 227, 240, 0.82));
  border-radius: 46% 54% 50% 50%;
}

.hs-about__symbol span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 9vw, 124px);
  font-style: italic;
  color: rgba(39, 37, 34, 0.78);
}

.hs-about__copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 560;
  line-height: 1.12;
}

.hs-about__copy p {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.95;
}

.hs-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hs-value {
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(39, 37, 34, 0.08);
  border-radius: var(--hs-radius-sm);
}

.hs-value strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.hs-value span {
  display: block;
  font-size: 13px;
  line-height: 1.75;
  color: var(--hs-warm);
}

.hs-journal {
  padding: 20px 0 92px;
}

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

.hs-journal-card {
  min-height: 190px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--hs-radius-md);
}

.hs-journal-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: var(--hs-muted);
}

.hs-journal-card h3 {
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 540;
  line-height: 1.35;
}

.hs-journal-card p {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--hs-warm);
}

.hs-footer {
  padding: 44px 0 54px;
  color: rgba(39, 37, 34, 0.64);
  border-top: 1px solid rgba(39, 37, 34, 0.09);
}

.hs-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), var(--hs-max));
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
}

.hs-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--hs-ink);
}

html.hs-js .hs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

html.hs-js .hs-reveal.is-visible,
.hs-reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hs-reveal,
  .hs-button,
  .hs-post-card {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hs-nav__inner,
  .hs-section,
  .hs-footer__inner {
    width: min(calc(100% - 28px), var(--hs-max));
  }

  .hs-menu,
  .hs-nav__link {
    display: none;
  }

  .hs-menu-button {
    display: block;
  }

  .hs-mobile-menu {
    display: grid;
    gap: 12px;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  .hs-mobile-menu.is-open {
    max-height: 360px;
    padding: 0 14px 16px;
  }

  .hs-mobile-menu a {
    padding: 14px 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(39, 37, 34, 0.08);
    border-radius: 14px;
  }

  .hs-hero,
  .hs-post-grid,
  .hs-about__panel {
    grid-template-columns: 1fr;
  }

  .hs-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hs-post-card--feature {
    min-height: 360px;
  }

  .hs-values,
  .hs-journal__rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hs-nav__inner {
    height: 66px;
  }

  .hs-brand__cn {
    font-size: 16px;
  }

  .hs-hero {
    padding-bottom: 50px;
  }

  .hs-hero__signature {
    top: 34px;
    left: 14px;
    max-width: calc(100vw - 28px);
    font-size: clamp(42px, 18vw, 72px);
    opacity: 0.7;
    transform: none;
  }

  .hs-hero__subtitle {
    margin-top: 22px;
  }

  .hs-actions,
  .hs-mini-notes,
  .hs-section-head,
  .hs-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hs-button {
    width: 100%;
  }

  .hs-orbit-card,
  .hs-about__panel,
  .hs-empty {
    border-radius: 24px;
  }

  .hs-about,
  .hs-posts,
  .hs-journal {
    padding-block: 52px;
  }
}

/* 03. Halo theme integration for subpages. */
body.hs-theme,
body:not(.hs-page) {
  color: var(--hs-text) !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--hs-blue) 70%, transparent), transparent 30rem),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--hs-lilac) 72%, transparent), transparent 28rem),
    linear-gradient(135deg, var(--hs-bg) 0%, var(--hs-bg-soft) 56%, var(--hs-bg) 100%) !important;
  font-family: var(--font-base) !important;
  letter-spacing: 0;
}

body:not(.hs-page)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(39, 37, 34, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 37, 34, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 62%);
}

#header-menu {
  background: color-mix(in srgb, var(--hs-bg) 78%, transparent) !important;
  border-bottom: 1px solid var(--hs-border);
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

#header-menu a,
#header-menu span,
#site-title {
  color: var(--hs-text) !important;
  font-family: var(--font-base);
}

#site-title {
  font-weight: 700 !important;
}

#header-menu a:hover {
  color: var(--hs-blue-strong) !important;
}

main,
section {
  position: relative;
}

.bg-white,
.dark\:bg-slate-800,
.dark\:bg-gray-800,
.dark\:bg-slate-900 {
  background-color: var(--hs-surface-strong) !important;
}

.bg-slate-50,
.dark\:bg-slate-900 {
  background-color: transparent !important;
}

.text-gray-900,
.text-gray-800,
.text-slate-50,
.dark\:text-slate-50,
.dark\:text-slate-100 {
  color: var(--hs-text) !important;
}

.text-gray-600,
.text-gray-500,
.dark\:text-slate-200,
.dark\:text-slate-300 {
  color: var(--hs-text-soft) !important;
}

.border,
.border-gray-100,
.border-gray-200,
.dark\:border-slate-700,
.dark\:border-slate-600 {
  border-color: var(--hs-border) !important;
}

.shadow,
.shadow-sm,
.shadow-md,
.shadow-lg,
.drop-shadow-sm {
  box-shadow: var(--hs-shadow) !important;
}

.rounded,
.rounded-lg,
.rounded-xl {
  border-radius: var(--hs-radius-md) !important;
}

.rounded-full {
  border-radius: var(--hs-radius-sm) !important;
}

.max-w-7xl,
.max-w-6xl,
.max-w-5xl {
  width: min(calc(100% - 40px), 1120px) !important;
}

.max-w-3xl {
  max-width: 780px !important;
}

#post-list > *,
.group.rounded-xl,
article[class*="rounded"],
aside > *,
.menu-dropdown,
[class*="divide-y"] > li,
.halo-comment-widget,
comment-widget,
search-widget {
  background: var(--hs-surface-strong) !important;
  border: 1px solid var(--hs-border) !important;
  border-radius: var(--hs-radius-lg) !important;
  box-shadow: var(--hs-shadow) !important;
}

#post-list > *,
.group.rounded-xl {
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

#post-list > *:hover,
.group.rounded-xl:hover {
  border-color: color-mix(in srgb, var(--hs-blue-strong) 42%, var(--hs-border)) !important;
  transform: translateY(-3px);
}

#post-list h1,
#post-list h2,
#post-list h3,
article h1,
article h2,
article h3 {
  color: var(--hs-text) !important;
  font-family: var(--font-base);
  letter-spacing: 0;
}

#post-list p,
article p,
aside p,
footer span,
footer p {
  color: var(--hs-text-soft) !important;
  line-height: 1.85;
}

a[href*="/categories/"],
a[href*="/tags/"],
.tag,
[class*="tag"],
[class*="category"] a {
  border-radius: var(--hs-radius-sm) !important;
}

a[href*="/categories/"],
a[href*="/tags/"] {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--hs-text-soft) !important;
  background: color-mix(in srgb, var(--hs-blue) 42%, transparent);
  border: 1px solid var(--hs-border);
}

button,
.hs-button,
a[class*="rounded-md"],
a[class*="rounded-lg"] {
  outline-color: var(--hs-blue-strong);
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--hs-blue-strong) 70%, transparent);
  outline-offset: 3px;
}

#pagination {
  min-height: 38px;
  padding: 0 14px;
  color: var(--hs-text) !important;
  background: var(--hs-surface) !important;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
}

.markdown-body,
.tailwind-typography {
  max-width: 780px;
  margin-inline: auto;
  color: var(--hs-text) !important;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.95;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.tailwind-typography h1,
.tailwind-typography h2,
.tailwind-typography h3 {
  margin-top: 2.2em;
  color: var(--hs-text) !important;
  font-weight: 700;
  line-height: 1.35;
}

.markdown-body p,
.markdown-body li,
.tailwind-typography p,
.tailwind-typography li {
  color: var(--hs-text-soft) !important;
}

.markdown-body blockquote,
.tailwind-typography blockquote {
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--hs-text-soft) !important;
  background: color-mix(in srgb, var(--hs-lilac) 34%, transparent);
  border-left: 3px solid var(--hs-blue-strong) !important;
  border-radius: var(--hs-radius-md);
}

.markdown-body pre,
.tailwind-typography pre {
  padding: 20px;
  overflow-x: auto;
  color: var(--hs-text);
  background: color-mix(in srgb, var(--hs-bg-soft) 72%, var(--hs-blue));
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-md);
}

.markdown-body code,
.tailwind-typography code {
  font-size: 0.92em;
  background: color-mix(in srgb, var(--hs-sand) 45%, transparent);
  border-radius: 8px;
}

.markdown-body img,
.tailwind-typography img {
  margin-inline: auto;
  border-radius: var(--hs-radius-md);
  box-shadow: var(--hs-shadow);
}

.markdown-body table,
.tailwind-typography table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-color: var(--hs-border) !important;
}

footer {
  color: var(--hs-text-soft) !important;
  background: color-mix(in srgb, var(--hs-bg) 76%, transparent) !important;
  border-top: 1px solid var(--hs-border);
  box-shadow: none !important;
}

footer a,
footer strong {
  color: var(--hs-text) !important;
}

body.hs-theme-error main,
body.hs-theme-error section {
  min-height: 58vh;
}

.hs-home-cosy {
  background:
    radial-gradient(circle at 10% 3%, rgba(220, 232, 242, 0.86), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(233, 227, 240, 0.82), transparent 32rem),
    linear-gradient(180deg, var(--hs-bg-soft), var(--hs-bg)) !important;
}

.hs-cosy-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 620px;
  padding: clamp(54px, 9vw, 110px) 0 46px;
}

.hs-cosy-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
}

.hs-cosy-hero__bg span:nth-child(1),
.hs-cosy-hero__bg span:nth-child(2) {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(1px);
}

.hs-cosy-hero__bg span:nth-child(1) {
  right: 4%;
  bottom: 10%;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(220, 232, 242, 0.9), rgba(233, 227, 240, 0.66));
  animation: hs-drift 20s ease-in-out infinite;
}

.hs-cosy-hero__bg span:nth-child(2) {
  left: 36%;
  top: 18%;
  width: 210px;
  aspect-ratio: 1;
  background: rgba(233, 222, 208, 0.58);
  animation: hs-drift 24s ease-in-out infinite reverse;
}

.hs-cosy-hero__bg span:nth-child(3) {
  position: absolute;
  right: -8vw;
  top: 18%;
  max-width: 112vw;
  overflow: hidden;
  font-family: var(--font-en);
  font-size: clamp(72px, 15vw, 210px);
  font-weight: 700;
  line-height: 0.85;
  color: color-mix(in srgb, var(--hs-text) 9%, transparent);
  white-space: nowrap;
  letter-spacing: 0;
}

.hs-cosy-hero__content {
  max-width: 670px;
}

.hs-cosy-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hs-text-soft);
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
}

.hs-cosy-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--hs-text);
}

.hs-cosy-hero p {
  max-width: 590px;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.95;
  color: var(--hs-text-soft);
}

.hs-cosy-hero__panel {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  background: var(--hs-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow: var(--hs-shadow);
  backdrop-filter: blur(20px);
}

.hs-cosy-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  font-size: 12px;
  color: var(--hs-muted);
  border-bottom: 1px solid var(--hs-border);
}

.hs-cosy-panel__body strong {
  display: block;
  font-size: clamp(23px, 2.15vw, 31px);
  font-weight: 500;
  line-height: 1.42;
  color: var(--hs-text);
}

.hs-cosy-panel__body p {
  margin-top: 18px;
  font-size: 15px;
}

.hs-topic-strip {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-top: -20px;
  overflow-x: auto;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: 999px;
  box-shadow: var(--hs-shadow);
}

.hs-topic-strip a {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-text-soft);
  background: rgba(255, 255, 255, 0.44);
  border-radius: 999px;
}

.hs-topic-strip a:hover {
  color: var(--hs-text);
  background: color-mix(in srgb, var(--hs-blue) 62%, transparent);
}

.hs-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--hs-surface-strong), color-mix(in srgb, var(--hs-lilac) 32%, transparent));
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
}

.hs-announcement span,
.hs-aside-card span,
.hs-cosy-archive span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hs-muted);
  text-transform: uppercase;
}

.hs-announcement strong {
  color: var(--hs-text);
}

.hs-announcement a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--hs-text);
}

.hs-cms-grid,
.hs-magazine,
.hs-cosy-modules,
.hs-cosy-archive {
  padding-top: clamp(56px, 7vw, 88px);
}

.hs-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.hs-feature-layout__side,
.hs-list-stack {
  display: grid;
  gap: 18px;
}

.hs-cosy-card,
.hs-list-item,
.hs-aside-card,
.hs-module-card,
.hs-cosy-archive {
  background: var(--hs-surface-strong);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hs-cosy-card:hover,
.hs-list-item:hover,
.hs-module-card:hover {
  border-color: color-mix(in srgb, var(--hs-blue-strong) 42%, var(--hs-border));
  transform: translateY(-3px);
}

.hs-cosy-card {
  overflow: hidden;
}

.hs-cosy-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hs-blue), var(--hs-lilac));
}

.hs-cosy-card__media img,
.hs-cosy-card__thumb img,
.hs-list-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-cosy-card__media--empty,
.hs-cosy-card__thumb--empty {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(135deg, var(--hs-blue), var(--hs-lilac));
}

.hs-cosy-card__body {
  padding: clamp(20px, 2.4vw, 30px);
}

.hs-cosy-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hs-muted);
}

.hs-cosy-card__meta a {
  color: var(--hs-text-soft);
}

.hs-cosy-card h3,
.hs-list-item h3,
.hs-module-card h3,
.hs-aside-card h2,
.hs-cosy-archive h2 {
  margin: 0;
  color: var(--hs-text);
  font-weight: 800;
  line-height: 1.35;
}

.hs-cosy-card--lead h3 {
  font-size: clamp(28px, 3.4vw, 46px);
}

.hs-cosy-card--compact {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 152px;
}

.hs-cosy-card--compact h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hs-cosy-card__thumb {
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hs-blue), var(--hs-lilac));
}

.hs-cosy-card p,
.hs-list-item p,
.hs-module-card p,
.hs-aside-card p {
  margin: 16px 0 0;
  color: var(--hs-text-soft);
  line-height: 1.8;
}

.hs-cosy-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hs-text);
}

.hs-cosy-read::after {
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hs-magazine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.hs-list-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
}

.hs-list-item__media {
  display: block;
  min-height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hs-blue), var(--hs-lilac));
  border-radius: 20px;
}

.hs-list-item__content {
  align-self: center;
  padding-right: 10px;
}

.hs-list-item h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.hs-magazine__aside {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.hs-aside-card {
  padding: 24px;
}

.hs-aside-card a:not(.hs-cosy-read) {
  display: block;
  padding: 12px 0;
  color: var(--hs-text);
  border-bottom: 1px solid var(--hs-border);
}

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

.hs-module-card {
  min-height: 250px;
  padding: 30px;
}

.hs-module-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  font-weight: 800;
  color: var(--hs-text);
  background: color-mix(in srgb, var(--hs-blue) 62%, transparent);
  border-radius: 999px;
}

.hs-module-card h3 {
  font-size: 24px;
}

.hs-cosy-archive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 5vw, 58px);
  margin-bottom: 84px;
  background:
    radial-gradient(circle at 86% 24%, color-mix(in srgb, var(--hs-lilac) 62%, transparent), transparent 18rem),
    var(--hs-surface-strong);
}

.hs-cosy-archive h2 {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 52px);
}

.hs-page-hero {
  width: min(calc(100% - 40px), var(--hs-max));
  margin: 34px auto 0;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--hs-lilac) 70%, transparent), transparent 20rem),
    linear-gradient(135deg, var(--hs-surface-strong), color-mix(in srgb, var(--hs-blue) 34%, transparent));
  border: 1px solid var(--hs-border);
  border-radius: 36px;
  box-shadow: var(--hs-shadow);
}

.hs-page-hero__inner {
  max-width: 780px;
}

.hs-page-hero span,
.hs-cover-hero__text span {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hs-muted);
  text-transform: uppercase;
}

.hs-page-hero h1,
.hs-cover-hero__text h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--hs-text);
}

.hs-page-hero p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--hs-text-soft);
  line-height: 1.85;
}

.hs-cover-hero {
  position: relative;
  width: min(calc(100% - 40px), var(--hs-max));
  height: min(54vw, 440px);
  min-height: 280px;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--hs-shadow);
}

.hs-cover-hero__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hs-cover-hero__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(248, 244, 238, 0.86), rgba(248, 244, 238, 0.28)),
    linear-gradient(180deg, transparent, rgba(39, 37, 34, 0.18));
}

.hs-cover-hero__text {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(24px, 5vw, 58px);
  max-width: 720px;
}

.hs-theme main > section.mx-auto,
.hs-theme section.mx-auto.mt-6 {
  margin-top: 28px !important;
}

.hs-theme article#content {
  padding-top: 20px;
}

.hs-theme .rounded-xl.bg-white.p-4 {
  padding: clamp(22px, 4vw, 46px) !important;
  background: var(--hs-surface-strong) !important;
  border: 1px solid var(--hs-border);
  border-radius: 32px !important;
  box-shadow: var(--hs-shadow);
}

.hs-theme .rounded-xl.bg-white.p-4 > h1 {
  max-width: 820px;
  margin: 26px auto 10px !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  color: var(--hs-text) !important;
}

.hs-theme .rounded-xl.bg-white.p-4 > .flex,
.hs-theme .rounded-xl.bg-white.p-4 > .my-3,
.hs-theme .rounded-xl.bg-white.p-4 > .mt-10 {
  max-width: 820px;
  margin-inline: auto;
}

.hs-theme .rounded-xl.bg-white.p-4 > .mt-10 a {
  padding: 14px 18px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
}

.hs-theme aside {
  gap: 18px !important;
}

.hs-theme aside > * {
  padding: 22px !important;
  background: var(--hs-surface-strong) !important;
  border: 1px solid var(--hs-border) !important;
  border-radius: 28px !important;
  box-shadow: var(--hs-shadow) !important;
}

.hs-theme #comment,
.hs-theme halo-comment,
.hs-theme [id*="comment"] {
  border-radius: 28px;
}

.hs-theme .pattern-header-text h1,
.hs-theme section h1.text-5xl,
.hs-theme section h1.text-2xl,
.hs-theme section .text-5xl {
  color: var(--hs-text) !important;
}

.hs-theme section:has(.container.mx-auto.my-8) {
  padding: 64px 0;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--hs-blue) 54%, transparent), transparent 18rem),
    var(--hs-surface-strong) !important;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
}

.hs-theme section:has(.container.mx-auto.my-8) h2 {
  color: color-mix(in srgb, var(--hs-text) 18%, transparent) !important;
}

.hs-theme section:has(.container.mx-auto.my-8) p:nth-of-type(1)::after {
  display: block;
  max-width: 360px;
  margin: 18px auto 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--hs-text-soft);
  content: "这里暂时没有文字停留。你可以回到首页，或继续寻找下一束微光。";
}

@media (max-width: 980px) {
  .hs-cosy-hero,
  .hs-feature-layout,
  .hs-magazine {
    grid-template-columns: 1fr;
  }

  .hs-cosy-hero {
    min-height: auto;
  }

  .hs-cosy-hero__bg span:nth-child(3) {
    right: auto;
    left: 0;
    top: 42px;
    max-width: calc(100vw - 28px);
    font-size: clamp(46px, 17vw, 96px);
  }

  .hs-magazine__aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs-module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hs-topic-strip {
    border-radius: 24px;
  }

  .hs-announcement,
  .hs-cosy-archive {
    display: grid;
  }

  .hs-cosy-card--compact,
  .hs-list-item {
    grid-template-columns: 1fr;
  }

  .hs-cosy-card__thumb,
  .hs-list-item__media {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .hs-magazine__aside {
    grid-template-columns: 1fr;
  }
}

@keyframes hs-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -18px, 0) scale(1.025);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hs-hero::after {
  animation: hs-drift 18s ease-in-out infinite;
}

@media (max-width: 900px) {
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .hs-section {
    width: min(calc(100% - 28px), var(--hs-max)) !important;
  }

  .markdown-body,
  .tailwind-typography {
    font-size: 16px;
    line-height: 1.9;
  }
}

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

/* 04. Global rhythm and shared component system. */
:root {
  --hs-radius-card-lg: 28px;
  --hs-radius-card: 24px;
  --hs-radius-card-sm: 18px;
  --hs-radius-inner: 16px;
  --hs-radius-pill: 999px;
  --hs-gap-xl: 32px;
  --hs-gap-lg: 28px;
  --hs-gap-md: 24px;
  --hs-gap-sm: 18px;
  --hs-gap-xs: 12px;
  --hs-section-gap-xl: 96px;
  --hs-section-gap-lg: 80px;
  --hs-section-gap-md: 64px;
  --hs-section-gap-sm: 48px;
  --hs-card-padding-lg: 32px;
  --hs-card-padding: 28px;
  --hs-card-padding-sm: 22px;
  --hs-card-padding-xs: 18px;
  --hs-container-width: 1180px;
  --hs-container-padding: 32px;
  --hs-card-bg: rgba(255, 255, 255, 0.72);
  --hs-card-bg-strong: rgba(255, 255, 255, 0.88);
  --hs-card-border: rgba(120, 112, 104, 0.14);
  --hs-card-shadow: 0 20px 60px rgba(65, 55, 45, 0.08);
  --hs-card-radius-current: 24px;
  --hs-card-radius-large-current: 28px;
  --hs-card-gap-current: 28px;
  --hs-card-padding-current: 28px;
  --hs-section-gap-current: 80px;
  --hs-container-padding-current: 32px;
  --hs-header-height-current: 76px;
  --hs-header-padding-x-current: 48px;
  --hs-header-bg: rgba(248, 244, 238, 0.76);
  --hs-header-border: rgba(120, 112, 104, 0.14);
  --hs-header-blur: 18px;
  --hs-footer-padding-y-current: 34px;
  --hs-footer-bg: rgba(248, 244, 238, 0.76);
  --hs-footer-border: rgba(120, 112, 104, 0.14);
}

html.dark,
html[data-theme="dark"],
[data-theme="dark"] {
  --hs-card-bg: rgba(36, 34, 31, 0.72);
  --hs-card-bg-strong: rgba(42, 40, 36, 0.88);
  --hs-card-border: rgba(255, 255, 255, 0.12);
  --hs-card-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --hs-header-bg: rgba(24, 23, 21, 0.76);
  --hs-footer-bg: rgba(24, 23, 21, 0.76);
}

@media (max-width: 1023px) {
  :root {
    --hs-card-radius-current: 22px;
    --hs-card-radius-large-current: 24px;
    --hs-card-gap-current: 22px;
    --hs-card-padding-current: 24px;
    --hs-section-gap-current: 64px;
    --hs-container-padding-current: 24px;
    --hs-header-height-current: 68px;
    --hs-header-padding-x-current: 28px;
  }
}

@media (max-width: 767px) {
  :root {
    --hs-card-radius-current: 18px;
    --hs-card-radius-large-current: 20px;
    --hs-card-gap-current: 16px;
    --hs-card-padding-current: 20px;
    --hs-section-gap-current: 48px;
    --hs-container-padding-current: 18px;
    --hs-header-height-current: 62px;
    --hs-header-padding-x-current: 18px;
    --hs-footer-padding-y-current: 28px;
  }
}

@media (max-width: 390px) {
  :root {
    --hs-card-radius-current: 16px;
    --hs-card-radius-large-current: 18px;
    --hs-card-gap-current: 14px;
    --hs-card-padding-current: 18px;
    --hs-section-gap-current: 44px;
    --hs-container-padding-current: 16px;
  }
}

.hs-card,
.hs-cosy-card,
.hs-list-item,
.hs-aside-card,
.hs-module-card,
.hs-announcement,
.hs-topic-strip,
.hs-cosy-archive,
.hs-page-hero,
.hs-cover-hero,
.hs-empty,
.hs-orbit-card,
.hs-mini-note,
.hs-post-card,
.hs-about__panel,
.hs-journal-card,
.hs-value,
#post-list > *,
.group.rounded-xl,
.hs-theme .rounded-xl.bg-white.p-4,
.hs-theme aside > *,
.hs-theme section:has(.container.mx-auto.my-8) {
  background: var(--hs-card-bg-strong) !important;
  border: 1px solid var(--hs-card-border) !important;
  border-radius: var(--hs-card-radius-current) !important;
  box-shadow: var(--hs-card-shadow) !important;
}

.hs-card--large,
.hs-cosy-card--lead,
.hs-cosy-hero__panel,
.hs-page-hero,
.hs-cover-hero,
.hs-cosy-archive,
.hs-about__panel {
  border-radius: var(--hs-card-radius-large-current) !important;
}

.hs-card--compact,
.hs-cosy-card--compact,
.hs-mini-note,
.hs-value {
  border-radius: var(--hs-radius-card-sm) !important;
}

.hs-cosy-card__media,
.hs-cosy-card__thumb,
.hs-list-item__media,
.hs-post-card__cover,
.hs-cover-hero__image,
.hs-card img,
.hs-cosy-card img,
.hs-list-item img,
.hs-post-card img,
.markdown-body img,
.tailwind-typography img {
  border-radius: max(12px, calc(var(--hs-card-radius-current) - 8px)) !important;
}

.hs-section,
.hs-nav__inner,
.hs-footer__inner,
.hs-page-hero,
.hs-cover-hero,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl {
  width: min(calc(100% - var(--hs-container-padding-current) * 2), var(--hs-container-width)) !important;
  max-width: var(--hs-container-width) !important;
}

.hs-section {
  padding-block: var(--hs-section-gap-current);
}

.hs-cosy-hero {
  padding-top: clamp(42px, 7vw, 92px);
  padding-bottom: var(--hs-section-gap-current);
}

.hs-cosy-hero__bg span:nth-child(3),
.hs-hero__signature {
  display: none !important;
}

.hs-feature-layout,
.hs-feature-layout__side,
.hs-list-stack,
.hs-module-grid,
.hs-magazine,
.hs-magazine__aside,
.hs-mini-notes,
.hs-values,
.hs-journal__rail,
#post-list {
  gap: var(--hs-card-gap-current) !important;
}

.hs-cosy-card__body,
.hs-aside-card,
.hs-module-card,
.hs-announcement,
.hs-cosy-archive,
.hs-page-hero,
.hs-theme .rounded-xl.bg-white.p-4,
.hs-theme aside > * {
  padding: var(--hs-card-padding-current) !important;
}

.hs-cosy-card--lead .hs-cosy-card__body,
.hs-cosy-hero__panel,
.hs-about__panel {
  padding: var(--hs-card-padding-lg) !important;
}

:is(.hs-nav, #header-menu) {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  min-height: var(--hs-header-height-current) !important;
  padding-inline: var(--hs-header-padding-x-current) !important;
  background: var(--hs-header-bg) !important;
  border-bottom: 1px solid var(--hs-header-border) !important;
  box-shadow: none !important;
  backdrop-filter: blur(var(--hs-header-blur));
  -webkit-backdrop-filter: blur(var(--hs-header-blur));
}

:is(.hs-nav__inner, #header-menu > div:first-child) {
  width: min(100%, var(--hs-container-width)) !important;
  height: var(--hs-header-height-current) !important;
  max-width: var(--hs-container-width) !important;
  padding-inline: 0 !important;
  margin-inline: auto !important;
}

.hs-brand__cn,
#site-title {
  font-family: var(--font-cn) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: var(--hs-text) !important;
}

.hs-brand__en {
  font-family: var(--font-en) !important;
  color: var(--hs-muted) !important;
}

:is(.hs-menu, #header-menu ul) a {
  font-family: var(--font-base) !important;
  font-size: 14px !important;
  color: var(--hs-text-soft) !important;
}

:is(.hs-menu, #header-menu ul) a:hover {
  color: var(--hs-text) !important;
}

.hs-mobile-menu {
  background: var(--hs-header-bg);
  border-bottom: 1px solid var(--hs-header-border);
}

.hs-footer,
footer {
  margin-top: var(--hs-section-gap-current) !important;
  padding-block: var(--hs-footer-padding-y-current) !important;
  padding-inline: var(--hs-container-padding-current) !important;
  background: var(--hs-footer-bg) !important;
  border-top: 1px solid var(--hs-footer-border) !important;
  box-shadow: none !important;
}

.hs-footer__inner,
footer > div:first-child {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--hs-gap-lg) !important;
  align-items: center !important;
  width: min(100%, var(--hs-container-width)) !important;
  max-width: var(--hs-container-width) !important;
  padding-inline: 0 !important;
  margin-inline: auto !important;
}

.hs-footer strong,
footer span.self-center,
footer a {
  color: var(--hs-text) !important;
}

.hs-footer span,
.hs-footer div,
footer span,
footer p,
footer li {
  color: var(--hs-muted) !important;
  font-size: 13px !important;
}

@media (hover: hover) {
  .hs-card,
  .hs-cosy-card,
  .hs-list-item,
  .hs-module-card,
  #post-list > *,
  .group.rounded-xl {
    transition:
      transform 220ms ease,
      box-shadow 220ms ease,
      border-color 220ms ease,
      background-color 220ms ease;
  }

  .hs-card:hover,
  .hs-cosy-card:hover,
  .hs-list-item:hover,
  .hs-module-card:hover,
  #post-list > *:hover,
  .group.rounded-xl:hover {
    border-color: rgba(120, 112, 104, 0.22) !important;
    box-shadow: 0 24px 70px rgba(65, 55, 45, 0.11) !important;
    transform: translateY(-4px);
  }
}

@media (max-width: 1023px) {
  .hs-feature-layout,
  .hs-magazine {
    gap: var(--hs-card-gap-current) !important;
  }

  .hs-magazine__aside {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .hs-section,
  .hs-page-hero,
  .hs-cover-hero,
  .hs-nav__inner,
  .hs-footer__inner,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl {
    width: min(calc(100% - var(--hs-container-padding-current) * 2), var(--hs-container-width)) !important;
  }

  .hs-cosy-hero {
    min-height: auto;
    padding-top: var(--hs-section-gap-sm);
  }

  .hs-cosy-hero h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .hs-topic-strip {
    border-radius: var(--hs-card-radius-current) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .hs-topic-strip a {
    min-width: 0;
    text-align: center;
  }

  .hs-cosy-card--compact,
  .hs-list-item,
  .hs-feature-layout__side,
  .hs-magazine__aside,
  .hs-mini-notes,
  .hs-values,
  .hs-footer__inner,
  footer > div:first-child {
    grid-template-columns: 1fr !important;
  }

  .hs-feature-layout__side > *,
  .hs-magazine__aside > *,
  .hs-mini-notes > *,
  .hs-values > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hs-footer__inner,
  footer > div:first-child {
    gap: 16px !important;
    text-align: center;
  }

  .hs-menu-button {
    width: 38px;
    height: 38px;
  }

  .markdown-body,
  .tailwind-typography {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* 05. Typography, footer social and feed feedback. */
/* Keep Chinese titles softer while preserving Mulish for UI chrome. */
body {
  font-family: var(--font-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  font-weight: 500;
}

.hs-brand__cn,
#site-title,
.hs-cosy-eyebrow,
.hs-hero-title,
.hs-section-title,
.hs-module-card h3,
.hs-aside-card h2,
.hs-aside-card h3,
.hs-cosy-archive h2,
.hs-cosy-card h3,
.hs-list-item h3,
.hs-cosy-panel__body strong,
.hs-theme .rounded-xl.bg-white.p-4 > h1,
.hs-theme h1,
.hs-theme h2,
.hs-theme h3,
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.tailwind-typography h1,
.tailwind-typography h2,
.tailwind-typography h3 {
  font-family: var(--font-cn-title) !important;
  font-weight: 500 !important;
}

.hs-hero-title {
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hs-hero-title span {
  display: block;
}

.hs-brand__en,
.hs-menu a,
.hs-nav__link,
.hs-button,
.hs-section-title em,
.hs-cosy-card__meta,
.hs-cosy-read,
.hs-footer {
  font-family: var(--font-en) !important;
}

.hs-footer-break {
  display: none;
}

.hs-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hs-footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--hs-text-soft) !important;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--hs-card-border);
  border-radius: var(--hs-radius-pill);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.hs-footer-social__link:hover {
  color: var(--hs-text) !important;
  background: color-mix(in srgb, var(--hs-blue) 52%, transparent);
  border-color: rgba(120, 112, 104, 0.22);
}

.hs-feed-status {
  display: block;
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--hs-text-soft);
  font-family: var(--font-cn);
  font-size: 13px;
  line-height: 1.5;
}

/* Journal card balance: keep the latest post editorial, not oversized. */
.hs-feature-layout {
  align-items: start;
  width: min(100%, 780px);
  grid-template-columns: minmax(0, 1fr);
}

.hs-feature-layout:has(.hs-feature-layout__side article) {
  width: 100%;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.74fr);
}

.hs-feature-layout__side:empty {
  display: none !important;
}

.hs-feature-layout__side:not(:has(article)) {
  display: none !important;
}

.hs-cosy-card--lead {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  min-height: 300px;
}

.hs-cosy-card--lead .hs-cosy-card__media {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}

.hs-cosy-card--lead .hs-cosy-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 2.8vw, 34px) !important;
}

.hs-cosy-card--lead h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.2;
}

.hs-cosy-card--lead p {
  display: -webkit-box;
  margin-top: 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 767px) {
  .hs-hero-title {
    line-height: 1.12;
  }

  .hs-footer-break {
    display: block;
  }

  .hs-footer-social {
    order: 2;
  }

  .hs-feature-layout,
  .hs-cosy-card--lead {
    grid-template-columns: 1fr;
  }

  .hs-cosy-card--lead {
    min-height: auto;
  }

  .hs-cosy-card--lead .hs-cosy-card__media {
    width: 100% !important;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hs-cosy-card--lead .hs-cosy-card__body {
    width: 100%;
    min-height: 0;
    padding: 24px !important;
  }

  .hs-cosy-card--lead h3 {
    font-size: clamp(24px, 8vw, 32px);
  }
}

/* Fourth-round refinement: one radius system, flatter subpages, calmer dropdowns. */
:root {
  --hs-radius-lg: 24px;
  --hs-radius-md: 24px;
  --hs-radius-sm: 24px;
  --hs-radius-pill: 24px;
  --hs-card-radius-current: 24px;
  --hs-card-radius-large-current: 24px;
  --hs-control-radius-current: var(--hs-card-radius-current);
  --hs-subpage-shadow: 0 16px 48px rgba(65, 55, 45, 0.055);
}

@media (max-width: 767px) {
  :root {
    --hs-radius-lg: 18px;
    --hs-radius-md: 18px;
    --hs-radius-sm: 18px;
    --hs-radius-pill: 18px;
    --hs-card-radius-current: 18px;
    --hs-card-radius-large-current: 18px;
  }
}

.hs-button,
.hs-menu a,
.hs-nav__link,
.hs-topic-strip,
.hs-topic-strip a,
.hs-cosy-read,
.hs-footer-social__link,
.hs-module-card span,
.hs-cosy-eyebrow,
.hs-menu-button,
#pagination,
button,
a[class*="rounded"],
.rounded,
.rounded-lg,
.rounded-xl,
.rounded-full,
a[href*="/categories/"],
a[href*="/tags/"],
.hs-cosy-card__meta a,
.tag,
[class*="tag"],
[class*="category"] a {
  border-radius: var(--hs-control-radius-current) !important;
}

.hs-card,
.hs-cosy-card,
.hs-list-item,
.hs-aside-card,
.hs-module-card,
.hs-announcement,
.hs-cosy-archive,
.hs-page-hero,
.hs-cover-hero,
.hs-empty,
.hs-theme aside > *,
.hs-theme .rounded-xl.bg-white.p-4 {
  border-radius: var(--hs-card-radius-current) !important;
}

.hs-topic-strip.hs-section {
  min-height: 0 !important;
  padding-block: 10px !important;
  margin-top: clamp(18px, 2.8vw, 34px) !important;
  margin-bottom: 0 !important;
}

.hs-topic-strip {
  align-items: center !important;
  min-height: 54px !important;
  padding: 8px !important;
}

.hs-topic-strip a {
  padding: 8px 16px !important;
  line-height: 1.2 !important;
}

.hs-cosy-card--lead .hs-cosy-card__media {
  border-radius: var(--hs-card-radius-current) 0 0 var(--hs-card-radius-current) !important;
}

.hs-cosy-card--lead .hs-cosy-card__media img,
.hs-cosy-card--lead .hs-cosy-card__media--empty {
  border-radius: var(--hs-card-radius-current) 0 0 var(--hs-card-radius-current) !important;
}

/* Prevent dropdown menu items from becoming nested cards. */
.hs-theme .menu-dropdown,
.hs-theme [x-data="dropdown"] > ul.absolute {
  padding: 8px !important;
  overflow: hidden !important;
  background: var(--hs-card-bg-strong) !important;
  border: 1px solid var(--hs-card-border) !important;
  border-radius: var(--hs-card-radius-current) !important;
  box-shadow: var(--hs-subpage-shadow) !important;
}

.hs-theme .menu-dropdown > li,
.hs-theme [x-data="dropdown"] > ul.absolute > li,
.hs-theme [x-data="dropdown"] > ul.absolute > template + li {
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--hs-control-radius-current) !important;
  box-shadow: none !important;
}

.hs-theme .menu-dropdown > li > a,
.hs-theme [x-data="dropdown"] > ul.absolute > li,
.hs-theme [x-data="dropdown"] > ul.absolute a {
  border-radius: var(--hs-control-radius-current) !important;
}

/* Archives and single pages: reduce card nesting and make the content read as one planned layout. */
.hs-theme section.mx-auto.mt-6 {
  gap: clamp(26px, 3vw, 38px) !important;
  padding-inline: 0 !important;
  margin-top: clamp(34px, 5vw, 58px) !important;
}

.hs-theme section.mx-auto.mt-6 > .z-0 > .rounded-xl.bg-white.p-4 {
  padding: clamp(34px, 5vw, 62px) !important;
  background: color-mix(in srgb, var(--hs-card-bg-strong) 72%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 70%, transparent) !important;
  box-shadow: var(--hs-subpage-shadow) !important;
}

.hs-theme section.mx-auto.mt-6 > aside {
  gap: clamp(18px, 2.1vw, 24px) !important;
}

.hs-theme section.mx-auto.mt-6 > aside > * {
  padding: clamp(22px, 2.4vw, 30px) !important;
  box-shadow: var(--hs-subpage-shadow) !important;
}

/* Archive list: rows instead of card-inside-card. */
.hs-theme .rounded-xl.bg-white.p-4 > h1[th\:text],
.hs-theme .rounded-xl.bg-white.p-4 > h1 {
  margin-top: 0 !important;
}

.hs-theme .rounded-xl.bg-white.p-4 .grid.grid-cols-12 {
  gap: clamp(18px, 2.6vw, 32px) !important;
  padding-block: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--hs-border);
}

.hs-theme .rounded-xl.bg-white.p-4 .grid.grid-cols-12:first-child {
  border-top: 0;
}

.hs-theme .rounded-xl.bg-white.p-4 .grid.grid-cols-12 .my-2.rounded-xl {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme .rounded-xl.bg-white.p-4 .grid.grid-cols-12 .my-2.rounded-xl:last-child {
  border-bottom: 0 !important;
}

.hs-theme .rounded-xl.bg-white.p-4 .grid.grid-cols-12 .my-2.rounded-xl > .relative {
  padding: 20px 0 !important;
}

.hs-theme .rounded-xl.bg-white.p-4 .grid.grid-cols-12 .my-2.rounded-xl:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* 06. Page-specific overrides: archive, article, sidebar and comments. */
.hs-theme .rounded-xl.bg-white.p-4 > article {
  margin-top: clamp(22px, 3vw, 34px);
}

.hs-theme .rounded-xl.bg-white.p-4 > hr {
  margin-block: clamp(32px, 5vw, 56px) !important;
  border-color: var(--hs-border) !important;
}

/* Sidebar widgets: use quiet lists and chips instead of card-inside-card layers. */
.hs-theme section.mx-auto.mt-6 > aside > .w-full.overflow-hidden {
  background: color-mix(in srgb, var(--hs-card-bg-strong) 82%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 76%, transparent) !important;
  box-shadow: 0 16px 42px rgba(65, 55, 45, 0.045) !important;
}

.hs-theme section.mx-auto.mt-6 > aside > .w-full.overflow-hidden:hover {
  transform: none !important;
  box-shadow: 0 16px 42px rgba(65, 55, 45, 0.045) !important;
}

.hs-theme section.mx-auto.mt-6 > aside h2 {
  font-family: var(--font-cn-title);
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: var(--hs-text) !important;
}

.hs-theme section.mx-auto.mt-6 > aside h2 span[class*="i-tabler"] {
  color: color-mix(in srgb, var(--hs-text) 64%, var(--hs-muted)) !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y {
  margin-top: 14px !important;
  border-top: 1px solid var(--hs-border) !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y > li.py-3 {
  padding: 13px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y > li.py-3:last-child {
  border-bottom: 0 !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y > li.py-3 > div {
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y h3 {
  font-family: var(--font-base) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y h3 a {
  text-decoration: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y p,
.hs-theme section.mx-auto.mt-6 > aside ul.divide-y .tabular-nums {
  color: var(--hs-muted) !important;
}

.hs-theme section.mx-auto.mt-6 > aside ul.divide-y .i-tabler-eye {
  opacity: 0.58;
}

.hs-theme section.mx-auto.mt-6 > aside .space-y-1 {
  margin-top: 12px !important;
}

.hs-theme section.mx-auto.mt-6 > aside .space-y-1 a.group {
  min-height: 34px;
  padding: 7px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside .space-y-1 li:last-child > a.group {
  border-bottom: 0 !important;
}

.hs-theme section.mx-auto.mt-6 > aside .space-y-1 a.group:hover {
  color: var(--hs-text) !important;
  background: transparent !important;
}

.hs-theme section.mx-auto.mt-6 > aside .space-y-1 a.group > span:first-child {
  font-size: 14px !important;
  color: color-mix(in srgb, var(--hs-text) 78%, var(--hs-muted)) !important;
  opacity: 1 !important;
}

.hs-theme section.mx-auto.mt-6 > aside .space-y-1 a.group > span:last-child {
  min-width: 26px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px !important;
  color: var(--hs-muted) !important;
  background: color-mix(in srgb, var(--hs-blue) 36%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 72%, transparent) !important;
  border-radius: var(--hs-control-radius-current) !important;
  box-shadow: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside a[href*="/tags/"] {
  min-height: 32px;
  padding: 7px 11px !important;
  color: color-mix(in srgb, var(--hs-text) 76%, var(--hs-muted)) !important;
  background: color-mix(in srgb, var(--hs-blue) 30%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 72%, transparent) !important;
  border-radius: var(--hs-control-radius-current) !important;
  box-shadow: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside a[href*="/tags/"]:hover {
  color: var(--hs-text) !important;
  background: color-mix(in srgb, var(--hs-purple) 36%, var(--hs-card-bg-strong)) !important;
  border-color: color-mix(in srgb, var(--hs-card-border) 88%, var(--hs-text)) !important;
  transform: none !important;
}

.hs-theme section.mx-auto.mt-6 > aside a[href*="/tags/"] sup {
  top: -0.15em;
  margin-left: 2px;
  color: var(--hs-muted) !important;
}

/* Archive card overrides must outrank the older Tailwind utility selectors. */
.hs-theme section.mx-auto.mt-6 > .z-0 > .hs-archive-surface.rounded-xl.bg-white.p-4 {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme .hs-archive-surface .hs-archive-month.grid.grid-cols-12 {
  padding: 0 !important;
  border-top: 0 !important;
}

.hs-theme .hs-archive-surface .hs-archive-grid.col-span-12 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: clamp(18px, 2vw, 24px) !important;
}

.hs-theme .hs-archive-surface .hs-archive-grid .hs-archive-card.my-2.rounded-xl {
  display: flex !important;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  margin: 0 !important;
  background: color-mix(in srgb, var(--hs-card-bg-strong) 86%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 78%, transparent) !important;
  border-radius: var(--hs-card-radius-current) !important;
  box-shadow: 0 18px 46px rgba(65, 55, 45, 0.052) !important;
}

.hs-theme .hs-archive-surface .hs-archive-grid .hs-archive-card.my-2.rounded-xl:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--hs-card-border) 70%, var(--hs-text)) !important;
  box-shadow: 0 22px 52px rgba(65, 55, 45, 0.07) !important;
}

.hs-theme .hs-archive-surface .hs-archive-card > .hs-archive-card__body.relative {
  padding: 18px 18px 20px !important;
  background: color-mix(in srgb, var(--hs-card-bg-strong) 84%, transparent) !important;
}

/* Archive article cards: Cosy-inspired card rhythm, Huashu Design visual language. */
.hs-theme .hs-archive-surface {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme .hs-archive-title {
  margin: 0 0 clamp(26px, 4vw, 44px) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(42px, 6vw, 68px) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  color: var(--hs-text) !important;
}

.hs-theme .hs-archive-list {
  gap: clamp(34px, 4.8vw, 58px) !important;
}

.hs-theme .hs-archive-month {
  gap: clamp(20px, 3vw, 34px) !important;
  padding: 0 !important;
  border-top: 0 !important;
}

.hs-theme .hs-archive-month__label h2 {
  margin: 0 !important;
  font-family: var(--font-cn-title);
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: color-mix(in srgb, var(--hs-text) 86%, var(--hs-muted)) !important;
}

.hs-theme .hs-archive-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2vw, 24px) !important;
}

.hs-theme .hs-archive-card {
  display: flex !important;
  min-height: 100%;
  max-width: 560px;
  flex-direction: column;
  overflow: hidden;
  margin: 0 !important;
  background: color-mix(in srgb, var(--hs-card-bg-strong) 86%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 78%, transparent) !important;
  border-radius: var(--hs-card-radius-current) !important;
  box-shadow: 0 18px 46px rgba(65, 55, 45, 0.052) !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hs-theme .hs-archive-card:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--hs-card-border) 70%, var(--hs-text)) !important;
  box-shadow: 0 22px 52px rgba(65, 55, 45, 0.07) !important;
}

.hs-theme .hs-archive-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(220, 232, 242, 0.95), transparent 46%),
    radial-gradient(circle at 78% 18%, rgba(233, 227, 240, 0.9), transparent 42%),
    linear-gradient(135deg, rgba(248, 244, 238, 0.98), rgba(220, 232, 242, 0.72));
  border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0 !important;
}

.hs-theme .hs-archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 420ms ease;
}

.hs-theme .hs-archive-card:hover .hs-archive-card__media img {
  transform: scale(1.025);
}

.hs-theme .hs-archive-card__media--empty::before {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: calc(var(--hs-card-radius-current) - 8px);
}

.hs-theme .hs-archive-card__media--empty {
  aspect-ratio: auto;
  height: clamp(150px, 18vw, 220px);
}

.hs-theme .hs-archive-card__body {
  gap: 8px !important;
  flex: 1;
  padding: 16px 18px 18px !important;
  background: color-mix(in srgb, var(--hs-card-bg-strong) 84%, transparent) !important;
}

.hs-theme .hs-archive-card__meta {
  gap: 8px !important;
  min-height: 28px;
}

.hs-theme .hs-archive-card__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 !important;
  padding: 5px 10px !important;
  font-family: var(--font-en);
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: color-mix(in srgb, var(--hs-text) 72%, var(--hs-muted)) !important;
  text-decoration: none !important;
  background: color-mix(in srgb, var(--hs-blue) 34%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--hs-card-border) 70%, transparent) !important;
  border-radius: var(--hs-control-radius-current) !important;
  box-shadow: none !important;
}

.hs-theme .hs-archive-card__title {
  margin: 2px 0 0;
  font-family: var(--font-cn-title);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
}

.hs-theme .hs-archive-card__title a {
  display: -webkit-box !important;
  overflow: hidden;
  color: var(--hs-text) !important;
  text-decoration: none !important;
  white-space: normal !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hs-theme .hs-archive-card__date {
  order: -1;
  margin: 0 !important;
  font-family: var(--font-en);
  font-size: 12px !important;
  letter-spacing: 0.02em;
  color: var(--hs-muted) !important;
}

.hs-theme .hs-archive-card__excerpt {
  margin-top: 0;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: color-mix(in srgb, var(--hs-muted) 88%, var(--hs-text)) !important;
}

@media (max-width: 767px) {
  .hs-cosy-card--lead .hs-cosy-card__media {
    border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0 !important;
  }

  .hs-cosy-card--lead .hs-cosy-card__media img,
  .hs-cosy-card--lead .hs-cosy-card__media--empty {
    border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0 !important;
  }

  .hs-topic-strip.hs-section {
    padding-block: 8px !important;
  }

  .hs-topic-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    min-height: 0 !important;
  }

  .hs-topic-strip a {
    padding: 8px 10px !important;
  }

  .hs-theme section.mx-auto.mt-6 > .z-0 > .rounded-xl.bg-white.p-4 {
    padding: 24px !important;
  }

  .hs-theme .hs-archive-title {
    font-size: clamp(38px, 13vw, 54px) !important;
  }

  .hs-theme .hs-archive-grid {
    grid-template-columns: 1fr;
  }

  .hs-theme .hs-archive-card {
    max-width: none;
  }

  .hs-theme .hs-archive-card__media--empty {
    height: clamp(128px, 36vw, 160px);
  }

  .hs-theme .hs-archive-card__body {
    padding: 18px !important;
  }
}

/* Final archive card lock: keep the intended card surface after utility overrides. */
.hs-theme .hs-archive-surface .hs-archive-grid .hs-archive-card.hs-archive-card.my-2.rounded-xl {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(120, 112, 104, 0.11) !important;
  border-radius: var(--hs-card-radius-current) !important;
  box-shadow: 0 18px 46px rgba(65, 55, 45, 0.052) !important;
}

.hs-theme .hs-archive-surface .hs-archive-grid .hs-archive-card.hs-archive-card.my-2.rounded-xl > .hs-archive-card__body.relative {
  padding: 18px 18px 20px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border-radius: 0 0 var(--hs-card-radius-current) var(--hs-card-radius-current) !important;
}

.hs-theme .hs-archive-surface .hs-archive-grid .hs-archive-card.hs-archive-card.my-2.rounded-xl:hover {
  border-color: rgba(120, 112, 104, 0.18) !important;
  box-shadow: 0 22px 52px rgba(65, 55, 45, 0.07) !important;
}

/* Comment plugin inner controls only; the outer panel lives in section 09. */
.hs-theme #comment halo-comment,
.hs-theme #comment .halo-comment-widget,
.hs-theme #comment comment-widget,
.hs-theme #comment [class*="comment"] {
  color: var(--hs-text) !important;
  font-family: var(--font-base) !important;
}

.hs-theme #comment button,
.hs-theme #comment a[role="button"],
.hs-theme #comment [class*="button"],
.hs-theme #comment [class*="btn"] {
  border-radius: var(--hs-control-radius-current) !important;
  box-shadow: none !important;
}

.hs-theme #comment button[type="submit"],
.hs-theme #comment [class*="submit"],
.hs-theme #comment [class*="primary"] {
  background: #272522 !important;
  border-color: #272522 !important;
  color: #fff !important;
}

.hs-theme #comment [class*="toolbar"],
.hs-theme #comment [class*="action"] {
  background: transparent !important;
  border-color: rgba(120, 112, 104, 0.1) !important;
}

.hs-theme #comment :is(svg, [class*="icon"]) {
  color: color-mix(in srgb, var(--hs-text) 72%, var(--hs-muted)) !important;
}

.hs-theme #comment :is(.rounded, .rounded-lg, .rounded-xl, .rounded-md) {
  border-radius: var(--hs-card-radius-current) !important;
}

/* 07. Homepage editorial flow refinements. */
/* Borrow the reference rhythm without turning the blog into a news portal. */
.hs-cms-grid {
  padding-top: clamp(48px, 6vw, 76px);
}

.hs-cms-grid .hs-section-head {
  align-items: end;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.hs-feature-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(16px, 2vw, 22px);
}

.hs-feature-layout__side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.hs-feature-layout__side:not(:has(article)) {
  display: none !important;
}

.hs-feature-layout:not(:has(.hs-feature-layout__side article)) {
  max-width: 760px;
}

.hs-cosy-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(120, 112, 104, 0.11);
  box-shadow: 0 16px 44px rgba(65, 55, 45, 0.045);
}

.hs-cosy-card:hover,
.hs-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(65, 55, 45, 0.064);
}

.hs-cosy-card--lead {
  display: grid;
  min-height: clamp(360px, 40vw, 520px);
  grid-template-columns: 1fr;
}

.hs-cosy-card--lead .hs-cosy-card__media {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0 !important;
}

.hs-cosy-card--lead .hs-cosy-card__media--empty {
  aspect-ratio: 16 / 8.2;
  min-height: 0;
}

.hs-cosy-card--lead .hs-cosy-card__body {
  justify-content: start;
  padding: clamp(22px, 2.6vw, 34px) !important;
}

.hs-cosy-card--lead h3 {
  max-width: 12em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.18;
}

.hs-cosy-card--lead p {
  max-width: 38em;
  -webkit-line-clamp: 2;
}

.hs-cosy-card--compact {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.hs-cosy-card--compact .hs-cosy-card__thumb {
  aspect-ratio: 16 / 7;
  min-height: 0;
  border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0;
}

.hs-cosy-card--compact .hs-cosy-card__body {
  padding: 20px !important;
}

.hs-cosy-card--compact h3 {
  font-size: clamp(18px, 1.7vw, 22px);
  -webkit-line-clamp: 2;
}

.hs-magazine {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(26px, 3.4vw, 42px);
  align-items: start;
}

.hs-list-stack {
  gap: 0;
}

.hs-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: clamp(18px, 2.8vw, 34px);
  padding: 28px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(120, 112, 104, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.hs-list-item:hover {
  border-color: rgba(120, 112, 104, 0.2);
  box-shadow: none;
}

.hs-list-item__media {
  order: 2;
  width: 180px;
  min-height: 128px;
  aspect-ratio: 4 / 3;
  border-radius: var(--hs-card-radius-current);
}

.hs-list-item__content {
  order: 1;
  align-self: center;
  padding-right: 0;
}

.hs-list-item h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.hs-list-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hs-theme .hs-archive-list {
  gap: clamp(26px, 4vw, 44px) !important;
}

.hs-theme .hs-archive-month {
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr) !important;
  gap: clamp(20px, 3vw, 42px) !important;
}

.hs-theme .hs-archive-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.hs-theme .hs-archive-card {
  max-width: none;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  min-height: 0;
  padding: clamp(22px, 2.4vw, 30px) 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(120, 112, 104, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-theme .hs-archive-card:hover {
  transform: none !important;
  border-color: rgba(120, 112, 104, 0.2) !important;
  box-shadow: none !important;
}

.hs-theme .hs-archive-card__media {
  order: 2;
  width: clamp(128px, 15vw, 176px);
  height: clamp(92px, 10vw, 124px);
  aspect-ratio: auto;
  border-radius: var(--hs-card-radius-current) !important;
}

.hs-theme .hs-archive-card__body {
  order: 1;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
}

.hs-theme .hs-archive-card__meta {
  min-height: 0;
  margin-bottom: 4px;
}

.hs-theme .hs-archive-card__title {
  font-size: clamp(22px, 2vw, 28px);
}

.hs-theme .hs-archive-card__date {
  order: 0;
}

.hs-theme .hs-archive-card__excerpt {
  display: -webkit-box;
  max-width: 48em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .hs-feature-layout,
  .hs-magazine {
    grid-template-columns: 1fr;
  }

  .hs-feature-layout__side {
    grid-template-rows: none;
  }

  .hs-magazine__aside {
    position: static;
  }
}

@media (max-width: 767px) {
  .hs-feature-layout {
    max-width: none;
  }

  .hs-cosy-card--lead {
    min-height: 0;
  }

  .hs-cosy-card--compact .hs-cosy-card__thumb {
    aspect-ratio: 16 / 8;
  }

  .hs-list-item,
  .hs-theme .hs-archive-card {
    grid-template-columns: 1fr;
  }

  .hs-list-item__media,
  .hs-theme .hs-archive-card__media {
    order: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hs-theme .hs-archive-month {
    grid-template-columns: 1fr !important;
  }

  .hs-theme .hs-archive-month__label h2 {
    position: static !important;
  }
}

/* Editorial flow lock: remove leftover columns from legacy grid utility classes. */
.hs-feature-layout:not(:has(.hs-feature-layout__side article)) {
  width: min(100%, 760px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead {
  width: 100%;
  min-height: 0;
}

.hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__media {
  aspect-ratio: 16 / 7.4;
}

.hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__body {
  padding: clamp(20px, 2.2vw, 28px) !important;
}

.hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead h3 {
  font-size: clamp(26px, 2.7vw, 38px);
}

.hs-feature-layout__side:not(:has(article)) {
  display: none !important;
}

.hs-theme .hs-archive-surface .hs-archive-month.grid.grid-cols-12 {
  display: grid !important;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) !important;
  gap: clamp(20px, 3vw, 42px) !important;
}

.hs-theme .hs-archive-surface .hs-archive-month__label,
.hs-theme .hs-archive-surface .hs-archive-grid {
  grid-column: auto !important;
}

.hs-theme .hs-archive-surface .hs-archive-grid.col-span-12 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.hs-theme .hs-archive-surface .hs-archive-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

@media (max-width: 767px) {
  .hs-theme .hs-archive-surface .hs-archive-month.grid.grid-cols-12,
  .hs-theme .hs-archive-surface .hs-archive-card {
    grid-template-columns: 1fr !important;
  }
}

/* 08. UI audit consolidation layer: unify rhythm without changing Halo data logic. */
:root {
  --hs-container-width: 1180px;
  --hs-container-padding-desktop: 32px;
  --hs-container-padding-tablet: 24px;
  --hs-container-padding-mobile: 18px;
  --hs-card-radius-desktop: 24px;
  --hs-card-radius-large-desktop: 28px;
  --hs-card-radius-tablet: 22px;
  --hs-card-radius-mobile: 18px;
  --hs-card-gap-desktop: 28px;
  --hs-card-gap-tablet: 22px;
  --hs-card-gap-mobile: 16px;
  --hs-card-radius-current: var(--hs-card-radius-desktop);
  --hs-card-gap-current: var(--hs-card-gap-desktop);
  --hs-container-padding-current: var(--hs-container-padding-desktop);
  --hs-ui-shadow: 0 18px 52px rgba(64, 56, 45, 0.08);
  --hs-ui-shadow-soft: 0 10px 34px rgba(64, 56, 45, 0.055);
}

@media (max-width: 1023px) {
  :root {
    --hs-card-radius-current: var(--hs-card-radius-tablet);
    --hs-card-gap-current: var(--hs-card-gap-tablet);
    --hs-container-padding-current: var(--hs-container-padding-tablet);
  }
}

@media (max-width: 767px) {
  :root {
    --hs-card-radius-current: var(--hs-card-radius-mobile);
    --hs-card-gap-current: var(--hs-card-gap-mobile);
    --hs-container-padding-current: var(--hs-container-padding-mobile);
  }
}

body.hs-theme {
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 10%, rgba(220, 232, 242, 0.55), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(233, 227, 240, 0.5), transparent 30%),
    linear-gradient(180deg, #f9f6f1 0%, #f8f4ee 42%, #fbfaf7 100%) !important;
  color: var(--hs-text);
  font-family: var(--font-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.dark body.hs-theme,
html[data-theme="dark"] body.hs-theme,
[data-theme="dark"] body.hs-theme {
  background:
    radial-gradient(circle at 12% 12%, rgba(93, 119, 144, 0.2), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(119, 91, 126, 0.16), transparent 30%),
    linear-gradient(180deg, #181715 0%, #211f1c 100%) !important;
}

.hs-theme .max-w-7xl,
.hs-theme .hs-container,
.hs-theme .hs-page-hero,
.hs-theme .hs-cover-hero,
.hs-theme .hs-section,
.hs-theme .hs-footer__inner,
.hs-theme footer > div:first-child {
  max-width: var(--hs-container-width) !important;
}

.hs-theme .max-w-7xl,
.hs-theme footer > div:first-child {
  padding-inline: var(--hs-container-padding-current) !important;
}

.hs-theme #header-menu {
  height: 74px !important;
  padding-block: 0 !important;
  background: rgba(248, 244, 238, 0.82) !important;
  border-bottom: 1px solid rgba(120, 112, 104, 0.14) !important;
  box-shadow: 0 10px 32px rgba(64, 56, 45, 0.045) !important;
  backdrop-filter: blur(18px);
}

.hs-theme #header-menu > div:first-child {
  max-width: var(--hs-container-width) !important;
  padding-inline: var(--hs-container-padding-current) !important;
}

.hs-theme #site-title {
  color: var(--hs-ink) !important;
  font-family: var(--font-cn-title);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.hs-theme #header-menu ul {
  gap: clamp(18px, 2.4vw, 32px);
}

.hs-theme #header-menu a,
.hs-theme #header-menu li,
.hs-theme .hs-menu a,
.hs-theme .hs-nav__link {
  color: rgba(39, 37, 34, 0.72) !important;
  font-family: var(--font-en), var(--font-cn);
  font-size: 14px;
  font-weight: 500;
}

.hs-theme #header-menu a:hover,
.hs-theme .hs-menu a:hover,
.hs-theme .hs-nav__link:hover {
  color: var(--hs-ink) !important;
}

.hs-theme #header-menu .menu-dropdown,
.hs-theme #header-menu [x-show="open"][tabindex="-1"],
.hs-theme #header-menu [x-show="show"] {
  overflow: hidden;
  border: 1px solid rgba(120, 112, 104, 0.14) !important;
  border-radius: var(--hs-card-radius-current) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--hs-ui-shadow-soft) !important;
}

.hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] {
  width: 176px !important;
  min-width: 176px !important;
  padding: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(120, 112, 104, 0.14) !important;
  border-radius: var(--hs-card-radius-current) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  background-image: linear-gradient(135deg, rgba(220, 232, 242, 0.16), rgba(248, 244, 238, 0.88)) !important;
  box-shadow: 0 18px 46px rgba(65, 55, 45, 0.12) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li {
  min-height: 40px !important;
  margin: 2px 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: calc(var(--hs-control-radius-current) - 8px) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(39, 37, 34, 0.72) !important;
  font-family: var(--font-en), var(--font-cn) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li:hover {
  background: rgba(220, 232, 242, 0.42) !important;
  color: var(--hs-ink) !important;
}

.hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li > a {
  display: flex !important;
  align-items: center !important;
  width: calc(100% + 24px) !important;
  min-height: 40px !important;
  margin: -10px -12px !important;
  padding: 10px 12px !important;
  border-radius: calc(var(--hs-control-radius-current) - 8px) !important;
  color: inherit !important;
  font: inherit !important;
}

.hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative > div img.size-5.rounded-full {
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(120, 112, 104, 0.16),
    0 6px 18px rgba(65, 55, 45, 0.08);
}

.hs-theme footer.mt-10.bg-white,
.hs-theme .hs-footer {
  margin-top: clamp(42px, 7vw, 84px) !important;
  padding-block: clamp(28px, 4vw, 42px) !important;
  background: rgba(255, 255, 255, 0.56) !important;
  border-top: 1px solid rgba(120, 112, 104, 0.14) !important;
  box-shadow: none !important;
}

.hs-theme footer.mt-10.bg-white > div:first-child:empty,
.hs-theme footer.mt-10.bg-white > div:first-child:empty + hr {
  display: none !important;
}

.hs-theme footer.mt-10.bg-white hr {
  border-color: rgba(120, 112, 104, 0.12) !important;
}

.hs-theme footer.mt-10.bg-white span,
.hs-theme footer.mt-10.bg-white p,
.hs-theme footer.mt-10.bg-white li,
.hs-theme .hs-footer {
  color: rgba(122, 116, 110, 0.86) !important;
  font-family: var(--font-en), var(--font-cn);
  line-height: 1.75;
}

.hs-theme .hs-page-hero {
  margin-top: clamp(24px, 4vw, 44px) !important;
  padding: clamp(30px, 5vw, 56px) !important;
  border: 1px solid rgba(120, 112, 104, 0.1) !important;
  border-radius: var(--hs-card-radius-large-desktop) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 88% 10%, rgba(233, 227, 240, 0.38), transparent 36%) !important;
  box-shadow: var(--hs-ui-shadow) !important;
}

.hs-theme .hs-page-hero span {
  color: rgba(122, 116, 110, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hs-theme .hs-page-hero h1 {
  margin-top: 16px;
  color: var(--hs-ink);
  font-family: var(--font-cn-title);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.hs-theme .hs-page-hero p {
  margin-top: 18px;
  max-width: 36em;
  color: rgba(122, 116, 110, 0.88);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.85;
}

.hs-theme :is(.rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl),
.hs-theme :is(button, .hs-button, .hs-cosy-read, .hs-footer-social__link),
.hs-theme :is(.hs-cosy-card, .hs-module-card, .hs-aside-card, .hs-topic-strip, .hs-notice, .hs-cover-hero),
.hs-theme :is(#post-list > *, aside > section, aside > div, .halo-comment-widget, comment-widget, search-widget) {
  border-radius: var(--hs-card-radius-current) !important;
}

.hs-theme :is(.hs-cosy-card, .hs-module-card, .hs-aside-card, #post-list > *, aside > section, aside > div) {
  border: 1px solid rgba(120, 112, 104, 0.1) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--hs-ui-shadow-soft) !important;
}

.hs-theme .hs-cosy-card--lead {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr) !important;
  max-width: 860px;
  min-height: 0;
}

.hs-theme .hs-cosy-card--lead .hs-cosy-card__thumb {
  border-radius: var(--hs-card-radius-current) 0 0 var(--hs-card-radius-current) !important;
}

.hs-theme .hs-cosy-card--lead .hs-cosy-card__body {
  padding: clamp(24px, 3vw, 36px) !important;
}

.hs-theme .hs-cosy-card--lead h3 {
  max-width: 13em;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.hs-theme .hs-topic-strip {
  min-height: 0 !important;
  padding: 22px clamp(20px, 3vw, 32px) !important;
}

.hs-theme .hs-topic-strip__inner {
  gap: 10px 18px;
}

.hs-theme .hs-topic-strip a {
  padding: 8px 12px;
  border-radius: var(--hs-card-radius-current);
  color: rgba(39, 37, 34, 0.66);
  font-size: 14px;
}

.hs-theme .hs-topic-strip a:hover {
  background: rgba(220, 232, 242, 0.55);
  color: var(--hs-ink);
}

.hs-theme .hs-archive-surface {
  padding: clamp(30px, 4vw, 52px) !important;
}

.hs-theme .hs-archive-card {
  min-height: 0 !important;
}

.hs-theme .hs-archive-card__title,
.hs-theme .hs-list-item h3,
.hs-theme .hs-cosy-card h3,
.hs-theme .markdown-body h1,
.hs-theme .markdown-body h2,
.hs-theme .markdown-body h3,
.hs-theme article h1,
.hs-theme article h2,
.hs-theme article h3 {
  font-family: var(--font-cn-title);
  font-weight: 500 !important;
  letter-spacing: 0;
}

.hs-theme .markdown-body,
.hs-theme .tailwind-typography,
.hs-theme article .markdown-body {
  color: rgba(39, 37, 34, 0.82);
  font-family: var(--font-base);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.92;
}

.hs-theme .markdown-body :is(p, li, blockquote),
.hs-theme .tailwind-typography :is(p, li, blockquote) {
  color: rgba(39, 37, 34, 0.78);
}

.hs-theme .markdown-body :is(img, video, iframe),
.hs-theme .tailwind-typography :is(img, video, iframe) {
  max-width: 100%;
  border-radius: var(--hs-card-radius-current);
}

.hs-theme .markdown-body :is(pre, table),
.hs-theme .tailwind-typography :is(pre, table) {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--hs-card-radius-current);
}

.hs-theme #comment :is(.halo-comment-widget, comment-widget, .comment-widget, textarea, input, button) {
  border-radius: var(--hs-card-radius-current) !important;
}

.hs-theme #comment button,
.hs-theme input[type="submit"],
.hs-theme .hs-button,
.hs-theme .hs-cosy-read {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: var(--hs-card-radius-current) !important;
  font-family: var(--font-en), var(--font-cn);
  font-weight: 700;
}

.hs-theme a:focus-visible,
.hs-theme button:focus-visible,
.hs-theme input:focus-visible,
.hs-theme textarea:focus-visible,
.hs-theme select:focus-visible {
  outline: 2px solid rgba(130, 164, 190, 0.75);
  outline-offset: 3px;
}

.hs-theme #pagination,
.hs-theme nav[role="navigation"] {
  margin-top: var(--hs-card-gap-current);
}

.hs-theme #post-list {
  gap: var(--hs-card-gap-current) !important;
}

.hs-theme #post-list > * {
  overflow: hidden;
}

.hs-theme .bg-white,
.hs-theme .dark\:bg-slate-800,
.hs-theme .dark\:bg-gray-800 {
  background-color: rgba(255, 255, 255, 0.72) !important;
}

.hs-theme .text-blue-600,
.hs-theme .hover\:text-blue-600:hover {
  color: var(--hs-ink) !important;
}

.hs-theme .border-blue-500,
.hs-theme .focus\:border-blue-500:focus {
  border-color: rgba(130, 164, 190, 0.65) !important;
}

html.dark .hs-theme #header-menu,
html[data-theme="dark"] .hs-theme #header-menu,
[data-theme="dark"] .hs-theme #header-menu {
  background: rgba(24, 23, 21, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .hs-theme :is(.hs-page-hero, .hs-cosy-card, .hs-module-card, .hs-aside-card, #post-list > *, aside > section, aside > div, #comment :is(.halo-comment-widget, comment-widget, .comment-widget)),
html[data-theme="dark"] .hs-theme :is(.hs-page-hero, .hs-cosy-card, .hs-module-card, .hs-aside-card, #post-list > *, aside > section, aside > div, #comment :is(.halo-comment-widget, comment-widget, .comment-widget)),
[data-theme="dark"] .hs-theme :is(.hs-page-hero, .hs-cosy-card, .hs-module-card, .hs-aside-card, #post-list > *, aside > section, aside > div, #comment :is(.halo-comment-widget, comment-widget, .comment-widget)) {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(36, 34, 31, 0.76) !important;
  box-shadow: none !important;
}

html.dark .hs-theme :is(h1, h2, h3, h4, h5, h6, #site-title, .hs-page-hero h1, .hs-archive-card__title),
html[data-theme="dark"] .hs-theme :is(h1, h2, h3, h4, h5, h6, #site-title, .hs-page-hero h1, .hs-archive-card__title),
[data-theme="dark"] .hs-theme :is(h1, h2, h3, h4, h5, h6, #site-title, .hs-page-hero h1, .hs-archive-card__title) {
  color: rgba(248, 244, 238, 0.94) !important;
}

html.dark .hs-theme :is(p, li, span, .markdown-body, .tailwind-typography),
html[data-theme="dark"] .hs-theme :is(p, li, span, .markdown-body, .tailwind-typography),
[data-theme="dark"] .hs-theme :is(p, li, span, .markdown-body, .tailwind-typography) {
  color: rgba(248, 244, 238, 0.72);
}

@media (max-width: 900px) {
  .hs-theme .mx-auto.mt-6.grid.max-w-7xl {
    grid-template-columns: 1fr !important;
  }

  .hs-theme aside {
    position: static !important;
  }
}

@media (max-width: 767px) {
  .hs-theme .max-w-7xl,
  .hs-theme .hs-section,
  .hs-theme .hs-page-hero,
  .hs-theme footer > div:first-child {
    width: calc(100% - 24px) !important;
    padding-inline: 0 !important;
  }

  .hs-theme #header-menu {
    height: 66px !important;
  }

  .hs-theme #header-menu > div:first-child {
    padding-inline: 16px !important;
  }

  .hs-theme #site-title {
    max-width: 52vw;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hs-theme .hs-page-hero {
    padding: 28px !important;
    border-radius: var(--hs-card-radius-current) !important;
  }

  .hs-theme .hs-page-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hs-theme .hs-cosy-card--lead {
    grid-template-columns: 1fr !important;
    max-width: none;
  }

  .hs-theme .hs-cosy-card--lead .hs-cosy-card__thumb {
    border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0 !important;
  }

  .hs-theme .hs-topic-strip {
    padding: 14px !important;
  }

  .hs-theme .hs-topic-strip__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hs-theme .hs-topic-strip__inner::-webkit-scrollbar {
    display: none;
  }

  .hs-theme .hs-topic-strip a {
    flex: 0 0 auto;
  }

  .hs-theme .hs-archive-surface {
    padding: 26px 20px !important;
  }

  .hs-theme .hs-archive-card {
    padding-block: 22px !important;
  }

  .hs-theme .hs-archive-card__title {
    font-size: 22px;
  }

  .hs-theme footer.mt-10.bg-white,
  .hs-theme .hs-footer {
    text-align: center;
  }
}

/* Audit refinement: make page heroes and single-post teasers quieter. */
.hs-theme .hs-page-hero {
  padding-block: clamp(26px, 4vw, 44px) !important;
}

.hs-theme .hs-page-hero h1 {
  margin-top: 0;
  font-size: clamp(40px, 5.2vw, 68px);
}

.hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) {
  width: min(100%, 720px) !important;
}

.hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead,
.hs-theme .hs-cosy-card--lead {
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr) !important;
}

.hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__media,
.hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__thumb,
.hs-theme .hs-cosy-card--lead .hs-cosy-card__media,
.hs-theme .hs-cosy-card--lead .hs-cosy-card__thumb {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
}

.hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

@media (max-width: 767px) {
  .hs-theme .hs-page-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead,
  .hs-theme .hs-cosy-card--lead {
    grid-template-columns: 1fr !important;
  }

  .hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__media,
  .hs-theme .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__thumb,
  .hs-theme .hs-cosy-card--lead .hs-cosy-card__media,
  .hs-theme .hs-cosy-card--lead .hs-cosy-card__thumb {
    aspect-ratio: 16 / 9 !important;
  }
}

/* Homepage uses hs-page instead of hs-theme; mirror the audit card rhythm there. */
.hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) {
  width: min(100%, 720px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead,
.hs-page .hs-cosy-card--lead {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr) !important;
  max-width: 760px;
  min-height: 0 !important;
}

.hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__media,
.hs-page .hs-cosy-card--lead .hs-cosy-card__media {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: var(--hs-card-radius-current) 0 0 var(--hs-card-radius-current) !important;
}

.hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__body,
.hs-page .hs-cosy-card--lead .hs-cosy-card__body {
  padding: clamp(22px, 2.8vw, 34px) !important;
}

.hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead h3,
.hs-page .hs-cosy-card--lead h3 {
  font-size: clamp(24px, 2.5vw, 34px);
}

.hs-page .hs-footer__inner > div:first-child {
  display: none;
}

.hs-page .hs-footer__inner {
  justify-content: center;
  text-align: center;
}

@media (max-width: 767px) {
  .hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead,
  .hs-page .hs-cosy-card--lead {
    grid-template-columns: 1fr !important;
  }

  .hs-page .hs-feature-layout:not(:has(.hs-feature-layout__side article)) .hs-cosy-card--lead .hs-cosy-card__media,
  .hs-page .hs-cosy-card--lead .hs-cosy-card__media {
    aspect-ratio: 16 / 9 !important;
    border-radius: var(--hs-card-radius-current) var(--hs-card-radius-current) 0 0 !important;
  }
}

/* 09. Current fixes and plugin-specific locks. */
/* Comment composition: use one outer panel and give the editor room to breathe. */
.hs-theme #comment {
  margin-top: clamp(34px, 5vw, 58px) !important;
  padding: clamp(24px, 3.6vw, 34px) !important;
  border: 1px solid rgba(120, 112, 104, 0.1) !important;
  border-radius: var(--hs-card-radius-current) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 18px 48px rgba(65, 55, 45, 0.045) !important;
}

.hs-theme #comment > h2 {
  margin: 0 0 18px !important;
  color: var(--hs-ink) !important;
  font-family: var(--font-cn-title) !important;
  font-size: clamp(24px, 2.2vw, 30px) !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
}

.hs-theme #comment > div[id^="comment-content-"] {
  margin-top: 0 !important;
}

.hs-theme #comment > div[id^="comment-content-"] > comment-widget,
.hs-theme #comment > div[id^="comment-content-"] > .comment-widget,
.hs-theme #comment > div[id^="comment-content-"] > .halo-comment-widget {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"]) {
  border-color: rgba(120, 112, 104, 0.14) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

@media (max-width: 767px) {
  .hs-theme #comment {
    padding: 20px !important;
  }

  .hs-theme #comment > h2 {
    margin-bottom: 14px !important;
    font-size: 23px !important;
  }
}

/* Keep the latest article and notes section visually connected. */
.hs-page #journal.hs-cms-grid {
  padding-bottom: clamp(18px, 2.4vw, 30px) !important;
}

.hs-page #journal + .hs-magazine {
  padding-top: clamp(20px, 2.8vw, 34px) !important;
}

/* Dark mode visibility lock: keep nav readable and preserve the light comment panel treatment. */
html.dark .hs-theme #header-menu a,
html.dark .hs-theme #header-menu li,
html.dark .hs-theme #header-menu .text-gray-600,
html.dark .hs-theme #header-menu .dark\:text-slate-50,
html.dark .hs-theme #header-menu .dark\:text-slate-100,
html[data-theme="dark"] .hs-theme #header-menu a,
html[data-theme="dark"] .hs-theme #header-menu li,
html[data-theme="dark"] .hs-theme #header-menu .text-gray-600,
html[data-theme="dark"] .hs-theme #header-menu .dark\:text-slate-50,
html[data-theme="dark"] .hs-theme #header-menu .dark\:text-slate-100,
[data-theme="dark"] .hs-theme #header-menu a,
[data-theme="dark"] .hs-theme #header-menu li,
[data-theme="dark"] .hs-theme #header-menu .text-gray-600,
[data-theme="dark"] .hs-theme #header-menu .dark\:text-slate-50,
[data-theme="dark"] .hs-theme #header-menu .dark\:text-slate-100 {
  color: rgba(248, 244, 238, 0.82) !important;
}

html.dark .hs-theme #header-menu a:hover,
html[data-theme="dark"] .hs-theme #header-menu a:hover,
[data-theme="dark"] .hs-theme #header-menu a:hover {
  color: rgba(248, 244, 238, 0.98) !important;
}

html.dark .hs-theme #comment,
html[data-theme="dark"] .hs-theme #comment,
[data-theme="dark"] .hs-theme #comment {
  color: #272522 !important;
  border-color: rgba(120, 112, 104, 0.12) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16) !important;
}

html.dark .hs-theme #comment > h2,
html.dark .hs-theme #comment :is(comment-widget, .comment-widget, .halo-comment-widget, p, span, label, textarea, input, button, [contenteditable="true"], [class*="editor"], [class*="textarea"]),
html[data-theme="dark"] .hs-theme #comment > h2,
html[data-theme="dark"] .hs-theme #comment :is(comment-widget, .comment-widget, .halo-comment-widget, p, span, label, textarea, input, button, [contenteditable="true"], [class*="editor"], [class*="textarea"]),
[data-theme="dark"] .hs-theme #comment > h2,
[data-theme="dark"] .hs-theme #comment :is(comment-widget, .comment-widget, .halo-comment-widget, p, span, label, textarea, input, button, [contenteditable="true"], [class*="editor"], [class*="textarea"]) {
  color: #272522 !important;
}

html.dark .hs-theme #comment > div[id^="comment-content-"] > comment-widget,
html.dark .hs-theme #comment > div[id^="comment-content-"] > .comment-widget,
html.dark .hs-theme #comment > div[id^="comment-content-"] > .halo-comment-widget,
html[data-theme="dark"] .hs-theme #comment > div[id^="comment-content-"] > comment-widget,
html[data-theme="dark"] .hs-theme #comment > div[id^="comment-content-"] > .comment-widget,
html[data-theme="dark"] .hs-theme #comment > div[id^="comment-content-"] > .halo-comment-widget,
[data-theme="dark"] .hs-theme #comment > div[id^="comment-content-"] > comment-widget,
[data-theme="dark"] .hs-theme #comment > div[id^="comment-content-"] > .comment-widget,
[data-theme="dark"] .hs-theme #comment > div[id^="comment-content-"] > .halo-comment-widget {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.dark .hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"]),
html[data-theme="dark"] .hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"]),
[data-theme="dark"] .hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"]) {
  border-color: rgba(120, 112, 104, 0.16) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

/* Dark mode polish: keep homepage, theme menus and taxonomy pills in one readable system. */
html.dark body.hs-page,
html[data-theme="dark"] body.hs-page,
[data-theme="dark"] body.hs-page {
  color: var(--hs-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(43, 52, 64, 0.72), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(51, 45, 58, 0.68), transparent 32rem),
    linear-gradient(135deg, #161513 0%, #1d1b18 48%, #171614 100%);
}

html.dark .hs-page::before,
html[data-theme="dark"] .hs-page::before,
[data-theme="dark"] .hs-page::before {
  background-image:
    linear-gradient(rgba(248, 244, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 238, 0.026) 1px, transparent 1px);
  opacity: 0.62;
}

html.dark .hs-page .hs-nav,
html[data-theme="dark"] .hs-page .hs-nav,
[data-theme="dark"] .hs-page .hs-nav {
  background: rgba(22, 21, 19, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark .hs-page :is(.hs-brand__cn, .hs-menu a:hover, .hs-nav__link:hover, .hs-hero-title, .hs-section-title, .hs-cosy-card h3, .hs-module-card h3, .hs-aside-card h2, .hs-aside-card h3),
html[data-theme="dark"] .hs-page :is(.hs-brand__cn, .hs-menu a:hover, .hs-nav__link:hover, .hs-hero-title, .hs-section-title, .hs-cosy-card h3, .hs-module-card h3, .hs-aside-card h2, .hs-aside-card h3),
[data-theme="dark"] .hs-page :is(.hs-brand__cn, .hs-menu a:hover, .hs-nav__link:hover, .hs-hero-title, .hs-section-title, .hs-cosy-card h3, .hs-module-card h3, .hs-aside-card h2, .hs-aside-card h3) {
  color: rgba(248, 244, 238, 0.96) !important;
}

html.dark .hs-page :is(.hs-brand__en, .hs-menu a, .hs-nav__link, .hs-hero__desc, .hs-cosy-card p, .hs-module-card p, .hs-aside-card p, .hs-section-note, .hs-footer),
html[data-theme="dark"] .hs-page :is(.hs-brand__en, .hs-menu a, .hs-nav__link, .hs-hero__desc, .hs-cosy-card p, .hs-module-card p, .hs-aside-card p, .hs-section-note, .hs-footer),
[data-theme="dark"] .hs-page :is(.hs-brand__en, .hs-menu a, .hs-nav__link, .hs-hero__desc, .hs-cosy-card p, .hs-module-card p, .hs-aside-card p, .hs-section-note, .hs-footer) {
  color: rgba(225, 216, 205, 0.76) !important;
}

html.dark .hs-page :is(.hs-cosy-hero__panel, .hs-topic-strip, .hs-notice, .hs-cosy-card, .hs-module-card, .hs-aside-card, .hs-archive-cta, .hs-footer),
html[data-theme="dark"] .hs-page :is(.hs-cosy-hero__panel, .hs-topic-strip, .hs-notice, .hs-cosy-card, .hs-module-card, .hs-aside-card, .hs-archive-cta, .hs-footer),
[data-theme="dark"] .hs-page :is(.hs-cosy-hero__panel, .hs-topic-strip, .hs-notice, .hs-cosy-card, .hs-module-card, .hs-aside-card, .hs-archive-cta, .hs-footer) {
  background: rgba(35, 33, 30, 0.76) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26) !important;
}

html.dark .hs-page :is(.hs-cosy-eyebrow, .hs-cosy-card__meta a, .hs-module-card span, .hs-topic-strip a),
html[data-theme="dark"] .hs-page :is(.hs-cosy-eyebrow, .hs-cosy-card__meta a, .hs-module-card span, .hs-topic-strip a),
[data-theme="dark"] .hs-page :is(.hs-cosy-eyebrow, .hs-cosy-card__meta a, .hs-module-card span, .hs-topic-strip a) {
  color: rgba(236, 228, 218, 0.82) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark .hs-page .hs-cosy-card__media,
html.dark .hs-page .hs-cosy-card__thumb,
html[data-theme="dark"] .hs-page .hs-cosy-card__media,
html[data-theme="dark"] .hs-page .hs-cosy-card__thumb,
[data-theme="dark"] .hs-page .hs-cosy-card__media,
[data-theme="dark"] .hs-page .hs-cosy-card__thumb {
  background:
    radial-gradient(circle at 28% 24%, rgba(220, 232, 242, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(43, 52, 64, 0.92), rgba(51, 45, 58, 0.8)) !important;
}

html.dark .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"],
html[data-theme="dark"] .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"],
[data-theme="dark"] .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] {
  color: rgba(248, 244, 238, 0.94) !important;
  background: rgba(30, 28, 25, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

html.dark .hs-theme #header-menu :is(.menu-dropdown, [x-show="open"][tabindex="-1"], [x-show="show"], ul.absolute.bg-white),
html[data-theme="dark"] .hs-theme #header-menu :is(.menu-dropdown, [x-show="open"][tabindex="-1"], [x-show="show"], ul.absolute.bg-white),
[data-theme="dark"] .hs-theme #header-menu :is(.menu-dropdown, [x-show="open"][tabindex="-1"], [x-show="show"], ul.absolute.bg-white) {
  color: rgba(248, 244, 238, 0.94) !important;
  background: rgba(30, 28, 25, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

html.dark .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show],
html[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show],
[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] {
  color: rgba(248, 244, 238, 0.92) !important;
  background-color: rgba(30, 28, 25, 0.96) !important;
  background-image: linear-gradient(135deg, rgba(220, 232, 242, 0.08), rgba(39, 37, 34, 0.94)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

html.dark .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li,
html[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li,
[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li {
  color: rgba(248, 244, 238, 0.82) !important;
}

html.dark .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li:hover,
html[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li:hover,
[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative ul[x-show] > li:hover {
  color: rgba(255, 250, 244, 0.98) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html.dark .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative > div img.size-5.rounded-full,
html[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative > div img.size-5.rounded-full,
[data-theme="dark"] .hs-theme #header-menu ul[x-data="colorSchemeSwitcher"] > li.relative > div img.size-5.rounded-full {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

html.dark .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] :is(a, button, li, span),
html[data-theme="dark"] .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] :is(a, button, li, span),
[data-theme="dark"] .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] :is(a, button, li, span) {
  color: rgba(248, 244, 238, 0.9) !important;
}

html.dark .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] :is(a, button):hover,
html[data-theme="dark"] .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] :is(a, button):hover,
[data-theme="dark"] .hs-theme :is(ul.absolute, div.absolute, .fixed.inset-x-4)[class*="bg-white"] :is(a, button):hover {
  color: rgba(255, 250, 244, 1) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

html.dark .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]),
html[data-theme="dark"] .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]),
[data-theme="dark"] .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]) {
  color: rgba(238, 230, 220, 0.9) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

html.dark .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]) :is(span, small, em),
html[data-theme="dark"] .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]) :is(span, small, em),
[data-theme="dark"] .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]) :is(span, small, em) {
  color: rgba(238, 230, 220, 0.86) !important;
}

html.dark .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]):hover,
html[data-theme="dark"] .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]):hover,
[data-theme="dark"] .hs-theme :is(a[href*="/tags/"], a[href*="/categories/"], .inline-flex[class*="rounded-full"]):hover {
  color: rgba(255, 250, 244, 1) !important;
  background: rgba(220, 232, 242, 0.13) !important;
  border-color: rgba(220, 232, 242, 0.26) !important;
}

/* Tag detail page: editorial list layout instead of stacked default cards. */
.hs-tag-page .hs-tag-hero {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(24px, 4vw, 44px);
}

.hs-tag-page .hs-tag-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--hs-muted);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hs-tag-page .hs-tag-hero__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid var(--hs-border);
}

.hs-tag-page .hs-tag-hero h1 {
  margin: 0;
  color: var(--hs-text);
  font-family: var(--font-cn-title);
  font-size: clamp(56px, 9vw, 118px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.hs-tag-page .hs-tag-hero__row span {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding: 8px 14px;
  color: var(--hs-text-soft);
  font-size: 13px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-card-radius-current);
  background: color-mix(in srgb, var(--hs-surface-strong) 74%, transparent);
}

.hs-tag-page .hs-tag-hero > p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--hs-text-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hs-tag-page .hs-taxonomy-layout {
  align-items: start;
  gap: clamp(24px, 4vw, 42px) !important;
  margin-top: clamp(10px, 2vw, 22px) !important;
}

.hs-tag-page .hs-tag-stream {
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 38px);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-card-radius-current);
  background: var(--hs-surface-strong);
  box-shadow: var(--hs-subpage-shadow);
}

.hs-tag-page .hs-tag-filter-panel {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hs-tag-page .hs-tag-filter-panel > div {
  flex-direction: row !important;
  align-items: center;
  gap: 18px !important;
  padding: 0 0 clamp(18px, 2.2vw, 24px);
  border-bottom: 1px solid var(--hs-border);
}

.hs-tag-page .hs-tag-filter-panel h2 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--hs-text);
  font-family: var(--font-cn-title);
  font-size: 20px !important;
  font-weight: 500;
}

.hs-tag-page .hs-tag-filter-panel h2 span {
  color: var(--hs-muted) !important;
}

.hs-tag-page .hs-tag-filter-panel h2 + div {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px !important;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.hs-tag-page .hs-tag-filter-panel h2 + div::-webkit-scrollbar {
  display: none;
}

.hs-tag-page .hs-tag-filter-panel h2 + div a {
  flex: 0 0 auto;
  border-radius: var(--hs-control-radius-current) !important;
}

.hs-tag-page .hs-tag-post-list {
  gap: 0 !important;
  margin-top: 0 !important;
}

.hs-tag-page .hs-taxonomy-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 22vw, 240px);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 3.4vw, 36px) 0;
  border-bottom: 1px solid var(--hs-border);
}

.hs-tag-page .hs-taxonomy-post:first-child {
  padding-top: clamp(22px, 3vw, 34px);
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) {
  grid-template-columns: minmax(0, 1fr);
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  grid-template-columns: clamp(88px, 9vw, 116px) minmax(0, 1fr);
  column-gap: clamp(18px, 3vw, 32px);
  row-gap: 10px;
  align-content: start;
  padding-inline: clamp(4px, 1vw, 10px);
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__main {
  display: contents;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
  grid-column: 2;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
  justify-self: start;
  margin-top: 4px;
  padding-top: 2px;
  color: var(--hs-muted);
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 12px;
  content: "";
  background: var(--hs-border);
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2 {
  font-size: clamp(25px, 2.4vw, 34px);
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p {
  max-width: 680px;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot span {
  display: none;
}

.hs-tag-page .hs-taxonomy-post__media {
  order: 2;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--hs-card-radius-current);
  background:
    radial-gradient(circle at 30% 24%, color-mix(in srgb, var(--hs-blue) 70%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--hs-blue) 76%, transparent), color-mix(in srgb, var(--hs-lilac) 70%, transparent));
}

.hs-tag-page .hs-taxonomy-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.hs-tag-page .hs-taxonomy-post:hover .hs-taxonomy-post__media img {
  transform: scale(1.035);
}

.hs-tag-page .hs-taxonomy-post__body {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: center;
}

.hs-tag-page .hs-taxonomy-post__meta,
.hs-tag-page .hs-taxonomy-post__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hs-tag-page .hs-taxonomy-post__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--hs-text-soft) !important;
  font-size: 13px;
  line-height: 1;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-control-radius-current);
  background: color-mix(in srgb, var(--hs-blue) 36%, transparent);
}

.hs-tag-page .hs-taxonomy-post__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.hs-tag-page .hs-taxonomy-post h2 {
  margin: 0;
  color: var(--hs-text);
  font-family: var(--font-cn-title);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
}

.hs-tag-page .hs-taxonomy-post time {
  margin-top: 10px;
  color: var(--hs-muted);
  font-family: var(--font-en);
  font-size: 13px;
  white-space: nowrap;
}

.hs-tag-page .hs-taxonomy-post p {
  max-width: 720px;
  margin: 0;
  color: var(--hs-text-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hs-tag-page .hs-taxonomy-post__foot {
  color: var(--hs-muted);
  font-size: 13px;
}

.hs-tag-page .hs-taxonomy-post__foot a {
  color: var(--hs-text-soft);
  font-weight: 600;
}

html.dark .hs-tag-page .hs-tag-hero,
html[data-theme="dark"] .hs-tag-page .hs-tag-hero,
[data-theme="dark"] .hs-tag-page .hs-tag-hero {
  color: rgba(248, 244, 238, 0.94);
}

html.dark .hs-tag-page .hs-tag-stream,
html[data-theme="dark"] .hs-tag-page .hs-tag-stream,
[data-theme="dark"] .hs-tag-page .hs-tag-stream {
  background: rgba(35, 33, 30, 0.76);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

html.dark .hs-tag-page .hs-taxonomy-post__meta a,
html[data-theme="dark"] .hs-tag-page .hs-taxonomy-post__meta a,
[data-theme="dark"] .hs-tag-page .hs-taxonomy-post__meta a {
  color: rgba(238, 230, 220, 0.9) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark .hs-tag-page .hs-taxonomy-post__media,
html[data-theme="dark"] .hs-tag-page .hs-taxonomy-post__media,
[data-theme="dark"] .hs-tag-page .hs-taxonomy-post__media {
  background:
    radial-gradient(circle at 28% 22%, rgba(220, 232, 242, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(43, 52, 64, 0.82), rgba(51, 45, 58, 0.72));
}

@media (max-width: 767px) {
  .hs-tag-page .hs-tag-hero {
    padding-top: 34px;
  }

  .hs-tag-page .hs-tag-hero__row {
    display: grid;
    align-items: start;
  }

  .hs-tag-page .hs-tag-hero h1 {
    font-size: clamp(46px, 18vw, 72px);
  }

  .hs-tag-page .hs-tag-hero__row span {
    width: max-content;
    margin-bottom: 0;
  }

  .hs-tag-page .hs-tag-filter-panel > div {
    display: grid !important;
    align-items: start;
  }

  .hs-tag-page .hs-tag-stream {
    padding: 20px;
  }

  .hs-tag-page .hs-taxonomy-post,
  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) {
    grid-template-columns: 1fr;
  }

  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot,
  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
    grid-column: 1;
  }

  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
    grid-row: auto;
    order: -1;
    margin-top: 0;
    font-size: 13px;
  }

  .hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
    display: none;
  }

  .hs-tag-page .hs-taxonomy-post__media {
    order: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hs-tag-page .hs-taxonomy-post__main {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hs-tag-page .hs-taxonomy-post time {
    margin-top: 0;
  }
}

/* Tag page final direction: open editorial stream, no nested card stack. */
.hs-tag-page .hs-taxonomy-layout {
  margin-top: clamp(18px, 3vw, 36px) !important;
}

.hs-tag-page .hs-tag-stream {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hs-tag-page .hs-tag-filter-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hs-tag-page .hs-tag-filter-panel > div {
  min-height: auto !important;
  padding: 0 0 clamp(18px, 2.4vw, 26px) !important;
  border-bottom: 1px solid var(--hs-border) !important;
}

.hs-tag-page .hs-tag-post-list {
  margin-top: 0 !important;
}

.hs-tag-page .hs-taxonomy-post {
  padding: clamp(26px, 3.4vw, 40px) 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hs-tag-page .hs-taxonomy-post:first-child {
  padding-top: clamp(24px, 3vw, 34px) !important;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  padding-inline: 0 !important;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2 {
  max-width: 680px;
}

.hs-tag-page .hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p {
  max-width: 720px;
}

html.dark .hs-tag-page .hs-tag-stream,
html[data-theme="dark"] .hs-tag-page .hs-tag-stream,
[data-theme="dark"] .hs-tag-page .hs-tag-stream {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Tag page refinement: keep it aligned with the archive/home editorial rhythm. */
body.hs-tag-page .hs-taxonomy-layout {
  grid-template-columns: minmax(0, 1fr) 18rem !important;
  gap: clamp(28px, 4.2vw, 52px) !important;
  margin-top: clamp(18px, 3vw, 34px) !important;
}

body.hs-tag-page .hs-tag-stream,
body.hs-tag-page .hs-tag-stream.z-0.min-w-0 {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tag-page .hs-tag-filter-panel,
body.hs-tag-page .hs-tag-filter-panel.rounded-xl,
body.hs-tag-page .hs-tag-filter-panel.bg-white,
body.hs-tag-page .hs-tag-filter-panel.p-4 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tag-page .hs-tag-filter-panel > div {
  min-height: 0 !important;
  padding: 0 0 clamp(18px, 2.2vw, 26px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tag-page .hs-tag-filter-panel h2 {
  font-size: 18px !important;
  line-height: 1.25;
}

body.hs-tag-page .hs-tag-filter-panel h2 + div a,
body.hs-tag-page .hs-taxonomy-post__meta a {
  border-radius: var(--hs-control-radius-current) !important;
  background: color-mix(in srgb, var(--hs-surface-strong) 78%, transparent) !important;
}

body.hs-tag-page .hs-tag-post-list {
  gap: 0 !important;
  margin-top: 0 !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post {
  display: grid !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(28px, 3.6vw, 42px) 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:first-child {
  padding-top: clamp(24px, 3vw, 36px) !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:last-child {
  border-bottom-color: transparent !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  display: grid !important;
  grid-template-columns: clamp(82px, 8vw, 110px) minmax(0, 1fr) !important;
  column-gap: clamp(20px, 3.2vw, 38px) !important;
  row-gap: 9px !important;
  padding: 0 !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__main {
  display: contents !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
  grid-column: 1 !important;
  grid-row: 1 / span 4 !important;
  align-self: start !important;
  margin: 3px 0 0 !important;
  color: var(--hs-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
  display: block !important;
  width: 36px !important;
  height: 1px !important;
  margin-top: 13px !important;
  content: "" !important;
  background: var(--hs-border) !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
  grid-column: 2 !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post h2 {
  max-width: 680px !important;
  font-size: clamp(28px, 2.8vw, 42px) !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post p {
  max-width: 720px !important;
  color: var(--hs-text-soft) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post .hs-taxonomy-post__foot {
  margin-top: 4px !important;
}

body.hs-tag-page #post-list > article.hs-taxonomy-post .hs-taxonomy-post__foot span {
  display: none !important;
}

html.dark body.hs-tag-page .hs-tag-stream,
html[data-theme="dark"] body.hs-tag-page .hs-tag-stream,
[data-theme="dark"] body.hs-tag-page .hs-tag-stream,
html.dark body.hs-tag-page .hs-tag-filter-panel,
html[data-theme="dark"] body.hs-tag-page .hs-tag-filter-panel,
[data-theme="dark"] body.hs-tag-page .hs-tag-filter-panel,
html.dark body.hs-tag-page #post-list > article.hs-taxonomy-post,
html[data-theme="dark"] body.hs-tag-page #post-list > article.hs-taxonomy-post,
[data-theme="dark"] body.hs-tag-page #post-list > article.hs-taxonomy-post {
  background: transparent !important;
  box-shadow: none !important;
}

html.dark body.hs-tag-page .hs-tag-filter-panel h2 + div a,
html[data-theme="dark"] body.hs-tag-page .hs-tag-filter-panel h2 + div a,
[data-theme="dark"] body.hs-tag-page .hs-tag-filter-panel h2 + div a,
html.dark body.hs-tag-page .hs-taxonomy-post__meta a,
html[data-theme="dark"] body.hs-tag-page .hs-taxonomy-post__meta a,
[data-theme="dark"] body.hs-tag-page .hs-taxonomy-post__meta a {
  color: rgba(248, 244, 238, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

@media (max-width: 767px) {
  body.hs-tag-page .hs-taxonomy-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time,
  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
    grid-column: 1 !important;
  }

  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
    grid-row: auto !important;
    margin: 0 !important;
  }

  body.hs-tag-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
    display: none !important;
  }
}

/* Tags overview and tag detail: compact taxonomy pages. */
body.hs-tag-page .hs-tag-hero--compact,
body.hs-tags-page .hs-tags-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(28px, 4vw, 46px) !important;
  padding-bottom: clamp(18px, 2.8vw, 28px) !important;
  border-bottom: 1px solid var(--hs-border);
}

body.hs-tag-page .hs-tag-hero--compact h1,
body.hs-tags-page .hs-tags-hero h1 {
  margin: 0;
  color: var(--hs-text);
  font-family: var(--font-cn-title);
  font-size: clamp(34px, 4.8vw, 58px) !important;
  font-weight: 500;
  line-height: 1.05;
}

body.hs-tag-page .hs-tag-hero--compact span {
  flex: 0 0 auto;
  margin: 0 0 4px !important;
  padding: 7px 12px !important;
  color: var(--hs-text-soft);
  font-size: 13px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-control-radius-current) !important;
  background: color-mix(in srgb, var(--hs-surface-strong) 76%, transparent);
}

body.hs-tags-page .hs-tags-hero p {
  max-width: 360px;
  margin: 0 0 4px;
  color: var(--hs-text-soft);
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

body.hs-tags-page .hs-tags-layout {
  grid-template-columns: minmax(0, 1fr) 18rem !important;
  gap: clamp(28px, 4.2vw, 52px) !important;
  margin-top: clamp(18px, 3vw, 34px) !important;
}

body.hs-tags-page .hs-tags-stream {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tags-page .hs-tags-filter-panel {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tags-page .hs-tags-filter-panel > div {
  min-height: 0 !important;
  padding: 0 0 clamp(18px, 2.2vw, 26px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tags-page .hs-tags-filter-panel h2 {
  font-family: var(--font-cn-title);
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.25;
}

body.hs-tags-page .hs-tags-filter-panel h2 + div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px !important;
}

body.hs-tags-page .hs-tags-filter-panel h2 + div a {
  border-radius: var(--hs-control-radius-current) !important;
  background: color-mix(in srgb, var(--hs-surface-strong) 78%, transparent) !important;
}

body.hs-tags-page .hs-tags-post-list {
  gap: 0 !important;
  margin-top: 0 !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post {
  display: grid !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(28px, 3.6vw, 42px) 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:first-child {
  padding-top: clamp(24px, 3vw, 36px) !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:last-child {
  border-bottom-color: transparent !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  display: grid !important;
  grid-template-columns: clamp(82px, 8vw, 110px) minmax(0, 1fr) !important;
  column-gap: clamp(20px, 3.2vw, 38px) !important;
  row-gap: 9px !important;
  padding: 0 !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__main {
  display: contents !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
  grid-column: 1 !important;
  grid-row: 1 / span 4 !important;
  align-self: start !important;
  margin: 3px 0 0 !important;
  color: var(--hs-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
  display: block !important;
  width: 36px !important;
  height: 1px !important;
  margin-top: 13px !important;
  content: "" !important;
  background: var(--hs-border) !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
  grid-column: 2 !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post h2 {
  max-width: 680px !important;
  font-size: clamp(28px, 2.8vw, 42px) !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post p {
  max-width: 720px !important;
  color: var(--hs-text-soft) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post .hs-taxonomy-post__foot {
  margin-top: 4px !important;
}

body.hs-tags-page #post-list > article.hs-taxonomy-post .hs-taxonomy-post__foot span {
  display: none !important;
}

html.dark body.hs-tags-page .hs-tags-stream,
html[data-theme="dark"] body.hs-tags-page .hs-tags-stream,
[data-theme="dark"] body.hs-tags-page .hs-tags-stream,
html.dark body.hs-tags-page .hs-tags-filter-panel,
html[data-theme="dark"] body.hs-tags-page .hs-tags-filter-panel,
[data-theme="dark"] body.hs-tags-page .hs-tags-filter-panel,
html.dark body.hs-tags-page #post-list > article.hs-taxonomy-post,
html[data-theme="dark"] body.hs-tags-page #post-list > article.hs-taxonomy-post,
[data-theme="dark"] body.hs-tags-page #post-list > article.hs-taxonomy-post {
  background: transparent !important;
  box-shadow: none !important;
}

html.dark body.hs-tags-page .hs-tags-filter-panel h2 + div a,
html[data-theme="dark"] body.hs-tags-page .hs-tags-filter-panel h2 + div a,
[data-theme="dark"] body.hs-tags-page .hs-tags-filter-panel h2 + div a {
  color: rgba(248, 244, 238, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

@media (max-width: 767px) {
  body.hs-tag-page .hs-tag-hero--compact,
  body.hs-tags-page .hs-tags-hero {
    display: grid;
    align-items: start;
    padding-top: 26px !important;
  }

  body.hs-tags-page .hs-tags-hero p {
    max-width: none;
    text-align: left;
  }

  body.hs-tags-page .hs-tags-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time,
  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
    grid-column: 1 !important;
  }

  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
    grid-row: auto !important;
    margin: 0 !important;
  }

  body.hs-tags-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
    display: none !important;
  }
}

/* Archive and category pages follow the same open taxonomy stream. */
body.hs-archives-page .hs-archives-layout,
body.hs-category-page .hs-category-layout {
  grid-template-columns: minmax(0, 1fr) 18rem !important;
  gap: clamp(28px, 4.2vw, 52px) !important;
  margin-top: clamp(28px, 4vw, 48px) !important;
}

body.hs-archives-page .hs-archives-stream,
body.hs-category-page .hs-category-stream {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-archives-page .hs-archive-surface,
body.hs-archives-page .hs-archive-surface.rounded-xl.bg-white.p-4 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-archives-page .hs-archive-title,
body.hs-category-page .hs-category-hero {
  padding: 0 0 clamp(18px, 2.8vw, 28px) !important;
  border-bottom: 1px solid var(--hs-border);
}

body.hs-archives-page .hs-archive-title {
  margin: 0 0 clamp(26px, 3.5vw, 42px) !important;
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(34px, 4.8vw, 58px) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
}

body.hs-category-page .hs-category-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(28px, 4vw, 46px) !important;
}

body.hs-category-page .hs-category-hero h1 {
  margin: 0;
  color: var(--hs-text);
  font-family: var(--font-cn-title);
  font-size: clamp(34px, 4.8vw, 58px) !important;
  font-weight: 500;
  line-height: 1.05;
}

body.hs-category-page .hs-category-hero span {
  flex: 0 0 auto;
  margin-bottom: 4px;
  padding: 7px 12px;
  color: var(--hs-text-soft);
  font-size: 13px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-control-radius-current);
  background: color-mix(in srgb, var(--hs-surface-strong) 76%, transparent);
}

body.hs-category-page .hs-category-filter-panel,
body.hs-category-page .hs-category-filter-panel > * {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-category-page .hs-category-filter-panel {
  padding-bottom: clamp(18px, 2.2vw, 26px) !important;
  border-bottom: 1px solid var(--hs-border) !important;
}

body.hs-category-page .hs-category-post-list {
  gap: 0 !important;
  margin-top: 0 !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post {
  display: grid !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(28px, 3.6vw, 42px) 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post:last-child {
  border-bottom-color: transparent !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  display: grid !important;
  grid-template-columns: clamp(82px, 8vw, 110px) minmax(0, 1fr) !important;
  column-gap: clamp(20px, 3.2vw, 38px) !important;
  row-gap: 9px !important;
  padding: 0 !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__main {
  display: contents !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
  grid-column: 1 !important;
  grid-row: 1 / span 4 !important;
  align-self: start !important;
  margin: 3px 0 0 !important;
  color: var(--hs-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
  display: block !important;
  width: 36px !important;
  height: 1px !important;
  margin-top: 13px !important;
  content: "" !important;
  background: var(--hs-border) !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
  grid-column: 2 !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post h2 {
  max-width: 680px !important;
  font-size: clamp(28px, 2.8vw, 42px) !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post p {
  max-width: 720px !important;
  color: var(--hs-text-soft) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

body.hs-category-page #post-list > article.hs-taxonomy-post .hs-taxonomy-post__foot span {
  display: none !important;
}

body.hs-archives-page .hs-archive-list {
  gap: clamp(28px, 4vw, 46px) !important;
}

body.hs-archives-page .hs-archive-month {
  gap: clamp(20px, 3.2vw, 38px) !important;
  padding: 0 !important;
  border: 0 !important;
}

body.hs-archives-page .hs-archive-month__label h2 {
  margin: 0 !important;
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(22px, 2.5vw, 32px) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

body.hs-archives-page .hs-archive-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

body.hs-archives-page .hs-archive-card {
  display: grid !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 36px) 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.hs-archives-page .hs-archive-card:hover {
  transform: none !important;
  border-color: var(--hs-border) !important;
  box-shadow: none !important;
}

body.hs-archives-page .hs-archive-card__body {
  gap: 10px;
  padding: 0 !important;
}

body.hs-archives-page .hs-archive-card__title {
  margin: 0 !important;
}

body.hs-archives-page .hs-archive-card__title a {
  display: inline !important;
  white-space: normal !important;
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(28px, 2.8vw, 42px) !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  text-decoration: none !important;
}

body.hs-archives-page .hs-archive-card__date {
  order: -1;
  color: var(--hs-muted) !important;
  font-size: 14px !important;
}

body.hs-archives-page .hs-archive-card__excerpt {
  max-width: 720px;
  color: var(--hs-text-soft) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

html.dark body.hs-archives-page .hs-archives-stream,
html[data-theme="dark"] body.hs-archives-page .hs-archives-stream,
[data-theme="dark"] body.hs-archives-page .hs-archives-stream,
html.dark body.hs-category-page .hs-category-stream,
html[data-theme="dark"] body.hs-category-page .hs-category-stream,
[data-theme="dark"] body.hs-category-page .hs-category-stream,
html.dark body.hs-archives-page .hs-archive-surface,
html[data-theme="dark"] body.hs-archives-page .hs-archive-surface,
[data-theme="dark"] body.hs-archives-page .hs-archive-surface,
html.dark body.hs-category-page #post-list > article.hs-taxonomy-post,
html[data-theme="dark"] body.hs-category-page #post-list > article.hs-taxonomy-post,
[data-theme="dark"] body.hs-category-page #post-list > article.hs-taxonomy-post {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  body.hs-archives-page .hs-archives-layout,
  body.hs-category-page .hs-category-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body.hs-category-page .hs-category-hero {
    display: grid;
    align-items: start;
    padding-top: 26px !important;
  }

  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
    grid-template-columns: 1fr !important;
  }

  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time,
  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
    grid-column: 1 !important;
  }

  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
    grid-row: auto !important;
  }

  body.hs-category-page #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
    display: none !important;
  }
}

/* Final archive override: remove the remaining large white surface. */
html body.hs-archives-page .hs-archives-stream > .hs-archive-surface,
html body.hs-archives-page .hs-archives-stream > .hs-archive-surface.rounded-xl,
html body.hs-archives-page .hs-archives-stream > .hs-archive-surface.bg-white,
html body.hs-archives-page .hs-archives-stream > .hs-archive-surface.dark\:bg-slate-800 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Post detail page: keep long reading pages in the same open editorial system. */
body.hs-post-page .hs-post-layout {
  grid-template-columns: minmax(0, 1fr) 18rem !important;
  gap: clamp(28px, 4.2vw, 52px) !important;
  margin-top: clamp(30px, 4vw, 52px) !important;
}

body.hs-post-page .hs-post-stream,
body.hs-post-page .hs-post-surface {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-post-page .hs-post-surface > .flex:first-child {
  align-items: flex-start !important;
  padding: 0 0 clamp(18px, 2.8vw, 28px) !important;
  border-bottom: 1px solid var(--hs-border);
}

body.hs-post-page .hs-post-title {
  max-width: 820px !important;
  margin: clamp(30px, 4vw, 52px) 0 clamp(18px, 2.5vw, 28px) !important;
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(42px, 6vw, 74px) !important;
  font-weight: 500 !important;
  line-height: 1.06 !important;
}

body.hs-post-page .hs-post-surface > .my-3 {
  margin: 0 0 clamp(26px, 3.4vw, 42px) !important;
}

body.hs-post-page article#content {
  max-width: 820px !important;
  padding: 0 !important;
  color: var(--hs-text-soft);
}

body.hs-post-page article#content :is(h1, h2, h3, h4) {
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-weight: 500 !important;
}

body.hs-post-page article#content p {
  color: var(--hs-text-soft) !important;
  font-size: 16px;
  line-height: 2;
}

body.hs-post-page .hs-post-surface > .mt-10 {
  max-width: 820px;
  margin-top: clamp(34px, 5vw, 58px) !important;
  padding-top: clamp(18px, 2.6vw, 28px);
  border-top: 1px solid var(--hs-border);
}

body.hs-post-page .hs-post-surface > hr {
  max-width: 820px;
  margin: clamp(34px, 5vw, 58px) 0 !important;
  border-color: var(--hs-border) !important;
}

body.hs-post-page #comment {
  max-width: 820px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-post-page .toc-container {
  background: color-mix(in srgb, var(--hs-surface-strong) 82%, transparent) !important;
  border: 1px solid var(--hs-border) !important;
  border-radius: var(--hs-radius-lg) !important;
  box-shadow: var(--hs-subpage-shadow) !important;
}

html.dark body.hs-post-page .hs-post-stream,
html[data-theme="dark"] body.hs-post-page .hs-post-stream,
[data-theme="dark"] body.hs-post-page .hs-post-stream,
html.dark body.hs-post-page .hs-post-surface,
html[data-theme="dark"] body.hs-post-page .hs-post-surface,
[data-theme="dark"] body.hs-post-page .hs-post-surface,
html.dark body.hs-post-page #comment,
html[data-theme="dark"] body.hs-post-page #comment,
[data-theme="dark"] body.hs-post-page #comment {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  body.hs-post-page .hs-post-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body.hs-post-page .hs-post-title {
    font-size: clamp(36px, 12vw, 52px) !important;
  }

  body.hs-post-page .hs-post-surface > .flex:first-child {
    display: grid !important;
  }
}

/* Safe page-level UI/UX correction: responsive subpages without changing Halo data logic. */
body.hs-theme:not(.hs-page) {
  display: flex !important;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--hs-text);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--hs-blue) 54%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--hs-lilac) 48%, transparent), transparent 30rem),
    linear-gradient(135deg, var(--hs-bg) 0%, var(--hs-bg-soft) 52%, var(--hs-bg) 100%) !important;
  font-family: var(--font-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hs-theme:not(.hs-page) > #header-menu,
body.hs-theme:not(.hs-page) > footer {
  flex: 0 0 auto;
}

body.hs-theme:not(.hs-page) > :is(main, section):not(#header-menu) {
  flex: 0 0 auto;
}

body.hs-theme:not(.hs-page) > footer {
  margin-top: auto !important;
}

body.hs-theme:not(.hs-page) #header-menu {
  height: 72px !important;
  color: var(--hs-text);
  background: color-mix(in srgb, var(--hs-bg) 82%, transparent) !important;
  border-bottom: 1px solid var(--hs-border);
  box-shadow: 0 8px 28px rgba(65, 55, 45, 0.035) !important;
  backdrop-filter: blur(18px);
}

body.hs-theme:not(.hs-page) footer {
  margin-top: clamp(56px, 8vw, 96px) !important;
  background: color-mix(in srgb, var(--hs-bg-soft) 82%, transparent) !important;
  border-top: 1px solid var(--hs-border);
  box-shadow: none !important;
}

body.hs-theme :is(.hs-categories-layout, .hs-single-layout, .hs-error-layout) {
  grid-template-columns: minmax(0, 1fr) 18rem !important;
  gap: clamp(28px, 4.2vw, 52px) !important;
  margin-top: clamp(28px, 4vw, 52px) !important;
}

body.hs-theme :is(.hs-categories-stream, .hs-single-stream, .hs-error-stream, .hs-single-surface, .hs-error-panel) {
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-categories-page .hs-categories-filter-panel,
body.hs-categories-page .hs-categories-filter-panel > * {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-categories-page .hs-categories-filter-panel {
  padding-bottom: clamp(18px, 2.4vw, 28px) !important;
  border-bottom: 1px solid var(--hs-border) !important;
}

body.hs-categories-page #post-list > * {
  max-width: none !important;
}

body.hs-categories-page #post-list > .group,
body.hs-categories-page #post-list > div {
  background: color-mix(in srgb, var(--hs-surface-strong) 72%, transparent) !important;
  border-color: var(--hs-border) !important;
  box-shadow: var(--hs-subpage-shadow) !important;
}

body.hs-single-page .hs-single-surface > .flex:first-child {
  align-items: flex-start !important;
  padding: 0 0 clamp(18px, 2.8vw, 28px) !important;
  border-bottom: 1px solid var(--hs-border);
}

body.hs-single-page .hs-single-title {
  max-width: 820px !important;
  margin: clamp(30px, 4vw, 52px) 0 clamp(18px, 2.5vw, 28px) !important;
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(42px, 6vw, 74px) !important;
  font-weight: 500 !important;
  line-height: 1.06 !important;
}

body.hs-single-page .hs-single-content,
body.hs-single-page #comment {
  max-width: 820px !important;
}

body.hs-single-page #comment {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) {
  overflow-wrap: anywhere;
}

body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) :is(img, video, iframe, canvas, svg) {
  max-width: 100%;
  height: auto;
}

body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) :is(pre, code) {
  max-width: 100%;
}

body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) pre {
  overflow-x: auto;
  border-radius: var(--hs-radius-md);
}

body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) blockquote {
  color: var(--hs-text-soft);
  background: color-mix(in srgb, var(--hs-lilac) 28%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--hs-blue-strong) 54%, var(--hs-border));
  border-radius: 0 var(--hs-radius-md) var(--hs-radius-md) 0;
}

body.hs-error-page .hs-error-panel {
  min-height: min(52vh, 480px);
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--hs-border) !important;
}

html body.hs-error-page .hs-error-layout .hs-error-stream > .hs-error-panel.flex.items-center {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-error-page .hs-error-panel h2 {
  color: var(--hs-text) !important;
  font-family: var(--font-cn-title);
  font-size: clamp(72px, 13vw, 150px) !important;
  font-weight: 500 !important;
  line-height: 0.95;
}

body.hs-error-page .hs-error-panel p {
  color: var(--hs-text-soft) !important;
}

body.hs-theme [id="pagination"] {
  min-width: 76px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-control-radius-current);
  background: color-mix(in srgb, var(--hs-surface-strong) 76%, transparent) !important;
}

body.hs-theme :is(search-widget, .search-widget, .halo-search-widget, [class*="search-widget"]) {
  max-width: min(100vw - 24px, 760px) !important;
  color: var(--hs-text) !important;
  border-color: var(--hs-border) !important;
  border-radius: var(--hs-radius-lg) !important;
  background: var(--hs-surface-strong) !important;
  box-shadow: var(--hs-shadow) !important;
}

body.hs-theme :is(search-widget, .search-widget, .halo-search-widget, [class*="search-widget"]) input {
  max-width: 100%;
  color: var(--hs-text) !important;
  border-color: var(--hs-border) !important;
  border-radius: var(--hs-control-radius-current) !important;
  background: color-mix(in srgb, var(--hs-bg-soft) 78%, transparent) !important;
}

html.dark body.hs-theme:not(.hs-page),
html[data-theme="dark"] body.hs-theme:not(.hs-page),
[data-theme="dark"] body.hs-theme:not(.hs-page) {
  background:
    radial-gradient(circle at 12% 8%, rgba(43, 52, 64, 0.46), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(51, 45, 58, 0.42), transparent 30rem),
    linear-gradient(135deg, var(--hs-bg) 0%, var(--hs-bg-soft) 52%, var(--hs-bg) 100%) !important;
}

html.dark body.hs-theme :is(.hs-single-surface, .hs-error-panel, .hs-categories-stream),
html[data-theme="dark"] body.hs-theme :is(.hs-single-surface, .hs-error-panel, .hs-categories-stream),
[data-theme="dark"] body.hs-theme :is(.hs-single-surface, .hs-error-panel, .hs-categories-stream) {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1023px) {
  body.hs-theme :is(.hs-archives-layout, .hs-category-layout, .hs-tag-layout, .hs-tags-layout, .hs-categories-layout, .hs-post-layout, .hs-single-layout, .hs-error-layout) {
    grid-template-columns: 1fr !important;
    width: min(calc(100% - 32px), 760px) !important;
    gap: 30px !important;
  }

  body.hs-theme section.mx-auto.mt-6 > aside,
  body.hs-theme :is(.hs-archives-layout, .hs-category-layout, .hs-tag-layout, .hs-tags-layout, .hs-categories-layout, .hs-post-layout, .hs-single-layout, .hs-error-layout) > aside {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
  }
}

@media (max-width: 767px) {
  body.hs-theme:not(.hs-page) #header-menu {
    height: 64px !important;
  }

  body.hs-theme .max-w-7xl,
  body.hs-theme .max-w-6xl,
  body.hs-theme .max-w-5xl,
  body.hs-theme .hs-section,
  body.hs-theme :is(.hs-archives-layout, .hs-category-layout, .hs-tag-layout, .hs-tags-layout, .hs-categories-layout, .hs-post-layout, .hs-single-layout, .hs-error-layout) {
    width: min(calc(100% - 24px), 100%) !important;
  }

  body.hs-theme :is(.hs-category-hero, .hs-tag-hero, .hs-tags-hero) {
    display: grid !important;
    align-items: start !important;
    gap: 12px !important;
  }

  body.hs-theme :is(.hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1, .hs-single-title, .hs-post-title) {
    font-size: clamp(34px, 12vw, 52px) !important;
    line-height: 1.08 !important;
  }

  body.hs-theme :is(.hs-archive-month, .hs-archive-month.grid.grid-cols-12) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.hs-theme .hs-archive-month__label h2 {
    position: static !important;
    top: auto !important;
  }

  body.hs-theme :is(.hs-archive-card, article.hs-taxonomy-post) {
    padding-block: 24px !important;
  }

  body.hs-theme section.mx-auto.mt-6 > aside,
  body.hs-theme :is(.hs-archives-layout, .hs-category-layout, .hs-tag-layout, .hs-tags-layout, .hs-categories-layout, .hs-post-layout, .hs-single-layout, .hs-error-layout) > aside {
    grid-template-columns: 1fr;
  }

  body.hs-theme .toc-container {
    position: static !important;
  }

  body.hs-theme footer :is(.sm\:flex, .md\:flex) {
    display: grid !important;
    justify-items: center;
    gap: 16px;
    text-align: center;
  }

  body.hs-theme [id="pagination"] {
    order: -1;
  }

  body.hs-theme [th\:fragment="pagination"] > div,
  body.hs-theme .mt-6.flex.items-center.justify-between:has(#pagination) {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }

  body.hs-theme .mt-6.flex.items-center.justify-between:has(#pagination) a {
    width: 100%;
  }

  body.hs-single-page .hs-single-surface > .flex:first-child,
  body.hs-post-page .hs-post-surface > .flex:first-child {
    display: grid !important;
    gap: 14px !important;
  }
}

@media (max-width: 420px) {
  body.hs-theme :is(.hs-archive-card__title a, .hs-taxonomy-post h2, #post-list h1, #post-list h2) {
    font-size: clamp(25px, 10vw, 36px) !important;
  }

  body.hs-theme :is(article#content, .hs-single-content, .markdown-body, .tailwind-typography) p {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  body.hs-error-page .hs-error-panel h2 {
    font-size: clamp(64px, 24vw, 96px) !important;
  }
}

/* 9. Typography consistency layer */
:root {
  --font-code: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --hs-type-body-size: clamp(15px, 0.95vw, 16px);
  --hs-type-body-leading: 1.9;
  --hs-type-small-size: 12px;
  --hs-type-meta-size: 13px;
  --hs-type-ui-size: 14px;
  --hs-type-nav-size: 14px;
  --hs-type-hero-size: clamp(58px, 9.5vw, 118px);
  --hs-type-page-title-size: clamp(40px, 5.2vw, 68px);
  --hs-type-article-title-size: clamp(40px, 5.6vw, 72px);
  --hs-type-section-title-size: clamp(36px, 4.8vw, 62px);
  --hs-type-card-title-size: clamp(24px, 2.25vw, 34px);
  --hs-type-body-weight: 400;
  --hs-type-title-weight: 500;
  --hs-type-ui-weight: 500;
  --hs-type-strong-weight: 560;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.hs-page,
body.hs-theme,
body.hs-theme :is(button, input, textarea, select) {
  font-family: var(--font-base) !important;
  font-weight: var(--hs-type-body-weight);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hs-page :is(h1, h2, h3, h4, h5, h6),
body.hs-theme :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-cn-title) !important;
  font-weight: var(--hs-type-title-weight) !important;
  letter-spacing: 0 !important;
  line-height: 1.16;
}

body.hs-page :is(strong, b),
body.hs-theme :is(strong, b),
body.hs-theme .markdown-body :is(strong, b) {
  font-weight: var(--hs-type-strong-weight) !important;
}

body.hs-page :is(p, li, blockquote),
body.hs-theme :is(p, li, blockquote),
body.hs-theme :is(article#content, .markdown-body, .tailwind-typography, .hs-single-content) {
  font-family: var(--font-base) !important;
  font-size: var(--hs-type-body-size);
  font-weight: var(--hs-type-body-weight);
  line-height: var(--hs-type-body-leading);
  letter-spacing: 0;
}

body.hs-theme :is(.hs-brand__cn, .hs-hero-title, .hs-hero__title, .hs-cosy-title, .hs-cosy-hero__title, .hs-cosy-panel__body strong, .hs-section-title, .hs-module-card h3, .hs-aside-card h2, .hs-aside-card h3, .hs-cosy-archive h2, .hs-cosy-card h3, .hs-list-item h3, .hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1, .hs-single-title, .hs-post-title, .hs-error-panel h2, .hs-archive-card__title a, .hs-taxonomy-post h2, .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4) {
  font-family: var(--font-cn-title) !important;
  font-weight: var(--hs-type-title-weight) !important;
  letter-spacing: 0 !important;
}

body.hs-theme :is(.hs-brand__en, .hs-menu a, .hs-nav__link, .hs-button, .hs-section-title em, .hs-cosy-card__meta, .hs-cosy-read, .hs-footer, footer, .hs-eyebrow, .hs-cosy-eyebrow, .hs-meta, .hs-post-meta, .hs-archive-card__meta, .hs-taxonomy-post__meta, .hs-pill, .hs-tag-pill, .hs-social-label, .hs-social-link, .hs-feed-copy, .hs-search-input, .hs-search-submit, .hs-lang-dropdown, .hs-theme-menu, .hs-theme-option, [id="pagination"], .pagination, .toc-container, .comment-widget, halo\:comment) {
  font-family: var(--font-en) !important;
}

body.hs-theme :is(.hs-brand__cn) {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.08;
  font-weight: var(--hs-type-title-weight) !important;
}

body.hs-theme :is(.hs-brand__en) {
  font-size: 12px;
  font-weight: 500 !important;
  line-height: 1.1;
  letter-spacing: 0.015em !important;
}

body.hs-theme :is(.hs-menu a, .hs-nav__link, nav a, header a) {
  font-size: var(--hs-type-nav-size);
  font-weight: var(--hs-type-ui-weight) !important;
  line-height: 1.35;
}

body.hs-theme :is(.hs-hero-title, .hs-hero__title, .hs-cosy-title, .hs-cosy-hero__title) {
  font-size: var(--hs-type-hero-size) !important;
  line-height: 1.02 !important;
  font-weight: var(--hs-type-title-weight) !important;
}

body.hs-theme .hs-cosy-panel__body strong {
  display: block;
  font-size: clamp(24px, 2.7vw, 36px) !important;
  line-height: 1.38 !important;
  font-weight: var(--hs-type-title-weight) !important;
}

body.hs-theme :is(.hs-section-title, .hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1, .hs-single-title, .hs-post-title) {
  font-size: var(--hs-type-page-title-size) !important;
  line-height: 1.1 !important;
  font-weight: var(--hs-type-title-weight) !important;
}

body.hs-post-page .hs-post-title,
body.hs-single-page .hs-single-title {
  font-size: var(--hs-type-article-title-size) !important;
  line-height: 1.12 !important;
}

body.hs-theme :is(.hs-section-title em, .hs-archive-title + span, .hs-category-hero p, .hs-tag-hero p, .hs-tags-hero p) {
  font-family: var(--font-en) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.hs-theme :is(.hs-cosy-card h3, .hs-module-card h3, .hs-list-item h3, .hs-aside-card h2, .hs-aside-card h3, .hs-archive-card__title a, .hs-taxonomy-post h2) {
  font-size: var(--hs-type-card-title-size) !important;
  line-height: 1.22 !important;
  font-weight: var(--hs-type-title-weight) !important;
}

body.hs-theme :is(.hs-cosy-card p, .hs-module-card p, .hs-list-item p, .hs-aside-card p, .hs-archive-card__excerpt, .hs-taxonomy-post p, .hs-post-excerpt, .hs-summary, .line-clamp-3, .line-clamp-4) {
  font-family: var(--font-base) !important;
  font-size: clamp(14px, 0.9vw, 15px) !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
}

body.hs-theme :is(.hs-cosy-card__meta, .hs-archive-card__meta, .hs-taxonomy-post__meta, .hs-post-meta, .hs-meta, time, small, .text-sm, .text-xs, .hs-eyebrow, .hs-cosy-eyebrow) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-meta-size) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.005em !important;
}

body.hs-theme :is(.hs-pill, .hs-tag-pill, .hs-cosy-card__meta a, .hs-archive-card__meta a, .hs-taxonomy-post__meta a, a.inline-flex.items-center.rounded-full, a[class*="rounded-full"], span[class*="rounded-full"]) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-small-size) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  font-style: normal !important;
}

body.hs-theme :is(.hs-button, button, [type="button"], [type="submit"], .hs-cosy-read, .hs-feed-copy, .hs-search-submit, .hs-social-link) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-ui-size) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

body.hs-theme :is(input, textarea, select, .hs-search-input) {
  font-family: var(--font-base) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

body.hs-theme :is(code, pre, kbd, samp),
body.hs-theme .markdown-body :is(code, pre, kbd, samp) {
  font-family: var(--font-code) !important;
  font-size: 0.92em !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.hs-theme pre,
body.hs-theme .markdown-body pre {
  line-height: 1.75 !important;
}

body.hs-theme :is(article#content, .markdown-body, .tailwind-typography, .hs-single-content) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-cn-title) !important;
  font-weight: var(--hs-type-title-weight) !important;
  line-height: 1.28 !important;
  letter-spacing: 0 !important;
}

body.hs-theme :is(article#content, .markdown-body, .tailwind-typography, .hs-single-content) :is(p, ul, ol, blockquote) {
  font-size: clamp(15px, 1vw, 17px) !important;
  line-height: 1.95 !important;
}

body.hs-theme :is(article#content, .markdown-body, .tailwind-typography, .hs-single-content) blockquote {
  color: var(--hs-text-soft);
  font-weight: 400;
}

body.hs-theme :is(.comment-widget, #comment, halo\:comment) {
  font-family: var(--font-base) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body.hs-theme :is(.comment-widget h1, .comment-widget h2, .comment-widget h3, #comment h1, #comment h2, #comment h3) {
  font-family: var(--font-cn-title) !important;
  font-weight: var(--hs-type-title-weight) !important;
}

body.hs-theme :is(footer, .hs-footer) {
  font-family: var(--font-en) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

html.dark body.hs-theme,
html[data-theme="dark"] body.hs-theme,
[data-theme="dark"] body.hs-theme {
  color: var(--hs-text);
}

html.dark body.hs-theme :is(p, li, blockquote, .hs-summary, .hs-cosy-card p, .hs-module-card p, .hs-list-item p, .hs-aside-card p, .hs-archive-card__excerpt, .hs-taxonomy-post p, .markdown-body),
html[data-theme="dark"] body.hs-theme :is(p, li, blockquote, .hs-summary, .hs-cosy-card p, .hs-module-card p, .hs-list-item p, .hs-aside-card p, .hs-archive-card__excerpt, .hs-taxonomy-post p, .markdown-body),
[data-theme="dark"] body.hs-theme :is(p, li, blockquote, .hs-summary, .hs-cosy-card p, .hs-module-card p, .hs-list-item p, .hs-aside-card p, .hs-archive-card__excerpt, .hs-taxonomy-post p, .markdown-body) {
  color: var(--hs-text-soft) !important;
}

html.dark body.hs-theme :is(h1, h2, h3, h4, h5, h6, .hs-brand__cn, .hs-post-title, .hs-single-title, .hs-section-title, .hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1),
html[data-theme="dark"] body.hs-theme :is(h1, h2, h3, h4, h5, h6, .hs-brand__cn, .hs-post-title, .hs-single-title, .hs-section-title, .hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1),
[data-theme="dark"] body.hs-theme :is(h1, h2, h3, h4, h5, h6, .hs-brand__cn, .hs-post-title, .hs-single-title, .hs-section-title, .hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1) {
  color: var(--hs-text) !important;
}

html.dark body.hs-theme :is(.hs-cosy-card__meta, .hs-archive-card__meta, .hs-taxonomy-post__meta, .hs-post-meta, .hs-meta, time, small, .text-sm, .text-xs, .hs-eyebrow, .hs-cosy-eyebrow),
html[data-theme="dark"] body.hs-theme :is(.hs-cosy-card__meta, .hs-archive-card__meta, .hs-taxonomy-post__meta, .hs-post-meta, .hs-meta, time, small, .text-sm, .text-xs, .hs-eyebrow, .hs-cosy-eyebrow),
[data-theme="dark"] body.hs-theme :is(.hs-cosy-card__meta, .hs-archive-card__meta, .hs-taxonomy-post__meta, .hs-post-meta, .hs-meta, time, small, .text-sm, .text-xs, .hs-eyebrow, .hs-cosy-eyebrow) {
  color: var(--hs-muted) !important;
}

@media (max-width: 767px) {
  :root {
    --hs-type-body-size: 15px;
    --hs-type-meta-size: 12px;
    --hs-type-ui-size: 13px;
    --hs-type-nav-size: 13px;
    --hs-type-hero-size: clamp(42px, 16vw, 64px);
    --hs-type-page-title-size: clamp(32px, 11vw, 48px);
    --hs-type-article-title-size: clamp(32px, 11vw, 48px);
    --hs-type-section-title-size: clamp(30px, 10vw, 44px);
    --hs-type-card-title-size: clamp(22px, 8vw, 32px);
  }

  body.hs-theme :is(.hs-hero-title, .hs-hero__title, .hs-cosy-title, .hs-cosy-hero__title, .hs-section-title, .hs-archive-title, .hs-category-hero h1, .hs-tag-hero h1, .hs-tags-hero h1, .hs-single-title, .hs-post-title, .hs-cosy-card h3, .hs-module-card h3, .hs-list-item h3, .hs-aside-card h2, .hs-aside-card h3, .hs-archive-card__title a, .hs-taxonomy-post h2) {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.hs-theme :is(article#content, .markdown-body, .tailwind-typography, .hs-single-content) :is(p, ul, ol, blockquote) {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  body.hs-theme :is(.hs-cosy-panel__body strong) {
    font-size: clamp(22px, 7vw, 30px) !important;
  }
}

body.hs-page :is(.hs-brand__en, .hs-menu a, .hs-nav__link, .hs-button, .hs-section-title em, .hs-cosy-card__meta, .hs-cosy-read, .hs-footer, footer, .hs-eyebrow, .hs-cosy-eyebrow, .hs-meta, .hs-post-meta, .hs-archive-card__meta, .hs-taxonomy-post__meta, .hs-pill, .hs-tag-pill, .hs-social-label, .hs-social-link, .hs-feed-copy, .hs-search-input, .hs-search-submit, .hs-lang-dropdown, .hs-theme-menu, .hs-theme-option, [id="pagination"], .pagination, .toc-container, .comment-widget, halo\:comment) {
  font-family: var(--font-en) !important;
}

body.hs-page :is(.hs-brand__cn) {
  font-family: var(--font-cn-title) !important;
  font-size: clamp(17px, 1.35vw, 20px) !important;
  font-weight: var(--hs-type-title-weight) !important;
  line-height: 1.08 !important;
}

body.hs-page :is(.hs-brand__en) {
  font-family: var(--font-en) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.015em !important;
}

body.hs-page :is(.hs-menu a, .hs-nav__link, nav a, header a) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-nav-size) !important;
  font-weight: var(--hs-type-ui-weight) !important;
  line-height: 1.35 !important;
}

body.hs-page :is(.hs-hero-title, .hs-hero__title, .hs-cosy-title, .hs-cosy-hero__title, .hs-section-title, .hs-cosy-panel__body strong, .hs-module-card h3, .hs-aside-card h2, .hs-aside-card h3, .hs-cosy-card h3, .hs-list-item h3) {
  font-family: var(--font-cn-title) !important;
  font-weight: var(--hs-type-title-weight) !important;
  letter-spacing: 0 !important;
}

body.hs-page :is(.hs-hero-title, .hs-hero__title, .hs-cosy-title, .hs-cosy-hero__title) {
  font-size: var(--hs-type-hero-size) !important;
  line-height: 1.02 !important;
}

body.hs-page :is(.hs-cosy-panel__body strong) {
  display: block;
  font-size: clamp(24px, 2.7vw, 36px) !important;
  line-height: 1.38 !important;
}

body.hs-page :is(.hs-cosy-card h3, .hs-module-card h3, .hs-list-item h3, .hs-aside-card h2, .hs-aside-card h3) {
  font-size: var(--hs-type-card-title-size) !important;
  line-height: 1.22 !important;
}

body.hs-page :is(.hs-cosy-card p, .hs-module-card p, .hs-list-item p, .hs-aside-card p, .hs-post-excerpt, .hs-summary, .line-clamp-3, .line-clamp-4) {
  font-family: var(--font-base) !important;
  font-size: clamp(14px, 0.9vw, 15px) !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
}

body.hs-page :is(.hs-cosy-card__meta, .hs-post-meta, .hs-meta, time, small, .text-sm, .text-xs, .hs-eyebrow, .hs-cosy-eyebrow) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-meta-size) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.005em !important;
}

body.hs-page :is(.hs-pill, .hs-tag-pill, .hs-cosy-card__meta a, a.inline-flex.items-center.rounded-full, a[class*="rounded-full"], span[class*="rounded-full"]) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-small-size) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  font-style: normal !important;
}

body.hs-page :is(.hs-button, button, [type="button"], [type="submit"], .hs-cosy-read, .hs-feed-copy, .hs-search-submit, .hs-social-link) {
  font-family: var(--font-en) !important;
  font-size: var(--hs-type-ui-size) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

body.hs-page :is(footer, .hs-footer) {
  font-family: var(--font-en) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

@media (max-width: 767px) {
  body.hs-page :is(.hs-hero-title, .hs-hero__title, .hs-cosy-title, .hs-cosy-hero__title, .hs-section-title, .hs-cosy-card h3, .hs-module-card h3, .hs-list-item h3, .hs-aside-card h2, .hs-aside-card h3) {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.hs-page :is(.hs-cosy-panel__body strong) {
    font-size: clamp(22px, 7vw, 30px) !important;
  }
}

/* 10. Dark comment color correction */
html.dark body.hs-theme #comment,
html[data-theme="dark"] body.hs-theme #comment,
[data-theme="dark"] body.hs-theme #comment {
  color: rgba(248, 244, 238, 0.9) !important;
  border: 1px solid rgba(248, 244, 238, 0.09) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(220, 232, 242, 0.07), transparent 18rem),
    linear-gradient(145deg, rgba(248, 244, 238, 0.06), rgba(248, 244, 238, 0.025)) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24) !important;
}

html.dark body.hs-single-page #comment,
html[data-theme="dark"] body.hs-single-page #comment,
[data-theme="dark"] body.hs-single-page #comment,
html.dark body.hs-post-page #comment,
html[data-theme="dark"] body.hs-post-page #comment,
[data-theme="dark"] body.hs-post-page #comment {
  padding: clamp(22px, 3.2vw, 32px) !important;
  border-radius: var(--hs-card-radius-current) !important;
}

html.dark body.hs-theme #comment > h2,
html[data-theme="dark"] body.hs-theme #comment > h2,
[data-theme="dark"] body.hs-theme #comment > h2 {
  color: rgba(248, 244, 238, 0.94) !important;
}

html.dark body.hs-theme #comment :is(comment-widget, .comment-widget, .halo-comment-widget),
html[data-theme="dark"] body.hs-theme #comment :is(comment-widget, .comment-widget, .halo-comment-widget),
[data-theme="dark"] body.hs-theme #comment :is(comment-widget, .comment-widget, .halo-comment-widget) {
  color: rgba(248, 244, 238, 0.86) !important;
  border-color: rgba(248, 244, 238, 0.08) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.dark body.hs-theme #comment :is(p, span, label, small, strong, b, div),
html[data-theme="dark"] body.hs-theme #comment :is(p, span, label, small, strong, b, div),
[data-theme="dark"] body.hs-theme #comment :is(p, span, label, small, strong, b, div) {
  color: inherit !important;
}

html.dark body.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"], [class*="input"]),
html[data-theme="dark"] body.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"], [class*="input"]),
[data-theme="dark"] body.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"], [class*="input"]) {
  color: rgba(248, 244, 238, 0.92) !important;
  border-color: rgba(248, 244, 238, 0.12) !important;
  background: rgba(248, 244, 238, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(248, 244, 238, 0.05) !important;
}

html.dark body.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"], [class*="input"])::placeholder,
html[data-theme="dark"] body.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"], [class*="input"])::placeholder,
[data-theme="dark"] body.hs-theme #comment :is(textarea, input, [contenteditable="true"], [class*="editor"], [class*="textarea"], [class*="input"])::placeholder {
  color: rgba(248, 244, 238, 0.45) !important;
}

html.dark body.hs-theme #comment :is([class*="toolbar"], [class*="action"], [class*="footer"]),
html[data-theme="dark"] body.hs-theme #comment :is([class*="toolbar"], [class*="action"], [class*="footer"]),
[data-theme="dark"] body.hs-theme #comment :is([class*="toolbar"], [class*="action"], [class*="footer"]) {
  color: rgba(248, 244, 238, 0.72) !important;
  border-color: rgba(248, 244, 238, 0.1) !important;
  background: rgba(248, 244, 238, 0.025) !important;
}

html.dark body.hs-theme #comment :is(svg, [class*="icon"]),
html[data-theme="dark"] body.hs-theme #comment :is(svg, [class*="icon"]),
[data-theme="dark"] body.hs-theme #comment :is(svg, [class*="icon"]) {
  color: rgba(220, 232, 242, 0.68) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

html.dark body.hs-theme #comment :is(button, a[role="button"], [class*="button"], [class*="btn"]),
html[data-theme="dark"] body.hs-theme #comment :is(button, a[role="button"], [class*="button"], [class*="btn"]),
[data-theme="dark"] body.hs-theme #comment :is(button, a[role="button"], [class*="button"], [class*="btn"]) {
  color: rgba(248, 244, 238, 0.86) !important;
  border-color: rgba(248, 244, 238, 0.12) !important;
  background: rgba(248, 244, 238, 0.06) !important;
}

html.dark body.hs-theme #comment :is(button[type="submit"], [class*="submit"], [class*="primary"]),
html[data-theme="dark"] body.hs-theme #comment :is(button[type="submit"], [class*="submit"], [class*="primary"]),
[data-theme="dark"] body.hs-theme #comment :is(button[type="submit"], [class*="submit"], [class*="primary"]) {
  color: #f8f4ee !important;
  border-color: rgba(72, 196, 166, 0.38) !important;
  background: linear-gradient(135deg, rgba(44, 172, 144, 0.92), rgba(28, 139, 122, 0.94)) !important;
  box-shadow: 0 14px 30px rgba(20, 120, 108, 0.2) !important;
}

@media (max-width: 767px) {
  html.dark body.hs-theme #comment,
  html[data-theme="dark"] body.hs-theme #comment,
  [data-theme="dark"] body.hs-theme #comment {
    padding: 18px !important;
  }
}

/* Final layout guard: keep footer pinned to the viewport bottom on short subpages. */
body.hs-theme:not(.hs-page) {
  display: flex !important;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

body.hs-theme:not(.hs-page) > footer.mt-10,
body.hs-theme:not(.hs-page) > footer {
  margin-top: auto !important;
  flex: 0 0 auto;
}

/* 10. Huashu Design independent theme layer.
   This final layer gives the copied Halo templates a distinct editorial-studio
   identity while preserving their dynamic data and plugin bindings. */
:root {
  --hs-flower: #c9a7a0;
  --hs-leaf: #7f8b78;
  --hs-cream: #f8f4ee;
  --hs-paper: #fffdfa;
  --hs-paper-soft: rgba(255, 253, 249, 0.78);
  --hs-ink: #272522;
  --hs-body: #5f5952;
  --hs-subtle: #8f877f;
  --hs-rule: rgba(39, 37, 34, 0.12);
  --hs-card-radius: 24px;
  --hs-pill-radius: 24px;
  --hs-soft-shadow: 0 24px 70px rgba(65, 55, 45, 0.09);
  --hs-tight-shadow: 0 14px 36px rgba(65, 55, 45, 0.08);
}

html.dark,
html[data-theme="dark"],
[data-theme="dark"] {
  --hs-cream: #171614;
  --hs-paper: #211f1c;
  --hs-paper-soft: rgba(35, 33, 30, 0.78);
  --hs-ink: #f2ece3;
  --hs-body: #c8beb2;
  --hs-subtle: #948a80;
  --hs-rule: rgba(242, 236, 227, 0.14);
  --hs-flower: #b78d89;
  --hs-leaf: #9aa58e;
  --hs-soft-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --hs-tight-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

body.hs-page,
body.hs-theme {
  min-width: 320px;
  color: var(--hs-ink) !important;
  background:
    radial-gradient(circle at 9% 7%, rgba(220, 232, 242, 0.64), transparent 34rem),
    radial-gradient(circle at 89% 18%, rgba(233, 227, 240, 0.64), transparent 30rem),
    linear-gradient(135deg, var(--hs-cream), #fbf8f3 52%, #f5efe8) !important;
  font-family: var(--font-base) !important;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.dark body.hs-page,
html.dark body.hs-theme,
html[data-theme="dark"] body.hs-page,
html[data-theme="dark"] body.hs-theme,
[data-theme="dark"] body.hs-page,
[data-theme="dark"] body.hs-theme {
  background:
    radial-gradient(circle at 12% 4%, rgba(46, 59, 66, 0.5), transparent 30rem),
    radial-gradient(circle at 88% 15%, rgba(61, 48, 62, 0.48), transparent 28rem),
    linear-gradient(135deg, #171614, #1d1b18 58%, #151412) !important;
}

body.hs-theme {
  display: flex !important;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

body.hs-theme > section,
body.hs-theme > main,
body.hs-theme > div:not([x-data]):not(.fixed):not(.absolute) {
  flex: 0 0 auto;
}

body.hs-theme > footer {
  margin-top: auto !important;
}

body.hs-page a,
body.hs-theme a {
  color: inherit;
  text-decoration: none;
}

body.hs-page :is(h1, h2, h3, h4, h5, h6),
body.hs-theme :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-cn-title) !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  color: var(--hs-ink) !important;
  text-wrap: pretty;
}

body.hs-page :is(p, li, blockquote),
body.hs-theme :is(p, li, blockquote) {
  color: var(--hs-body);
  line-height: 1.86;
}

body.hs-page :is(strong, b),
body.hs-theme :is(strong, b) {
  font-weight: 550;
}

body.hs-theme :is(button, input, textarea, select),
body.hs-page :is(button, input, textarea, select) {
  font-family: var(--font-base) !important;
}

body.hs-theme::before,
body.hs-page::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(39, 37, 34, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 37, 34, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 72%);
}

/* Header: keep the requested top horizontal navigation. */
body.hs-theme #header-menu,
.hs-nav {
  height: 72px !important;
  background: rgba(248, 244, 238, 0.78) !important;
  border-bottom: 1px solid var(--hs-rule) !important;
  box-shadow: none !important;
  backdrop-filter: blur(22px);
}

html.dark body.hs-theme #header-menu,
html[data-theme="dark"] body.hs-theme #header-menu,
[data-theme="dark"] body.hs-theme #header-menu,
html.dark .hs-nav,
html[data-theme="dark"] .hs-nav,
[data-theme="dark"] .hs-nav {
  background: rgba(23, 22, 20, 0.78) !important;
}

body.hs-theme #header-menu > div {
  width: min(calc(100% - 56px), 1120px) !important;
  max-width: none !important;
  padding-inline: 0 !important;
}

body.hs-theme #site-title,
.hs-brand__cn {
  font-family: var(--font-cn-title) !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  color: var(--hs-ink) !important;
}

body.hs-theme #header-menu ul a,
body.hs-theme #header-menu li,
.hs-menu a,
.hs-nav__link {
  font-family: var(--font-en) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(39, 37, 34, 0.72) !important;
}

html.dark body.hs-theme #header-menu ul a,
html[data-theme="dark"] body.hs-theme #header-menu ul a,
[data-theme="dark"] body.hs-theme #header-menu ul a {
  color: rgba(242, 236, 227, 0.72) !important;
}

body.hs-theme #header-menu ul a:hover,
.hs-menu a:hover {
  color: var(--hs-ink) !important;
}

body.hs-theme #header-menu [class*="rounded"],
body.hs-theme #header-menu [class*="shadow"],
body.hs-theme .menu-dropdown {
  border-radius: var(--hs-pill-radius) !important;
  box-shadow: var(--hs-tight-shadow) !important;
}

body.hs-theme #header-menu .absolute,
body.hs-theme .menu-dropdown {
  overflow: hidden;
  background: var(--hs-paper) !important;
  border: 1px solid var(--hs-rule) !important;
}

body.hs-theme #header-menu a.inline-flex.h-full,
body.hs-theme #header-menu .mr-2.h-full > a,
body.hs-theme #header-menu #site-title {
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: var(--hs-ink) !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-theme #header-menu .mr-2.h-full {
  width: auto !important;
  min-width: max-content !important;
  margin-right: 18px !important;
}

body.hs-theme #header-menu > div > div:first-child {
  min-width: 0 !important;
  gap: 18px !important;
}

body.hs-theme #header-menu ul.hidden.items-center,
body.hs-theme #header-menu ul.sm\:flex,
body.hs-theme #header-menu > div > div:first-child > ul {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li {
  width: auto !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li > a {
  display: inline-flex !important;
  width: auto !important;
  min-width: max-content !important;
  height: 36px !important;
  align-items: center !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--hs-pill-radius) !important;
  box-shadow: none !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li > a:hover {
  background: rgba(255, 253, 249, 0.48) !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li:has(a[href*="/categories/"]) > a,
body.hs-theme #header-menu > div > div:first-child > ul > li:has(a[href*="/tags/"]) > a {
  background: rgba(220, 232, 242, 0.36) !important;
  border: 1px solid var(--hs-rule) !important;
}

html.dark body.hs-theme #header-menu > div > div:first-child > ul > li > a:hover,
html[data-theme="dark"] body.hs-theme #header-menu > div > div:first-child > ul > li > a:hover,
[data-theme="dark"] body.hs-theme #header-menu > div > div:first-child > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Homepage B: editorial flower studio. */
.hs-shell {
  overflow: clip;
}

.hs-section {
  width: min(calc(100% - 56px), 1120px) !important;
}

.hs-cosy-hero {
  min-height: calc(100svh - 72px);
  padding-block: clamp(78px, 10vw, 132px) clamp(58px, 7vw, 92px);
  align-items: center;
}

.hs-cosy-hero__bg span:first-child {
  width: clamp(280px, 38vw, 520px);
  height: clamp(280px, 38vw, 520px);
  background:
    linear-gradient(135deg, rgba(220, 232, 242, 0.82), rgba(233, 227, 240, 0.52)),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.55), transparent 40%);
  filter: blur(0.5px);
}

.hs-cosy-hero__bg span:last-child {
  width: clamp(150px, 18vw, 240px);
  height: clamp(150px, 18vw, 240px);
  background: rgba(201, 167, 160, 0.23);
}

.hs-cosy-hero__content {
  max-width: 620px;
}

.hs-cosy-eyebrow,
.hs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 34px;
  font-family: var(--font-en) !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--hs-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(255, 253, 249, 0.68);
  border: 1px solid var(--hs-rule);
  border-radius: var(--hs-pill-radius);
}

.hs-hero-title {
  max-width: 8.5em;
  margin: 0;
  font-size: clamp(58px, 8.3vw, 122px) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

.hs-cosy-hero__content p {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 2;
}

.hs-actions {
  gap: 14px;
  margin-top: 34px;
}

.hs-button,
.hs-cosy-read,
body.hs-theme :is(button, [type="button"], [type="submit"]),
body.hs-theme :is(.rounded, .rounded-full, .rounded-xl) {
  border-radius: var(--hs-pill-radius) !important;
}

.hs-button,
.hs-cosy-read {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-en) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hs-button--primary {
  color: #fff !important;
  background: var(--hs-ink) !important;
  border-color: var(--hs-ink) !important;
}

.hs-button--ghost {
  color: var(--hs-ink) !important;
  background: rgba(255, 253, 249, 0.58) !important;
  border-color: var(--hs-rule) !important;
}

.hs-cosy-hero__panel,
.hs-announcement,
.hs-aside-card,
.hs-module-card,
.hs-cosy-archive,
.hs-cosy-card {
  background: var(--hs-paper-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  border-radius: var(--hs-card-radius) !important;
  box-shadow: var(--hs-soft-shadow) !important;
  backdrop-filter: blur(18px);
}

html.dark .hs-cosy-hero__panel,
html.dark .hs-announcement,
html.dark .hs-aside-card,
html.dark .hs-module-card,
html.dark .hs-cosy-archive,
html.dark .hs-cosy-card {
  border-color: rgba(255, 255, 255, 0.09) !important;
}

.hs-cosy-hero__panel {
  position: relative;
  overflow: hidden;
}

.hs-cosy-hero__panel::before {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 94px;
  height: 150px;
  content: "";
  border: 1px solid rgba(127, 139, 120, 0.28);
  border-radius: 999px 999px 18px 18px;
  transform: rotate(8deg);
  opacity: 0.52;
}

.hs-cosy-panel__body strong {
  font-family: var(--font-cn-title) !important;
  font-size: clamp(25px, 2.7vw, 36px) !important;
  line-height: 1.45;
  font-weight: 500;
}

.hs-topic-strip {
  min-height: 0 !important;
  padding: 16px 22px !important;
  margin-top: -24px !important;
  background: rgba(255, 253, 249, 0.48) !important;
  border: 1px solid var(--hs-rule);
  border-radius: var(--hs-card-radius);
  box-shadow: none !important;
}

.hs-topic-strip a {
  font-family: var(--font-en) !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--hs-body);
}

.hs-section-title {
  font-size: clamp(42px, 5.6vw, 72px) !important;
  line-height: 1.04 !important;
}

.hs-section-title em {
  display: block;
  margin-top: 4px;
  font-family: var(--font-en) !important;
  font-size: clamp(34px, 4vw, 58px);
  font-style: italic;
  font-weight: 400;
  color: rgba(39, 37, 34, 0.45);
}

html.dark .hs-section-title em {
  color: rgba(242, 236, 227, 0.42);
}

.hs-feature-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.hs-cosy-card--lead {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1fr) !important;
  min-height: 320px !important;
  overflow: hidden;
}

.hs-cosy-card__media {
  min-height: 100% !important;
  border-radius: var(--hs-card-radius) 0 0 var(--hs-card-radius) !important;
  background:
    linear-gradient(135deg, rgba(220, 232, 242, 0.78), rgba(233, 227, 240, 0.62)),
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.4), transparent 32%);
}

.hs-cosy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-cosy-card--lead .hs-cosy-card__body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
}

.hs-cosy-card__meta,
.hs-post-meta,
.hs-archive-card__meta,
.hs-taxonomy-post__meta,
.hs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-family: var(--font-en) !important;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--hs-subtle) !important;
  letter-spacing: 0.02em;
}

.hs-cosy-card__meta a,
.hs-pill,
.hs-tag-pill,
body.hs-theme a[class*="inline-flex"],
body.hs-theme span[class*="inline-flex"] {
  min-height: 30px;
  padding: 5px 12px !important;
  color: var(--hs-body) !important;
  background: rgba(220, 232, 242, 0.45) !important;
  border: 1px solid var(--hs-rule) !important;
  border-radius: var(--hs-pill-radius) !important;
  box-shadow: none !important;
}

.hs-cosy-card h3,
.hs-list-item h3 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 3vw, 42px) !important;
  line-height: 1.18 !important;
}

.hs-cosy-card p,
.hs-list-item p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--hs-body) !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hs-feature-layout__side {
  display: grid !important;
  gap: 16px !important;
}

.hs-cosy-card--compact {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  min-height: 112px !important;
  padding: 12px !important;
}

.hs-cosy-card__thumb {
  width: 92px;
  height: 100%;
  min-height: 88px;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(201, 167, 160, 0.22), rgba(220, 232, 242, 0.62));
}

.hs-cosy-card--compact h3 {
  margin: 8px 0 0;
  font-size: 20px !important;
}

.hs-magazine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.hs-list-stack {
  display: grid;
  gap: 10px;
}

.hs-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hs-rule);
}

.hs-list-item__media {
  order: 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
}

.hs-list-item h3 {
  font-size: clamp(25px, 2.5vw, 34px) !important;
}

.hs-module-grid {
  gap: 22px !important;
}

.hs-module-card {
  min-height: 210px;
  padding: clamp(28px, 4vw, 44px) !important;
}

.hs-module-card > span {
  background: rgba(220, 232, 242, 0.58) !important;
  border-radius: 50% !important;
}

/* Subpages: remove big white wrapper feeling and use editorial rows. */
body.hs-theme > section {
  width: min(calc(100% - 56px), 1120px) !important;
  max-width: none !important;
}

body.hs-theme > section:first-of-type {
  padding-top: clamp(56px, 8vw, 94px) !important;
}

body.hs-theme .hs-page-hero,
body.hs-theme .hs-tag-hero,
body.hs-theme section:first-of-type > div:first-child:is(.hs-page-hero, .hs-tag-hero) {
  min-height: 0 !important;
  padding: 0 0 clamp(34px, 5vw, 54px) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-theme .hs-page-hero h1,
body.hs-theme .hs-tag-hero h1,
body.hs-theme section:first-of-type h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(56px, 8vw, 108px) !important;
  line-height: 1.02 !important;
}

body.hs-theme .hs-page-hero p,
body.hs-theme .hs-tag-hero p {
  max-width: 650px;
  margin-top: 18px;
  font-size: 17px;
}

body.hs-theme .hs-layout,
body.hs-theme section.mx-auto.mt-6,
body.hs-theme section.mx-auto {
  width: min(calc(100% - 56px), 1120px) !important;
  max-width: none !important;
  margin-inline: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.hs-theme .hs-content-card,
body.hs-theme .hs-article-shell,
body.hs-theme .hs-taxonomy-panel,
body.hs-theme .hs-archive-list,
body.hs-theme .hs-cardless-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.hs-theme .hs-archive-month,
body.hs-theme .hs-taxonomy-main,
body.hs-theme #post-list {
  display: grid !important;
  gap: 0 !important;
  background: transparent !important;
}

body.hs-theme .hs-archive-card,
body.hs-theme .hs-taxonomy-post,
body.hs-theme article[class*="rounded"],
body.hs-theme #post-list article {
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) !important;
  gap: clamp(24px, 5vw, 70px) !important;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(28px, 4vw, 46px) 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--hs-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-theme .hs-archive-card::before,
body.hs-theme .hs-taxonomy-post::before {
  align-self: start;
  width: 42px;
  height: 1px;
  margin-top: 1.1em;
  content: "";
  background: var(--hs-rule);
}

body.hs-theme .hs-archive-card h2,
body.hs-theme .hs-archive-card h3,
body.hs-theme .hs-taxonomy-post h2,
body.hs-theme .hs-taxonomy-post h3,
body.hs-theme #post-list article h2,
body.hs-theme #post-list article h3 {
  margin: 10px 0 12px !important;
  font-size: clamp(31px, 4vw, 54px) !important;
  line-height: 1.14 !important;
}

body.hs-theme .hs-archive-card p,
body.hs-theme .hs-taxonomy-post p,
body.hs-theme #post-list article p {
  max-width: 720px;
  margin: 0 !important;
  font-size: 16px !important;
  color: var(--hs-body) !important;
}

body.hs-theme .hs-archive-card__media,
body.hs-theme .hs-taxonomy-post__media,
body.hs-theme article img {
  border-radius: 18px !important;
}

/* Sidebar cards: quiet but aligned with the editorial system. */
body.hs-theme aside > section,
body.hs-theme aside .rounded-xl,
body.hs-theme aside [class*="bg-white"] {
  padding: 28px !important;
  background: var(--hs-paper-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  border-radius: var(--hs-card-radius) !important;
  box-shadow: var(--hs-tight-shadow) !important;
  backdrop-filter: blur(18px);
}

body.hs-theme aside h2,
body.hs-theme aside h3 {
  font-size: 24px !important;
}

body.hs-theme aside ul,
body.hs-theme aside li {
  border-color: var(--hs-rule) !important;
}

/* Article and page reading. */
body.hs-post-page main,
body.hs-single-page main,
body.hs-post-page .markdown-body,
body.hs-single-page .markdown-body {
  font-size: 17px !important;
  line-height: 1.95 !important;
}

body.hs-theme .markdown-body {
  color: var(--hs-body) !important;
  background: transparent !important;
}

body.hs-theme .markdown-body :is(h1, h2, h3) {
  margin-top: 2.1em;
  margin-bottom: 0.7em;
}

body.hs-theme .markdown-body p {
  margin-block: 1.15em;
}

body.hs-theme .markdown-body :is(img, video, iframe) {
  max-width: 100%;
  border-radius: 18px;
}

body.hs-theme .markdown-body :is(pre, table) {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 18px;
}

body.hs-theme .markdown-body blockquote {
  padding: 18px 22px;
  margin-inline: 0;
  color: var(--hs-body);
  background: rgba(233, 227, 240, 0.28);
  border-left: 3px solid var(--hs-flower);
  border-radius: 0 18px 18px 0;
}

/* Comments and plugin blocks. */
body.hs-theme #comment {
  margin-top: 46px !important;
  padding-top: 34px !important;
  border-top: 1px solid var(--hs-rule) !important;
}

body.hs-theme #comment :is(.comment-widget, halo\:comment, [class*="comment"]) {
  color: var(--hs-body) !important;
  background: transparent !important;
  border-color: var(--hs-rule) !important;
  box-shadow: none !important;
}

body.hs-theme #comment :is(textarea, input, [contenteditable="true"]) {
  color: var(--hs-ink) !important;
  background: var(--hs-paper-soft) !important;
  border: 1px solid var(--hs-rule) !important;
  border-radius: 18px !important;
}

/* Footer: no repeated navigation directories. */
body.hs-theme footer,
.hs-footer {
  padding-block: 34px !important;
  color: var(--hs-body) !important;
  background: rgba(248, 244, 238, 0.7) !important;
  border-top: 1px solid var(--hs-rule) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

html.dark body.hs-theme footer,
html[data-theme="dark"] body.hs-theme footer,
[data-theme="dark"] body.hs-theme footer,
html.dark .hs-footer,
html[data-theme="dark"] .hs-footer,
[data-theme="dark"] .hs-footer {
  background: rgba(23, 22, 20, 0.76) !important;
}

body.hs-theme footer > div:first-child,
.hs-footer__inner {
  display: flex !important;
  width: min(calc(100% - 56px), 1120px) !important;
  max-width: none !important;
  min-height: auto !important;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  margin-inline: auto !important;
}

body.hs-theme footer :is(nav, ul, li):has(a[href]),
body.hs-theme footer [th\:if],
body.hs-theme footer .grid:has(ul),
body.hs-theme footer .flex:has(ul) {
  display: none !important;
}

body.hs-theme footer hr {
  display: none !important;
}

body.hs-theme footer :is(a, span, p, div),
.hs-footer :is(a, span, p, div) {
  font-family: var(--font-en) !important;
  font-size: 13px !important;
  color: var(--hs-body) !important;
}

body.hs-theme footer strong,
.hs-footer strong {
  font-family: var(--font-cn-title) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--hs-ink) !important;
}

.hs-footer-social {
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

.hs-footer-social__link {
  min-height: 32px;
  padding: 7px 12px !important;
  font-family: var(--font-en) !important;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--hs-body) !important;
  background: rgba(255, 253, 249, 0.55) !important;
  border: 1px solid var(--hs-rule) !important;
  border-radius: var(--hs-pill-radius) !important;
}

/* Theme/language popovers. */
body.hs-theme [x-show="show"],
body.hs-theme .hs-theme-menu,
body.hs-theme .hs-lang-dropdown {
  color: var(--hs-ink) !important;
  background: var(--hs-paper) !important;
  border: 1px solid var(--hs-rule) !important;
  border-radius: 18px !important;
  box-shadow: var(--hs-tight-shadow) !important;
}

body.hs-theme [x-show="show"] li,
body.hs-theme [x-show="show"] span {
  color: var(--hs-body) !important;
}

/* Responsive. */
@media (max-width: 980px) {
  body.hs-theme #header-menu > div,
  .hs-section,
  body.hs-theme > section,
  body.hs-theme .hs-layout,
  body.hs-theme section.mx-auto {
    width: min(calc(100% - 36px), 720px) !important;
  }

  .hs-cosy-hero,
  .hs-feature-layout,
  .hs-magazine {
    grid-template-columns: 1fr !important;
  }

  .hs-cosy-hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hs-cosy-card--lead {
    grid-template-columns: 1fr !important;
  }

  .hs-cosy-card__media {
    min-height: 240px !important;
    border-radius: var(--hs-card-radius) var(--hs-card-radius) 0 0 !important;
  }

  .hs-list-item {
    grid-template-columns: 1fr;
  }

  .hs-list-item__media {
    order: 0;
    width: min(100%, 320px);
  }

  body.hs-theme .hs-archive-card,
  body.hs-theme .hs-taxonomy-post,
  body.hs-theme article[class*="rounded"],
  body.hs-theme #post-list article {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.hs-theme .hs-archive-card::before,
  body.hs-theme .hs-taxonomy-post::before {
    display: none;
  }
}

@media (max-width: 640px) {
  body.hs-theme #header-menu,
  .hs-nav {
    height: 64px !important;
  }

  .hs-nav__inner {
    width: calc(100% - 32px);
    height: 64px;
  }

  .hs-menu {
    display: none;
  }

  .hs-menu-button {
    display: grid;
    place-content: center;
  }

  .hs-mobile-menu.is-open {
    display: grid;
    gap: 10px;
    width: calc(100% - 32px);
    padding: 14px;
    margin: 0 auto 14px;
    background: var(--hs-paper);
    border: 1px solid var(--hs-rule);
    border-radius: 20px;
    box-shadow: var(--hs-tight-shadow);
  }

  .hs-section,
  body.hs-theme > section,
  body.hs-theme .hs-layout,
  body.hs-theme section.mx-auto,
  body.hs-theme #header-menu > div {
    width: calc(100% - 28px) !important;
  }

  .hs-hero-title,
  body.hs-theme .hs-page-hero h1,
  body.hs-theme .hs-tag-hero h1,
  body.hs-theme section:first-of-type h1 {
    font-size: clamp(42px, 15vw, 64px) !important;
  }

  .hs-cosy-hero {
    padding-block: 54px 42px;
  }

  .hs-topic-strip {
    display: flex !important;
    overflow-x: auto;
    gap: 16px;
    padding: 13px 16px !important;
  }

  .hs-cosy-card--compact {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hs-cosy-card__thumb {
    width: 76px;
  }

  .hs-cosy-card--lead .hs-cosy-card__body,
  .hs-module-card,
  .hs-aside-card {
    padding: 24px !important;
  }

  body.hs-theme .hs-archive-card h2,
  body.hs-theme .hs-archive-card h3,
  body.hs-theme .hs-taxonomy-post h2,
  body.hs-theme .hs-taxonomy-post h3,
  body.hs-theme #post-list article h2,
  body.hs-theme #post-list article h3 {
    font-size: clamp(30px, 11vw, 44px) !important;
  }

  body.hs-theme footer > div:first-child,
  .hs-footer__inner {
    width: calc(100% - 28px) !important;
    align-items: flex-start !important;
    flex-direction: column;
  }
}

/* 11. Huashu footer precision and dark-home polish. */
body.hs-theme footer > div:first-child,
body.hs-theme footer > div:last-of-type,
body.hs-theme footer .hs-footer-social,
.hs-footer .hs-footer-social {
  display: flex !important;
}

body.hs-theme footer ul,
body.hs-theme footer .grid:has(ul),
body.hs-theme footer h2 + ul {
  display: none !important;
}

body.hs-theme footer .hs-footer-social {
  margin-top: 0 !important;
}

body.hs-theme footer .hs-footer-social a,
body.hs-theme footer .hs-footer-social span {
  display: inline-flex !important;
}

html.dark .hs-cosy-hero__bg span:first-child,
html[data-theme="dark"] .hs-cosy-hero__bg span:first-child,
[data-theme="dark"] .hs-cosy-hero__bg span:first-child {
  background:
    linear-gradient(135deg, rgba(61, 79, 92, 0.58), rgba(72, 58, 78, 0.44)),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.08), transparent 38%);
}

html.dark .hs-cosy-hero__bg span:last-child,
html[data-theme="dark"] .hs-cosy-hero__bg span:last-child,
[data-theme="dark"] .hs-cosy-hero__bg span:last-child {
  background: rgba(183, 141, 137, 0.18);
}

html.dark .hs-button--primary,
html[data-theme="dark"] .hs-button--primary,
[data-theme="dark"] .hs-button--primary {
  color: #171614 !important;
  background: #f2ece3 !important;
  border-color: #f2ece3 !important;
}

html.dark .hs-button--ghost,
html[data-theme="dark"] .hs-button--ghost,
[data-theme="dark"] .hs-button--ghost {
  color: var(--hs-ink) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--hs-rule) !important;
}

@media (max-width: 640px) {
  body.hs-theme footer > div:first-child,
  body.hs-theme footer > div:last-of-type {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* 12. Responsive audit fixes for header and taxonomy streams. */
body.hs-theme #header-menu {
  overflow: visible !important;
}

body.hs-theme #header-menu > div {
  display: flex !important;
  align-items: center !important;
  height: 72px !important;
}

body.hs-theme #header-menu > div > div:first-child {
  display: flex !important;
  flex: 1 1 auto !important;
  gap: 22px !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.hs-theme #header-menu > div > div:last-child {
  flex: 0 0 auto !important;
  margin-left: 16px !important;
}

body.hs-theme #header-menu .mr-2.h-full {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  height: auto !important;
  margin-right: 10px !important;
}

body.hs-theme #header-menu a.inline-flex.h-full,
body.hs-theme #header-menu .mr-2.h-full > a,
body.hs-theme #header-menu .mr-2.h-full > a[class],
body.hs-theme #header-menu #site-title {
  display: inline-flex !important;
  width: auto !important;
  min-width: max-content !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-family: var(--font-cn-title) !important;
  font-size: clamp(18px, 1.6vw, 22px) !important;
  line-height: 1.08 !important;
  color: var(--hs-ink) !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.hs-theme #header-menu > div > div:first-child > ul {
  display: flex !important;
  flex: 0 1 auto !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: max-content !important;
  height: 34px !important;
  min-height: 0 !important;
  padding: 0 12px !important;
  font-family: var(--font-en), var(--font-cn) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: var(--hs-body) !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--hs-pill-radius) !important;
  box-shadow: none !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li > a:hover,
body.hs-theme #header-menu > div > div:first-child > ul > li > a[aria-current="page"] {
  color: var(--hs-ink) !important;
  background: rgba(255, 253, 249, 0.58) !important;
  border: 1px solid var(--hs-rule) !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post {
  grid-template-columns: clamp(72px, 7vw, 96px) minmax(0, 1fr) !important;
  gap: clamp(18px, 3vw, 38px) !important;
  padding: clamp(26px, 3.2vw, 40px) 0 !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post::before {
  width: 34px !important;
  margin-top: 1.1em !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  max-width: 680px !important;
  padding: 0 !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post .hs-taxonomy-post__main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: end !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post h2 {
  margin: 0 !important;
  font-size: clamp(30px, 3.4vw, 48px) !important;
  line-height: 1.08 !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post p {
  max-width: 58em !important;
  margin: 0 !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post .hs-taxonomy-post__foot {
  gap: 10px !important;
  margin-top: 0 !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post .hs-taxonomy-post__meta {
  margin-bottom: 2px !important;
}

body.hs-archives-page .hs-archive-card {
  grid-template-columns: clamp(92px, 9vw, 124px) minmax(0, 1fr) !important;
  gap: clamp(22px, 4vw, 54px) !important;
}

body.hs-archives-page .hs-archive-card::before {
  width: 42px !important;
}

@media (max-width: 900px) {
  body.hs-theme #header-menu > div {
    height: 68px !important;
  }

  body.hs-theme #header-menu > div > div:first-child {
    gap: 14px !important;
  }

  body.hs-theme #header-menu > div > div:first-child > ul {
    gap: 4px !important;
  }

  body.hs-theme #header-menu > div > div:first-child > ul > li > a {
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
  }

  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post,
  body.hs-archives-page .hs-archive-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post::before,
  body.hs-archives-page .hs-archive-card::before {
    display: none !important;
  }

  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post .hs-taxonomy-post__main {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

@media (max-width: 700px) {
  body.hs-theme #header-menu > div > div:first-child > ul {
    display: none !important;
  }

  body.hs-theme #header-menu li.sm\:hidden {
    display: block !important;
  }

  body.hs-theme #header-menu .mr-2.h-full,
  body.hs-theme #header-menu a.inline-flex.h-full,
  body.hs-theme #header-menu .mr-2.h-full > a,
  body.hs-theme #header-menu #site-title {
    min-width: 0 !important;
  }
}

/* 13. Header click-safety patch. */
body.hs-theme #header-menu {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  isolation: isolate !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

body.hs-theme #header-menu,
body.hs-theme #header-menu > div,
body.hs-theme #header-menu > div > div,
body.hs-theme #header-menu ul,
body.hs-theme #header-menu li {
  pointer-events: auto !important;
}

body.hs-theme #header-menu > div {
  position: relative !important;
  z-index: 2 !important;
  width: min(calc(100% - 56px), 1180px) !important;
  overflow: visible !important;
}

body.hs-theme #header-menu > div > div:first-child {
  overflow: visible !important;
}

body.hs-theme #header-menu > div > div:first-child > ul {
  position: relative !important;
  z-index: 3 !important;
  overflow: visible !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li {
  position: relative !important;
  z-index: 4 !important;
  overflow: visible !important;
}

body.hs-theme #header-menu > div > div:first-child > ul > li > a {
  position: relative !important;
  z-index: 5 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  text-overflow: clip !important;
}

body.hs-theme #header-menu :is(.menu-dropdown, [x-show="show"], ul.absolute) {
  z-index: 10000 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

body.hs-theme #header-menu .mr-2.h-full,
body.hs-theme #header-menu .mr-2.h-full > a,
body.hs-theme #header-menu #site-title {
  position: relative !important;
  z-index: 4 !important;
  pointer-events: auto !important;
}

@media (max-width: 900px) {
  body.hs-theme #header-menu > div {
    width: min(calc(100% - 32px), 760px) !important;
  }

  body.hs-theme #header-menu .mr-2.h-full {
    margin-right: 4px !important;
  }
}

@media (min-width: 701px) {
  body.hs-theme #header-menu > div:nth-of-type(2),
  body.hs-theme #header-menu > div:nth-of-type(2) > .fixed {
    display: none !important;
    pointer-events: none !important;
  }
}

@media (max-width: 700px) {
  body.hs-theme #header-menu > div:nth-of-type(2) {
    display: block;
  }
}

@media (max-width: 700px) {
  html body.hs-theme header#header-menu > div:first-of-type > div:first-child > ul.hidden.items-center.gap-8.sm\:flex {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 14. Taxonomy stream flow correction. */
body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
  display: grid !important;
  grid-template-columns: clamp(74px, 7vw, 96px) minmax(0, 1fr) !important;
  column-gap: clamp(20px, 3vw, 36px) !important;
  row-gap: 12px !important;
  align-items: start !important;
  max-width: none !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__main {
  display: contents !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time {
  grid-column: 1 !important;
  grid-row: 1 / span 4 !important;
  align-self: start !important;
  margin: 3px 0 0 !important;
  color: var(--hs-muted) !important;
  font-family: var(--font-en) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  white-space: normal !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
  display: block !important;
  width: 34px !important;
  height: 1px !important;
  margin-top: 12px !important;
  content: "" !important;
  background: var(--hs-border) !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
  grid-column: 2 !important;
  grid-row: auto !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2 {
  margin: 0 !important;
  max-width: 680px !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p {
  margin: 0 !important;
  max-width: 720px !important;
  line-height: 1.9 !important;
}

body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
  margin-top: 2px !important;
}

@media (max-width: 767px) {
  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__body {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time,
  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__meta,
  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) h2,
  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) p,
  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) .hs-taxonomy-post__foot {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.hs-theme:is(.hs-tags-page, .hs-tag-page, .hs-category-page) #post-list > article.hs-taxonomy-post:not(:has(.hs-taxonomy-post__media)) time::after {
    display: none !important;
  }
}
