:root {
  --farm-green: #1F5E2D;
  --farm-green-deep: #184B24;
  --farm-gold: #C8A227;
  --farm-gold-soft: #f4ecce;
  --farm-bg: #f7f8f4;
  --farm-surface: #ffffff;
  --farm-surface-soft: #eef7f0;
  --farm-surface-alt: #f5f8f5;
  --farm-text: #1d3125;
  --farm-muted: #5f7367;
  --farm-border: rgba(24, 75, 36, 0.12);
  --farm-shadow: 0 18px 40px rgba(20, 49, 31, 0.08);
  --farm-shadow-soft: 0 12px 28px rgba(20, 49, 31, 0.06);
}

body[data-theme="dark"] {
  --farm-bg: #0b1713;
  --farm-surface: #101d18;
  --farm-surface-soft: #13261d;
  --farm-surface-alt: #162a22;
  --farm-text: #edf6ee;
  --farm-muted: #b0c5b4;
  --farm-border: rgba(190, 224, 197, 0.14);
  --farm-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --farm-shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  background: var(--farm-bg);
  color: var(--farm-text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.article-shell {
  transition: background 0.25s ease, color 0.25s ease;
}

.article-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f9faf7 0%, #f3f7f3 100%);
}

.article-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.96), rgba(240, 247, 242, 0.96));
  border-bottom: 1px solid rgba(24, 75, 36, 0.08);
  box-shadow: 0 12px 28px rgba(15, 44, 26, 0.04);
}

.topbar,
.article-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar,
.article-header-inner,
.article-main,
.article-footer-inner,
.article-section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:84px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar .actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.topbar .actions a,
.topbar .actions button,
.article-header .article-actions a,
.article-header .article-actions button {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topbar .actions a:hover,
.topbar .actions button:hover,
.article-header .article-actions a:hover,
.article-header .article-actions button:hover { transform: translateY(-1px); }
.topbar .btn-primary,
.topbar .btn-outline,
.topbar .btn-outline1,
.article-header .article-btn,
.article-header .article-btn-secondary {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topbar .btn-primary,
.article-header .article-btn {
  display:inline-flex; align-items:center; justify-content:center; padding:11px 18px; background: linear-gradient(135deg, var(--farm-green) 0%, var(--farm-green-deep) 100%); color:#fff; box-shadow: 0 10px 22px rgba(31, 94, 45, 0.18);
}
.topbar .btn-outline,
.topbar .btn-outline1,
.article-header .article-btn-secondary {
  display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border:1px solid rgba(31, 94, 45, 0.18); background: rgba(31, 94, 45, 0.04); color: var(--farm-green-deep);
}
.topbar .actions .header-cart-button,
.article-header .article-theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(31, 94, 45, 0.12); background: rgba(255,255,255,0.82); color: var(--farm-green-deep); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-shadow: var(--farm-shadow-soft);
}

.article-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.article-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--farm-green-deep);
}

.article-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.article-brand span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c7857;
}

.article-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--farm-text);
  font-weight: 600;
  font-size: 0.94rem;
}

.article-nav a {
  color: #213d2a;
  opacity: 0.9;
}

.article-nav a:hover { opacity: 1; }

.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 94, 45, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--farm-green-deep);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--farm-shadow-soft);
}

.article-btn,
.article-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-btn {
  background: linear-gradient(135deg, var(--farm-green) 0%, var(--farm-green-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 94, 45, 0.18);
}

.article-btn-secondary {
  border: 1px solid rgba(31, 94, 45, 0.18);
  background: rgba(31, 94, 45, 0.04);
  color: var(--farm-green-deep);
}

.article-btn:hover,
.article-btn-secondary:hover { transform: translateY(-1px); }

.article-hero {
  padding: 42px 0 30px;
}

.article-hero-inner {
  background: linear-gradient(135deg, rgba(31, 94, 45, 0.04), rgba(200, 162, 39, 0.08));
  border: 1px solid var(--farm-border);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--farm-shadow-soft);
}

.article-hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 94, 45, 0.08);
  color: var(--farm-green-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-page-title,
.home-page-title {
  margin: 18px 0 14px;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--farm-green-deep);
}

.article-page-title {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.home-page-title {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
}

.article-subtitle {
  margin: 0 0 20px;
  font-size: 1.05rem;
  color: var(--farm-muted);
  max-width: 680px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.89rem;
  color: var(--farm-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  border: 1px solid var(--farm-border);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.72fr);
  gap: 30px;
  padding: 22px 0 30px;
}

.article-main-column,
.article-side-column {
  min-width: 0;
}

.article-feature-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--farm-shadow);
  border: 1px solid var(--farm-border);
  margin: 18px 0 26px;
}

.article-feature-image img {
  width: 100%;
  height: 470px;
  object-fit: contain;
  object-position: center;
  background: #f6f4ef;
}

.article-visual-break {
  margin: 2rem 0 1.5rem;
  border: 1px solid var(--farm-border);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--farm-shadow-soft);
}

.article-visual-break img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, rgba(31, 94, 45, 0.08), rgba(200, 162, 39, 0.12));
}

.article-visual-break figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.82rem;
  color: var(--farm-muted);
  background: rgba(255,255,255,0.9);
}

.article-body {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--farm-border);
  border-radius: 24px;
  box-shadow: var(--farm-shadow-soft);
  padding: clamp(18px, 3vw, 34px);
}

.article-body p,
.article-body li,
.article-body td,
.article-body th {
  font-size: 1.01rem;
  color: #2b3f34;
}

.article-body p {
  margin: 0 0 1.2em;
  font-size: 1.06rem;
}

.article-body section {
  margin-top: 1rem;
}

.article-body h2,
.article-body h3 {
  margin: 1.8em 0 0.8em;
  color: var(--farm-green-deep);
  letter-spacing: -0.03em;
}

.article-body h2 { font-size: clamp(1.6rem, 2vw, 2.1rem); }
.article-body h3 { font-size: 1.2rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.25rem;
}

.article-body li + li { margin-top: 7px; }

.article-body blockquote {
  margin: 1.4em 0;
  padding: 1rem 1.1rem 1rem 1.2rem;
  background: rgba(200, 162, 39, 0.08);
  border-left: 4px solid var(--farm-gold);
  border-radius: 0 16px 16px 0;
  color: #213a2c;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.2em 0 1.5em;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(24, 75, 36, 0.1);
  background: #fff;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(24, 75, 36, 0.08);
  vertical-align: top;
}

.article-table thead th {
  background: rgba(31, 94, 45, 0.08);
  color: var(--farm-green-deep);
  font-weight: 800;
}

.takeaway-box,
.toc-box,
.share-box,
.cta-card,
.related-box,
.faq-box {
  background: var(--farm-surface);
  border: 1px solid var(--farm-border);
  border-radius: 18px;
  box-shadow: var(--farm-shadow-soft);
}

.takeaway-box {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(31, 94, 45, 0.08), rgba(200, 162, 39, 0.05));
}

.takeaway-box strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--farm-green-deep);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.takeaway-box p {
  margin: 0;
  font-size: 1.03rem;
  color: #214128;
}

.toc-box,
.share-box,
.cta-card,
.related-box,
.faq-box {
  padding: 0.9rem 0.92rem;
}

.toc-box h3,
.share-box h3,
.cta-card h3,
.related-box h3,
.faq-box h3 {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--farm-green-deep);
}

.article-side-column {
  position: sticky;
  top: 94px;
  align-self: start;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(31, 94, 45, 0.03);
  color: var(--farm-text);
  font-size: 0.88rem;
}

.toc-list a:hover {
  background: rgba(31, 94, 45, 0.08);
}

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

.share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31, 94, 45, 0.08);
  color: var(--farm-green-deep);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.share-list a:hover {
  transform: translateY(-1px);
  background: rgba(31, 94, 45, 0.13);
}

.share-list a img,
.share-list a svg {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.share-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cta-card {
  padding: 1.2rem;
  background: linear-gradient(150deg, rgba(31, 94, 45, 0.08), rgba(200, 162, 39, 0.08));
}

.cta-card p {
  margin: 0 0 1rem;
  color: var(--farm-muted);
}

.cta-stack {
  display: grid;
  gap: 10px;
}

.related-grid,
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.related-card,
.home-card {
  background: #fff;
  border: 1px solid var(--farm-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--farm-shadow-soft);
}

.related-card img,
.home-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  background: #f6f4ef;
}

.related-card-body,
.home-card-body {
  padding: 18px 16px 20px;
}

.related-card-body h4,
.home-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--farm-green-deep);
}

.related-card-body p,
.home-card-body p {
  margin: 0 0 12px;
  color: var(--farm-muted);
  font-size: 0.94rem;
}

.meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--farm-muted);
  font-size: 0.76rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(31, 94, 45, 0.03);
  border: 1px solid rgba(24, 75, 36, 0.06);
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--farm-green-deep);
}

.faq-item p {
  margin: 0;
  color: var(--farm-muted);
}

.article-footer,
.site-footer {
  margin-top: 34px;
  background: linear-gradient(180deg, #0d1b12 0%, #10281a 100%);
  color: #edf6ee;
}

.article-footer-inner,
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 12px 18px;
  padding: 52px 0 28px;
}

.site-footer .footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer .footer-grid h3,
.article-footer .footer-col h3 {
  margin: 0 0 18px;
  color: #f1f8f3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.site-footer ul,
.article-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer span,
.article-footer p,
.article-footer a,
.article-footer li,
.article-footer span {
  color: rgba(237, 246, 238, 0.78);
}

.site-footer .footer-social,
.article-footer .footer-col .footer-social {
  margin-top: 14px;
}

.site-footer .footer-social-links,
.article-footer .footer-social-links {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px;
}

.site-footer .footer-social-links a,
.article-footer .footer-social-links a {
  display:inline-flex; width:42px; height:42px; border-radius:10px; align-items:center; justify-content:center; background: rgba(255,255,255,0.04); overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}

.site-footer .footer-social-links img,
.article-footer .footer-social-links img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.footer-col h4 {
  margin: 0 0 18px;
  color: #f1f8f3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.footer-col p,
.footer-col a,
.footer-col li {
  color: rgba(237, 246, 238, 0.78);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 26px;
  color: rgba(237, 246, 238, 0.75);
  font-size: 0.8rem;
  text-align: flex !important;
}

.page-controls {
  padding: 8px 0 30px;
}

.home-hero {
  padding: 40px 0 32px;
}

.home-hero-inner {
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 94, 45, 0.96), rgba(24, 75, 36, 0.96));
  box-shadow: var(--farm-shadow);
}

.home-hero-inner .article-hero-copy {
  max-width: 100%;
  color: #fff;
}

.home-hero-inner .article-subtitle {
  color: rgba(255,255,255,0.82);
}

.home-hero-inner .eyebrow {
  background: rgba(255,255,255,0.14);
  color: #e7f8eb;
}

.home-hero-surface {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: stretch;
  min-height: 300px;
}

.home-hero-main {
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-side {
  position: relative;
  min-height: 230px;
}

.home-hero-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f4ef;
}

.filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 12px;
}

.filter-chip {
  border: 1px solid rgba(24, 75, 36, 0.12);
  background: #fff;
  color: var(--farm-green-deep);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--farm-green-deep);
  color: #fff;
}

.search-wrap {
  position: relative;
  margin: 18px 0 30px;
}

.search-wrap input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(24, 75, 36, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--farm-text);
  box-shadow: var(--farm-shadow-soft);
}

.search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--farm-muted);
  font-size: 1.3rem;
}

.home-card {
  transition: transform 0.2s ease;
}

.home-card:hover,
.related-card:hover { transform: translateY(-2px); }

.home-card-body .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(31, 94, 45, 0.08);
  color: var(--farm-green-deep);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px;
}

.article-not-found {
  width: min(760px, calc(100% - 32px));
  margin: 70px auto;
  background: #fff;
  border: 1px solid var(--farm-border);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: var(--farm-shadow-soft);
  text-align: center;
}

.article-not-found h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--farm-green-deep);
}

.article-not-found p {
  margin: 0 0 18px;
  color: var(--farm-muted);
}

body[data-theme="dark"] .article-shell {
  background: linear-gradient(180deg, #101d18 0%, #0b1713 100%);
  color: var(--farm-text);
}

body[data-theme="dark"] .article-header,
body[data-theme="dark"] .topbar {
  background: rgba(13, 23, 19, 0.82);
  border-bottom-color: rgba(190, 224, 197, 0.08);
}

body[data-theme="dark"] .article-body,
body[data-theme="dark"] .related-box,
body[data-theme="dark"] .faq-box,
body[data-theme="dark"] .cta-card,
body[data-theme="dark"] .share-box,
body[data-theme="dark"] .toc-box,
body[data-theme="dark"] .home-card,
body[data-theme="dark"] .related-card,
body[data-theme="dark"] .article-not-found {
  background: var(--farm-surface);
  color: var(--farm-text);
}

body[data-theme="dark"] .article-body p,
body[data-theme="dark"] .article-body li,
body[data-theme="dark"] .faq-item p,
body[data-theme="dark"] .home-card-body p,
body[data-theme="dark"] .related-card-body p,
body[data-theme="dark"] .cta-card p,
body[data-theme="dark"] .toc-list a,
body[data-theme="dark"] .article-subtitle,
body[data-theme="dark"] .meta-inline,
body[data-theme="dark"] .meta-pill,
body[data-theme="dark"] .takeaway-box p,
body[data-theme="dark"] .faq-item strong {
  color: var(--farm-text);
}

body[data-theme="dark"] .article-btn-secondary,
body[data-theme="dark"] .share-list a,
body[data-theme="dark"] .meta-pill,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .search-wrap input,
body[data-theme="dark"] .article-theme-toggle {
  background: rgba(18, 31, 27, 0.9);
  border-color: rgba(190, 224, 197, 0.12);
  color: var(--farm-text);
}

body[data-theme="dark"] .article-btn-secondary:hover,
body[data-theme="dark"] .share-list a:hover {
  background: rgba(30, 53, 46, 0.95);
}

body[data-theme="dark"] .article-body blockquote,
body[data-theme="dark"] .takeaway-box {
  background: rgba(200, 162, 39, 0.08);
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.6fr);
    gap: 18px;
  }

  .article-side-column {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 18px;
  }

  .article-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero-surface {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.42fr);
    gap: 14px;
  }

  .article-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .article-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.82rem;
  }

  .article-actions {
    width: 100%;
    justify-content: center;
  }

  .article-footer-inner,
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-feature-image img {
    height: 300px;
  }

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

  .share-list a {
    width: 100%;
    min-height: 42px;
  }
}
