:root{color-scheme:light;--ink:#302e26;--muted:#696454;--paper:#f8f5ed;--red:#8b302c;--gold:#9a742e;--line:#d5cebe;--white:#fffdf8;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:var(--ink);background:var(--paper);line-height:1.8}*{box-sizing:border-box}body{margin:0}a{color:var(--red);text-underline-offset:.25em}a:hover{text-decoration-thickness:2px}button,input,textarea{font:inherit}button,.button{min-height:48px;padding:.65rem 1.2rem;background:var(--red);border:1px solid var(--red);color:white;cursor:pointer;text-decoration:none;border-radius:3px;display:inline-flex;gap:1.2rem;align-items:center;justify-content:center;font-weight:600}button:hover,.button:hover{background:#6f2522}button:disabled{cursor:default;opacity:.55}.secondary{background:transparent;color:var(--red)}.secondary:hover{background:#eee6d8;color:var(--ink)}:focus-visible{outline:3px solid #1a6284;outline-offset:4px}a,input,textarea{touch-action:manipulation}input,textarea{background:var(--white);border:1px solid #817968;border-radius:3px;width:100%;min-height:48px;padding:.6rem .8rem;font-size:1rem;color:var(--ink)}textarea{resize:vertical}label{display:block;font-weight:600;margin-top:1rem;margin-bottom:.35rem}input:user-invalid,textarea:user-invalid{border-color:#ab241f}form h3{margin-top:0}.skip{position:fixed;top:-100px;left:1rem;z-index:10;background:white;padding:1rem}.skip:focus{top:0}.masthead{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:1.4rem 2rem;border-bottom:1px solid var(--line);gap:1.4rem}.brand{display:flex;align-items:center;gap:.85rem;color:var(--ink);font-family:serif;font-size:1.25rem;font-weight:700;text-decoration:none}.brand small{font:400 .75rem system-ui;display:block;color:var(--muted);margin-top:.2rem}.seal{background:var(--red);color:#fff4d9;line-height:1.15;text-align:center;padding:.5rem;border:3px double var(--paper);font-size:1rem}.masthead nav{display:flex;gap:1.2rem;flex-wrap:wrap}.masthead nav a{font-size:.9rem;min-height:48px;display:flex;align-items:center}main{max-width:1140px;margin:auto;padding:0 2rem}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:4rem;align-items:center;padding:4rem 0 3.5rem;border-bottom:1px solid var(--line)}.eyebrow{font-size:.9rem;color:var(--red);font-weight:600;margin:0 0 1rem}h1,h2,h3,.serif{font-family:"Noto Serif TC","Songti TC",serif;line-height:1.5}h1{font-size:3.5rem;line-height:1.25;font-weight:700;margin:0 0 1.8rem;letter-spacing:.03em}h1 span{font-size:1.5rem;line-height:1.8;letter-spacing:0;display:block;margin-top:1rem}h2{font-size:1.9rem;margin:.1rem 0 .9rem}h3{font-size:1.2rem;margin:.6rem 0}.intro{max-width:35rem;font-size:1.06rem;margin-bottom:1.6rem}.muted{color:var(--muted);font-size:.88rem}.fortune-art{position:relative;max-width:340px;width:100%;margin:auto;text-align:center;color:var(--red)}.arch{border:1px solid var(--gold);border-radius:160px 160px 0 0;padding:2rem 1rem 1.5rem;display:flex;gap:1rem;justify-content:space-around;align-items:center;background:#f0e7d6;outline:1px solid #bfa77a;outline-offset:-8px}.arch strong{font-family:serif;font-size:3.4rem;line-height:1.35}.arch span{writing-mode:vertical-rl;letter-spacing:.4em;color:#706044;font-family:serif;font-size:1rem}.fortune-art>p{font-size:.8rem;letter-spacing:.25em}.section{padding:3rem 0;border-bottom:1px solid var(--line);scroll-margin-top:1rem}.section-title{display:flex;align-items:baseline;gap:1rem;margin-bottom:1rem}.section-title>span{color:var(--gold);font-family:serif;white-space:nowrap}.section-title h2{margin:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;margin-top:1.4rem}.note{border-left:3px solid #b99c63;padding:1.2rem 1.5rem;background:#eee8db}.note h3{margin-top:0}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:1rem}form button{margin-top:.8rem}.scores{display:grid;grid-template-columns:repeat(5,1fr);border-block:1px solid var(--line);margin:1.4rem 0}.score{padding:1.3rem .6rem;text-align:center;border-right:1px solid var(--line)}.score:last-child{border:0}.score h3{margin:0;font-size:1rem}.score strong{display:block;font-size:2.5rem;font-family:serif;color:var(--red);line-height:1.6}.score small{color:var(--muted)}svg{width:100%;height:auto;display:block}#trend{background:#eee8db;border:1px solid var(--line)}table{border-collapse:collapse;width:100%;font-size:.9rem}caption{text-align:left;margin-top:1rem}th,td{text-align:left;padding:.4rem .65rem;border-bottom:1px solid var(--line)}.prescriptions{display:grid;grid-template-columns:repeat(3,1fr);gap:1.8rem}.prescriptions article{border-top:2px solid var(--gold);padding-top:.8rem}.prescriptions article h3{font-size:1.1rem}.prescriptions article p{font-size:.94rem}.ai-section{background:#eee8db;padding-inline:1.6rem;margin-inline:-1.6rem}.ai-section textarea{background:var(--white)}#ai-status{font-weight:600}#ai-output h3{color:var(--red)}#ai-output article{border-top:1px solid var(--line);padding:.6rem 0}.calendar-tools{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-top:1.5rem}.calendar-tools h3{font-size:1.1rem}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line);margin-top:1rem}.weekday{text-align:center;color:var(--muted);font-size:.9rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:.4rem}.day{min-width:0;min-height:100px;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:.1rem;padding:.45rem .6rem;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-weight:400;font-size:.8rem;text-align:left;line-height:1.5}.day strong{font-size:1rem}.day small{font-size:.7rem}.day:hover{background:#ece1ca}.day[aria-current=date]{box-shadow:inset 0 0 0 2px var(--red)}.day[aria-pressed=true]{background:#8b302c;color:white}.empty{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.lot{border:1px solid var(--gold);background:var(--white);text-align:center;padding:1.5rem;min-height:210px}.lot h3{font-size:1.5rem;color:var(--red)}.lot .verse{font-size:1.4rem;font-family:serif}.lot-shake{transform-origin:bottom}@media(prefers-reduced-motion:no-preference){.lot-shake{animation:shake .5s ease-in-out 2}@keyframes shake{25%{transform:rotate(-2deg)}75%{transform:rotate(2deg)}}}details{border-bottom:1px solid var(--line);padding:.4rem 0}summary{cursor:pointer;font-weight:600;min-height:48px;padding:.5rem .2rem}details p{max-width:65ch;padding-inline:.2rem}.temple-banner{padding:2.4rem;background:#e9dfca;margin:2rem 0 0;border:1px solid #c0a778}.guide-hero{padding:3.5rem 0 2.5rem;border-bottom:1px solid var(--line)}.guide-hero h1{font-size:2.7rem}.guide-hero .lead{font-size:1.35rem;font-family:serif;color:var(--red)}.guide-index{display:flex;flex-wrap:wrap;gap:.4rem 1.3rem;margin-top:1rem}.guide-index a{min-height:48px;display:inline-flex;align-items:center}.prose{max-width:780px}.rhythm{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.rhythm article{border-top:2px solid var(--gold);padding-top:1rem}.steps{padding-left:1.5rem}.steps li{padding:.4rem 0 .7rem}.region{scroll-margin-top:1rem;padding:1.2rem 0}.region h3{border-bottom:1px solid var(--line);padding-bottom:.5rem;color:var(--red)}.temple-row{display:grid;grid-template-columns:1.1fr .7fr 1.7fr auto;gap:1.1rem;align-items:center;border-bottom:1px solid var(--line);padding:1rem 0}.temple-row h4{font:600 1.05rem serif;margin:0}.temple-row p{margin:0;font-size:.94rem}.temple-row>.temple-map{min-height:48px;display:flex;align-items:center;white-space:nowrap}.reminder-row{display:flex;gap:1rem;align-items:end}.reminder-row>div{flex:1}footer{max-width:1140px;margin:auto;padding:2.5rem 2rem 3rem;text-align:center;font-size:.9rem;color:var(--muted)}footer p{margin:.4rem 0}footer>a{font-family:serif;font-weight:bold}a[download]{display:inline-block;min-height:48px;padding:.5rem 0}[hidden]{display:none!important}@media(max-width:700px){.masthead{padding:1rem 1.2rem;display:block}.brand{font-size:1.2rem}.masthead nav{gap:1.2rem;margin-top:.6rem}.masthead nav a{font-size:.85rem}main{padding:0 1.2rem}.hero{grid-template-columns:1fr;gap:1.5rem;padding:2rem 0}.hero h1{font-size:2.8rem}.hero h1 span{font-size:1.2rem}.intro{font-size:1rem}.fortune-art{max-width:230px}.arch{padding:1.4rem 1rem}.arch strong{font-size:2.4rem}.section{padding:2rem 0}h2{font-size:1.55rem}.section-title{gap:.65rem}.split,.rhythm{grid-template-columns:1fr;gap:1.5rem}.field-pair{grid-template-columns:1fr;gap:0}.scores{grid-template-columns:repeat(3,1fr)}.score{padding:.7rem .4rem;border-bottom:1px solid var(--line)}.score strong{font-size:2.2rem}.prescriptions{grid-template-columns:1fr;gap:.8rem}.ai-section{padding-inline:1rem;margin-inline:-.6rem}.calendar-tools button{padding:.5rem .65rem;font-size:.85rem}.day{min-height:92px;padding:.3rem .2rem;font-size:.7rem}.day small{font-size:.65rem}.day strong{font-size:.9rem}.weekday{font-size:.8rem}.calendar-tools h3{font-size:1rem}.guide-hero{padding:2rem 0}.guide-hero h1{font-size:2.2rem}.guide-hero .lead{font-size:1.2rem}.temple-row{grid-template-columns:1fr auto;gap:.25rem 1rem;padding:1rem 0}.temple-row p:nth-of-type(2){grid-column:1/-1;grid-row:3}.temple-row>.temple-map{grid-column:2;grid-row:1/3}.reminder-row{display:block}.temple-banner{padding:1.3rem}.guide-index{gap:0 1rem}.note{padding:1rem}.lot{padding:1.25rem}}

/* 476c: nearby worship, shared lot grades and talent team. */
.action-links{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-block:1rem}.action-links a{min-height:48px;display:inline-flex;align-items:center}.nearby-temple{background:#eee8db;padding-inline:1.5rem;margin-inline:-1.5rem;border-bottom:2px solid var(--gold)}.lot-level{display:inline-block;white-space:nowrap;color:var(--red);font-weight:700}.lot>.lot-level{border:1px solid var(--gold);padding:.15rem .8rem;margin-top:.6rem}.lot .verse{white-space:pre-line}.lot-reminder{font-weight:700}.lot ol{text-align:left;padding-inline-start:1.4rem}.lot .action-links{justify-content:center}.quiet-visit{font-size:.85rem}.quiet-visit a{color:var(--muted)}.day .lot-level{font-size:.72rem}.day[aria-pressed=true] .lot-level{color:inherit}.day{min-height:125px}.masthead nav{flex-wrap:wrap}.talent-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.employee-fields{min-width:0;padding:1rem;margin:1.2rem 0;border:1px solid var(--line)}.employee-fields legend{font-weight:700;padding-inline:.5rem}.talent-card{border-top:2px solid var(--gold);padding:1rem 0}.talent-card h3{margin-top:0}.talent-card h4{margin:1rem 0 .25rem}.talent-card ul{padding-inline-start:1.3rem}.talent-score{font-size:1.25rem;color:var(--red);font-weight:700}.talent-disclaimer{line-height:1.8}.table-scroll{max-width:100%;overflow-x:auto;margin-bottom:1rem}.table-scroll table{min-width:640px}.table-scroll th,.table-scroll td{vertical-align:top;overflow-wrap:anywhere}#team{margin-top:2rem}#team-title{scroll-margin-top:1rem}.split>*{min-width:0}input[type=date]{min-width:0;max-width:100%}input:user-invalid{border-color:#8b302c}@media(max-width:700px){.talent-layout{grid-template-columns:1fr}.nearby-temple{padding-inline:1rem;margin-inline:-.6rem}.action-links>.button{width:100%;justify-content:center}.day{min-height:125px}.day .lot-level{font-size:.65rem}.masthead nav{gap:.1rem 1rem}}

.nearby-temple .heading-phrase{display:inline-block}.lot>.eyebrow{display:block}.table-scroll table{table-layout:fixed}.table-scroll th:nth-child(1){width:22%}.table-scroll th:nth-child(2){width:14%}.table-scroll th:nth-child(3){width:14%}.table-scroll th:nth-child(4){width:50%}.table-help{display:none}@media(max-width:700px){.table-help{display:block}}

/* Per-temple references use native disclosure and can wrap at narrow widths. */
.temple-row>*{min-width:0}
.temple-sources{grid-column:1/-1;border:0;padding:0}
.temple-sources summary{font-size:.9rem;color:var(--red)}
.temple-sources ul{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin:.25rem 0 0;padding-left:1.25rem}
.temple-sources li{min-width:0;max-width:100%}
.temple-sources a{display:inline-flex;align-items:center;min-height:48px;overflow-wrap:anywhere;font-size:.9rem}

/* 476e: complete site name, with natural reflow at larger text sizes. */
.brand-kicker{display:block;font:400 .75rem/1.5 system-ui;color:var(--muted)}
:is(.hero,.guide-hero) .site-title{font-size:clamp(2rem,1rem + 5vw,3.5rem);line-height:1.3;letter-spacing:.02em}
:is(.hero,.guide-hero) .site-title span{display:block;margin:0;font-size:inherit;line-height:inherit;letter-spacing:inherit;text-wrap:balance}
:is(.hero,.guide-hero) .site-title .title-kicker{font-size:clamp(1.125rem,.9rem + 1vw,1.5rem);line-height:1.6;margin-block-end:.4rem;letter-spacing:.04em;color:var(--red)}
.guide-topic{font-size:1.5rem;color:var(--red);margin-block:0 .75rem}

/* 476f: native private birth-hour selector and disclosure. */
select{font:inherit;font-size:max(1rem,1em);color:var(--ink);background:var(--white);border:1px solid #817968;border-radius:3px;width:100%;min-width:0;min-height:48px;padding:.6rem .8rem;touch-action:manipulation}
.reading-note{margin:.5rem 0 0}.reading-actions{margin-block:.8rem}.reading-actions>button{margin-top:0}
@media(pointer:coarse){select{min-height:52px}}

/* 476g: visible navigation, member entry, honest privacy and routine calendar. */
.masthead{align-items:flex-start;flex-wrap:wrap;gap:1rem}
.masthead>.brand{flex-shrink:0;min-height:48px}
.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem 1rem;flex:1;min-width:0}
.masthead nav{display:flex;flex-wrap:wrap;gap:.1rem .5rem;margin:0}
.masthead nav a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:.3rem .4rem}
.masthead a[aria-current=page]{font-weight:800;text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:2px}
.member-area{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;min-width:0}
.line-login-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:72px;padding:0 15px;border-radius:11px;background:#06c755;color:#122c1b;font-size:.9rem;font-weight:900;text-decoration:none;white-space:nowrap}
.line-login-button:hover{background:#05af4b}.member-chip{display:flex;align-items:center;gap:9px;padding:4px 6px;border:1px solid #dfe9e3;border-radius:13px;background:#fff}
.member-chip span{font-size:.85rem}.member-chip button{min-height:48px;min-width:48px;margin:0;border:0;border-radius:8px;padding:0 9px;background:#f1f4f2;color:#38503f;font-size:.85rem;cursor:pointer}
#member-benefit{font-size:.8rem;color:var(--muted)}#member-status:empty{display:none}
.privacy-notice{padding:1.5rem;border:1px solid var(--gold);border-inline-start:4px solid var(--gold);margin-block:1.5rem;background:#eee8db}
.privacy-notice h2{margin-top:0;font-size:1.5rem}.privacy-notice p{font-size:.92rem;max-width:90ch}
.daily-tasks{border-inline-start:3px solid var(--gold);padding-inline-start:1rem}
.day .work-label{overflow-wrap:anywhere}.day .visit-note{color:var(--muted);font-weight:400;font-size:.7rem;line-height:1.4}
.day[aria-pressed=true] .visit-note{color:inherit}#calendar-detail .calendar-line{display:block;margin-block:.4rem}
@media(max-width:1000px){.header-actions{flex-basis:100%;justify-content:flex-start}.masthead nav{flex-basis:100%}}
@media(max-width:700px){.header-actions{margin-top:.7rem;gap:.6rem}.masthead nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:.2rem}.masthead nav a{font-size:.8rem;padding-inline:.1rem}.member-area{width:100%}.privacy-notice{padding:1rem}.day{min-height:145px}.day .visit-note{font-size:.65rem}}
@media(forced-colors:active){.masthead a[aria-current=page]{outline:2px solid LinkText;outline-offset:-2px}}

/* Keep the skip link hidden until keyboard focus, including capture/scroll contexts. */
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;padding:0}
