/* One quiet, persistent masthead across the public site and member workspace. */
:root{--site-header-height:64px;--grt-masthead-safe-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));--grt-masthead-safe-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px))}
html.grt-shared-masthead{scroll-padding-top:calc(var(--site-header-height) + 16px)}
.grt-masthead-header.grt-masthead-header{position:sticky;top:0;z-index:100;display:block;width:100%;max-width:none;min-height:0;margin:0;padding:var(--grt-masthead-safe-top) 0 0;background:#eaf0fb;border:0;border-bottom:1px solid var(--line,#e1e6ee);color:var(--ink,#18243a)}
.grt-masthead-row{display:grid;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr);align-items:center;gap:12px;min-height:64px;max-width:1440px;margin:0 auto;padding:8px 28px}
.grt-masthead-leading,.grt-masthead-utilities{display:flex;align-items:center;gap:4px;min-width:0}
.grt-masthead-utilities{justify-content:flex-end;justify-self:end}
.grt-masthead-header .grt-masthead-utilities>*{order:0}
.grt-masthead-header .grt-masthead-brand{display:inline-flex;align-items:center;justify-content:center;justify-self:center;align-self:center;width:auto;min-height:44px;margin:0;padding:0;border:0;flex:none}
.grt-masthead-header .grt-masthead-brand img{display:block;width:76px;height:auto;max-width:none;margin:0}
.grt-masthead-header .grt-masthead-icon,.grt-masthead-header #preview-options.grt-masthead-icon,.grt-masthead-header .grt-masthead-menu{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;inset:auto;width:44px;min-width:44px;height:44px;min-height:44px;max-width:none;margin:0;padding:10px!important;border:0;border-radius:8px;background:transparent;color:var(--ink,#18243a);font:inherit;line-height:1;text-decoration:none;cursor:pointer}
.grt-masthead-header .grt-masthead-menu{display:none}
/* The masthead owns the top inset, including the opaque area above its controls. */
html.grt-shared-masthead[data-grt-native=true] body{padding-top:0}
.grt-masthead-header .grt-masthead-leading>.grt-masthead-menu{order:0;margin:0;align-self:center}
.grt-masthead-header .grt-masthead-leading>.grt-workspace-menu{display:inline-flex}
/* Authentication screens keep their Home link without member navigation. */
.design-workspace:not([data-auth=ready])>.grt-masthead-header .grt-workspace-menu{display:none}
.grt-masthead-header .grt-masthead-menu>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.grt-masthead-header .grt-masthead-icon>svg,.grt-masthead-header .grt-masthead-menu>svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.grt-masthead-header .grt-masthead-icon:hover,.grt-masthead-header .grt-masthead-menu:hover{background:#edf2fd;color:#1c48ab}
.grt-masthead-header :is(a,button):focus-visible{outline:3px solid var(--focus,#92b3ff);outline-offset:2px}
.grt-masthead-header #preview-options.profile-avatar-button{padding:3px!important}
.grt-masthead-header #preview-options .profile-avatar{width:36px;height:36px;font-size:12px}
.grt-masthead-header .alerts-button .count:not(:empty){position:absolute;right:1px;top:0;display:grid;place-items:center;min-width:17px;min-height:17px;height:auto;margin:0;padding:1px 3px;border-radius:5px;background:var(--blue,#2456ca);color:#fff;font-size:10px;line-height:1.2}
.grt-masthead-header .account-control{position:relative;margin:0;padding:0}
.grt-masthead-header .grt-masthead-navigation{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 24px;width:100%;max-width:1440px;margin:0 auto;padding:0 24px 7px;order:initial}
.grt-masthead-header .grt-masthead-navigation>a{min-height:36px}
.grt-masthead-header .grt-masthead-navigation .gallery-motion-toggle{margin:0;width:36px;height:36px;min-height:36px;padding:9px}
.design-workspace>.sidebar>.brand,.design-workspace>.sidebar>.workspace-label{display:none}
.design-workspace #main>.workspace-header .header-utilities{display:none}
.design-workspace #main>.workspace-header{grid-template-areas:none;grid-template-columns:minmax(0,1fr) auto}
.design-workspace #main>.workspace-header .page-heading{grid-area:auto;display:block}
.design-workspace #main>.workspace-header .header-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.design-workspace #main>.workspace-header .creation-actions,.design-workspace #main>.workspace-header .admin-link{grid-area:auto}
.design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header{top:var(--site-header-height);z-index:80}
.design-workspace[data-auth]:not([data-auth=ready])>.grt-masthead-header{display:block}
.grt-shared-masthead .auth-callback-page{padding:0 0 24px}
.grt-shared-masthead .auth-callback{width:min(460px,calc(100% - 32px));margin:32px auto}
body[data-calendar-expanded] #main{height:calc(100dvh - var(--site-header-height) - var(--grt-masthead-safe-bottom))}
body[data-calendar-expanded] #main>.workspace-header{top:auto}
@media(min-width:951px){.design-workspace>.sidebar{top:var(--site-header-height)}.design-workspace>.sidebar nav{margin-top:0!important}}
@media(max-width:960px){
 .grt-masthead-header .grt-masthead-menu{display:inline-flex}
 .grt-masthead-row{gap:8px;min-height:44px;padding:0 16px;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr)}
 .grt-masthead-header .grt-masthead-brand img{width:64px}
 .grt-masthead-header :is(a,button):focus-visible{outline-offset:-2px}
 .grt-masthead-header.is-menu-ready .grt-masthead-navigation,.grt-masthead-header.public-menu-ready .grt-masthead-navigation{display:none}
 .grt-masthead-header.is-menu-open .grt-masthead-navigation,.grt-masthead-header.public-menu-open .grt-masthead-navigation{position:absolute;inset:100% 0 auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:3px;width:100%;max-width:none;max-height:calc(100dvh - var(--site-header-height));margin:0;padding:12px 20px max(20px,var(--grt-masthead-safe-bottom));background:var(--surface,#fff);border-bottom:1px solid var(--line,#e1e6ee);overflow:auto;overscroll-behavior:contain}
 .grt-masthead-header .grt-masthead-navigation>a{justify-content:flex-start;min-height:44px;font-size:14px}
 .grt-masthead-header .grt-masthead-navigation .gallery-motion-toggle{width:44px;height:44px;min-height:44px;margin:4px 10px}
}
@media(max-width:700px){
 /* The persistent logo already identifies all mobile sign-in and recovery forms. */
 .grt-shared-masthead :is(.workspace-login,.auth-callback)>a[aria-label="Gospel Refuge Tabernacle home"]{display:none}
 .grt-shared-masthead :is(.workspace-login,.workspace-login.profile-gate,.auth-callback)>h1{margin-top:0}
 /* The centered phone brand stays anchored while the contextual Back control appears. */
 .design-workspace[data-auth=ready]>.grt-masthead-header .grt-masthead-row{grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr)}
 .design-workspace[data-auth=ready]>.grt-masthead-header .grt-masthead-leading{display:flex;grid-column:1;grid-row:1;justify-self:start}
 .design-workspace[data-auth=ready]>.grt-masthead-header .grt-workspace-menu{display:none}
 .design-workspace[data-auth=ready]>.grt-masthead-header .grt-workspace-back:not([hidden]){display:inline-flex}
 .design-workspace[data-auth=ready]>.grt-masthead-header .grt-masthead-brand{grid-column:2;grid-row:1;justify-self:center}
 .design-workspace[data-auth=ready]>.grt-masthead-header .grt-masthead-utilities{grid-column:3;grid-row:1;justify-self:end;justify-content:flex-end}
 .design-workspace>.sidebar{min-height:0;padding:0;border:0;gap:0}
 .design-workspace #main>.workspace-header{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:0;margin-bottom:8px}
 .design-workspace #main>.workspace-header .page-heading{padding:0}
 .design-workspace #main>.workspace-header h1{font-size:20px;line-height:1.25}
 .design-workspace #main>.workspace-header .page-heading>p{display:none}
 .design-workspace #main>.workspace-header .header-actions{margin:0;max-width:none}
 .design-workspace #main>.workspace-header .creation-actions{display:flex;flex-wrap:wrap;gap:8px;width:auto;margin:0}
 .design-workspace #main>.workspace-header .creation-actions>button{width:auto;min-height:44px;padding:10px}
}
/* Expanded calendar uses the same compact phone title spacing. */
@media(max-width:700px){
 .design-workspace[data-calendar-expanded] #main>.workspace-header{padding:0!important;margin:0 0 8px!important}
 .design-workspace[data-calendar-expanded] #main>.workspace-header h1{font-size:18px}
}
/* Keep the secondary sticky page heading compact beneath the main masthead. */
@media(max-width:700px){
 .design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header{gap:8px;padding:0;margin-bottom:8px}
 .design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header h1{font-size:20px;line-height:1.25}
 .design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header .page-heading>p{display:none}
 .design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header .creation-actions>button{padding:10px;font-size:12px}
}
@media(max-width:360px){.grt-masthead-row{gap:4px;padding-inline:12px}.grt-masthead-header .grt-masthead-brand img{width:60px}.design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header h1{font-size:18px}.design-workspace:is([data-page=calendar],[data-page=reports]) #main>.workspace-header .creation-actions>button{padding:8px;gap:6px}}

/* Public desktop navigation shares one row; the workspace keeps its own rail. */
@media(min-width:1101px){
 .grt-public-masthead .grt-masthead-row{grid-template-columns:auto minmax(0,1fr) auto;gap:24px}
 .grt-public-masthead .grt-masthead-leading{display:none}
 .grt-public-masthead .grt-masthead-brand{grid-column:1;grid-row:1;justify-self:start}
 .grt-public-masthead .grt-masthead-utilities{grid-column:3;grid-row:1}
 .grt-public-masthead .grt-masthead-navigation{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:clamp(14px,1.5vw,24px);width:auto;min-width:0;max-width:none;margin:0;padding:0}
 .grt-public-masthead .grt-masthead-navigation>a{min-height:44px}
}
/* Compact public navigation remains a menu on phones and tablets. */
@media(max-width:1100px){
 .grt-public-masthead .grt-masthead-row{gap:8px;min-height:44px;padding:0 16px;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr)}
 .grt-public-masthead .grt-masthead-brand img{width:64px}
 .grt-public-masthead .grt-masthead-menu{display:inline-flex}
 .grt-public-masthead .grt-masthead-navigation{display:none!important}
 .grt-public-masthead:is(.is-menu-open,.public-menu-open) .grt-masthead-navigation{position:absolute;inset:100% 0 auto;display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:3px;width:100%;max-width:none;max-height:calc(100dvh - var(--site-header-height));margin:0;padding:12px 20px max(20px,var(--grt-masthead-safe-bottom));background:var(--surface,#fff);border-bottom:1px solid var(--line,#e1e6ee);overflow:auto;overscroll-behavior:contain}
 .grt-public-masthead .grt-masthead-navigation>a{justify-content:flex-start;min-height:44px;font-size:14px}
 .grt-public-masthead .grt-masthead-navigation .gallery-motion-toggle{width:44px;height:44px;min-height:44px;margin:4px 10px}
}

/* Desktop account gates use their own branded card, without a workspace bar. */
@media(min-width:951px){
 .design-workspace[data-auth]:not([data-auth=ready])>.grt-masthead-header{display:none}
}

/* Group the phone welcome and actions; separate the request list with space. */
@media(max-width:700px){
 .design-workspace[data-page=dashboard] #main>.workspace-header{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;padding:8px 0 0;margin-bottom:20px;border-bottom:0}
 .design-workspace[data-page=dashboard] #main>.workspace-header .header-actions{width:100%;justify-content:flex-start}
}

/* A compact 48px phone masthead, with balanced logo gaps and 44px controls. */
@media(max-width:700px){
 .grt-masthead-header .grt-masthead-row{padding-block:1px 0}
 .design-workspace>.grt-masthead-header .grt-masthead-row{min-height:47px}
}

/* Back belongs to signed-in phone navigation; larger screens keep their Menu. */
.grt-masthead-header .grt-workspace-back{display:none}
@media(max-width:700px){
 .grt-public-masthead .grt-masthead-row{min-height:47px}
}

/* Workspace desktop controls align to the rail and viewport, around a true center. */
@media(min-width:951px){
 .design-workspace>.grt-masthead-header .grt-masthead-row{max-width:none;padding-inline:18px}
}


/* The desktop rail trigger reverses cleanly between Menu and Close. */
@media(min-width:951px){
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar] .grt-menu-line{transform-box:view-box;transform-origin:12px 12px;transition:transform 220ms cubic-bezier(.16,1,.3,1),opacity 160ms ease}
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar] .grt-menu-line-top{transform:translateY(-6px)}
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar] .grt-menu-line-bottom{transform:translateY(6px)}
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar][aria-expanded=true] .grt-menu-line-top{transform:rotate(45deg)}
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar][aria-expanded=true] .grt-menu-line-bottom{transform:rotate(-45deg)}
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar][aria-expanded=true] .grt-menu-line-middle{opacity:0;transform:scaleX(.35)}
}
@media(min-width:951px) and (prefers-reduced-motion:reduce){
 .design-workspace .grt-workspace-menu[aria-controls=workspace-sidebar] .grt-menu-line{transition:none}
}

/* Shared grouped navigation: hover/click on desktop, tap accordions on phones. */
.grt-public-masthead .grt-public-nav-group{position:relative;flex:none;min-width:0}
.grt-public-masthead .grt-public-nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 14px;border-radius:var(--grt-radius-control,12px);color:var(--grt-muted,#5f685d);font-family:var(--font-ui);font-size:14px;font-weight:650;line-height:1.4;list-style:none;cursor:pointer;white-space:nowrap}
.grt-public-masthead .grt-public-nav-group>summary::-webkit-details-marker{display:none}
.grt-public-masthead .grt-public-nav-group>summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform 160ms ease}
.grt-public-masthead .grt-public-nav-group[open]>summary svg{transform:rotate(180deg)}
.grt-public-masthead .grt-public-nav-group>summary:hover,.grt-public-masthead .grt-public-nav-group[open]>summary{background:var(--grt-canvas,#f6f3eb);color:var(--grt-forest,#294b40)}
.grt-public-masthead .grt-public-nav-group>summary[data-current-section]{background:var(--grt-sage,#e4ebdd);color:var(--grt-forest,#294b40)}
.grt-public-masthead .grt-public-nav-group:not([open])>.grt-public-group-panel{display:none}
.grt-public-masthead .grt-public-group-links{display:flex;flex-direction:column;gap:3px;padding:8px;background:var(--grt-paper,#fffdf7);border:1px solid var(--grt-line,#d6dbce);border-radius:var(--grt-radius-control,12px)}
.grt-public-masthead .grt-public-group-links>a{display:flex;align-items:center;min-height:44px;padding:10px 13px;border-radius:8px;color:var(--grt-muted,#5f685d);font-family:var(--font-ui);font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.grt-public-masthead .grt-public-group-links>a:hover{background:var(--grt-canvas,#f6f3eb);color:var(--grt-forest,#294b40)}
.grt-public-masthead .grt-public-group-links>a:is([aria-current=page],[aria-current=location]){background:var(--grt-sage,#e4ebdd);color:var(--grt-forest,#294b40);font-weight:750}
.grt-public-masthead .grt-public-nav-group>summary:focus-visible{outline:3px solid var(--focus,#596f44);outline-offset:2px}
@media(min-width:1101px){
 .grt-public-masthead .grt-masthead-row{gap:16px;padding-inline:24px}
 .grt-public-masthead .grt-masthead-navigation{gap:4px;flex-wrap:nowrap}
 .grt-public-masthead .grt-public-group-panel{position:absolute;inset:100% 0 auto auto;z-index:2;width:260px;padding-top:8px}
 .grt-public-masthead .grt-public-group-links{max-height:calc(100dvh - var(--site-header-height) - 20px);overflow:auto;overscroll-behavior:contain}
}
@media(max-width:1100px){
 .grt-public-masthead .grt-masthead-navigation{box-shadow:none;animation:none}
 .grt-public-masthead .grt-public-nav-group{width:100%}
 .grt-public-masthead .grt-public-nav-group+.grt-public-nav-group{margin-top:8px}
 .grt-public-masthead .grt-public-nav-group>summary{min-height:48px;font-size:16px;padding:12px 14px}
 .grt-public-masthead .grt-public-group-panel{padding-top:6px}
 .grt-public-masthead .grt-public-group-links{padding:4px 0 4px 12px;border:0;background:transparent}
 .grt-public-masthead .grt-public-group-links>a{padding:10px 14px;font-size:15px}
}
@media(prefers-reduced-motion:reduce){.grt-public-masthead .grt-public-nav-group>summary svg{transition:none}}
