/*!
 * Mặt trăng — the lookup with tonight's Moon, a date's Moon and its reading,
 * the pairing and its result, the month calendar and the year of full moons.
 *
 * Loaded only on the moon pages. The hero is a midnight sky lit silver, where
 * the Moon is drawn; the page below it is a cool pale blue, because the
 * readings are long and read best dark on light — only the calendar keeps a
 * night background, since a moon is drawn against the sky. Every panel is a
 * <div>: the legacy `section { padding }` rules and the theme's nested reset
 * are what left the old panels with text against their border.
 */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
.nhanso-mo-page {
    --mo-night: #0a1024;
    --mo-night-2: #16214a;
    --mo-deep: #060a18;
    --mo-pearl: #f5efdc;
    --mo-pearl-2: #e4d8b4;
    --mo-silver: #c9d3ea;
    --mo-blue: #2f4fa6;
    --mo-blue-2: #4668cc;
    --mo-blue-soft: #e7ecfa;
    --mo-ink: #141b35;
    --mo-text: #373f5c;
    --mo-muted: #666f8a;
    --mo-paper: #ffffff;
    --mo-bg: #f2f4f9;
    --mo-bg-2: #e8ecf5;
    --mo-line: #dde3ef;
    --mo-line-strong: #c5cde1;
    --mo-warm: #f3cf86;
    --mo-cool: #9ccaff;
    --mo-low: #b23a2b;
    --mo-low-soft: #fbe6e1;
    --mo-mid: #946400;
    --mo-mid-soft: #fbf0d4;
    --mo-good: #287550;
    --mo-good-soft: #e1f3e8;
    --mo-best: #2f4fa6;
    --mo-best-soft: #e7ecfa;
    --mo-radius: 20px;
    --mo-radius-sm: 14px;
    --mo-shadow: 0 1px 2px rgba(20, 27, 53, .05), 0 14px 34px -22px rgba(20, 27, 53, .38);
    --mo-shadow-lg: 0 26px 60px -30px rgba(20, 27, 53, .55);
    background: var(--mo-bg);
    color: var(--mo-text);
}

body.nhanso-tool-moon {
    background: #f2f4f9 !important;
}

.nhanso-mo-page h1,
.nhanso-mo-page h2,
.nhanso-mo-page h3,
.nhanso-mo-page h4 {
    color: var(--mo-ink);
    letter-spacing: -.005em;
}

.nhanso-mo-page a {
    color: var(--mo-blue);
}

.nhanso-mo-page a:hover {
    color: var(--mo-ink);
}

.nhanso-mo-page :focus-visible {
    outline: 3px solid var(--mo-blue-2);
    outline-offset: 2px;
    border-radius: 6px;
}

.nhanso-mo-disc {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.nhanso-mo-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--ns-header-h) + 38px) 0 104px;
    color: #e8ecf7;
    background:
        radial-gradient(ellipse 45% 60% at 82% 30%, rgba(245, 239, 220, .16), transparent 62%),
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(70, 104, 204, .28), transparent 62%),
        linear-gradient(165deg, #182452 0%, #0b1128 55%, #060914 100%);
}

/* A scatter of stars, faded out toward the page. */
.nhanso-mo-hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .75;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='18' cy='26' r='1.1' opacity='.7'/%3E%3Ccircle cx='96' cy='12' r='.8' opacity='.5'/%3E%3Ccircle cx='150' cy='64' r='1.3' opacity='.6'/%3E%3Ccircle cx='228' cy='30' r='.9' opacity='.8'/%3E%3Ccircle cx='296' cy='82' r='1' opacity='.5'/%3E%3Ccircle cx='60' cy='120' r='.8' opacity='.6'/%3E%3Ccircle cx='190' cy='140' r='1.2' opacity='.45'/%3E%3Ccircle cx='262' cy='176' r='.8' opacity='.7'/%3E%3Ccircle cx='120' cy='196' r='1' opacity='.55'/%3E%3Ccircle cx='24' cy='182' r='.7' opacity='.6'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 35%, transparent 96%);
}

.nhanso-mo-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 211, 234, .5), transparent);
}

.nhanso-mo-hero .container {
    position: relative;
    z-index: 1;
}

.nhanso-mo-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 48px;
    align-items: center;
}

.nhanso-mo-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    margin: 0 0 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(201, 211, 234, .6);
}

.nhanso-mo-page .nhanso-mo-crumbs a {
    color: var(--mo-pearl);
}

.nhanso-mo-page .nhanso-mo-crumbs a:hover {
    color: #fff;
}

.nhanso-mo-crumbs [aria-current] {
    color: rgba(232, 236, 247, .78);
}

.nhanso-mo-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.14;
    color: #fff;
    text-wrap: balance;
}

.nhanso-mo-hero__lede {
    max-width: 64ch;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(232, 236, 247, .86);
}

.nhanso-mo-hero__art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.nhanso-mo-hero__disc {
    width: min(100%, 250px);
    filter: drop-shadow(0 0 40px rgba(245, 239, 220, .12));
}

.nhanso-mo-hero__caption {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(232, 236, 247, .7);
    text-align: center;
}

.nhanso-mo-hero__caption b {
    color: var(--mo-pearl);
}

.nhanso-mo-hero__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 16px 0 0;
    text-align: center;
}

.nhanso-mo-hero__score b {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--mo-pearl);
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-hero__score span {
    font-size: 14px;
    color: rgba(232, 236, 247, .75);
}

.nhanso-mo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    font-size: 14px;
    font-weight: 600;
    color: #eef1fa;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 99px;
}

.nhanso-mo-chips i {
    color: var(--mo-pearl-2);
}

.nhanso-mo-jump,
.nhanso-mo-steps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
}

.nhanso-mo-page .nhanso-mo-jump a,
.nhanso-mo-page .nhanso-mo-steps-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 700;
    color: #eef1fa;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    transition: background .15s, border-color .15s;
}

.nhanso-mo-jump i,
.nhanso-mo-steps-nav i {
    color: var(--mo-pearl-2);
}

.nhanso-mo-page .nhanso-mo-jump a:hover,
.nhanso-mo-page .nhanso-mo-steps-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(245, 239, 220, .5);
}

.nhanso-mo-page .nhanso-mo-steps-nav a.is-current {
    color: var(--mo-ink);
    background: linear-gradient(180deg, #fbf7ea, #e4d8b4);
    border-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Forms
   -------------------------------------------------------------------------- */
.nhanso-mo-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 16px;
    margin: 24px 0 0;
    padding: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
}

.nhanso-mo-form__date {
    display: flex;
    flex: 1 1 320px;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.nhanso-mo-form--pair .nhanso-mo-form__date {
    flex-basis: 100%;
}

.nhanso-mo-form legend {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(232, 236, 247, .9);
}

.nhanso-mo-field {
    display: flex;
    flex: 1 1 90px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nhanso-mo-form label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(232, 236, 247, .62);
}

.nhanso-mo-form input,
.nhanso-mo-form select {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    font-size: 15.5px;
    color: var(--mo-ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 11px;
}

.nhanso-mo-form input:focus,
.nhanso-mo-form select:focus {
    outline: 3px solid rgba(156, 202, 255, .7);
    outline-offset: 1px;
}

.nhanso-mo-page .nhanso-mo-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mo-ink);
    background: linear-gradient(180deg, #fbf7ea, #e2d5ae);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 22px -12px rgba(245, 239, 220, .8);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.nhanso-mo-page .nhanso-mo-btn:hover {
    color: var(--mo-ink);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(245, 239, 220, 1);
}

.nhanso-mo-form__error {
    display: flex;
    flex: 1 1 100%;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: #ffd8d2;
    background: rgba(178, 58, 43, .35);
    border-radius: 10px;
}

.nhanso-mo-form__error i {
    margin-top: 2px;
}

/* The same form on the light page. */
.nhanso-mo-form--bar {
    margin: 14px 0 0;
    padding: 16px;
    background: var(--mo-bg);
    border-color: var(--mo-line);
}

.nhanso-mo-form--bar legend {
    color: var(--mo-ink);
}

.nhanso-mo-form--bar label {
    color: var(--mo-muted);
}

.nhanso-mo-form--bar input,
.nhanso-mo-form--bar select {
    border-color: var(--mo-line-strong);
}

.nhanso-mo-page .nhanso-mo-form--bar .nhanso-mo-btn {
    color: #fff;
    background: linear-gradient(180deg, #3a5cbd, #263f8c);
    box-shadow: 0 10px 22px -12px rgba(38, 63, 140, .9);
}

.nhanso-mo-page .nhanso-mo-form--bar .nhanso-mo-btn:hover {
    color: #fff;
}

.nhanso-mo-form--bar .nhanso-mo-form__error {
    color: var(--mo-low);
    background: var(--mo-low-soft);
}

.nhanso-mo-split__aside .nhanso-mo-form--bar {
    padding: 14px;
}

.nhanso-mo-split__aside .nhanso-mo-form--bar .nhanso-mo-btn {
    flex: 1 1 100%;
}

/* --------------------------------------------------------------------------
   4. Dock
   -------------------------------------------------------------------------- */
.nhanso-mo-dock {
    position: relative;
    z-index: 2;
    margin-top: -66px;
}

.nhanso-mo-dock__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 22px;
    box-shadow: var(--mo-shadow-lg);
}

.nhanso-mo-page .nhanso-mo-dock__list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 12px 6px 11px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--mo-text);
    border-radius: 15px;
    transition: background .15s, color .15s, transform .15s;
}

.nhanso-mo-dock__list i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 19px;
    color: var(--mo-blue);
    background: var(--mo-blue-soft);
    border-radius: 13px;
}

.nhanso-mo-page .nhanso-mo-dock__list a:hover {
    color: var(--mo-ink);
    background: var(--mo-bg);
    transform: translateY(-2px);
}

.nhanso-mo-page .nhanso-mo-dock__list a.is-current {
    color: #fff;
    background: linear-gradient(160deg, #1d2b5c, #0b1128);
    box-shadow: 0 12px 24px -14px rgba(11, 17, 40, .9);
}

.nhanso-mo-dock__list a.is-current i {
    color: var(--mo-ink);
    background: linear-gradient(180deg, #fbf7ea, #e2d5ae);
}

@media (max-width: 991px) {
    .nhanso-mo-dock .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .nhanso-mo-dock__list {
        display: flex;
        margin: 0 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nhanso-mo-dock__list::-webkit-scrollbar {
        display: none;
    }

    .nhanso-mo-dock__list li {
        flex: 1 0 100px;
        scroll-snap-align: start;
    }
}

/* --------------------------------------------------------------------------
   5. Page body, blocks, panels
   -------------------------------------------------------------------------- */
.nhanso-mo-body {
    padding: 44px 0 20px;
}

.nhanso-mo-block {
    margin: 0 0 52px;
    scroll-margin-top: calc(var(--ns-header-h) + 16px);
}

.nhanso-mo-block__head {
    max-width: 860px;
    margin: 0 0 20px;
}

.nhanso-mo-block__head h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.4vw, 31px);
    font-weight: 800;
    line-height: 1.25;
}

.nhanso-mo-block__head p:not(.nhanso-mo-kicker) {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--mo-muted);
}

.nhanso-mo-kicker {
    display: block;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mo-blue);
}

.nhanso-mo-panel,
.nhanso-mo-section {
    min-width: 0;
    padding: 24px 26px;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: var(--mo-radius);
    box-shadow: var(--mo-shadow);
    scroll-margin-top: calc(var(--ns-header-h) + 16px);
}

.nhanso-mo-section {
    padding: 28px 30px;
}

.nhanso-mo-panel > h2,
.nhanso-mo-panel > h3,
.nhanso-mo-section > h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.nhanso-mo-section > h2 {
    font-size: clamp(21px, 2vw, 25px);
}

.nhanso-mo-panel p,
.nhanso-mo-section p {
    margin: 0 0 10px;
    line-height: 1.75;
}

.nhanso-mo-panel p:last-child,
.nhanso-mo-section p:last-child {
    margin-bottom: 0;
}

.nhanso-mo-section__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
}

.nhanso-mo-section__head h2 {
    margin: 0;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.3;
}

.nhanso-mo-section__head .nhanso-mo-kicker {
    margin-bottom: 2px;
}

.nhanso-mo-section__meta {
    margin: 4px 0 0 !important;
    font-size: 14px;
    color: var(--mo-muted);
}

.nhanso-mo-badge {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    font-size: 24px;
    color: var(--mo-pearl);
    background: linear-gradient(160deg, #1d2b5c, #0b1128);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(245, 239, 220, .35);
}

.nhanso-mo-section__head > .nhanso-mo-disc {
    width: 64px;
    height: 64px;
    padding: 4px;
    background: linear-gradient(160deg, #1d2b5c, #0b1128);
    border-radius: 18px;
}

.nhanso-mo-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 28px;
    align-items: start;
    margin: 0 0 52px;
}

.nhanso-mo-split__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.nhanso-mo-split__aside {
    position: sticky;
    top: calc(var(--ns-header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.nhanso-mo-split__aside .nhanso-mo-panel > h2 {
    font-size: 18px;
}

.nhanso-mo-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nhanso-mo-duo--wide {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.nhanso-mo-prose {
    font-size: 16px;
    line-height: 1.8;
    color: var(--mo-text);
}

.nhanso-mo-prose p {
    margin: 0 0 12px;
    text-align: left;
}

.nhanso-mo-prose p:last-child {
    margin-bottom: 0;
}

.nhanso-mo-gist {
    margin: 0 0 14px !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--mo-ink);
}

.nhanso-mo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.nhanso-mo-keywords li {
    padding: 5px 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mo-blue);
    background: var(--mo-blue-soft);
    border-radius: 99px;
}

.nhanso-mo-tip {
    display: flex;
    gap: 10px;
    margin: 16px 0 0 !important;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mo-ink);
    background: var(--mo-good-soft);
    border-radius: 12px;
}

.nhanso-mo-tip i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--mo-good);
}

.nhanso-mo-note {
    margin: 14px 0 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--mo-muted);
}

.nhanso-mo-panel .nhanso-mo-note,
.nhanso-mo-section .nhanso-mo-note {
    margin-top: 14px;
}

.nhanso-mo-section > .nhanso-mo-note:first-of-type {
    margin-top: 0;
}

.nhanso-mo-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
}

.nhanso-mo-subhead {
    margin: 22px 0 12px;
    font-size: 18px;
    font-weight: 800;
}

.nhanso-mo-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .02em;
    vertical-align: middle;
    color: var(--mo-blue);
    background: var(--mo-blue-soft);
    border-radius: 99px;
}

.nhanso-mo-tag--warm {
    color: var(--mo-mid);
    background: var(--mo-mid-soft);
}

.nhanso-mo-meter {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 7px;
    margin-right: 8px;
    overflow: hidden;
    vertical-align: middle;
    background: var(--mo-bg-2);
    border-radius: 99px;
}

.nhanso-mo-meter i {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #c9b778, #f1dfa2);
    border-radius: inherit;
}

.nhanso-mo-meter--lg {
    display: block;
    width: 100%;
    height: 10px;
    margin: 6px 0 14px;
}

/* Facts: a list of label and value rows. */
.nhanso-mo-facts {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.nhanso-mo-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--mo-line);
}

.nhanso-mo-facts > div:last-child {
    border-bottom: 0;
}

.nhanso-mo-facts dt {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mo-muted);
}

.nhanso-mo-facts dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--mo-ink);
}

.nhanso-mo-facts dd span {
    font-weight: 500;
    color: var(--mo-muted);
}

.nhanso-mo-split__aside .nhanso-mo-facts > div {
    grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
}

.nhanso-mo-daynav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 0;
}

.nhanso-mo-page .nhanso-mo-daynav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    background: var(--mo-bg);
    border: 1px solid var(--mo-line);
    border-radius: 10px;
}

.nhanso-mo-page .nhanso-mo-daynav a[rel="next"] {
    margin-left: auto;
}

/* Links to the neighbouring pages. */
.nhanso-mo-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 52px;
}

.nhanso-mo-page .nhanso-mo-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: var(--mo-ink);
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 16px;
    box-shadow: var(--mo-shadow);
    transition: transform .15s, border-color .15s;
}

.nhanso-mo-page .nhanso-mo-links a:hover {
    border-color: var(--mo-line-strong);
    transform: translateY(-2px);
}

.nhanso-mo-links i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    font-size: 19px;
    color: var(--mo-blue);
    background: var(--mo-blue-soft);
    border-radius: 12px;
}

.nhanso-mo-links span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nhanso-mo-links b {
    font-size: 15.5px;
    line-height: 1.35;
}

.nhanso-mo-links em {
    font-size: 13.5px;
    font-style: normal;
    color: var(--mo-muted);
}

/* --------------------------------------------------------------------------
   6. Turning points, the week, the lunation
   -------------------------------------------------------------------------- */
.nhanso-mo-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-page .nhanso-mo-events a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    color: var(--mo-ink);
    background: var(--mo-bg);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color .15s, background .15s;
}

.nhanso-mo-page .nhanso-mo-events a:hover {
    background: var(--mo-paper);
    border-color: var(--mo-line-strong);
}

.nhanso-mo-events .nhanso-mo-disc {
    padding: 3px;
    background: var(--mo-night);
    border-radius: 50%;
}

.nhanso-mo-events__what,
.nhanso-mo-events__when {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nhanso-mo-events__what {
    flex: 1 1 auto;
}

.nhanso-mo-events__when {
    flex: 0 0 auto;
    align-items: flex-end;
    text-align: right;
}

.nhanso-mo-events b {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
}

.nhanso-mo-events__when b {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-events em {
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
    color: var(--mo-muted);
}

.nhanso-mo-events .is-full b:first-child {
    color: var(--mo-mid);
}

.nhanso-mo-events--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nhanso-mo-page .nhanso-mo-events--grid a {
    height: 100%;
    padding: 14px 16px;
    background: var(--mo-paper);
    border-color: var(--mo-line);
    box-shadow: var(--mo-shadow);
}

/* Seven nights, on a strip of night sky. */
.nhanso-mo-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: linear-gradient(170deg, #16214a, #0a1024);
    border-radius: var(--mo-radius);
    box-shadow: var(--mo-shadow-lg);
}

.nhanso-mo-page .nhanso-mo-week a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 12px 4px;
    text-align: center;
    color: #e8ecf7;
    border-radius: 14px;
    transition: background .15s;
}

.nhanso-mo-page .nhanso-mo-week a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.nhanso-mo-week .is-today a {
    background: rgba(245, 239, 220, .1);
    box-shadow: inset 0 0 0 1px rgba(245, 239, 220, .35);
}

.nhanso-mo-week__day {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(232, 236, 247, .72);
}

.nhanso-mo-week__date {
    font-size: 15px;
    font-weight: 800;
}

.nhanso-mo-week__lit {
    font-size: 13px;
    color: rgba(232, 236, 247, .72);
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-week__turn {
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mo-ink);
    background: var(--mo-pearl);
    border-radius: 99px;
}

/* The lunation, as a bar and its five moments. */
.nhanso-mo-lunation {
    margin: 18px 0 0;
}

.nhanso-mo-lunation__bar {
    position: relative;
    height: 8px;
    margin: 0 0 16px;
    background: var(--mo-bg-2);
    border-radius: 99px;
}

.nhanso-mo-lunation__bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--mo-progress, 0%);
    background: linear-gradient(90deg, #26366f, #c9b778);
    border-radius: inherit;
}

.nhanso-mo-lunation__bar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--mo-progress, 0%);
    width: 18px;
    height: 18px;
    background: var(--mo-pearl);
    border: 3px solid var(--mo-ink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.nhanso-mo-lunation ol {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-lunation li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    text-align: center;
    background: var(--mo-bg);
    border-radius: 12px;
}

.nhanso-mo-lunation li .nhanso-mo-disc {
    padding: 2px;
    background: var(--mo-night);
    border-radius: 50%;
}

.nhanso-mo-lunation li b {
    font-size: 13.5px;
    line-height: 1.3;
    color: var(--mo-ink);
}

.nhanso-mo-lunation li em {
    font-size: 12.5px;
    font-style: normal;
    color: var(--mo-muted);
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-lunation li.is-past {
    opacity: .72;
}

.nhanso-mo-lunation li.is-date {
    background: var(--mo-ink);
    box-shadow: 0 10px 22px -14px rgba(20, 27, 53, .9);
}

.nhanso-mo-lunation li.is-date b {
    color: #fff;
}

.nhanso-mo-lunation li.is-date em {
    color: var(--mo-pearl-2);
}

/* When a birth moon comes round again. */
.nhanso-mo-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.nhanso-mo-page .nhanso-mo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--mo-ink);
    background: var(--mo-bg);
    border: 1px solid var(--mo-line);
    border-radius: 16px;
    transition: border-color .15s, transform .15s;
}

.nhanso-mo-page .nhanso-mo-card:hover {
    border-color: var(--mo-line-strong);
    transform: translateY(-2px);
}

.nhanso-mo-card .nhanso-mo-disc {
    padding: 3px;
    background: var(--mo-night);
    border-radius: 50%;
}

.nhanso-mo-card > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nhanso-mo-card em {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mo-blue);
}

.nhanso-mo-card b {
    font-size: 18px;
    font-weight: 800;
}

.nhanso-mo-card span span {
    font-size: 13px;
    line-height: 1.45;
    color: var(--mo-muted);
}

/* --------------------------------------------------------------------------
   7. The eight phases, the questions
   -------------------------------------------------------------------------- */
.nhanso-mo-phases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-phases li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 18px;
    box-shadow: var(--mo-shadow);
}

.nhanso-mo-phases li.is-current {
    border-color: var(--mo-blue-2);
    box-shadow: 0 0 0 3px var(--mo-blue-soft), var(--mo-shadow);
}

.nhanso-mo-phases .nhanso-mo-disc {
    padding: 4px;
    background: var(--mo-night);
    border-radius: 16px;
}

.nhanso-mo-phases h3 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.nhanso-mo-phases p {
    margin: 0 0 6px;
    font-size: 14.5px;
    line-height: 1.6;
}

.nhanso-mo-phases p:last-child {
    margin-bottom: 0;
}

.nhanso-mo-phases__alias {
    font-size: 13px !important;
    color: var(--mo-muted);
}

.nhanso-mo-phases__gist {
    font-weight: 700;
    color: var(--mo-ink);
}

.nhanso-mo-phases__sky,
.nhanso-mo-phases__days {
    display: flex;
    gap: 8px;
    color: var(--mo-text);
}

.nhanso-mo-phases__sky i,
.nhanso-mo-phases__days i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--mo-blue);
}

.nhanso-mo-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
}

.nhanso-mo-faq details {
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 16px;
}

.nhanso-mo-faq summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--mo-ink);
    list-style: none;
    cursor: pointer;
}

.nhanso-mo-faq summary::-webkit-details-marker {
    display: none;
}

.nhanso-mo-faq summary::after {
    content: "+";
    margin-left: auto;
    font-size: 22px;
    font-weight: 400;
    color: var(--mo-blue);
}

.nhanso-mo-faq details[open] summary::after {
    content: "–";
}

.nhanso-mo-faq details p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 15.5px;
    line-height: 1.75;
}

.nhanso-mo-faq details:not([open]) > p {
    display: none;
}

/* --------------------------------------------------------------------------
   8. The pairing
   -------------------------------------------------------------------------- */
.nhanso-mo-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.nhanso-mo-pair figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.nhanso-mo-pair__svg {
    display: block;
    width: 96px;
    height: 96px;
}

.nhanso-mo-pair__merged .nhanso-mo-pair__svg {
    width: 132px;
    height: 132px;
    filter: drop-shadow(0 0 24px rgba(245, 239, 220, .16));
}

.nhanso-mo-pair__sky {
    fill: #151c33;
}

.nhanso-mo-pair__rim {
    fill: none;
    stroke: rgba(255, 255, 255, .28);
}

.nhanso-mo-pair .is-a path {
    fill: var(--mo-warm);
}

.nhanso-mo-pair .is-b path {
    fill: var(--mo-cool);
}

.nhanso-mo-pair__merged .is-a path,
.nhanso-mo-pair__merged .is-b path {
    opacity: .9;
    mix-blend-mode: screen;
}

.nhanso-mo-pair figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(232, 236, 247, .85);
    text-align: center;
}

.nhanso-mo-pair figcaption span {
    font-weight: 500;
    color: rgba(232, 236, 247, .6);
}

.nhanso-mo-pair__op {
    align-self: center;
    margin-bottom: 26px;
    font-size: 26px;
    font-weight: 300;
    color: rgba(232, 236, 247, .6);
}

.nhanso-mo-hero .nhanso-mo-pair__merged {
    animation: nhanso-mo-rise .9s ease-out .2s both;
}

@keyframes nhanso-mo-rise {
    from {
        opacity: 0;
        transform: scale(.86);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Worked examples, on night tiles. */
.nhanso-mo-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nhanso-mo-example {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 18px;
    box-shadow: var(--mo-shadow);
}

.nhanso-mo-example__art {
    display: flex;
    justify-content: center;
    padding: 18px 10px 14px;
    background: linear-gradient(170deg, #16214a, #0a1024);
}

.nhanso-mo-example .nhanso-mo-pair__svg {
    width: 58px;
    height: 58px;
}

.nhanso-mo-example .nhanso-mo-pair__merged .nhanso-mo-pair__svg {
    width: 76px;
    height: 76px;
}

.nhanso-mo-example .nhanso-mo-pair__op {
    margin-bottom: 20px;
    font-size: 20px;
}

.nhanso-mo-example .nhanso-mo-pair figcaption {
    font-size: 11px;
}

.nhanso-mo-example > figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}

.nhanso-mo-example > figcaption b {
    font-size: 15px;
    line-height: 1.4;
    color: var(--mo-ink);
}

.nhanso-mo-example > figcaption span {
    font-size: 14px;
    line-height: 1.55;
    color: var(--mo-muted);
}

.nhanso-mo-bands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-bands li {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: baseline;
    padding: 12px 16px;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-left: 4px solid var(--tone, var(--mo-line-strong));
    border-radius: 12px;
}

.nhanso-mo-bands__range {
    grid-row: span 2;
    font-size: 15px;
    font-weight: 800;
    color: var(--tone, var(--mo-ink));
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-bands b {
    font-size: 15.5px;
    color: var(--mo-ink);
}

.nhanso-mo-bands__sign {
    font-size: 13.5px;
    color: var(--mo-muted);
}

.nhanso-mo-page .is-low {
    --tone: var(--mo-low);
    --tone-soft: var(--mo-low-soft);
}

.nhanso-mo-page .is-mid {
    --tone: var(--mo-mid);
    --tone-soft: var(--mo-mid-soft);
}

.nhanso-mo-page .is-good {
    --tone: var(--mo-good);
    --tone-soft: var(--mo-good-soft);
}

.nhanso-mo-page .is-best {
    --tone: var(--mo-best);
    --tone-soft: var(--mo-best-soft);
}

/* The score. */
.nhanso-mo-score {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 0 22px;
    padding: 24px 28px;
    background: var(--tone-soft, var(--mo-blue-soft));
    border: 1px solid var(--mo-line);
    border-radius: var(--mo-radius);
}

.nhanso-mo-score__figure {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    text-align: center;
    background: var(--mo-paper);
    border: 6px solid var(--tone, var(--mo-blue));
    border-radius: 50%;
}

.nhanso-mo-score__figure b {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: var(--tone, var(--mo-ink));
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-score__figure span {
    margin-top: 4px;
    padding: 0 8px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mo-ink);
}

.nhanso-mo-score__text {
    flex: 1 1 auto;
    min-width: 0;
}

.nhanso-mo-score__text p:not(.nhanso-mo-kicker) {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--mo-ink);
}

.nhanso-mo-score .nhanso-mo-meter i {
    background: var(--tone, var(--mo-blue));
}

.nhanso-mo-signs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-signs li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    background: var(--mo-bg);
    border-left: 3px solid var(--mo-blue-2);
    border-radius: 0 12px 12px 0;
}

.nhanso-mo-signs b {
    font-size: 15.5px;
    color: var(--mo-ink);
}

.nhanso-mo-signs span {
    font-size: 15px;
    line-height: 1.65;
}

.nhanso-mo-person {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-top: 4px solid var(--mo-warm);
    border-radius: var(--mo-radius);
    box-shadow: var(--mo-shadow);
}

.nhanso-mo-person.is-second {
    border-top-color: var(--mo-cool);
}

.nhanso-mo-person .nhanso-mo-disc {
    padding: 5px;
    background: var(--mo-night);
    border-radius: 50%;
}

.nhanso-mo-person h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.nhanso-mo-person p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.65;
}

.nhanso-mo-person__stats {
    font-size: 13.5px !important;
    color: var(--mo-muted);
}

.nhanso-mo-person .nhanso-mo-more {
    margin-top: 4px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   9. The month
   -------------------------------------------------------------------------- */
.nhanso-mo-cal {
    padding: 18px;
    color: #e8ecf7;
    background:
        radial-gradient(ellipse 60% 50% at 85% 0%, rgba(245, 239, 220, .08), transparent 60%),
        linear-gradient(170deg, #16214a, #0a1024);
    border-radius: var(--mo-radius);
    box-shadow: var(--mo-shadow-lg);
}

.nhanso-mo-cal__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin: 4px 6px 14px;
}

.nhanso-mo-page .nhanso-mo-cal__title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.nhanso-mo-cal__title p {
    margin: 0;
    font-size: 13px;
    color: rgba(232, 236, 247, .65);
}

.nhanso-mo-cal__head,
.nhanso-mo-cal__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.nhanso-mo-cal__week {
    margin-top: 6px;
}

.nhanso-mo-cal__head span {
    padding: 4px 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    color: rgba(232, 236, 247, .6);
}

.nhanso-mo-cal__cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 118px;
    padding: 26px 4px 10px;
    border-radius: 12px;
}

.nhanso-mo-page a.nhanso-mo-cal__cell {
    color: #e8ecf7;
    background: rgba(255, 255, 255, .04);
    transition: background .15s;
}

.nhanso-mo-page a.nhanso-mo-cal__cell:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.nhanso-mo-cal__date {
    position: absolute;
    top: 6px;
    left: 9px;
    font-size: 14px;
    font-weight: 800;
}

.nhanso-mo-cal__lunar {
    position: absolute;
    top: 7px;
    right: 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(232, 236, 247, .55);
}

.nhanso-mo-cal__lunar.is-key {
    font-weight: 800;
    color: var(--mo-pearl-2);
}

.nhanso-mo-cal__lit {
    font-size: 12px;
    color: rgba(232, 236, 247, .66);
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-cal__turn {
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--mo-ink);
    background: var(--mo-pearl);
    border-radius: 99px;
}

.nhanso-mo-cal__cell.is-new .nhanso-mo-cal__turn {
    color: #fff;
    background: #3a4a80;
}

.nhanso-mo-page a.nhanso-mo-cal__cell.is-today {
    background: rgba(245, 239, 220, .12);
    box-shadow: inset 0 0 0 2px rgba(245, 239, 220, .55);
}

.nhanso-mo-cal__cell.is-today .nhanso-mo-cal__date::after {
    content: "Hôm nay";
    margin-left: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--mo-pearl-2);
}

/* --------------------------------------------------------------------------
   10. The year
   -------------------------------------------------------------------------- */
.nhanso-mo-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nhanso-mo-stats > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: center;
    padding: 16px 18px;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 16px;
    box-shadow: var(--mo-shadow);
}

.nhanso-mo-stats .nhanso-mo-disc {
    grid-row: span 2;
    padding: 3px;
    background: var(--mo-night);
    border-radius: 50%;
}

.nhanso-mo-stats b {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--mo-ink);
}

.nhanso-mo-stats span {
    font-size: 13.5px;
    color: var(--mo-muted);
}

.nhanso-mo-callout {
    display: flex;
    gap: 12px;
    margin: 16px 0 0;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mo-ink);
    background: var(--mo-blue-soft);
    border-radius: 14px;
}

.nhanso-mo-callout i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--mo-blue);
}

.nhanso-mo-table-wrap {
    overflow-x: auto;
}

.nhanso-mo-table {
    width: 100%;
    font-size: 15px;
    border-collapse: collapse;
}

.nhanso-mo-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.nhanso-mo-table th {
    padding: 0 10px 8px 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    color: var(--mo-muted);
    border-bottom: 1px solid var(--mo-line);
}

.nhanso-mo-table td {
    padding: 10px 10px 10px 0;
    vertical-align: top;
    border-bottom: 1px dashed var(--mo-line);
}

.nhanso-mo-table tr:last-child td {
    border-bottom: 0;
}

.nhanso-mo-table td:first-child a {
    font-weight: 800;
}

.nhanso-mo-table td:first-child span {
    display: block;
    font-size: 12.5px;
    color: var(--mo-muted);
}

.nhanso-mo-table td b {
    font-variant-numeric: tabular-nums;
    color: var(--mo-ink);
}

.nhanso-mo-table tr.is-past td {
    opacity: .62;
}

.nhanso-mo-table tr.is-next td {
    background: var(--mo-blue-soft);
}

.nhanso-mo-table tr.is-next td:first-child {
    padding-left: 8px;
    border-radius: 10px 0 0 10px;
}

.nhanso-mo-table tr.is-next td:last-child {
    border-radius: 0 10px 10px 0;
}

.nhanso-mo-table .nhanso-mo-tag {
    margin: 4px 0 0;
}

.nhanso-mo-table td:last-child .nhanso-mo-tag {
    display: table;
}

.nhanso-mo-months {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nhanso-mo-month {
    padding: 16px 16px 12px;
    background: var(--mo-paper);
    border: 1px solid var(--mo-line);
    border-radius: 16px;
    box-shadow: var(--mo-shadow);
}

.nhanso-mo-month.is-now {
    border-color: var(--mo-blue-2);
    box-shadow: 0 0 0 3px var(--mo-blue-soft), var(--mo-shadow);
}

.nhanso-mo-month h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 800;
}

.nhanso-mo-page .nhanso-mo-month h3 a {
    color: var(--mo-ink);
}

.nhanso-mo-month ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nhanso-mo-page .nhanso-mo-month li a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: var(--mo-text);
    border-top: 1px dashed var(--mo-line);
}

.nhanso-mo-month li:first-child a {
    border-top: 0;
}

.nhanso-mo-month .nhanso-mo-disc {
    width: 22px;
    height: 22px;
    padding: 1px;
    background: var(--mo-night);
    border-radius: 50%;
}

.nhanso-mo-month li b {
    color: var(--mo-ink);
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-month li em {
    font-size: 12.5px;
    font-style: normal;
    color: var(--mo-muted);
    font-variant-numeric: tabular-nums;
}

.nhanso-mo-month li.is-full span {
    font-weight: 700;
    color: var(--mo-mid);
}

/* --------------------------------------------------------------------------
   11. Narrow screens
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .nhanso-mo-months {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nhanso-mo-lunation ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .nhanso-mo-hero {
        padding: calc(var(--ns-header-h) + 26px) 0 96px;
    }

    .nhanso-mo-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .nhanso-mo-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .nhanso-mo-split__aside {
        position: static;
    }

    .nhanso-mo-duo--wide,
    .nhanso-mo-examples {
        grid-template-columns: minmax(0, 1fr);
    }

    .nhanso-mo-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .nhanso-mo-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nhanso-mo-cal__turn {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .nhanso-mo-duo,
    .nhanso-mo-phases,
    .nhanso-mo-bands,
    .nhanso-mo-events--grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nhanso-mo-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nhanso-mo-week {
        display: flex;
        margin-left: -12px;
        margin-right: -12px;
        overflow-x: auto;
        border-radius: 0;
        scrollbar-width: none;
    }

    .nhanso-mo-week::-webkit-scrollbar {
        display: none;
    }

    .nhanso-mo-week li {
        flex: 0 0 84px;
    }

    .nhanso-mo-score {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .nhanso-mo-score__figure {
        align-self: center;
    }

    /* A month on a phone: the day, the lunar day and the moon; the
       percentage and the turning point's label go to the list below. */
    .nhanso-mo-cal {
        margin-left: -12px;
        margin-right: -12px;
        padding: 12px 8px;
        border-radius: 0;
    }

    .nhanso-mo-cal__head,
    .nhanso-mo-cal__week {
        gap: 3px;
    }

    .nhanso-mo-cal__week {
        margin-top: 3px;
    }

    .nhanso-mo-cal__cell {
        min-height: 72px;
        padding: 22px 2px 6px;
        border-radius: 9px;
    }

    .nhanso-mo-cal__cell .nhanso-mo-disc {
        width: 30px;
        height: 30px;
    }

    .nhanso-mo-cal__date {
        top: 4px;
        left: 6px;
        font-size: 13px;
    }

    .nhanso-mo-cal__lunar {
        top: 5px;
        right: 5px;
        font-size: 10px;
    }

    .nhanso-mo-cal__lit,
    .nhanso-mo-cal__turn,
    .nhanso-mo-cal__cell.is-today .nhanso-mo-cal__date::after {
        display: none;
    }

    .nhanso-mo-page a.nhanso-mo-cal__cell.is-turn {
        box-shadow: inset 0 -3px 0 var(--mo-pearl-2);
    }

    .nhanso-mo-page a.nhanso-mo-cal__cell.is-turn.is-today {
        box-shadow: inset 0 0 0 2px rgba(245, 239, 220, .55), inset 0 -3px 0 var(--mo-pearl-2);
    }
}

@media (max-width: 575px) {
    .nhanso-mo-hero__lede {
        font-size: 16px;
    }

    .nhanso-mo-hero__disc {
        width: min(100%, 200px);
    }

    .nhanso-mo-form {
        padding: 14px;
    }

    .nhanso-mo-form .nhanso-mo-btn {
        flex: 1 1 100%;
    }

    .nhanso-mo-field {
        flex-basis: 80px;
    }

    /* In a panel the three fields get about 300px; the year takes its own
       row so "Tháng 12" is not cut off. */
    .nhanso-mo-form--bar .nhanso-mo-field {
        flex-basis: 40%;
    }

    .nhanso-mo-form--bar .nhanso-mo-field:last-child {
        flex-basis: 100%;
    }

    .nhanso-mo-dock {
        margin-top: -58px;
    }

    .nhanso-mo-dock__list {
        gap: 2px;
        padding: 6px;
        border-radius: 18px;
    }

    .nhanso-mo-dock__list li {
        flex-basis: 84px;
    }

    .nhanso-mo-page .nhanso-mo-dock__list a {
        gap: 5px;
        padding: 8px 2px;
        font-size: 11.5px;
        border-radius: 12px;
    }

    .nhanso-mo-dock__list i {
        width: 34px;
        height: 34px;
        font-size: 16px;
        border-radius: 10px;
    }

    .nhanso-mo-body {
        padding-top: 32px;
    }

    .nhanso-mo-panel,
    .nhanso-mo-section {
        padding: 20px 18px;
    }

    .nhanso-mo-section__head {
        gap: 12px;
    }

    .nhanso-mo-badge {
        width: 50px;
        height: 50px;
        font-size: 21px;
    }

    .nhanso-mo-facts > div,
    .nhanso-mo-split__aside .nhanso-mo-facts > div {
        grid-template-columns: minmax(0, 108px) minmax(0, 1fr);
    }

    .nhanso-mo-lunation ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nhanso-mo-stats {
        gap: 10px;
    }

    .nhanso-mo-stats > div {
        padding: 12px;
    }

    .nhanso-mo-months {
        grid-template-columns: minmax(0, 1fr);
    }

    .nhanso-mo-pair {
        gap: 6px;
    }

    .nhanso-mo-pair__svg {
        width: 74px;
        height: 74px;
    }

    .nhanso-mo-pair__merged .nhanso-mo-pair__svg {
        width: 96px;
        height: 96px;
    }

    .nhanso-mo-pair__op {
        font-size: 20px;
    }

    .nhanso-mo-person {
        flex-direction: column;
        gap: 12px;
    }

    .nhanso-mo-phases li {
        padding: 16px 14px;
        gap: 12px;
    }

    .nhanso-mo-phases .nhanso-mo-disc {
        width: 52px;
        height: 52px;
    }

    .nhanso-mo-events__when b {
        font-size: 15.5px;
    }
}

@media (max-width: 379px) {
    .nhanso-mo-pair__svg {
        width: 62px;
        height: 62px;
    }

    .nhanso-mo-pair__merged .nhanso-mo-pair__svg {
        width: 80px;
        height: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nhanso-mo-page *,
    .nhanso-mo-page *::before,
    .nhanso-mo-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   The warmer voice (inc/nhanso-moon-voice.php): the line to share, how the
   phase loves, what it is good at, and the note to a pair.
   -------------------------------------------------------------------------- */
.nhanso-mo-quote {
    position: relative;
    margin: 22px 0 6px;
    padding: 22px 24px 18px 58px;
    color: #fff;
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(243, 207, 134, .2), transparent 60%),
        linear-gradient(160deg, var(--mo-night-2), var(--mo-night));
    border-radius: var(--mo-radius-sm);
}

.nhanso-mo-quote::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    left: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
    color: var(--mo-warm);
}

.nhanso-mo-quote blockquote {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    background: none;
    border: 0;
}

.nhanso-mo-quote figcaption {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--mo-pearl-2);
}

.nhanso-mo-traits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.nhanso-mo-traits > div {
    padding: 14px 16px;
    border-radius: 12px;
}

.nhanso-mo-traits .is-plus {
    background: var(--mo-good-soft);
}

.nhanso-mo-traits .is-minus {
    background: var(--mo-mid-soft);
}

.nhanso-mo-traits ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.nhanso-mo-traits li {
    margin: 0 0 4px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--mo-ink);
}

.nhanso-mo-note-card {
    margin: 18px 0 6px;
    padding: 18px 20px;
    background: var(--mo-blue-soft);
    border-left: 4px solid var(--mo-blue);
    border-radius: 0 var(--mo-radius-sm) var(--mo-radius-sm) 0;
}

.nhanso-mo-note-card__text {
    margin: 6px 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--mo-ink);
}

.nhanso-mo-note-card__idea {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--mo-text);
}

@media (max-width: 575px) {
    .nhanso-mo-traits {
        grid-template-columns: minmax(0, 1fr);
    }

    .nhanso-mo-quote {
        padding: 20px 16px 16px 44px;
    }

    .nhanso-mo-quote::before {
        left: 10px;
        font-size: 52px;
    }

    .nhanso-mo-quote blockquote {
        font-size: 17px;
    }
}

/* "Thêm vào lịch" (template-parts/nhanso-calendar.php) inside a Moon card. */
.nhanso-mo-page .nhanso-cal-box {
    margin-bottom: 14px;
    background: #f3f5fb;
    border-color: #e1e6f2;
    box-shadow: none;
}

.nhanso-mo-page .nhanso-cal-box__icon {
    color: #f6e7b8;
    background: linear-gradient(150deg, var(--mo-blue), var(--mo-night-2));
}

.nhanso-mo-page .nhanso-cal-box a.nhanso-cal-box__btn.is-primary {
    background: var(--mo-blue);
    border-color: var(--mo-blue);
}

.nhanso-mo-page .nhanso-cal-box a.nhanso-cal-box__btn.is-primary:hover {
    background: var(--mo-night-2);
}
