/* Parsskin stage22: scoped visual styles; no changes to global template. */
.pso22-root{direction:rtl;max-width:1160px;margin:0 auto;padding:0 10px 32px;color:#302342;line-height:1.95}
.pso22-root *{box-sizing:border-box}
.pso22-root .psx-hero{border-radius:23px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,43%);gap:22px;align-items:center;background:linear-gradient(125deg,#211340,#793d73);color:#fff;padding:27px 28px;box-shadow:0 16px 36px #2e184323}
.pso22-root .psx-hero h1{color:#ffe0a5!important;font-size:clamp(1.5rem,3vw,2.3rem);margin:10px 0 12px;line-height:1.5}
.pso22-root .psx-hero p{color:#fff3fa!important;line-height:2.1}
.pso22-root .psx-hero img{max-width:100%;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-radius:16px;border:2px solid #f2c984;box-shadow:0 9px 25px #170a2c90}
.pso22-root .psx-kicker{font-size:.88rem;font-weight:700;color:#a94d81}
.pso22-root .psx-hero .psx-kicker{color:#f6d59b}
.pso22-root .psx-hero-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.pso22-root .psx-btn,.pso22-root .pso22-event-actions button,.pso22-root button.psx-btn{display:inline-block;padding:9px 17px;color:white!important;background:linear-gradient(110deg,#ab347a,#572879);border:0;border-radius:13px;font-weight:700;text-decoration:none;cursor:pointer;text-align:center}
.pso22-root .psx-ghost{background:transparent!important;border:1px solid #f6dba1!important}
.pso22-root .psx-note{border-right:4px solid #bc7c99;background:#faf2fc;border-radius:12px;margin:18px 0;padding:11px 18px;color:#55365b}
.pso22-root .pso22-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.pso22-root .pso22-stats>div{padding:13px;background:#fff9f7;border:1px solid #efd5e4;border-radius:14px;text-align:center;box-shadow:0 3px 14px #3a1b3f0d}
.pso22-root .pso22-stats strong{display:block;color:#87346f;font-size:1.65rem;line-height:1.35}
.pso22-root .pso22-stats small{font-size:.84rem;color:#735773}
.pso22-root .psx-panel{background:#fffdfc;border:1px solid #ecd9e5;border-radius:20px;padding:22px;margin:22px 0;box-shadow:0 9px 28px #431b510e}
.pso22-root .psx-panel h2{font-size:clamp(1.24rem,2.2vw,1.7rem);color:#4c225d!important;margin:4px 0 15px;line-height:1.7}
.pso22-root .psx-panel h3{color:#622b63!important;line-height:1.7}
.pso22-root .psx-panel p{margin:0 0 12px}
.pso22-root .pso22-near{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}
.pso22-root .pso22-near article{padding:14px;border:1px solid #eddae5;border-radius:13px;background:linear-gradient(145deg,#fdf2f8,#fff6ec)}
.pso22-root .pso22-near span,.pso22-root .pso22-near strong,.pso22-root .pso22-near small{display:block}
.pso22-root .pso22-near strong{color:#913568;font-size:1.22rem}
.pso22-root .pso22-near small{color:#776274}
.pso22-root .pso22-toolbar,.pso22-root .pso22-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin:18px 0}
.pso22-root .pso22-toolbar{grid-template-columns:1fr 1.2fr auto}
.pso22-root label{display:block;font-size:.95rem;font-weight:600;color:#513556}
.pso22-root label input:not([type=checkbox]):not([type=file]),.pso22-root label select,.pso22-root label textarea{display:block;max-width:100%;width:100%;border:1px solid #d7b9cc;border-radius:10px;padding:9px 11px;font:inherit;color:#392547;background:#fff;text-align:right}
.pso22-root input:focus,.pso22-root select:focus,.pso22-root textarea:focus,.pso22-root button:focus-visible{outline:3px solid #e9aa6d;outline-offset:2px}
.pso22-root button:not(.psx-btn){border:1px solid #d7b9cc;border-radius:10px;padding:9px 13px;background:#fff8fa;color:#63215d;font-weight:600;cursor:pointer}
.pso22-root button:hover{filter:brightness(.96)}
.pso22-root .pso22-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.pso22-root .pso22-event{padding:18px;border:1px solid #e4c9dc;border-radius:16px;background:linear-gradient(155deg,#fffbf6,#fff5fb);box-shadow:0 4px 12px #3516380b}
.pso22-root .pso22-event[hidden],.pso22-root .pso22-personal[hidden]{display:none!important}
.pso22-root .pso22-event h3{font-size:1.15rem;margin:8px 0}
.pso22-root .pso22-event-top,.pso22-root .pso22-event-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pso22-root .pso22-tag{font-size:.8rem;font-weight:700;color:#822969;background:#f1e0ef;border-radius:20px;padding:1px 10px}
.pso22-root .pso22-event-top time{color:#7a326a;font-weight:700}
.pso22-root .pso22-subtitle{color:#a14c87;font-weight:700}
.pso22-root details{background:#fff;border:1px solid #f1dce8;border-radius:10px;padding:9px 12px;margin:11px 0}
.pso22-root details summary{cursor:pointer;color:#7d376e;font-weight:700}
.pso22-root details a{color:#a64b77;text-decoration:underline}
.pso22-root .pso22-event-actions span{font-size:.83rem;color:#7c5a75}
.pso22-root .pso22-yearbar{display:flex;gap:20px;align-items:center;justify-content:center;margin:18px 0}
.pso22-root .pso22-yearbar strong{font-size:1.45rem;color:#74306d}
.pso22-root button:disabled{opacity:.35;cursor:not-allowed}
.pso22-root .pso22-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pso22-root .pso22-month{padding:13px;border-radius:14px;border:1px solid #eed9e6;background:#fffafb}
.pso22-root .pso22-month h3{margin:0 0 9px;text-align:center;font-size:1.04rem}
.pso22-root .pso22-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.pso22-root .pso22-month-days>span,.pso22-root .pso22-month-days>button{display:flex;justify-content:center;align-items:center;padding:3px 0!important;min-height:30px;font-size:.82rem;border:0!important;border-radius:6px!important;background:#fff!important;color:#55465a!important;font-weight:400!important}
.pso22-root .pso22-month-days>.pso22-mark{background:#f1d7ee!important;color:#802f67!important;font-weight:800!important;cursor:pointer}
.pso22-root .pso22-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
.pso22-root .pso22-fields>label:first-child{grid-column:span 2}
.pso22-root .pso22-full{grid-column:1 / -1}
.pso22-root .pso22-buttons{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.pso22-root .pso22-import{background:#fff8fa;border:1px solid #dbc2cf;border-radius:10px;padding:9px 12px;cursor:pointer}
.pso22-root .pso22-import input{max-width:180px;font-size:.75rem;display:block}
.pso22-root .pso22-personal{margin:15px 0}
.pso22-root .pso22-personal-row{padding:12px 16px;display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #ecd8e4;border-radius:12px;margin:7px 0;background:#fff9f9}
.pso22-root .pso22-personal-row small{display:block;color:#826b7c}
.pso22-root .pso22-personal-row div:last-child{display:flex;gap:7px;flex-wrap:wrap}
.pso22-root .pso22-consent{display:flex;gap:9px;align-items:flex-start;font-weight:500}
.pso22-root .pso22-danger{margin-top:9px;color:#9e2d4b!important}
.pso22-root .pso22-studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:20px;align-items:start}
.pso22-root .pso22-controls>label{margin:0 0 13px}
.pso22-root .pso22-controls .pso22-check{display:flex;align-items:center;gap:9px}
.pso22-root .pso22-preview{position:sticky;top:15px;max-width:100%;padding:12px;border-radius:15px;background:linear-gradient(130deg,#ead5e5,#fdf1e3);border:1px solid #dec2d6}
.pso22-root .pso22-preview canvas{display:block;max-width:100%;width:100%;height:auto;box-shadow:0 10px 23px #28102a2e;border-radius:8px}
.pso22-root .pso22-guide h3{margin-top:24px;border-bottom:1px solid #f1e2eb;padding-bottom:6px}
.pso22-root .pso22-guide p{line-height:2.2;text-align:justify}
.pso22-root .pso22-guide a{color:#9b367b;text-decoration:underline;text-underline-offset:2px}
.pso22-root .pso22-guide details p{text-align:right}
@media(max-width:850px){.pso22-root .pso22-months{grid-template-columns:repeat(2,minmax(0,1fr))}.pso22-root .pso22-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.pso22-root .pso22-fields>label:first-child{grid-column:span 2}}
@media(max-width:650px){.pso22-root{padding:0 5px 18px}.pso22-root .psx-hero{grid-template-columns:1fr;padding:16px;gap:14px}.pso22-root .psx-hero img{max-height:240px}.pso22-root .psx-panel{padding:15px;border-radius:16px;margin:17px 0}.pso22-root .pso22-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pso22-root .pso22-cards{grid-template-columns:1fr}.pso22-root .pso22-toolbar{grid-template-columns:1fr}.pso22-root .pso22-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pso22-root .pso22-fields>label:first-child{grid-column:1 / -1}.pso22-root .pso22-months{grid-template-columns:1fr}.pso22-root .pso22-studio{grid-template-columns:1fr}.pso22-root .pso22-preview{position:static;max-width:480px;margin:0 auto}.pso22-root .pso22-personal-row{align-items:flex-start;flex-direction:column}.pso22-root .pso22-near{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.pso22-root .pso22-buttons,.pso22-root .pso22-toolbar,.pso22-root .pso22-yearbar button,.pso22-root .pso22-studio,.pso22-root .psx-hero-links,.pso22-root .pso22-consent{display:none!important}.pso22-root .pso22-months{grid-template-columns:repeat(3,minmax(0,1fr))}.pso22-root .pso22-event{break-inside:avoid}}

/* Stage 22.1: clearly distinguish fixed Gregorian observances */
.pso22-root .pso22-international-tag{background:#e7e3f9;color:#50318a;border:1px solid #bcb0ea}
.pso22-root .pso22-original-date{display:block;font-size:.79rem;color:#766380;font-weight:500;line-height:1.7}
.pso22-root .pso22-event-top time{text-align:left;max-width:64%}
.pso22-root .pso22-international-help{border-right-color:#7968ad;background:#f8f5ff}
.pso22-root .pso22-international-help a{color:#664395;text-decoration:underline}
@media(max-width:650px){.pso22-root .pso22-event-top time{max-width:57%}}
