/* Shared member-facing screens only; administration and printed schedules keep their layouts. */
.member-surface .member-visually-hidden,.member-surface .member-secondary>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.member-surface.member-schedule{font-size:1rem}
.member-surface .member-header .member-name{color:var(--brand-muted,#586474);line-height:1.4;margin-top:5px}
.member-surface .member-header h1{line-height:1.25;overflow-wrap:anywhere}
.member-surface .member-detail-bar{display:grid;grid-template-columns:minmax(44px,1fr) minmax(0,2fr) minmax(44px,1fr);align-items:center;gap:8px;color:var(--brand-blue)}
.member-surface .member-detail-bar strong{grid-column:2;grid-row:1;text-align:center;min-width:0;font-size:1.1rem;font-weight:600;overflow-wrap:anywhere;line-height:1.3}
.member-surface .member-back{display:inline-flex;align-items:center;gap:6px;min-width:44px;min-height:44px;padding:8px;border-radius:10px;text-decoration:none;color:var(--brand-blue);font-size:.875rem}
.member-surface .member-back svg{flex-shrink:0}
.member-surface .member-detail-bar .member-back{grid-column:1;grid-row:1;justify-self:start}
.member-surface .member-secondary>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;font-weight:650;color:var(--brand-blue);cursor:pointer;overflow-wrap:anywhere}
.member-surface .member-secondary>summary::-webkit-details-marker{display:none}
.member-surface .member-secondary>summary::after{content:'+';font-size:1.4rem;font-weight:400;flex-shrink:0}
.member-surface .member-secondary[open]>summary::after{content:'−'}
.member-surface .member-secondary[open]>summary{margin-bottom:16px}
.member-surface .member-secondary p:last-child{margin-bottom:0}
.member-surface .member-message .message-link,.member-surface .invitation-actions>a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.member-surface .member-detail-bar~.response-header{border:0;padding-bottom:0;gap:12px}
.member-surface .member-detail-bar~.response-header h1{line-height:1.3;overflow-wrap:anywhere}
.member-surface .choices button,.member-surface .absence-choice>summary{min-height:48px}
.member-surface button,.member-surface a.action,.member-surface .message-link,.member-surface .member-back,.member-surface summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.member-surface button:not(:disabled):active,.member-surface a.action:active,.member-surface .message-link:active,.member-surface .member-back:active,.member-surface summary:active{filter:brightness(.9);transform:translateY(1px)}
@media(max-width:680px){
    .member-surface .member-header h1{font-size:1.15rem}
    .member-surface .member-header .member-name{font-size:.8rem}
    .member-surface .member-inbox{padding:12px 14px}
    .member-surface .member-inbox .message-thread{padding-top:0}
    .member-surface .member-inbox .message-day:first-child{margin-top:4px}
    .member-surface .member-detail-bar{grid-template-columns:44px minmax(0,1fr) 44px}
    .member-surface .member-back span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .member-surface .member-back{justify-content:center}
    .member-surface .response-header{flex-direction:column}
    .member-surface .response-member{max-width:100%;text-align:left;color:var(--brand-muted,#586474);font-size:.9rem}
    .member-surface .invitation-actions>a{width:100%}
    .member-surface .choices{gap:10px}
    .member-surface .choices>form{flex:1;min-width:120px}
    .member-surface .choices>form>button{width:100%}
    .member-surface.member-schedule{margin:0;padding:16px;font-size:1rem}
    .member-surface.member-schedule h1{font-size:1.4rem}
}
@media(prefers-reduced-motion:reduce){.member-surface button:active,.member-surface a.action:active,.member-surface .message-link:active,.member-surface .member-back:active,.member-surface summary:active{transform:none}}

.member-surface header.member-header{display:grid;grid-template-columns:minmax(44px,max-content) minmax(0,1fr) minmax(44px,max-content);gap:12px}
.member-surface .member-header>.member-identity{grid-column:2;min-width:0;text-align:center}
.member-surface .member-header::after{content:'';width:44px;grid-column:3}
.member-surface .member-header-organisation{display:none;font-size:.8rem;color:var(--brand-muted,#586474);margin:4px 0 0;overflow-wrap:anywhere}
html[data-member-organisation="show"] .member-header-organisation{display:block}
.member-surface .member-preference{display:flex;align-items:center;gap:12px;padding:14px 0;cursor:pointer;min-height:44px}
.member-surface .member-preference input{width:1.3rem;height:1.3rem;accent-color:var(--brand-blue);flex-shrink:0}
.member-surface #member-offline-save-status,.member-surface #member-offline-notice{max-width:680px;margin:16px auto;padding:16px 20px;text-align:center;overflow-wrap:anywhere}
@media(min-width:681px){.member-surface header.member-header{grid-template-columns:minmax(126px,1fr) minmax(0,2fr) minmax(126px,1fr)}}

/* One navigation surface across online pages and the self-contained offline copy. */
.member-navigation-loading{position:fixed;inset-inline:0;z-index:100;pointer-events:none;height:3px;overflow:visible}
.member-navigation-loading[hidden]{display:none!important}
.member-navigation-loading::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--brand-blue) 40%,var(--brand-blue) 60%,transparent 100%);background-size:50% 100%;background-repeat:no-repeat;animation:member-navigation-progress 1.2s ease-in-out infinite}
.member-navigation-loading>span{position:absolute;right:16px;top:10px;padding:5px 10px;border:1px solid var(--brand-border);border-radius:20px;background:var(--brand-surface,#fff);color:var(--brand-blue);font:500 .8rem/1.4 system-ui,sans-serif}
@keyframes member-navigation-progress{from{background-position:-100% 0}to{background-position:200% 0}}
@media(prefers-reduced-motion:reduce){.member-navigation-loading::before{animation:none;background:var(--brand-blue);opacity:.6}}
@media print{.member-navigation-loading{display:none!important}}
.member-surface{overflow-x:clip}
.member-surface>main{margin-top:0;padding-top:0;background:var(--brand-cream);border-radius:0}
.member-surface header.member-header,.member-surface .member-detail-bar{position:sticky;top:0;z-index:40;min-height:60px;width:100vw;margin:0 calc(50% - 50vw) 20px;padding:8px max(16px,env(safe-area-inset-left),calc((100vw - 1000px)/2));border:0;border-bottom:1px solid var(--brand-border);border-radius:0;background:var(--brand-surface,#fff);box-shadow:none}
.member-surface .member-header h1{font-size:1.1rem;font-weight:600}
.member-surface .member-menu>summary{border:0;border-radius:10px;background:transparent;box-shadow:none}
.member-surface.member-schedule{margin:0;padding:0 20px 20px;border-radius:0}
@media(max-width:680px){
    .member-surface header.member-header,.member-surface .member-detail-bar{margin-bottom:16px}
    .member-surface.member-schedule{padding:0 16px 20px}
}
