/* A single, consistent header treatment across themes, phones and desktop. */
:root { --emmaus-header-edge: rgba(244,204,143,.38); --emmaus-header-text: #fff4df; --emmaus-header-gold: #f3d49b; }
body > header { height:var(--head); background:linear-gradient(110deg,rgba(27,24,26,.98),rgba(43,35,35,.96) 52%,rgba(28,33,43,.98)); border-bottom:1px solid var(--emmaus-header-edge); box-shadow:0 5px 24px #08090e5e; color:var(--emmaus-header-text); text-shadow:none; }
body > header .bar { width:100%; max-width:1100px; height:100%; padding:0 clamp(12px,3.2vw,28px); display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:clamp(8px,2vw,22px); }
body > header .emmaus-header-identity { flex:0 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; align-items:flex-start; justify-content:center; }
body > header .emmaus-header-identity .brand { margin:0!important; transform:none!important; padding:0!important; border:0!important; border-radius:0; display:flex; align-items:center; gap:7px; font:700 clamp(1.28rem,3.4vw,1.8rem)/1.05 Georgia,'Times New Roman',serif; background:transparent!important; box-shadow:none!important; text-shadow:0 1px 9px #e8bd7d42; color:#fff7e8!important; }
body > header .emmaus-header-identity .brand span { font-size:.82em; color:var(--emmaus-header-gold); }
body > header .pageonpoint-credit { margin:0 0 0 2px; font:500 clamp(10px,1.6vw,11px)/1.3 system-ui,sans-serif; letter-spacing:.015em; color:#d7cad0; text-decoration:none; text-shadow:none; white-space:nowrap; }
body > header .pageonpoint-credit span { color:var(--emmaus-header-gold); font-weight:750; }
body > header .pageonpoint-credit:is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:3px; }
body > header .header-actions { display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; gap:clamp(6px,1.3vw,11px); min-width:0; }
body > header .header-actions button { margin:0!important; min-height:39px; display:inline-flex; align-items:center; justify-content:center; text-align:center; border:1px solid rgba(247,206,140,.55)!important; border-radius:11px; padding:9px clamp(10px,1.5vw,16px); font:650 clamp(.73rem,1.4vw,.88rem)/1.15 system-ui,sans-serif; letter-spacing:.005em; color:#ffefd2!important; background:linear-gradient(150deg,rgba(218,171,101,.20),rgba(146,164,189,.08))!important; text-shadow:none!important; box-shadow:inset 0 1px 0 #ffffff23,0 2px 10px #0003!important; white-space:nowrap; transition:background .18s ease,border-color .18s ease; }
body > header .header-actions button:is(:hover,:focus-visible) { background:linear-gradient(150deg,rgba(240,190,113,.34),rgba(146,164,189,.13))!important; border-color:#ffe1a7!important; }
body > header .header-actions .header-cookie-button { color:#e8d8c1!important; background:rgba(255,255,255,.06)!important; }
body > header .daily-short { display:none; }
body > nav { background:linear-gradient(110deg,#211b1d,#29252b,#202632); border-top:1px solid rgba(244,204,143,.3); }
body > nav button { border-radius:10px; color:#e9d9c7; text-shadow:none!important; }
body > nav button[aria-current] { color:#ffe5ad!important; background:linear-gradient(150deg,#f3d29525,#b6c6da13)!important; border-color:#f4d09177!important; }
.cookie-banner[hidden] { display:none!important; }
.cookie-banner { position:fixed; z-index:10000; bottom:calc(12px + env(safe-area-inset-bottom)); left:50%; width:min(740px,calc(100vw - 24px)); transform:translateX(-50%); padding:16px; border:1px solid #e7c68caa; border-radius:18px; background:linear-gradient(135deg,#252027f5,#222937f8); box-shadow:0 14px 60px #000d, inset 0 1px 0 #fff2; display:flex; align-items:center; justify-content:space-between; gap:18px; color:#fff3e2; text-shadow:none; }
.cookie-banner-copy {flex:1; min-width:0;} .cookie-banner-copy strong { font:700 1rem/1.3 Georgia,serif; color:#ffe6b2; } .cookie-banner-copy p {font:.8rem/1.5 system-ui,sans-serif; margin:5px 0 0; color:#e8dccc;}
.cookie-banner-actions { flex:none; display:flex; gap:8px; } .cookie-banner-actions button { padding:10px 13px!important; min-height:42px; border-radius:10px!important; font:650 .8rem system-ui,sans-serif; text-shadow:none!important; box-shadow:none!important; white-space:nowrap; }
#cookie-essential {background:#ffffff12!important; border:1px solid #e6d1a766!important; color:#fff1d7!important;} #cookie-accept {background:linear-gradient(135deg,#edcf96,#d9ae6d)!important; color:#241a12!important; border:1px solid #ffe4b4!important;}
.cookie-banner-actions button:hover {filter:brightness(1.08);} 
@media(max-width:620px) { body > header .bar {gap:7px;padding-inline:10px;} body > header .emmaus-header-identity .brand {font-size:1.32rem;} body > header .pageonpoint-credit {font-size:10px;} body > header .header-actions button {padding:8px 9px;min-height:36px;font-size:.7rem;} body > header .daily-full {display:none;} body > header .daily-short {display:inline;} .cookie-banner { flex-direction:column;align-items:stretch;gap:12px;padding:14px;} .cookie-banner-actions {justify-content:stretch;} .cookie-banner-actions button {flex:1;} }
@media(max-width:350px) { body > header .emmaus-header-identity .brand {font-size:1.18rem;} body > header .header-actions {gap:4px;} body > header .header-actions button {padding:7px 6px;font-size:.65rem;} body > header .pageonpoint-credit {font-size:9px;} }
@media (prefers-reduced-motion:reduce) { body > header .header-actions button {transition:none;} }
/* Keep the intro's Begin the walk control unobstructed while consent is visible. */
body:has(#road:not([hidden])) .cookie-banner { top:calc(10px + env(safe-area-inset-top)); bottom:auto; }
@media(max-height:540px) { body:has(#road:not([hidden])) .cookie-banner { left:auto;right:8px;transform:none;width:min(390px,calc(100vw - 16px));padding:9px 12px;gap:6px; } body:has(#road:not([hidden])) .cookie-banner-copy p {font-size:.7rem;line-height:1.3;} body:has(#road:not([hidden])) .cookie-banner-actions button {min-height:32px;padding:6px!important;} }


/* Header refinement v4: unified measurements and predictable small-screen layout. */
:root { --head:76px; }
body > header .bar { box-sizing:border-box; margin-inline:auto; padding-inline:clamp(14px,3vw,28px); gap:clamp(12px,2.2vw,24px); }
body > header .emmaus-header-identity { flex:0 1 auto; gap:4px; min-width:0; }
body > header .emmaus-header-identity .brand { font-size:clamp(1.35rem,2.4vw,1.8rem); line-height:1; letter-spacing:-.025em; gap:8px; }
body > header .pageonpoint-credit { display:inline-flex; align-items:baseline; gap:3px; line-height:1.25; font-size:clamp(10px,1vw,11px); letter-spacing:.012em; margin-left:2px; }
body > header .header-actions { gap:10px; }
body > header .header-actions button { min-height:40px; padding:9px 14px; font-size:.8rem; border-radius:10px; font-weight:650; }
@media (max-width:620px) {
 :root { --head:68px; }
 body > header .bar { padding-inline:12px; gap:8px; }
 body > header .emmaus-header-identity { gap:3px; }
 body > header .emmaus-header-identity .brand { font-size:clamp(1.18rem,5vw,1.42rem); gap:5px; }
 body > header .pageonpoint-credit { font-size:9px; gap:2px; line-height:1.15; }
 body > header .header-actions { gap:6px; }
 body > header .header-actions button { min-height:35px; padding:7px 10px; font-size:.71rem; border-radius:9px; }
}
@media (max-width:380px) {
 :root { --head:64px; }
 body > header .bar { padding-inline:9px; gap:5px; }
 body > header .emmaus-header-identity .brand { font-size:1.15rem; gap:4px; }
 body > header .pageonpoint-credit { font-size:8.5px; }
 body > header .header-actions { gap:4px; }
 body > header .header-actions button { min-height:34px; padding:7px 7px; font-size:.66rem; }
}

/* Emmaus header: place the PageOnPoint credit lower beneath the wordmark. */
body > header .emmaus-header-identity { gap:8px; }
body > header .pageonpoint-credit { position:relative; top:3px; margin-left:2px; }
@media (max-width:620px) {
  body > header .emmaus-header-identity { gap:6px; }
  body > header .pageonpoint-credit { top:2px; }
}
@media (max-width:380px) {
  body > header .emmaus-header-identity { gap:5px; }
  body > header .pageonpoint-credit { top:2px; }
}
