#rwSiteHeader { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-areas: "brand tools" "nav nav"; align-items: center; gap: 22px 24px; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px 4% 16px; border-bottom: 2px solid #193a32; background: #fafbf8; color: #193a32; box-sizing: border-box; }
#rwSiteHeader .rw-brand { grid-area: brand; display: block; text-decoration: none; line-height: 1.2; letter-spacing: normal; }
#rwSiteHeader .rw-brand img { display: block; width: 232px; max-width: 100%; height: auto; }
#rwSiteHeader .rw-brand small { display: block; margin-top: 7px; color: #193a32; font: 700 8px/1.4 Arial,sans-serif; letter-spacing: 2.2px; }
#rwSiteHeader .rw-header-tools { grid-area: tools; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; min-width: 0; font-size: 13px; }
#rwSiteHeader .rw-header-tools > :not(.rw-language-switch) { order: 1; }
#rwSiteHeader .rw-header-tools .rw-language-switch { order: 2; display: inline-flex; justify-content: center; align-items: center; min-width: 52px; min-height: 36px; margin: 0; padding: 6px 12px; border: 1px solid #9eafa4; border-radius: 7px; color: #193a32; background: #fff; font: 600 13px/1.4 Arial,sans-serif; text-decoration: none; cursor: pointer; box-sizing: border-box; }
#rwSiteHeader .rw-language-switch:hover { background: #edf3ed; }
#rwSiteNavigation { grid-area: nav; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px 16px; min-width: 0; margin: 0; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
#rwSiteNavigation > a, #rwSiteNavigation > button, #rwSiteNavigation > details > summary { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 4px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #193a32; background: transparent; box-shadow: none; text-decoration: none; font: inherit; white-space: nowrap; cursor: pointer; }
#rwSiteNavigation [aria-current="page"] { border-bottom-color: #193a32; font-weight: 800; }
#rwSiteNavigation > a:hover, #rwSiteNavigation > button:hover, #rwSiteNavigation summary:hover { color: #193a32; background: #edf3ed; box-shadow: none; }
#rwSiteNavigation .major-nav { position: relative; margin: 0; padding: 0; }
#rwSiteNavigation summary { list-style: none; }
#rwSiteNavigation summary::after { content: '⌄'; margin-left: 6px; font-size: 12px; }
#rwSiteNavigation summary::-webkit-details-marker { display: none; }
#rwSiteNavigation .major-subnav { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 250px; padding: 8px; border: 1px solid #d4dfd6; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px #193a321c; }
#rwSiteNavigation .major-subnav a, #rwSiteNavigation .major-subnav button { display: block; width: 100%; padding: 12px; text-align: left; color: #193a32; background: #fff; border: 0; font: inherit; text-decoration: none; }
#rwSiteNavigation .major-subnav a:hover, #rwSiteNavigation .major-subnav button:hover { background: #edf3ed; }
#rwSiteHeader a:focus-visible, #rwSiteHeader button:focus-visible, #rwSiteHeader summary:focus-visible { outline: 3px solid #4285f4; outline-offset: 3px; }
@media (max-width: 700px) {
 #rwSiteHeader { padding: 16px 20px 10px; gap: 16px 12px; grid-template-columns: minmax(140px,168px) minmax(0,1fr); }
 #rwSiteHeader .rw-brand img { width: 168px; }
 #rwSiteHeader .rw-brand small { font-size: 6px; letter-spacing: 1.4px; }
 #rwSiteHeader .rw-header-tools { gap: 6px 8px; font-size: 12px; }
 #rwSiteNavigation { gap: 2px 12px; font-size: 12px; }
 #rwSiteNavigation .major-subnav { position: fixed; top: auto; left: 20px; right: 20px; min-width: 0; }
}
/* Match the shared header's content edges while keeping the top strip full width. */
body > .draft { padding-left: max(4%, calc((100% - 1440px) / 2 + 4%)); padding-right: max(4%, calc((100% - 1440px) / 2 + 4%)); gap: 12px; align-items: center; flex-wrap: wrap; }
body > footer { width: 100%; max-width: 1440px; margin: 0 auto; padding: 30px 4%; box-sizing: border-box; text-align: center; }
body > footer > .brand { display: inline-block; margin: 0 auto; }
body > footer > .brand img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
@media (max-width: 700px) {
 body > .draft { padding-left: 20px; padding-right: 20px; }
 body > footer { padding-left: 20px; padding-right: 20px; }
}

body > footer .rw-admin-entry { display: inline-block; margin: 12px 8px; padding: 6px 12px; border: 1px solid #d4dfd6; border-radius: 6px; font-size: 12px; }

#rwSiteHeader:has(.rw-admin-menu) { grid-template-areas: "brand tools" "nav nav" "admin admin"; }
#rwSiteHeader .rw-admin-menu { grid-area: admin; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px 0 0; border-top:1px solid #d4dfd6; font: 13px/1.5 Arial,sans-serif; }
#rwSiteHeader .rw-admin-menu a { padding:7px 12px; border:1px solid #d4dfd6; border-radius:6px; text-decoration:none; }
#rwSiteHeader .rw-admin-menu a:hover { background:#edf3ed; }
#rwSiteHeader .rw-admin-menu a[aria-current="page"] { background:#193a32; color:white; }

body > footer .rw-footer-actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px; margin:20px 0 24px; }
body > footer .rw-footer-actions > a { display:inline-flex; align-items:center; justify-content:center; min-width:128px; min-height:42px; margin:0; padding:9px 16px; border:1px solid #cbd8ce; border-radius:8px; background:transparent; color:#193a32; font:500 14px/1.5 Arial,sans-serif; text-decoration:none; box-sizing:border-box; }
body > footer .rw-footer-actions > a:hover { background:#edf3ed; border-color:#9eafa4; }
body > footer .rw-footer-actions > a:focus-visible { outline:3px solid #4285f4; outline-offset:3px; }

.rw-header-tools a[aria-current=page]{font-weight:750;text-decoration:underline;text-underline-offset:6px}

#rwSiteHeader .rw-admin-session{order:0;flex-basis:100%;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 14px;font-size:12px}#rwSiteHeader .rw-admin-session[hidden]{display:none}#rwSiteHeader .rw-admin-session strong{padding:5px 9px;background:#edf2e7;border:1px solid #d2decc;border-radius:20px;font-size:11px;font-weight:600}#rwSiteHeader .rw-admin-session a{font-size:12px;color:#476354;text-decoration:underline;text-underline-offset:3px}#rwSiteHeader .rw-admin-session-note{flex-basis:100%;font-size:12px;color:#6b7c70;margin:2px 0 0}#rwSiteHeader:has(.rw-admin-menu) .rw-header-tools{font-size:12px}

/* Keep the supplied logo proportions and clear space on every page. */
body > header > .brand img { width:232px; height:auto; max-width:100%; display:block; }
body > footer > .rw-footer-brand { display:inline-block; padding:18px 0; line-height:1; }
body > footer > .rw-footer-brand img { display:block; width:232px; height:auto; max-width:100%; margin:auto; }
@media(max-width:700px){body > header > .brand img{width:168px}}

/* RunWorld v3: ivory masthead, navy navigation and accessible mobile menu. */
.rw-brand-strip{background:#faf6ee;color:#687086;border-bottom:1px solid #e9e3d9;display:flex;justify-content:space-between;font:11px/1.5 Arial,sans-serif;letter-spacing:.2px;min-height:30px;padding-top:7px;padding-bottom:7px}
.rw-brand-strip>span:last-child{font-size:10px;font-weight:700;letter-spacing:1.6px}
#rwSiteHeader{max-width:1280px;background:#fff;color:#13224a;border:0;padding:24px 4% 16px;gap:22px 24px}
#rwSiteHeader .rw-brand img{width:246px}
#rwSiteHeader .rw-header-tools{font-size:12px;color:#13224a;gap:10px}
#rwSiteHeader .rw-header-tools a{color:#13224a;text-decoration:none}
#rwSiteHeader #rwSiteAccount,#rwSiteHeader #account{font-size:12px!important;gap:10px!important}
#rwSiteHeader #rwSiteAccount>a[href='/auth/'],#rwSiteHeader #account>a[href='/auth/'],#rwSiteHeader #login{background:#13224a;color:#fff;border:1px solid #13224a;border-radius:8px;min-height:42px;padding:10px 18px;font-size:12px;font-weight:700}
#rwSiteHeader .rw-header-tools button:not(.rw-language-switch){min-height:40px;color:inherit;border:1px solid #e5e0d8;border-radius:7px;padding:7px 12px}
#rwSiteHeader .rw-header-tools .rw-language-switch{min-width:44px;min-height:42px;border-color:#e5e0d8;color:#13224a;background:white;font-size:12px}
#rwSiteNavigation{width:100%;padding:0 18px;background:#15234b;border-radius:9px;gap:2px 22px;flex-wrap:wrap;color:#faf6ee;font-size:13px;line-height:1.5}
#rwSiteNavigation>a,#rwSiteNavigation>button,#rwSiteNavigation>details>summary{min-height:54px;color:#faf6ee;padding:14px 2px;border-bottom:3px solid transparent}
#rwSiteNavigation [aria-current='page']{border-bottom-color:#ff7a52}
#rwSiteNavigation>a:hover,#rwSiteNavigation>button:hover,#rwSiteNavigation summary:hover{background:#ffffff0d;color:white}
#rwSiteNavigation summary:after{color:#ff7a52}
#rwSiteNavigation .major-subnav{border-color:#e5e0d8;color:#13224a;min-width:250px}
#rwSiteNavigation .major-subnav a,#rwSiteNavigation .major-subnav button{color:#13224a;border-radius:6px}
#rwSiteNavigation .major-subnav a:hover,#rwSiteNavigation .major-subnav button:hover{background:#faf6ee}
#rwSiteHeader .rw-admin-menu{border-color:#e5e0d8;color:#13224a}
#rwSiteHeader .rw-admin-menu a[aria-current='page']{background:#13224a}
.rw-menu-toggle,.rw-mobile-about,.rw-current-section{display:none}
body>footer{max-width:none;background:#15234b;color:#faf6ee;border:0;margin-top:48px;padding:36px max(4%,calc((100% - 1178px)/2));text-align:left}
body>footer>.rw-footer-brand img{width:210px;margin:0}
body>footer>.rw-footer-brand{padding:6px 0}
body>footer p{font-size:12px;line-height:1.8;color:#c3c8d5}
body>footer small,body>footer .rw-operator{color:#acb4c8!important;font-size:11px}
body>footer a,body>footer button{color:inherit}
body>footer .rw-footer-actions{justify-content:flex-start;margin:18px 0}
body>footer .rw-footer-actions>a{background:transparent;border-color:#5a6380;color:#faf6ee;min-height:40px;font-size:12px}
body>footer .rw-footer-actions>a:hover{background:#ffffff12}
@media(max-width:1100px) and (min-width:761px){#rwSiteNavigation{gap:2px 14px;font-size:12px}}
@media(max-width:760px){
 body>.rw-brand-strip{display:none}
 #rwSiteHeader{grid-template-columns:1fr auto;grid-template-areas:'brand toggle';padding:14px 20px;gap:0 16px;border-bottom:1px solid #e5e0d8;background:#fffdf8;max-width:none;min-height:76px}
 #rwSiteHeader .rw-brand img{width:198px;max-width:100%;height:auto}
 #rwSiteHeader .rw-menu-toggle{grid-area:toggle;display:flex;align-items:center;justify-content:center;width:48px;min-height:48px;background:#fff;color:#13224a;border:1px solid #dce0e7;border-radius:12px;font:26px/1 Arial;cursor:pointer}
 #rwSiteHeader .rw-header-tools,#rwSiteHeader #rwSiteNavigation,#rwSiteHeader .rw-mobile-about{display:none}
 #rwSiteHeader:has(.rw-admin-menu){grid-template-areas:'brand toggle' 'admin admin'}
 #rwSiteHeader .rw-admin-menu{padding-top:12px;margin-top:12px;font-size:12px}
 .rw-current-section{display:flex;gap:10px;align-items:center;padding:11px 20px;border-bottom:1px solid #eee9e1;background:#faf8f2;color:#758095;font-size:12px;min-height:43px}
 .rw-current-section strong{color:#13224a;font-weight:600}
 .rw-current-section strong:before{content:'•';color:#e2562f;margin-right:7px}
 #rwSiteHeader.rw-menu-open{position:fixed;z-index:200;inset:0;height:100dvh;overflow:auto;overscroll-behavior:contain;align-content:start;grid-template-areas:'brand toggle' 'tools tools' 'nav nav' 'about about';grid-template-rows:auto auto auto auto;row-gap:20px;background:white;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
 #rwSiteHeader.rw-menu-open:has(.rw-admin-menu){grid-template-areas:'brand toggle' 'tools tools' 'nav nav' 'about about' 'admin admin'}
 #rwSiteHeader.rw-menu-open .rw-header-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:#faf6ee;border:1px solid #eee5d8;border-radius:12px;min-height:78px;margin:0;grid-area:tools}
 #rwSiteHeader.rw-menu-open .rw-header-tools>#account,#rwSiteHeader.rw-menu-open .rw-header-tools>#rwSiteAccount{max-width:100%;font-size:13px!important;gap:10px!important;flex:1}
 #rwSiteHeader.rw-menu-open .rw-header-tools .rw-language-switch{flex:0 0 auto;align-self:flex-start}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;padding:0;background:white;border-radius:0;overflow:visible;font-size:14px;align-items:start;white-space:normal;order:initial}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation>a,#rwSiteHeader.rw-menu-open #rwSiteNavigation>button,#rwSiteHeader.rw-menu-open #rwSiteNavigation>details>summary{width:100%;min-height:48px;padding:12px;text-align:left;justify-content:flex-start;color:#13224a;border:1px solid transparent;border-radius:8px;white-space:normal;line-height:1.5;background:white;box-shadow:none}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation [aria-current='page']{background:#fff2e9;color:#a94221;border-color:#f3cbb7}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation>.major-nav{position:static;min-width:0}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation .major-subnav{position:static;min-width:0;width:100%;padding:4px;border:1px solid #e5e0d8;box-shadow:none;margin-top:6px;font-size:12px}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation .major-subnav a,#rwSiteHeader.rw-menu-open #rwSiteNavigation .major-subnav button{white-space:normal;min-height:44px;padding:10px 8px}
 #rwSiteHeader.rw-menu-open #rwSiteNavigation>[data-rw-key='community']{grid-column:1/-1;background:#f1f4f8;margin-top:12px}
 #rwSiteHeader.rw-menu-open .rw-mobile-about{display:flex;align-items:center;min-height:44px;grid-area:about;font-size:13px;color:#687386;text-decoration:none;border-top:1px solid #e8ebef;padding-top:15px}
 body>footer{padding:30px 20px;margin-top:32px}
}

body>.rw-brand-strip{padding-left:max(4%,calc((100% - 1280px)/2 + 51.2px));padding-right:max(4%,calc((100% - 1280px)/2 + 51.2px))}
