/* Shared public tokens: the homepage and PHP modules use the same colour families. */
:root{--bg:#f6f8f9;--background:#f6f8f9;--panel:#fff;--card:#fff;--surface:#fff;--surface-soft:#f0f4f5;--soft:#f0f4f5;--text:#203239;--ink:#203239;--heading:#152f32;--muted:#617780;--line:#dee7e8;--border:#dee7e8;--green:#087660;--green-light:#e7f4ef;--p39-panel:var(--panel);--p39-text:var(--text);--p39-muted:var(--muted);--p39-line:var(--line);--p39-soft:var(--soft);color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--bg:#101a20;--background:#101a20;--panel:#1a2a31;--card:#1a2a31;--surface:#1a2a31;--soft:#22363e;--surface-soft:#22363e;--text:#e5eff1;--ink:#e5eff1;--heading:#f1f7f6;--muted:#afc2c9;--line:#354d57;--border:#354d57;--green:#7cdbb8;--green-light:#214239;--brand:#ff9fb3;--gold:#f5cd7d;--p39-panel:var(--panel);--p39-text:var(--text);--p39-muted:var(--muted);--p39-line:var(--line);--p39-soft:var(--soft);--p39-accent:#456ca9}
.p54-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.p54-header-wrap{position:relative;display:flex;align-items:center;flex-shrink:0}.p54-account-toggle{border:0;background:transparent;cursor:pointer;font:600 12px system-ui;padding:9px 4px;min-height:40px;max-width:165px}.p54-chevron{font-size:12px}.p54-header-panel{position:absolute;right:0;top:calc(100% + 15px);z-index:8010;width:370px;max-width:calc(100vw - 28px);max-height:min(75dvh,600px);overflow:auto;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:17px;box-shadow:0 16px 60px #102e3433;text-align:left}.p54-header-panel[hidden]{display:none!important}.p54-header-panel>header{padding:16px 18px;border-bottom:1px solid var(--line);font:650 14px system-ui}.p54-account-menu{width:270px;padding-bottom:6px}.p54-account-menu>a,.p54-account-menu form button{display:block;width:100%;text-align:left;padding:11px 17px;font:500 13px/1.4 system-ui;border:0;border-radius:0;background:transparent;color:var(--text);text-decoration:none;cursor:pointer}.p54-account-menu form{margin:6px 0 0;border-top:1px solid var(--line)}.p54-account-menu>a:hover,.p54-account-menu button:hover{background:var(--soft)}.p54-alert-toggle{position:relative}.p54-badge{position:absolute;top:0;right:-3px;min-width:18px;height:18px;border-radius:10px;background:#b41f49;color:#fff;font:700 10px/18px system-ui;padding:0 4px;box-shadow:0 0 0 2px var(--panel)}.p54-badge[hidden]{display:none}.p54-preview-row{display:flex;align-items:center;gap:11px;padding:13px 16px;color:var(--text);text-decoration:none;border-bottom:1px solid var(--line)}.p54-preview-row:hover{background:var(--soft);text-decoration:none}.p54-preview-row.is-unread{background:var(--green-light)}.p54-preview-avatar{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;background:var(--soft);color:var(--green);border-radius:13px;font-weight:700;overflow:hidden}.p54-preview-avatar img{width:100%;height:100%;object-fit:cover}.p54-preview-copy{flex:1;min-width:0;font:12px/1.5 system-ui}.p54-preview-copy>strong{display:block;font-size:13px}.p54-preview-copy>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.p54-preview-copy time{display:block;color:var(--muted);font-size:10px;margin-top:3px}.p54-preview-count{background:#087660;color:#fff;border-radius:10px;font:700 10px system-ui;padding:4px 6px}.p54-see-all{display:block;text-align:center;padding:14px;color:var(--green);font:600 12px system-ui;background:var(--panel);text-decoration:none;position:sticky;bottom:0;border-top:1px solid var(--line)}.p54-preview-empty{padding:15px 18px;font-size:13px;color:var(--muted)}.p54-theme .p54-sun{display:none}.p54-theme[data-mode=dark] .p54-sun{display:block}.p54-theme[data-mode=dark] .p54-moon{display:none}.p54-theme[data-mode=light] .p54-moon{display:block}
.p39-post-head{position:relative;align-items:flex-start}.p54-post-menu{margin-left:auto;position:relative;flex-shrink:0;z-index:8}.p54-post-menu>summary{list-style:none;display:grid;place-items:center;width:34px;height:34px;font:700 22px/1 system-ui;color:var(--muted);cursor:pointer;border-radius:50%}.p54-post-menu>summary::-webkit-details-marker{display:none}.p54-post-menu>summary:hover{background:var(--soft)}.p54-post-menu>div{position:absolute;top:36px;right:0;min-width:160px;padding:5px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #092a3526}.p54-post-menu a,.p54-post-menu button{display:block;width:100%;padding:10px 13px;border:0;background:transparent;text-align:left;text-decoration:none;color:inherit;font:500 13px/1.4 system-ui;border-radius:8px;cursor:pointer}.p54-post-menu button{color:#ba2850}.p54-post-menu a:hover,.p54-post-menu button:hover{background:var(--soft)}.p54-post-editor{width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:22px;background:var(--panel);color:var(--text);box-shadow:0 25px 90px #092a354d}.p54-post-editor::backdrop{background:#061c28b3}.p54-post-editor header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.p54-post-editor h2{font:650 21px system-ui;margin:0}.p54-post-editor label{display:block;margin-top:14px;font-size:13px}.p54-post-editor textarea,.p54-post-editor input,.p54-post-editor select{display:block;width:100%;margin-top:6px;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:11px;font:14px/1.5 system-ui}.p54-post-editor footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.p54-post-editor footer button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;padding:10px 16px;cursor:pointer}.p54-primary,.p54-post-editor footer .p54-primary{background:#087660;color:#fff;border-color:#087660}.p54-editor-note{color:var(--muted);font-size:12px}.p54-editor-status{font-size:13px;color:var(--green);white-space:pre-line}.p54-icon-button{border:0;background:var(--soft);color:var(--text);font-size:24px;width:36px;height:36px;border-radius:50%;cursor:pointer}.p54-notice{position:fixed;bottom:85px;right:20px;z-index:100100;max-width:min(460px,calc(100vw - 40px));padding:15px 20px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:13px;box-shadow:0 10px 50px #092a3540;font:13px/1.6 system-ui}
.p54-rich-label{display:block;width:100%}.p54-rich{margin-top:7px;border:1px solid var(--line,#dce5e7);border-radius:13px;background:var(--panel,#fff);color:var(--text,#203239);overflow:hidden}.p54-rich-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:8px;border-bottom:1px solid var(--line,#dce5e7);background:var(--soft,#f0f4f5)}.p54-rich-tools button{border:1px solid transparent;background:transparent;color:inherit;border-radius:7px;padding:7px 8px;font:500 11px system-ui;min-height:32px;cursor:pointer;width:auto}.p54-rich-tools button:hover,.p54-rich-tools button:focus-visible{background:var(--panel,#fff);border-color:var(--line,#dce5e7)}.p54-rich-tools button[aria-label=Bold]{font-weight:800}.p54-rich-tools button[aria-label=Italic]{font-style:italic}.p54-rich-tools button[aria-label=Underline]{text-decoration:underline}.p54-rich-content{min-height:260px;max-height:70dvh;overflow:auto;padding:18px;outline:none;line-height:1.8;font-size:15px;font-weight:400;white-space:normal;overflow-wrap:anywhere}.p54-rich-content:focus{box-shadow:inset 0 0 0 2px var(--green,#087660)}.p54-rich-content p{margin:0 0 12px}.p54-rich-content h2,.p16-article h2{font-size:1.45em;line-height:1.4;color:var(--heading)}.p54-rich-content h3,.p16-article h3{font-size:1.2em;line-height:1.4;color:var(--heading)}.p54-rich-content ul,.p54-rich-content ol,.p16-article ul,.p16-article ol{padding-left:25px;list-style-position:outside}.p54-rich-content blockquote,.p16-article blockquote{margin:16px 0;padding:10px 18px;border-left:3px solid var(--green);background:var(--soft);color:var(--text);border-radius:0 8px 8px 0}.p54-rich-help{font:12px/1.5 system-ui;color:var(--muted)}.p54-views{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font:12px/1.4 system-ui;margin:6px 0 10px;white-space:nowrap}.p54-views svg{width:16px;height:16px}
.p33-footer{background:var(--panel);border-top:1px solid var(--line);color:var(--muted)}.p33-footer-inner{max-width:none;width:min(calc(100% - 48px),1800px);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 0}.p33-footer-inner nav{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}.p33-footer nav a{font:12px/1.5 system-ui;color:var(--muted)}.p33-footer-inner>small{margin-left:auto;text-align:right;font:11px/1.5 system-ui;color:var(--muted)}
/* Correct legacy white panels and dark text across public modules, without changing media assets. */
html[data-theme=dark] body[data-p42-shell]{background:var(--bg);color:var(--text)}
html[data-theme=dark] :is(.m-card,.commerce-panel,.commerce-card,.commerce-note,.p15-card,.p16-card,.p16-search,.p40-place-card,.p37-product-card,.p33-network-card,.listing-card,.module-card,.p30-wall-aside>div,.p30-profile,.p50-profile-panel,.p23-panel,.p29-panel,.p39-dialog,.p33-picker,.p39-header,.p40-bottom,.p42-home-feed){background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme=dark] :is(.p16-photo,.p15-photo-placeholder,.commerce-pic,.p37-photo-grid,.p16-pill,.p15-tags span,.p30-profile-tabs,.p39-module-grid>a,.p39-module-grid>a>span,.p51-media-zone,.p33-filter,.p50-history-item,.p30-about-section){background:var(--soft);color:var(--text);border-color:var(--line)}
html[data-theme=dark] :is(.p16-inner h2,.p16-inner h2 a,.p15-card h2,.p15-card h2 a,.commerce-card h3,.commerce-card h3 a,.p40-place-card h2,.p40-place-card h3,.p40-place-card h3 a,.p30-profile h1,.p30-profile h2,.p39-module-grid b,.p33-network h1,.p39-author,.p15-title h1,.p16-top h1,.commerce-top h1){color:var(--heading)}
html[data-theme=dark] :is(.commerce-muted,.commerce-lead,.p16-excerpt,.p15-description,.p30-profile small,.p33-network-intro,.p33-footer small,.p39-description,.p39-comments summary){color:var(--muted)}
html[data-theme=dark] :is(input,textarea,select){background:var(--panel);color:var(--text);border-color:var(--line)}html[data-theme=dark] ::placeholder{color:#99afb8;opacity:1}html[data-theme=dark] .p39-desktop-search{background:var(--soft);border-color:var(--line)}html[data-theme=dark] .p39-logo{background:#fff;border-radius:7px;padding:2px 5px}html[data-theme=dark] .p39-logo:has(img[src*="dark"]){background:transparent}html[data-theme=dark] .p39-logo img{object-fit:contain}html[data-theme=dark] :is(.m-primary,.commerce-btn-primary,.p38-primary,.p51-btn.is-primary){background:#087660;color:#fff;border-color:#158e74}html[data-theme=dark] .p54-post-menu button{color:#ff9fb3}html[data-theme=dark] .p16-article{color:var(--text)}
@media(max-width:1050px){.p39-top{gap:15px}.p39-desktop-search{max-width:400px}.p54-account-toggle{max-width:130px}.p39-shortcuts{gap:4px}}
@media(max-width:760px){.p39-top{padding:0 10px;gap:5px}.p39-logo img{width:105px}.p39-shortcuts{gap:0}.p39-shortcuts .p39-icon{width:31px;height:40px}.p39-mobile-search{display:none!important}.p54-account-toggle{display:flex;align-items:center;justify-content:center;width:31px;max-width:31px;padding:0}.p54-account-toggle>span{display:none}.p54-account-toggle svg{width:20px}.p54-header-panel{position:fixed;top:calc(64px + var(--p39-support-height,0px));left:12px;right:12px;width:auto;max-width:none;max-height:72dvh}.p54-account-menu{left:auto;width:min(290px,calc(100vw - 24px))}.p54-badge{top:0;right:-1px}.p54-preview-row{padding:12px}.p33-footer-inner{width:calc(100% - 32px);padding:19px 0;gap:14px}.p33-footer-inner nav{gap:10px 14px}.p33-footer-inner>small{width:100%;margin-left:0;text-align:left}.p54-rich-content{font-size:16px;padding:13px}.p54-post-editor{padding:17px}.p54-post-editor textarea,.p54-post-editor input,.p54-post-editor select{font-size:16px}}
@media(max-width:350px){.p39-logo img{width:88px}.p39-shortcuts .p39-icon,.p54-account-toggle{width:29px;max-width:29px}.p39-top{padding:0 6px}.p39-shortcuts .p39-icon svg{width:18px}}
@media(prefers-reduced-motion:reduce){.p54-header-panel,.p54-post-editor{scroll-behavior:auto}}

html[data-theme=dark] .p39-logo.p54-has-dark-logo{background:transparent}.p16-article{white-space:normal}.p16-article ul,.p54-rich-content ul{list-style-type:disc}.p16-article ol,.p54-rich-content ol{list-style-type:decimal}
/* Explicit composer fallbacks also cover browsers without light-dark() support. */
.p51-ui{--p51-bg:var(--bg);--p51-panel:var(--panel);--p51-text:var(--text);--p51-muted:var(--muted);--p51-line:var(--line);--p51-soft:var(--soft);--p51-green:#087660;--p51-green-ink:#fff;--p51-green-soft:#e7f4ef;--p51-wine:#a32347;--p51-wine-soft:#f9eaf0;--p51-gold:#825e10;--p51-gold-soft:#fff4d7;--p51-orange:#a75b16;--p51-orange-soft:#fff0df}
html[data-theme=dark] .p51-ui{--p51-green:#8be5bb;--p51-green-ink:#113e2d;--p51-green-soft:#214239;--p51-wine:#ffabc1;--p51-wine-soft:#442c37;--p51-gold:#f3cd75;--p51-gold-soft:#423924;--p51-orange:#f6bd88;--p51-orange-soft:#493426}
html[data-theme=dark] :is(.m-alert.m-error,.commerce-error,.c44-error,.c44-global-error){background:#482832;color:#ffc0d0;border-color:#825468}html[data-theme=dark] .commerce-good{background:#214239;color:#b1f0d5}html[data-theme=dark] .commerce-preview span{background:#423924;color:#f5cd7d}html[data-theme=dark] .p50-hours.is-closed{background:#482832;color:#ffc0d0;border-color:#825468}html[data-theme=dark] .p50-hours.is-soon{background:#423924;color:#f5cd7d;border-color:#7a6539}
