:root {
  --paper: #f6ecdd;
  --paper-2: #fff8ed;
  --ink: #21140d;
  --muted: #725949;
  --line: rgba(92, 61, 38, 0.22);
  --red: #b94335;
  --green: #245f4e;
  --green-soft: #dfe9de;
  --gold: #b98b4c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(185, 67, 53, 0.14), transparent 26%),
    radial-gradient(circle at 91% 7%, rgba(36, 95, 78, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(92, 61, 38, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, auto;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.page {
  margin: 0 auto;
  max-width: 1440px;
  min-height: 100vh;
  overflow: hidden;
}

.masthead {
  align-items: center;
  background: rgba(255, 248, 237, 0.86);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(12rem, 1fr) auto;
  padding: 1rem clamp(1rem, 4vw, 2.2rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
h1,
h2,
h3 {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 0;
}

.brand {
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: end;
}

.nav a,
.pill,
.keyword,
.tag-row span {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  padding: 0.28rem 0.58rem;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.4rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(19rem, 0.78fr);
  padding: clamp(1.4rem, 5vw, 3rem) clamp(1rem, 4vw, 2.2rem);
}

.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.09em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.55rem, 7.4vw, 5.8rem);
  line-height: 0.92;
  margin-bottom: 1rem;
  max-width: 62rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.55rem;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.06;
  margin-bottom: 0.45rem;
}

p {
  margin-top: 0;
}

.lead,
.directory-item p,
.article p,
.faq p,
.soft-card p,
.newsletter p {
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  max-width: 45rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
}

.button-link.secondary {
  background: var(--green);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.trust-strip span {
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.42rem 0.68rem;
}

.search-panel {
  border: 1px solid rgba(112, 63, 41, 0.24);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 1.25rem;
  max-width: 38rem;
  overflow: hidden;
  background: rgba(255, 249, 239, 0.9);
}

.search-panel input,
.search-panel select,
.search-panel button {
  border: 0;
  min-width: 0;
  padding: 0.78rem 1rem;
}

.search-panel input,
.search-panel select {
  background: transparent;
  color: var(--ink);
}

.search-panel select {
  appearance: none;
  cursor: pointer;
}

.search-panel button {
  background: var(--red);
  color: #fff7ed;
  cursor: pointer;
  font-weight: 700;
}

.featured-card {
  align-content: end;
  background-image:
    linear-gradient(180deg, transparent 28%, rgba(33, 20, 13, 0.82)),
    url("assets/hero-study.png");
  background-position: center;
  background-size: cover;
  border-radius: 1rem;
  box-shadow: 0 18px 38px rgba(50, 32, 19, 0.18);
  color: #fff7ed;
  display: grid;
  min-height: 24rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.featured-content {
  position: relative;
  z-index: 1;
}

.featured-card h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.96;
  margin-bottom: 0.6rem;
}

.featured-card p {
  color: rgba(255, 247, 237, 0.86);
}

.section {
  background: rgba(255, 248, 237, 0.34);
  border-top: 1px solid var(--line);
  padding: clamp(1.3rem, 4vw, 2.25rem) clamp(1rem, 4vw, 2.2rem);
}

.section-head {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1rem;
}

.directory-grid {
  background: rgba(255, 250, 242, 0.66);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.directory-item {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 18rem;
  padding: 1rem;
}

.card-link {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-link:hover {
  border-color: rgba(36, 95, 78, 0.42);
  box-shadow: 0 12px 26px rgba(36, 27, 22, 0.1);
  transform: translateY(-2px);
}

.card-link h2,
.card-link h3 {
  color: var(--ink);
}

.directory-item:last-child {
  border-right: 0;
}

.directory-item.primary {
  background: linear-gradient(180deg, rgba(185, 67, 53, 0.11), transparent);
}

.idx {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.thumb,
.article-image,
.mini-image {
  background-color: rgba(242, 232, 216, 0.9);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(92, 61, 38, 0.16);
  border-radius: 0.75rem;
  min-height: 7rem;
  overflow: hidden;
}

.bazi {
  background-image: url("assets/category-bazi.png");
}

.qimen {
  background-image: url("assets/category-qimen.png");
}

.daily {
  background-image: url("assets/category-daily.png");
}

.feng {
  background-image: url("assets/category-feng.png");
}

.reports {
  background-image: url("assets/category-reports.png");
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row span {
  font-size: 0.88rem;
}

.meta {
  color: var(--green);
  margin-top: auto;
}

.paths {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path {
  align-items: center;
  background: rgba(255, 250, 242, 0.66);
  border-left: 4px solid var(--green);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 5.2rem 1fr;
  padding: 1rem;
}

.path:nth-child(2) {
  border-left-color: var(--red);
}

.path:nth-child(3) {
  border-left-color: var(--gold);
}

.mini-image {
  aspect-ratio: 1;
  border-radius: 999px;
  min-height: 0;
}

.article-layout {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
}

.article-layout-home {
  align-items: start;
  gap: 1rem;
  grid-template-columns: minmax(19rem, 0.92fr) minmax(22rem, 1.08fr);
}

.article-main,
.article-list,
.faq,
.soft-card {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
}

.article-main {
  background:
    linear-gradient(135deg, rgba(185, 67, 53, 0.12), transparent 42%),
    rgba(255, 250, 242, 0.78);
  display: grid;
  gap: 1rem;
  min-height: 22rem;
}

.article-main-home {
  align-content: start;
  align-self: stretch;
  gap: 1rem;
  grid-template-rows: auto auto;
  min-height: 100%;
  padding: 1rem;
}

.article-main-copy {
  align-content: start;
  display: grid;
  gap: 0.55rem;
  max-width: 36rem;
}

.article-main-copy p {
  color: #5c4d41;
  line-height: 1.62;
}

.article-main-preview {
  border-top: 1px solid rgba(92, 61, 38, 0.12);
  margin-top: 0.2rem;
  padding-top: 0.85rem;
}

.article-main-preview p {
  color: #6a5646;
  font-size: 0.96rem;
  line-height: 1.72;
  margin-bottom: 0;
}

.article-image {
  min-height: 10rem;
}

.article-image-featured {
  aspect-ratio: 16 / 9;
  border-radius: 0.8rem;
  height: clamp(12rem, 19vw, 15rem);
  min-height: 0;
  object-fit: cover;
  width: 100%;
}

.article-image-inline {
  aspect-ratio: 4 / 3;
  min-height: 0;
  object-fit: cover;
  width: 100%;
}

.article-main h3 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1;
}

.article-main-home h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.article-main h3 a,
.article h3 a {
  color: inherit;
}

.article-main h3 a:hover,
.article h3 a:hover {
  color: var(--red);
}

.article-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.article-list-home {
  align-content: start;
  background: transparent;
  border: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  overflow: visible;
  padding: 0;
}

.article-rail {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(249, 241, 229, 0.84));
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: 0.95rem;
}

.article-rail-intro {
  border-bottom: 1px solid rgba(92, 61, 38, 0.12);
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.8rem;
}

.article-rail-intro .eyebrow {
  margin-bottom: 0;
}

.article-rail-intro h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.article-rail-intro p:last-child {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.article-rail-footer {
  border-top: 1px solid rgba(92, 61, 38, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  padding-top: 0.8rem;
}

.article {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 5rem 1fr;
  padding: 0.85rem 1rem;
}

.article:last-child {
  border-bottom: 0;
}

.article .article-image {
  border-radius: 0.55rem;
  min-height: 4.6rem;
}

.article-list-home .article {
  align-items: start;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(92, 61, 38, 0.12);
  border-radius: 0.8rem;
  gap: 0.8rem;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  min-height: 0;
  padding: 0.8rem;
}

.article-list-home .article h3 {
  font-size: clamp(1.03rem, 1.2vw, 1.16rem);
  line-height: 1.08;
  margin-bottom: 0.22rem;
}

.article-list-home .article p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.topic {
  color: var(--green);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.faq-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

.faq {
  align-items: start;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr;
}

.q {
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green);
  display: grid;
  height: 2rem;
  place-items: center;
  width: 2rem;
}

.newsletter {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(36, 95, 78, 0.16), transparent),
    rgba(255, 250, 242, 0.76);
  border: 1px solid rgba(36, 95, 78, 0.22);
  border-radius: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
  padding: 1.1rem;
}

.email {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}

.email input,
.email button {
  border: 0;
  min-width: 0;
  padding: 0.72rem 0.9rem;
}

.email input {
  background: transparent;
  color: var(--ink);
}

.email button {
  background: var(--red);
  color: #fff7ed;
  cursor: pointer;
  font-weight: 700;
}

.soft-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.9rem;
}

.soft-card {
  background: rgba(255, 250, 242, 0.58);
}

.soft-link {
  border-bottom: 1px solid currentColor;
  color: var(--green);
  display: inline-block;
  margin-top: 0.5rem;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.category-footer-actions,
.article-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.article-empty-actions {
  margin-top: 24px;
}

.lead-form {
  display: grid;
  gap: 0.65rem;
}

.lead-form input,
.lead-form textarea {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  padding: 0.72rem 0.82rem;
  resize: vertical;
}

.lead-form button {
  background: var(--red);
  border: 0;
  border-radius: 999px;
  color: #fff7ed;
  cursor: pointer;
  font-weight: 700;
  padding: 0.72rem 0.9rem;
}

.lead-form.compact {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.footer {
  background: rgba(255, 248, 237, 0.72);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.2rem);
}

@media (max-width: 900px) {
  .hero,
  .article-layout,
  .newsletter,
  .soft-grid {
    grid-template-columns: 1fr;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-item {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: auto;
  }

  .directory-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .masthead,
  .paths,
  .faq-grid,
  .path,
  .article {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: start;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .email {
    border-radius: 0.8rem;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }
}

.category-hero {
  align-items: stretch;
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.2rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  padding: clamp(1.4rem, 5vw, 3rem) clamp(1rem, 4vw, 2.2rem);
}

.category-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.3rem);
}

.category-hero-card {
  align-content: end;
  background-image:
    linear-gradient(180deg, transparent 24%, rgba(33, 20, 13, 0.82)),
    url("assets/category-strip.png");
  background-size: 500% 100%;
  border-radius: 1rem;
  color: #fff7ed;
  display: grid;
  min-height: 22rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.category-hero-card.bazi {
  background-position: 0% 50%;
}

.category-hero-card.qimen {
  background-position: 25% 50%;
}

.category-hero-card.daily {
  background-position: 50% 50%;
}

.category-hero-card.feng {
  background-position: 75% 50%;
}

.category-hero-card.reports {
  background-position: 100% 50%;
}

.category-hero-card p {
  color: rgba(255, 247, 237, 0.86);
}

.start-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.start-card,
.guide-row {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
}

.start-card {
  border-left: 4px solid var(--green);
}

.guide-list-page {
  display: grid;
  gap: 0.75rem;
}

.guide-row {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.guide-index {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.guide-row p,
.start-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-cloud span {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.42rem 0.72rem;
}

.category-footer-cta {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-focus-panel,
.article-study-panel {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(36, 95, 78, 0.14), transparent 48%),
    rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(36, 95, 78, 0.22);
  border-radius: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.category-focus-panel h2,
.article-study-panel h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
  line-height: 1;
}

.category-focus-panel p:last-child,
.article-study-panel p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.qimen-focus {
  background:
    linear-gradient(135deg, rgba(185, 67, 53, 0.13), transparent 46%),
    rgba(255, 250, 242, 0.78);
}

.daily-focus {
  background:
    linear-gradient(135deg, rgba(185, 139, 76, 0.16), transparent 46%),
    rgba(255, 250, 242, 0.78);
}

.reports-focus {
  background:
    linear-gradient(135deg, rgba(43, 31, 23, 0.12), transparent 46%),
    rgba(255, 250, 242, 0.78);
}

.focus-actions {
  align-items: flex-start;
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  min-width: 13rem;
}

.editorial-panel {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(244, 232, 213, 0.72)),
    radial-gradient(circle at 12% 18%, rgba(179, 58, 39, 0.12), transparent 28%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.72fr);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.editorial-copy {
  align-content: start;
  display: grid;
  gap: 0.9rem;
}

.editorial-panel h2 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 0.98;
  margin-bottom: 0.25rem;
  max-width: 8ch;
}

.editorial-panel-home {
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.editorial-copy-home {
  max-width: 42rem;
}

.editorial-copy-home h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.04;
  margin-bottom: 0.35rem;
  max-width: 11ch;
}

.editorial-copy-home p {
  color: #5d4d42;
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 0;
  max-width: 38rem;
}

.editorial-mark {
  align-content: start;
  border-left: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 0.7rem;
  padding-left: clamp(1rem, 2.2vw, 1.4rem);
}

.editorial-mark strong {
  color: var(--ink);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 11ch;
}

.editorial-mark-home {
  align-content: start;
  background: rgba(255, 251, 245, 0.78);
  border: 1px solid rgba(92, 61, 38, 0.12);
  border-left: 1px solid rgba(92, 61, 38, 0.12);
  border-radius: 0.9rem;
  gap: 0.9rem;
  padding: 1rem;
}

.editorial-mark-header {
  display: grid;
  gap: 0.3rem;
}

.editorial-mark-header .eyebrow {
  margin-bottom: 0;
}

.editorial-mark-header p:last-child {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.editorial-principles {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.editorial-principles li {
  background: rgba(255, 249, 240, 0.62);
  border: 1px solid rgba(92, 61, 38, 0.08);
  border-radius: 0.72rem;
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.85rem;
}

.editorial-principles strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.08;
}

.editorial-principles span {
  color: #67564a;
  font-size: 0.9rem;
  line-height: 1.52;
}

.method-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-card,
.editor-note {
  background: rgba(255, 250, 242, 0.76);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.method-card span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.editor-note {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.9), rgba(246, 236, 219, 0.62));
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.2rem);
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  padding: 1rem 1.1rem;
}

.editor-note > div {
  align-content: start;
  display: grid;
  gap: 0.35rem;
  padding-right: 1rem;
}

.editor-note h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.02;
  margin-bottom: 0;
  max-width: 10ch;
}

.editor-note p {
  border-left: 1px solid rgba(92, 61, 38, 0.12);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin-bottom: 0;
  max-width: 44rem;
  padding-left: 1rem;
}

.guide-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.guide-tags span {
  background: rgba(27, 75, 58, 0.08);
  border: 1px solid rgba(27, 75, 58, 0.16);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.76rem;
  padding: 0.28rem 0.52rem;
}

.site-disclaimer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex: 1 0 100%;
  font-size: 0.86rem;
  line-height: 1.65;
  margin-top: 1rem;
  padding-top: 1rem;
}

.back-to-top {
  background: var(--green);
  border: 1px solid rgba(255, 247, 237, 0.4);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: 0 12px 26px rgba(36, 27, 22, 0.18);
  color: #fff7ed;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  position: fixed;
  right: 1rem;
  z-index: 20;
}

.back-to-top:hover {
  background: #133f30;
}

.calculator-feature {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(43, 31, 23, 0.92), rgba(102, 38, 31, 0.84)),
    url("assets/category-strip.png");
  background-position: center;
  background-size: cover;
  border-radius: 1rem;
  color: #fff7ed;
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.calculator-feature p,
.calculator-feature .eyebrow {
  color: rgba(255, 247, 237, 0.82);
}

.calculator-feature h2 {
  color: #fff7ed;
}

.calculator-feature .tag-row span {
  border-color: rgba(255, 247, 237, 0.28);
  color: rgba(255, 247, 237, 0.86);
}

.calculator-feature-actions {
  align-items: flex-start;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.button-link {
  background: var(--red);
  border: 0;
  border-radius: 999px;
  color: #fff7ed;
  display: inline-flex;
  font-weight: 700;
  padding: 0.82rem 1.1rem;
}

.calculator-layout {
  align-items: start;
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
  grid-template-columns: minmax(18rem, 0.46fr) minmax(0, 1fr);
}

.calculator-card,
.result-panel {
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.45rem);
}

.calculator-card label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.calculator-card input,
.calculator-card select {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  font: inherit;
  padding: 0.76rem 0.85rem;
}

.calculator-card button {
  background: var(--green);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.82rem 1rem;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.check-row input {
  width: auto;
}

.form-note,
.reading-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-panel.is-empty {
  min-height: 24rem;
}

.pillar-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pillar-card {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem;
}

.pillar-card span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pillar-card strong {
  color: var(--red);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0.25rem 0;
}

.element-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.element-grid div {
  background: rgba(27, 75, 58, 0.08);
  border: 1px solid rgba(27, 75, 58, 0.14);
  border-radius: 0.8rem;
  padding: 0.75rem;
}

.element-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.element-grid strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.article-index,
.article-detail {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 22px 72px;
}

.breadcrumb-nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.45rem;
  letter-spacing: 0.04em;
  margin: 0 auto 1rem;
  max-width: 1120px;
  padding: 0 22px;
  text-transform: uppercase;
}

.article-index > .breadcrumb-nav,
.article-detail > .breadcrumb-nav {
  margin: 0 0 1rem;
  padding: 0;
}

.breadcrumb-nav a {
  border-bottom: 1px solid rgba(27, 75, 58, 0.28);
  color: var(--green);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  border-bottom-color: var(--green);
  color: var(--red);
}

.article-page-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
}

.article-page-hero h1,
.article-detail h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}

.article-filters a {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
}

.article-filters a.active,
.article-filters a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fffaf2;
}

.article-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.article-card {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
}

.article-card img {
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  margin-bottom: 0.85rem;
  object-fit: cover;
  width: 100%;
}

.article-kicker,
.article-card span {
  color: var(--red);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.05;
}

.article-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.article-detail {
  max-width: 920px;
}

.article-detail-hero {
  border-bottom: 1px solid var(--line);
  margin: 1.2rem 0 1.4rem;
  padding-bottom: 1.4rem;
}

.article-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  margin-bottom: 0.8rem;
}

.article-topline .article-kicker {
  margin-bottom: 0;
}

.article-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.article-jump-links a {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.48rem 0.75rem;
}

.article-back-link {
  border-bottom: 1px solid currentColor;
  color: var(--green);
  font-size: 0.9rem;
}

.article-standfirst {
  color: #6c4a38;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.6;
  margin-top: 0.8rem;
}

.article-cover {
  border-radius: 1rem;
  margin: 1.4rem 0;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.article-body {
  color: #332b24;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.6em;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  color: #5f5146;
  margin-left: 0;
  padding-left: 1rem;
}

.article-body img {
  border-radius: 0.8rem;
  height: auto;
  max-width: 100%;
}

.article-study-panel {
  gap: 1.4rem;
  grid-template-columns: minmax(16rem, 0.54fr) minmax(0, 1fr);
  margin: 2rem 0;
}

.article-study-panel > div:first-child {
  display: grid;
  gap: 0.55rem;
  max-width: 18rem;
}

.article-study-panel h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.03;
  margin-bottom: 0.25rem;
  max-width: 9ch;
}

.article-study-panel > div:first-child p:last-child {
  max-width: 16rem;
}

.article-next-grid {
  align-content: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.article-next-grid .start-card {
  background: rgba(255, 252, 247, 0.82);
  min-height: 0;
}

.article-cta {
  background:
    linear-gradient(135deg, rgba(36, 95, 78, 0.16), transparent 48%),
    rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(36, 95, 78, 0.22);
  border-radius: 1rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.72fr);
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.article-cta h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.article-cta-copy p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.article-cta-actions {
  display: grid;
  gap: 0.75rem;
}

.article-mini-form {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
}

.article-mini-form input,
.article-mini-form textarea {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

.article-mini-form button {
  background: var(--red);
  border: 0;
  border-radius: 999px;
  color: #fff7ed;
  cursor: pointer;
  font-weight: 800;
  padding: 0.68rem 0.85rem;
}

.article-mini-form.subscribe {
  grid-template-columns: minmax(0, 1fr) auto;
}

.article-related {
  border-top: 1px solid var(--line);
  margin: 2rem 0 1.2rem;
  padding-top: 1.4rem;
}

.empty-state {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
}

@media (max-width: 900px) {
  .category-hero,
  .start-grid,
  .category-footer-cta,
  .category-focus-panel,
  .editorial-panel,
  .method-grid,
  .editor-note,
  .article-cta,
  .article-study-panel,
  .calculator-feature,
  .calculator-layout,
  .pillar-grid,
  .element-grid {
    grid-template-columns: 1fr;
  }

  .article-mini-form.subscribe {
    grid-template-columns: 1fr;
  }

  .guide-row {
    grid-template-columns: 1fr;
  }

  .article-layout-home {
    grid-template-columns: 1fr;
  }

  .article-list-home,
  .editorial-principles {
    grid-template-columns: 1fr;
  }

  .article-rail {
    min-height: 0;
  }

  .editorial-panel-home {
    grid-template-columns: 1fr;
  }

  .editorial-mark {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1rem;
  }

  .editorial-mark-home {
    border: 1px solid rgba(92, 61, 38, 0.12);
    padding: 0.95rem;
  }

  .editor-note p {
    border-left: 0;
    border-top: 1px solid rgba(92, 61, 38, 0.12);
    padding-left: 0;
    padding-top: 0.9rem;
  }
}

@media (max-width: 520px) {
  .response-actions,
  .category-footer-actions,
  .article-empty-actions,
  .category-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .response-actions .button-link,
  .response-actions .soft-link,
  .category-footer-actions .button-link,
  .category-footer-actions .soft-link,
  .article-empty-actions .button-link,
  .article-empty-actions .soft-link {
    width: 100%;
    text-align: center;
  }

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

  .article-mini-form,
  .lead-form,
  .email,
  .calculator-card {
    width: 100%;
  }

  .article-main-home {
    padding: 0.85rem;
  }

  .article-image-featured {
    height: auto;
  }

  .article-rail-footer {
    flex-direction: column;
    gap: 0.45rem;
  }

  .article-list-home .article {
    grid-template-columns: 1fr;
  }

  .article-list-home .article .article-image {
    width: 100%;
  }

  .editorial-copy-home h2,
  .editor-note h2 {
    max-width: 100%;
  }

  .back-to-top {
    bottom: 0.85rem;
    right: 0.85rem;
  }

  .article-detail h1,
  .article-page-hero h1,
  .category-hero h1 {
    font-size: 44px;
  }
}

.sticky-mobile-cta {
  display: none;
}
