:root {
  --article-cover-ratio: 1.28;
}

.home-hero .container,
.home-modules .container,
.home-articles .container {
  width: min(1440px, calc(100% - 64px));
}

.home-hero,
.home-modules,
.home-articles {
  scroll-margin-top: 88px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(232, 244, 235, 0.78) 100%),
    #fff;
  padding: 72px 0 34px;
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(560px, 0.86fr) minmax(560px, 1fr);
  gap: 42px;
  align-items: center;
}

.home-hero-copy h1 {
  margin: 0 0 16px;
  color: #0c3828;
  font-size: clamp(3.4rem, 4.4vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-hero-copy .hero-subtitle {
  max-width: 620px;
  margin-bottom: 18px;
  color: #53625a;
  font-size: clamp(1.08rem, 1.8vw, 1.36rem);
  line-height: 1.7;
}

.hero-support {
  display: flex;
  max-width: 680px;
  align-items: start;
  gap: 10px;
  margin: 0 0 26px;
  color: #50635a;
  font-weight: 750;
  line-height: 1.7;
}

.hero-support svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--green);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero-actions a,
.article-button,
.article-more-link,
.article-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.home-hero-actions .primary,
.article-button.primary,
.article-back-link.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 122, 77, 0.16);
}

.home-hero-actions .secondary,
.article-button,
.article-more-link,
.article-back-link {
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green);
}

.home-hero-visual {
  position: relative;
  min-height: 430px;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 38px rgba(31, 49, 39, 0.1));
}

.home-modules {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  padding: 0 0 22px;
  background: #fff;
}

.home-modules-panel,
.home-article-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(25, 42, 32, 0.06);
}

.home-modules-panel {
  padding: 22px;
}

.home-modules-head {
  margin-bottom: 18px;
}

.home-modules-head h2,
.home-articles-head h2 {
  margin-bottom: 6px;
  color: #11251b;
  font-size: clamp(1.45rem, 2vw, 1.86rem);
}

.home-modules-head p,
.home-articles-head p {
  margin: 0;
  color: var(--muted);
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.home-module-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.home-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 77, 0.36);
  box-shadow: 0 14px 30px rgba(25, 42, 32, 0.08);
}

.home-module-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}

.home-module-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.home-module-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.06rem;
}

.home-module-card span:not(.home-module-icon):not(.home-module-arrow) {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-module-arrow {
  color: var(--green);
}

.home-articles {
  background: #fff;
  padding: 10px 0 44px;
}

.home-article-panel {
  padding: 24px;
}

.home-articles-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.featured-article-layout {
  display: grid;
  grid-template-columns: minmax(440px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.featured-article-card,
.article-card-compact,
.article-list-card,
.related-article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(25, 42, 32, 0.05);
}

.featured-article-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 0.44fr);
  min-height: 336px;
}

.article-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  background: var(--mint);
}

.featured-article-card .article-cover {
  min-height: 336px;
}

.article-copy {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 22px;
}

.article-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: var(--mint);
  padding: 5px 9px;
  color: #17623f;
  font-size: 0.78rem;
  font-weight: 900;
}

.article-copy h3,
.article-list-card h2,
.article-detail-title {
  margin: 0;
  color: #11251b;
  line-height: 1.22;
}

.featured-article-card h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.article-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-grid-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card-compact {
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 0.52fr);
  min-height: 158px;
}

.article-card-compact .article-cover {
  min-height: 158px;
}

.article-card-compact .article-copy {
  gap: 7px;
  padding: 16px;
}

.article-card-compact h3 {
  font-size: 1.14rem;
}

.article-card-compact p {
  font-size: 0.9rem;
}

.article-card-compact .article-button {
  min-height: 34px;
  justify-self: start;
  padding: 0 10px;
  font-size: 0.84rem;
}

.featured-article-card:hover,
.article-card-compact:hover,
.article-list-card:hover,
.related-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 77, 0.34);
  box-shadow: 0 16px 34px rgba(25, 42, 32, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.article-list-page .nav-tools {
  display: flex;
  align-items: center;
}

.article-list-page .nav-search {
  display: flex;
  align-items: center;
  width: min(300px, 24vw);
  min-height: 38px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  color: #65736c;
}

.article-list-page .nav-search svg {
  width: 18px;
  height: 18px;
}

.article-list-page .nav-search input,
.article-archive-search input,
.article-sort-select select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.article-list-page .nav-search input::placeholder,
.article-archive-search input::placeholder {
  color: #8b9790;
}

.article-list-shell {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 108px 0 28px;
}

.article-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 294px);
  gap: 30px;
  align-items: end;
  margin-bottom: 22px;
}

.article-page-hero h1 {
  margin-bottom: 8px;
  color: #0c3828;
  font-size: clamp(3rem, 4.7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-page-hero p {
  max-width: 780px;
  margin: 0;
  color: #53625a;
  font-size: 1.14rem;
  font-weight: 650;
}

.article-page-stats {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px 20px;
  color: #44534b;
  box-shadow: 0 12px 28px rgba(25, 42, 32, 0.04);
}

.article-page-stats span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.article-page-stats svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.article-page-stats strong {
  color: #13271d;
  font-size: 1.06rem;
  font-weight: 920;
}

.article-archive-layout {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.article-archive-sidebar,
.article-archive-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(25, 42, 32, 0.04);
}

.article-archive-sidebar {
  position: sticky;
  top: 92px;
}

.article-filter-panel {
  padding: 22px 20px;
}

.article-filter-panel h2,
.article-quick-links h2 {
  margin: 0 0 14px;
  color: #17291f;
  font-size: 1.04rem;
  line-height: 1.2;
}

.article-filter-list {
  display: grid;
  gap: 10px;
}

.article-filter-button,
.article-quick-links button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: #27372f;
  font: inherit;
  font-weight: 830;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.article-filter-button span,
.article-quick-links button {
  gap: 10px;
}

.article-filter-button span,
.article-quick-links button {
  display: flex;
  align-items: center;
}

.article-filter-button svg,
.article-quick-links svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.article-filter-button strong {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: #edf2ef;
  color: #53625a;
  font-size: 0.8rem;
  font-weight: 900;
}

.article-filter-button.is-active {
  border-color: #7eb998;
  background: #f2fbf4;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 77, 0.08);
}

.article-filter-button.is-active strong {
  background: var(--green);
  color: #fff;
}

.article-filter-button:hover,
.article-quick-links button:hover {
  border-color: #9ccdaf;
  background: #f7fcf8;
  color: var(--green);
}

.article-quick-links {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.article-quick-links button {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  padding: 7px 4px;
}

.article-archive-panel {
  overflow: hidden;
  padding: 14px;
}

.article-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 12px;
  margin-bottom: 12px;
}

.article-archive-search,
.article-sort-select {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #68766f;
}

.article-archive-search {
  gap: 9px;
  padding: 0 14px;
}

.article-archive-search svg,
.article-sort-select svg {
  width: 18px;
  height: 18px;
}

.article-sort-select {
  position: relative;
  padding: 0 12px 0 16px;
}

.article-sort-select select {
  appearance: none;
  cursor: pointer;
  color: #53625a;
  font-weight: 720;
}

.article-sort-select svg {
  pointer-events: none;
  color: #4d5d55;
}

.article-archive-list {
  display: grid;
}

.article-archive-card {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 122px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.article-archive-card:last-child {
  border-bottom: 0;
}

.article-archive-card.is-recommended {
  border: 1px solid #cfe3d6;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(239, 248, 241, 0.95), rgba(255, 255, 255, 0.98)),
    #fff;
  margin-bottom: 6px;
  box-shadow: 0 10px 24px rgba(31, 122, 77, 0.06);
}

.article-archive-card:hover {
  background: #f7fcf8;
}

.article-archive-thumb {
  position: relative;
  overflow: hidden;
  height: 126px;
  border-radius: 8px;
  background: #eef5ee;
}

.article-archive-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-recommend-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  background: var(--green);
  padding: 5px 9px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.article-archive-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
}

.article-archive-copy .article-pill {
  margin-bottom: 5px;
}

.article-archive-copy strong {
  display: block;
  max-width: 100%;
  margin-bottom: 4px;
  color: #10261b;
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  font-weight: 950;
  line-height: 1.18;
}

.article-archive-excerpt {
  display: -webkit-box;
  overflow: hidden;
  max-width: 760px;
  color: #52635b;
  font-size: 0.94rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-archive-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--green);
  font-weight: 920;
  white-space: nowrap;
}

.article-archive-action svg {
  width: 20px;
  height: 20px;
}

.article-archive-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbf8;
  margin: 8px 0 0;
  padding: 24px;
  color: #52635b;
  font-weight: 760;
  text-align: center;
}

.article-detail-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 86px;
}

.article-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.58fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}

.article-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
}

.article-detail-title {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.article-detail-excerpt {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-detail-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 49, 39, 0.1);
}

.article-detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1.26;
  object-fit: cover;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.article-toc strong {
  color: #11251b;
}

.article-toc a {
  border-radius: var(--radius);
  background: #f4faf4;
  padding: 9px 10px;
  color: #225f3e;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

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

.article-section,
.article-note,
.related-articles {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(25, 42, 32, 0.05);
}

.article-section h2 {
  margin-bottom: 12px;
  color: #11251b;
  font-size: clamp(1.36rem, 2.1vw, 1.85rem);
}

.article-subsection h3 {
  margin: 22px 0 8px;
  color: #173725;
  font-size: 1.08rem;
}

.article-section p,
.article-section li,
.article-note p {
  color: var(--muted);
  line-height: 1.9;
}

.article-section p:last-child,
.article-note p:last-child,
.article-section ul:last-child,
.article-section ol:last-child {
  margin-bottom: 0;
}

.article-section ul,
.article-section ol {
  margin: 0;
  padding-left: 1.2em;
}

.article-section li + li {
  margin-top: 8px;
}

.article-section-figure {
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf7;
  box-shadow: 0 12px 26px rgba(25, 42, 32, 0.06);
}

.article-section-figure img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.article-section-figure figcaption {
  margin: 0;
  padding: 10px 14px;
  color: #52645b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.article-section-highlight {
  border-radius: var(--radius);
  background: #eef8ef;
  padding: 14px 16px;
}

.article-section-highlight p {
  margin: 0;
  color: #1a5f3e;
  font-weight: 800;
}

.article-section-highlight p + p {
  margin-top: 8px;
}

.article-section-info {
  border-left: 7px solid var(--green);
  background:
    linear-gradient(135deg, rgba(232, 244, 235, 0.82), rgba(255, 255, 255, 0.98)),
    #fff;
}

.article-section-warning {
  border-left: 7px solid #d59435;
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.9), rgba(255, 255, 255, 0.98)),
    #fff;
}

.article-reference-list {
  display: grid;
  gap: 12px;
}

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

.article-reference-list span {
  display: block;
  color: #34473c;
  font-weight: 800;
}

.article-reference-list a {
  overflow-wrap: anywhere;
  color: var(--green);
  font-weight: 750;
}

.article-note {
  border-left: 7px solid var(--green);
  background:
    linear-gradient(135deg, rgba(232, 244, 235, 0.78), rgba(255, 255, 255, 0.98)),
    #fff;
}

.article-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-article-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.related-article-card img {
  width: 112px;
  height: 100%;
  object-fit: cover;
}

.related-article-card div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.related-article-card strong {
  line-height: 1.35;
}

.related-article-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.article-detail-page .nav {
  width: min(1440px, calc(100% - 56px));
}

.article-detail-page .nav a.is-active {
  color: var(--green);
  box-shadow: inset 0 -3px 0 var(--green);
}

.article-detail-page .nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-detail-page .nav-search {
  position: relative;
  width: min(300px, 24vw);
}

.article-detail-page .nav-search svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  color: #7a8780;
  transform: translateY(-50%);
}

.article-detail-page .nav-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d9dfd9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 42px 0 18px;
  color: var(--ink);
  outline: none;
}

.article-detail-page .nav-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.1);
}

.article-detail-page .article-detail-shell {
  width: min(1440px, calc(100% - 56px));
  padding: 60px 0 86px;
}

.article-detail-page .article-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 1.02fr) minmax(520px, 0.78fr);
  gap: 28px;
  align-items: center;
  min-height: 300px;
  margin-bottom: 14px;
}

.article-detail-page .article-detail-kicker {
  margin-bottom: 12px;
}

.article-detail-page .article-pill {
  padding: 6px 12px;
  font-size: 0.86rem;
}

.article-detail-page .article-detail-title {
  max-width: 820px;
  margin-bottom: 14px;
  color: #0d3424;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(3rem, 4vw, 4.15rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.article-detail-page .article-detail-excerpt {
  max-width: 760px;
  margin: 0;
  color: #4d5e56;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-detail-page .article-detail-cover {
  overflow: hidden;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-detail-page .article-detail-cover img {
  width: 100%;
  height: 280px;
  min-height: 260px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.article-nutrient-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(25, 42, 32, 0.04);
}

.article-nutrient-item {
  display: grid;
  grid-template-columns: 42px minmax(78px, 1fr) 58px;
  gap: 9px;
  align-items: center;
  min-height: 100px;
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.article-nutrient-item:last-child {
  border-right: 0;
}

.article-nutrient-item:hover {
  background: #f5fbf6;
  color: var(--green);
}

.article-nutrient-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b9d8c5;
  border-radius: 50%;
  color: var(--green);
}

.article-nutrient-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}

.article-nutrient-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.article-nutrient-copy strong {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  color: #133d2b;
  font-size: 0.98rem;
  line-height: 1.2;
}

.article-nutrient-copy strong span {
  white-space: nowrap;
}

.article-nutrient-desc {
  display: grid;
  gap: 1px;
  color: #586760;
  font-size: 0.82rem;
  line-height: 1.35;
}

.article-nutrient-desc span {
  display: block;
  white-space: nowrap;
}

.article-nutrient-item img {
  width: 58px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) .article-nutrient-item {
  grid-template-columns: 38px minmax(62px, 1fr) 48px;
  gap: 7px;
  padding: 10px 8px;
}

.article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) .article-nutrient-icon {
  width: 38px;
  height: 38px;
}

.article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) .article-nutrient-item img {
  width: 48px;
  height: 48px;
}

.article-detail-page .article-reading-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.article-detail-page .article-toc {
  top: 92px;
  gap: 0;
  padding: 16px;
}

.article-detail-page .article-toc strong {
  margin-bottom: 10px;
  font-size: 1rem;
}

.article-detail-page .article-toc a {
  border-radius: 6px;
  background: transparent;
  padding: 8px 10px;
  color: #3f4c45;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.article-detail-page .article-toc a.is-active,
.article-detail-page .article-toc a:hover {
  background: #eef8ef;
  color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}

.article-detail-page .article-body {
  gap: 18px;
}

.article-detail-page .article-section,
.article-detail-page .article-note,
.article-detail-page .related-articles {
  border-color: #dbe4dd;
  padding: 26px 34px;
  box-shadow: 0 12px 30px rgba(25, 42, 32, 0.04);
}

.article-detail-page .article-section-info {
  border-left: 1px solid #dbe4dd;
  background: rgba(255, 255, 255, 0.96);
}

.article-section-title-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.article-section-title-row h2 {
  margin: 0;
}

.article-section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #8dbe98;
  color: #fff;
}

.article-section-icon svg {
  width: 24px;
  height: 24px;
}

.article-detail-page .article-section h2 {
  color: #123c2a;
  font-size: clamp(1.6rem, 2.1vw, 2rem);
}

.article-detail-page .article-section p,
.article-detail-page .article-section li,
.article-detail-page .article-note p {
  color: #43534b;
  font-size: 1rem;
  line-height: 1.9;
}

.article-detail-page .article-section ol {
  counter-reset: article-step;
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.article-detail-page .article-section ol li {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
}

.article-detail-page .article-section ol li::before {
  position: absolute;
  left: 0;
  top: 0.25em;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  content: counter(article-step);
  counter-increment: article-step;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.article-detail-page .article-section-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #bfdcc9;
  background:
    linear-gradient(90deg, rgba(238, 248, 239, 0.94), rgba(255, 255, 255, 0.98)),
    #fff;
  margin-top: 20px;
  padding: 14px 18px;
}

.article-highlight-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b9d8c5;
  border-radius: 50%;
  color: var(--green);
}

.article-highlight-icon svg {
  width: 23px;
  height: 23px;
}

.article-detail-page .article-section-highlight p {
  color: #14603e;
  font-size: 0.98rem;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .home-hero-grid,
  .featured-article-layout,
  .article-detail-hero,
  .article-reading-layout {
    grid-template-columns: 1fr;
  }

  .home-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-visual {
    min-height: auto;
  }

  .home-hero-copy h1 {
    white-space: normal;
  }

  .article-toc {
    position: static;
  }

  .article-detail-page .article-detail-hero,
  .article-detail-page .article-reading-layout {
    grid-template-columns: 1fr;
  }

  .article-detail-page .article-detail-cover img {
    min-height: auto;
    aspect-ratio: 1.8;
  }

  .article-nutrient-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nutrient-item:nth-child(2n) {
    border-right: 0;
  }

  .article-archive-layout,
  .article-page-hero {
    grid-template-columns: 1fr;
  }

  .article-archive-sidebar {
    position: static;
  }

  .article-filter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-quick-links h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .home-hero .container,
  .home-modules .container,
  .home-articles .container {
    width: min(100% - 32px, 1440px);
  }

  .home-hero {
    padding-top: 48px;
  }

  .home-hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .home-modules-panel,
  .home-article-panel {
    padding: 16px;
  }

  .home-module-grid,
  .article-grid-secondary,
  .article-list-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .featured-article-card,
  .article-card-compact,
  .related-article-card {
    grid-template-columns: 1fr;
  }

  .featured-article-card .article-cover,
  .article-card-compact .article-cover {
    aspect-ratio: var(--article-cover-ratio);
    min-height: auto;
  }

  .home-articles-head,
  .article-page-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-list-page .nav-tools {
    display: none;
  }

  .article-list-shell,
  .article-detail-shell {
    width: min(100% - 32px, 1440px);
    padding-top: 108px;
  }

  .article-page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  .article-page-hero p {
    font-size: 1rem;
  }

  .article-page-stats {
    padding: 15px;
  }

  .article-archive-layout {
    gap: 14px;
  }

  .article-filter-panel,
  .article-archive-panel {
    padding: 14px;
  }

  .article-filter-list,
  .article-quick-links {
    grid-template-columns: 1fr;
  }

  .article-archive-toolbar {
    grid-template-columns: 1fr;
  }

  .article-sort-select {
    justify-self: start;
    min-width: 148px;
  }

  .article-archive-card,
  .article-archive-card.is-recommended {
    grid-template-columns: 1fr;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 12px;
  }

  .article-archive-card:last-child {
    margin-bottom: 0;
  }

  .article-archive-thumb {
    height: auto;
    aspect-ratio: var(--article-cover-ratio);
  }

  .article-archive-action {
    justify-self: start;
  }

  .article-detail-page .article-detail-shell {
    width: min(100% - 32px, 1440px);
    padding-top: 96px;
  }

  .article-detail-page .article-detail-hero {
    min-height: auto;
  }

  .article-detail-page .article-detail-title {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .article-detail-page .nav-tools {
    display: none;
  }

  .article-nutrient-strip {
    grid-template-columns: 1fr;
  }

  .article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) {
    grid-template-columns: 1fr;
  }

  .article-nutrient-item {
    grid-template-columns: 42px minmax(0, 1fr) 74px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) .article-nutrient-item {
    grid-template-columns: 42px minmax(0, 1fr) 74px;
    padding: 12px 10px;
  }

  .article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) .article-nutrient-icon {
    width: 42px;
    height: 42px;
  }

  .article-nutrient-strip:has(.article-nutrient-item:nth-child(7)) .article-nutrient-item img {
    width: 74px;
    height: 54px;
  }

  .article-nutrient-item:last-child {
    border-bottom: 0;
  }

  .article-detail-page .article-section,
  .article-detail-page .article-note,
  .article-detail-page .related-articles {
    padding: 22px;
  }

  .article-detail-page .article-section-highlight {
    align-items: flex-start;
  }

  .article-detail-cover img {
    aspect-ratio: var(--article-cover-ratio);
  }
}
