/* Lunar almanac: the same editorial grid and palette as the name atlas. */
.lunar-hero{background:var(--paper)}
.lunar-hero-grid{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr)}
.lunar-copy{min-width:0;padding:48px clamp(26px,4vw,60px) 44px 0}
.lunar-copy h1{font-size:clamp(40px,5.1vw,75px);line-height:1.03;margin:22px 0 14px}
.lunar-copy h1 em{color:var(--orange);font-weight:400}
.lunar-lead{max-width:580px;color:#526157;font-size:16px;line-height:1.55;margin:0 0 20px}
.lunar-calendar{max-width:680px;border:1px solid #d7d8cb;background:#fffdf8;padding:17px 19px 15px}
.lunar-calendar-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.lunar-calendar h2{font-size:24px;line-height:1.1;letter-spacing:-.035em;color:var(--green);margin:0}
.lunar-today{border:0;border-bottom:1px solid var(--orange);background:transparent;color:var(--orange);padding:2px 0;font-size:12px;font-weight:700}
.lunar-calendar-nav{display:grid;grid-template-columns:36px minmax(0,1fr) 100px 36px;gap:6px;align-items:center;margin-bottom:12px}
.lunar-arrow,.lunar-calendar-nav select{height:38px;border:1px solid #d3dccf;background:#f6f7ee;color:var(--green)}
.lunar-arrow{font-size:22px;line-height:1}
.lunar-arrow:hover,.lunar-calendar-nav select:hover{background:#e7ebdb}
.lunar-arrow:disabled{opacity:.4;cursor:default}
.lunar-calendar-nav select{min-width:0;padding:0 9px;font-size:13px;font-weight:700;cursor:pointer}
.lunar-weekdays,.lunar-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.lunar-weekdays span{padding:4px 0 7px;text-align:center;color:#718074;text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:750}
.lunar-date{min-width:0;min-height:49px;border:1px solid #ebece3;background:#fbfbf6;color:var(--ink);padding:5px 7px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:1px;transition:background .2s,border-color .2s}
.lunar-date:hover{background:#e9eddf;border-color:#a9bdaa}
.lunar-date.is-today:not(.is-selected){border-color:#bd9e79}
.lunar-date.is-selected{background:var(--green);color:#fff;border-color:var(--green)}
.lunar-date-number{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1}
.lunar-date-moon{align-self:flex-end;color:#688771;font-size:11px;font-weight:700;white-space:nowrap}
.lunar-date.is-selected .lunar-date-moon{color:#dce8b9}
.lunar-reference{margin:10px 0 0;color:#68786c;font-size:10px;line-height:1.45}
.lunar-art{position:relative;overflow:hidden;min-height:660px;background:radial-gradient(circle at 46% 45%,#37644f 0%,#214c3c 47%,#14392f 100%);color:var(--lime);display:grid;place-items:center}
.lunar-art:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,#eff3d347 1px,transparent 1px);background-size:48px 48px;opacity:.18}
.lunar-art-top,.lunar-art-bottom{position:absolute;z-index:5;left:29px;right:29px;display:flex;justify-content:space-between;gap:15px;color:#dae8bc;font-size:10px;font-weight:750;letter-spacing:.16em}
.lunar-art-top{top:25px}.lunar-art-bottom{bottom:23px;justify-content:flex-end}
.lunar-art-ring{position:absolute;left:50%;top:49%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%)}
.lunar-art-ring-outer{width:104%;border:1px solid #dce9c348;animation:lunar-orbit-reverse 64s linear infinite}
.lunar-art-ring-words{z-index:3;width:79%;border:1px solid #dce9c38a;animation:lunar-orbit 48s linear infinite}
.lunar-art-ring-inner{z-index:1;width:42%;border:2px dotted #dce9c354;animation:lunar-orbit 30s linear infinite}
.lunar-art-ring-outer::after,.lunar-art-ring-inner::after{content:"";position:absolute;display:block;width:8px;height:8px;border-radius:50%;background:var(--lime)}
.lunar-art-ring-outer::after{left:13%;top:15%}
.lunar-art-ring-inner::after{right:2%;top:35%;width:6px;height:6px}
.lunar-orbit-word{position:absolute;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;border:1px solid #dbe8bd8a;background:#204a3ae9;color:#f0f4db;font-family:Georgia,serif;font-size:13px;font-style:italic;transform:translate(-50%,-50%)}
.lunar-orbit-word>span{animation:lunar-word-counter 48s linear infinite}
.lunar-orbit-word-1{left:8%;top:22%}.lunar-orbit-word-2{left:94%;top:32%}.lunar-orbit-word-3{left:43%;top:99%}
.lunar-illustration{position:absolute;z-index:2;left:51%;top:49%;width:min(82%,570px);transform:translate(-50%,-50%);filter:drop-shadow(var(--hero-shadow))}
.lunar-illustration img{display:block;width:100%;height:auto}
@keyframes lunar-orbit{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes lunar-orbit-reverse{to{transform:translate(-50%,-50%) rotate(-360deg)}}
@keyframes lunar-word-counter{to{transform:rotate(-360deg)}}
.lunar-details{padding:37px 0 64px;background:#fffdf8;border-top:1px solid var(--line);scroll-margin-top:calc(var(--header-height,88px) + 12px)}
.lunar-details-grid{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:clamp(28px,5vw,76px);align-items:start}
.lunar-reading,.lunar-activities{min-width:0}
.lunar-details .section-number{margin:0 0 5px}
.lunar-details h2{font-size:clamp(34px,3.4vw,48px);line-height:1.1;margin:0 0 16px;color:var(--green)}
.lunar-current{background:#e8eedc;border-left:4px solid var(--orange);padding:14px 17px;color:var(--green);display:flex;flex-direction:column;gap:5px}
.lunar-current-day{font-family:Georgia,serif;font-weight:400;font-size:27px;line-height:1.12}
.lunar-current-meta{font-size:12px;line-height:1.55;color:#526957}
.lunar-next-change{font-size:12px;color:#59745d}
.lunar-day-switches{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px}
.lunar-day-switch-label{font-size:11px;color:#53695a;margin-right:4px}
.lunar-day-switch{border:1px solid #bfcfbb;border-radius:30px;background:#fffdf8;color:var(--green);padding:5px 8px;font-size:11px}
.lunar-day-switch[aria-pressed=true]{border-color:var(--green);background:var(--green);color:#fff}
.lunar-description{padding-top:18px;color:#36463a;font-size:15px;line-height:1.7}
.lunar-description h3{margin:0 0 14px;font-family:Georgia,serif;font-size:clamp(29px,3vw,40px);font-weight:400;line-height:1.12;letter-spacing:-.035em;color:var(--green)}
.lunar-description p{margin:0 0 14px}.lunar-description p:last-child{margin-bottom:0}
.lunar-activities{padding:19px 20px;background:#f3f2e9;border:1px solid #d8ddcf}
.lunar-activities h2{font-size:clamp(31px,3vw,42px);margin-bottom:6px}
.lunar-activities-intro{margin:0 0 14px;color:#647468;font-size:13px;line-height:1.45}
.lunar-ratings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 9px}
.lunar-rating{min-width:0;min-height:42px;padding:7px 8px;background:#fffdf8;border:1px solid #e1e2d9;display:flex;justify-content:flex-start;align-items:center;gap:7px;text-align:left}
.lunar-rating-copy{min-width:0;line-height:1.3;text-align:left}
.lunar-rating-name{color:#35483c;font-size:12px;font-weight:700}
.lunar-rating-value{color:#526257;font-size:12px;font-weight:500}
.lunar-rating-marker{display:inline-grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;flex:none;width:17px;height:17px}
.lunar-rating-dot{display:block;width:17px;height:17px;border:2px solid var(--dot-line);border-radius:50%;background:var(--dot-fill)}
.lunar-rating-star,.lunar-rating-cross{display:block;width:100%;height:100%;overflow:visible;fill:var(--dot-fill);stroke:var(--dot-line);stroke-width:2.2;stroke-linejoin:round}
.lunar-rating-star{width:18px;height:18px}
.lunar-rating-star polygon{stroke-width:2px;vector-effect:non-scaling-stroke}
.lunar-rating-cross{fill:none;stroke-linecap:round;stroke-linejoin:round}
.lunar-cross-outline{stroke:var(--dot-line);stroke-width:7px;vector-effect:non-scaling-stroke}
.lunar-cross-core{stroke:var(--dot-fill);stroke-width:3px;vector-effect:non-scaling-stroke}
.lunar-score-0{--dot-fill:#e1e2dc;--dot-line:#565965}
.lunar-score-1{--dot-fill:#e8c8bf;--dot-line:#9b5142}
.lunar-score-2{--dot-fill:#e1dbe4;--dot-line:#736079}
.lunar-score-3{--dot-fill:#c9ddcc;--dot-line:#416b4d}
.lunar-score-4{--dot-fill:#f7e8b8;--dot-line:#b17b14}
.lunar-date:focus-visible,.lunar-calendar button:focus-visible,.lunar-calendar select:focus-visible,.lunar-day-switch:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
@media(max-width:1050px){
 .lunar-copy{padding-right:25px}
 .lunar-art{min-height:630px}
 .lunar-ratings{grid-template-columns:1fr}
 .lunar-rating{min-height:35px}
}
@media(max-width:780px){
 .lunar-hero-grid,.lunar-details-grid{grid-template-columns:1fr}
 .lunar-copy{padding:37px 0 27px}
 .lunar-copy h1{font-size:clamp(49px,8vw,71px)}
 .lunar-art{min-height:370px}
 .lunar-illustration{width:min(54%,340px)}
 .lunar-art-ring-outer{width:min(99%,610px)}
 .lunar-art-ring-words{width:min(72%,460px)}
 .lunar-art-ring-inner{width:min(36%,230px)}
 .lunar-details{padding:28px 0 43px}
 .lunar-details-grid{gap:25px}
 .lunar-activities{padding:17px}
 .lunar-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
 .lunar-copy{padding:30px 0 22px}
 .lunar-copy h1{font-size:clamp(47px,11vw,59px);margin:17px 0 12px}
 .lunar-lead{font-size:14px;margin-bottom:17px}
 .lunar-calendar{padding:13px 10px}
 .lunar-calendar h2{font-size:21px}
 .lunar-calendar-nav{grid-template-columns:33px minmax(0,1fr) 73px 33px;gap:4px}
 .lunar-calendar-nav select{padding:0 4px;font-size:12px}
 .lunar-arrow{font-size:18px}
 .lunar-weekdays,.lunar-calendar-grid{gap:3px}
 .lunar-date{min-height:43px;padding:4px}
 .lunar-date-number{font-size:17px}
 .lunar-date-moon{font-size:10px}
 .lunar-art{min-height:300px}
 .lunar-illustration{width:min(66%,285px)}
 .lunar-art-top,.lunar-art-bottom{left:18px;right:18px;font-size:8px}
 .lunar-art-top{top:17px}.lunar-art-bottom{bottom:13px}
 .lunar-orbit-word{width:50px;height:50px;font-size:10px}
 .lunar-details h2{font-size:34px}
 .lunar-current{padding:12px}
 .lunar-current-day{font-size:24px}
 .lunar-description{font-size:14px}
 .lunar-activities{padding:12px}
 .lunar-ratings{gap:5px}
 .lunar-rating{min-height:40px;padding:6px}
 .lunar-rating-name{font-size:11px}
 .lunar-rating-value{font-size:11px}
 .lunar-rating-marker{width:15px;height:15px}
 .lunar-rating-dot{width:16px;height:16px}
 .lunar-rating-star{width:17px;height:17px}
}
@media(max-width:360px){
 .lunar-ratings{grid-template-columns:1fr}
 .lunar-illustration{width:68%}
}
@media(prefers-reduced-motion:reduce){
 .lunar-art-ring,.lunar-orbit-word>span{animation:none}
}

/* Keep lunar markers consistent with the A and Cupid, behind the illustration. */
.lunar-art-ring-outer{z-index:1}
.lunar-art-ring{pointer-events:none}
.lunar-art-ring-outer::after,.lunar-art-ring-inner::after{
 width:var(--hero-orbit-dot-size);height:var(--hero-orbit-dot-size);
 box-shadow:none;filter:none;transform:translate(-50%,-50%);
}
.lunar-art-ring-outer::after{left:14.644661%;top:14.644661%;right:auto}
.lunar-art-ring-inner::after{left:0;top:50%;right:auto}

/* Month/year controls can wrap when their text is enlarged. */
.lunar-calendar-nav{display:flex;flex-wrap:wrap}
.lunar-calendar-nav select{height:auto;min-height:38px;padding-block:7px;max-width:100%}
#lunar-month{flex:1 1 9ch}
#lunar-year{flex:1 0 5.5ch}
.lunar-arrow{height:auto;min-height:38px;min-width:36px}
.lunar-calendar-top{flex-wrap:wrap}

.lunar-calendar-dates{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:3px;margin:-3px}
.lunar-weekdays,.lunar-calendar-grid{grid-template-columns:repeat(7,minmax(2em,1fr))}
.lunar-date-moon{white-space:normal}

.lunar-description,.lunar-rating-copy,.lunar-current{overflow-wrap:anywhere}

/* Lunar subscription entry. */
.lunar-mail{padding:38px 0 52px;border-top:1px solid #d5dacb}
.lunar-mail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,350px);align-items:center;gap:40px}
.lunar-mail h2{font:normal clamp(29px,3vw,42px)/1.1 Georgia,serif;color:#1c483b;margin:0 0 14px}
.lunar-mail p{max-width:660px;margin:0;color:#53635a;line-height:1.7}
.lunar-mail-link{display:inline-block;padding:17px 24px;background:#1c483b;border:1px solid #1c483b;border-radius:4px;color:#fffdf8;text-decoration:none;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.lunar-mail-link:focus-visible{outline:3px solid #da5a3b;outline-offset:5px}
@media(min-width:375px){.lunar-mail-link{white-space:nowrap}}
@media(max-width:780px){
 .lunar-mail-grid{grid-template-columns:1fr;gap:24px}
 .lunar-mail-link{justify-self:start}
 .lunar-mail{padding:36px 0 48px}
}
@media(min-width:600px) and (max-width:780px){
 .lunar-mail{padding:26px 0 32px}
}
