/* chinese-astrology hub — /chinese-astrology/ */

/* layout-safety: brand logo rules live in page css not loaded here */
.brand-mark-image{height:32px;width:32px;border-radius:50%;object-fit:cover;flex:none}

:root {
  --ink: #22303c;
  --muted: #6a7f93;
  --paper: #f7f4ee;
  --line: #e3ddd2;
  --seal: #b03a2e;
  --gold: #9a7b2d;
}

.ca-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.ca-hero {
  text-align: center;
  padding: 40px 0 10px;
}
.ca-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--seal);
  margin: 0 0 10px;
}
.ca-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.ca-lede {
  max-width: 760px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.ca-lede strong { color: var(--ink); }
.ca-cta { margin-bottom: 8px; }
.ca-btn {
  display: inline-block;
  background: var(--seal);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  margin: 3px 4px;
}
.ca-btn-ghost { background: transparent; color: var(--seal); border: 1px solid var(--seal); }

.ca-main h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--ink);
  margin: 40px 0 12px;
}
.ca-main section > p {
  color: #44535f;
  line-height: 1.65;
  font-size: 15px;
}

/* three layers */
.ca-sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.ca-sys-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ca-sys-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,48,60,.1); }
.ca-num {
  font-family: Georgia, serif;
  font-size: 15px;
  color: #fff;
  background: var(--gold);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.ca-sys-card h3 { font-family: Georgia, serif; font-size: 19px; margin: 0 0 8px; }
.ca-sys-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.ca-go { font-size: 13px; color: var(--seal); font-weight: 600; margin-top: 10px; }

/* versus table */
.ca-tablewrap { overflow-x: auto; }
.ca-vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
}
.ca-vs-table th, .ca-vs-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.ca-vs-table thead th { background: var(--paper); font-family: Georgia, serif; font-size: 15px; }
.ca-vs-table tbody th { color: var(--ink); width: 180px; font-weight: 600; }
.ca-vs-table td { color: #44535f; }
.ca-note { font-size: 13.5px; color: var(--muted); font-style: italic; }

/* celebrities */
.ca-cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.ca-c {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ca-c:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,48,60,.1); }
.ca-c-pillars {
  font-size: 21px;
  letter-spacing: 2px;
  color: var(--seal);
}
.ca-c b { font-size: 15px; }
.ca-c-meta { font-size: 12.5px; color: var(--muted); }
.ca-c-go { font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: 2px; }

/* tools */
.ca-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.ca-tool {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ca-tool:hover { border-color: var(--gold); }
.ca-tool b { font-size: 15px; }
.ca-tool span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* faq */
.ca-faq dt { font-weight: 600; margin-top: 14px; color: var(--ink); }
.ca-faq dd { margin: 4px 0 0; color: #44535f; line-height: 1.65; font-size: 15px; }
.ca-faq a { color: var(--seal); }

.ca-foot {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ca-foot a { color: var(--seal); text-decoration: none; margin-right: 8px; }

@media (max-width: 560px) {
  .ca-cgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ca-c { padding: 12px; }
  .ca-c-pillars { font-size: 17px; letter-spacing: 1px; }
  .ca-vs-table { font-size: 13px; }
  .ca-vs-table tbody th { width: auto; }
}

/* blockquote for quoted classical text (added with /tian-shi/) */
.ca-quote{margin:26px 0;padding:18px 22px;border-left:3px solid rgba(165,121,45,.55);background:rgba(165,121,45,.05)}
.ca-quote p{margin:0 0 10px}
.ca-quote p:last-of-type{margin-bottom:8px}
.ca-quote .q-zh{font-size:1.12rem;line-height:1.9;letter-spacing:.02em}
.ca-quote cite{display:block;font-style:normal;font-size:.86rem;opacity:.75}
