/* Tech Guru One Connect (1.6): the header's account button and its menu. Colours follow the brand site; fonts come from the theme. */
.tg1c-hdr-host > :not(.tg1c-hdr) { display: none !important; }
.tg1c-hdr { --h-ink: #0e2240; --h-nav: #33435a; --h-muted: #55657a; --h-blue: #1f6fc0; --h-blue-soft: #eaf3fd; --h-blue-ink: #1f5fae; --h-line: #d3dde9; --h-line-2: #edf1f5; --h-bad: #a12a2a;
    position: relative; display: inline-flex; font-family: inherit; color: var(--h-ink); line-height: 1.2; }
.tg1c-hdr *, .tg1c-hdr *::before, .tg1c-hdr *::after { box-sizing: border-box; }
.tg1c-hdr__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px 4px 4px; margin: 0;
    border: 1px solid var(--h-line); border-radius: 999px; background: #fff; color: var(--h-ink); cursor: pointer; font: inherit;
    transition: border-color .15s, box-shadow .15s; }
.tg1c-hdr__btn:hover, .tg1c-hdr.is-open .tg1c-hdr__btn { border-color: #b9c8da; box-shadow: 0 4px 14px -6px rgba(14, 34, 64, .25); background: #fff; color: var(--h-ink); }
.tg1c-hdr__btn:focus-visible { outline: 3px solid rgba(31, 111, 192, .35); outline-offset: 2px; }
.tg1c-hdr__av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 999px; background: var(--h-blue); color: #fff; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.tg1c-hdr__av--lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; }
.tg1c-hdr__who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 160px; text-align: left; }
.tg1c-hdr__name { font-weight: 700; font-size: 14px; }
.tg1c-hdr__acct { font-size: 12px; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tg1c-hdr__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tg1c-hdr__caret { color: var(--h-muted); flex: 0 0 auto; transition: transform .15s; }
.tg1c-hdr.is-open .tg1c-hdr__caret { transform: rotate(180deg); }

.tg1c-hdr__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 32px); background: #fff;
    border: 1px solid #dfe5ec; border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(14, 34, 64, .28); padding: 8px; z-index: 9999; text-align: left; }
.tg1c-hdr__menu[hidden] { display: none; }
.tg1c-hdr__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* keeps hover across the gap */
.tg1c-hdr__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--h-line-2); margin-bottom: 6px; }
.tg1c-hdr__headtext { display: flex; flex-direction: column; min-width: 0; }
.tg1c-hdr__headtext strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg1c-hdr__headtext span { font-size: 13px; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg1c-hdr__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; margin: 0;
    border: 0; border-radius: 10px; background: none; color: var(--h-nav); text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.tg1c-hdr__item:hover, .tg1c-hdr__item:focus-visible { background: var(--h-blue-soft); color: var(--h-blue-ink); outline: none; }
.tg1c-hdr__item[aria-current="page"] { color: var(--h-blue-ink); }
.tg1c-hdr__label { display: flex; align-items: center; gap: 12px; }
.tg1c-hdr__meta { font-size: 12px; font-weight: 600; color: var(--h-muted); white-space: nowrap; }
.tg1c-hdr__out { margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--h-line-2); }
.tg1c-hdr__item--out { color: var(--h-bad); }
.tg1c-hdr__item--out:hover, .tg1c-hdr__item--out:focus-visible { background: #fdecec; color: var(--h-bad); }

/* Phone: only the avatar in the bar; the menu opens as a sheet under the header. */
@media (max-width: 767px) {
    .tg1c-hdr__who, .tg1c-hdr__caret { display: none; }
    .tg1c-hdr__btn { padding: 3px; min-height: 44px; gap: 0; }
    .tg1c-hdr__menu { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; max-width: none; max-height: calc(100vh - 88px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .tg1c-hdr * { transition: none !important; } }
