/* hexagram meanings index — /iching/hexagrams/ */

/* 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;
}

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

.hx-hero {
  text-align: center;
  padding: 40px 0 8px;
}
.hx-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--seal);
  margin: 0 0 10px;
}
.hx-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);
}
.hx-lede {
  max-width: 720px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.hx-cta { margin: 0 0 14px; }
.hx-btn {
  display: inline-block;
  background: var(--seal);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  text-decoration: none;
  margin: 3px 4px;
}
.hx-btn-ghost {
  background: transparent;
  color: var(--seal);
  border: 1px solid var(--seal);
}
.hx-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 13px;
  margin: 10px 0 4px;
}
.hx-jump a { color: var(--gold); text-decoration: none; }
.hx-jump a:hover { text-decoration: underline; }

.hx-group { margin: 30px 0 6px; }
.hx-group h2 {
  font-family: Georgia, serif;
  font-size: 21px;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.hx-group h2 small {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.hx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.hx-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
}
.hx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 48, 60, .1);
}
.hx-glyph {
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.hx-no {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.hx-no i {
  font-style: normal;
  margin-left: 4px;
}
.hx-no .hx-tip { display: none; }
.hx-no:hover .hx-tip {
  display: inline;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
.hx-name { font-size: 19px; font-family: Georgia, serif; }
.hx-name b { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 2px; }
.hx-en { font-size: 14px; font-weight: 600; }
.hx-tri { font-size: 12px; color: var(--gold); }
.hx-judge {
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
  margin-top: 4px;
}

.hx-notes {
  margin-top: 44px;
  max-width: 760px;
}
.hx-notes h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  margin: 26px 0 10px;
}
.hx-notes p, .hx-notes dd {
  color: #44535f;
  line-height: 1.65;
  font-size: 15px;
}
.hx-faq dt { font-weight: 600; margin-top: 14px; color: var(--ink); }
.hx-faq dd { margin: 4px 0 0; }

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

@media (max-width: 560px) {
  .hx-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hx-card { padding: 12px; }
  .hx-glyph { font-size: 34px; }
  .hx-name { font-size: 16px; }
  .hx-judge { display: none; }
}
