/* 农历专题页 nongli.html */
.content-h1--nongli {
    font-size: 1.38rem;
    margin-bottom: 0.35rem;
}

.nongli-page__intro {
    margin-bottom: 0.85rem;
}

.nongli-page__lead {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.58;
    color: var(--wnl-text-muted);
}

.nl-entry {
    padding-bottom: 0.5rem;
}

.nl-hero.nl-cal-hero {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.nl-cal-hero__shell {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    min-height: min(560px, 70vh);
    background: var(--wnl-theme-surface);
    border: 1px solid var(--wnl-hairline-border);
    border-radius: 12px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
}

.nl-cal-hero__detail {
    flex: 0.3 0 clamp(228px, 32%, 300px);
    background: #d2232a;
    color: #fff;
    padding: 2rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nl-cal-hero__day-step {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0.45rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
}

.nl-cal-hero__day-step-link {
    color: var(--wnl-on-gradient-fg);
    color: color-mix(in srgb, var(--wnl-on-gradient-fg) 95%, transparent);
    font-weight: 600;
    text-decoration: none;
}

.nl-cal-hero__day-step-link:hover {
    text-decoration: underline;
}

.nl-cal-hero__day-step-gap {
    opacity: 0.45;
    user-select: none;
}

.nl-cal-hero__full-date {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.35;
    opacity: 0.92;
}

.nl-cal-hero__big-day {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 10vw, 6.65rem);
    font-weight: 800;
    line-height: 1;
}

.nl-cal-hero__lun-line {
    margin: 0 0 0.45rem;
    font-family: KaiTi, STKaiti, "PingFang SC", "Songti SC", serif;
    font-size: 1.18rem;
    font-weight: 600;
}

.nl-cal-hero__gz-line {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    opacity: 0.88;
}

.nl-cal-hero__sol-meta {
    margin: 0.68rem 0 1rem;
    font-size: 0.74rem;
    line-height: 1.45;
    opacity: 0.74;
}

.nl-cal-hero__huangli {
    margin-top: auto;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: var(--wnl-col-inset-highlight);
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.5;
}

.nl-cal-hero__huangli-row {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.nl-cal-hero__huangli-row + .nl-cal-hero__huangli-row {
    margin-top: 0.45rem;
}

.nl-cal-hero__huangli-v {
    flex: 1;
    min-width: 0;
    color: color-mix(in srgb, var(--wnl-on-gradient-fg) 95%, transparent);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.nl-cal-hero__grid-panel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem clamp(1rem, 2vw, 1.85rem);
    display: flex;
    flex-direction: column;
}

.nl-cal-hero__grid-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.nl-cal-hero__month-title {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--wnl-theme-fg);
}

.nl-cal-hero__month-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.nl-cal-hero__btn {
    display: inline-block;
    padding: 0.32rem 0.78rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--wnl-theme-fg);
    background: var(--wnl-theme-surface);
    border: 1px solid var(--wnl-hairline-border);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nl-cal-hero__btn:hover {
    background: var(--wnl-table-th-bg);
}

.nl-cal-hero__btn--accent {
    border-color: var(--wnl-date-today);
    color: var(--wnl-date-today);
}

.nl-cal-hero__weeks {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0.45rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wnl-text-muted);
}

.nl-cal-hero__weeks span:first-child,
.nl-cal-hero__weeks span:last-child {
    color: var(--wnl-date-today);
}

.nl-cal-hero__cells {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: clamp(4px, 0.55vw, 6px);
    flex: 1;
    align-content: stretch;
}

.nl-cal-hero__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.85rem;
    padding: 0.2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    background: transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nl-cal-hero__cell:hover {
    background-color: var(--wnl-table-th-bg);
    border-color: var(--wnl-hairline-border);
}

.nl-cal-hero__cell:focus-visible {
    outline: 2px solid var(--wnl-theme-link);
    outline-offset: 1px;
}

.nl-cal-hero__sol-num {
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    font-weight: 600;
}

.nl-cal-hero__lun-sub {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    line-height: 1.22;
    text-align: center;
    word-break: break-all;
    color: var(--wnl-text-muted);
}

.nl-cal-hero__cell--pad .nl-cal-hero__sol-num {
    opacity: 0.5;
}

.nl-cal-hero__cell--fest .nl-cal-hero__lun-sub {
    color: var(--wnl-chip-holiday-fg);
}

.nl-cal-hero__cell--term .nl-cal-hero__lun-sub {
    color: var(--wnl-theme-link);
}

.nl-cal-hero__cell--pick {
    background-color: color-mix(in srgb, var(--wnl-date-today) 14%, transparent);
    border-color: color-mix(in srgb, var(--wnl-date-today) 55%, transparent);
}

.nl-cal-hero__cell--today {
    box-shadow: inset 0 0 0 2px var(--wnl-date-today);
}

html[data-theme="dark"] .nl-cal-hero__shell {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .nl-cal-hero__shell {
        flex-direction: column;
        border-radius: 10px;
        max-width: 100%;
        min-height: 0;
    }

    .nl-cal-hero__detail {
        flex: none;
        width: 100%;
        padding: 1.35rem 1rem;
    }

    .nl-cal-hero__big-day {
        font-size: 3.4rem;
    }

    .nl-cal-hero__cells {
        grid-auto-rows: auto;
    }

    .nl-cal-hero__cell {
        min-height: 3.05rem;
    }
}

.nl-section {
    margin-top: 1.45rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--wnl-hairline-border);
    border-radius: 10px;
    background: var(--wnl-theme-surface);
}

.nl-section--soft {
    background: var(--wnl-table-th-bg);
}

.nl-cal-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.91rem;
    line-height: 1.72;
    color: var(--wnl-theme-fg);
}

.nl-cal-list li + li {
    margin-top: 0.28rem;
}

.nl-fest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nl-fest-tags__item {
    padding: 0.28rem 0.62rem;
    font-size: 0.82rem;
    border-radius: 999px;
    border: 1px solid var(--wnl-rule-warm-pale);
    background: var(--wnl-nav-pill-off);
}

.nl-yj {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 620px) {
    .nl-yj {
        grid-template-columns: 1fr;
    }
}

.nl-yj__col {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.nl-yj__tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    background: #c41e1e;
}

.nl-yj__tag--ji {
    background: #2a2826;
}

html[data-theme="dark"] .nl-yj__tag--ji {
    background: #1a1917;
}

.nl-yj__body {
    font-size: 0.875rem;
    line-height: 1.72;
}

.nl-yj__col--yi .nl-yj__body {
    color: var(--wnl-yi-fg);
}

.nl-yj__col--ji .nl-yj__body {
    color: var(--wnl-ji-fg);
}

.nl-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.nl-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--wnl-hairline-border);
    color: var(--wnl-home-masonry-a);
    background: var(--wnl-nav-pill-off);
}

.nl-actions__btn:hover {
    border-color: var(--wnl-border-accent);
    text-decoration: underline;
    color: var(--wnl-home-masonry-a-hover);
}

.nl-actions__btn--primary {
    border-color: var(--wnl-nav-accent);
    background: linear-gradient(to bottom, var(--wnl-nav-pill-bot), var(--wnl-tone-peach));
}

.nl-category-desc {
    border-top: 1px solid var(--wnl-rule-warm-pale);
    padding-top: 1.35rem;
}

html[data-theme="dark"] .nl-category-desc {
    border-top-color: var(--wnl-hairline-border);
}

/* nlsylhsyl.html — 阴阳历区别与今日对照 */
.nlsyl-compare {
    margin-bottom: 1.5rem;
}

.nlsyl-compare__lede {
    margin: -0.35rem 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--wnl-text-muted);
}

.nlsyl-compare__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.nlsyl-compare__card {
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--wnl-hairline-border);
    background: var(--wnl-theme-surface);
}

.nlsyl-compare__card--solar {
    border-color: color-mix(in srgb, var(--wnl-theme-accent) 38%, var(--wnl-hairline-border));
}

.nlsyl-compare__card--lunar {
    border-color: color-mix(in srgb, #c41e3a 42%, var(--wnl-hairline-border));
}

.nlsyl-compare__card-title {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--wnl-text-muted);
}

.nlsyl-compare__date-big {
    margin: 0 0 0.45rem;
    font-size: clamp(1.15rem, 0.95rem + 1.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--wnl-entry-body-fg);
}

.nlsyl-compare__date-big--lun {
    font-family: KaiTi, STKaiti, "PingFang SC", "Songti SC", serif;
    font-weight: 700;
}

.nlsyl-compare__meta {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--wnl-text-muted);
}

.nlsyl-compare__jieqi {
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--wnl-entry-body-fg);
}

.nlsyl-compare__jieqi--muted {
    color: var(--wnl-text-muted);
}

.nlsyl-compare__diff {
    padding: 1rem 1.05rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--wnl-nav-pill-off) 88%, transparent);
    border: 1px solid var(--wnl-hairline-border);
}

.nlsyl-compare__diff-heading {
    margin: 0 0 0.65rem;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--wnl-theme-accent);
}

.nlsyl-compare__diff-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    line-height: 1.72;
    color: var(--wnl-entry-body-fg);
}

.nlsyl-compare__diff-list li + li {
    margin-top: 0.45rem;
}

.nlsyl-compare__more {
    margin: 1rem 0 0;
    font-size: 0.88rem;
}

.nlsyl-compare__morelink {
    font-weight: 600;
    color: var(--wnl-home-masonry-a);
    text-decoration: none;
}

.nlsyl-compare__morelink:hover {
    color: var(--wnl-home-masonry-a-hover);
    text-decoration: underline;
}

html[data-theme="dark"] .nlsyl-compare__diff {
    background: color-mix(in srgb, var(--wnl-theme-surface) 92%, var(--wnl-text-muted));
}

/* nlsylhsyl.html — 文末今日所在月公历月历表 */
.nlsyl-month-cal {
    margin-top: 1.5rem;
}

.nlsyl-month-cal__lede {
    margin-bottom: 0.9rem;
}

.nlsyl-month-cal .today-calendar-split__calendar {
    margin: 0;
}

