:root {
  --bg: #0f0b1f;
  --bg-card: #1a1430;
  --accent: #d4af37;
  --accent-soft: #9b7fd4;
  --text: #f1ecff;
  --text-muted: #b4a9d6;
  --border: #332a52;
  --radius: 14px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', 'Noto Sans Khmer', 'Khmer OS', serif;
  background: radial-gradient(circle at top, #1c1538 0%, #0f0b1f 60%);
  color: var(--text);
  line-height: 1.7;
}

html[lang="km"] body,
html[lang="km"] .checker-form button,
html[lang="km"] .lang-toggle {
  font-family: 'Noto Sans Khmer', 'Khmer OS', 'Georgia', sans-serif;
  line-height: 1.9;
}

a { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-mark {
  flex: none;
  width: 26px;
  height: 26px;
}

.logo-text {
  font-variant: small-caps;
  letter-spacing: 1px;
}

html[lang="km"] .logo-text {
  font-variant: normal;
  letter-spacing: 0.5px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}
nav a:hover { color: var(--accent); }

.lang-toggle {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px;
}
.lang-toggle a {
  margin-left: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
}
.lang-toggle a.lang-active {
  background: var(--accent);
  color: #1a1430;
  font-weight: bold;
}
.lang-toggle a:hover { color: var(--accent); }
.lang-toggle a.lang-active:hover { color: #1a1430; }

.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  vertical-align: middle;
}
.nav-dropdown > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  user-select: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "▾";
  font-size: 0.75em;
  transition: transform 0.15s ease;
}
.nav-dropdown[open] > summary::after { transform: rotate(180deg); }
.nav-dropdown > summary:hover { color: var(--accent); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 6px;
  z-index: 50;
}
.nav-dropdown-menu a {
  margin-left: 0;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}

/* Mobile hamburger menu. Above 640px the toggle button is hidden and the
   nav displays inline exactly as before; at or below it, the nav collapses
   into a dropdown panel the button shows/hides (see js/i18n.js initNavToggle). */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  header.site-header nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  header.site-header nav.nav-open { display: flex; }
  header.site-header nav a,
  header.site-header nav .nav-dropdown {
    margin-left: 0;
    width: 100%;
  }
  header.site-header nav a {
    padding: 10px 4px;
  }
  header.site-header nav .nav-dropdown > summary {
    padding: 10px 4px;
    width: 100%;
    justify-content: space-between;
  }
  header.site-header nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    margin: 2px 0 2px 12px;
    width: calc(100% - 12px);
  }
  header.site-header nav .lang-toggle {
    margin: 10px 0 2px;
  }
}

/* ===== Header menu v2: slimmer, pill links, current page, neater dropdowns (all pages) ===== */
header.site-header { padding: 12px 0; }
header.site-header .logo { font-size: 1.25rem; }
header.site-header .logo-mark { width: 24px; height: 24px; }
header.site-header nav { display: flex; align-items: center; gap: 2px; }
header.site-header nav > a,
header.site-header nav .nav-dropdown > summary {
  margin-left: 0;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--text-muted);
  transition: background-color .15s ease, color .15s ease;
}
header.site-header nav .nav-dropdown { margin-left: 0; }
header.site-header nav > a:hover,
header.site-header nav .nav-dropdown > summary:hover,
header.site-header nav .nav-dropdown[open] > summary {
  background: rgba(231, 194, 122, 0.10);
  color: #f6dc9b;
}
header.site-header nav a[aria-current="page"],
header.site-header nav .nav-dropdown.has-current > summary {
  color: #f6dc9b;
  background: rgba(231, 194, 122, 0.14);
  box-shadow: inset 0 0 0 1px rgba(231, 194, 122, 0.28);
}
header.site-header nav a:focus-visible,
header.site-header nav summary:focus-visible { outline: 2px solid #f6dc9b; outline-offset: 2px; }
header.site-header .nav-dropdown > summary::after { opacity: .7; margin-left: 2px; }
header.site-header .nav-dropdown-menu {
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 6px;
  background: #1b1437;
  border: 1px solid rgba(231, 194, 122, 0.22);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(5, 3, 18, 0.55);
}
header.site-header .nav-dropdown[open] .nav-dropdown-menu { animation: mbsNavIn .14s ease-out; }
@keyframes mbsNavIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
header.site-header .nav-dropdown-menu a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 1rem;
  color: #d9d2ee;
}
header.site-header .nav-dropdown-menu a:hover { background: rgba(231, 194, 122, 0.10); color: #f6dc9b; }
header.site-header .nav-dropdown-menu a[aria-current="page"] { box-shadow: none; }
header.site-header .lang-toggle { margin-left: 8px; padding: 2px 3px; gap: 2px; }
header.site-header .lang-toggle a { padding: 2px 11px; font-size: 0.88rem; }
@media (prefers-reduced-motion: reduce) { header.site-header .nav-dropdown[open] .nav-dropdown-menu { animation: none; } }

@media (max-width: 640px) {
  header.site-header { padding: 10px 0; }
  header.site-header .logo { font-size: 1.15rem; }
  header.site-header nav { display: none; }
  header.site-header nav.nav-open { display: flex; }
  .nav-toggle { width: 38px; height: 34px; border-color: rgba(231, 194, 122, 0.35); border-radius: 10px; }
  .nav-toggle span { width: 16px; background: #f1e3bd; }
  header.site-header nav {
    margin-top: 10px;
    padding: 6px;
    gap: 1px;
    border: 1px solid rgba(231, 194, 122, 0.18);
    border-top: 1px solid rgba(231, 194, 122, 0.18);
    border-radius: 16px;
    background: rgba(22, 15, 46, 0.97);
    box-shadow: 0 16px 36px rgba(5, 3, 18, 0.5);
    align-items: stretch;
  }
  header.site-header nav > a,
  header.site-header nav .nav-dropdown > summary {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
  }
  header.site-header nav .nav-dropdown { width: 100%; }
  header.site-header nav .nav-dropdown-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 2px 0 6px;
    width: 100%;
    min-width: 0;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    animation: none;
  }
  header.site-header nav .nav-dropdown-menu a {
    width: auto;
    padding: 8px 10px;
    white-space: normal;
    font-size: 0.86rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.03);
  }
  header.site-header nav .lang-toggle {
    align-self: center;
    margin: 8px 0 4px;
    width: auto;
  }
  header.site-header nav .lang-toggle a { width: auto; padding: 4px 16px; font-size: 0.85rem; }
}

/* ===== Desktop menu shows every page on one line; when that line does not fit (narrow laptop, longer
   Khmer labels) js/i18n.js adds html.nav-compact and the menu becomes the phone-style ☰ panel. ===== */
header.site-header .container { max-width: 1600px; flex-wrap: nowrap; }
header.site-header nav { flex-wrap: nowrap; }
header.site-header nav > a, header.site-header nav .nav-dropdown > summary { white-space: nowrap; padding: 6px 11px; }
@media (max-width: 640px) { header.site-header .container { flex-wrap: wrap; } }
html[lang="km"] header.site-header nav > a, html[lang="km"] header.site-header nav .nav-dropdown > summary { padding: 6px 8px; font-size: .95rem; }
html.nav-compact header.site-header .container { flex-wrap: wrap; }

  html.nav-compact .nav-toggle { display: flex; }
  html.nav-compact header.site-header nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  html.nav-compact header.site-header nav.nav-open { display: flex; }
  html.nav-compact header.site-header nav a,
  html.nav-compact header.site-header nav .nav-dropdown {
    margin-left: 0;
    width: 100%;
  }
  html.nav-compact header.site-header nav a {
    padding: 10px 4px;
  }
  html.nav-compact header.site-header nav .nav-dropdown > summary {
    padding: 10px 4px;
    width: 100%;
    justify-content: space-between;
  }
  html.nav-compact header.site-header nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    margin: 2px 0 2px 12px;
    width: calc(100% - 12px);
  }
  html.nav-compact header.site-header nav .lang-toggle {
    margin: 10px 0 2px;
  }

  html.nav-compact header.site-header { padding: 10px 0; }
  html.nav-compact header.site-header .logo { font-size: 1.15rem; }
  html.nav-compact header.site-header nav { display: none; }
  html.nav-compact header.site-header nav.nav-open { display: flex; }
  html.nav-compact .nav-toggle { width: 38px; height: 34px; border-color: rgba(231, 194, 122, 0.35); border-radius: 10px; }
  html.nav-compact .nav-toggle span { width: 16px; background: #f1e3bd; }
  html.nav-compact header.site-header nav {
    margin-top: 10px;
    padding: 6px;
    gap: 1px;
    border: 1px solid rgba(231, 194, 122, 0.18);
    border-top: 1px solid rgba(231, 194, 122, 0.18);
    border-radius: 16px;
    background: rgba(22, 15, 46, 0.97);
    box-shadow: 0 16px 36px rgba(5, 3, 18, 0.5);
    align-items: stretch;
  }
  html.nav-compact header.site-header nav > a,
  html.nav-compact header.site-header nav .nav-dropdown > summary {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
  }
  html.nav-compact header.site-header nav .nav-dropdown { width: 100%; }
  html.nav-compact header.site-header nav .nav-dropdown-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 2px 0 6px;
    width: 100%;
    min-width: 0;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    animation: none;
  }
  html.nav-compact header.site-header nav .nav-dropdown-menu a {
    width: auto;
    padding: 8px 10px;
    white-space: normal;
    font-size: 0.86rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.03);
  }
  html.nav-compact header.site-header nav .lang-toggle {
    align-self: center;
    margin: 8px 0 4px;
    width: auto;
  }
  html.nav-compact header.site-header nav .lang-toggle a { width: auto; padding: 4px 16px; font-size: 0.85rem; }

  html.nav-compact .site-header .lang-toggle-bar { display: inline-flex; margin: 0 8px 0 auto; padding: 2px 3px; gap: 2px; border-color: rgba(231, 194, 122, 0.35); }
  html.nav-compact .site-header .lang-toggle-bar a { margin-left: 0; padding: 4px 11px; font-size: 0.82rem; line-height: 1.3; }
  html.nav-compact header.site-header nav .lang-toggle { display: none; }


.hero {
  text-align: center;
  padding: 24px 0 30px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #1a1430;
  border: none;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 22px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-cta:hover { background: #e6c35f; transform: translateY(-1px); }

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px auto 6px;
  padding: 0 20px;
}

.quick-link-btn {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.quick-link-btn:hover {
  background: var(--accent);
  color: #1a1430;
  transform: translateY(-1px);
}

.today-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 30px auto;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.today-strip div { text-align: center; flex: 1; }
.today-strip .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.today-strip .value { font-size: 1.1rem; color: var(--accent); font-weight: bold; }

.checker-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}

.checker-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.checker-form input[type="date"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0b1f;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Make the native calendar-picker icon bigger and easier to tap (it's
   tiny and hard to hit accurately by default, especially on mobile). */
input[type="date"] {
  position: relative;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 7px;
  margin-right: -4px;
  border-radius: 6px;
  filter: invert(72%) sepia(40%) saturate(500%) hue-rotate(358deg) brightness(95%);
  transform: scale(1.35);
  transition: background 0.15s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: rgba(212, 175, 55, 0.16);
}
/* Firefox doesn't support ::-webkit-calendar-picker-indicator; its native
   date field already renders a reasonably large built-in picker button. */

.checker-form button {
  background: var(--accent);
  color: #1a1430;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.checker-form button:hover { background: #e6c35f; }

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.result-emoji { font-size: 3rem; }
.result-badge {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.sign-line-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -7px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.result-header h2 { margin: 0; color: var(--accent); }
.result-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; }

.share-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-icon { flex-shrink: 0; }
.share-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.share-popover[hidden] { display: none; }
.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.86rem;
  font-family: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.share-option:hover { background: rgba(212, 175, 55, 0.12); color: var(--accent); }
.share-option:disabled { opacity: 0.6; cursor: default; }
.share-net-icon { flex-shrink: 0; }
.share-option-label { flex: 1; }
.share-image {
  font-weight: 600;
  border-bottom: 1px solid rgba(180, 169, 214, 0.25);
  border-radius: 6px 6px 0 0;
  margin-bottom: 4px;
}

.share-card-block {
  margin: 18px 0;
}
.share-card-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  aspect-ratio: 1080 / 1350;
  background: linear-gradient(180deg, #1c1440, #0b0820);
}
.share-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.share-card-img[src] {
  opacity: 1;
}

.lunar-note {
  font-size: 0.78rem;
  color: var(--accent-soft);
  margin: 2px 0 16px;
}

.overview-text {
  color: var(--text);
  margin: 0 0 14px;
}

.ai-reading { margin: 16px 0; }
.ai-reading p { color: var(--text); margin: 0 0 10px; }
.ai-loading { color: var(--text-muted); font-style: italic; }

.followup-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.followup-section h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover:not(:disabled) { background: var(--accent-soft); color: var(--bg); }
.chip:disabled { opacity: 0.5; cursor: default; }
.followup-answer { margin-top: 14px; }
.followup-answer p { color: var(--text); margin: 0 0 10px; }

.element-blurb {
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--accent-soft);
  padding-left: 14px;
  margin: 16px 0;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.result-block h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.result-block p { margin: 0; color: var(--text); }

.cutoff-note, .disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.ad-slot {
  max-width: 700px;
  margin: 30px auto;
  padding: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

section.content-section {
  max-width: 700px;
  margin: 0 auto 50px;
}
section.content-section h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.blog-hero {
  text-align: center;
  padding: 56px 0 10px;
}
.blog-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 10px;
}
.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.blog-wrap {
  max-width: 920px;
  margin: 10px auto 60px;
}

.blog-featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  text-decoration: none;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.blog-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(155, 127, 212, 0.16), transparent 55%);
  pointer-events: none;
}
.blog-featured .post-icon {
  width: 52px;
  height: 52px;
}
.blog-featured .post-eyebrow {
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 6px;
}
.blog-featured h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0 10px;
  border: none;
  padding: 0;
}
.blog-featured p {
  color: var(--text-muted);
  margin: 0 0 12px;
  max-width: 60ch;
}
.blog-featured .post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  display: block;
}
.blog-card .post-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}
.blog-card h3 { margin: 0 0 8px; color: var(--text); font-size: 1.05rem; }
.blog-card p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.95rem; }
.blog-card .post-meta {
  color: var(--accent-soft);
  font-size: 0.8rem;
}

.animal-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.35);
}
.badge-emoji {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.animal-epithet {
  margin: 0 0 10px !important;
  color: var(--accent-soft) !important;
  font-size: 0.82rem !important;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== Blog page v2 — premium zodiac magazine redesign ===== */
.page-blog header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 11, 31, 0.94);
  backdrop-filter: blur(8px);
}

.bv2-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 76px 20px 64px;
  background: radial-gradient(ellipse at 50% -20%, #27204a 0%, #150f29 55%, #0f0b1f 100%);
  border-bottom: 1px solid var(--border);
}
.bv2-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.bv2-hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.bv2-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: 0.3px;
}
.bv2-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 540px; margin: 0 auto 28px; }
.bv2-hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #1a1430;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bv2-hero-cta:hover { background: #e6c35f; transform: translateY(-2px); }

/* Featured article — enhanced */
.bv2-featured {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, #201a3a 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bv2-featured:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); border-color: var(--accent-soft); }
.bv2-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212,175,55,0.14), transparent 55%);
  pointer-events: none;
}
.bv2-featured-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, #342a5c, #15102a 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.bv2-featured-art svg { width: 56%; height: 56%; }
.bv2-featured-emoji { font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.bv2-featured-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.bv2-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bv2-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.bv2-tag-new { background: rgba(212,175,55,0.18); color: var(--accent); }
.bv2-tag-cat { background: rgba(155,127,212,0.18); color: var(--accent-soft); }
.bv2-featured h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; margin: 0 0 10px; color: var(--text); border: none; padding: 0; }
.bv2-featured p { color: var(--text-muted); margin: 0 0 14px; max-width: 60ch; }
.bv2-featured-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.bv2-featured-btn { display: inline-block; background: var(--accent); color: #1a1430; text-decoration: none; padding: 10px 24px; border-radius: 999px; font-weight: bold; font-size: 0.92rem; }

/* Section shells */
.bv2-section { max-width: 1120px; margin: 64px auto; padding: 0 20px; }
.bv2-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; }
.bv2-section-head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; margin: 0; border: none; padding: 0; color: var(--text); }
.bv2-view-all { color: var(--accent-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.bv2-view-all:hover { color: var(--accent); }

/* Popular guides */
.bv2-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bv2-guide-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.bv2-guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,0.38); border-color: var(--accent-soft); }
.bv2-guide-art { width: 100%; height: 150px; object-fit: cover; object-position: center 30%; display: block; transition: transform 0.25s ease; }
.bv2-guide-card:hover .bv2-guide-art { transform: scale(1.08); }
.bv2-guide-body { padding: 18px 20px 22px; }
.bv2-guide-body h3 { margin: 0 0 8px; color: var(--text); font-size: 1.08rem; font-family: 'Playfair Display', Georgia, serif; }
.bv2-guide-body p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.92rem; }
.bv2-guide-link { color: var(--accent); font-size: 0.85rem; font-weight: 700; }

/* Zodiac animals grid */
.bv2-zodiac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bv2-zodiac-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 14px 18px; text-align: center; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.bv2-zodiac-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.35); border-color: var(--accent); }
.bv2-zodiac-card .animal-badge { margin: 0 auto 12px; }
.bv2-zodiac-img { width: 112px; height: 112px; object-fit: contain; display: block; margin: 0 auto 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)); transition: transform 0.25s ease; }
.bv2-zodiac-card:hover .bv2-zodiac-img { transform: scale(1.08); }
.bv2-zodiac-card h3 { margin: 0 0 2px; color: var(--text); font-size: 1rem; font-family: 'Playfair Display', Georgia, serif; }
.bv2-zodiac-khmer { color: var(--accent-soft); font-size: 0.85rem; margin: 0 0 8px; }
.bv2-zodiac-card p.bv2-zodiac-trait { color: var(--text-muted); font-size: 0.82rem; margin: 0 0 10px; min-height: 2.6em; }
.bv2-zodiac-explore { color: var(--accent); font-size: 0.82rem; font-weight: 700; }

/* Chinese zodiac info editorial section */
.bv2-info-section { max-width: 1120px; margin: 64px auto 70px; padding: 0 20px; }
.bv2-info-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 44px; }
.bv2-info-grid h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; margin: 0 0 16px; border: none; padding: 0; }
.bv2-info-grid p { color: var(--text-muted); margin: 0 0 14px; }
.bv2-info-grid ul { color: var(--text-muted); margin: 0 0 20px; padding-left: 20px; }
.bv2-info-grid li { margin-bottom: 6px; }
.bv2-info-btn { display: inline-block; border: 1.5px solid var(--accent); color: var(--text); text-decoration: none; padding: 11px 26px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.bv2-info-btn:hover { background: var(--accent); color: #1a1430; transform: translateY(-1px); }
.bv2-info-art { display: flex; align-items: center; justify-content: center; }
.bv2-info-art svg { width: 100%; height: auto; max-width: 260px; }

@media (max-width: 900px) {
  .bv2-guides-grid { grid-template-columns: repeat(2, 1fr); }
  .bv2-zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .bv2-info-grid { grid-template-columns: 1fr; padding: 32px 24px; }
  .bv2-info-art { order: -1; }
  .bv2-info-art svg { max-width: 180px; }
}

@media (max-width: 640px) {
  .bv2-hero { padding: 52px 20px 44px; }
  .bv2-hero h1 { font-size: 2.1rem; }
  .bv2-hero p { font-size: 1rem; }
  .bv2-featured { grid-template-columns: 1fr; padding: 22px; }
  .bv2-featured-art { aspect-ratio: 16/9; }
  .bv2-guides-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bv2-zodiac-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bv2-section { margin: 44px auto; }
  .bv2-section-head h2 { font-size: 1.5rem; }
}

article.post {
  max-width: 700px;
  margin: 0 auto 50px;
}
article.post h1 { color: var(--accent); }
article.post p { color: var(--text); }

/* --- Daily fortune grid (per-animal good/avoid cards) --- */
article.post.post-wide {
  max-width: 920px;
}
.fortune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 10px;
}
.fortune-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.fortune-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fortune-emoji { font-size: 1.6rem; line-height: 1; }
.fortune-card h3 { margin: 0; font-size: 1.05rem; color: var(--text); flex: 1; }
.fortune-tier {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.fortune-tier-great { color: var(--bg); background: var(--accent); }
.fortune-tier-good { color: var(--bg); background: var(--accent-soft); }
.fortune-tier-ordinary { color: var(--text-muted); border-color: var(--border); }
.fortune-tier-caution { color: #f3d6dd; background: #c9607a; }
.fortune-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.fortune-card p strong { color: var(--text); font-weight: normal; }

.fortune-learn-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.fortune-learn-more:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .fortune-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fortune-grid { grid-template-columns: 1fr; }
}

/* --- Zodiac animal guide --- */
.animal-grid {
  max-width: 1000px;
  margin: 10px auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.animal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.animal-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.animal-card-head .result-emoji { font-size: 2.2rem; }
.animal-card-badge { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4)); }
.animal-card-head h2 { margin: 0; color: var(--accent); font-size: 1.2rem; }
.animal-traits { color: var(--text); margin: 0 0 14px; font-size: 0.95rem; }
.animal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.animal-meta h3 {
  margin: 0 0 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.animal-meta p { margin: 0; color: var(--text); font-size: 0.88rem; }
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 8px 4px 0;
}
.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(241, 236, 255, 0.35);
  flex-shrink: 0;
}
.animal-details { margin-bottom: 14px; }
.animal-details summary {
  cursor: pointer;
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: bold;
}
.animal-details .overview-text { margin-top: 10px; font-size: 0.92rem; }
.animal-details p strong { color: var(--accent-soft); }
.animal-cta-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.animal-cta {
  text-align: center;
  background: var(--accent);
  color: #1a1430;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
}
.animal-cta:hover { background: #e6c35f; }
.animal-cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.animal-cta-secondary:hover { background: rgba(230, 195, 95, 0.12); color: #e6c35f; border-color: #e6c35f; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer.site-footer a { margin: 0 10px; color: var(--text-muted); }

@media (max-width: 600px) {
  .result-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* --- Compatibility checker --- */
.compat-section {
  max-width: 700px;
  margin: 0 auto 10px;
}
.compat-intro { color: var(--text-muted); margin-top: -6px; }

.compat-form {
  max-width: 100%;
}
.compat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.compat-row label { text-align: left; }
.compat-row input[type="date"] { margin-bottom: 0; }

.context-toggle {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.context-toggle legend {
  padding: 0 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.compat-card { max-width: 700px; margin: 20px auto 0; text-align: left; }
.compat-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.compat-person { text-align: center; }
.compat-person p { margin: 4px 0 0; color: var(--accent); font-weight: bold; }
.compat-plus { font-size: 1.5rem; color: var(--text-muted); }

.compat-label { text-align: center; color: var(--accent); margin: 0 0 6px; }
.compat-stars { text-align: center; color: var(--accent); font-size: 1.4rem; letter-spacing: 3px; margin-bottom: 14px; }

@media (max-width: 500px) {
  .compat-row { grid-template-columns: 1fr; }
}

.match-years {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.match-years h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
}
.match-years-list {
  margin: 0 0 10px;
  padding-left: 18px;
}
.match-years-list li { margin-bottom: 4px; }
.match-years-note { margin: 4px 0; font-size: 0.92rem; }

/* --- Wedding date picker --- */
.wedding-table-wrap { overflow-x: auto; margin: 16px 0; }
.wedding-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wedding-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--accent-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.wedding-table td {
  padding: 10px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.wedding-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: bold;
  white-space: nowrap;
}
.wedding-badge-excellent { background: #2f6b3a; color: #d7f5de; }
.wedding-badge-good { background: #2e5a86; color: #d7e9f5; }
.wedding-badge-workable { background: #4a4460; color: #e4e0f0; }
.wedding-badge-avoid { background: #7a2f2f; color: #f5d7d7; }
.wedding-season-note { font-size: 0.78rem; color: var(--text-muted); }

.wedding-top-picks {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.wedding-top-picks h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.wedding-top-picks-list { margin: 0 0 10px; padding-left: 18px; }
.wedding-top-picks-list li { margin-bottom: 4px; }
.wedding-top-picks-note, .wedding-top-picks-empty { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.today-luck-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.today-luck-card h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.today-luck-intro { margin: 0 0 10px; font-size: 0.9rem; color: var(--text-muted); }
.today-luck-list { margin: 0 0 10px; padding-left: 18px; }
.today-luck-list li { margin-bottom: 6px; line-height: 1.4; }
.today-luck-verdict { margin: 0; font-weight: bold; }
.today-luck-verdict-great { color: #4ade80; }
.today-luck-verdict-good { color: var(--accent); }
.today-luck-verdict-ordinary { color: var(--text-muted); }
.today-luck-verdict-caution { color: #f87171; }

/* ===== Relationship Compatibility Calculator ===== */
.rc-hero {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(155, 127, 212, 0.18));
  border-radius: var(--radius);
  padding: 22px 24px;
}
.rc-hero h1 { font-size: 1.9rem; }
.rc-section { max-width: var(--max-width); }
.rc-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.rc-people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .rc-people-grid { grid-template-columns: 1fr; }
}
.rc-person-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.rc-person-card legend {
  font-weight: bold;
  color: var(--accent);
  padding: 0 6px;
  font-size: 1.05rem;
}
.rc-person-card label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rc-person-card input,
.rc-person-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0b1f;
  color: var(--text);
  font-size: 0.95rem;
}
.rc-form-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid #f87171;
  color: #f87171;
  font-size: 0.9rem;
}
.rc-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e06c9f);
  color: #1a1430;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rc-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3); }
.rc-privacy-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.rc-result-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  animation: rc-fade-in 0.4s ease;
}
@keyframes rc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rc-result-title {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 18px;
  color: var(--accent);
}
.rc-pair-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rc-pair-person { min-width: 120px; }
.rc-pair-symbol { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rc-pair-glyph { font-size: 2.4rem; }
.rc-pair-heart { font-size: 1.8rem; }
.rc-pair-lifepath { color: var(--accent); font-size: 0.85rem; margin-top: 4px; }

.rc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .rc-two-col { grid-template-columns: 1fr; }
}
.rc-profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.rc-profile-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent);
}
.rc-sign-line { font-size: 1.1rem; margin: 4px 0; }
.rc-born-sub { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 8px; }
.rc-numerology-calc {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}
.rc-method-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 24px;
}
.rc-chinese-compat-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: -4px 0 20px;
  padding: 10px 14px;
  background: rgba(155, 127, 212, 0.08);
  border-left: 3px solid var(--accent-soft);
  border-radius: 6px;
}

.rc-subheading {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.rc-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.rc-meter { text-align: center; }
.rc-meter-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s ease;
}
.rc-meter-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text);
}
.rc-meter-label { font-size: 0.75rem; color: var(--text-muted); }
.rc-disclaimer-inline {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 6px 0 0;
}

.rc-lang-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 12px;
}
.rc-analysis-list { display: flex; flex-direction: column; gap: 8px; }
.rc-analysis-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.015);
}
.rc-analysis-item summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: bold;
  color: var(--text);
}
.rc-analysis-body { padding: 0 0 12px; font-size: 0.92rem; }
.rc-analysis-body p { margin: 6px 0; }

.rc-insight-block { margin-bottom: 18px; }
.rc-insight-block h4 { margin: 0 0 8px; color: var(--accent-soft); font-size: 0.95rem; }
.rc-insight-block ul { margin: 0; padding-left: 18px; }
.rc-insight-block li { margin-bottom: 6px; line-height: 1.5; }
.rc-insight-block p { margin: 4px 0; }

.rc-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Business Partnership Compatibility Calculator ===== */
:root {
  --biz-navy: #0a1628;
  --biz-navy-card: #11213a;
  --biz-gold: #c6a15b;
  --biz-border: #22385a;
  --biz-text: #e8ecf3;
  --biz-text-muted: #94a3bb;
}
.biz-hero {
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.10), rgba(10, 22, 40, 0.5));
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.biz-section { max-width: var(--max-width); }
.biz-form {
  background: var(--biz-navy-card);
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.biz-people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .biz-people-grid { grid-template-columns: 1fr; }
}
.biz-person-card {
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(198, 161, 91, 0.03);
}
.biz-person-card legend {
  font-weight: bold;
  color: var(--biz-gold);
  padding: 0 6px;
  font-size: 1.05rem;
}
.biz-person-card label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--biz-text-muted);
}
.biz-person-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--biz-border);
  background: var(--biz-navy);
  color: var(--biz-text);
  font-size: 0.95rem;
}
.biz-form-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid #f87171;
  color: #f87171;
  font-size: 0.9rem;
}
.biz-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--biz-gold), #8a6d3b);
  color: #0a1628;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.biz-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(198, 161, 91, 0.3); }
.biz-privacy-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--biz-text-muted);
  text-align: center;
}

.biz-result-card {
  background: var(--biz-navy-card);
  border: 1px solid var(--biz-gold);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--biz-text);
  animation: biz-fade-in 0.4s ease;
}
.biz-result-card .ad-slot {
  border-color: var(--biz-border);
  color: var(--biz-text-muted);
}
@keyframes biz-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.biz-pair-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--biz-border);
  position: relative;
}
.biz-pair-person { min-width: 140px; }
.biz-pair-link { font-size: 1.6rem; }
.biz-pair-sub { color: var(--biz-gold); font-size: 0.82rem; margin-top: 4px; }

.biz-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .biz-two-col { grid-template-columns: 1fr; }
}
.biz-profile-card {
  border: 1px solid var(--biz-border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(198, 161, 91, 0.025);
}
.biz-profile-card h3, .biz-profile-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--biz-gold);
}
.biz-profile-card ul { margin: 0; padding-left: 18px; }
.biz-profile-card li { margin-bottom: 4px; }
.biz-sign-line { font-size: 1.1rem; margin: 4px 0; color: var(--biz-text); }
.biz-bazi-line { color: var(--biz-text-muted); font-size: 0.82rem; margin: 0 0 6px; }
.biz-born-sub { color: var(--biz-text-muted); font-size: 0.85rem; margin: 0 0 8px; }

.biz-subheading {
  color: var(--biz-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--biz-border);
}
.biz-element-note, .biz-role-intro { color: var(--biz-text-muted); font-size: 0.92rem; }
.biz-disclaimer-inline { font-size: 0.78rem; color: var(--biz-text-muted); text-align: center; margin: 8px 0 0; }

.biz-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.biz-meter { text-align: center; }
.biz-meter-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s ease;
}
.biz-meter-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--biz-navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--biz-text);
}
.biz-meter-label { font-size: 0.72rem; color: var(--biz-text-muted); }

.biz-lang-note { font-size: 0.8rem; color: var(--biz-text-muted); font-style: italic; margin: 0 0 12px; }
.biz-analysis-list { display: flex; flex-direction: column; gap: 8px; }
.biz-analysis-item {
  border: 1px solid var(--biz-border);
  border-radius: 10px;
  padding: 4px 14px;
  background: rgba(198, 161, 91, 0.015);
}
.biz-analysis-item summary { cursor: pointer; padding: 10px 0; font-weight: bold; color: var(--biz-text); }
.biz-analysis-body { padding: 0 0 12px; font-size: 0.92rem; }
.biz-analysis-body p { margin: 6px 0; }

.biz-insight-block { margin-bottom: 18px; }
.biz-insight-block h4 { margin: 0 0 8px; color: var(--biz-gold); font-size: 0.95rem; }
.biz-insight-block p { margin: 4px 0; }

.biz-plain-list { margin: 0 0 14px; padding-left: 18px; }
.biz-plain-list li { margin-bottom: 6px; line-height: 1.5; }
.biz-challenge-topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.biz-challenge-topics li {
  background: rgba(198, 161, 91, 0.1);
  border: 1px solid var(--biz-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  margin: 0;
}

.biz-checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.biz-checklist li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--biz-border);
  font-size: 0.92rem;
}
.biz-checkbox { color: var(--biz-gold); margin-right: 6px; }

.biz-summary-box {
  background: rgba(198, 161, 91, 0.06);
  border: 1px solid var(--biz-gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 8px;
}
.biz-summary-box p { margin: 6px 0; }

.biz-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--biz-border);
  font-size: 0.8rem;
  color: var(--biz-text-muted);
  text-align: center;
}

.biz-reset-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--biz-gold);
  border-radius: 10px;
  background: transparent;
  color: var(--biz-gold);
  font-weight: bold;
  cursor: pointer;
}
.biz-reset-btn:hover { background: rgba(198, 161, 91, 0.1); }

/* Custom bilingual (EN/Khmer) calendar date-picker — replaces the native
   <input type="date"> popup, which the browser/OS always renders in its own
   locale regardless of the page language. See js/datepicker.js. */
.kdp {
  position: relative;
  margin-bottom: 16px;
}
.kdp-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.kdp .kdp-display {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0b1f;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.kdp .kdp-display:hover,
.kdp-open .kdp-display {
  border-color: var(--accent);
}
.kdp-display-text { flex: 1; }
.kdp-empty .kdp-display-text::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}
.kdp-empty .kdp-display-text {
  color: var(--text-muted);
}
.kdp-display-icon {
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
}
.kdp-popup {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 92vw;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
  padding: 12px;
}
.kdp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.kdp-header .kdp-nav {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}
.kdp-header .kdp-nav:hover { border-color: var(--accent); color: var(--accent); }
.kdp-month-select,
.kdp-year-select {
  flex: 1;
  min-width: 0;
  background: #0f0b1f;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 0.8rem;
}
.kdp-month-select { flex: 1.6; }
.kdp-year-select { flex: 0 0 64px; }
.kdp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.kdp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.kdp-grid .kdp-day {
  background: transparent;
  border: none;
  color: var(--text);
  border-radius: 6px;
  padding: 7px 0;
  font-size: 0.85rem;
  cursor: pointer;
}
.kdp-grid .kdp-day:hover:not(:disabled) { background: rgba(212, 175, 55, 0.16); }
.kdp-grid .kdp-day-blank { visibility: hidden; cursor: default; }
.kdp-grid .kdp-day-disabled { color: var(--text-muted); opacity: 0.35; cursor: not-allowed; }
.kdp-grid .kdp-day-today { box-shadow: inset 0 0 0 1px var(--accent-soft); }
.kdp-grid .kdp-day-selected {
  background: var(--accent);
  color: #1a1430;
  font-weight: bold;
}
.kdp-grid .kdp-day-selected:hover { background: #e6c35f; }
.kdp-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.kdp-footer .kdp-clear,
.kdp-footer .kdp-today {
  background: transparent;
  border: none;
  color: var(--accent-soft);
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
}
.kdp-footer .kdp-clear:hover,
.kdp-footer .kdp-today:hover { text-decoration: underline; }

/* ===========================================================================
   Romance Compatibility ("MyBirthSign Compatibility") — scoped pink/gold
   theme for the Chinese Zodiac Love Compatibility feature on
   compatibility.html. Prefixed .romance-* throughout so it never touches
   any other page's styling.
   =========================================================================== */
:root {
  --romance-pink-light: #F8A1C4;
  --romance-pink: #FF6FA5;
  --romance-pink-deep: #E91E63;
  --romance-pink-darker: #C2185B;
  --romance-gold: #D4AF37;
  --romance-gold-light: #FFD76A;
  --romance-white: #FFFFFF;
  --romance-text-dark: #8E1748;
}

.romance-section { max-width: 920px; }

.romance-hero {
  text-align: center;
  padding: 10px 0 4px;
}
.romance-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--romance-pink-deep), var(--romance-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.romance-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.romance-form {
  background: linear-gradient(160deg, rgba(248, 161, 196, 0.12), rgba(10, 8, 20, 0.0));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  padding: 24px;
}
.romance-form .compat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.romance-form .compat-row > div { flex: 1; min-width: 200px; }
.romance-submit-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  color: #3a0a1e;
  background: linear-gradient(135deg, var(--romance-gold-light), var(--romance-gold));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.romance-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(212, 175, 55, 0.45); }

/* --- the result card itself ------------------------------------------- */
.romance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--romance-pink-light) 0%, var(--romance-pink) 45%, var(--romance-pink-deep) 100%);
  border: 2px solid var(--romance-gold);
  border-radius: 24px;
  padding: 32px 20px 28px;
  color: var(--romance-text-dark);
  box-shadow: 0 18px 50px rgba(194, 24, 91, 0.35), inset 0 0 40px rgba(255, 255, 255, 0.15);
}
.romance-card h2, .romance-card h3 { color: var(--romance-text-dark); }
.romance-card .share-row { margin: 18px auto; justify-content: center; display: flex; }

.romance-floating-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.romance-floating-hearts span {
  position: absolute;
  bottom: -40px;
  font-size: 1.4rem;
  opacity: 0.55;
  animation: romanceFloatUp 9s linear infinite;
}
.romance-floating-hearts span:nth-child(1) { left: 6%; animation-delay: 0s; font-size: 1.1rem; }
.romance-floating-hearts span:nth-child(2) { left: 22%; animation-delay: 1.5s; font-size: 1.6rem; }
.romance-floating-hearts span:nth-child(3) { left: 40%; animation-delay: 3s; font-size: 1rem; }
.romance-floating-hearts span:nth-child(4) { left: 58%; animation-delay: 0.8s; font-size: 1.3rem; }
.romance-floating-hearts span:nth-child(5) { left: 75%; animation-delay: 4s; font-size: 1.2rem; }
.romance-floating-hearts span:nth-child(6) { left: 90%; animation-delay: 2.2s; font-size: 1.5rem; }
@keyframes romanceFloatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-620px) rotate(25deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .romance-floating-hearts span { animation: none; display: none; }
}

.romance-pair-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 4vw, 28px);
  margin-bottom: 18px;
  flex-wrap: nowrap;
}
.romance-zodiac-circle { text-align: center; flex: 0 1 auto; min-width: 0; }
.romance-zodiac-ring {
  width: clamp(70px, 24vw, 120px);
  height: clamp(70px, 24vw, 120px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ffe3ef 55%, var(--romance-pink) 100%);
  border: 3px solid var(--romance-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(142, 23, 72, 0.3);
  animation: romanceRingGlow 3.2s ease-in-out infinite;
}
.romance-zodiac-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes romanceRingGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.4), 0 8px 24px rgba(142,23,72,0.3); }
  50% { box-shadow: 0 0 0 7px rgba(255, 215, 106, 0.5), 0 8px 30px rgba(142,23,72,0.4); }
}
.romance-zodiac-name { font-weight: bold; font-size: clamp(0.85rem, 3vw, 1.1rem); margin: 2px 0; }
.romance-zodiac-sub { font-size: clamp(0.68rem, 2.4vw, 0.82rem); color: var(--romance-text-dark); opacity: 0.85; margin: 0; }

.romance-link-heart {
  position: relative;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  flex: 0 0 auto;
  animation: romancePulse 1.6s ease-in-out infinite;
}
@keyframes romancePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.romance-ray { display: none; }

.romance-big-heart {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 8px auto 4px;
}
.romance-big-heart-glyph {
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  filter: drop-shadow(0 10px 18px rgba(142, 23, 72, 0.45));
  animation: romancePulse 2.4s ease-in-out infinite;
  line-height: 1;
}
.romance-big-heart-score {
  position: relative;
  margin-top: -2.4em;
  font-weight: bold;
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  color: #fff;
  text-shadow: 0 2px 6px rgba(142, 23, 72, 0.6);
}
.romance-big-heart-label { margin: 6px 0 2px; font-weight: 600; opacity: 0.9; }
.romance-hearts-row { display: flex; justify-content: center; gap: 4px; font-size: 1.3rem; margin-top: 4px; }
.romance-heart-pip { opacity: 0.9; }

.romance-summary-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 20px;
  margin: 20px auto;
  max-width: 720px;
  box-shadow: 0 8px 24px rgba(142, 23, 72, 0.18);
}
.romance-summary-card h2 { margin-top: 0; font-size: 1.2rem; }

.romance-section-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.15rem;
  margin: 28px 0 14px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(142, 23, 72, 0.5);
}

.romance-cat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.romance-cat-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(142, 23, 72, 0.15);
}
.romance-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.romance-cat-ring {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.romance-cat-ring-inner {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: bold; color: var(--romance-pink-darker);
}
.romance-cat-head h3 { margin: 0; font-size: 0.98rem; }
.romance-cat-card p { font-size: 0.86rem; margin: 6px 0; line-height: 1.5; }
.romance-cat-strengths strong { color: #1a7a3a; }
.romance-cat-challenges strong { color: var(--romance-pink-darker); }
.romance-cat-advice strong { color: var(--romance-gold); }

.romance-profile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.romance-profile-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(142, 23, 72, 0.15);
}
.romance-profile-badge { border-radius: 50%; border: 2px solid var(--romance-gold); margin-bottom: 8px; object-fit: cover; }
.romance-profile-sub { color: var(--romance-pink-darker); font-weight: 600; font-size: 0.88rem; }
.romance-profile-overview, .romance-profile-element, .romance-profile-list { font-size: 0.84rem; text-align: left; }

.romance-overall-card {
  position: relative;
  z-index: 1;
  text-align: center;
  background: linear-gradient(160deg, #fff 0%, #ffeef5 100%);
  border: 2px solid var(--romance-gold);
  border-radius: 20px;
  padding: 26px 20px;
  margin-top: 22px;
  box-shadow: 0 10px 30px rgba(142, 23, 72, 0.25);
}
.romance-overall-card h2 { font-size: 1.2rem; margin-top: 0; }
.romance-overall-score {
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: bold;
  background: linear-gradient(135deg, var(--romance-pink-deep), var(--romance-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.romance-overall-rating { font-weight: bold; margin-bottom: 10px; }
.romance-disclaimer { font-size: 0.74rem; opacity: 0.7; margin-top: 10px; }

.romance-actions-row { text-align: center; margin-top: 20px; position: relative; z-index: 1; }
.romance-reset-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--romance-pink-darker);
  box-shadow: 0 4px 14px rgba(142, 23, 72, 0.25);
}
.romance-reset-btn:hover { background: #fff; }

.romance-form-error { color: #fff; background: var(--romance-pink-darker); padding: 8px 14px; border-radius: 10px; font-size: 0.88rem; }

/* Mobile: never allow horizontal scroll — shrink, never stack, the circles */
@media (max-width: 480px) {
  .romance-card { padding: 24px 12px 20px; border-radius: 18px; }
  .romance-pair-row { gap: 6px; }
  .romance-zodiac-ring { width: clamp(64px, 26vw, 92px); height: clamp(64px, 26vw, 92px); border-width: 2px; }
}

/* ===========================================================================
   Reusable CTA banner (used on guide/article pages to link into a
   calculator tool). Generic — not scoped to any one page's theme.
   =========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.12), rgba(10, 22, 40, 0.4));
  border: 1px solid var(--biz-gold, var(--accent));
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 32px 0;
}
.cta-banner p { margin: 0 0 16px; color: var(--text-muted); }
.cta-banner-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--biz-gold, var(--accent)), #8a6d3b);
  color: #0a1628;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(198, 161, 91, 0.3); color: #0a1628; }

.zbc-example-card .fortune-card-head { margin-bottom: 6px; }

/* ===========================================================================
   Business Partner page — night-temple redesign (scoped to body.biz-page)
   =========================================================================== */
body.biz-page {
  --biz-navy: #0f0b27;
  --biz-navy-card: #1a1340;
  --biz-border: #3b2d6e;
  --biz-gold: #e7c27a;
  --biz-text: #f1ecff;
  --biz-text-muted: #b6aad6;
  --biz-pink: #ff7eb6;
  --biz-pink-2: #ff9fc9;
  background: #0b081f;
}
.biz-hero-v2 {
  position: relative;
  background:
    linear-gradient(90deg, rgba(11, 8, 31, 0.94) 0%, rgba(11, 8, 31, 0.78) 42%, rgba(11, 8, 31, 0.15) 100%),
    linear-gradient(180deg, rgba(11, 8, 31, 0) 70%, #0b081f 100%),
    url("../images/business/angkor-hero.webp") 78% 52% / cover no-repeat;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--biz-border);
}
.biz-hero-inner { max-width: var(--max-width); }
.biz-h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  text-align: left;
}
.biz-h1 span { display: block; }
.biz-h1-a {
  background: linear-gradient(180deg, #fff3cf, #e7c27a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.biz-h1-b {
  background: linear-gradient(180deg, #ff9fc9, #ff5fa5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.biz-hero-sub { font-size: 1.15rem; font-weight: 600; color: #fff; margin: 0 0 8px; text-align: left; }
.biz-hero-desc { max-width: 560px; color: #e3dcf7; margin: 0 0 22px; text-align: left; line-height: 1.55; }

.biz-page .biz-hero-v2 .biz-form {
  max-width: 600px;
  background: rgba(14, 10, 38, 0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 20px;
}
.biz-page .biz-person-card { border: 0; padding: 0; margin: 0; min-width: 0; }
.biz-page .biz-person-card legend { color: #fff; font-weight: 600; font-size: 0.92rem; padding: 0 0 6px; }
.biz-page .biz-person-card > label { display: none; }
.biz-page .biz-person-card input[type="date"],
.biz-page .biz-person-card input[type="time"] {
  background: #fff; color: #1d1a33; border: 0; border-radius: 8px;
  padding: 12px; width: 100%; box-sizing: border-box; font-size: 1rem;
}
.biz-time-opt { margin-top: 8px; }
.biz-time-opt summary { cursor: pointer; font-size: 0.8rem; color: var(--biz-text-muted); }
.biz-time-opt label { display: block !important; font-size: 0.8rem; color: var(--biz-text-muted); margin: 6px 0 4px; }
.biz-page .biz-submit {
  width: 100%; margin-top: 14px; border: 0; border-radius: 10px; padding: 14px 18px;
  font-size: 1.05rem; font-weight: 700; color: #3a0f26; cursor: pointer;
  background: linear-gradient(90deg, #ff7eb6, #ffb3d3);
}
.biz-page .biz-submit:hover { box-shadow: 0 6px 22px rgba(255, 126, 182, 0.4); }

.biz-result-wrap { margin-top: -8px; }
.biz-page .biz-result-card {
  background: linear-gradient(180deg, rgba(26, 19, 64, 0.95), rgba(15, 11, 39, 0.97));
  border: 1px solid rgba(231, 194, 122, 0.55);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 0 40px rgba(255, 126, 182, 0.08);
}

/* --- overview --- */
.biz-ov-title {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif; color: var(--biz-gold);
  font-size: clamp(1.25rem, 3vw, 1.7rem); text-align: center;
}
.biz-ov-title::before, .biz-ov-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 194, 122, 0.7));
}
.biz-ov-title::after { transform: scaleX(-1); }
.biz-ov-main {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 22px;
}
.biz-ov-person { text-align: center; }
.biz-ov-medal {
  width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%; padding: 4px;
  background: conic-gradient(#f6dc9b, #b8872f, #f6dc9b, #b8872f, #f6dc9b);
  box-shadow: 0 0 22px rgba(231, 194, 122, 0.35);
}
.biz-ov-medal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #120c30; display: block; }
.biz-ov-animal { font-family: Georgia, serif; font-size: 1.35rem; color: var(--biz-gold); margin-bottom: 8px; }
.biz-ov-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.biz-ov-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--biz-text); }
.biz-ov-chip img { width: 30px; height: 30px; object-fit: contain; }
.biz-ov-chip b { display: block; font-weight: 600; line-height: 1.1; }
.biz-ov-chip small { display: block; color: var(--biz-text-muted); font-size: 0.68rem; }
.biz-ov-yy { font-size: 1.4rem; line-height: 1; }
.biz-ov-score { text-align: center; }
.biz-ov-ring {
  width: 168px; height: 168px; border-radius: 50%; padding: 9px; margin: 0 auto;
  background: conic-gradient(from 200deg, #ff7eb6 0deg, #e7c27a var(--deg), rgba(255, 255, 255, 0.08) var(--deg));
}
.biz-ov-ring-inner {
  width: 100%; height: 100%; border-radius: 50%; background: #120c30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.biz-ov-ring-inner strong { font-family: Georgia, serif; font-size: 2.6rem; color: var(--biz-gold); line-height: 1; }
.biz-ov-ring-inner sup { font-size: 1.1rem; }
.biz-ov-ring-inner span { font-size: 0.85rem; color: #fff; font-weight: 600; margin-top: 4px; text-align: center; padding: 0 12px; }
.biz-ov-stars { margin-top: 8px; letter-spacing: 3px; font-size: 1.2rem; }
.biz-star { color: rgba(255, 255, 255, 0.2); }
.biz-star.full { color: var(--biz-gold); }
.biz-star.half { background: linear-gradient(90deg, var(--biz-gold) 50%, rgba(255, 255, 255, 0.2) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.biz-ov-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.biz-ov-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--biz-border); border-radius: 12px;
  padding: 14px 8px; text-align: center;
}
.biz-ov-ico { font-size: 1.6rem; }
.biz-ov-pct { font-family: Georgia, serif; font-size: 1.5rem; color: var(--biz-gold); }
.biz-ov-lbl { font-weight: 600; font-size: 0.85rem; color: #fff; }
.biz-ov-card p { margin: 6px 0 0; font-size: 0.74rem; color: var(--biz-text-muted); line-height: 1.35; }

.biz-ov-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.biz-ov-box { border: 1px solid var(--biz-border); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.biz-ov-box h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.1rem; }
.biz-ov-box.good { border-color: rgba(88, 214, 141, 0.55); } .biz-ov-box.good h3 { color: #7ee2a8; }
.biz-ov-box.warn { border-color: rgba(255, 110, 140, 0.55); } .biz-ov-box.warn h3 { color: #ff93aa; }
.biz-ov-box.roles { border-color: rgba(120, 160, 255, 0.55); } .biz-ov-box.roles h3 { color: var(--biz-gold); }
.biz-ov-box ul { list-style: none; margin: 0; padding: 0; }
.biz-ov-box li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: 0.9rem; color: var(--biz-text); }
.biz-ov-box li em { font-style: normal; color: var(--biz-text-muted); }
.biz-ov-mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; color: #0b081f;
}
.biz-ov-mark.ok { background: #58d68d; } .biz-ov-mark.bad { background: #ff6e8c; }
.biz-ov-box h4 { margin: 8px 0 6px; font-size: 0.88rem; color: #fff; }
.biz-ov-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-ov-tags span { font-size: 0.78rem; padding: 5px 11px; border-radius: 8px; border: 1px solid; color: #fff; }
.biz-ov-tags .r1 { background: rgba(255, 110, 140, 0.18); border-color: rgba(255, 110, 140, 0.6); }
.biz-ov-tags .r2 { background: rgba(120, 160, 255, 0.18); border-color: rgba(120, 160, 255, 0.6); }

.biz-ov-elem { display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr; gap: 12px; margin-bottom: 8px; align-items: stretch; }
.biz-ov-elem > * { border: 1px solid var(--biz-border); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.biz-ov-elem h3 { margin: 0 0 8px; font-family: Georgia, serif; color: var(--biz-gold); font-size: 1.1rem; }
.biz-ov-elem-pair { display: flex; align-items: center; justify-content: center; gap: 14px; }
.biz-ov-elem-pair div { text-align: center; font-size: 0.85rem; }
.biz-ov-elem-pair img { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 2px; }
.biz-ov-elem-pair i { font-style: normal; font-size: 1.6rem; color: var(--biz-pink); }
.biz-ov-elem-note h4 { margin: 0 0 6px; color: var(--biz-gold); font-size: 1rem; }
.biz-ov-elem-note p { margin: 0; font-size: 0.86rem; color: var(--biz-text-muted); line-height: 1.5; }
.biz-ov-disc { margin: 0; font-size: 0.8rem; color: var(--biz-text-muted); display: flex; align-items: center; }

@media (max-width: 900px) {
  .biz-ov-cards { grid-template-columns: repeat(3, 1fr); }
  .biz-ov-trio, .biz-ov-elem { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .biz-hero-v2 {
    padding: 36px 0 44px;
    background:
      linear-gradient(180deg, rgba(11, 8, 31, 0.9) 0%, rgba(11, 8, 31, 0.7) 55%, rgba(11, 8, 31, 0.92) 100%),
      url("../images/business/angkor-hero.webp") 70% 40% / cover no-repeat;
  }
  .biz-page .biz-people-grid { grid-template-columns: 1fr; }
  .biz-ov-main { grid-template-columns: 1fr 1fr; }
  .biz-ov-score { grid-column: 1 / -1; order: -1; }
  .biz-ov-cards { grid-template-columns: repeat(2, 1fr); }
  .biz-page .biz-result-card { padding: 18px 12px; }
}
.biz-page .biz-hero-v2 .kdp { margin-bottom: 4px; }
.biz-page .biz-hero-v2 .kdp .kdp-display { background: #fff; color: #1d1a33; border-color: transparent; }
.biz-page .biz-hero-v2 .kdp .kdp-display-icon { color: #6b5aa8; }
.biz-page .biz-hero-v2 .kdp-empty .kdp-display-text,
.biz-page .biz-hero-v2 .kdp-empty .kdp-display-text::before { color: #8a84a6; }
.biz-result-wrap { margin-top: 28px; }
.biz-ov-chip .biz-ov-yearico { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.biz-ov-medal img { background: #c9962f; }

/* --- Business Partners Guidelines section --- */
.biz-guide {
  position: relative; margin-top: 40px; padding: 48px 0 56px;
  background:
    linear-gradient(180deg, rgba(11, 8, 31, 0.82), rgba(11, 8, 31, 0.6) 22%, rgba(11, 8, 31, 0.35) 45%, rgba(11, 8, 31, 0.6)),
    url("../images/business/guidelines-bg.webp") center / cover no-repeat;
  border-top: 1px solid var(--biz-border); border-bottom: 1px solid var(--biz-border);
}
.biz-guide-inner { max-width: 1060px; }
.bg-head { text-align: center; margin-bottom: 26px; }
.bg-head h2 {
  margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.1;
  background: linear-gradient(180deg, #fff6d6, #e0a93b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bg-sub { color: #fff; font-weight: 600; margin: 0 0 12px; font-size: 1.05rem; }
.bg-intro { max-width: 720px; margin: 0 auto; color: #e3dcf7; line-height: 1.6; }
.bg-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.bg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bg-card, .bg-panel, .bg-dis {
  position: relative; border: 1px solid rgba(231, 194, 122, 0.55); border-radius: 14px;
  background: linear-gradient(160deg, rgba(34, 22, 78, 0.88), rgba(14, 10, 38, 0.9));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.bg-card { padding: 18px 16px 16px; }
.bg-num {
  position: absolute; top: -12px; left: -8px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700;
  color: #ffe9a8; background: #1a1340; border: 2px solid #e7c27a;
}
.bg-ico { font-size: 2.6rem; text-align: center; margin: 4px 0 8px; filter: drop-shadow(0 0 10px rgba(255, 200, 100, 0.35)); }
.bg-card h3 { margin: 0 0 8px; text-align: center; font-family: Georgia, serif; font-size: 1.1rem; color: #f3d28a; }
.bg-card p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; color: #f1ecff; }
.bg-card ul { margin: 0; padding-left: 0; list-style: none; }
.bg-card li { position: relative; padding-left: 16px; font-size: 0.88rem; margin-bottom: 3px; color: #f1ecff; }
.bg-card li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: #e7c27a; }
.bg-wide { display: flex; gap: 14px; align-items: center; padding: 18px 16px 16px 24px; }
.bg-wide .bg-ico { font-size: 3.4rem; margin: 0; flex: none; }
.bg-wide .bg-body { flex: 1; min-width: 0; }
.bg-wide h3 { text-align: left; }
.bg-panel { padding: 18px 18px 14px; }
.bg-panel h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.3rem; color: #f3d28a; }
.bg-rows { display: flex; flex-direction: column; gap: 8px; }
.bg-row {
  display: grid; grid-template-columns: 34px 150px 1fr; gap: 10px; align-items: center;
  padding: 9px 12px; border: 1px solid rgba(231, 194, 122, 0.3); border-radius: 10px; background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem; color: #f1ecff;
}
.bg-row b { color: #f3d28a; font-family: Georgia, serif; font-weight: 600; }
.bg-rico { font-size: 1.4rem; text-align: center; }
.bg-tips { list-style: none; margin: 0; padding: 0; }
.bg-tips li { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 0.92rem; color: #f1ecff; }
.bg-tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffd36b, #e0a93b); color: #3a2400; font-weight: 700; font-size: 0.8rem;
}
.bg-dis { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: center; padding: 16px 20px; }
.bg-dis-t { font-family: Georgia, serif; font-size: 1.2rem; color: #f3d28a; max-width: 150px; padding-right: 20px; border-right: 1px solid rgba(231, 194, 122, 0.4); }
.bg-dis p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #e3dcf7; }
@media (max-width: 960px) {
  .bg-grid4 { grid-template-columns: 1fr 1fr; }
  .bg-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .biz-guide { padding: 36px 0 44px; }
  .bg-grid4 { grid-template-columns: 1fr; }
  .bg-wide { flex-direction: column; text-align: center; }
  .bg-wide h3 { text-align: center; }
  .bg-row { grid-template-columns: 30px 1fr; }
  .bg-row span:last-child { grid-column: 2; font-size: 0.82rem; color: #b6aad6; }
  .bg-dis { grid-template-columns: 1fr; }
  .bg-dis-t { max-width: none; border-right: 0; padding: 0 0 8px; }
}
@media (max-width: 560px) { .bg-wide .bg-body { text-align: left; width: 100%; } .bg-wide h3 { text-align: center; } }
.bg-ico { filter: none; }
.bg-art {
  display: block; width: 100%; max-height: 150px; object-fit: contain; margin: 0 auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.bg-grid4 .bg-ico { margin: 2px 0 10px; }
.bg-wide .bg-ico { width: 175px; flex: none; }
.bg-wide .bg-art { max-height: 160px; }
@media (max-width: 560px) { .bg-wide .bg-ico { width: 180px; margin: 0 auto; } }
/* cards 1-4: title on top, then icon, then text (as in the mockup) */
.bg-grid4 .bg-card { display: flex; flex-direction: column; }
.bg-grid4 .bg-card .bg-body { display: contents; }
.bg-grid4 .bg-card h3 { order: 1; margin: 2px 0 10px; padding: 0 6px; min-height: 3.2em; display: flex; align-items: center; justify-content: center; }
.bg-grid4 .bg-card .bg-ico { order: 2; margin: 0 0 12px; }
.bg-grid4 .bg-card .bg-body > p, .bg-grid4 .bg-card .bg-body > ul { order: 3; }
@media (max-width: 960px) { .bg-grid4 .bg-card h3 { min-height: 0; } }

/* ===== Checker page redesign (night-temple look) ===== */
body.chk-page { background: #0b081f; }
.chk-hero {
  background:
    linear-gradient(90deg, rgba(11,8,31,.94) 0%, rgba(11,8,31,.78) 42%, rgba(11,8,31,.15) 100%),
    linear-gradient(180deg, rgba(11,8,31,0) 70%, #0b081f 100%),
    url("../images/business/angkor-hero.webp") 78% 52% / cover no-repeat;
  padding: 56px 0 64px; border-bottom: 1px solid #3b2d6e; margin-bottom: 28px;
}
.chk-h1 { margin: 0 0 12px; text-align: left; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.1;
  background: linear-gradient(180deg, #fff3cf, #e7c27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chk-sub { max-width: 560px; color: #e3dcf7; margin: 0 0 22px; text-align: left; line-height: 1.55; }
.chk-page .chk-form { max-width: 460px; margin: 0; text-align: left;
  background: rgba(14,10,38,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 20px; }
.chk-page .chk-form label { color: #fff; font-weight: 600; font-size: .92rem; }
.chk-page .chk-form .kdp .kdp-display { background: #fff; color: #1d1a33; border-color: transparent; }
.chk-page .chk-form .kdp .kdp-display-icon { color: #6b5aa8; }
.chk-page .chk-form .kdp-empty .kdp-display-text,
.chk-page .chk-form .kdp-empty .kdp-display-text::before { color: #8a84a6; }
.chk-page .chk-form button[type="submit"] { width: 100%; background: linear-gradient(90deg, #ff7eb6, #ff9fc9); color: #2a0f24; padding: 14px; font-size: 1.05rem; margin-top: 4px; }
.chk-page .chk-form button[type="submit"]:hover { filter: brightness(1.08); background: linear-gradient(90deg, #ff7eb6, #ff9fc9); }
.chk-page .result-card { background: linear-gradient(180deg, #1a1340, #120d30); border-color: #e7c27a55; color: #f1ecff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.chk-page .result-header { display: flex; align-items: center; gap: 20px; }
.chk-page .result-header h2 { color: #e7c27a; font-family: Georgia, serif; margin: 0 0 4px; }
.chk-page .result-block { background: rgba(255,255,255,.04); border: 1px solid #3b2d6e; border-radius: 14px; }
.chk-page .result-block h3 { color: #e7c27a; }
.chk-medal { position: relative; flex: 0 0 auto; width: 120px; height: 120px; }
.chk-medal-animal { width: 120px; height: 120px; border-radius: 50%; display: block; filter: drop-shadow(0 4px 14px rgba(231,194,122,.35)); }
.chk-medal-el { position: absolute; right: -6px; bottom: -4px; width: 44px; height: 44px; border-radius: 50%; background: #120d30; border: 2px solid #e7c27a; padding: 3px; box-sizing: border-box; }
@media (max-width: 600px) {
  .chk-hero { padding: 36px 0 44px; background-position: 70% 52%; }
  .chk-page .result-header { flex-direction: column; text-align: center; }
}
.chk-page .chk-form .kdp { margin-bottom: 8px; }
.chk-page .chk-form input[type="date"] { margin-bottom: 0; }

/* ===== Checker redesign v2 (brief + mockup) ===== */
body.chk-page { --gold:#e7c27a; --navy:#0b081f; --card:#120d30; --line:#3b2d6e; color:#f1ecff; }
.chk-hero {
  background: linear-gradient(180deg, rgba(11,8,31,.55) 0%, rgba(11,8,31,.35) 45%, #0b081f 100%),
    url("../images/checker/hero-bg.webp") center top / cover no-repeat;
  padding: 44px 0 56px; border-bottom: 0; margin-bottom: 18px; text-align: center;
}
.chk-h1 { text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.7); font-size: clamp(2rem, 5.4vw, 3.4rem);
  background: linear-gradient(180deg,#fff,#f6e2b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chk-sub { margin: 0 auto 26px; text-align: center; max-width: 640px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.8); font-size: 1.1rem; }
.chk-page .chk-form { max-width: 760px; margin: 0 auto; padding: 18px 22px; border: 1px solid #e7c27a88; background: rgba(11,8,31,.82); text-align: left; }
.chk-form-row { display: flex; gap: 16px; align-items: flex-end; }
.chk-field { flex: 1; min-width: 0; }
.chk-page .chk-form label { display: block; margin-bottom: 6px; color: #fff; }
.chk-page .chk-form button[type="submit"] { width: auto; flex: 0 0 auto; min-height: 50px; margin: 0; padding: 0 28px; background: linear-gradient(90deg,#ff5fa5,#8a5cff); color: #fff; font-size: 1.05rem; box-shadow: 0 6px 22px rgba(255,95,165,.35); }
.chk-page .chk-form button[type="submit"]:hover { background: linear-gradient(90deg,#ff74b2,#9b73ff); filter: none; }
.chk-page .chk-form button:focus-visible, .chk-btn:focus-visible, .chk-animal-link:focus-visible, .chk-faq-item summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.chk-page .chk-form .kdp { margin: 0; }
.chk-hint { margin: 12px 0 0; font-size: .88rem; color: #d9d0f2; }

.chk-wrap { max-width: 1040px; }
.chk-hero-card {
  display: grid; grid-template-columns: 250px 1fr 250px; gap: 26px; align-items: center;
  background: linear-gradient(135deg, rgba(26,19,64,.92), rgba(12,8,34,.95)); border: 1.5px solid #e7c27a99; border-radius: 22px;
  padding: 26px; box-shadow: 0 0 0 4px rgba(231,194,122,.08), 0 14px 50px rgba(0,0,0,.5); margin: 0 0 18px;
}
.chk-medal-lg { position: relative; }
.chk-medal-lg img { width: 100%; height: auto; display: block; border-radius: 50%; filter: drop-shadow(0 8px 26px rgba(231,194,122,.4)); }
.chk-kanji { position: absolute; right: -6px; top: -4px; font: 700 2.6rem/1 "Noto Serif SC","Songti SC","SimSun",serif; color: var(--gold); text-shadow: 0 2px 10px #000; }
.chk-eyebrow { margin: 0; font: italic 1.1rem Georgia,serif; color: #f3d28a; }
.chk-animal { margin: 0; font: 700 clamp(2.6rem,6vw,4.4rem)/1.05 Georgia,serif; background: linear-gradient(180deg,#fff3cf,#d9a441); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chk-years { margin: 8px 0 10px; padding-top: 10px; border-top: 1px solid #e7c27a55; color: #fff; font-size: .98rem; }
.chk-desc { margin: 0; color: #e9e2ff; line-height: 1.6; }
.chk-tiles { display: grid; gap: 10px; }
.chk-tile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #e7c27a66; border-radius: 12px; background: rgba(8,6,26,.7); }
.chk-tile-ico { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: var(--gold); }
.chk-tile-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chk-tile-ico img { width: 38px; height: 38px; border-radius: 50%; }
.chk-tile-l { font-size: .8rem; color: #d9d0f2; }
.chk-tile-v { font: 700 1.3rem Georgia,serif; color: #f6dc9e; line-height: 1.15; }
.chk-tile-s { font-size: .8rem; color: #d9d0f2; }

.chk-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.chk-card { border-radius: 18px; padding: 18px 16px 20px; border: 1.5px solid; color: #f4efff; }
.chk-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.15rem Georgia,serif; color: #f6e3b2; }
.chk-card h3 img { mix-blend-mode: lighten; flex: 0 0 auto; }
.chk-c-pers { background: linear-gradient(180deg,#14246a,#0e1440); border-color: #5b8dff99; }
.chk-c-love { background: linear-gradient(180deg,#5a1650,#2c0b2c); border-color: #ff7eb699; }
.chk-c-career { background: linear-gradient(180deg,#5a3a0c,#2a1a08); border-color: #e7a64a99; }
.chk-c-luck { background: linear-gradient(180deg,#0f4a22,#082613); border-color: #4fd26f99; }
.chk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; line-height: 1.4; }
.chk-list li { position: relative; padding-left: 26px; }
.chk-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #1a1430; font-size: .72rem; font-weight: 900; display: grid; place-items: center; }
.chk-list-kv li span { display: block; font-size: .78rem; color: #cdbfee; }
.chk-card p { margin: 0; line-height: 1.55; }

.chk-cta { display: flex; align-items: center; gap: 20px; padding: 16px 24px; border: 1.5px solid #e7c27a99; border-radius: 18px;
  background: linear-gradient(90deg, rgba(60,18,70,.9), rgba(24,14,56,.95)); }
.chk-cta-art { width: 130px; height: auto; flex: 0 0 auto; }
.chk-cta-text { flex: 1; }
.chk-cta h2 { margin: 0 0 4px; font: 700 1.6rem Georgia,serif; color: #fff; border: 0; padding: 0; }
.chk-cta p { margin: 0; color: #e3dcf7; }
.chk-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 999px; background: linear-gradient(90deg,#ff5fa5,#8a5cff); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chk-btn:hover { filter: brightness(1.1); }

.chk-explore { text-align: center; margin-top: 30px; }
.chk-explore h2 { font: 700 1.5rem Georgia,serif; color: #f6e3b2; border: 0; margin-bottom: 18px; }
.chk-animals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.chk-animal-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; color: #f1ecff; text-decoration: none; font-weight: 600; font-size: .9rem; border-radius: 12px; }
.chk-animal-link img { width: 100%; max-width: 72px; height: auto; border-radius: 50%; transition: transform .15s; }
.chk-animal-link:hover img { transform: translateY(-3px) scale(1.05); }

.chk-seo { max-width: 840px; margin-top: 36px; }
.chk-seo h2 { color: #f6e3b2; font-family: Georgia,serif; margin: 28px 0 10px; }
.chk-seo p, .chk-seo li { color: #e3dcf7; line-height: 1.7; }
.chk-seo a { color: #f3d28a; }
.chk-faq-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(26,19,64,.6); margin-bottom: 10px; }
.chk-faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: #fff; min-height: 24px; }
.chk-faq-item p { margin: 0; padding: 0 16px 16px; }
.chk-disclaimer { margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; color: #cdbfee !important; }
.chk-page .chk-details { max-width: 1040px; }
.chk-page .result-card.chk-details { margin-bottom: 18px; }

body.chk-page footer.chk-footer {
  margin-top: 40px; padding: 150px 0 28px; text-align: center; border: 0; color: #f1ecff;
  background: linear-gradient(180deg,#0b081f 0%,rgba(11,8,31,.2) 35%,rgba(11,8,31,.7) 100%), url("../images/checker/footer-bg.webp") center bottom / cover no-repeat;
}
.chk-footer p { text-shadow: 0 1px 8px #000; }
.chk-foot-brand { font: 700 1.6rem Georgia,serif; color: #f6e3b2; margin: 0; }
.chk-foot-tag { margin: 4px 0 14px; }
.chk-foot-links { margin-bottom: 12px; line-height: 2; }
.chk-footer a { color: #f3d28a; text-shadow: 0 1px 8px #000; }

@media (max-width: 900px) {
  .chk-hero-card { grid-template-columns: 1fr; text-align: center; }
  .chk-medal-lg { width: min(70%, 300px); margin: 0 auto; }
  .chk-tiles { grid-template-columns: 1fr 1fr; }
  .chk-four { grid-template-columns: 1fr 1fr; }
  .chk-animals { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 600px) {
  .chk-form-row { flex-direction: column; align-items: stretch; }
  .chk-page .chk-form button[type="submit"] { width: 100%; }
  .chk-four { grid-template-columns: 1fr; }
  .chk-cta { flex-direction: column; text-align: center; }
  .chk-btn { width: 100%; justify-content: center; }
  .chk-animals { grid-template-columns: repeat(4, 1fr); }
  .chk-tiles { grid-template-columns: 1fr; }
  .chk-list li { text-align: left; }
  body.chk-page footer.chk-footer { padding-top: 100px; }
}
.chk-field .kdp, .chk-field .kdp-display { width: 100%; box-sizing: border-box; }
.chk-field input[type="date"] { width: 100%; }
.chk-list-kv .color-chip { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.chk-list-kv .color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.chk-four .chk-card { align-self: start; }
.chk-page .chk-form .chk-field { flex: 1 1 auto; width: 100%; max-width: none; }
.chk-page .chk-form .chk-field .kdp { width: 100%; }
.chk-h1 { text-shadow: none; filter: drop-shadow(0 2px 12px rgba(0,0,0,.7)); }
.chk-page .chk-form .kdp .kdp-display { width: 100%; min-height: 50px; box-sizing: border-box; }
.chk-page .chk-form .chk-field .kdp { margin-bottom: 0; }
body.chk-page footer.chk-footer { background: linear-gradient(180deg,#0b081f 0%,rgba(11,8,31,.15) 30%,rgba(11,8,31,.6) 55%,rgba(11,8,31,.9) 100%), url("../images/checker/footer-bg.webp") center bottom / cover no-repeat; }
.chk-four .chk-card { align-self: stretch; }
.chk-four .chk-card { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.chk-four .chk-card .chk-art { display: block; width: calc(100% + 32px); max-width: none; height: auto; margin: auto -16px 0; padding-top: 14px; box-sizing: content-box;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%); mask-image: linear-gradient(180deg, transparent 0, #000 38%); }
.chk-four .chk-card > :not(h3):not(.chk-art) { margin-bottom: 14px; }

/* --- Footer skyline (all pages) --- */
footer.site-footer {
  position: relative;
  margin-top: 48px;
  padding: 170px 0 30px;
  border-top: 0;
  color: #e9e2ff;
  background:
    linear-gradient(180deg, #0f0b1f 0%, rgba(15, 11, 31, 0) 32%, rgba(15, 11, 31, 0.5) 68%, rgba(15, 11, 31, 0.88) 100%),
    url("../images/footer-skyline.webp") center 40% / cover no-repeat;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
footer.site-footer a { color: #f3d28a; }
footer.site-footer p { margin: 8px 0 0; color: #d9d0f2; }
@media (max-width: 600px) {
  footer.site-footer { padding-top: 120px; background-position: 42% 40%; }
}
.chk-hero { padding-bottom: 28px; margin-bottom: 0; }
.chk-page .today-strip { margin-top: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .chk-hero { padding-bottom: 22px; } }
.chk-sample { margin: 0 0 12px; text-align: center; color: #d9d0f2; font-size: .95rem; }
.chk-form-row { align-items: flex-start; }
.chk-page .chk-form button[type="submit"] { margin-top: 31px; }
@media (max-width: 600px) { .chk-page .chk-form button[type="submit"] { margin-top: 4px; } }
.chk-page .chk-form .chk-field .kdp { height: 50px; }
/* Khmer hero title: ornate display face (Moul), title only */
html[lang="km"] .chk-h1 { font-family: "Moul", "Noto Sans Khmer", serif; font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.5; letter-spacing: 0; }
/* Khmer: nicer typography across the checker page */
html[lang="km"] body.chk-page,
html[lang="km"] .chk-page .checker-form button,
html[lang="km"] .chk-page .chk-btn,
html[lang="km"] .chk-page .lang-toggle,
html[lang="km"] .chk-page .kdp,
html[lang="km"] .chk-page .kdp button,
html[lang="km"] .chk-page select { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
html[lang="km"] .chk-page { line-height: 1.7; }
html[lang="km"] .chk-page h2, html[lang="km"] .chk-page h3, html[lang="km"] .chk-page .chk-animal,
html[lang="km"] .chk-page .chk-eyebrow, html[lang="km"] .chk-page .chk-tile-v, html[lang="km"] .chk-page .chk-cta h2,
html[lang="km"] .chk-page .chk-explore h2, html[lang="km"] .chk-page .chk-foot-brand, html[lang="km"] .chk-page .chk-card h3,
html[lang="km"] .chk-page .result-header h2, html[lang="km"] .chk-page .chk-seo h2 {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; font-weight: 700; font-style: normal; line-height: 1.45; }
html[lang="km"] .chk-page .chk-animal { font-size: clamp(2.2rem, 5vw, 3.6rem); }
html[lang="km"] .chk-page .chk-sub, html[lang="km"] .chk-page .chk-desc, html[lang="km"] .chk-page .chk-list,
html[lang="km"] .chk-page .chk-seo p, html[lang="km"] .chk-page .chk-seo li { line-height: 1.8; }
html[lang="km"] .chk-page .chk-h1 { font-family: "Moul", "Kantumruy Pro", "Noto Sans Khmer", serif; }
/* Checker: open the calendar downward so it never covers the title (esp. the taller Khmer title) */
.chk-page .chk-form .kdp-popup { bottom: auto; top: calc(100% + 8px); box-shadow: 0 14px 36px rgba(0,0,0,.55); z-index: 60; }
.chk-page .chk-hero { position: relative; z-index: 5; }
html[lang="km"] .chk-page .chk-h1 { margin-bottom: 18px; }
/* Khmer hero title: more breathing room, no clipped marks, lighter size */
html[lang="km"] .chk-page .chk-h1 {
  font-size: clamp(1.35rem, 3.3vw, 2.1rem); line-height: 1.85; padding: .15em .1em .25em; margin: 0 0 22px;
  background: linear-gradient(180deg, #fff6dc 10%, #f0cf86 100%); -webkit-background-clip: text; background-clip: text; overflow: visible;
}
html[lang="km"] .chk-page .chk-sub { margin-top: 0; line-height: 1.9; }
@media (max-width: 600px) { html[lang="km"] .chk-page .chk-h1 { font-size: 1.3rem; line-height: 1.9; } }
/* Zodiac explorer detail panel */
.chk-animal-link.is-active img { box-shadow: 0 0 0 3px #e7c27a, 0 0 18px rgba(231,194,122,.6); }
.chk-animal-link.is-active { color: #f6dc9e; }
.chk-detail { text-align: left; margin: 18px auto 0; max-width: 900px; padding: 20px; border: 1.5px solid #e7c27a99; border-radius: 18px;
  background: linear-gradient(135deg, rgba(26,19,64,.95), rgba(12,8,34,.97)); box-shadow: 0 10px 36px rgba(0,0,0,.45); position: relative; }
.chk-d-head { display: flex; gap: 16px; align-items: center; padding-right: 36px; }
.chk-d-head img { border-radius: 50%; flex: 0 0 auto; filter: drop-shadow(0 4px 14px rgba(231,194,122,.35)); }
.chk-d-head h3 { margin: 0 0 4px; font: 700 1.7rem Georgia, serif; color: #f6e3b2; }
.chk-d-kanji { font: 700 1.3rem "Noto Serif SC","Songti SC",serif; color: #e7c27a; }
.chk-d-head p { margin: 0 0 4px; color: #e9e2ff; line-height: 1.55; }
.chk-d-years { color: #fff !important; }
.chk-d-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e7c27a66; background: transparent; color: #f6e3b2; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chk-d-close:hover { background: rgba(231,194,122,.15); }
.chk-d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #3b2d6e; }
.chk-d-grid h4 { margin: 0 0 8px; color: #e7c27a; font-size: .95rem; }
.chk-d-grid ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.chk-d-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #3b2d6e; border-radius: 12px; background: rgba(255,255,255,.04); }
.chk-d-row img { width: 44px; height: 44px; border-radius: 50%; }
.chk-d-row strong { display: block; color: #fff; }
.chk-d-row span { font-size: .9rem; color: #d9d0f2; }
.chk-d-guide { display: inline-block; margin-top: 4px; color: #f3d28a; font-weight: 600; }
@media (max-width: 600px) { .chk-d-grid { grid-template-columns: 1fr; } .chk-d-head { align-items: flex-start; } .chk-d-head img { width: 64px; height: 64px; } }
html[lang="km"] .chk-page .chk-d-head h3, html[lang="km"] .chk-page .chk-d-grid h4 { font-family: "Kantumruy Pro","Noto Sans Khmer",sans-serif; }
/* Checker: calendar opens upward (above the field) again */
.chk-page .chk-form .kdp-popup { top: auto; bottom: calc(100% + 8px); box-shadow: 0 -12px 32px rgba(0,0,0,.55); }
/* Checker: smaller calendar popup */
.chk-page .chk-form .kdp-popup { width: 244px; padding: 8px; border-radius: 10px; }
.chk-page .kdp-header { margin-bottom: 6px; gap: 4px; }
.chk-page .kdp-header .kdp-nav { width: 22px; height: 22px; font-size: .9rem; }
.chk-page .kdp-month-select, .chk-page .kdp-year-select { font-size: .72rem; padding: 3px 1px; }
.chk-page .kdp-year-select { flex-basis: 56px; }
.chk-page .kdp-weekdays { font-size: .66rem; margin-bottom: 2px; }
.chk-page .kdp-grid { gap: 1px; }
.chk-page .kdp-grid .kdp-day { padding: 4px 0; font-size: .76rem; }
.chk-page .kdp-footer { margin-top: 6px; padding-top: 6px; }
.chk-page .kdp-footer .kdp-clear, .chk-page .kdp-footer .kdp-today { font-size: .76rem; padding: 2px 4px; }
/* Checker: four cards with evenly distributed, same-length text blocks */
.chk-four .chk-card > .chk-list { flex: 1 1 auto; grid-auto-rows: 1fr; align-content: stretch; gap: 6px; margin-bottom: 12px; }
.chk-four .chk-card > .chk-list > li { display: flex; align-items: center; padding-left: 28px; min-height: 2.6em; }
.chk-four .chk-card > .chk-list > li::before { top: 50%; transform: translateY(-50%); }
.chk-list-kv li > div > span:first-child { display: inline; font-size: inherit; color: #cdbfee; margin-right: 4px; }
.chk-list-kv li > div > span:first-child::after { content: ":"; }
.chk-list-kv li { line-height: 1.35; }
.chk-list-kv li > * , .chk-list-kv li { flex-wrap: wrap; }

.chk-four .chk-card > .chk-list > li { min-height: 2.3em; }
.chk-four .chk-card > .chk-list { gap: 4px; }

/* ===== Compatibility redesign (night theme, shares .chk-* base) ===== */
.cmp-lead { max-width: 640px; margin: -8px auto 22px; text-align: center; color: #e9e2ff; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.cmp-page .cmp-form { max-width: 820px; padding: 22px 24px 18px; border-radius: 20px; box-shadow: 0 0 0 4px rgba(231,194,122,.08), 0 14px 50px rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.cmp-form-row { display: flex; align-items: flex-end; gap: 10px; }
.cmp-page .cmp-form .chk-field { flex: 1 1 0; min-width: 0; }
.cmp-link { flex: 0 0 52px; height: 50px; display: grid; place-items: center; }
.cmp-link-heart { filter: drop-shadow(0 0 10px rgba(255,95,165,.85)); animation: cmpBeat 2.2s ease-in-out infinite; }
@keyframes cmpBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .cmp-link-heart { animation: none; } }
.cmp-page .cmp-form button[type="submit"] { display: block; width: 100%; max-width: 360px; margin: 18px auto 0; min-height: 52px; }
.cmp-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,95,95,.14); border: 1px solid #ff8a8a; color: #ffd7d7; text-align: center; }
.cmp-page .chk-hint { text-align: center; }
.cmp-page .chk-form .kdp-popup { top: auto; bottom: calc(100% + 8px); }

.cmp-wrap { max-width: 1060px; }
.cmp-page .cmp-wrap:empty { display: none; }
.cmp-h2 { text-align: center; font: 700 clamp(1.5rem, 3.4vw, 2rem) Georgia, serif; color: #f6e3b2; border: 0; margin: 8px 0 20px; }
.cmp-h3 { font: 700 1.35rem Georgia, serif; color: #f6e3b2; border: 0; margin: 0 0 14px; }
.cmp-h4 { font: 700 1.05rem Georgia, serif; color: #f6e3b2; margin: 22px 0 10px; }

.cmp-result { position: relative; margin: 14px 0 22px; padding: 28px 22px 24px; border: 1.5px solid #e7c27a99; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(11,8,31,.72), rgba(11,8,31,.9)), url("../images/checker/hero-bg.webp") center 20% / cover no-repeat;
  box-shadow: 0 0 0 4px rgba(231,194,122,.08), 0 14px 50px rgba(0,0,0,.5); }
.cmp-stage { display: grid; grid-template-columns: 1fr minmax(210px, 260px) 1fr; gap: 18px; align-items: center; }
.cmp-person { text-align: center; }
.cmp-person-l { margin: 0 0 6px; font: italic 1.05rem Georgia, serif; color: #f3d28a; }
.cmp-medal img { width: min(100%, 170px); height: auto; border-radius: 50%; filter: drop-shadow(0 8px 26px rgba(231,194,122,.45)); }
.cmp-person-a { margin: 6px 0 8px; font: 700 clamp(1.8rem, 4vw, 2.5rem)/1.1 Georgia, serif; background: linear-gradient(180deg,#fff3cf,#d9a441); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp-person-meta { list-style: none; margin: 0 auto; padding: 0; max-width: 220px; display: grid; gap: 4px; font-size: .92rem; }
.cmp-person-meta li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; border: 1px solid #e7c27a55; border-radius: 10px; background: rgba(8,6,26,.65); }
.cmp-person-meta span { color: #d9d0f2; }
.cmp-person-meta b { color: #f6dc9e; }
.cmp-core { text-align: center; }
.cmp-heartwrap { position: relative; width: min(100%, 250px); margin: 0 auto; filter: drop-shadow(0 0 22px rgba(255,95,165,.55)); animation: cmpGlow 3s ease-in-out infinite; }
@keyframes cmpGlow { 0%,100% { filter: drop-shadow(0 0 14px rgba(255,95,165,.45)); } 50% { filter: drop-shadow(0 0 30px rgba(138,92,255,.7)); } }
@media (prefers-reduced-motion: reduce) { .cmp-heartwrap { animation: none; } }
.cmp-heartwrap svg { display: block; width: 100%; height: auto; }
.cmp-pct { position: absolute; left: 0; right: 0; top: 30%; font: 700 clamp(2.4rem, 7vw, 3.4rem)/1 Georgia, serif; color: #fff; text-shadow: 0 2px 14px rgba(255,95,165,.8); }
.cmp-level { margin: 10px 0 0; font: 700 1.25rem Georgia, serif; color: #f6dc9e; }
.cmp-desc-lg { max-width: 760px; margin: 22px auto 8px; text-align: center; color: #f1ecff; line-height: 1.7; font-size: 1.05rem; }
.cmp-note { margin: 0; text-align: center; font-size: .85rem; color: #cdbfee; }
.cmp-result .share-row { justify-content: center; margin-top: 14px; }

.cmp-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.cmp-score { border-radius: 18px; padding: 16px 16px 18px; border: 1.5px solid; color: #f4efff; }
.cmp-score-top { display: flex; align-items: center; gap: 10px; }
.cmp-score-top h3 { margin: 0; font: 700 1.1rem Georgia, serif; color: #f6e3b2; }
.cmp-score-ico { font-size: 1.5rem; line-height: 1; }
.cmp-score-pct { margin: 10px 0 6px; font: 700 2.3rem/1 Georgia, serif; color: #fff; }
.cmp-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 10px; }
.cmp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e7c27a, #fff3cf); }
.cmp-score-tx { margin: 0; line-height: 1.5; font-size: .95rem; color: #e9e2ff; }
.cmp-s-love { background: linear-gradient(180deg,#5a1650,#2c0b2c); border-color: #ff7eb699; }
.cmp-s-communication { background: linear-gradient(180deg,#14246a,#0e1440); border-color: #5b8dff99; }
.cmp-s-trust { background: linear-gradient(180deg,#0f4a3f,#082620); border-color: #4fd2b399; }
.cmp-s-business { background: linear-gradient(180deg,#5a3a0c,#2a1a08); border-color: #e7a64a99; }
.cmp-s-friendship { background: linear-gradient(180deg,#3a1a6a,#1c0e40); border-color: #a98bff99; }
.cmp-s-overall { background: linear-gradient(180deg,#6a2a0c,#2e1208); border-color: #e7c27acc; }

.cmp-panel { margin-bottom: 18px; padding: 22px; border-radius: 18px; border: 1.5px solid #3b2d6e; background: linear-gradient(180deg, rgba(26,19,64,.95), rgba(14,10,38,.97)); color: #ece6ff; }
.cmp-panel p { line-height: 1.7; margin: 0 0 12px; }
.cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.cmp-two .cmp-panel { margin: 0; }
.cmp-good { border-color: #4fd26f88; }
.cmp-care { border-color: #e7a64a88; }
.cmp-page .chk-list li { line-height: 1.5; }
.cmp-elpair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 1.5rem Georgia, serif; color: #fff; }
.cmp-elpair i { font-style: normal; color: #e7c27a; }
.cmp-tag { font: 700 .85rem system-ui, sans-serif; font-style: normal; padding: 5px 12px; border-radius: 999px; border: 1px solid; }
.cmp-tag-harmonious { color: #9bf0b3; border-color: #4fd26f; background: rgba(79,210,111,.12); }
.cmp-tag-supportive { color: #a7c8ff; border-color: #5b8dff; background: rgba(91,141,255,.12); }
.cmp-tag-neutral { color: #e3dcf7; border-color: #a99bd0; background: rgba(169,155,208,.12); }
.cmp-tag-challenging { color: #ffc98a; border-color: #e7a64a; background: rgba(231,166,74,.12); }
.cmp-five { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cmp-el { text-align: center; padding: 10px 6px; border-radius: 14px; border: 1px solid #3b2d6e; background: rgba(8,6,26,.55); opacity: .7; }
.cmp-el.is-on { opacity: 1; border-color: #e7c27a; box-shadow: 0 0 18px rgba(231,194,122,.25); }
.cmp-el img { border-radius: 50%; mix-blend-mode: lighten; }
.cmp-el b { display: block; color: #f6e3b2; margin-top: 4px; }
.cmp-el span { display: block; font-size: .8rem; color: #d9d0f2; line-height: 1.35; }

.cmp-guidelines { margin-bottom: 18px; border-radius: 22px; overflow: hidden; border: 1.5px solid #e7c27a88;
  background: linear-gradient(180deg, rgba(11,8,31,.5), rgba(11,8,31,.8)), url("../images/business/guidelines-bg.webp") center / cover no-repeat; }
.cmp-guidelines-in { max-width: 640px; margin: 0 auto; padding: 26px 22px; }
.cmp-guidelines-in .cmp-h3 { text-align: center; }
.cmp-guidelines-in .chk-list { background: rgba(11,8,31,.78); padding: 18px 18px 18px; border-radius: 16px; gap: 12px; }
.cmp-guidelines-in .chk-list li { padding-left: 30px; }

.cmp-focus { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-focus li { padding: 12px 14px; border-radius: 12px; border: 1px solid #3b2d6e; background: rgba(8,6,26,.55); }
.cmp-focus strong { display: block; color: #f6e3b2; margin-bottom: 2px; }
.cmp-focus span { color: #e0d8f5; font-size: .93rem; line-height: 1.5; }
.cmp-deep-love { border-color: #ff7eb688; }
.cmp-deep-friend { border-color: #a98bff88; }
.cmp-deep-biz { border-color: #e7a64a88; }
.cmp-cta-row { margin: 18px 0 0 !important; text-align: center; }
.cmp-reset-row { text-align: center; margin: 4px 0 18px; }
.cmp-reset { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #e7c27a; background: transparent; color: #f6e3b2; font-weight: 700; cursor: pointer; }
.cmp-reset:hover { background: rgba(231,194,122,.12); }
.cmp-reset:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.cmp-guides-wrap { margin-top: 34px; }
.cmp-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmp-guide { display: block; padding: 18px; border-radius: 16px; border: 1.5px solid #3b2d6e; background: linear-gradient(135deg, rgba(60,18,70,.7), rgba(24,14,56,.9)); color: #fff; text-decoration: none; min-height: 44px; }
.cmp-guide:hover, .cmp-guide:focus-visible { border-color: #e7c27a; transform: translateY(-2px); }
.cmp-guide:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cmp-guide strong { display: block; font: 700 1.05rem Georgia, serif; color: #f6e3b2; margin-bottom: 4px; }
.cmp-guide span { color: #d9d0f2; font-size: .92rem; }

.cmp-quick { margin-top: 30px; }
.cmp-quick h2 { color: #f6e3b2; font-family: Georgia, serif; border: 0; }
.cmp-quick .compat-intro, .cmp-quick label, .cmp-quick legend { color: #e3dcf7; }
.cmp-quick-form { background: rgba(26,19,64,.7); border: 1px solid #3b2d6e; border-radius: 16px; padding: 18px; }
.cmp-page .cmp-quick .card, .cmp-page #compat-result .card { background: linear-gradient(180deg,#1a1340,#120d30); border-color: #e7c27a55; color: #f1ecff; }
.cmp-page #compat-result h3, .cmp-page #compat-result .compat-label { color: #f6e3b2; }
.cmp-page .cmp-quick .kdp .kdp-display { background: #fff; color: #1d1a33; }
.cmp-page .cmp-quick button[type="submit"] { min-height: 46px; background: linear-gradient(90deg,#ff5fa5,#8a5cff); color: #fff; border: 0; border-radius: 12px; padding: 0 22px; font-weight: 700; cursor: pointer; }
.cmp-page .cmp-quick .kdp-popup { top: auto; bottom: calc(100% + 8px); z-index: 60; }
.cmp-page .chk-seo .cmp-h2 { margin-top: 30px; }

html[lang="km"] .cmp-page .cmp-h2, html[lang="km"] .cmp-page .cmp-h3, html[lang="km"] .cmp-page .cmp-h4,
html[lang="km"] .cmp-page .cmp-person-a, html[lang="km"] .cmp-page .cmp-level, html[lang="km"] .cmp-page .cmp-score-top h3,
html[lang="km"] .cmp-page .cmp-guide strong, html[lang="km"] .cmp-page .cmp-quick h2, html[lang="km"] .cmp-page .cmp-elpair {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; line-height: 1.6; }
html[lang="km"] .cmp-page .cmp-person-a { font-size: clamp(1.7rem, 4vw, 2.3rem); }
html[lang="km"] .cmp-page .cmp-desc-lg, html[lang="km"] .cmp-page .cmp-panel p, html[lang="km"] .cmp-page .cmp-score-tx,
html[lang="km"] .cmp-page .cmp-focus span, html[lang="km"] .cmp-page .cmp-lead { line-height: 1.9; }
html[lang="km"] .cmp-page .chk-h1 { font-size: clamp(1.4rem, 4.4vw, 2.4rem); }

@media (max-width: 900px) {
  .cmp-stage { grid-template-columns: 1fr; gap: 12px; }
  .cmp-scores, .cmp-guides { grid-template-columns: 1fr 1fr; }
  .cmp-five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cmp-form-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .cmp-link { flex-basis: auto; height: 44px; }
  .cmp-link-heart { transform: rotate(0); }
  .cmp-two, .cmp-focus, .cmp-scores, .cmp-guides { grid-template-columns: 1fr; }
  .cmp-five { grid-template-columns: repeat(2, 1fr); }
  .cmp-result { padding: 22px 14px; }
  .cmp-panel { padding: 18px 16px; }
  .cmp-page .cmp-form button[type="submit"] { max-width: none; }
  .cmp-page .chk-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}
.cmp-lead { padding: 10px 16px; border-radius: 14px; background: rgba(11,8,31,.5); }
.chk-card h3 img.chk-ico-new { mix-blend-mode: normal; width: 36px; height: 36px; }

/* Zodiac-year tile: animal/element heading on a single line */
.chk-page .chk-tile-one { display: block; white-space: nowrap; font-size: clamp(.82rem, 1.5vw, 1.05rem); line-height: 1.3; }
/* Compatibility result: more compact top section */
.cmp-result { padding: 18px 18px 16px; margin: 10px 0 16px; }
.cmp-result .cmp-h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin: 0 0 8px; }
.cmp-stage { grid-template-columns: 1fr minmax(150px, 190px) 1fr; gap: 12px; }
.cmp-person-l { margin: 0 0 4px; font-size: .95rem; }
.cmp-medal img { width: min(100%, 110px); }
.cmp-person-a { margin: 4px 0 6px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
html[lang="km"] .cmp-page .cmp-person-a { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.cmp-person-meta { max-width: 190px; gap: 3px; font-size: .82rem; }
.cmp-person-meta li { padding: 3px 9px; }
.cmp-heartwrap { width: min(100%, 175px); }
.cmp-pct { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.cmp-level { margin: 6px 0 0; font-size: 1.05rem; }
.cmp-desc-lg { margin: 12px auto 6px; font-size: .95rem; line-height: 1.6; }
.cmp-result .share-row { margin-top: 8px; }
@media (max-width: 600px) {
  .cmp-result { padding: 16px 12px; }
  .cmp-stage { gap: 10px; }
  .cmp-medal img { width: 96px; }
  .cmp-heartwrap { width: 150px; }
}

/* Compatibility hero: Angkor lotus-lake night background */
.cmp-hero {
  background: linear-gradient(180deg, rgba(11,8,31,.45) 0%, rgba(11,8,31,.25) 45%, #0b081f 100%),
    url("../images/compat/hero-bg.webp") center top / cover no-repeat;
}
.cmp-result {
  background: linear-gradient(180deg, rgba(11,8,31,.62), rgba(11,8,31,.88)), url("../images/compat/hero-bg.webp") center 30% / cover no-repeat;
}
/* Business Partner hero: one-line title, everything centred */
.biz-hero-v2 {
  background:
    linear-gradient(180deg, rgba(11, 8, 31, 0.72) 0%, rgba(11, 8, 31, 0.5) 55%, rgba(11, 8, 31, 0.88) 100%),
    url("../images/business/angkor-hero.webp") 78% 52% / cover no-repeat;
}
.biz-hero-inner { text-align: center; }
.biz-h1 { text-align: center; white-space: nowrap; font-size: clamp(0.82rem, 4.1vw, 2.7rem); line-height: 1.2; }
.biz-h1 span { display: inline; }
.biz-hero-sub, .biz-hero-desc { text-align: center; }
.biz-hero-desc { margin-left: auto; margin-right: auto; }
.biz-page .biz-hero-v2 .biz-form { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .biz-hero-v2 {
    background:
      linear-gradient(180deg, rgba(11, 8, 31, 0.9) 0%, rgba(11, 8, 31, 0.7) 55%, rgba(11, 8, 31, 0.92) 100%),
      url("../images/business/angkor-hero.webp") 70% 40% / cover no-repeat;
  }
}
html[lang="km"] .biz-h1 { font-size: clamp(0.78rem, 3.5vw, 2.2rem); }

/* Business Partner: no empty gap/double line between the hero and the guidelines before a result exists */
.biz-hero-v2 { border-bottom: 0; }
.biz-result-wrap:has(#biz-result:empty) { margin-top: 0; }
.biz-result-wrap:has(#biz-result:empty) + .biz-guide { margin-top: 0; }
.biz-hero-v2 { padding-bottom: 22px; }
@media (max-width: 640px) { .biz-hero-v2 { padding-bottom: 16px; } }
.biz-page .biz-hero-v2 .biz-form { margin-bottom: 0; }
.biz-hero-v2 { padding-bottom: 14px; }
/* Business guidelines: blossom-and-clouds night background */
.biz-guide { background: linear-gradient(180deg, rgba(11,8,31,.6) 0, rgba(11,8,31,.4) 230px, rgba(11,8,31,0) 330px), #0b081f url("../images/business/guidelines-bg2.webp") center top / cover no-repeat; }

/* Business Partner: soft blend from the hero into the guidelines (no hard seam) */
.biz-hero-v2 {
  background:
    linear-gradient(180deg, rgba(11, 8, 31, 0.72) 0%, rgba(11, 8, 31, 0.5) 45%, rgba(11, 8, 31, 0.85) 82%, #0b081f 100%),
    url("../images/business/angkor-hero.webp") 78% 52% / cover no-repeat;
  border-bottom: 0;
}
.biz-guide {
  border-top: 0;
  background:
    linear-gradient(180deg, #0b081f 0, rgba(11,8,31,.78) 70px, rgba(11,8,31,.4) 200px, rgba(11,8,31,0) 330px),
    #0b081f url("../images/business/guidelines-bg2.webp") center top / cover no-repeat;
}
@media (max-width: 640px) {
  .biz-hero-v2 {
    background:
      linear-gradient(180deg, rgba(11, 8, 31, 0.9) 0%, rgba(11, 8, 31, 0.7) 50%, rgba(11, 8, 31, 0.92) 82%, #0b081f 100%),
      url("../images/business/angkor-hero.webp") 70% 40% / cover no-repeat;
  }
}
/* Business Partner: tidy ad slot + related-link cards under the guidelines */
.biz-page .ad-slot { margin: 22px auto 10px; max-width: 760px; }
.biz-page .biz-more {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto 34px; padding: 18px;
  border: 1.5px solid rgba(231, 194, 122, 0.7); border-radius: 22px;
  background: rgba(11, 8, 31, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 4px rgba(231, 194, 122, 0.07), 0 14px 40px rgba(0, 0, 0, 0.4);
}
.biz-page .biz-more a {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 14px 20px;
  border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #e63e8c 0%, #7b52f0 100%);
  color: #fff; font-weight: 700; line-height: 1.5; text-decoration: none;
  box-shadow: 0 8px 22px rgba(138, 92, 255, 0.35);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.biz-page .biz-more a:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 26px rgba(255, 95, 165, 0.4); }
.biz-page .biz-more a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { .biz-page .biz-more { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; padding: 14px; } }

/* Business Partner: night-sky background for the area under the guidelines (ad slot + link cards) */
.biz-page .biz-after {
  padding: 8px 0 44px;
  background:
    linear-gradient(180deg, #0b081f 0, rgba(11,8,31,.55) 80px, rgba(11,8,31,.15) 50%, rgba(15,11,31,.7) 82%, #0f0b1f 100%),
    #0b081f url("../images/business/guidelines-bg2.webp") center bottom / cover no-repeat;
}
.biz-page .biz-after .ad-slot { background: rgba(11, 8, 31, 0.55); }

.biz-page .biz-after + .site-footer { margin-top: 0; }

/* Footer: dark, blends with the site background (skyline only a faint silhouette) */
footer.site-footer,
body.chk-page footer.chk-footer {
  margin-top: 40px;
  padding: 84px 0 32px;
  background:
    linear-gradient(180deg, #0f0b1f 0%, rgba(15, 11, 31, 0.8) 40%, rgba(13, 9, 29, 0.93) 100%),
    url("../images/footer-skyline.webp") center 55% / cover no-repeat,
    #0f0b1f;
  text-shadow: none;
  border-top: 1px solid rgba(231, 194, 122, 0.18);
}
footer.site-footer p, .chk-footer p { color: #b9afd6; text-shadow: none; }
@media (max-width: 600px) { footer.site-footer, body.chk-page footer.chk-footer { padding-top: 64px; } }

/* Business Partner: link section without background image */
.biz-page .biz-after { background: none; }

/* Business Partner: ornate gold frame around the two link buttons */
.biz-page .biz-more {
  border: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 64px 70px;
  border-image: url("../images/business/gold-frame.webp") 240 / 64px 70px stretch;
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 0 4px;
  max-width: 1000px;
}
@media (max-width: 640px) {
  .biz-page .biz-more { border-width: 44px 40px; border-image-width: 44px 40px; margin-left: 8px; margin-right: 8px; padding: 0; }
}
/* Khmer: guidelines heading was clipped (tight line-height + gradient text clip) */
html[lang="km"] .bg-head h2 {
  font-family: "Moul", "Noto Sans Khmer", serif; font-weight: 400;
  font-size: clamp(1.35rem, 4vw, 2.3rem);
  line-height: 1.8; padding: 0.15em 0.1em; margin-bottom: 4px;
  overflow: visible; overflow-wrap: anywhere;
}
html[lang="km"] .bg-sub { line-height: 1.8; }
html[lang="km"] .bg-intro { line-height: 1.9; }
/* Compatibility: optional gender select + gender notes in the result */
.cmp-page .cmp-gender {
  display: block; width: 100%; box-sizing: border-box; margin-top: 8px; height: 42px; padding: 0 38px 0 14px;
  border-radius: 12px; border: 1px solid rgba(231, 194, 122, 0.35);
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23e7c27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  color: #ece6ff; font: inherit; font-size: 0.95rem; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.cmp-page .cmp-gender:focus-visible { outline: 2px solid #e7c27a; outline-offset: 2px; }
.cmp-page .cmp-gender option { color: #1d1a33; background: #fff; }
.cmp-gender-panel .cmp-gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 12px; }
.cmp-gcard { padding: 16px; border-radius: 14px; border: 1px solid rgba(231, 194, 122, 0.4); background: rgba(255, 255, 255, 0.04); }
.cmp-gcard h3 { margin: 0 0 8px; font-size: 1.05rem; color: #ffe3a3; }
.cmp-gcard p { margin: 0 0 8px; font-size: 0.95rem; }
.cmp-gcard p:last-child { margin-bottom: 0; }
.cmp-gcard b { color: #ffd98a; font-weight: 600; }
.cmp-gtry { padding: 12px 14px; border-radius: 12px; background: rgba(231, 194, 122, 0.1); border-left: 3px solid #e7c27a; margin-bottom: 0 !important; }
html[lang="km"] .cmp-gcard p, html[lang="km"] .cmp-gtry { line-height: 1.9; }
@media (max-width: 640px) { .cmp-gender-panel .cmp-gcards { grid-template-columns: 1fr; } }
/* ==========================================================================
   Wedding Date page (body.wed-page) — Khmer night, lotus + gold
   ========================================================================== */
.wed-page .chk-hero { padding-bottom: 28px; }
.wed-support { max-width: 640px; margin: 4px auto 22px; text-align: center; color: #e9e2ff; text-shadow: 0 1px 10px rgba(0,0,0,.85); line-height: 1.6; }
.wed-page .wed-form {
  max-width: 860px; margin: 0 auto; padding: 22px 26px 18px; border-radius: 22px; text-align: left;
  border: 1.5px solid rgba(231,194,122,.55); background: rgba(11,8,31,.8);
  box-shadow: 0 0 0 4px rgba(231,194,122,.07), 0 14px 50px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wed-form-h { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; border: 0; padding: 0; text-align: center; font: 700 clamp(1.15rem, 2.6vw, 1.45rem) Georgia, serif; color: #f6e3b2; }
.wed-form-h::before, .wed-form-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(231,194,122,.7)); }
.wed-form-h::after { transform: scaleX(-1); }
.wed-dob-row { display: grid; grid-template-columns: 1fr 104px 1fr; align-items: end; gap: 6px; }
.wed-heart { display: grid; place-items: center; height: 50px; }
.wed-heart img { width: 97px; height: auto; filter: drop-shadow(0 0 10px rgba(255,95,165,.6)); animation: cmpBeat 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .wed-heart img { animation: none; } }
.wed-opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.wed-page .wed-form .chk-field { min-width: 0; width: 100%; max-width: none; }
.wed-page .wed-form label { display: block; margin: 0 0 6px; color: #fff; font-weight: 700; font-size: .92rem; }
.wed-select {
  display: block; width: 100%; box-sizing: border-box; height: 50px; padding: 0 40px 0 14px; border-radius: 12px;
  border: 1px solid rgba(231,194,122,.45); color: #1d1a33; font: inherit; font-size: 1rem; cursor: pointer;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%236b5aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
}
.wed-select:focus-visible { outline: 3px solid #e7c27a; outline-offset: 2px; }
.wed-page .wed-form button[type="submit"] { display: block; width: 100%; max-width: 380px; margin: 20px auto 0; min-height: 52px; }
.wed-page .chk-hint { text-align: center; }
.wed-page .cmp-error { margin-top: 14px; }
.wed-wrap { max-width: 1060px; }
.wed-wrap:empty { display: none; }

/* result: guide panel with the gold lotus-heart frame */
.wed-guide {
  position: relative; isolation: isolate; margin: 74px 0 26px; padding: 0 12px; text-align: center;
  border: 0 solid transparent; border-width: 62px 56px;
  border-image: url("../images/wedding/frame.webp") 190 / 62px 56px stretch;
  background: none;
  color: #ece6ff;
}
.wed-guide::before { content: ""; position: absolute; inset: -20px -30px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(46,28,104,.75) 0%, rgba(26,16,64,.45) 45%, rgba(11,8,31,0) 72%); }
.wed-guide-top { position: absolute; left: 50%; top: -112px; transform: translateX(-50%); width: min(340px, 70%); height: auto; pointer-events: none; }
.wed-guide-h { margin: 6px 0 14px; border: 0; font: 700 clamp(1.5rem, 3.4vw, 2.1rem) Georgia, serif; color: #f6e3b2; }
.wed-stage { display: grid; grid-template-columns: 1fr minmax(190px, 230px) 1fr; gap: 14px; align-items: center; }
.wed-partner { text-align: center; }
.wed-partner-l { margin: 0; color: #cfc6ea; font-size: .9rem; letter-spacing: .04em; }
.wed-medal img { width: clamp(110px, 14vw, 150px); height: auto; filter: drop-shadow(0 0 16px rgba(255,190,90,.35)); }
.wed-partner-a { margin: 4px 0 6px; border: 0; padding: 0; font: 700 1.6rem Georgia, serif; color: #ffe3a3; }
.wed-partner-meta { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 3px; }
.wed-partner-meta li { display: flex; justify-content: center; gap: 8px; font-size: .92rem; }
.wed-partner-meta span { color: #b6aad6; }
.wed-partner-meta b { color: #fff; }
.wed-partner-t { margin: 0 auto; max-width: 300px; font-size: .88rem; line-height: 1.6; color: #d8d0f1; }
.wed-partner-t b { color: #ffd98a; }
.wed-core { text-align: center; }
.wed-heartwrap { position: relative; width: min(100%, 175px); margin: 0 auto; }
.wed-heartwrap svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(255,95,165,.4)); }
.wed-pct { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: 700 clamp(1.7rem, 5vw, 2.3rem)/1 Georgia, serif; color: #fff; text-shadow: 0 2px 14px rgba(255,95,165,.8); }
.wed-harmony-h { margin: 8px 0 2px; color: #b6aad6; font-size: .85rem; }
.wed-level { margin: 0; font: 700 1.2rem Georgia, serif; color: #ffe3a3; }
.wed-harmony-note { margin: 16px auto 4px; max-width: 640px; font-size: .88rem; color: #bfb5de; font-style: italic; }

/* 12-month calendar */
.wed-months, .wed-dates { margin-bottom: 28px; }
.wed-lead { max-width: 680px; margin: -8px auto 18px; text-align: center; color: #e3dcf7; line-height: 1.6; }
.wed-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.wed-m {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 12px; text-align: center; border-radius: 16px;
  border: 1.5px solid rgba(231,194,122,.5); background: linear-gradient(180deg, rgba(60,40,10,.55), rgba(20,12,6,.8)); color: #f1ecff;
}
.wed-m img { width: 64px; height: auto; margin: 2px 0; }
.wed-m-name { font: 700 1rem Georgia, serif; color: #fff; }
.wed-m-rate { font: 700 1rem Georgia, serif; color: #ffd98a; }
.wed-m-note { font-size: .82rem; line-height: 1.45; color: #dcd4f3; }
.wed-m-sub { font-size: .74rem; line-height: 1.35; color: #a99ccb; margin-top: auto; }
.wed-m-excellent { border-color: rgba(80,230,140,.65); background: linear-gradient(180deg, rgba(10,70,45,.75), rgba(5,28,22,.9)); }
.wed-m-excellent .wed-m-rate { color: #7dffb0; }
.wed-m-good { border-color: rgba(255,95,190,.6); background: linear-gradient(180deg, rgba(80,12,70,.7), rgba(30,8,36,.9)); }
.wed-m-good .wed-m-rate { color: #ff9ad8; }
.wed-m-workable .wed-m-rate { color: #ffd98a; }
.wed-m-avoid { border-color: rgba(190,180,215,.35); background: linear-gradient(180deg, rgba(40,34,60,.7), rgba(18,14,32,.9)); }
.wed-m-avoid img { filter: grayscale(.85) brightness(.8); }
.wed-m-avoid .wed-m-rate { color: #c9c1e0; }

/* recommended dates */
.wed-dlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wed-d { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(231,194,122,.45); background: linear-gradient(160deg, rgba(34,22,78,.9), rgba(14,10,38,.92)); }
.wed-d-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.wed-d-date b { font: 700 1.1rem Georgia, serif; color: #fff; flex: 1 1 100%; }
.wed-stars { color: #ffcf5a; letter-spacing: 2px; font-size: 1.05rem; }
.wed-d-rate { color: #7dffb0; font-weight: 700; }
.wed-d-good .wed-d-rate { color: #ff9ad8; }
.wed-d p { margin: 8px 0 0; font-size: .9rem; line-height: 1.55; color: #dcd4f3; }
.wed-none { text-align: center; color: #e3dcf7; padding: 14px; border: 1px dashed rgba(231,194,122,.4); border-radius: 12px; }

.wed-table-box { margin: 0 0 24px; border: 1px solid #3b2d6e; border-radius: 14px; background: rgba(14,10,38,.85); padding: 4px 14px; }
.wed-table-box > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: #f6e3b2; }
.wed-table-box .disclaimer { margin: 10px 0 12px; }

/* info sections */
.wed-sec { margin-bottom: 30px; }
.wed-why, .wed-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wed-why-card, .wed-plan-card { position: relative; padding: 18px 16px; border-radius: 16px; border: 1px solid rgba(231,194,122,.45); background: linear-gradient(160deg, rgba(34,22,78,.88), rgba(14,10,38,.92)); color: #e3dcf7; }
.wed-why-card h3, .wed-plan-card h3 { margin: 0 0 6px; border: 0; padding: 0; font: 700 1.05rem Georgia, serif; color: #ffe3a3; }
.wed-why-card p, .wed-plan-card p { margin: 0; font-size: .92rem; line-height: 1.6; }
.wed-plan-card { padding-top: 24px; }
.wed-plan-n { position: absolute; top: -12px; left: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem Georgia, serif; color: #ffe9a8; background: #1a1340; border: 2px solid #e7c27a; }
.wed-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wed-tool { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 44px; text-decoration: none; border-radius: 16px; border: 1px solid rgba(231,194,122,.45); background: linear-gradient(135deg, rgba(120,30,110,.45), rgba(60,40,140,.5)); color: #fff; transition: transform .15s, filter .15s; }
.wed-tool strong { font: 700 1.02rem Georgia, serif; color: #ffe3a3; }
.wed-tool span { font-size: .88rem; color: #e3dcf7; }
.wed-tool:hover { transform: translateY(-2px); filter: brightness(1.1); }
.wed-tool:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wed-disclaimer { margin-top: 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(231,194,122,.5); background: rgba(231,194,122,.07); line-height: 1.7; }
html[lang="km"] .wed-lead, html[lang="km"] .wed-support, html[lang="km"] .wed-m-note, html[lang="km"] .wed-d p, html[lang="km"] .wed-why-card p, html[lang="km"] .wed-plan-card p, html[lang="km"] .wed-partner-t { line-height: 1.9; }
html[lang="km"] .wed-pct, html[lang="km"] .wed-m-name, html[lang="km"] .wed-m-rate { font-family: "Noto Sans Khmer", Georgia, serif; }

@media (max-width: 1000px) {
  .wed-cal { grid-template-columns: repeat(4, 1fr); }
  .wed-why, .wed-plan { grid-template-columns: repeat(2, 1fr); }
  .wed-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wed-stage { grid-template-columns: 1fr; gap: 18px; }
  .wed-guide { border-width: 50px 34px; border-image-width: 50px 34px; margin-top: 64px; }
  .wed-guide-top { top: -96px; width: min(300px, 80%); }
  .wed-guide-h { margin-top: 0; }
  .wed-dob-row { grid-template-columns: 1fr; gap: 10px; }
  .wed-heart { height: 52px; }
  .wed-heart img { width: 84px; }
  .wed-opt-row { grid-template-columns: 1fr; }
  .wed-dlist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wed-cal { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wed-m { padding: 10px 4px; }
  .wed-m-note { font-size: .74rem; }
  .wed-page .wed-form { padding: 18px 16px 16px; }
}
@media (max-width: 480px) {
  .wed-cal { grid-template-columns: repeat(2, 1fr); }
  .wed-why, .wed-plan, .wed-tools { grid-template-columns: 1fr; }
}

/* ---- layout audit fixes (Oct 2026) ---- */
/* About / Contact / Privacy titles are now <h1>; keep the previous <h2> look */
section.content-section h1 { color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 8px; font-size: 1.5em; margin: .83em 0; }
/* Blog hero: keep the decorative moon from sitting behind the title */
.bv2-hero-art > circle:nth-of-type(-n+2) { transform: translate(200px, 6px); }
/* Comfortable tap targets for footer links */
footer.site-footer a { display: inline-block; padding: 9px 6px; margin: 0 4px; }
.hm-footer a, footer.site-footer.hm-footer a { display: inline-block; padding: 6px 0; }
/* Pill buttons never overflow their container; text re-centres when it wraps */
.bv2-info-btn { max-width: 100%; text-align: center; line-height: 1.4; }
@media (max-width: 480px) { .bv2-info-btn { padding: 11px 18px; font-size: .88rem; } }
/* "From the Blog" block on tool pages: align with the article column and make the link a clear button */
.chk-seo ~ section.content-section.container { max-width: 800px; }
@media (min-width: 900px) { .chk-seo ~ section.content-section.container { padding-inline: 0; } }
.chk-seo ~ section.content-section.container p > a:only-child { display: inline-block; border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 22px; text-decoration: none; font-weight: 600; line-height: 1.4; color: var(--text); }
.chk-seo ~ section.content-section.container p > a:only-child:hover { background: var(--accent); color: #1a1430; }
@media (max-width: 600px) { .bv2-hero-art > circle:nth-of-type(-n+2) { opacity: .3; } }
/* Footer link rows: spacing instead of text separators, so no dangling dots when the row wraps */
footer.site-footer:not(.hm-footer) .container { font-size: 0; }
footer.site-footer:not(.hm-footer) a { font-size: .95rem; margin: 0 6px; }
footer.site-footer:not(.hm-footer) p { font-size: .9rem; }
.chk-seo ~ section.content-section.container p > a:only-child, .bv2-info-btn { text-wrap: balance; }
footer.site-footer:not(.hm-footer) a { padding: 7px 6px; line-height: 1.3; }
.share-btn { min-height: 40px; padding: 8px 16px; }
.bv2-view-all { display: inline-block; padding: 8px 0; }
/* Empty "Ad space" placeholders hidden until real ad units are added (remove this rule to restore) */
.ad-slot { display: none !important; }

/* Language blocks: show only the active language from the very first paint (JS used to hide the other one after load, which made the page jump) */
/* Keyed on data-site-lang (set by js/i18n.js), not on lang: a browser translator (e.g. Chrome "Translate to English")
   rewrites <html lang>, which used to hide every block and leave empty boxes. */
html:not([data-site-lang="km"]) [data-lang-content="km"] { display: none; }
html[data-site-lang="km"] [data-lang-content="en"] { display: none; }
html:not([data-site-lang="zh"]) [data-lang-content="zh"] { display: none; }
/* Chinese: show the Chinese block; where a place has no Chinese block yet, its English block shows instead */
html[data-site-lang="zh"] [data-lang-content="km"] { display: none; }
html[data-site-lang="zh"] [data-lang-content="en"]:has(~ [data-lang-content="zh"]),
html[data-site-lang="zh"] [data-lang-content="zh"] ~ [data-lang-content="en"] { display: none; }
/* Simplified Chinese text: Noto Sans SC (loaded only in Chinese), then the phone / computer's own Chinese font */
html[lang^="zh"] body { font-family: Georgia, "Times New Roman", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
html[lang^="zh"] :is(h1, h2, h3, p, li, span, a, b, strong, button, label, td, th, summary, small, em) { word-break: normal; line-break: strict; }

/* Footer backgrounds: skyline pictures removed (lighter pages). Plain dark footer instead. */
footer.site-footer, body.chk-page footer.chk-footer, .fx-page footer.site-footer, .hm-final { background-image: none !important; background-color: #0b0820 !important; }
body.chk-page footer.chk-footer { padding-top: 48px; margin-top: 32px; border-top: 1px solid rgba(231, 194, 122, .18); text-shadow: none; }
.hm-final-in { padding-bottom: 60px; }

/* Khmer typography, one consistent face: Kantumruy Pro for body text, buttons, forms and small headings (clearer at small sizes than Noto Sans Khmer).
   Big page titles (h1/h2) keep their own display face (Moul). Noto Sans Khmer stays as the fallback. */
html[lang="km"] body,
html[lang="km"] :is(p, li, a, label, button, input, select, textarea, summary, dt, dd, h3, h4, h5, figcaption, th, td, small):not(:is(h1, h2) *):not(.logo) {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS", sans-serif !important;
}
/* Khmer never takes letter-spacing (it breaks the letter clusters apart); the Business Partner title also gets the Moul title face like the other pages */
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] .biz-hero-v2 h1 { letter-spacing: 0 !important; }
html[lang="km"] .biz-hero-v2 h1 { font-family: "Moul", "Kantumruy Pro", "Noto Sans Khmer", serif !important; font-weight: 400; font-size: clamp(1.4rem, 4vw, 2.3rem); line-height: 1.7; text-wrap: balance; }
/* Business Partner page: photo backgrounds removed (hero + guidelines) for a lighter, cleaner page */
.biz-hero-v2, .biz-guide { background-image: none !important; background-color: #0b081f !important; }

/* Business Partner: gold frame around the two bottom link buttons removed (lighter page) */
.biz-page .biz-more { border: 0 !important; border-image: none !important; padding: 32px 16px !important; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .biz-page .biz-more { border-width: 0 !important; padding: 24px 16px !important; margin-left: 0; margin-right: 0; } }
html[lang="km"] :is(a, button, label, p, li, span) { letter-spacing: 0 !important; }

/* ===== Compare Two Signs (compatibility page) ===== */
.cs-wrap { margin-top: 10px; }
.cs-lead { text-align: center; color: #d9d2ee; margin: -8px auto 18px; max-width: 640px; }
.cs-form { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 12px; padding: 18px; border-radius: 18px; border: 1.5px solid #3b2d6e; background: linear-gradient(180deg, rgba(26,19,64,.95), rgba(14,10,38,.97)); }
.cs-form label { display: flex; flex-direction: column; gap: 6px; color: #f6e3b2; font-weight: 700; font-size: .9rem; min-width: 0; flex: 1 1 180px; max-width: 260px; }
.cs-form select { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid #5a4796; background: #120c33; color: #fff; font: inherit; font-weight: 400; }
.cs-and { color: #f6dc9b; font: 700 1.4rem Georgia, serif; padding-bottom: 8px; }
.cs-form .cs-go { min-height: 46px; flex: 0 1 auto; }
.cs-result { margin-top: 22px; }
.cs-head { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-sign { margin: 0; text-align: center; }
.cs-sign img { width: 110px; height: 110px; border-radius: 50%; }
.cs-sign figcaption { color: #f6e3b2; font: 700 1.1rem Georgia, serif; margin-top: 4px; }
html[lang="km"] .cs-sign figcaption { font-family: "Noto Sans Khmer", sans-serif; }
.cs-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cs-badge { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(246,220,155,.6); color: #f6dc9b; font-weight: 700; background: rgba(246,220,155,.08); text-align: center; }
.cs-type-clash .cs-badge { color: #ff9aa8; border-color: rgba(240,111,130,.6); background: rgba(220,70,100,.1); }
.cs-quick { margin: 4px 0 0; color: #b9b0de; font-size: .8rem; }
.cs-stars { color: #ece6ff; font-size: .9rem; }
.cs-stars span { color: #f6dc9b; letter-spacing: 1px; }
.cs-stars i { color: rgba(246,220,155,.25); font-style: normal; }
.cs-intro { max-width: 760px; margin: 0 auto 16px; text-align: center; line-height: 1.7; color: #ece6ff; }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.cs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-grid .cmp-panel { margin: 0; }
.cs-grid ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.cs-grid .cs-tips { list-style: none; padding: 0; display: grid; gap: 6px; }
.cs-tips strong { color: #f6e3b2; }
.cs-exact { text-align: center; color: #d9d2ee; margin: 6px 0; }
.cs-exact-btn { display: inline-block; margin-left: 6px; color: #f6dc9b; font-weight: 700; }
.cs-note { text-align: center; color: #9d94c8; font-size: .82rem; }
@media (max-width: 760px) { .cs-grid, .cs-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cs-sign img { width: 84px; height: 84px; } .cs-and { display: none; } .cs-form label { flex-basis: 100%; max-width: none; } .cs-form .cs-go { width: 100%; } }
.cmp-share, .cs-share { display: flex; justify-content: center; margin: 12px 0 4px; }

/* Phones: EN / ខ្មែរ switch in the top bar (copy made by js/i18n.js), menu copy hidden there */
.site-header .lang-toggle-bar { display: none; }
@media (max-width: 640px) {
  .site-header .lang-toggle-bar { display: inline-flex; margin: 0 8px 0 auto; padding: 2px 3px; gap: 2px; border-color: rgba(231, 194, 122, 0.35); }
  .site-header .lang-toggle-bar a { margin-left: 0; padding: 4px 11px; font-size: 0.82rem; line-height: 1.3; }
  header.site-header nav .lang-toggle { display: none; }
}
@media (max-width: 360px) {
  .site-header .container { gap: 6px; padding: 0 14px; }
  .site-header .lang-toggle-bar { margin-right: 6px; }
  .site-header .lang-toggle-bar a { padding: 4px 7px; font-size: 0.76rem; }
  header.site-header .logo { font-size: 0.98rem; gap: 6px; letter-spacing: 0; }
  header.site-header .logo-mark { width: 22px; height: 22px; }
  header.site-header .logo-text { letter-spacing: 0.3px; }
  .nav-toggle { width: 36px; }
}
/* Khmer blog heading: use the site's Khmer font (the display serif has no Khmer letters) */
html[lang="km"] .bv2-hero h1 { font-family: "Noto Sans Khmer", "Kantumruy Pro", sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
/* Share menu: image / download / link actions, then apps; long menus scroll; phones get a bottom sheet */
.share-option[hidden] { display: none; }
.share-sep { height: 1px; margin: 4px 6px; background: rgba(180, 169, 214, 0.25); }
.share-popover { max-height: min(70vh, 520px); overflow-y: auto; }
.share-note { margin: 6px 4px 2px; padding: 8px 10px; border-radius: 8px; background: rgba(212, 175, 55, 0.1); color: var(--text); font-size: 0.8rem; line-height: 1.45; max-width: 260px; text-align: left; }
.share-note[hidden] { display: none; }
.share-option:focus-visible, .share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-popover.share-sheet { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); min-width: 0; max-height: 72vh; z-index: 10001; border-radius: 16px; padding: 8px; background: #1a1430; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); }
.share-sheet .share-option { padding: 11px 12px; font-size: 0.95rem; }
.share-sheet .share-note { max-width: none; }
.share-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(6, 4, 20, 0.62); }
.share-backdrop[hidden] { display: none; }
.chk-share .share-row, .pf-share { display: flex; justify-content: center; }
.chk-share { margin: 18px 0 6px; }
.pf-share { margin-top: 14px; }
.biz-result-card > .share-row { justify-content: center; margin: 18px 0; }
.chk-share { margin: 14px 0 18px; }
/* Phones: smaller crops of the hero pictures (same visible area, about half the download) */
@media (max-width: 600px) {
  .chk-hero:not(.cmp-hero):not(.wed-hero) { background: linear-gradient(180deg, rgba(11,8,31,.55) 0%, rgba(11,8,31,.35) 45%, #0b081f 100%), url("../images/checker/hero-bg-m.webp") center top / cover no-repeat; }
  .chk-hero.cmp-hero { background: linear-gradient(180deg, rgba(11,8,31,.45) 0%, rgba(11,8,31,.25) 45%, #0b081f 100%), url("../images/compat/hero-bg-m.webp") center top / cover no-repeat; }
  .cmp-result { background: linear-gradient(180deg, rgba(11,8,31,.62), rgba(11,8,31,.88)), url("../images/compat/hero-bg-m.webp") center 30% / cover no-repeat; }
}

/* ===== Checker: Your Khmer Lunar Birth Date (js/khmer-lunar.js) ===== */
.kl { margin-top: 4px; margin-bottom: 22px; }
.kl-card { position: relative; padding: 22px 22px 18px; border-radius: 22px; border: 1.5px solid #e7c27a66; color: #f1ecff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(140, 92, 230, .22), transparent 60%), linear-gradient(180deg, #1a1340, #120d30);
  box-shadow: 0 0 0 4px rgba(231, 194, 122, .06), 0 12px 40px rgba(0, 0, 0, .4); }
.kl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.kl-head h2 { margin: 0; font: 700 1.35rem/1.25 Georgia, serif; color: #f6e3b2; }
.kl-head p { margin: 2px 0 0; color: #cfc6ee; font-size: .92rem; }
.kl-moon { flex: 0 0 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fff6d8, #f1cf7c 55%, #b8862f);
  box-shadow: inset -10px -4px 0 0 rgba(18, 13, 48, .78), 0 0 18px rgba(246, 210, 130, .45); }
.kl-main { margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; text-align: center; border: 1px solid #e7c27a88;
  background: radial-gradient(80% 120% at 50% 0%, rgba(246, 210, 130, .18), transparent 70%), rgba(11, 8, 31, .6); }
.kl-main p { margin: 0; }
.kl-main-label { color: #e7c27a; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html[lang="km"] .kl-main-label { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.kl-main-date { margin-top: 2px !important; font-size: clamp(1.6rem, 4.6vw, 2.2rem); font-weight: 700; color: #fff3d1; line-height: 1.6; text-shadow: 0 0 18px rgba(246, 210, 130, .35); }
.kl-main-extra { color: #cfc6ee; font-size: .92rem; }
.kl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (max-width: 899px) { .kl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kl-row { margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid #3b2d6e; background: rgba(11, 8, 31, .55); min-width: 0; }
.kl-row dt { color: #e7c27a; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.kl-row dd { margin: 0; }
.kl-row strong { display: block; color: #fff; font-size: 1.12rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.kl-extra { display: block; margin-top: 2px; color: #cfc6ee; font-size: .86rem; line-height: 1.5; }
.kl [lang="km"], html[lang="km"] .kl { font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS", sans-serif; }
html[lang="km"] .kl-head h2 { font-family: "Moul", "Kantumruy Pro", serif; font-weight: 400; font-size: 1.15rem; line-height: 1.9; }
html[lang="km"] .kl-row dt { text-transform: none; letter-spacing: 0; font-size: .86rem; }
.kl-full { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(231, 194, 122, .1); border: 1px dashed #e7c27a66; color: #fff3d1; line-height: 1.8; }
.kl-full > span:first-child { color: #e7c27a; font-weight: 700; margin-right: 4px; }
.kl-notes { margin: 12px 0 0; padding: 0 0 0 18px; color: #e6defc; font-size: .9rem; line-height: 1.6; }
.kl-notes li + li { margin-top: 4px; }
.kl-today { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #3b2d6e; color: #b9b0dc; font-size: .86rem; line-height: 1.7; }
.kl-method { margin: 8px 0 0; color: #9f96c6; font-size: .78rem; line-height: 1.55; }
.kl-fallback { margin: 0; color: #ffd9a8; line-height: 1.7; }
@media (max-width: 600px) { .kl-card { padding: 18px 14px 14px; } .kl-head h2 { font-size: 1.15rem; } .kl-row { padding: 10px 12px; } .kl-row strong { font-size: 1rem; } }
@media (max-width: 380px) { .kl-grid { grid-template-columns: 1fr; } }
/* Khmer lunar dates elsewhere: pair block (Compatibility / Business Partner), inline (Wedding Date), footer line (every page) */
.kl-moon-sm { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fff6d8, #f1cf7c 55%, #b8862f); box-shadow: inset -4px -2px 0 0 rgba(18, 13, 48, .78), 0 0 8px rgba(246, 210, 130, .4); }
.kl-pair { margin: 16px auto 4px; max-width: 760px; padding: 14px 16px; border-radius: 16px; border: 1px solid #e7c27a66; background: rgba(11, 8, 31, .55); text-align: left; }
.kl-pair h3 { margin: 0 0 8px; font: 700 1.02rem/1.4 Georgia, serif; color: #f6e3b2; }
html[lang="km"] .kl-pair h3 { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.kl-pair ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kl-pair li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: #f1ecff; }
.kl-pair li b { color: #e7c27a; font-size: .9rem; min-width: 84px; }
.kl-inline { display: block; color: #fff3d1; font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; font-size: .95rem; line-height: 1.7; }
.kl-pair .kl-inline { display: inline; }
.wed-d-date .kl-inline { flex-basis: 100%; margin-top: 2px; font-size: .9rem; color: #f6dc9b; }
.kl-today-strip { margin: 0 auto 10px; padding: 8px 14px; max-width: 900px; border-radius: 999px; border: 1px solid rgba(231, 194, 122, .35); background: rgba(11, 8, 31, .5);
  color: #cfc6ee; font-size: .86rem !important; line-height: 1.7; text-align: center; }
.kl-today-strip [lang="km"] { color: #fff3d1; font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
@media (max-width: 600px) { .kl-today-strip { border-radius: 14px; margin: 0 16px 10px; } }
/* footers style their paragraphs (margin/left edge): keep the strip centered with space under it */
footer.site-footer p.kl-today-strip { margin: 0 auto 14px; }
@media (max-width: 600px) { footer.site-footer p.kl-today-strip { margin: 0 16px 12px; } }
/* homepage-style footers reset paragraph margins: keep the strip centered with space under it */
footer.site-footer.hm-footer p.kl-today-strip { max-width: 1180px; margin: 0 auto 26px; }
@media (max-width: 600px) { footer.site-footer.hm-footer p.kl-today-strip { margin: 0 0 22px; } }

/* ===== Blog article: Khmer Lunar Calendar (blog/khmer-lunar-calendar-birth-date.html) — extends article.post ===== */
/* wider page: the Today card uses the full width; reading text stays a comfortable centered column */
article.post.klb { max-width: 1160px; }
.klb > :not(.klc) { max-width: 860px; margin-left: auto; margin-right: auto; }
.klb h2 { color: #f6e3b2; margin-top: 1.9em; }
.klb h3 { color: #e7c27a; }
.klb-eyebrow { margin: 26px 0 4px; color: var(--accent-soft); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
html[lang="km"] .klb-eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.klb h1 { margin-top: 0; line-height: 1.3; text-wrap: balance; }
html[lang="km"] .klb h1 { line-height: 1.8; }
.klb-sub { font-size: 1.08rem; color: var(--text-muted) !important; margin-top: -6px; }
.klb-meta { font-size: .86rem; color: var(--text-muted) !important; }
.klb-hero { margin: 18px 0 14px; }
.klb-hero img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid #e7c27a55; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.klb ul { padding-left: 1.2em; }
.klb li { margin: 6px 0; }
.klb [lang="km"], html[lang="km"] .klb { font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS", sans-serif; }
.klb-diagram { margin: 18px 0; padding: 14px; border-radius: 16px; border: 1px solid #3b2d6e; background: rgba(11, 8, 31, .5); }
.klb-band { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 999px; font-size: .95rem; }
.klb-band + .klb-band { margin-top: 8px; }
.klb-wax { background: linear-gradient(90deg, rgba(26, 16, 62, .9), rgba(246, 210, 130, .28)); }
.klb-wane { background: linear-gradient(90deg, rgba(246, 210, 130, .28), rgba(26, 16, 62, .9)); }
.klb-band b { color: #fff3d1; margin-right: 6px; }
.klb-ico { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid #e7c27a99; }
.klb-ico-new { background: #1a1040; }
.klb-ico-full { background: radial-gradient(circle at 36% 34%, #fff6d8, #f1cf7c 60%, #c9973f); box-shadow: 0 0 12px rgba(246, 210, 130, .5); }
.klb-diagram figcaption { margin-top: 10px; color: var(--text-muted); font-size: .86rem; text-align: center; }
.klb-table-wrap { overflow-x: auto; margin: 12px 0; }
.klb-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.klb-table th, .klb-table td { padding: 8px 12px; border-bottom: 1px solid #332a52; text-align: left; }
.klb-table th { color: #e7c27a; font-weight: 700; }
.klb-table td[lang="km"], html[lang="km"] .klb-table td:first-child { color: #fff3d1; font-size: 1.05rem; }
.klb-faq details { margin: 8px 0; padding: 10px 14px; border-radius: 12px; border: 1px solid #332a52; background: var(--bg-card); }
.klb-faq summary { cursor: pointer; font-weight: 700; color: #f6e3b2; }
.klb-faq details p { margin: 8px 0 0; }
.klb-src-h { margin-top: 2em; font-size: 1rem; }
.klb-src { font-size: .86rem; color: var(--text-muted); }
@media (max-width: 600px) { .klb-band { font-size: .88rem; padding: 8px 10px; } }
/* Blog: the Khmer Lunar Calendar guide spans the whole guide grid (keeps the other six cards in full rows) */
.bv2-guide-card.bv2-guide-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
.bv2-guide-wide .bv2-guide-art { height: 100%; min-height: 200px; max-height: 260px; object-position: center 40%; }
.bv2-guide-wide .bv2-guide-body h3 { font-size: 1.3rem; }
@media (max-width: 700px) { .bv2-guide-card.bv2-guide-wide { grid-template-columns: 1fr; } .bv2-guide-wide .bv2-guide-art { height: 170px; min-height: 0; } }

/* ===== "Khmer Lunar Calendar: Today" card in the Khmer lunar article — artwork is decoration, all dates are live text ===== */
.klc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); margin: 18px 0 16px; border-radius: 20px; overflow: hidden;
  border: 1.5px solid #e7c27a88; background: #0c0928; box-shadow: 0 0 0 4px rgba(231, 194, 122, .07), 0 16px 44px rgba(0, 0, 0, .5); }
.klc-art { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 72% 50%; }
.klc-panel { grid-column: 1; grid-row: 1; position: relative; margin: 14px; padding: 16px 16px 14px; border-radius: 16px; color: #f1ecff;
  background: linear-gradient(180deg, rgba(14, 10, 46, .9), rgba(10, 7, 34, .94)); border: 1px solid #e7c27a99;
  box-shadow: inset 0 0 0 4px rgba(10, 7, 34, .9), inset 0 0 0 5px rgba(231, 194, 122, .35); }
.klc-panel::before, .klc-panel::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid #e7c27a; pointer-events: none; }
.klc-panel::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.klc-panel::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.klc-top { text-align: center; padding-bottom: 8px; border-bottom: 1px solid rgba(231, 194, 122, .35); }
.klc-km { margin: 0; font-family: "Moul", "Kantumruy Pro", serif; font-size: 1.15rem; line-height: 1.9; color: #f6dc9b; text-shadow: 0 0 14px rgba(246, 210, 130, .35); }
.klc .klc-h { margin: 0; color: #fff3d1; font: 700 1.05rem/1.4 Georgia, serif; letter-spacing: .02em; }
html[lang="km"] .klc .klc-h { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.klc-big { margin: 10px 0 4px; text-align: center; font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; line-height: 1.7; color: #fff3d1; text-shadow: 0 0 16px rgba(246, 210, 130, .35); }
.klc-rows { list-style: none; margin: 4px 0 0; padding: 0 !important; }
.klc-rows li { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 8px 2px; border-bottom: 1px solid rgba(231, 194, 122, .2); }
.klc-rows li:last-child { border-bottom: 0; }
.klc-ico { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: #e7c27a; }
.klc-ico svg { width: 30px; height: 30px; }
.klc-ico .klc-moon { width: 36px; height: 36px; }
.klc-rows div { min-width: 0; }
.klc-l { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #c9b98a; }
html[lang="km"] .klc-l { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.klc-rows strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.klc-s { display: block; color: #cfc6ee; font-size: .84rem; line-height: 1.5; }
.klc [lang="km"], html[lang="km"] .klc-panel { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.klc-full { margin: 8px 0 0 !important; padding: 8px 10px; border-radius: 10px; background: rgba(231, 194, 122, .1); color: #fff3d1 !important; font-size: .92rem; line-height: 1.8; text-align: center; }
.klc-note { margin: 8px 0 0 !important; color: #a99fd0 !important; font-size: .76rem; line-height: 1.55; }
.klc-wait { margin: 18px 0; color: #cfc6ee !important; text-align: center; }
.klc-failed .klc-wait { color: #ffd9a8 !important; }
@media (max-width: 680px) {
  .klc { grid-template-columns: 1fr; }
  .klc-art { grid-row: 1; height: auto; aspect-ratio: 1200 / 630; min-height: 0; object-position: center; }
  .klc-panel { grid-row: 2; margin: -28px 10px 10px; }
}
.klc-share { display: flex; justify-content: center; margin-top: 10px; }
/* let the share menu open outside the card (the card used to clip it); the picture keeps the rounded corners */
.klc { overflow: visible; }
.klc-art { border-radius: 19px; }
.klc-share .share-row { position: relative; }
.klc-share .share-popover:not(.share-sheet) { z-index: 60; }
.klc-share .share-btn { border-color: #e7c27a99; color: #fff3d1; background: rgba(231, 194, 122, .1); }

/* Lucky numbers, 1 to 5 digits (js/lucky-digits.js; daily posts are rendered with the same numbers) */
.ld { margin: 8px 0 0; }
.ld-h { margin: 0 0 6px !important; color: #e7c27a; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html[lang="km"] .ld-h { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.ld-list { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.ld-list li { flex: 1 0 auto; margin: 0 !important; padding: 6px 10px; border-radius: 10px; text-align: center; border: 1px solid rgba(231, 194, 122, .45); background: rgba(231, 194, 122, .08); }
.ld-l { display: block; font-size: .66rem; color: #c9b98a; line-height: 1.3; white-space: nowrap; }
html[lang="km"] .ld-l { font-size: .72rem; }
.ld-n { display: block; margin-top: 2px; color: #fff3d1; font-size: 1.02rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.4; }
.ld-note { margin: 6px 0 0 !important; font-size: .74rem; color: #a99fd0 !important; }
.ld-mini .ld-list { gap: 4px; }
.ld-mini .ld-list li { padding: 3px 7px; }
.ld-mini .ld-n { font-size: .9rem; }
.ld-mini .ld-l { font-size: .6rem; }
html[lang="km"] .ld-mini .ld-l { font-size: .66rem; }
.chk-ld { margin-top: 12px; position: relative; z-index: 1; }
.fx-digits-note { margin: -4px auto 12px; max-width: 760px; text-align: center; color: #a99fd0; font-size: .82rem; }


/* ===== Blog: The Five Elements Explained (blog/five-elements-explained.html) ===== */
article.post.fe { max-width: 1240px; --fe-c: #e7c27a; }
.fe-wood { --fe-c: #5fc46e; --fe-d: #10301a; }
.fe-fire { --fe-c: #f0664a; --fe-d: #3a1012; }
.fe-earth { --fe-c: #e3ab4b; --fe-d: #33220c; }
.fe-metal { --fe-c: #c9cfda; --fe-d: #1e2130; }
.fe-water { --fe-c: #4ea2f0; --fe-d: #0c1f3c; }
.fe-hero { position: relative; overflow: hidden; margin: 20px 0 14px; border-radius: 22px; border: 1px solid rgba(231, 194, 122, .45); background: #0b0822; text-align: center; }
.fe-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .55; }
.fe-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(11, 8, 34, .55), rgba(11, 8, 34, .9) 75%); pointer-events: none; }
.fe-hero-in { position: relative; z-index: 1; padding: clamp(34px, 6vw, 70px) 20px clamp(26px, 4vw, 44px); }
.fe-eyebrow { margin: 0 0 8px !important; color: #e7c27a !important; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
html[lang="km"] .fe-eyebrow { letter-spacing: 0; font-size: .95rem; }
.fe-hero h1 { margin: 0; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.15; text-wrap: balance;
  background: linear-gradient(180deg, #fff1c8, #e7c27a 55%, #b8862f); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none; }
html[lang="km"] .fe-hero h1 { line-height: 1.7; padding: .12em 0 .34em; margin-bottom: -.22em; font-family: "Moul", "Kantumruy Pro", "Noto Sans Khmer", serif; font-weight: 400; font-size: clamp(1.7rem, 4.6vw, 3rem); }
.fe-sub { margin: 10px 0 0 !important; color: #fff3d1 !important; font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
.fe-sub span { color: #e7c27a; font-size: .7em; }
.fe-lead { max-width: 640px; margin: 10px auto 0 !important; color: #d9d1f2 !important; font-size: 1.02rem; }
.fe-lotus { display: block; width: 54px; height: 24px; margin: 14px auto 6px; fill: none; stroke: #e7c27a; stroke-width: 1.3; stroke-linejoin: round; }
.fe-meta { margin: 0 !important; color: #a99fd0 !important; font-size: .82rem; }
.fe-text { max-width: 820px; margin-left: auto; margin-right: auto; }
.fe-h2 { max-width: 820px; margin: 1.8em auto .6em; color: #f6e3b2; text-align: center; text-wrap: balance; }
/* element cards */
.fe-cards { list-style: none; margin: 8px 0 18px; padding: 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fe-card { position: relative; display: flex; flex-direction: column; margin: 0 !important; padding: 12px 14px 14px; border-radius: 18px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--fe-c) 55%, transparent); background: linear-gradient(180deg, var(--fe-d) 0%, #0d0a24 62%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fe-c) 8%, transparent), 0 14px 34px rgba(0, 0, 0, .4); }
.fe-art { display: block; width: min(170px, 82%); height: auto; aspect-ratio: 1; margin: 0 auto 4px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--fe-c) 45%, transparent)); }
.fe-name { margin: 0 !important; color: var(--fe-c) !important; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }
html[lang="km"] .fe-name { letter-spacing: 0; font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.fe-glyph { margin: 2px 0 8px !important; color: #fff3d1 !important; font-size: 1.15rem; }
.fe-glyph [lang="zh"] { font-size: 1.3em; margin-right: 6px; }
.fe-glyph [lang="km"] { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.fe-en { color: #cfc6ee; font-size: .85em; }
.fe-traits { margin: 0 0 10px !important; padding: 5px 8px; border-radius: 999px; font-size: .78rem; line-height: 1.4; color: #fff !important;
  background: color-mix(in srgb, var(--fe-c) 30%, #120d2e); border: 1px solid color-mix(in srgb, var(--fe-c) 65%, transparent); }
.fe-desc { margin: 0 0 8px !important; font-size: .9rem; line-height: 1.55; color: #e6e0f7 !important; text-align: left; }
.fe-watch { margin: 0 0 10px !important; font-size: .82rem; line-height: 1.5; color: #b9b0da !important; text-align: left; }
.fe-watch b { color: var(--fe-c); font-weight: 700; }
.fe-more { display: inline-block; margin-top: auto; padding: 9px 14px 0; font-size: .86rem; font-weight: 700; color: var(--fe-c) !important; text-decoration: none; }
.fe-more:hover { text-decoration: underline; }
html[lang="km"] .fe-more { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.fe-attrs { list-style: none; margin: auto 0 0 !important; padding: 8px 10px !important; border-radius: 12px; text-align: left;
  border: 1px solid color-mix(in srgb, var(--fe-c) 30%, transparent); background: rgba(8, 6, 24, .55); }
.fe-attrs li { display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 2px 8px; margin: 0 !important; padding: 5px 0; font-size: .82rem; line-height: 1.35; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fe-attrs li:last-child { border-bottom: 0; }
.fe-ico svg { width: 18px; height: 18px; display: block; fill: none; stroke: var(--fe-c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fe-l { color: #a99fd0; }
.fe-v { color: #fff3d1; text-align: right; font-weight: 600; }
/* cycles */
.fe-cycles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 8px; }
.fe-panel { padding: 16px 18px 14px; border-radius: 18px; border: 1px solid rgba(231, 194, 122, .4); background: linear-gradient(180deg, #17113a, #0d0a24); }
.fe-panel h3 { margin: 0 0 12px !important; text-align: center; color: #f6dc9b !important; font-size: 1.15rem; }
.fe-panel h3 small { color: #cfc6ee; font-weight: 400; font-size: .85em; }
.fe .disclaimer { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.fe-panel > p { margin: 12px 0 0 !important; font-size: .9rem; line-height: 1.6; color: #d9d1f2 !important; }
.fe-cycle { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fe-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 !important; text-align: center; font-size: .78rem; line-height: 1.3; color: #cfc6ee; }
.fe-node img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--fe-c) 70%, transparent), 0 0 14px color-mix(in srgb, var(--fe-c) 45%, transparent); }
.fe-node b { margin-top: 4px; color: var(--fe-c); font-size: .9rem; }
.fe-node:not(:last-child)::after { content: "→"; position: absolute; top: 18px; right: -10px; color: #e7c27a; font-size: 1rem; }
/* find your element */
.fe-find { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1000px; margin: 0 auto; }
.fe-find .fe-text { max-width: none; }
.fe-note { padding: 10px 14px; border-radius: 12px; background: rgba(231, 194, 122, .1); border: 1px solid rgba(231, 194, 122, .3); font-size: .92rem; }
.fe-table { width: 100%; border-collapse: collapse; border-radius: 14px; overflow: hidden; border: 1px solid rgba(231, 194, 122, .35); background: #110c2c; }
.fe-table th { padding: 10px 12px; text-align: left; font-size: .82rem; color: #e7c27a; background: rgba(231, 194, 122, .1); }
.fe-table td { padding: 9px 12px; border-top: 1px solid rgba(255, 255, 255, .07); color: #f1ecff; font-variant-numeric: tabular-nums; }
.fe-table td:first-child { font-weight: 700; color: #fff3d1; }
.fe-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--fe-c); box-shadow: 0 0 8px var(--fe-c); }
.fe-cta { margin: 22px auto 8px; text-align: center; }
.fe-btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #2a1d05 !important; background: linear-gradient(180deg, #f6d98d, #d4a43c); box-shadow: 0 8px 24px rgba(212, 164, 60, .35); }
.fe-btn:hover { filter: brightness(1.06); }
.fe-cta p { margin: 8px 0 0 !important; font-size: .88rem; color: #b9b0da !important; }
@media (max-width: 1100px) {
  .fe-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fe-cycles { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fe-find { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fe-cards { grid-template-columns: 1fr; }
  .fe-art { width: 150px; }
  .fe-cycle { grid-template-columns: 1fr; gap: 4px; }
  .fe-node { flex-direction: row; gap: 10px; text-align: left; }
  .fe-node img { width: 44px; height: 44px; }
  .fe-node b { margin: 0; min-width: 70px; }
  .fe-node { padding-bottom: 16px; }
  .fe-node:not(:last-child)::after { content: "↓"; top: auto; bottom: -1px; right: auto; left: 0; width: 44px; text-align: center; font-size: .85rem; line-height: 1; }
}
.fe-attrs li:last-child .fe-v { white-space: nowrap; }
html[lang="km"] .fe-attrs li { grid-template-columns: 22px auto minmax(0, 1fr); }
html[lang="km"] .fe-desc, html[lang="km"] .fe-watch, html[lang="km"] .fe-attrs { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
@media (max-width: 1100px) and (min-width: 521px) {
  .fe-cards { display: flex; flex-wrap: wrap; justify-content: center; }
  .fe-card { flex: 0 0 calc((100% - 28px) / 3); }
}
@media (max-width: 760px) and (min-width: 521px) { .fe-card { flex-basis: calc((100% - 10px) / 2); } }

/* ===== Blog: Zodiac Compatibility Guide (blog/zodiac-compatibility-guide.html) — reuses the .fe hero/text/button styles ===== */
.zc-best { --zc: #ff7eb6; } .zc-good { --zc: #f4c64e; } .zc-neutral { --zc: #5fd07a; } .zc-clash { --zc: #ff8a3d; } .zc-same { --zc: #b9a6ff; }
.zc .zc-ico { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; background: var(--zc, #e7c27a); -webkit-mask: var(--zm) center / contain no-repeat; mask: var(--zm) center / contain no-repeat; }
.zc-best .zc-ico, .zc-ico.zc-best { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2021s-7.5-4.6-9.6-9.2C.9%208.4%203%204.5%206.7%204.5c2.1%200%203.6%201.2%205.3%203.1%201.7-1.9%203.2-3.1%205.3-3.1%203.7%200%205.8%203.9%204.3%207.3C19.5%2016.4%2012%2021%2012%2021Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-good .zc-ico, .zc-ico.zc-good { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202.8l2.8%206%206.6.7-4.9%204.5%201.4%206.5L12%2017.2l-5.9%203.3%201.4-6.5-4.9-4.5%206.6-.7L12%202.8Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-neutral .zc-ico, .zc-ico.zc-neutral { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20.5%203.5C11%203.5%204.5%208.6%204.5%2015.4c0%201.4.3%202.6.8%203.6L3%2021.3l1.4%201.4%202.3-2.3c1%20.5%202.2.8%203.6.8%206.8%200%2011.9-6.5%2011.9-16V3.5h-1.7ZM8.6%2017.3l7.9-7.9-1.4-1.4-7.9%207.9%201.4%201.4Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-clash .zc-ico, .zc-ico.zc-clash { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202.5%201.8%2020.5h20.4L12%202.5Zm-1.1%206.3h2.2l-.3%206.4h-1.6l-.3-6.4Zm1.1%207.6a1.3%201.3%200%201%201%200%202.6%201.3%201.3%200%200%201%200-2.6Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-same .zc-ico, .zc-ico.zc-same { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18Zm0%204.5a4.5%204.5%200%201%201%200%209%204.5%204.5%200%200%201%200-9Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-box { padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(231, 194, 122, .42); background: linear-gradient(180deg, #17113a, #0d0a24); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.zc-bh { margin: 0 0 12px !important; color: #f6dc9b !important; font-size: 1.3rem; text-align: left; }
.zc-top { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 16px; margin: 18px 0 8px; }
.zc-grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zc-grid li { margin: 0 !important; }
.zc-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; text-decoration: none; border: 1px solid rgba(231, 194, 122, .18); background: rgba(8, 6, 24, .5); transition: border-color .15s, transform .15s; }
.zc-grid a:hover { border-color: rgba(231, 194, 122, .6); transform: translateY(-2px); }
.zc-medal { position: relative; display: block; width: min(104px, 100%); }
.zc-medal img { display: block; width: 100%; height: auto; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(231, 194, 122, .35)); }
.zc-medal b { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); min-width: 30px; padding: 1px 5px; border-radius: 999px; background: #120d2e; border: 1px solid rgba(231, 194, 122, .55); color: #f6dc9b; font-size: .95rem; line-height: 1.4; }
.zc-an { margin-top: 6px; color: #fff3d1; font-size: .92rem; font-weight: 600; }
html[lang="km"] .zc-an, html[lang="km"] .zc-box, html[lang="km"] .zc-chart, html[lang="km"] .zc-guide { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
.zc-types { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.zc-t { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--zc) 40%, transparent); background: color-mix(in srgb, var(--zc) 9%, #0d0a24); }
.zc-t .zc-ico { width: 30px; height: 30px; }
.zc-t b { display: block; color: var(--zc); font-size: 1rem; }
.zc-t span span { display: block; color: #d9d1f2; font-size: .84rem; line-height: 1.45; }
.zc-groups { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.zc-stack { display: grid; gap: 16px; }
.zc-gh { display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; color: #fff3d1 !important; font-size: 1.1rem; }
.zc-gh .zc-ico { width: 24px; height: 24px; }
.zc-box > p { margin: 0 0 12px !important; font-size: .92rem; line-height: 1.6; color: #d9d1f2 !important; }
.zc-tris { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zc-tri { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 !important; padding: 12px 10px; border-radius: 14px; text-align: center; border: 1px solid rgba(255, 126, 182, .35); background: rgba(255, 126, 182, .07); }
.zc-tri-m { display: flex; justify-content: center; }
.zc-tri-m img { width: 48px; height: 48px; border-radius: 50%; margin: 0 -4px; box-shadow: 0 0 0 2px #120d2e; }
.zc-tri b { color: #ffd0e5; font-size: .98rem; }
.zc-tri span { color: #cfc6ee; font-size: .82rem; line-height: 1.45; }
.zc-pairs { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zc-pairs li { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 !important; padding: 6px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--zc) 35%, transparent); background: color-mix(in srgb, var(--zc) 8%, #0d0a24); font-size: .86rem; }
.zc-pairs img { width: 30px; height: 30px; border-radius: 50%; }
.zc-pairs b { color: #fff3d1; font-weight: 600; }
.zc-pairs .zc-ico { width: 14px; height: 14px; }
.zc-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 6px auto 8px !important; padding: 0 !important; font-size: .86rem; color: #d9d1f2; }
.zc-legend li { display: flex; align-items: center; gap: 6px; margin: 0 !important; }
.zc-hint { display: none; margin: 0 0 6px !important; text-align: center; font-size: .8rem; color: #a99fd0 !important; }
.zc-chart-wrap { position: relative; overflow-x: auto; border-radius: 18px; border: 1px solid rgba(231, 194, 122, .42); background: linear-gradient(180deg, #17113a, #0d0a24); }
.zc-chart-wrap:focus-visible { outline: 2px solid #f6dc9b; outline-offset: 2px; }
.zc-chart { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.zc-chart caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zc-chart th, .zc-chart td { padding: 6px 4px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.zc-chart thead th { position: sticky; top: 0; background: #1a1340; color: #f6dc9b; font-weight: 600; vertical-align: bottom; }
.zc-chart tbody th { position: sticky; left: 0; z-index: 1; background: #150f35; text-align: left; color: #fff3d1; font-weight: 600; white-space: nowrap; }
.zc-corner { position: sticky; left: 0; z-index: 2; text-align: left !important; color: #a99fd0 !important; }
.zc-th { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.zc-th img { border-radius: 50%; }
.zc-th.zc-row { flex-direction: row; gap: 8px; }
.zc-chart td .zc-ico { width: 18px; height: 18px; vertical-align: middle; }
.zc-chart tbody tr:hover td, .zc-chart tbody tr:hover th { background-color: rgba(231, 194, 122, .08); }
.zc-chart td.zc-same { background: rgba(185, 166, 255, .06); }
.zc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zc-guide { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.zc-g { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--zg) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--zg) 12%, #120d2e), #0d0a24); }
.zc-g-love { --zg: #ff7eb6; } .zc-g-friend { --zg: #8f9bff; } .zc-g-biz { --zg: #f4c64e; } .zc-g-lotus { --zg: #e58bff; }
.zc-gi { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--zg) 18%, #120d2e); position: relative; }
.zc-gi::after { content: ""; position: absolute; inset: 9px; background: var(--zg); -webkit-mask: var(--zm) center / contain no-repeat; mask: var(--zm) center / contain no-repeat; }
.zc-g-love { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2021s-7.5-4.6-9.6-9.2C.9%208.4%203%204.5%206.7%204.5c2.1%200%203.6%201.2%205.3%203.1%201.7-1.9%203.2-3.1%205.3-3.1%203.7%200%205.8%203.9%204.3%207.3C19.5%2016.4%2012%2021%2012%2021Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-g-friend { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M8.5%2011a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207Zm7.5%200a3%203%200%201%200%200-6%203%203%200%200%200%200%206ZM1.5%2019.5c0-3.6%203.1-6%207-6s7%202.4%207%206v1h-14v-1Zm15.2%201H22.5v-1c0-3-2.4-5.1-5.8-5.4%201.3%201.2%202%202.8%202%204.6v1.8Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-g-biz { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M9%203.5h6a1.5%201.5%200%200%201%201.5%201.5v1.5H20a1.5%201.5%200%200%201%201.5%201.5v4.2H2.5V8A1.5%201.5%200%200%201%204%206.5h3.5V5A1.5%201.5%200%200%201%209%203.5Zm0%201.5v1.5h6V5H9Zm-6.5%208.7h7.5v1.8h4v-1.8h7.5V19a1.5%201.5%200%200%201-1.5%201.5H4A1.5%201.5%200%200%201%202.5%2019v-5.3Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-g-lotus { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203c2.4%202.6%203.4%205.6%203%208.9-.4%202.4-1.4%204.2-3%205.6-1.6-1.4-2.6-3.2-3-5.6C8.6%208.6%209.6%205.6%2012%203ZM2%209.5c3.1-.2%205.6%201%207.4%203.3.9%201.3%201.6%203%201.9%204.9-3.3.6-6-.1-7.8-2.3C2.4%2014%202%2012%202%209.5Zm20%200c0%202.5-.4%204.5-1.5%205.9-1.8%202.2-4.5%202.9-7.8%202.3.3-1.9%201-3.6%201.9-4.9%201.8-2.3%204.3-3.5%207.4-3.3ZM4%2019.5h16v1.5H4Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); }
.zc-g h3 { margin: 0 !important; color: var(--zg) !important; font-size: 1.08rem; }
.zc-g p { margin: 4px 0 0 !important; font-size: .9rem; line-height: 1.6; color: #d9d1f2 !important; }
.zc-g a { color: #f6dc9b; white-space: nowrap; }
.zc-btn2 { display: inline-block; margin-left: 10px; padding: 11px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #f6dc9b !important; border: 1.5px solid rgba(231, 194, 122, .6); }
.zc-btn2:hover { background: rgba(231, 194, 122, .1); }
@media (max-width: 1100px) {
  .zc-top, .zc-groups { grid-template-columns: 1fr; }
  .zc-types { grid-template-columns: 1fr 1fr; }
  .zc-guide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .zc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zc-hint { display: block; }
}
@media (max-width: 520px) {
  .zc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zc-types, .zc-tris, .zc-guide { grid-template-columns: 1fr; }
  .zc-pairs { grid-template-columns: 1fr; }
  .zc-btn2 { margin: 10px 0 0; }
  .zc-box { padding: 14px 12px; }
}
.zc-top, .zc-groups { align-items: start; }
.zc-chart th, .zc-chart td { vertical-align: middle; }
@media (max-width: 520px) { .zc-chart { min-width: 620px; font-size: .78rem; } }

/* ===== Blog: How to Calculate Your Chinese Zodiac Sign — reuses .fe hero and .zc boxes/medals ===== */
.hc-steps { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.hc-step { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0 !important; padding: 18px 16px 16px; border-radius: 18px; border: 1px solid rgba(231, 194, 122, .42); background: linear-gradient(180deg, #1c1444, #0d0a24); }
.hc-num { position: absolute; top: -12px; left: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; color: #2a1d05; background: linear-gradient(180deg, #f6d98d, #d4a43c); box-shadow: 0 4px 12px rgba(212, 164, 60, .4); }
.hc-si { flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: rgba(231, 194, 122, .1); }
.hc-si svg { width: 40px; height: 40px; fill: none; stroke: #e7c27a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-si .hc-fill { fill: #e7c27a; }
.hc-step:nth-child(2) .hc-si svg { stroke: #ff7a5c; }
.hc-step h3 { margin: 2px 0 4px !important; color: #f6dc9b !important; font-size: 1.08rem; }
.hc-step p { margin: 0 !important; font-size: .9rem; line-height: 1.55; color: #d9d1f2 !important; }
.hc-signs { list-style: none; margin: 8px 0 18px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hc-sign { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 !important; padding: 12px 8px 12px; border-radius: 16px; text-align: center; border: 1px solid rgba(231, 194, 122, .25); background: linear-gradient(180deg, #17113a, #0d0a24); }
.hc-sign .zc-medal { width: min(96px, 90%); }
.hc-sn { margin-top: 6px; color: #fff3d1; font-weight: 700; }
.hc-yrs { padding-top: 6px; border-top: 1px solid rgba(231, 194, 122, .2); color: #cfc6ee; font-size: .8rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.hc-bottom { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
.hc-side { display: grid; gap: 16px; }
.hc-exs { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc-ex { display: flex; align-items: flex-end; gap: 6px; margin: 0 !important; padding: 12px; border-radius: 14px; border: 1px solid rgba(231, 194, 122, .25); background: rgba(8, 6, 24, .5); }
.hc-ex > div { min-width: 0; flex: 1; }
.hc-ex > img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; }
.hc-ex h3 { margin: 0 0 4px !important; color: #fff3d1 !important; font-size: .98rem; }
.hc-ex p { margin: 0 0 8px !important; font-size: .84rem; line-height: 1.5; color: #cfc6ee !important; }
.hc-tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; color: #2a1d05; background: #f1dfae; }
.hc-your { display: block; padding: 6px 10px; border-radius: 10px; font-size: .9rem; color: #fff; }
.hc-before .hc-your { background: linear-gradient(90deg, #d9468c, #b8327a); }
.hc-after .hc-your { background: linear-gradient(90deg, #c98a1e, #a8700f); }
.hc-calc > p, .hc-tips p { margin: 0 0 10px !important; font-size: .9rem; color: #d9d1f2 !important; }
.hc-form { display: grid; gap: 8px; }
.hc-form label { font-size: .82rem; color: #e7c27a; }
.hc-form input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(231, 194, 122, .5); background: #fff; color: #1a1430; font: inherit; font-size: 1rem; }
.hc-form .fe-btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; }
.hc-out { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(231, 194, 122, .35); background: rgba(231, 194, 122, .08); }
.hc-out p { margin: 8px 0 0 !important; font-size: .86rem; line-height: 1.5; color: #d9d1f2 !important; }
.hc-res { display: flex; align-items: center; gap: 12px; }
.hc-res img { width: 64px; height: 64px; border-radius: 50%; }
.hc-res b { display: block; color: #f6dc9b; font-size: 1.25rem; }
.hc-res span { color: #cfc6ee; font-size: .86rem; }
.hc-err { color: #ffc9a8 !important; margin: 0 !important; }
.hc-full { display: inline-block; margin-top: 10px; color: #f6dc9b; font-weight: 600; }
.hc-tips ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.hc-tips li { position: relative; margin: 0 !important; padding-left: 28px; font-size: .88rem; line-height: 1.5; color: #e6e0f7; }
.hc-tips li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 700; color: #2a1d05; background: linear-gradient(180deg, #f6d98d, #d4a43c); }
.hc-tips a { color: #f6dc9b; }
html[lang="km"] .hc-step, html[lang="km"] .hc-sign, html[lang="km"] .hc-ex, html[lang="km"] .hc-calc, html[lang="km"] .hc-tips { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
@media (max-width: 1100px) {
  .hc-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hc-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hc-steps { grid-template-columns: 1fr; gap: 18px; }
  .hc-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hc-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-exs { grid-template-columns: 1fr; }
}

/* ===== Blog: What Your Chinese Zodiac Sign Says — reuses .fe hero, .zc medals/icons/boxes ===== */
.wz-car .zc-ico { --zm: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M9%203.5h6a1.5%201.5%200%200%201%201.5%201.5v1.5H20a1.5%201.5%200%200%201%201.5%201.5v4.2H2.5V8A1.5%201.5%200%200%201%204%206.5h3.5V5A1.5%201.5%200%200%201%209%203.5Zm0%201.5v1.5h6V5H9Zm-6.5%208.7h7.5v1.8h4v-1.8h7.5V19a1.5%201.5%200%200%201-1.5%201.5H4A1.5%201.5%200%200%201%202.5%2019v-5.3Z%22%20fill%3D%22%23000%22/%3E%3C/svg%3E"); --zc: #9aa6ff; }
.wz-note { display: block !important; max-width: 820px; margin: -4px auto 10px !important; }
.wz-cards { list-style: none; margin: 8px 0 18px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wz-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; margin: 0 !important; padding: 16px; border-radius: 18px; border: 1px solid rgba(231, 194, 122, .42); background: linear-gradient(135deg, #1c1444, #0d0a24 70%); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.wz-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wz-left .zc-medal { width: 120px; }
.wz-left h3 { margin: 10px 0 6px !important; color: #f6dc9b !important; font-size: 1.2rem; }
.wz-yrs { padding: 6px 8px; border-radius: 10px; background: rgba(231, 194, 122, .14); border: 1px solid rgba(231, 194, 122, .35); color: #fff3d1; font-size: .74rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.wz-desc { margin: 0 0 10px !important; font-size: .95rem; line-height: 1.6; color: #f1ecff !important; }
.wz-rows { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 7px; }
.wz-rows li { display: flex; align-items: flex-start; gap: 8px; margin: 0 !important; font-size: .88rem; line-height: 1.45; color: #e6e0f7; }
.wz-rows .zc-ico { margin-top: 1px; }
.wz-rows b { color: var(--zc); font-weight: 700; white-space: nowrap; }
.wz-more { display: inline-block; margin-top: 10px; color: #f6dc9b; font-size: .88rem; font-weight: 600; }
.wz-groups { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wz-group { margin: 0 !important; }
.wz-group .zc-tri-m { justify-content: flex-start; margin-left: 4px; }
.wz-group h3 { margin: 10px 0 6px !important; color: #f6dc9b !important; font-size: 1.1rem; }
.wz-group h3 small { color: #cfc6ee; font-weight: 400; font-size: .82em; }
.wz-group p { margin: 0 !important; font-size: .92rem; line-height: 1.6; color: #d9d1f2 !important; }
html[lang="km"] .wz-card, html[lang="km"] .wz-group { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; }
@media (max-width: 900px) { .wz-cards, .wz-groups { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .wz-card { grid-template-columns: 1fr; padding: 14px 12px; }
  .wz-left .zc-medal { width: 110px; }
  .wz-rows b { white-space: normal; }
}

/* ===== Polish pass for the four redesigned guides (five elements, compatibility, calculate, personality) ===== */
/* section headings: a little more air, and a gold ornament under each */
.fe-h2 { margin-top: 2.2em; margin-bottom: .9em; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.3; }
.fe-h2::after { content: ""; display: block; width: 120px; height: 10px; margin: 10px auto 0;
  background: radial-gradient(circle, #e7c27a 0 3px, transparent 3.5px) center / 10px 10px no-repeat,
              linear-gradient(90deg, transparent, rgba(231, 194, 122, .7) 30%, transparent 46%, transparent 54%, rgba(231, 194, 122, .7) 70%, transparent) center / 100% 1px no-repeat; }
.fe-h2 + .fe-text p:first-child { margin-top: 0; }
/* the opening paragraph reads as a lead */
.fe > .fe-text:first-of-type p:first-child { font-size: 1.08rem; line-height: 1.75; color: #f1ecff; }
.fe .share-row { margin-bottom: 4px; }
/* boxes that sit side by side get equal height and no empty gaps */
.zc-top { grid-template-columns: 1fr; }
.zc-types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zc-t { flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; box-sizing: border-box; }
.zc-types li { margin: 0 !important; }
.zc-groups { grid-template-columns: 1fr; }
.zc-tris { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zc-stack { grid-template-columns: 1fr 1fr; align-items: stretch; }
.zc-stack .zc-box { height: 100%; box-sizing: border-box; }
.hc-bottom { grid-template-columns: 1fr; }
.hc-exs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hc-ex { flex-direction: column; align-items: stretch; }
.hc-ex > img { order: -1; align-self: center; width: 72px; height: 72px; margin-bottom: 6px; }
.hc-ex > div { display: flex; flex-direction: column; }
.hc-your { margin-top: auto; }
.hc-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; }
.hc-side .zc-box { height: 100%; box-sizing: border-box; }
.zc-bh { text-align: center; }
.hc-calc .zc-bh, .hc-tips .zc-bh { text-align: left; }
/* cards in a row share edges: equal heights, actions pinned to the bottom */
.wz-right { display: flex; flex-direction: column; }
.wz-more { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.wz-cards > li { height: 100%; box-sizing: border-box; }
.fe-panel { display: flex; flex-direction: column; }
/* Khmer: small text a bit larger with room for stacked letters */
html[lang="km"] .fe-traits, html[lang="km"] .zc-t span span, html[lang="km"] .hc-yrs, html[lang="km"] .wz-yrs,
html[lang="km"] .fe-attrs li, html[lang="km"] .fe-node, html[lang="km"] .hc-tag, html[lang="km"] .zc-tri span { font-size: .86rem; line-height: 1.75; }
html[lang="km"] .fe-desc, html[lang="km"] .wz-desc, html[lang="km"] .zc-g p, html[lang="km"] .zc-box > p, html[lang="km"] .hc-ex p { line-height: 1.8; }
html[lang="km"] .fe-h2 { line-height: 1.6; }
@media (max-width: 1100px) {
  .zc-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zc-tris, .hc-exs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .zc-stack, .hc-side { grid-template-columns: 1fr; }
  .zc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .zc-types, .zc-tris, .hc-exs { grid-template-columns: 1fr; }
  .zc-t { flex-direction: row; align-items: center; }
  .hc-ex { flex-direction: row; align-items: flex-end; }
  .hc-ex > img { order: 0; width: 60px; height: 60px; margin: 0; }
}
.hc-full[hidden], .hc-out[hidden] { display: none !important; }
.hc-tag { align-self: flex-start; }
.zc-chart { table-layout: fixed; }
.zc-chart thead th:first-child { width: 128px; }
@media (max-width: 520px) { .zc-chart thead th:first-child { width: 104px; } }
.fe-find .fe-text p:first-child { margin-top: 0; }
.fe-cta + .fe-text p { text-align: center; }
.fe .disclaimer { color: #a99fd0; font-size: .82rem; }

/* ===== Header stays at the top while the page scrolls (all pages) ===== */
header.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(16, 11, 42, .9); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
header.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(4, 2, 16, .45); border-bottom-color: rgba(231, 194, 122, .22); }
/* the phone / compact menu panel scrolls inside itself if it is taller than the screen */
header.site-header nav.nav-open { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; }
/* jumps to a section (links, the Checker's scroll to the result) stop below the header */
html { scroll-padding-top: 76px; }
/* Checker: when the lunar card fills in, the browser must not "anchor" on the cards below and jump past it */
#khmer-lunar, #chk-hero, #dream-fortune, #result { overflow-anchor: none; }
/* bars that stick under the header (animal page section tabs) sit right below it, not behind it */
.pf-nav { top: var(--hdr-h, 60px); }

html { scroll-padding-top: calc(var(--hdr-h, 60px) + 16px); }
/* phones: three language buttons (EN · ខ្មែរ · 中文) + the menu button fit on one line next to the logo */
@media (max-width: 640px) {
  header.site-header .lang-toggle-bar { margin: 0 4px 0 auto; padding: 2px; }
  header.site-header .lang-toggle-bar a { padding: 4px 8px; font-size: .78rem; }
  header.site-header .container { gap: 8px; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 400px) {
  header.site-header .logo { font-size: 1rem; gap: 6px; letter-spacing: 0; }
  header.site-header .logo-mark { width: 22px; height: 22px; }
  header.site-header .lang-toggle-bar a { padding: 4px 6px; font-size: .74rem; }
  header.site-header .container { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .nav-toggle { width: 36px; }
}
@media (max-width: 340px) { header.site-header .logo-text { display: none; } }

/* ===== Khmer New Year guide (blog/khmer-new-year-animal-year.html) ===== */
.kny-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 8px; }
.kny-card { margin: 0 !important; }
.kny-card h3 { margin: 4px 0 8px !important; color: #fff3d1 !important; font-size: 1.2rem; }
.kny-card p { margin: 0 !important; line-height: 1.65; color: #e4ddf7; }
.kny-card .kny-tag, .kny-tag { display: inline-block; margin: 0 !important; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #2a1d05 !important; background: #f1dfae; line-height: 1.5; }
.kny-card.kny-kny .kny-tag { background: linear-gradient(90deg, #f6d98d, #e7b24c); }
.kny-days { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.kny-days li { margin: 0 !important; }
.kny-day { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #e7c27a; }
.kny-days h3 { margin: 4px 0 6px !important; color: #fff3d1 !important; font-size: 1.02rem; }
.kny-days p { margin: 0 !important; font-size: .92rem; line-height: 1.6; color: #d9d2ee; }
.kny-table td { vertical-align: top; }
.kny-an { display: block; font-size: .8rem; color: #b9b0de; }
.kny-note { font-size: .86rem; color: var(--text-muted); line-height: 1.6; }
.kny-exs { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kny-exs li { margin: 0 !important; display: flex; flex-direction: column; }
.kny-ex-meds { display: flex; gap: 6px; margin-bottom: 6px; }
.kny-ex-meds img { width: 48px; height: 48px; border-radius: 50%; }
.kny-exs h3 { margin: 0 0 4px !important; color: #fff3d1 !important; font-size: .98rem; }
.kny-exs p { margin: 0 0 8px !important; font-size: .86rem; line-height: 1.5; color: #cfc6ee !important; flex: 1; }
.kny-your { display: block; padding: 6px 10px; border-radius: 10px; font-size: .88rem; color: #fff; background: linear-gradient(90deg, #4a3a8c, #33286b); }
.kny-your.kny-diff { background: linear-gradient(90deg, #d9468c, #b8327a); }
.kny-calc { margin: 22px 0 !important; }
.kny-res { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 6px; }
.kny-res > div { flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid rgba(231, 194, 122, .35); background: rgba(8, 6, 24, .5); }
.kny-res img { width: 64px; height: 64px; border-radius: 50%; }
.kny-res span { font-size: .8rem; color: #b9b0de; }
.kny-res b { font-size: 1.15rem; color: #fff3d1; }
@media (max-width: 760px) { .kny-two, .kny-days, .kny-exs { grid-template-columns: 1fr; } }

/* ===== Opening-day guide (blog/lucky-days-opening-business.html) ===== */
.lod-ways { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lod-ways li { margin: 0 !important; position: relative; padding-left: 58px !important; }
.lod-num { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #2a1d05; background: linear-gradient(180deg, #f6d98d, #d4a43c); }
.lod-ways h3 { margin: 0 0 6px !important; color: #fff3d1 !important; font-size: 1.02rem; }
.lod-ways p { margin: 0 !important; font-size: .92rem; line-height: 1.6; color: #d9d2ee; }
.lod-sign { display: inline-flex; align-items: center; gap: 8px; color: #fff3d1; font-weight: 700; }
.lod-sign img { width: 32px; height: 32px; border-radius: 50%; }
.lod-calc select { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid #5a4796; background: #120c33; color: #fff; font: inherit; }
.lod-list { list-style: none; margin: 12px 0 0 !important; padding: 0 !important; display: grid; gap: 6px; max-height: 520px; overflow-y: auto; }
.lod-d { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 10px; border-radius: 10px; border: 1px solid #332a52; background: rgba(8, 6, 24, .45); font-size: .88rem; }
.lod-date { color: #fff3d1; font-weight: 700; }
.lod-an { display: inline-flex; align-items: center; gap: 6px; color: #e4ddf7; }
.lod-an img { border-radius: 50%; }
.lod-lunar { color: #b9b0de; font-size: .82rem; }
.lod-tag { padding: 3px 10px; border-radius: 999px; font-size: .78rem; text-align: center; color: #fff; background: #3b2f6e; white-space: nowrap; }
.lod-fav .lod-tag, .lod-own .lod-tag { background: linear-gradient(90deg, #2f9e62, #23804e); }
.lod-avoid .lod-tag { background: linear-gradient(90deg, #d9468c, #b8327a); }
.lod-fav, .lod-own { border-color: rgba(63, 174, 107, .5); }
.lod-avoid { border-color: rgba(217, 70, 140, .5); }
@media (max-width: 760px) { .lod-ways { grid-template-columns: 1fr; } .lod-d { grid-template-columns: minmax(0, 1fr) auto; } .lod-lunar { grid-column: 1 / -1; } }

/* ===== 2026 Fire Horse year article (blog/2026-horoscope-predictions.html) ===== */
.hy26 { line-height: 1.65; }
.hy26 h2 { margin-top: 2em; color: var(--accent); text-wrap: balance; }
.hy26 .hy-lead { font-size: 1.08rem; }
.hy-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 8px; padding: 0; }
.hy-facts div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.hy-facts dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.hy-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--text); }
.hy-signs { display: grid; gap: 12px; margin-top: 14px; }
.hy-sign { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.hy-sign.hy-tri, .hy-sign.hy-six { border-left-color: #6fcf97; }
.hy-sign.hy-clash { border-left-color: #eb8a7a; }
.hy-sign.hy-own { border-left-color: var(--accent); }
.hy-sign h3 { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--text); }
.hy-tag { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.hy-sign p { margin: 0 0 6px; }
.hy-sign .hy-more { margin: 0; font-size: .92rem; }
.hy-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hy-table { width: 100%; border-collapse: collapse; }
@media (max-width: 520px) { .hy-table th, .hy-table td { padding: 8px 6px; font-size: .88rem; } }
.hy-table th, .hy-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.hy-table thead th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.hy-next { padding-left: 1.2em; }
.hy-next li { margin: 6px 0; }
.hy-src { font-size: .88rem; color: var(--text-muted); }

/* Business Partner: how the scores are calculated */
.bg-method { margin: 0 0 18px; }
.bg-method ol { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 8px; }
.bg-method li, .bg-method p { color: #e3dcf7; line-height: 1.6; font-size: .95rem; }
.bg-method li strong { color: #fff; }
.bg-method p { margin: 0; }

/* ===== Chol Vassa guide (blog/chol-vassa-buddhist-lent.html) — extends the .kny guide styles ===== */
.vs-table tr.vs-now td { background: rgba(231, 194, 122, .1); }
.vs-table td, .vs-table th { white-space: nowrap; }
.vs-do { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 640px) { .vs-do { grid-template-columns: 1fr !important; } }
.vs-res { margin: 10px 0 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(231, 194, 122, .35); border-left-width: 5px; background: rgba(8, 6, 24, .55); }
.vs-res.vs-out-in { border-left-color: #f6c25b; }
.vs-res.vs-out-kathin { border-left-color: #8fd6a8; }
.vs-res.vs-out-out { border-left-color: #9b8fd0; }
.vs-res p { margin: 0 0 6px !important; }
.vs-lunar span { font-size: .8rem; color: #b9b0de; }
.vs-lunar b { color: #fff3d1; }
.vs-msg { color: #fff; font-size: 1.02rem; line-height: 1.55; }
.vs-season { font-size: .86rem; color: #cfc6ee !important; margin-bottom: 0 !important; }
@media (max-width: 640px) { .vs-table td, .vs-table th { white-space: normal; padding: 7px 5px; font-size: .8rem; } }

/* ===== Cambodian Buddhist Holy Days guide (blog/cambodian-buddhist-holy-days.html) — navy, cream, gold, saffron ===== */
.hd-hero .fe-hero-bg { opacity: .78; object-position: center 35%; }
.hd-hero::after { background: linear-gradient(180deg, rgba(8, 12, 36, .55), rgba(8, 12, 36, .78) 60%, rgba(8, 12, 36, .92)); }
.hd-center { text-align: center; }
.hd-strip { max-width: 820px; margin: 18px auto !important; }
.hd-strip ol { list-style: none; margin: 6px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hd-strip li { margin: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(8, 6, 24, .5); border: 1px solid rgba(231, 194, 122, .25); }
.hd-strip b { font-size: 1.35rem; color: #f6dc9b; }
.hd-strip span:not(.hd-moon) { color: #fff3d1; font-size: .92rem; }
.hd-strip small { color: #b9b0de; font-size: .78rem; }
.hd-moon { width: 30px; height: 30px; border-radius: 50%; background: #f3d78f; box-shadow: 0 0 14px rgba(243, 215, 143, .45); }
.hd-s0 .hd-moon { background: linear-gradient(90deg, #1b1640 50%, #f3d78f 50%); }
.hd-s2 .hd-moon { background: linear-gradient(90deg, #f3d78f 50%, #1b1640 50%); }
.hd-s3 .hd-moon { background: #1b1640; box-shadow: inset 0 0 0 2px rgba(243, 215, 143, .55); }
.hd-kinds { list-style: none; max-width: 900px; margin: 0 auto !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hd-k { margin: 0 !important; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #f7efdf; color: #2a2140; border: 1px solid #e3cf9e; }
.hd-k b { color: #1d1a45; }
.hd-k p { margin: 4px 0 0 !important; color: #4a4060 !important; font-size: .9rem; line-height: 1.55; }
.hd-dot { flex: 0 0 14px; height: 14px; margin-top: 4px; border-radius: 50%; }
.hd-k-sil .hd-dot { background: #4a90c8; } .hd-k-moon .hd-dot { background: #e2b33c; } .hd-k-fest .hd-dot { background: #d9534f; } .hd-k-hol .hd-dot { background: #4caf6e; }
.hd-months { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .hd-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hd-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .hd-months { grid-template-columns: 1fr; } }
.hd-month { margin: 0 !important; padding: 14px 15px 12px; border-radius: 16px; background: linear-gradient(180deg, #fbf5e8, #f3e8d1); color: #2a2140; border: 1px solid #e3cf9e; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); min-width: 0; }
.hd-month h3 { margin: 0 0 6px !important; color: #1d1a45 !important; font-size: 1.12rem; border-bottom: 1px solid #e3cf9e; padding-bottom: 6px; }
.hd-month h3 small { color: #8a7a55; font-weight: 400; font-size: .8rem; }
.hd-ml { margin: 4px 0 !important; font-size: .86rem; color: #4a4060 !important; line-height: 1.45; }
.hd-month ul { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.hd-mf { margin: 0 !important; padding: 7px 9px; border-radius: 10px; background: #fff; border-left: 3px solid #d98e2f; display: flex; flex-direction: column; gap: 2px; }
.hd-mf b { color: #1d1a45; font-size: .92rem; }
.hd-mf small { color: #6a5f80; font-size: .76rem; }
.hd-mf .hd-dates { color: #9a5a12; font-weight: 700; }
.hd-mf-cult { border-left-color: #4caf6e; }
.hd-mf-cult b { font-weight: 600; font-size: .84rem; }
.hd-tag { align-self: flex-start; font-size: .68rem; padding: 1px 8px; border-radius: 999px; background: #f6e3b8; color: #7a5410; }
.hd-none { margin: 8px 0 0 !important; font-size: .84rem; color: #6a5f80 !important; font-style: italic; }
.hd-fests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.hd-fest { margin: 0 !important; min-width: 0; border-top: 3px solid #e09a3a !important; }
.hd-fest h3 { margin: 0 0 8px !important; color: #f6dc9b !important; display: flex; align-items: center; gap: 8px; font-size: 1.12rem; }
.hd-fi { font-size: 1.3rem; }
.hd-fest > p { color: #e6def8 !important; font-size: .92rem; line-height: 1.6; }
.hd-fest dl { margin: 10px 0 0; display: grid; gap: 8px; }
.hd-fest dt { color: #e7c27a; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.hd-fest dd { margin: 2px 0 0; color: #d9d1f2; font-size: .88rem; line-height: 1.55; }
.hd-fest .hd-dates { color: #fff3d1; font-weight: 700; }
.hd-fest dd small { color: #a99fcf; }
.hd-rel { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hd-rel li { margin: 0 !important; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-top: 3px solid #4caf6e !important; }
.hd-rel b { color: #f6dc9b; }
.hd-rel small { color: #b9b0de; }
.hd-rel p { margin: 4px 0 0 !important; font-size: .88rem; line-height: 1.55; }
.hd-do { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; max-width: 980px; margin: 0 auto; }
.hd-do figure { margin: 0; }
.hd-do img { width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(231, 194, 122, .4); display: block; }
.hd-do ul { margin: 0 !important; padding-left: 1.1em !important; display: grid; gap: 8px; }
.hd-do li { margin: 0 !important; line-height: 1.55; }
.hd-do li b { color: #f6dc9b; }
.hd-next { max-width: 820px; margin: 16px auto !important; }
.hd-next-list { list-style: none; margin: 6px 0 14px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hd-next-list li { margin: 0 !important; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(8, 6, 24, .5); border: 1px solid rgba(231, 194, 122, .25); }
.hd-next-list b { color: #fff3d1; }
.hd-next-list span { color: #f6dc9b; font-size: .9rem; }
.hd-next-list small { color: #b9b0de; font-size: .8rem; }
@media (max-width: 820px) { .hd-fests, .hd-rel { grid-template-columns: 1fr; } .hd-do { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hd-kinds, .hd-next-list { grid-template-columns: 1fr; } .hd-strip ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Khmer Calendar guides (cambodian-public-holidays, khmer-animal-year-sak, khmer-leap-months) ===== */
.ph-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-table .hd-tag { display: inline-block; white-space: nowrap; }
@media (max-width: 640px) { .ph-table td, .ph-table th { padding: 7px 6px; font-size: .86rem; } }
.hd-tag-fixed { background: #d7f0de; color: #1f6b3a; }
.hd-tag-lunar { background: #f8d6d4; color: #8a2420; }
.hd-tag-solar { background: #f6e3b8; color: #7a5410; }
.ph-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.ph-group { margin: 0 !important; min-width: 0; border-top: 3px solid #e09a3a !important; }
.ph-group h3 { margin: 0 0 8px !important; color: #f6dc9b !important; font-size: 1.1rem; }
.ph-group ul { margin: 0 !important; padding-left: 1.1em !important; display: grid; gap: 7px; }
.ph-group li { margin: 0 !important; color: #d9d1f2; font-size: .9rem; line-height: 1.55; }
.ph-group li b { color: #fff3d1; }
.ph-tips { display: grid; gap: 8px; }
.ys-time { list-style: none; max-width: 820px; margin: 10px auto !important; padding: 0 0 0 18px !important; border-left: 2px solid rgba(231, 194, 122, .45); display: grid; gap: 12px; }
.ys-time li { margin: 0 !important; position: relative; }
.ys-time li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #f3d78f; box-shadow: 0 0 10px rgba(243, 215, 143, .5); }
.ys-time time { color: #f6dc9b; font-weight: 700; font-size: .95rem; }
.ys-time p { margin: 2px 0 0 !important; color: #d9d1f2; font-size: .92rem; line-height: 1.55; }
.ys-out { max-width: 820px; margin: 12px auto !important; padding: 12px 16px; border-radius: 14px; background: #f7efdf; color: #2a2140 !important; border: 1px solid #e3cf9e; }
.ys-out b { color: #1d1a45; }
.ys-table tr.ys-now td { background: rgba(231, 194, 122, .14); }
.ys-table td { font-variant-numeric: tabular-nums; }
.ys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 6px; }
.ys-cell { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(231, 194, 122, .22); min-width: 0; }
.ys-cell small { color: #b9b0de; font-size: .74rem; }
.ys-cell b { color: #fff3d1; font-size: 1rem; overflow-wrap: anywhere; }
.lm-bars { display: grid; gap: 12px; max-width: 980px; margin: 10px auto 6px; }
.lm-row { min-width: 0; }
.lm-lab { margin: 0 0 4px !important; color: #f6dc9b; font-size: .85rem; font-weight: 700; }
.lm-bar { display: flex; gap: 3px; }
.lm-m { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 7px 2px; border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(231, 194, 122, .2); text-align: center; }
.lm-m b { color: #e6def8; font-size: .66rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lm-m small { color: #b9b0de; font-size: .7rem; font-variant-numeric: tabular-nums; }
.lm-gold { background: #f3d78f; border-color: #f3d78f; }
.lm-gold b, .lm-gold small { color: #2a2140; }
@media (max-width: 820px) { .ph-groups { grid-template-columns: 1fr; } .ph-kinds { grid-template-columns: 1fr; } .ys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lm-m b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .62rem; } .lm-m { padding: 6px 0; } .lm-bar { gap: 2px; } }
