:root {
  --bg: #f7f6f1;
  --paper: #fffefa;
  --panel: #fbfaf5;
  --ink: #23231f;
  --muted: #747065;
  --line: #ded9cd;
  --soft-line: #ebe6dc;
  --sage: #365f35;
  --sage-soft: #dfe8d9;
  --gold: #bc8a2f;
  --cta: #33512f;
  --radius: 8px;
  --shadow: 0 18px 40px rgba(47, 42, 31, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,254,250,.94);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.menu-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
}
.brand { display: flex; align-items: center; gap: 2px; min-width: min(330px, 38vw); flex: 1; text-decoration: none; }
.brand-mark { display: block; width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: rgba(35, 35, 31, .84);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .045em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-3px, 2px);
}
.brand-name .quietmind { font-size: 23px; font-weight: 400; }
.brand-name .astrology { font-size: 23px; font-weight: 700; }
.site-search { width: min(340px, 32vw); position: relative; }
.site-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.page-shell { min-height: calc(100vh - 58px); background: var(--paper); }
.sidebar {
  position: fixed;
  left: 0;
  top: 58px;
  bottom: 0;
  width: min(320px, calc(100vw - 34px));
  border-right: 1px solid var(--line);
  background: #faf9f4;
  padding: 20px 18px;
  z-index: 6;
  transform: translateX(-104%);
  transition: transform .18s ease;
  box-shadow: var(--shadow);
}
.nav-open .sidebar { transform: translateX(0); }
.nav-open::after {
  content: "";
  position: fixed;
  inset: 58px 0 0 0;
  background: rgba(35,35,31,.18);
  z-index: 4;
}
.side-head {
  font-weight: 680;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4e4d45;
  margin-bottom: 12px;
}
.toc-list { display: grid; gap: 0; }
.toc-list a {
  display: block;
  border-bottom: 1px solid var(--soft-line);
  padding: 9px 4px 9px 10px;
  color: #555247;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}
.toc-list a:first-child { border-top: 1px solid var(--soft-line); }
.toc-list a:hover { color: #2f4b2c; box-shadow: inset 2px 0 0 var(--sage); }
.main { padding: 16px 28px 72px; }
.reader { max-width: 760px; margin: 0 auto; padding: 0 0 40px; }
.page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.page-breadcrumbs a, .page-breadcrumbs span { color: rgba(74, 72, 64, .72); text-decoration: none; }
.page-breadcrumbs a:hover { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.page-breadcrumbs .separator { color: rgba(116,112,101,.48); }
.page-breadcrumbs .current { color: #2f4b2c; font-weight: 650; }
.article-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  margin: 16px 0 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.reader-intro {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.48;
  color: #32332d;
  margin: 0 0 20px;
}
.article-graha-image {
  justify-self: end;
  width: min(232px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.article-graha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .97;
  filter: drop-shadow(0 14px 22px rgba(47, 42, 31, .13));
}
.reader-section { padding: 24px 0; border-top: 1px solid var(--soft-line); }
.reader-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 9px;
}
.reader-section p { font-size: 17px; line-height: 1.75; margin: 0 0 14px; color: #383831; }
.reader a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reader a:hover { color: #223f22; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.podcast-player {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  accent-color: var(--sage);
}
.media-card h2 { margin-bottom: 8px; }
.media-card p:last-child { margin-bottom: 0; }
.human-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.reader-subsection { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.reader-subsection.compact { margin-top: 14px; padding-top: 0; border-top: 0; }
.chart-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.chart-card { background: transparent; padding: 0; }
.chart-card h3 { margin: 0 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; text-align: center; }
.chart-card svg { display: block; width: 100%; height: auto; color: #3a3932; }
.chart-label { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 12px; fill: #747065; }
.chart-graha { font-family: Georgia, "Times New Roman", serif; font-size: 18px; fill: #2f4b2c; font-weight: 700; }
.cta-box {
  border: 1px solid #d9c794;
  border-radius: var(--radius);
  background: #fbf5e7;
  padding: 20px;
  margin: 18px 0 4px;
}
.cta-box h2 { margin-top: 0; }
.cta-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--cta);
  background: var(--cta);
  color: #fff !important;
  text-decoration: none;
  padding: 0 16px;
  font-weight: 700;
  margin-top: 8px;
}
.reference-table { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 15px; line-height: 1.55; }
.reference-table th {
  width: 26%;
  text-align: left;
  color: #34342e;
  font-weight: 700;
  border-top: 1px solid var(--soft-line);
  padding: 12px 12px 12px 0;
  vertical-align: top;
}
.reference-table td { border-top: 1px solid var(--soft-line); padding: 12px 0; vertical-align: top; color: #3f3f37; }
.reference-table tr:first-child th, .reference-table tr:first-child td { border-top: 0; }
.faq-list.light { display: grid; gap: 0; margin-top: 16px; }
.faq-item { border-top: 1px solid var(--soft-line); padding: 16px 0; }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.faq-item p { margin: 0; }
.placement-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 14px; }
.placement-group { border-top: 1px solid var(--soft-line); padding: 14px 0; }
.placement-group:first-child { border-top: 0; padding-top: 0; }
.placement-group h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.placement-links { display: flex; flex-wrap: wrap; align-items: baseline; line-height: 1.9; }
.placement-links a { display: inline; color: var(--sage); }
.placement-links a:not(:last-child)::after { content: "·"; color: var(--muted); display: inline-block; margin: 0 8px; text-decoration: none; }
.search-page-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 18px;
}
.search-page-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}
.search-results {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--soft-line);
}
.search-result {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-line);
  text-decoration: none;
}
.search-result strong {
  color: var(--sage);
  font-size: 17px;
}
.search-result span {
  color: #555247;
  line-height: 1.55;
  font-size: 14px;
}
.wiki-footer { margin-top: 30px; padding: 0; color: #383831; }
.wiki-footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  align-items: center;
  gap: 22px;
  border: 1px solid #d9c794;
  border-radius: var(--radius);
  background: #fbf5e7;
  padding: 24px;
}
.wiki-footer h2 { font-family: Georgia, "Times New Roman", serif; font-size: 29px; line-height: 1.18; font-weight: 500; margin: 0 0 10px; }
.wiki-footer p { font-size: 17px; line-height: 1.65; margin: 0 0 16px; max-width: 620px; }
.wiki-footer-visual { justify-self: end; width: 112px; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.wiki-footer-visual img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: .92; filter: drop-shadow(0 12px 20px rgba(47, 42, 31, .12)); }
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 0; padding: 14px 16px 18px; gap: 14px; }
  .brand { min-width: 0; flex: 1; gap: 2px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { gap: 3px; letter-spacing: .04em; }
  .brand-name .quietmind, .brand-name .astrology { font-size: clamp(16px, 4.4vw, 20px); }
  .site-search { width: 100%; order: 4; margin: 4px 0 0; }
  .sidebar { top: 122px; }
  .nav-open::after { inset: 122px 0 0 0; }
  .main { padding: 14px 18px 44px; }
  .page-breadcrumbs { margin: 0 0 14px; row-gap: 10px; font-size: 12px; }
  .article-intro-grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 22px; margin-bottom: 24px; }
  .article-graha-image { width: min(100%, 340px); justify-self: auto; align-self: center; margin: 0 auto; }
  .chart-examples { grid-template-columns: 1fr; }
  .reference-table th, .reference-table td { display: block; width: 100%; padding: 8px 0; }
  .reference-table td { border-top: 0; padding-top: 0; }
  .search-page-form { display: grid; }
  .wiki-footer-card { grid-template-columns: 1fr; padding: 22px; }
  .wiki-footer-visual { width: 88px; justify-self: start; order: -1; }
}
@media (max-width: 520px) {
  .article-graha-image { width: 100%; }
}

.source-list { margin: 10px 0 0; padding-left: 22px; color: #383831; font-size: 16px; line-height: 1.65; }
.source-list li { margin: 4px 0; }
