/* Clapperboard 2.0 — navigation.css — consolidated authoritative stylesheet */
html body header.header.cb-unified-header:has(nav.cb-unified-nav){box-sizing: border-box;display: grid;grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);grid-template-rows: 64px;align-items: center;width: 100%;height: 82px;min-height: 82px;padding: 9px max(3vw, 20px);gap: 0 12px;flex-wrap: nowrap;}
html body header.header.cb-unified-header:has(nav.cb-unified-nav) > .brand{grid-column: 1;grid-row: 1;justify-self: start;align-self: center;display: flex;align-items: center;min-width: 0;margin: 0;}
html body header.header.cb-unified-header nav.cb-unified-nav{grid-column: 2;grid-row: 1;justify-self: center;align-self: center;display: flex;flex: none;flex-wrap: nowrap;align-items: center;justify-content: safe center;box-sizing: border-box;width: max-content;max-width: calc(100vw - 520px);min-width: 0;height: 48px;padding: 0;margin: 0;gap: clamp(9px, 1.15vw, 18px);overflow-x: auto;overflow-y: hidden;scrollbar-width: none;-ms-overflow-style: none;}
html body header.header.cb-unified-header nav.cb-unified-nav::-webkit-scrollbar{display: none;}
html body header.header.cb-unified-header nav.cb-unified-nav > a{position: relative;display: inline-flex;flex: 0 0 auto;align-items: center;justify-content: center;box-sizing: border-box;height: 44px;margin: 0;padding: 9px 0;border: 0;border-bottom: 2px solid transparent;border-radius: 0;background: transparent;color: #333;font: 400 .88rem/1.3 Arial, Helvetica, sans-serif;letter-spacing: normal;text-transform: none;text-decoration: none;white-space: nowrap;}
html body header.header.cb-unified-header nav.cb-unified-nav > a:hover,
html body header.header.cb-unified-header nav.cb-unified-nav > a[aria-current="page"]{color: #111;border-bottom-color: #111;font-weight: 400;}
html body header.header.cb-unified-header nav.cb-unified-nav .cb-nav-unread{position: absolute;top: -1px;right: -9px;display: inline-block;padding: 1px 4px;margin: 0;border-radius: 9px;background: #111;color: #fff;font: 400 10px/1.2 Arial, Helvetica, sans-serif;}
@media (max-width: 1320px){html body header.header.cb-unified-header:has(nav.cb-unified-nav){grid-template-columns: minmax(0, 1fr);grid-template-rows: 58px 44px;height: 122px;min-height: 122px;padding: 8px 20px 12px;row-gap: 0;}
html body header.header.cb-unified-header:has(nav.cb-unified-nav) > .brand{grid-column: 1;grid-row: 1;}
html body header.header.cb-unified-header nav.cb-unified-nav{grid-column: 1;grid-row: 2;justify-self: center;width: max-content;max-width: 100%;height: 44px;gap: 15px;}
html body header.header.cb-unified-header nav.cb-unified-nav > a{height: 40px;padding: 7px 0;}
}
html body header.header.cb-unified-header:has(> nav.cb-unified-nav){box-sizing: border-box;display: grid;grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);grid-template-rows: 64px;align-items: center;width: 100%;height: 82px;min-height: 82px;padding: 9px max(3vw, 20px);column-gap: 12px;row-gap: 0;flex-wrap: nowrap;}
html body header.header.cb-unified-header:has(> nav.cb-unified-nav) > .brand{display: flex;grid-column: 1;grid-row: 1;justify-self: start;align-self: center;align-items: center;min-width: 0;margin: 0;}
html body header.header.cb-unified-header > nav.cb-unified-nav{box-sizing: border-box;display: flex;grid-column: 2;grid-row: 1;justify-self: center;align-self: center;flex: none;align-items: center;justify-content: safe center;flex-wrap: nowrap;gap: clamp(9px, 1.15vw, 18px);width: max-content;max-width: min(100%, calc(100vw - 520px));min-width: 0;height: 48px;margin: 0;padding: 0;overflow-x: auto;overflow-y: hidden;scrollbar-width: none;}
html body header.header.cb-unified-header > nav.cb-unified-nav::-webkit-scrollbar{display: none;}
html body header.header.cb-unified-header > nav.cb-unified-nav > a{position: relative;box-sizing: border-box;display: inline-flex;flex: 0 0 auto;align-items: center;justify-content: center;height: 44px;margin: 0;padding: 9px 0;border: 0;border-bottom: 2px solid transparent;border-radius: 0;background: transparent;color: #333;font: 400 .88rem/1.3 Arial, Helvetica, sans-serif;letter-spacing: normal;text-decoration: none;text-transform: none;white-space: nowrap;}
html body header.header.cb-unified-header > nav.cb-unified-nav > a:hover,
html body header.header.cb-unified-header > nav.cb-unified-nav > a[aria-current="page"]{color: #111;border-bottom-color: #111;font-weight: 400;}
html body header.header.cb-unified-header > nav.cb-unified-nav .cb-nav-unread{position: absolute;top: -1px;right: -9px;display: inline-block;margin: 0;padding: 1px 4px;border-radius: 9px;background: #111;color: #fff;font: 400 10px/1.2 Arial, Helvetica, sans-serif;}
@media (max-width: 1320px){html body header.header.cb-unified-header:has(> nav.cb-unified-nav){grid-template-columns: minmax(0, 1fr);grid-template-rows: 58px 44px;height: 122px;min-height: 122px;padding: 8px 20px 12px;column-gap: 0;row-gap: 0;}
html body header.header.cb-unified-header:has(> nav.cb-unified-nav) > .brand{grid-column: 1;grid-row: 1;}
html body header.header.cb-unified-header > nav.cb-unified-nav{grid-column: 1;grid-row: 2;justify-self: center;max-width: 100%;height: 44px;gap: 15px;}
html body header.header.cb-unified-header > nav.cb-unified-nav > a{height: 40px;padding: 7px 0;}
}

/* Phones: the member/admin menu wraps onto centred lines so every link stays visible. */
@media (max-width: 600px){
html body header.header.cb-unified-header:has(> nav.cb-unified-nav){grid-template-rows: 58px auto;height: auto;min-height: 122px;}
html body header.header.cb-unified-header > nav.cb-unified-nav{flex-wrap: wrap;justify-content: center;width: 100%;height: auto;row-gap: 0;column-gap: 15px;overflow: visible;}
html body header.header.cb-unified-header > nav.cb-unified-nav > a{height: 36px;padding: 6px 0;}
}

/* Phones and tablets (up to 1000px; was 760px until 25 Oct 2026, when tablets had to swipe the
   member menu sideways): the menu folds into a "Menu" (hamburger) button (includes/mobile-menu.js).
   Only applies once the script has added the button (header.cb-menu-ready). */
.cb-menu-toggle{display:none;}
@media (max-width: 1000px){
html body header.header.cb-menu-ready{display:flex !important;flex-wrap:wrap !important;column-gap:10px !important;align-items:center !important;justify-content:space-between !important;gap:8px 12px !important;height:auto !important;min-height:64px !important;padding:8px 16px !important;}
html body header.header.cb-menu-ready > .brand{order:1;margin:0 auto 0 0 !important;}
html body header.header.cb-menu-ready > .langs{order:2;margin:0 !important;}
html body header.header.cb-menu-ready > .cb-menu-toggle{order:3;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;box-sizing:border-box;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #ccc;border-radius:11px;background:#fff;color:#111;font:400 .9rem/1 Arial,Helvetica,sans-serif;cursor:pointer;}
html body header.header.cb-menu-ready > .cb-menu-toggle:focus-visible{outline:2px solid #555;outline-offset:2px;}
.cb-menu-bars{display:inline-flex;flex-direction:column;justify-content:space-between;width:20px;height:14px;}
.cb-menu-bars > span{display:block;height:2px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s;}
header.cb-menu-open .cb-menu-bars > span:nth-child(1){transform:translateY(6px) rotate(45deg);}
header.cb-menu-open .cb-menu-bars > span:nth-child(2){opacity:0;}
header.cb-menu-open .cb-menu-bars > span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
html body header.header.cb-menu-ready > nav.cb-unified-nav,
html body header.header.cb-menu-ready > nav.cb-primary-nav{display:none !important;}
html body header.header.cb-menu-ready.cb-menu-open > nav.cb-unified-nav,
html body header.header.cb-menu-ready.cb-menu-open > nav.cb-primary-nav{order:4;display:flex !important;flex-direction:column !important;flex-wrap:nowrap !important;align-items:stretch !important;justify-content:flex-start !important;gap:0 !important;width:100% !important;max-width:none !important;height:auto !important;margin:4px 0 0 !important;padding:4px 0 0 !important;border-top:1px solid #e3e3e3;overflow:visible !important;white-space:normal !important;}
html body header.header.cb-menu-ready.cb-menu-open > nav > a{display:flex !important;justify-content:flex-start !important;width:100% !important;height:auto !important;min-height:44px;padding:11px 4px !important;border-bottom:1px solid #eee !important;font-size:1rem !important;}
html body header.header.cb-menu-ready.cb-menu-open > nav > a[aria-current="page"],
html body header.header.cb-menu-ready.cb-menu-open > nav > a.active{font-weight:700 !important;}
html body header.header.cb-menu-ready.cb-menu-open > nav .cb-nav-unread{position:static !important;margin-left:8px !important;}
/* The open menu covers the page instead of pushing it down (12 Nov 2026, the founder): a panel under the
   header, scrolling on its own if it is taller than the screen, with the page dimmed behind it (the second shadow, which starts under the header). */
html body header.header.cb-menu-ready.cb-menu-open{position:relative !important;z-index:1000 !important;}
html body header.header.cb-menu-ready.cb-menu-open > nav.cb-unified-nav,
html body header.header.cb-menu-ready.cb-menu-open > nav.cb-primary-nav{position:absolute !important;top:100% !important;left:0 !important;right:0 !important;z-index:1001 !important;margin:0 !important;padding:4px 16px 12px !important;background:#fff !important;border-top:1px solid #e3e3e3;border-bottom:1px solid #ddd;box-shadow:0 12px 24px rgba(0,0,0,.18),0 100vh 0 100vh rgba(0,0,0,.35);max-height:calc(100svh - 72px) !important;overflow-y:auto !important;overscroll-behavior:contain;}
}

/* Narrow phones (up to 420px, e.g. a Galaxy S24 Ultra at 320px): keep the logo, name, languages and
   menu button on one line by trimming spacing and sizes slightly. */
@media (max-width: 420px){
html body header.header.cb-menu-ready{flex-wrap:wrap !important;padding:8px 10px !important;column-gap:8px !important;}
html body header.header.cb-menu-ready > .brand{gap:7px;min-width:0;flex:0 1 auto;}
html body header.header.cb-menu-ready > .brand img{width:38px;height:38px;}
html body header.header.cb-menu-ready > .brand .brand-name{font-size:1.1rem;}
html body header.header.cb-menu-ready > .langs{gap:6px;font-size:.72rem;}
html body header.header.cb-menu-ready > .cb-menu-toggle{flex:0 0 42px;width:42px;height:42px;min-height:42px;}
}

/* More in the member menu (17 Nov 2026; includes/member-navigation.php): two columns, Find and My tools. On computers
   the panel floats under the header (the menu bar clips anything inside it); in the phone menu it opens in place. */
html body header.header nav .cb-nav-more{flex:0 0 auto;position:static;}
html body header.header nav .cb-nav-more > summary{display:inline-flex;align-items:center;height:44px;padding:0 4px;cursor:pointer;list-style:none;color:#555;font-size:inherit;white-space:nowrap;}
html body header.header nav .cb-nav-more > summary::-webkit-details-marker{display:none;}
html body header.header nav .cb-nav-more > summary::after{content:"";width:7px;height:7px;margin:0 0 4px 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);}
html body header.header nav .cb-nav-more[open] > summary{color:#111;}
html body header.header nav .cb-nav-more-panel{position:fixed;top:68px;right:max(16px,calc((100vw - 1200px)/2));z-index:1002;display:grid;grid-template-columns:repeat(2,minmax(170px,auto));gap:4px 28px;padding:16px 20px;background:#fff;border:1px solid #ddd;border-radius:11px;box-shadow:0 10px 30px rgba(0,0,0,.15);}
html body header.header nav .cb-nav-more-panel p{margin:0 0 6px;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#888;}
html body header.header nav .cb-nav-more-panel a{display:block;padding:8px 0;color:#111;text-decoration:none;white-space:nowrap;border:0;height:auto;}
html body header.header nav .cb-nav-more-panel a:hover,html body header.header nav .cb-nav-more-panel a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px;}
@media (max-width:1000px){
html body header.header.cb-menu-open nav .cb-nav-more > summary{height:auto;padding:12px 0;color:#111;font-weight:700;}
html body header.header.cb-menu-open nav .cb-nav-more-panel{position:static;grid-template-columns:1fr;gap:0;padding:0 0 8px 12px;border:0;box-shadow:none;background:transparent;}
}
