/* All selectors are scoped to the shortcode root, so a theme and other tools are unaffected. */
.wptp-almanac__summary #tim{display:block;flex:0 0 100%;line-height:0}.wptp-almanac__divider{display:block;width:100%;height:1px;margin:3px 0;background:#d9c7a7}.wptp-almanac__shichen-item{display:inline-block}.wptp-almanac__shichen-item.is-current{color:#a50808;font-weight:700;animation:wptp-almanac-pulse 1.5s step-end infinite}@keyframes wptp-almanac-pulse{50%{opacity:.25}}
.wptp-almanac{--ink:#29343a;--muted:#6c756f;--paper:#fffdf7;--cream:#f8f1e3;--line:#e8dcc6;--red:#a52f28;--gold:#b98735;max-width:1120px;margin:32px auto;padding:clamp(16px,4vw,42px);box-sizing:border-box;color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Microsoft YaHei",sans-serif;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 40px #402b160c}
.wptp-almanac *,.wptp-almanac *::before,.wptp-almanac *::after{box-sizing:border-box}.wptp-almanac button,.wptp-almanac select{font:inherit}.wptp-almanac__hero{padding:2px 2px 25px;border-bottom:1px solid var(--line)}.wptp-almanac__eyebrow{margin:0;color:var(--gold);font-size:13px;letter-spacing:.16em}.wptp-almanac h2{margin:2px 0 4px;font-family:ui-serif,"Songti SC",serif;font-size:clamp(32px,7vw,50px);line-height:1.15;color:var(--red)}.wptp-almanac__hero p:last-child{margin:0;color:var(--muted)}
.wptp-almanac__calendar-wrap{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.95fr);gap:22px;margin-top:26px}.wptp-almanac__calendar,.wptp-almanac__detail{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.wptp-almanac__controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 16px;padding:14px 16px;background:var(--cream);color:#5a4630}.wptp-almanac__controls label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.wptp-almanac select{appearance:auto;min-height:20px;padding:0 20px 0 2px;font-size:13px;border:1px solid #cdbb9c;border-radius:7px;background:#fff;color:var(--ink);cursor:pointer}.wptp-almanac__controls strong{font-size:17px;color:var(--red);white-space:nowrap;margin-left:auto;padding-left:18px}.wptp-almanac__weekdays,.wptp-almanac__days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.wptp-almanac__weekdays{padding:9px 0;background:#fff9ee;text-align:center;font-weight:700}.wptp-almanac__weekdays span:first-child,.wptp-almanac__weekdays span:last-child{color:var(--red)}.wptp-almanac__day{min-height:70px;padding:7px 2px;border:0;border-top:1px solid #f0e8db;border-right:1px solid #f0e8db;background:#fff;cursor:pointer;color:inherit;transition:background .15s}.wptp-almanac__day:hover,.wptp-almanac__day:focus-visible,.wptp-almanac__day.is-selected{position:relative;z-index:1;background:#fff2d1;outline:2px solid var(--gold);outline-offset:-2px}.wptp-almanac__day span{display:block;font-size:19px;font-weight:700;line-height:1.15}.wptp-almanac__day small{display:block;min-height:14px;margin-top:5px;color:#746c61;font-size:11px;line-height:1.2}.wptp-almanac__summary{display:flex;flex-wrap:wrap;justify-content:center;gap:3px 12px;padding:10px 12px;text-align:center;background:#fff9ee;color:#5d5140;font-size:14px}.wptp-almanac__year-info{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 12px;background:#f5eee2;color:#534332;text-align:center}.wptp-almanac__year-info a{color:inherit}.wptp-almanac__year-dot{color:var(--gold)}.wptp-almanac__info-trigger{padding:0;border:0;background:none;color:#7a392a;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.wptp-almanac__info-trigger:hover{color:var(--red)}
.wptp-almanac__detail{padding:20px;font-size:15px}.wptp-almanac__detail #sg2{min-height:0;margin:-20px -20px 12px}.wptp-almanac__detail #sg2 table{width:100%!important;height:auto!important;border-collapse:separate!important;border-spacing:0!important;background:none!important}.wptp-almanac__detail #sg2 th{padding:9px 20px;background:#f7efe1;color:#714137;font-size:16px}.wptp-almanac__detail #sg2 td{padding:10px 20px 12px;background:#fff!important}.wptp-almanac__detail #sg2 .wptp-almanac__date{display:inline-block;letter-spacing:3px;font-size:18px}.wptp-almanac__detail #sg2 .wptp-almanac__date-day{font-size:18px}.wptp-almanac__detail #sg2 a{color:#334e78}.wptp-almanac__detail #rcrltd{margin-top:12px;padding-top:11px;border-top:1px solid var(--line);color:#624a2c}.wptp-almanac__location{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;margin-top:10px;color:#5e5141;font-size:14px}.wptp-almanac__location select{flex:0 1 auto;width:auto;min-width:84px;min-height:20px;padding:0 26px 0 4px;font-size:13px}.wptp-almanac__night{display:block;text-align:center;min-height:0;margin-top:12px;padding:6px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;color:#5f4c33;font-size:14px}.wptp-almanac__night #sg{display:block}.wptp-almanac__night #rcrl2{display:block;margin-top:4px}.wptp-almanac__night #sg5{display:none}.wptp-almanac__clock{margin:12px 0 0;text-align:center;color:#9f4c33;font-size:14px}.wptp-almanac__hint{margin:12px 0 0;color:var(--muted);font-size:13px}.wptp-almanac__terms{margin-top:18px;padding-top:25px;border-top:1px solid var(--line)}.wptp-almanac h3{margin:0 0 16px;color:var(--red);font-family:ui-serif,"Songti SC",serif;font-size:25px}.wptp-almanac__shichen{margin-top:24px;padding:14px 16px;background:#fff9ee;border-radius:12px}.wptp-almanac__shichen h3{margin:0 0 8px;font-size:16px}.wptp-almanac__shichen-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:4px 12px;margin:0;font-size:13px;color:#5d5140}.wptp-almanac__shichen-list span{white-space:nowrap}.wptp-almanac__terms dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0}.wptp-almanac__terms dl>div{padding:10px 12px;background:#fff9ee;border-radius:8px}.wptp-almanac__terms dt{display:inline;font-weight:700;color:#7c2d27}.wptp-almanac__terms dd{display:inline;margin:0;color:#645d55}
.wptp-almanac__tooltip{position:fixed;z-index:99999;display:none;max-width:min(390px,calc(100vw - 24px));max-height:min(70vh,520px);overflow:auto;padding:14px 16px;border:1px solid #c9aa70;border-radius:10px;background:#fffdf7;box-shadow:0 10px 30px #261b0f33;color:#493a2c;font-size:14px;line-height:1.65}.wptp-almanac__tooltip.is-visible{display:block}
@media(max-width:760px){.wptp-almanac{margin:14px auto;padding:16px;border-radius:14px}.wptp-almanac__calendar-wrap{grid-template-columns:1fr;gap:16px}.wptp-almanac__controls{justify-content:flex-start;gap:8px 12px}.wptp-almanac__controls strong{width:100%;margin-left:0;padding:4px 0 0;text-align:center}.wptp-almanac__day{min-height:57px}.wptp-almanac__day span{font-size:16px}.wptp-almanac__day small{font-size:10px}.wptp-almanac__detail{padding:15px}.wptp-almanac__detail #sg2{margin:-15px -15px 10px}.wptp-almanac__detail #sg2 th{padding:8px 15px}.wptp-almanac__detail #sg2 td{padding:9px 15px}.wptp-almanac__terms dl{grid-template-columns:1fr}}
.wptp-almanac__detail{text-align:center}.wptp-almanac__location{justify-content:center}
/* 右上角“今天”详情块美化：去掉主题强加的黑色边框，改用柔和细分隔线 */
.wptp-almanac__detail #sg2 table,.wptp-almanac__detail #sg2 th,.wptp-almanac__detail #sg2 td,.wptp-almanac__detail #sg2 .tableborder1,.wptp-almanac__detail #sg2 .tablebody1,.wptp-almanac__detail #sg2 .tablebody2{border:0!important;box-shadow:none!important}
.wptp-almanac__detail #sg2 th{border-bottom:1px solid var(--line)!important}
.wptp-almanac__detail #sg2 tr:last-child>td{padding:0px 4px}
.wptp-almanac__detail #sg2 tr:last-child>td table{width:auto!important;margin:0 auto}
.wptp-almanac__detail #sg2 tr:last-child>td table td{padding:2px 6px;vertical-align:middle}
.wptp-almanac__detail #sg2 tr:last-child>td table td:first-child{white-space:nowrap;text-align:right;color:#800080;font-weight:600}
.wptp-almanac__detail #sg2 tr:last-child>td table td:last-child{text-align:left;white-space:normal}
.wptp-almanac__star-hint{display:block;padding:0;border:0;background:none;margin:8px 0 0;color:#EE0808;font-weight:600;font-size:15px;letter-spacing:1px;cursor:pointer}.wptp-almanac__star-hint:hover{color:var(--red)}
