/* All treatment is scoped to the three expandable items of the Astra header menus. */
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) > .tn-parent {
    --tn-ink: #124554;
    --tn-muted: #4d656b;
    --tn-border: #e1e8e7;
    position: relative;
}
.tn-parent .tn-icon {
    flex: none; display: block; width: 20px; height: 20px;
    fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-trigger {
    appearance: none; border: 0; border-radius: 9px; background: transparent; box-shadow: none;
    color: var(--tn-ink); font: inherit; text-transform: none; letter-spacing: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; line-height: 1.25; padding: 11px 12px;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-trigger:is(:hover,[aria-expanded="true"]) {
    color: var(--tn-ink); background: #eff6f4;
}
.tn-parent > .tn-trigger .tn-icon { width: 14px; height: 14px; transition: transform .17s; }
.tn-parent > .tn-trigger[aria-expanded="true"] .tn-icon { transform: rotate(180deg); }
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-panel[hidden] { display: none !important; }
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-parent .tn-panel:not([hidden]) {
    display: block !important; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    text-align: left; list-style: none; margin: 0; box-sizing: border-box;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-desktop > .tn-panel:not([hidden]) {
    --tn-card-width: 36%;
    position: absolute; top: 100%; right: auto; left: var(--tn-left,0); z-index: 9999;
    width: min(860px,calc(100vw - 32px)); min-width: 0; height: auto; min-height: 288px;
    max-height: min(75vh,630px); overflow-y: auto; overscroll-behavior: contain;
    padding: 23px calc(var(--tn-card-width) + 30px) 20px 21px;
    /* Percentage padding is relative to the containing block, so set the column using viewport units. */
    padding-right: calc(min(860px,100vw - 32px) * .36 + 30px);
    border: 1px solid var(--tn-border); border-radius: 20px; background: white;
    box-shadow: 0 22px 62px -22px #18394152, 0 4px 12px #123a4510;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-desktop > .tn-panel::before {
    content: attr(data-heading); display: block; width: auto; height: auto; position: static; transform: none;
    font: 700 10px/1.3 Montserrat,Arial,sans-serif; letter-spacing: .14em; text-transform: uppercase;
    color: var(--tn-muted); margin: 3px 0 8px 10px; background: none; border: 0; pointer-events:none;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-panel > li {
    display: block; position: static; width: auto; margin: 0; padding: 0; border: 0; line-height: 1.3;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-panel a.tn-row {
    display: flex; align-items: center; gap: 13px; width: 100%; height: auto; min-height: 0; box-sizing: border-box;
    padding: 10px; margin: 0; border: 0; border-radius: 11px; background: transparent; color: var(--tn-ink);
    white-space: normal; text-decoration: none; text-transform: none; text-align: left; line-height: 1.32;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-panel a.tn-row:is(:hover,:focus-visible) {
    background: #f1f6f4; color: var(--tn-ink);
}
.tn-panel .tn-row::before,.tn-panel .tn-row::after { display:none !important; }
.tn-panel .tn-badge {
    flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:#22545e; background:#eef5f3;
}
.tn-panel :is(.tn-book,.tn-spark) { color:#635182; background:#f0edf7; }
.tn-panel :is(.tn-support,.tn-check) { color:#962b57; background:#fcebf2; }
.tn-panel .tn-description,.tn-panel .tn-label { display:block; font-family:Montserrat,Arial,sans-serif; }
.tn-panel .tn-label { font-size:15px; font-weight:650; letter-spacing:-.025em; line-height:1.28; }
.tn-panel .tn-description { margin-top:4px; color:var(--tn-muted); font-size:12px; font-weight:450; line-height:1.4; }
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-panel > .tn-feature-item {
    position: absolute; inset: 13px 13px 13px auto; width: var(--tn-card-width);
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-feature {
    width: 100%; height: 100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start;
    text-align:left; white-space:normal; border:0; border-radius:13px; padding:22px; color:white;
    text-decoration:none; background:linear-gradient(180deg,#072f3503 5%,#092d3570 48%,#052b32f2 100%),url("amphi.webp") center/cover;
}
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-feature.tn-study {
    color:var(--tn-ink); background:#e4f0ec url("etude.webp") center 5% / auto 55% no-repeat;
}
.tn-panel .tn-feature-title { font:700 25px/1.1 Montserrat,Arial,sans-serif; letter-spacing:-.045em; max-width:240px; }
.tn-panel .tn-feature-cta { display:inline-flex; align-items:center; gap:8px; margin-top:13px; font:650 13px/1.3 Montserrat,Arial,sans-serif; }
.tn-feature .tn-icon { width:16px; height:16px; }
.tn-feature:is(:hover,:focus-visible) .tn-feature-cta { text-decoration:underline; }
:is(#ast-hf-menu-1,#ast-hf-menu-2) .tn-desktop > .tn-login:not([hidden]) { width:220px; min-height:0; padding:14px; }
.tn-login .tn-badge { width:34px; height:34px; }
#ast-hf-mobile-menu .tn-parent .tn-trigger { justify-content:space-between; width:100%; padding:14px 20px; text-align:left; border-radius:0; }
#ast-hf-mobile-menu .tn-parent > .tn-panel:not([hidden]) {
    position:static; float:none; width:100%; height:auto; max-height:none; min-width:0; border:0; border-radius:0;
    box-shadow:none; background:white; padding:5px 10px 10px 16px;
}
#ast-hf-mobile-menu .tn-panel a.tn-row { padding:8px 5px; gap:10px; }
#ast-hf-mobile-menu .tn-badge { width:34px; height:34px; border-radius:9px; }
#ast-hf-mobile-menu .tn-label { font-size:14px; }
#ast-hf-mobile-menu .tn-description { font-size:12px; }
#ast-hf-mobile-menu .tn-feature { display:block; text-decoration:none; margin:0; padding:5px; background:none; color:var(--tn-ink); }
#ast-hf-mobile-menu .tn-feature-cta { margin:4px 0; }
:is(#ast-hf-menu-1,#ast-hf-menu-2,#ast-hf-mobile-menu) .tn-parent :is(button,a):focus-visible { outline:2px solid #a62a62; outline-offset:-2px; }
@media (prefers-reduced-motion:reduce) { .tn-parent > .tn-trigger .tn-icon { transition:none; } }
