/* One viewport overlay covers both the navigation and page throughout the transition. */
.f27-drawer { --f27-drawer-gutter: max(var(--f27-page-gutter, 24px), calc((100% - var(--f27-content-max, 1600px)) / 2)); --f27-drawer-width: min(100%, calc(640px + var(--f27-drawer-gutter))); position: fixed; inset: 0; z-index: 2000; color: #084834; font-family: "DM Sans", sans-serif; }
.f27-drawer[hidden], .f27-drawer [hidden] { display: none !important; }
.f27-drawer *, .f27-drawer *::before, .f27-drawer *::after { box-sizing: border-box; }
.f27-drawer__shade { position: absolute; inset: 0; background: #152c23; opacity: 0; }
/* Keep the timeline target, but hide the opening boundary rule. */
.f27-drawer__sweep { visibility:hidden; position: absolute; top: 0; bottom: 0; left: calc(100% - var(--f27-drawer-width)); width: 1px; z-index: 2; background: var(--f27-line, #DEDED7); opacity: 0; transform: scaleY(0); transform-origin: center top; pointer-events: none; }
.f27-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: var(--f27-drawer-width); border-radius: 0; background: var(--f27-paper, #F9F9F6); clip-path: inset(0 0 0 100%); padding: 88px var(--f27-drawer-gutter) 32px 32px; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.f27-drawer__links { display: flex; flex-direction: column; gap: 0; }
.f27-drawer__links > * { transition: opacity .3s ease; }
.f27-drawer__links > a, .f27-drawer__group > button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 5px 0; color: #084834; font: 400 24px/1.3 "DM Sans", sans-serif; letter-spacing: -.025em; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.f27-drawer__links a[aria-current="page"] { color: #084834; }
/* Scope dimming to primary siblings; focus follows the same rule, including submenu focus. */
.f27-drawer__links:has(:focus-visible) > :not(:focus-within) { opacity: .5; }
@media (hover: hover) and (pointer: fine) {
  .f27-drawer__links:has(> :hover):not(:has(:focus-visible)) > :not(:hover) { opacity: .5; }
}
/* Restore the original fisar-drawer__sub grid-row reveal and inner content motion. */
.f27-drawer__group > button svg { transition: transform .5s cubic-bezier(.625,.05,0,1); }
.f27-drawer__group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.f27-drawer__sub { display: grid; grid-template-rows: 0fr; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: grid-template-rows .5s cubic-bezier(.625,.05,0,1), opacity .2s ease, visibility 0s linear .5s; }
.f27-drawer__sub-mask { min-height: 0; overflow: hidden; }
.f27-drawer__sub-items { padding: 4px 0 12px 16px; border-left: 1px solid var(--f27-line, #DEDED7); margin: 5px 0 10px; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .5s cubic-bezier(.625,.05,0,1); }
.f27-drawer__group.is-open > .f27-drawer__sub { grid-template-rows: 1fr; opacity: 1; visibility: visible; pointer-events: auto; transition: grid-template-rows .5s cubic-bezier(.625,.05,0,1), opacity .2s ease, visibility 0s linear; }
.f27-drawer__group.is-open > .f27-drawer__sub > .f27-drawer__sub-mask > .f27-drawer__sub-items { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.f27-drawer__sub a { display: block; padding: 5px 0; color: #566b5c; font-size: 14px; line-height: 1.5; text-decoration: none; }
.f27-drawer__footer { margin-top: auto; padding-top: 28px; }
.f27-drawer__secondary { border-top: 1px solid var(--f27-line, #DEDED7); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.f27-drawer__secondary a { font-size: 12px; line-height: 1.5; color: #64756b; text-decoration: none; }
.f27-drawer__secondary a:hover { color: #084834; }
/* Original footer [data-underline-link] geometry/easing, scoped to text labels. */
.f27-drawer [data-f27-underline] { display: inline-block; position: relative; text-decoration: none; }
.f27-drawer [data-f27-underline]::before { content: ""; position: absolute; bottom: -.0625em; left: 0; width: 100%; height: .1em; background: currentColor; transition: transform .735s cubic-bezier(.625,.05,0,1); transform-origin: right; transform: scaleX(0) rotate(.001deg); }
.f27-drawer :is(a, button):focus-visible [data-f27-underline]::before { transform-origin: left; transform: scaleX(1) rotate(.001deg); }
@media (hover: hover) and (pointer: fine) {
  .f27-drawer :is(a, button):hover [data-f27-underline]::before { transform-origin: left; transform: scaleX(1) rotate(.001deg); }
}
.f27-drawer__signup { display: flex; align-items: center; justify-content: flex-start; padding: 14px 18px; margin-top: 28px; font-size: 14px; line-height: 1.5; text-decoration: none; border-radius: 4px; }
/* Original btn-icon-content fill rise and 1.5em text roll, with two accessible layers. */
.f27-control.f27-cta, .f27-drawer__signup.f27-cta { position: relative; isolation: isolate; overflow: hidden; background: #084834; background-clip: padding-box; border-color: transparent; color: #fff; }
.f27-control.f27-cta:hover, .f27-drawer__signup.f27-cta:hover { background: #084834; background-clip: padding-box; border-color: transparent; color: #fff; }
.f27-cta::before { content: ""; position: absolute; z-index: 0; bottom: 0; left: -10%; width: 120%; height: 100%; background: #cee07d; transform-origin: left top; transform: translate(0, 175%) rotate(15deg); transition: transform .525s cubic-bezier(.625,.05,0,1); }
/* Extend the primary fill through its transparent border so no green rim remains. */
.f27-control.f27-cta::before, .f27-drawer__signup.f27-cta::before { bottom: -1px; height: calc(100% + 2px); }
.f27-cta__mask { position: relative; z-index: 1; display: block; overflow: hidden; height: 1.5em; line-height: 1.5; }
.f27-cta__text { position: relative; display: block; transition: transform .525s cubic-bezier(.625,.05,0,1); }
.f27-cta__duplicate { position: absolute; top: 1.5em; left: 0; width: 100%; color: #084834; }
.f27-cta:focus-visible::before { transform: translate(0, 0) rotate(0); }
.f27-cta:focus-visible .f27-cta__text { transform: translateY(-1.5em); }
@media (hover: hover) and (pointer: fine) {
  .f27-cta:hover::before { transform: translate(0, 0) rotate(0); }
  .f27-cta:hover .f27-cta__text { transform: translateY(-1.5em); }
}
.f27-drawer a:focus-visible, .f27-drawer button:focus-visible, .f27-drawer [role="button"]:focus-visible { outline: 2px solid #438260; outline-offset: 4px; }
.f27-drawer__toggle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.f27-drawer__toggle-layer > * { pointer-events: auto; }
.f27-control.f27-menu { border-color: var(--f27-line, #DEDED7); color: #084834; }
.f27-control.f27-menu:hover { background: var(--f27-surface, #F1F1EC); }
.f27-menu-icon { width: 15px; height: 15px; position: relative; display: block; }
.f27-menu-icon i { position: absolute; left: 0; top: calc(50% - .6px); width: 100%; height: 1.2px; background: currentColor; transform: translateY(-3px); transition: transform .7s cubic-bezier(.5,.5,0,1); }
.f27-menu-icon i:last-child { transform: translateY(3px); }
.f27-menu:hover .f27-menu-icon i:first-child { transform: translateY(3px); }
.f27-menu:hover .f27-menu-icon i:last-child { transform: translateY(-3px); }
.f27-menu[aria-expanded="true"] .f27-menu-icon i:first-child { transform: translateY(0) rotate(45deg); }
.f27-menu[aria-expanded="true"] .f27-menu-icon i:last-child { transform: translateY(0) rotate(-45deg); }
.f27-drawer .f27-menu { border-color: var(--f27-line, #DEDED7); background: var(--f27-paper, #F9F9F6); color: #084834; }
/* Preserve the legacy trigger's folding bars without translating its position. */
.f27-drawer__toggle-layer .hamburger-nav__toggle { transform: none !important; margin: 0; border-color: var(--f27-line, #DEDED7); color: #084834; background: var(--f27-paper, #F9F9F6); }
.f27-drawer__toggle-layer .hamburger-nav__toggle[aria-expanded="true"] .hamburger-nav__toggle-bar { transform: translateY(0) rotate(45deg) !important; }
.f27-drawer__toggle-layer .hamburger-nav__toggle[aria-expanded="true"] .hamburger-nav__toggle-bar:nth-child(2) { transform: translateY(0) rotate(-45deg) !important; }
@media (max-width: 600px) {
  .f27-drawer__panel { padding: 82px var(--f27-page-gutter, 24px) 24px; }
  .f27-drawer__links > a, .f27-drawer__group > button { font-size: 21px; }
  .f27-drawer__signup { margin-top: 22px; }
}
@media (max-height: 700px) {
  .f27-drawer__panel { padding-top: 78px; padding-bottom: 24px; }
  .f27-drawer__links > a, .f27-drawer__group > button { font-size: 20px; padding-block: 4px; }
  .f27-drawer__footer { padding-top: 20px; }
  .f27-drawer__signup { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .f27-menu-icon i, .f27-drawer__group > button svg, .f27-drawer__links > *, .f27-drawer__sub, .f27-drawer__group.is-open .f27-drawer__sub, .f27-drawer__sub-items, .f27-drawer [data-f27-underline]::before, .f27-cta::before, .f27-cta__text { transition: none; }
}

/* Equal account actions share the page-aligned drawer footer. */
.f27-drawer__actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin-top:28px; }
.f27-drawer__actions .f27-drawer__signup { margin:0; justify-content:center; }
.f27-drawer__login { display:flex; align-items:center; justify-content:center; min-height:50px; padding:14px 12px; border:1px solid var(--f27-line,#DEDED7); border-radius:4px; color:var(--f27-ink,#292c2b); font:400 14px/1.5 "DM Sans",sans-serif; text-decoration:none; }
.f27-drawer__login { background:var(--f27-paper, #F9F9F6); font-weight:500; }
@media (max-width:600px), (max-height:700px) { .f27-drawer__actions { margin-top:20px; } }

/* Overview is deliberately separate from the seven feature destinations. */
.f27-drawer__sub .f27-drawer__overview { color:var(--f27-muted,#636966); padding-bottom:12px; margin-bottom:7px; border-bottom:1px solid var(--f27-line,#DEDED7); font-size:12px; }
.f27-drawer__feature-list { display:flex; flex-direction:column; }

/* Nested Education remains a distinct disclosure at the submenu type scale. */
.f27-drawer__sub .f27-drawer__group > button { padding:5px 0; font-size:14px; line-height:1.5; letter-spacing:0; color:inherit; }

/* Account actions remain available on tablet; phones keep the menu compact. */
@media (max-width:767px) {
  .f27-bar .f27-actions > :is(.f27-login, .f27-book),
  .f27-drawer__actions { display:none; }
}
