/* President's seven-app dock: buttons face left, red pole at extreme right. */
.president-section .president-grid{position:relative}
.hk-app-dock{position:absolute;right:max(0px,calc((100vw - 100%) / -2));top:18px;z-index:45;display:flex;align-items:stretch;gap:8px;pointer-events:none}
.hk-app-dock *{box-sizing:border-box}
.hk-dock-list{display:flex;flex-direction:column;gap:8px;align-items:flex-end;padding:8px 12px 8px 0;pointer-events:auto}
.hk-dock-pole{width:17px;min-height:550px;border:2px solid #eac25b;border-radius:14px;background:linear-gradient(90deg,#75001f,#ff3354 36%,#a90025 73%,#5c001b);box-shadow:0 0 0 3px #710b25,0 10px 26px #37000b7a;position:relative;pointer-events:none}
.hk-dock-pole:before,.hk-dock-pole:after{content:"";position:absolute;left:50%;transform:translateX(-50%);width:31px;height:31px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fff8bd,#edb734 48%,#a7670c);border:2px solid #ffdb77;box-shadow:0 3px 8px #3b170d7a}.hk-dock-pole:before{top:-17px}.hk-dock-pole:after{bottom:-17px}
.hk-dock-tab{--tab1:#a80032;--tab2:#580021;position:relative;min-height:64px;width:clamp(165px,14vw,220px);border:2px solid #f2c95f;border-radius:40px 8px 8px 40px;display:flex;align-items:center;gap:10px;text-align:left;padding:9px 13px;color:white;font:800 clamp(12px,1.04vw,16px)/1.18 system-ui,sans-serif;background:linear-gradient(115deg,var(--tab1),var(--tab2));box-shadow:0 6px 15px #21120c60,inset 0 2px 2px #ffffff85;cursor:pointer;transition:transform .2s,filter .2s}
.hk-dock-tab:after{content:"";position:absolute;right:-25px;top:calc(50% - 4px);width:25px;height:8px;background:linear-gradient(#f6d878,#a36a12);border-block:1px solid #ffde80}
.hk-dock-tab[aria-pressed="true"],.hk-dock-tab:hover{filter:brightness(1.14);transform:translateX(-5px)}
.hk-dock-tab .hk-dock-icon{flex:none;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#ffffff27;font-size:22px;border:1px solid #ffffff88}
.hk-dock-tab[data-app="assistant"]{--tab1:#0eaf43;--tab2:#00652e}.hk-dock-tab[data-app="bible"]{--tab1:#a522e9;--tab2:#530078}.hk-dock-tab[data-app="social"]{--tab1:#ffe855;--tab2:#e2a300;color:#24200a}.hk-dock-tab[data-app="walk"]{--tab1:#1689ec;--tab2:#004aaf}.hk-dock-tab[data-app="study"]{--tab1:#e95b0a;--tab2:#9a1907}.hk-dock-tab[data-app="eternity"]{--tab1:#04a69b;--tab2:#005657}
.hk-app-window{position:absolute;right:calc(100% + 12px);top:18px;width:min(460px,calc(100vw - 310px));height:490px;display:none;flex-direction:column;border:3px solid #e7b949;border-radius:18px;background:#fff;box-shadow:0 18px 50px #0009;overflow:hidden;pointer-events:auto;resize:both;min-width:300px;min-height:270px;max-width:calc(100vw - 32px);max-height:80vh}
.hk-app-window[data-open="true"]{display:flex}
.hk-app-window-bar{display:flex;align-items:center;gap:9px;padding:11px 12px;background:linear-gradient(115deg,#a0002d,#530020);color:#fff;cursor:move;touch-action:none}
.hk-app-window-title{flex:1;font-weight:800;font-size:14px}.hk-app-window-bar button{border:1px solid #fff7;color:white;background:#ffffff1c;border-radius:7px;min-width:31px;min-height:31px;cursor:pointer}
.hk-app-window-frame{flex:1;width:100%;border:0;background:#f5f9f6}.hk-app-window-help{padding:8px 12px;color:#345347;background:#f4f9f5;font-size:12px;line-height:1.4}
.hk-app-window-actions{display:flex;gap:7px;padding:9px;background:#fff;flex-wrap:wrap}.hk-app-window-actions button,.hk-app-window-actions a{flex:1;text-align:center;text-decoration:none;border:0;border-radius:9px;background:#91002a;color:#fff;font-weight:800;font-size:12px;padding:11px 7px;cursor:pointer}.hk-app-window-actions a{background:#edbd45;color:#271b06}
.hk-app-minimized{position:fixed;right:16px;bottom:18px;z-index:1200;border:2px solid #f0c55c;border-radius:30px;background:#8c002b;color:white;padding:12px 20px;font-weight:800;box-shadow:0 6px 20px #0005;cursor:pointer}
.hk-app-dock :is(button,a):focus-visible{outline:3px solid #ffeb78;outline-offset:3px}
@media(max-width:1050px){.hk-app-dock{right:0;top:10px}.hk-dock-tab{width:145px;min-height:56px;font-size:12px;padding:7px}.hk-dock-tab .hk-dock-icon{width:32px;height:32px;font-size:17px}.hk-dock-pole{min-height:500px}.hk-app-window{width:min(380px,calc(100vw - 220px));right:calc(100% + 5px)}}
@media(max-width:720px){.hk-app-dock{position:relative;right:auto;top:auto;margin:15px auto;max-width:100%;justify-content:flex-end}.hk-dock-list{gap:7px}.hk-dock-tab{width:min(235px,65vw)}.hk-dock-pole{min-height:510px}.hk-app-window{position:fixed;right:10px!important;left:10px!important;top:12vh!important;width:auto!important;height:65vh;max-height:76vh;z-index:1300}.president-section .president-grid{display:flex;flex-direction:column}.hk-app-dock{order:3}.hk-app-window-bar{touch-action:auto}}
@media(prefers-reduced-motion:reduce){.hk-dock-tab{transition:none!important}}

.hk-app-window-native{flex:1;display:grid;place-items:center;text-align:center;padding:32px 25px;background:linear-gradient(140deg,#f9fff9,#f9f1ff);font:700 16px/1.7 system-ui,sans-serif;color:#28533f}.hk-app-window-native[hidden]{display:none}

/* Keep the launcher in the visible right edge of the president section. */
.president-section{overflow:visible!important}
.president-section .president-grid{overflow:visible!important}
.hk-app-dock{right:0!important;z-index:100}
.hk-app-window{z-index:101}
.hk-app-minimized[hidden]{display:none!important}
.hk-app-window-frame[hidden]{display:none!important}
@media(min-width:721px){.president-section .president-photo{box-sizing:border-box}}
@media(max-width:720px){.president-section .president-photo{padding-right:0!important}.hk-app-dock{right:0!important}.hk-app-window{max-width:none!important;resize:none}}

/* Keep the source portrait uncropped by the launcher and clarify external embeds. */
.hk-app-window-help a{color:#145b43;text-decoration:underline;font-weight:700}.hk-app-window-frame{min-height:0}.hk-app-dock{isolation:isolate}

/* Shared reserved launcher location on Account 1 subpages: immediately before footer. */
.hk-page-app-section{position:relative;isolation:isolate;display:block;padding:34px max(18px,calc((100vw - 1240px)/2)) 38px;background:linear-gradient(108deg,#052d25 0%,#123d49 54%,#560d2e 100%);border-top:3px solid #d6ab51;border-bottom:3px solid #d6ab51;color:#fff;overflow:visible}
.hk-page-app-inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:28px;align-items:center;min-height:555px;max-width:1240px;margin:0 auto}
.hk-page-app-heading{align-self:center;max-width:720px;padding:20px 0}.hk-page-app-heading p{font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#efd075;font-weight:800;margin:0 0 15px}.hk-page-app-heading h2{font:700 clamp(30px,3vw,46px)/1.14 Georgia,serif;color:#fff;margin:0 0 18px}.hk-page-app-heading span{font-size:clamp(16px,1.6vw,20px);color:#f2eee9;line-height:1.6}
.hk-page-app-section .hk-app-dock{position:relative!important;right:auto!important;top:auto!important;justify-self:end;align-self:center;grid-column:2;grid-row:1;z-index:110}
.hk-page-app-section .hk-dock-tab{width:clamp(175px,18vw,230px)}
.hk-page-app-section .hk-app-window{right:calc(100% + 15px);top:16px}
@media(max-width:720px){.hk-page-app-section{padding:26px 16px 34px}.hk-page-app-inner{display:flex;flex-direction:column;align-items:stretch;min-height:0;gap:6px}.hk-page-app-heading{padding:12px 0;text-align:center}.hk-page-app-section .hk-app-dock{align-self:flex-end;right:0!important}.hk-page-app-section .hk-dock-tab{width:min(240px,69vw)}}

/* Approved original assistant portrait, not a generic robot icon. */
.hk-dock-tab[data-app="assistant"] .hk-dock-icon{overflow:hidden}
.hk-dock-tab[data-app="assistant"] .hk-dock-icon img{display:block;width:100%;height:100%;object-fit:contain}

/* Device safety: short screens, narrow phones and keyboard navigation. */
.hk-app-window{height:min(490px,calc(100dvh - 32px))}
.hk-app-window-actions :is(a,button){min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.hk-app-window-bar button{min-width:44px;min-height:44px}
@media(max-width:720px){.hk-app-window{top: max(8px,env(safe-area-inset-top))!important;height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:none!important;min-width:0!important;min-height:0!important}.hk-app-minimized{bottom:max(12px,env(safe-area-inset-bottom))}.hk-page-app-section .hk-app-dock{max-width:100%}}
@media(max-width:360px){.hk-dock-tab,.hk-page-app-section .hk-dock-tab{width:min(210px,68vw);min-height:52px}.hk-dock-list{padding-right:8px}.hk-dock-pole{width:12px}}

/* Contextual guidance for visitors, including assistive technology. */
.hk-app-feedback{margin:0;padding:8px 12px;font:600 12px/1.45 system-ui,sans-serif;color:#244736;background:#f1f8f3;border-bottom:1px solid #d9e7de}

/* Approved royal palette; reserve space above the portrait so the pole never obscures it. */
.hk-dock-tab{--tab1:#0736a8!important;--tab2:#061b57!important;color:#fff!important}
.hk-dock-tab:nth-child(even){--tab1:#c43b00!important;--tab2:#a32a00!important}
.hk-dock-pole{background:linear-gradient(90deg,#782200,#ef6900,#a32a00);box-shadow:0 0 0 3px #a32a00,0 10px 26px #78220055;min-height:470px}
.hk-app-window-bar{background:linear-gradient(115deg,#0736a8,#061b57)}
.hk-app-window-native,.hk-app-window-help,.hk-app-feedback{background:#f4f6ff;color:#061b57}
.hk-app-window-actions button,.hk-app-minimized{background:#a32a00;color:#fff}
.president-section .president-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr);grid-template-rows:auto auto;align-items:start}
.president-grid>.president-copy{grid-column:1;grid-row:1/span 2}
.president-grid>.hk-app-dock{position:relative!important;inset:auto!important;grid-column:2;grid-row:1;justify-self:end;margin:26px 0;max-width:100%}
.president-grid>.president-photo{grid-column:2;grid-row:2;align-self:end;width:100%;min-width:0}
@media(max-width:720px){.president-section .president-grid{display:flex}.president-grid>.hk-app-dock{order:2;align-self:flex-end}.president-grid>.president-photo{order:3}.hk-dock-pole{min-height:450px}}

/* Compact app windows on phones, with the real app viewport inside. */
.hk-app-window-frame{flex:1;min-height:0;width:100%;border:0;display:block;background:#fff}
@media(max-width:720px){.hk-app-window{position:fixed!important;left:auto!important;right:12px!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:min(350px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:min(550px,78dvh)!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;border-radius:18px}.hk-app-window-help,.hk-app-feedback{font-size:11px;padding:5px 8px}.hk-app-window-bar{padding:6px 8px}.hk-app-window-actions{padding:6px}.hk-dock-tab{min-height:46px!important;font-size:12px!important}.hk-dock-pole{min-height:430px}.hk-app-minimized{font-size:12px;padding:9px 12px}}
