/* ============================================================
   The appointed times — /calendar and /calendar/day (Sanctuary redesign, stage 7).
   Dark like Watch: a sunrise-over-the-sea header, gold accents. Own "ac-" classes so the older
   style.css rules (cal-*) never touch it.
   ============================================================ */
body.page-calendar{background:#0E0B07}
.ac-page{--bg:#0E0B07;--panel:#17120C;--ink:#F2E8CF;--ink-2:#E4DACA;--muted:#A89A82;--soft:#BFAE8E;--line:rgba(242,232,207,.1);--line-2:rgba(242,232,207,.22);--gold:#D9B45A;--gold-2:#E9C978;
  --display:"Cormorant Garamond",Georgia,serif;--sans:"Manrope",system-ui,sans-serif;--serif:"Source Serif 4",Georgia,serif;
  background:var(--bg);color:var(--ink);font-family:var(--sans)}
.ac-page *,.ac-page *::before,.ac-page *::after{box-sizing:border-box}
.ac-page a{color:var(--gold);text-decoration:none}
.ac-page a:hover{color:#F0D58C}
.ac-page h1,.ac-page h2,.ac-page h3,.ac-page p,.ac-page figure,.ac-page blockquote{margin:0}
.ac-wrap{max-width:1320px;margin:0 auto;padding:0 40px}
.ac-i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ac-kick{font:800 12px/1.2 var(--sans);letter-spacing:.26em;text-transform:uppercase;color:var(--gold)}
.ac-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ac-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ac-btn{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:0 22px;border-radius:999px;font:800 15px/1 var(--sans);cursor:pointer}
.ac-page .ac-btn-gold{background:var(--gold);color:#0E0B07}
.ac-page .ac-btn-gold:hover{background:#E6C36A;color:#0E0B07}
.ac-page .ac-btn-light{background:var(--ink);color:#0E0B07}
.ac-page .ac-btn-light:hover{background:#fff;color:#0E0B07}
.ac-page .ac-btn-line{border:1px solid rgba(242,232,207,.4);background:rgba(14,11,7,.35);color:var(--ink);font-weight:700}
.ac-page .ac-btn-line:hover{border-color:var(--gold);color:var(--gold)}

/* ---------- header */
.ac-head{position:relative;overflow:hidden;padding:84px 0 60px}
.ac-head-bg{position:absolute;inset:0;background-size:cover;background-position:center 45%}
.ac-head::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(14,11,7,.1) 0%,rgba(14,11,7,.25) 50%,rgba(14,11,7,.7) 85%,var(--bg) 100%)}
.ac-head-in{position:relative;z-index:2;text-shadow:0 1px 3px rgba(0,0,0,.55),0 2px 24px rgba(0,0,0,.45);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:30px}
.ac-head-x{max-width:720px;display:flex;flex-direction:column;gap:20px}
.ac-head h1{font:600 88px/.95 var(--display);color:var(--ink);text-shadow:0 2px 30px rgba(0,0,0,.35)}
.ac-dek{max-width:680px;font:400 18px/1.6 var(--sans);color:rgba(242,232,207,.88)}
.ac-verse-line{font:italic 500 22px/1.3 var(--display);color:var(--gold-2)}
.ac-head-go{display:flex;flex-wrap:wrap;gap:10px}

/* ---------- next appointed time + the year at a glance */
.ac-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:28px;padding-top:10px;padding-bottom:50px}
.ac-next{display:flex;flex-direction:column;gap:14px;padding:30px;border-radius:24px;background:linear-gradient(160deg,#2A2112,#17120C);border:1px solid rgba(217,180,90,.4)}
.ac-count{display:flex;align-items:baseline;gap:14px}
.ac-count-n{font:700 96px/.85 var(--display);color:var(--gold)}
.ac-count-l{font:700 18px/1 var(--sans)}
.ac-next-name{font:600 34px/1.05 var(--display);color:var(--ink)}
.ac-next-when{font:400 15px/1.6 var(--sans);color:rgba(242,232,207,.8)}
.ac-next-go{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.ac-next-go .ac-btn{min-height:46px;padding:0 18px;font-size:14px}
.ac-year{display:flex;flex-direction:column;gap:22px;padding:30px;border-radius:24px;background:var(--panel);border:1px solid var(--line)}
.ac-year-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px}
.ac-year-h span{font:500 13px/1.3 var(--sans);color:var(--muted)}
.ac-line{position:relative;height:120px}
.ac-bar{position:absolute;left:0;right:0;top:56px;display:flex;gap:4px;height:8px}
.ac-bar span{display:block;height:100%}
.ac-bar span:first-child{border-radius:8px 0 0 8px}
.ac-bar span:last-child{border-radius:0 8px 8px 0}
.ac-mark{position:absolute;top:50px;width:4px;height:20px;margin-left:-2px;border-radius:3px}
.ac-mark.is-past{opacity:.45}
.ac-today{position:absolute;top:14px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px}
.ac-today b{padding:3px 8px;border-radius:6px;background:var(--ink);color:#0E0B07;font:800 11px/1.2 var(--sans);white-space:nowrap}
.ac-today i{display:block;width:2px;height:62px;background:var(--ink)}
.ac-seasons{position:absolute;left:0;right:0;top:84px;display:flex;gap:4px;font:700 12px/1.2 var(--sans);color:var(--soft)}
.ac-seasons span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-seasons span:last-child{overflow:visible;direction:rtl;text-align:right}   /* the short winter span: its label sits flush right */
.ac-key{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;padding:0;list-style:none;font:500 13px/1.3 var(--sans);color:var(--soft)}
.ac-key li{display:inline-flex;align-items:center;gap:8px}
.ac-key i{width:10px;height:10px;border-radius:3px}

/* ---------- filters */
.ac-filters{position:sticky;top:0;z-index:5;background:rgba(14,11,7,.94);border-top:1px solid var(--line);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.ac-filters-in{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:14px;padding-bottom:14px}
.ac-filter,.ac-switch{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:var(--ink);font:700 14px/1 var(--sans);cursor:pointer}
.ac-filter i{width:9px;height:9px;border-radius:3px}
.ac-filter span{opacity:.6;font-weight:600}
.ac-filter:hover,.ac-switch:hover{border-color:var(--gold)}
.ac-filter.is-on{background:var(--ink);border-color:var(--ink);color:#0E0B07}
.ac-switch{margin-left:auto;gap:10px}
.ac-switch i{position:relative;width:36px;height:20px;border-radius:20px;background:rgba(242,232,207,.25);transition:background .2s}
.ac-switch i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--ink);transition:left .2s}
.ac-switch.is-on i{background:var(--gold)}
.ac-switch.is-on i::after{left:18px}

/* ---------- the months */
.ac-months{display:flex;flex-direction:column;gap:50px;padding-top:50px;padding-bottom:90px}
.ac-month{display:grid;grid-template-columns:170px minmax(0,1fr);gap:32px}
.ac-month[hidden],.ac-card[hidden]{display:none}
.ac-month-h{align-self:start;display:flex;flex-direction:column;gap:4px;padding-top:14px;border-top:2px solid var(--gold)}
.ac-month-h h2{font:600 42px/1 var(--display);color:var(--ink)}
.ac-month-h span{font:700 13px/1.3 var(--sans);color:var(--muted)}
.ac-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ac-card{display:grid;grid-template-columns:78px minmax(0,1fr);gap:18px;padding:22px;border-radius:20px;background:var(--panel);border:1px solid var(--line);transition:border-color .25s ease,transform .25s ease}
.ac-card:hover{border-color:rgba(217,180,90,.6);transform:translateY(-3px)}
.ac-card.is-past{opacity:.55}
.ac-card.is-past:hover{opacity:.85}
.ac-card.is-now{border-color:var(--gold)}
.ac-date{align-self:start;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 4px;border-radius:14px;background:var(--tint);color:#0E0B07;text-align:center}
.ac-date span{font:800 12px/1.2 var(--sans);letter-spacing:.12em}
.ac-date b{font:700 34px/1 var(--display);white-space:nowrap}
.ac-date small{font:700 11px/1.2 var(--sans)}
.ac-card-x{display:flex;flex-direction:column;gap:8px;min-width:0}
.ac-tags{display:flex;flex-wrap:wrap;gap:6px}
.ac-tag{padding:4px 8px;border-radius:6px;background:var(--tint,var(--gold));color:#0E0B07;font:800 11px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase}
.ac-kept,.ac-nowtag{padding:3px 8px;border-radius:6px;border:1px solid var(--line-2);color:var(--soft);font:800 11px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase}
.ac-nowtag{border-color:var(--gold);color:var(--gold)}
.ac-card h3{font:600 28px/1.05 var(--display)}
.ac-page .ac-card h3 a{color:var(--ink)}
.ac-page .ac-card h3 a:hover{color:var(--gold)}
.ac-sub{font:700 14px/1.4 var(--sans);color:var(--gold-2)}
.ac-desc{font:400 14px/1.6 var(--sans);color:rgba(242,232,207,.75)}
.ac-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:4px;font:700 13px/1.3 var(--sans)}
.ac-page .ac-links .ac-add{color:var(--ink)}
.ac-page .ac-links .ac-add:hover{color:var(--gold)}
.ac-empty{padding:60px 30px;border-radius:22px;border:1px dashed var(--line-2);text-align:center;color:var(--soft)}
.ac-empty-h{margin-bottom:10px !important;font:600 32px/1.1 var(--display);color:var(--ink)}

/* ---------- sundown reminders */
.ac-remind{padding-bottom:100px;scroll-margin-top:90px}
.ac-remind-in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;padding:44px;border-radius:28px;background:var(--panel);border:1px solid rgba(217,180,90,.35)}
.ac-remind h2{font:600 44px/1 var(--display);color:var(--ink)}
.ac-remind-in>div:first-child p{margin-top:10px;font:400 16px/1.6 var(--sans);color:rgba(242,232,207,.8)}
.ac-remind-form{flex:0 1 460px}
.ac-remind form{display:flex;gap:8px;padding:6px;border-radius:999px;background:rgba(242,232,207,.96)}
.ac-remind input[type=email]{flex:1;min-width:0;height:50px;padding:0 16px;border:0;outline:none;background:transparent;color:#0E0B07;font:500 16px var(--sans)}
.ac-remind input[type=email]::placeholder{color:#7C6F5B}
.ac-remind button{height:50px;padding:0 22px;border:0;border-radius:999px;background:var(--gold);color:#0E0B07;font:800 15px/1 var(--sans);cursor:pointer;white-space:nowrap}
.ac-remind button:hover{background:#E6C36A}
.ac-remind button:disabled{opacity:.6}
.ac-remind-status{margin-top:10px !important;padding:12px 16px;border-radius:14px;font:700 14px/1.4 var(--sans)}
.ac-remind-status.is-ok{background:rgba(217,180,90,.15);border:1px solid rgba(217,180,90,.6);color:var(--gold-2)}
.ac-remind-status.is-err{background:rgba(226,85,59,.12);border:1px solid rgba(226,85,59,.5);color:#F2B2A4}
.ac-foot{margin-top:22px !important;font:500 13px/1.4 var(--sans);color:var(--muted)}

/* ---------- one appointed time */
.ac-head--day{padding:56px 0 56px}
.ac-day-head{flex-direction:column;align-items:flex-start;gap:16px;max-width:900px}
.ac-back a{font:700 14px/1 var(--sans);color:var(--ink-2)}
.ac-head--day h1{font-size:76px}
.ac-day-sub{font:700 18px/1.4 var(--sans);color:var(--gold-2)}
.ac-day-when{font:500 15px/1.5 var(--sans);color:var(--ink-2)}
.ac-day-when b{color:var(--ink)}
.ac-day{display:flex;flex-direction:column;gap:56px;padding-top:20px;padding-bottom:100px}
.ac-sec-h{margin-bottom:22px !important;padding-bottom:14px;border-bottom:1px solid var(--line-2);font:600 40px/1.1 var(--display);color:var(--ink)}
.ac-verses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ac-verse{display:flex;flex-direction:column;gap:12px;padding:26px;border-radius:20px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--tint)}
.ac-verse figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font:800 13px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.ac-badge{padding:3px 7px;border-radius:6px;border:1px solid var(--line-2);color:var(--soft);font-size:10px}
.ac-verse blockquote{font:italic 400 21px/1.5 var(--serif);color:rgba(242,232,207,.9)}
.ac-verse a{display:inline-flex;align-items:center;gap:8px;font:700 13px/1.3 var(--sans)}
.ac-verse a .ac-i{width:14px;height:14px}
.ac-taughts{display:flex;flex-direction:column;gap:12px}
.ac-page .ac-taught{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:center;padding:14px;border-radius:18px;background:var(--panel);border:1px solid var(--line);color:var(--ink)}
.ac-page .ac-taught:hover{border-color:rgba(217,180,90,.6);color:var(--ink)}
.ac-taught-pic{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.ac-taught-pic img{width:100%;height:100%;object-fit:cover;display:block}
.ac-taught-pic span{position:absolute;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;background:var(--gold);color:#0E0B07;font:800 12px/1 var(--sans)}
.ac-taught-pic span .ac-i{width:10px;height:10px}
.ac-taught-x{display:flex;flex-direction:column;gap:8px;min-width:0}
.ac-taught-x b{font:600 23px/1.15 var(--display)}
.ac-page .ac-taught:hover .ac-taught-x b{color:var(--gold)}
.ac-taught-x small{font:italic 400 15px/1.5 var(--serif);color:rgba(242,232,207,.75)}
.ac-more{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font:700 14px/1.3 var(--sans)}
.ac-none{font:400 16px/1.6 var(--sans);color:var(--soft)}
.ac-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ac-page .ac-step{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border-radius:16px;background:var(--panel);border:1px solid var(--line);color:var(--ink)}
.ac-page .ac-step:hover{border-color:rgba(217,180,90,.6);color:var(--ink)}
.ac-step span{font:800 11px/1.2 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.ac-step b{font:600 22px/1.15 var(--display)}
.ac-step--next{text-align:right}

@media (max-width:1000px){
  .ac-top,.ac-month{grid-template-columns:1fr}
  .ac-month{gap:16px}
  .ac-verses{grid-template-columns:1fr}
}
@media (max-width:700px){
  .ac-wrap{padding:0 16px}
  .ac-head{padding:44px 0 36px}
  .ac-head h1{font-size:52px}
  .ac-head--day h1{font-size:44px}
  .ac-next,.ac-year{padding:22px}
  .ac-count-n{font-size:72px}
  .ac-seasons span{font-size:11px}
  .ac-filters-in{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-top:10px;padding-bottom:10px}
  .ac-filters-in>*{flex:none}
  .ac-switch{margin-left:0}
  .ac-cards{grid-template-columns:1fr}
  .ac-card{grid-template-columns:66px minmax(0,1fr);gap:14px;padding:18px}
  .ac-date b{font-size:28px}
  .ac-card h3{font-size:24px}
  .ac-remind-in{padding:26px}
  .ac-remind h2{font-size:34px}
  .ac-remind-form{flex-basis:100%}
  .ac-remind form{flex-direction:column;border-radius:18px}
  .ac-remind button{width:100%}
  .ac-sec-h{font-size:32px}
  .ac-page .ac-taught{grid-template-columns:1fr;gap:12px}
  .ac-steps{grid-template-columns:1fr}
  .ac-step--next{text-align:left}
}

/* teaching thumbnails: dimmer at rest, full brightness on hover (as on the library pages) */
.ac-taught-pic img{filter:brightness(.74) saturate(.8);transition:filter .35s ease}
.ac-page .ac-taught:hover .ac-taught-pic img,.ac-page .ac-taught:focus-visible .ac-taught-pic img{filter:brightness(1.06) saturate(1.05)}

/* Warm Parchment Light Mode */
html[data-theme="light"] body.page-calendar{background:#FBF7EE}
html[data-theme="light"] .ac-page{--bg:#FBF7EE;--panel:#FFFFFF;--ink:#1C1510;--ink-2:#3B3226;--muted:#6D5F4B;--soft:#4B3E2E;--line:#E3D8C3;--line-2:#D2C2A0;--gold:#9A6A12;--gold-2:#7E550B}
html[data-theme="light"] .ac-head{background:#15100A}
html[data-theme="light"] .ac-head::before{background:linear-gradient(180deg,rgba(14,11,7,.45) 0%,rgba(14,11,7,.62) 60%,rgba(14,11,7,.88) 100%)}
html[data-theme="light"] .ac-head h1{color:#F2E8CF}
html[data-theme="light"] .ac-head .ac-kick,html[data-theme="light"] .ac-head .ac-verse-line{color:#EACB7C}
html[data-theme="light"] .ac-head .ac-btn-line{border-color:rgba(242,232,207,.45);color:#F2E8CF}
html[data-theme="light"] .ac-next{background:linear-gradient(160deg,#FFFDF8,#F3ECDD);border-color:#D9BF82;box-shadow:0 12px 28px -24px rgba(42,33,23,.25)}
html[data-theme="light"] .ac-next-when{color:#3B3226}
html[data-theme="light"] .ac-year,html[data-theme="light"] .ac-card{box-shadow:0 10px 24px -22px rgba(42,33,23,.22)}
html[data-theme="light"] .ac-today b{background:#1C1510;color:#FBF7EE}
html[data-theme="light"] .ac-filters{background:rgba(251,247,238,.95);border-color:#E3D8C3}
html[data-theme="light"] .ac-filter.is-on{background:#1C1510;border-color:#1C1510;color:#FBF7EE}
html[data-theme="light"] .ac-switch i{background:#D2C2A0}
html[data-theme="light"] .ac-switch i::after{background:#FFFFFF}
html[data-theme="light"] .ac-page .ac-btn-gold{background:#9A6A12;color:#FFFDF8}
html[data-theme="light"] .ac-page .ac-btn-gold:hover{background:#7E550B;color:#FFFDF8}
html[data-theme="light"] .ac-page .ac-btn-light{background:#1C1510;color:#FBF7EE}
html[data-theme="light"] .ac-page .ac-btn-line{border-color:#D2C2A0;background:#FFFFFF;color:#1C1510}
html[data-theme="light"] .ac-desc,html[data-theme="light"] .ac-remind-in>div:first-child p{color:#3B3226}
html[data-theme="light"] .ac-remind form{background:#FBF7EE;border:1px solid #D2C2A0}
html[data-theme="light"] .ac-remind button{background:#9A6A12;color:#FFFDF8}
html[data-theme="light"] .ac-remind button:hover{background:#7E550B}
html[data-theme="light"] .ac-taught-pic img{filter:none}
