/* Shared navigation: direct links in normal flow; no service overlay. */
.fx-brand-social{box-sizing:border-box;display:flex;align-items:center;gap:24px;width:calc(100% - 40px);max-width:1200px;margin:36px auto 20px;padding:24px 0;border-top:1px solid var(--fx-line,#c6d7e3);color:var(--fx-ink,#102c3d);font:14px/1.7 Tahoma,Arial,sans-serif;text-align:start}
.fx-brand-social>div{flex:0 0 180px;min-width:0}.fx-brand-social h2{margin:0;font:700 20px/1.6 Tahoma,Arial,sans-serif;color:var(--fx-ink,#102c3d)}.fx-brand-social p{margin:4px 0 0;font:12px/1.7 Tahoma,Arial,sans-serif;color:var(--fx-muted,#536b7b)}
.fx-brand-social>nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:10px;flex:1;min-width:0}
.fx-brand-social>nav>a{box-sizing:border-box;display:flex;align-items:center;gap:9px;min-width:0;min-height:64px;padding:10px 12px;border:1px solid var(--fx-line,#c6d7e3);border-radius:14px;background:var(--fx-panel,#fff);color:var(--fx-ink,#102c3d);font:12px/1.6 Tahoma,Arial,sans-serif;text-decoration:none;transform:none}
.fx-brand-social>nav>a:hover{border-color:var(--fx-accent,#007c83);background:var(--fx-panel-alt,#e5f1f5)}.fx-brand-social>nav>a:focus-visible{outline:3px solid var(--fx-accent,#007c83);outline-offset:3px}
.fx-brand-social>nav>a>svg{display:block;width:22px;height:22px;flex:0 0 22px;fill:none;stroke:var(--fx-accent,#007c83);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.fx-brand-social>nav>a>span{display:grid;min-width:0;gap:2px}.fx-brand-social strong{font-size:12px;color:inherit}.fx-brand-social bdi{font:11px/1.6 Tahoma,Arial,sans-serif;color:var(--fx-muted,#536b7b);overflow-wrap:anywhere}
.study-v3.in-classroom>.fx-brand-social{display:none!important}
@media(max-width:1000px){.fx-brand-social{flex-direction:column;align-items:stretch;gap:16px}.fx-brand-social>div{flex:auto}}
@media(max-width:700px){.fx-brand-social>nav{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-brand-social{margin-top:24px;padding-top:20px}}
@media print{.fx-brand-social{display:none!important}}
.fx-journey{box-sizing:border-box;display:flex;align-items:center;gap:14px;width:100%;max-width:1240px;margin:0 auto;padding:14px max(20px,env(safe-area-inset-left)) 0;color:var(--fx-ink);font:13px/1.6 Tahoma,Arial,sans-serif}
.fx-journey .fx-journey-back,.fx-journey .fx-journey-home{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:10px 14px;border:1px solid var(--fx-line);border-radius:12px;background:var(--fx-panel);color:var(--fx-ink);text-decoration:none;font:inherit;font-weight:700;line-height:1.5;cursor:pointer;flex:none;transform:none}
.fx-journey .fx-journey-back{max-width:46%;text-align:start;white-space:normal;overflow-wrap:anywhere}.fx-journey-back>span:last-child{min-width:0}.fx-journey .fx-journey-back:disabled{opacity:.5;cursor:default}.fx-journey .fx-journey-home{background:transparent;border-color:transparent;color:var(--fx-muted);font-size:12px}.fx-journey-current{flex:1;min-width:0;color:var(--fx-muted);font-weight:700;overflow-wrap:anywhere}.fx-journey-arrow{font:22px/1 Arial,sans-serif}.fx-journey:dir(rtl) .fx-journey-arrow{transform:rotate(180deg)}.fx-journey [hidden]{display:none!important}
body>header.fx-journey-header{box-sizing:border-box;position:relative;z-index:60;display:flex;align-items:center;flex-wrap:wrap;gap:12px;width:100%;max-width:none;min-height:70px;padding:12px clamp(14px,3vw,44px);background:var(--fx-bg);color:var(--fx-ink);border-bottom:1px solid var(--fx-line);box-shadow:none}
body>header.fx-journey-header>.brand{order:0;display:flex;flex-direction:column;justify-content:center;flex:0 0 auto;min-height:44px;margin:0;color:var(--fx-ink);line-height:1.2;text-decoration:none}
body>header.fx-journey-header .brand :is(span,small){color:var(--fx-accent);margin-top:5px;line-height:1.2}
header [data-fakkiha-legacy-nav],header .site-links,header .fakkiha-service-links{display:none!important}
body>header.fx-journey-header>.fx-primary-links{order:1;display:flex;align-items:center;gap:4px;min-width:0;flex:0 1 auto;margin-inline-start:12px}
.fx-primary-links a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:12px;color:var(--fx-muted);text-decoration:none;text-align:center;white-space:normal;font:700 12px/1.5 Tahoma,Arial,sans-serif}
.fx-primary-links a:hover,.fx-primary-links a[aria-current=page]{background:var(--fx-panel-alt);border-color:var(--fx-line);color:var(--fx-ink)}.fx-primary-links a[aria-current=page]{box-shadow:inset 0 -3px var(--fx-accent)}
body>header.fx-journey-header nav.fx-journey-nav{order:2;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:nowrap;gap:8px;margin:0;margin-inline-start:auto;padding:0;min-width:0;max-width:100%;width:auto;border:0;background:transparent;box-shadow:none;grid-column:auto;grid-row:auto}
body>header.fx-journey-header .fx-services-link{order:1;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 13px;border:1px solid var(--fx-line);border-radius:12px;background:var(--fx-panel);color:var(--fx-ink);font:700 13px/1.5 Tahoma,Arial,sans-serif;text-decoration:none;white-space:nowrap}
body>header.fx-journey-header .fx-services-link[aria-current=page]{border-color:var(--fx-accent);background:var(--fx-panel-alt)}
body>header.fx-journey-header button.fx-language-switch{order:2;box-sizing:border-box;position:static;inset:auto;flex:0 0 44px;width:44px;min-width:44px!important;min-height:44px;margin:0;padding:10px 6px;border:1px solid var(--fx-line);border-radius:12px;background:var(--fx-panel);color:var(--fx-ink);font:700 12px/1.5 Tahoma,Arial,sans-serif;grid-column:auto;grid-row:auto;cursor:pointer}
body>header.fx-journey-header .fkn-toolbar{order:3;position:relative;display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:nowrap;gap:8px;width:auto;min-width:0;max-width:100%;margin:0;grid-column:auto;grid-row:auto}
body>header.fx-journey-header :is(button,.fkn-link,.fkn-account-summary){box-sizing:border-box;min-height:44px;border:1px solid var(--fx-line);border-radius:12px;background:var(--fx-panel);color:var(--fx-ink);box-shadow:none;transform:none;line-height:1.5}
body>header.fx-journey-header :is(button,.fkn-link,.fkn-account-summary,.fx-services-link):hover:not(:disabled){background:var(--fx-panel-alt);border-color:var(--fx-accent);transform:none}
body>header.fx-journey-header .fkn-bell{box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;padding:10px}
body>header.fx-journey-header .fkn-account-menu{position:relative;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
body>header.fx-journey-header .fkn-account-summary{display:flex;align-items:center;justify-content:center;gap:6px;min-width:64px;padding:10px 11px;font:13px/1.5 Tahoma,Arial,sans-serif;white-space:nowrap;list-style:none;cursor:pointer}
.fkn-account-summary::-webkit-details-marker{display:none}.fkn-account-summary:after{content:'⌄';font:16px/1 Arial,sans-serif;opacity:.75}
body>header.fx-journey-header .fkn-account-panel{box-sizing:border-box;position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:100;width:216px;max-width:calc(100vw - 28px);display:grid;gap:4px;padding:8px;border:1px solid var(--fx-line);border-radius:14px;background:var(--fx-panel);color:var(--fx-ink);box-shadow:0 12px 35px #0003;text-align:start}
body>header.fx-journey-header .fkn-account-menu:not([open])>.fkn-account-panel{display:none}
body>header.fx-journey-header .fkn-account-panel :is(.fkn-link,.fkn-button){width:100%;justify-content:flex-start;padding:10px 12px;min-height:44px;border-color:transparent;border-radius:10px;font:13px/1.6 Tahoma,Arial,sans-serif;color:var(--fx-ink)}
body>header.fx-journey-header .fkn-account-panel .fkn-logout{border-top:1px solid var(--fx-line);border-radius:0 0 10px 10px}
:is(.fx-journey,body>header.fx-journey-header) :is(a,button,summary,input):focus-visible{outline:3px solid var(--fx-accent);outline-offset:3px}
.fkn-panel,.fkn-dialog,.fkn-toast,.fkn-incoming-toast{background:var(--fx-panel);color:var(--fx-ink);border-color:var(--fx-line)}.fkn-panel :is(h2,h3,strong),.fkn-dialog :is(h2,h3){color:var(--fx-ink)}.fkn-panel-status,.fkn-item time,.fkn-dialog p,.fkn-toast p,.fkn-incoming-toast p{color:var(--fx-muted)}.fkn-item{border-color:var(--fx-line)}.fkn-unread,.fkn-item-content:hover{background:var(--fx-panel-alt);border-inline-start-color:var(--fx-accent)}.fkn-panel .fkn-button,.fkn-dialog .fkn-button,.fkn-toast button,.fkn-incoming-toast button{background:var(--fx-panel-alt);color:var(--fx-ink);border-color:var(--fx-line)}.fkn-dialog .fkn-logout-confirm{background:#ac3044;color:#fff;border-color:#ac3044}.fkn-toast-copy p{color:var(--fx-muted)}.fkn-toast-link{color:var(--fx-accent)}body>header.fx-journey-header .fkn-badge{border-color:var(--fx-panel)}
.fx-service-skip{position:fixed;inset-block-start:8px;inset-inline-start:16px;z-index:10000;max-width:calc(100vw - 32px);padding:12px 18px;border:2px solid var(--fx-accent);border-radius:12px;background:var(--fx-panel);color:var(--fx-ink);transform:translateY(-180%);font:700 14px/1.6 Tahoma,Arial,sans-serif;text-decoration:none}.fx-service-skip:focus{transform:translateY(0);outline:3px solid var(--fx-accent);outline-offset:3px}
@media(max-width:1100px){body>header.fx-journey-header>.fx-primary-links{order:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1 1 100%;width:100%;margin:0}.fx-primary-links a{padding-inline:8px}}
@media(max-width:600px){body>header.fx-journey-header{padding:10px 14px;gap:8px}body>header.fx-journey-header>.brand{font-size:25px;line-height:1.2}body>header.fx-journey-header .brand :is(span,small){font-size:9px;letter-spacing:2px}body>header.fx-journey-header nav.fx-journey-nav{gap:6px;position:static}body>header.fx-journey-header .fkn-toolbar{gap:6px}body>header.fx-journey-header .fx-services-link{font-size:12px;padding-inline:10px}.fx-primary-links a{font-size:11px;padding-inline:4px}body>header.fx-journey-header .fkn-account-summary{font-size:12px;min-width:61px;padding-inline:9px}body>header.fx-journey-header .fkn-link{font-size:12px;padding:10px 11px}.fx-journey{padding:12px 14px 0;gap:8px;font-size:12px}.fx-journey .fx-journey-back{padding-inline:10px}.fx-journey .fx-journey-home{padding-inline:8px}.fx-journey-current{font-size:11px}body>header.fx-journey-header .fkn-panel{position:fixed;top:126px;inset-inline:14px;width:auto;max-height:65dvh}.fkn-account-panel{max-width:calc(100vw - 28px)}}
@media(max-width:360px){body>header.fx-journey-header{padding-inline:10px;gap:6px}body>header.fx-journey-header>.brand{font-size:22px}body>header.fx-journey-header nav.fx-journey-nav,body>header.fx-journey-header .fkn-toolbar{gap:5px}body>header.fx-journey-header .fx-services-link{padding-inline:8px}.fx-primary-links a{font-size:10px}}
@media(max-width:820px),(pointer:coarse){body:has(>header.fx-journey-header) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=hidden]),body:has(>header.fx-journey-header) select,body:has(>header.fx-journey-header) textarea{font-size:calc(16px * var(--fx-font-scale,1))!important}}
@media(prefers-reduced-motion:reduce){.fx-journey *{transition:none!important;scroll-behavior:auto!important}}html[data-reduce-motion=true] .fx-journey *{transition:none!important;scroll-behavior:auto!important}

/* Policy text is unchanged; navigation and surfaces use the platform palette. */
header.fx-journey-header .legal-links{display:none!important}
html[data-fakkiha-theme] body.legal-page{--legal-bg:var(--fx-bg);--legal-surface:var(--fx-panel);--legal-surface-soft:var(--fx-panel-alt);--legal-ink:var(--fx-ink);--legal-muted:var(--fx-muted);--legal-line:var(--fx-line);--legal-link:var(--fx-accent);--legal-accent:var(--fx-accent);background:var(--fx-bg);color:var(--fx-ink)}

.fx-primary-links a,.fx-services-link,.fx-language-switch{touch-action:manipulation}

/* Header controls are isolated from old page-specific IDs and flex sizes. */
body>header.fx-journey-header nav.fx-journey-nav{flex:0 0 auto}
body>header.fx-journey-header .fx-services-link,body>header.fx-journey-header .fkn-toolbar{flex:0 0 auto}
body>header.fx-journey-header .fx-journey-nav button.fx-language-switch{position:static!important;inset:auto!important;display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;height:44px;min-width:44px!important;width:44px;padding:6px!important;font:700 12px/1.5 Tahoma,Arial,sans-serif!important;white-space:nowrap;overflow-wrap:normal}
body>header.fx-journey-header .fkn-toolbar :is(.fkn-link,.fkn-button,.fkn-account-summary){min-height:44px!important;white-space:nowrap}

/* A compact header, with an expandable menu in the page flow. No backdrop. */
body>header.fx-journey-header{min-height:64px;padding:10px clamp(14px,3vw,36px);gap:10px;align-items:center}
body>header.fx-journey-header>.brand{font-size:30px}
body>header.fx-journey-header nav.fx-journey-nav{order:1;gap:8px;margin-inline-start:auto}
body>header.fx-journey-header .fx-menu-toggle{order:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-width:44px;height:44px;padding:9px 12px;font:700 13px/1.5 Tahoma,Arial,sans-serif;cursor:pointer}
.fx-menu-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;flex:none}
body>header.fx-journey-header>.fx-site-menu{order:4;box-sizing:border-box;flex:1 1 100%;width:100%;max-width:1240px;margin:4px auto 0;padding:18px;border:1px solid var(--fx-line);border-radius:16px;background:var(--fx-panel);color:var(--fx-ink);max-height:70dvh;overflow:auto;overscroll-behavior:contain;text-align:start}
body>header.fx-journey-header>.fx-site-menu[hidden],.fx-site-menu [hidden]{display:none!important}
.fx-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.fx-menu-head h2{font:700 16px/1.6 Tahoma,Arial,sans-serif;margin:0;color:var(--fx-ink)}
body>header.fx-journey-header .fx-menu-close{padding:8px 12px;min-height:44px;font:13px/1.5 Tahoma,Arial,sans-serif;cursor:pointer}
.fx-site-menu .fx-primary-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-bottom:14px;border-bottom:1px solid var(--fx-line);margin:0 0 14px}
.fx-site-menu .fx-primary-links a{border-color:var(--fx-line);background:var(--fx-panel-alt);font-size:13px}
.fx-menu-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.fx-menu-groups h3{margin:0 0 7px;color:var(--fx-muted);font:700 12px/1.6 Tahoma,Arial,sans-serif}
.fx-menu-groups section>div{display:grid;gap:4px}.fx-menu-groups a{box-sizing:border-box;display:flex;align-items:center;gap:9px;padding:10px 12px;min-height:44px;color:var(--fx-ink);border-radius:10px;text-decoration:none;font:13px/1.6 Tahoma,Arial,sans-serif}
.fx-menu-groups a svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--fx-accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.fx-menu-groups a:hover,.fx-menu-groups a[aria-current=page]{background:var(--fx-panel-alt);color:var(--fx-accent)}
.fx-menu-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;margin-top:14px;border-top:1px solid var(--fx-line)}.fx-menu-directory{display:inline-flex;align-items:center;min-height:44px;color:var(--fx-accent);text-decoration:none;font:700 13px/1.6 Tahoma,Arial,sans-serif}
body>header.fx-journey-header .fx-menu-foot button.fx-language-switch{position:static!important;inset:auto!important;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;height:44px;min-height:44px!important;min-width:44px!important;width:44px;padding:6px!important;font:700 12px/1.5 Tahoma,Arial,sans-serif!important;white-space:nowrap}
.fx-journey{padding-top:8px;padding-bottom:0;gap:10px}.fx-journey .fx-journey-home{margin-inline-start:auto}.fx-journey-current{font-size:12px}
body>header.fx-journey-header .fx-account-icon{display:none}
@media(max-width:700px){body>header.fx-journey-header{padding:10px 14px;gap:8px}body>header.fx-journey-header>.brand{font-size:25px}body>header.fx-journey-header nav.fx-journey-nav{gap:6px}body>header.fx-journey-header .fx-menu-toggle{width:44px;padding:10px}body>header.fx-journey-header .fx-menu-toggle>span{display:none}body>header.fx-journey-header .fx-services-link{padding:9px 11px}.fx-menu-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.fx-site-menu .fx-primary-links{grid-template-columns:repeat(2,minmax(0,1fr))}body>header.fx-journey-header>.fx-site-menu{padding:14px}.fx-journey-current{display:none}body>header.fx-journey-header .fkn-panel{top:74px;max-height:70dvh}}
@media(max-width:420px){body>header.fx-journey-header .fkn-account-summary{min-width:44px;width:44px;padding:10px}body>header.fx-journey-header .fkn-account-summary:after{display:none}body>header.fx-journey-header .fx-account-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body>header.fx-journey-header .fx-account-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}body>header.fx-journey-header .fkn-toolbar>.fkn-link{width:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center}.fx-menu-groups{grid-template-columns:1fr;gap:16px}.fx-journey .fx-journey-back{max-width:75%}}
@media(max-width:700px){.fx-menu-groups{grid-template-columns:1fr;gap:16px}.fx-menu-groups section>div{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-menu-groups a{min-width:0;padding:10px 8px}.fx-menu-groups a>span{min-width:0;overflow-wrap:anywhere}}
@media(max-width:360px){.fx-menu-groups section>div{grid-template-columns:1fr}}
body>header.fx-journey-header>.brand{flex-direction:row;align-items:center;gap:10px}
body>header.fx-journey-header>.brand>.fx-brand-mark{display:block;flex:0 0 48px;width:48px;height:48px;max-width:none;object-fit:contain;border-radius:50%}
body>header.fx-journey-header>.brand>.fx-brand-wordmark{display:block;min-width:0;margin:0;color:var(--fx-ink);font:800 27px/1.2 Tahoma,Arial,sans-serif;letter-spacing:normal}
body>header.fx-journey-header>.brand>.fx-brand-wordmark>:is(span,small){display:block;margin-top:5px;color:var(--fx-accent);font:700 10px/1.2 Tahoma,Arial,sans-serif;letter-spacing:3px}
@media(max-width:700px){body>header.fx-journey-header>.brand{gap:8px}body>header.fx-journey-header>.brand>.fx-brand-mark{flex-basis:40px;width:40px;height:40px}body>header.fx-journey-header>.brand>.fx-brand-wordmark{font-size:22px}body>header.fx-journey-header>.brand>.fx-brand-wordmark>:is(span,small){font-size:9px;letter-spacing:2px}}

/* Shared narrow/short viewport overlays. Authored content and desktop menus remain in their normal flow. */
html.fx-scroll-locked{overflow:hidden!important;overscroll-behavior:none}
body.fx-scroll-locked{position:fixed!important;inset-inline:0;width:100%;overflow:hidden!important}
.fx-overlay-backdrop{position:fixed;inset:0;z-index:10003;background:#0a181f66;touch-action:none}
body>header[data-fx-overlay-header]{position:fixed!important;inset-inline:0;inset-block-start:var(--fx-overlay-vv-top,0px)!important;backdrop-filter:none!important;z-index:10004!important}
body>header.fx-journey-header>.fx-site-menu[data-fx-overlay-active],body>header.fx-journey-header :is(.fkn-panel,.fkn-account-panel)[data-fx-overlay-active]{box-sizing:border-box;position:fixed;inset-inline:14px;inset-block-start:var(--fx-overlay-top,76px);width:auto;max-width:none;max-height:var(--fx-overlay-room,calc(100dvh - 90px));margin:0;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y}
body>header.fx-journey-header>.fx-site-menu[data-fx-overlay-active]{inset-inline:max(14px,env(safe-area-inset-left),env(safe-area-inset-right))}
body>header.fx-journey-header .fkn-account-panel{max-height:min(360px,calc(var(--fx-visual-height,100dvh) - 100px));overflow-y:auto;overscroll-behavior-y:contain}
