/* Phase 4 · Utsav Companion and private Family Bhakti.
 * Decorative CSS only, no extra image/fonts/API, no touch-scroll capture. */
:root{--bx-green:#173d30;--bx-ink:#294637;--bx-muted:#637362;--bx-gold:#b98a45;--bx-border:#dfd1b5;--bx-paper:#fffdf7;--bx-bg:#f5f1e8;color-scheme:light}
*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--bx-bg);color:var(--bx-ink);font:15px/1.75 system-ui,'Noto Sans Devanagari',sans-serif}
a{color:inherit}button,select,input,textarea{font:inherit}button{cursor:pointer}
button,a,input,select,textarea{touch-action:manipulation}
:focus-visible{outline:3px solid #bc8b4a;outline-offset:3px}
[hidden]{display:none!important}
.bxSkip{position:absolute;top:-100px;left:10px;z-index:1000;padding:10px 16px;border-radius:10px;background:white}
.bxSkip:focus{top:10px}
.bxHeader{background:#143b2e;border-bottom:1px solid #e4c4884f;color:#f9ead0}
.bxHeadInner{max-width:1110px;margin:auto;display:flex;align-items:center;gap:14px;padding:calc(10px + env(safe-area-inset-top,0px)) 17px 10px;min-height:76px}
.bxBack{display:grid;place-items:center;flex:none;width:45px;height:45px;border:1px solid #dfc58d88;border-radius:12px;text-decoration:none;font-size:27px}
.bxBrand{display:flex;align-items:center;gap:11px;min-width:0;margin-right:auto;text-decoration:none}
.bxBrand img{object-fit:cover;border-radius:10px;flex:none}.bxBrand span{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.bxBrand strong{font:650 18px Georgia,serif;white-space:nowrap}.bxBrand small{font-size:11px;color:#e3d5b5;white-space:nowrap}
.bxHeadInner nav{display:flex;align-items:center;gap:15px;font-size:13px}
.bxHeadInner nav a{text-decoration:none}.bxHeadInner nav a:hover{text-decoration:underline}
.bxHero{position:relative;isolation:isolate;overflow:hidden;text-align:center;background:radial-gradient(ellipse 75% 90% at 50% 25%,#34664e,#173e30 70%,#0d3027);color:#fff6e3;padding:52px 15px 83px}
.bxHeroFamily{background:radial-gradient(ellipse 78% 82% at 50% 25%,#396751,#193c31 72%,#102d25)}
.bxHalo{position:absolute;z-index:-1;inset:0;display:grid;place-items:center;pointer-events:none;color:#e4c38c10;font:350px Georgia,serif}
.bxHeroSymbol{display:grid;place-items:center;width:86px;height:86px;margin:0 auto 17px;font-size:45px;
 border:1px solid #e1c59188;border-radius:28px;background:#eccd8b17;box-shadow:0 0 0 8px #e5c68b0a}
.bxEyebrow{font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.14em;color:#f1d69e;margin:0 0 9px}
.bxHero h1{margin:0;font:600 clamp(31px,5vw,49px)/1.45 'Noto Serif Devanagari',Georgia,serif}
.bxHero>p:last-child{max-width:780px;margin:12px auto 0;font-size:15px;line-height:1.9;color:#e5e9dc}
.bxWrap{position:relative;z-index:1;max-width:1110px;margin:-37px auto 0;padding:0 17px 55px}
.bxAttention{background:linear-gradient(115deg,#fff9ed,#f2ead8);border:1px solid #ddc8a1;box-shadow:0 18px 33px -26px #0a2b1d8c;border-radius:20px;padding:21px 24px}
.bxAttention strong{font-size:17px;color:#294a38}.bxAttention p{margin:4px 0 12px;font-size:13px;color:#576b57}
.bxLinkRow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bxLinkRow a:not(.bxPrimary):not(.bxSecondaryLink),.bxLinkRow button{font-size:13px}
.bxLinkRow>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;border:1px solid #b8ae90;background:#fffdfa;border-radius:12px;text-decoration:none;font-weight:650}
.bxLinkRow>a:hover{background:#eee5d4}
.bxSection{margin-top:33px}
.bxHeading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:17px}
.bxHeading small{display:block;color:#a3814e;font-size:11px;font-weight:750;letter-spacing:.1em;margin-bottom:3px}
.bxHeading h2{margin:0;font:650 clamp(21px,4vw,27px)/1.55 'Noto Serif Devanagari',Georgia,serif}
.bxHeading>span{font:650 12px/1.5 system-ui,sans-serif;color:#7f795f;white-space:nowrap}
.bxFestivalGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.bxFestivalCard{display:flex;align-items:center;text-align:start;gap:12px;min-width:0;min-height:96px;padding:17px;border:1px solid #ded2b9;border-radius:18px;
 background:#fffdf8;color:#2e4e3a;box-shadow:0 10px 20px -18px #0b3322}
.bxFestivalCard:hover{border-color:#a9905c;background:#fcf6e8}
.bxFestivalCard[aria-pressed=true]{background:#28563e;border-color:#28563e;color:#fff6d9;box-shadow:0 12px 24px -16px #0c3925}
.bxFestivalSymbol{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:13px;background:#f1e7d0;font-size:27px}
.bxFestivalCard[aria-pressed=true] .bxFestivalSymbol{background:#ffffff24}
.bxFestivalCard strong{font:650 16px/1.5 'Noto Serif Devanagari',Georgia,serif;min-width:0;flex:1;overflow-wrap:anywhere}
.bxFestivalGo{flex:none;font:25px Georgia,serif;opacity:.7}
.bxGuideSection{margin-top:34px;scroll-margin-top:25px}
.bxMuted{font-size:13px;color:var(--bx-muted)}
.bxGuideTop{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px;border:1px solid #315d42;background:linear-gradient(110deg,#224d39,#123a2c);color:#fff8e5;border-radius:20px}
.bxGuideTop>div{flex:1;min-width:0}.bxGuideTop h3{font:650 24px/1.45 'Noto Serif Devanagari',Georgia,serif;margin:7px 0 5px}
.bxGuideTop p{font-size:13px;color:#e4e7d9;margin:0}
.bxLabel{display:inline-block;max-width:100%;padding:5px 9px;border-radius:999px;background:#e7cf9542;color:#ffeac0;font-size:11px}
.bxPrimary,.bxSecondaryLink,.bxSecondary,.bxComplete{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:9px 15px;text-align:center;
 border-radius:12px;text-decoration:none;font-size:13px;font-weight:750}
.bxPrimary{border:1px solid #c5a66d;background:linear-gradient(110deg,#f9e5b9,#dfbe7e);color:#254232}
.bxSecondary,.bxSecondaryLink{border:1px solid #c4c5ad;background:#fffdf7;color:#2b513b}
.bxComplete{border:1px solid #24503a;background:#24513b;color:white}
.bxComplete[aria-pressed=true]{background:#e6f0dc;color:#29553c;border-color:#86a984}
.bxSecondary:disabled{opacity:.35;cursor:not-allowed}
.bxGuideTop .bxPrimary{flex:none;max-width:240px}
.bxGuideDetails{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}
.bxGuideDetails section{padding:20px 23px;background:var(--bx-paper);border:1px solid var(--bx-border);border-radius:18px}
.bxGuideDetails h4{font-size:15px;margin:0 0 7px}.bxGuideDetails p{margin:0;font-size:14px;color:#536a56;white-space:pre-wrap}
.bxGuideProgress{margin:22px 0 12px}.bxProgressHead{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}
.bxProgressHead strong{font-size:15px}.bxProgressHead span{font-weight:750;color:#2b6445}
.bxGuideProgress progress{width:100%;height:13px;accent-color:#40845b;border:0;border-radius:14px;overflow:hidden}
.bxGuideProgress progress::-webkit-progress-bar{background:#e4dfd2}
.bxGuideProgress progress::-webkit-progress-value{background:linear-gradient(90deg,#2c784f,#9db974)}
.bxStep{padding:23px;background:var(--bx-paper);border:1px solid #d9c9ac;border-radius:20px}
.bxStep>p{margin:0 0 3px;font-weight:650;color:#a58149;font-size:13px}
.bxStep h3{margin:3px 0 14px;font:650 23px/1.55 'Noto Serif Devanagari',Georgia,serif}
.bxStepBody,#bxStepBody{font:16px/2 'Noto Serif Devanagari',Georgia,serif;white-space:pre-wrap;color:#355041}
.bxStepControls{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:21px;border-top:1px solid #e7dbc5;padding-top:18px}
.bxRelated{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:20px;padding:16px 0}
.bxRelated p{margin:0;flex:1;min-width:190px;font-size:13px;color:#60705d}
.bxNotice{margin-top:31px;padding:18px 20px;border-left:3px solid #c29c60;border-radius:8px;background:#eee9dc}
.bxNotice strong{font-size:15px}.bxNotice p{font-size:13px;margin:4px 0;color:#536658}
.bxNotice a{font-size:13px;color:#2e684d}
.bxFooter{text-align:center;background:#15382d;padding:26px 16px calc(34px + env(safe-area-inset-bottom,0px));color:#ead8b4;font-size:13px}
.bxFooter a{color:inherit}
.bxPrivate{border-color:#a6c0a3;background:linear-gradient(120deg,#ecf4e9,#faf5e7)}
.bfCreate{padding:21px;background:#fffdf8;border:1px solid #ddd0b9;border-radius:18px}
.bfCreate label,.bfNoteLabel{display:block;font-size:14px;font-weight:650;margin:0 0 8px}
.bfCreateRow{display:flex;gap:10px}.bfCreateRow input{flex:1;min-width:0;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid #c6c9b9;font-size:16px;background:white}
.bfCollections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bfCollection{min-width:0;background:#fffdf8;border:1px solid #dbcbae;border-radius:19px;padding:21px;box-shadow:0 10px 28px -21px #1537254f}
.bfCollectionTop{display:flex;align-items:start;gap:10px;flex-wrap:wrap;margin-bottom:14px}.bfCollectionTop h3{flex:1;min-width:125px;margin:0;font:650 21px/1.5 'Noto Serif Devanagari',Georgia,serif;overflow-wrap:anywhere}
.bfBadge{font-size:12px;white-space:nowrap;padding:3px 8px;background:#f3ebd6;color:#706148;border-radius:999px}
.bfRemove{font-size:11px;min-height:35px;padding:6px 10px;border:1px solid #d6bab4;border-radius:10px;background:#faf0ec;color:#8e4844}
.bfNote{display:block;width:100%;min-height:74px;margin-bottom:17px;padding:12px 13px;font-size:14px;resize:vertical;line-height:1.6;background:#f9f8f0;border:1px solid #c6c9b9;border-radius:12px}
.bfAttach{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.bfAttach label{grid-column:1/-1;font-size:13px;font-weight:650;color:#435744}
.bfPicker{width:100%;min-width:0;min-height:46px;padding:9px;border-radius:11px;border:1px solid #c6cab9;background:white;font-size:13px;color:#284a36}
.bfLinks{list-style:none;margin:19px 0 0;padding:0;display:grid;gap:8px}
.bfLinks li{display:flex;align-items:center;gap:10px;border-top:1px solid #eee5d5;padding:9px 0}
.bfLinks li>a{flex:1;min-width:0;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;font-size:13px;color:#2a6144}
.bfUnlink{padding:7px 10px;border:1px solid #d8cbb2;border-radius:10px;background:#f9f3e6;font-size:12px}
/* Android accessibility: small remove actions need a 44px tap target. */
.bfRemove,.bfUnlink{min-width:48px;min-height:48px;touch-action:manipulation}
.bfNoLinks{font-size:13px;color:#7a806f}
.bfEmpty{grid-column:1/-1;padding:35px 20px;text-align:center;background:#faf5e9;border:1px dashed #d4c5aa;border-radius:20px}
.bfEmptyIcon{font-size:38px;color:#af8849}.bfEmpty h3{margin:10px 0 4px;font:600 21px 'Noto Serif Devanagari',Georgia,serif}.bfEmpty p{font-size:13px;color:#6d7867}
.bfBackup{padding:24px;border:1px solid #d7d0b8;border-radius:20px;background:#ebe9dc}.bfBackup>p{font-size:13px;color:#596957;margin:0 0 16px}
.bfFile{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.bfFile:focus-visible+.bxSecondaryLink{outline:3px solid #b58d4a}
.bxDanger{min-height:45px;padding:9px 13px;background:#fff0e9;color:#953f39;border:1px solid #d5b2a7;border-radius:12px;font-weight:700}
.bxError{color:#9a3c36}
@media(max-width:810px){.bxFestivalGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.bxGuideTop{align-items:start;flex-direction:column}.bxGuideTop .bxPrimary{max-width:none}}
@media(max-width:700px){.bxHeadInner{gap:9px;padding-inline:11px}.bxHeadInner nav{display:none}.bxWrap{padding:0 12px 38px}
 .bxHero{padding:35px 14px 65px}.bxHeroSymbol{width:72px;height:72px;font-size:36px}
 .bxGuideDetails{grid-template-columns:1fr}.bxGuideTop{padding:19px}.bxFestivalCard{min-height:81px;padding:12px;gap:9px}
 .bxFestivalSymbol{height:39px;width:39px;font-size:23px}.bxFestivalCard strong{font-size:13px}
 .bfCollections{grid-template-columns:1fr}.bxAttention{padding:17px}.bxStep{padding:17px}
 .bxRelated p{min-width:100%;flex-basis:100%}.bxRelated>a{flex:1}.bfCreateRow{flex-direction:column}
 .bfCreateRow .bxPrimary{width:100%}.bfAttach{grid-template-columns:1fr}.bfAttach label{grid-column:auto}
}
@media(max-width:390px){.bxBrand strong{font-size:16px}.bxBrand small{font-size:10px}.bxBrand img{width:34px;height:34px}
 .bxBack{width:41px;height:41px}.bxFestivalCard{gap:6px}.bxFestivalSymbol{width:32px;height:34px;font-size:20px}
 .bxFestivalCard strong{font-size:11px}.bxFestivalGo{font-size:20px}
 .bxStepControls{display:grid;grid-template-columns:1fr 1fr}.bxStepControls .bxComplete{grid-column:1/-1;grid-row:1}
 .bfCollection{padding:16px}
}
@media(max-width:320px){.bxFestivalGrid{grid-template-columns:1fr}.bxFestivalCard{min-height:65px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.bxHeader,.bxFooter,.bxFestivalGrid,.bxStepControls,.bfCreate,.bfBackup,.bfRemove{display:none!important}}

.bxSourceReference{margin:12px 0}.bxSourceReference a{display:inline-flex;min-height:44px;align-items:center;text-decoration:underline;text-underline-offset:4px;color:#37694c;font-size:13px}.bxSourceReference a:focus-visible{outline:3px solid #ad8148}
